/* =========================================
   Roboto 400 - self-hosted (no third-party requests)
   ========================================= */

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/roboto-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/roboto-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================
   Maplevest Realty, LLC - Contact Page
   ========================================= */

:root {
    --blue: #004a91;
    --white: #ffffff;
    --font-stack: Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    width: 100%;
}

/* Base Body Layout */
body {
    background-color: var(--blue);
    color: var(--white);
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    position: relative;
}

/* Main Content Container */
.contact-card {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: auto;
}

/* Logo Setup */
.brand {
    margin-bottom: 24px;
}

.logo {
    display: block;
    width: 320px;
    height: auto;
}

/* Contact Info Aligned Right to Match the Logo Right Edge */
.contact-info {
    font-style: normal;
    font-size: 1rem;
    text-align: right;
	padding: 0 5%;
}

.address {
    margin-bottom: 20px;
}

.phone, .fax {
    margin-bottom: 3px;
}

.email {
    margin-top: 20px;
}

.label {
    display: inline-block;
    margin-right: 4px;
}

/* Links Styling */
.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.contact-info a:hover,
.contact-info a:focus {
    text-decoration: underline;
}

.contact-info a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
}

/* Bottom Right Leaf Element (Contained & Non-Bleeding) */
.leaf-container {
    position: fixed;
    bottom: 8%;
    right: 8%;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.leaf-img {
    display: block;
    width: 220px;
    height: auto;
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 768px) {
    body {
        padding: 0 8%;
    }

    .logo {
        width: 280px;
    }

    .contact-info {
        font-size: 0.95rem;
    }

    .leaf-container {
        bottom: 5%;
        right: 5%;
    }

    .leaf-img {
        width: 160px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 40px 24px;
        align-items: flex-start;
        /* body is a flex row; without this the leaf sits BESIDE the card
           (overlapping the contact text and overflowing the viewport)
           instead of dropping below it. */
        flex-direction: column;
    }

    .logo {
        width: 240px;
    }

    .leaf-container {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 40px;
        text-align: right;
        /* span the full width so text-align:right reaches the gutter */
        align-self: stretch;
    }

    .leaf-img {
        width: 130px;
        display: inline-block;
    }
}