/* Header & Navigation — matches old layout with new colors */

/* ===== Header ===== */
.site-header {
    width: 100%;
    height: 165px;
    font: larger 'Exo', sans-serif;
    border-bottom: 1px solid black;
    margin: 0;
    z-index: 999;
    position: relative;
    background-color: var(--bg-white);
}

.header_box {
    margin: 0 auto;
    position: relative;
}

/* Hide mobile banner on desktop */
.mobile-banner {
    display: none;
}

/* Large desktop (≥ 1200px) */
@media only screen and (min-width: 1200px) {
    .header_box {
        width: 1200px;
        height: 165px;
    }

    .header_right {
        float: right;
        width: 416px;
        height: 165px;
    }

    .header_right svg.contact-icon {
        width: 28px;
        height: 28px;
        vertical-align: middle;
        margin-left: 30px;
        margin-right: 0;
        color: #0082BA;
    }

    .header_right p {
        text-align: right;
        margin: 12px;
        font-size: 28px;
    }

    .header_right p:first-child {
        margin-top: 32px;
        color: var(--primary);
        font-weight: normal;
    }

    /* Phone/email links: smaller and black */
    .header_right p a {
        color: var(--text-dark);
        font-size: 23px;
    }

    .header_right p a:hover {
        color: var(--primary);
    }

    .vrc_logo {
        height: 140px;           /* shrunk from old 165px */
        margin: 12px 0 0 16px;
        float: left;
    }

    .site-header h1 {
        width: 420px;
        float: left;
        margin: 20px 0 0 40px;
        font-size: 60px;
        opacity: 1;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.1;
    }

    .site-header h2 {
        width: 437px;
        float: left;
        margin: 2px 0 0 40px;
        font-size: 33px;
        color: var(--primary);
        font-weight: 400;
        line-height: 1.2;
    }

    /* Contact rows: icon left, text right */
    .header_right .contact-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Icon group: phone + whatsapp together on the left */
    .icon-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .whatsapp-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .whatsapp-icon svg {
        width: 28px;
        height: 28px;
        color: #0082BA;
        transition: transform 0.2s ease;
    }

    .whatsapp-icon:hover svg {
        transform: scale(1.1);
    }
}

/* Small desktop (992px - 1199px) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .header_box {
        width: 992px;
        height: 165px;
    }

    .header_right {
        float: right;
        width: 320px;
        height: 165px;
    }

    .header_right svg.contact-icon {
        width: 24px;
        height: 24px;
        vertical-align: middle;
        margin-left: 30px;
        margin-right: 0;
        color: #0082BA;
    }

    .header_right p {
        text-align: right;
        margin: 12px;
        font-size: 20px;
    }

    .header_right p:first-child {
        margin-top: 35px;
        color: var(--primary);
        font-weight: normal;
    }

    /* Phone/email links: smaller and black */
    .header_right p a {
        color: var(--text-dark);
        font-size: 20px;
    }

    .header_right p a:hover {
        color: var(--primary);
    }

    .vrc_logo {
        height: 125px;
        margin: 20px 0 0 16px;
        float: left;
    }

    .site-header h1 {
        width: 420px;
        float: left;
        margin: 20px 0 0 40px;
        font-size: 60px;
        opacity: 1;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.1;
    }

    .site-header h2 {
        width: 437px;
        float: left;
        margin: 2px 0 0 40px;
        font-size: 33px;
        color: var(--primary);
        font-weight: 400;
        line-height: 1.2;
    }

    /* Contact rows: icon left, text right */
    .header_right .contact-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Icon group: phone + whatsapp together on the left */
    .icon-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .whatsapp-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .whatsapp-icon svg {
        width: 24px;
        height: 24px;
        color: #0082BA;
        transition: transform 0.2s ease;
    }

    .whatsapp-icon:hover svg {
        transform: scale(1.1);
    }
}

/* Tablet (768px - 991px) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .header_box {
        width: 768px;
        height: 165px;
        margin: 0 auto;
    }

    .header_right {
        float: right;
        width: 320px;
        height: 165px;
    }

    .header_right svg.contact-icon {
        width: 22px;
        height: 22px;
        vertical-align: middle;
        margin-left: 30px;
        margin-right: 0;
        color: #0082BA;
    }

    .header_right p {
        text-align: right;
        font-size: 20px;
    }

    .header_right p:first-child {
        margin-top: 35px;
        color: var(--primary);
        font-weight: normal;
    }

    /* Phone/email links: smaller and black */
    .header_right p a {
        color: var(--text-dark);
        font-size: 20px;
    }

    .header_right p a:hover {
        color: var(--primary);
    }

    .vrc_logo {
        height: 100px;
        margin: 32px 0 0 16px;
        float: left;
    }

    .site-header h1 {
        width: 340px;
        float: left;
        margin: 24px 0 0 14px;
        font-size: 50px;
        opacity: 1;
        font-weight: 700;
        color: var(--text-dark);
        line-height: 1.1;
    }

    .site-header h2 {
        width: 350px;
        float: left;
        margin: 2px 0 0 15px;
        font-size: 26px;
        color: var(--primary);
        font-weight: 400;
        line-height: 1.2;
    }

    /* Contact rows: icon left, text right */
    .header_right .contact-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Icon group: phone + whatsapp together on the left */
    .icon-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .whatsapp-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .whatsapp-icon svg {
        width: 22px;
        height: 22px;
        color: #0082BA;
        transition: transform 0.2s ease;
    }

    .whatsapp-icon:hover svg {
        transform: scale(1.1);
    }
}

/* Mobile (< 768px) */
@media only screen and (max-width: 767px) {
    /* Fixed banner at top of viewport */
    .mobile-banner {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
        margin: 0;
        background-color: #ffffff;
        border-bottom: 1px solid black;
        padding: var(--space-2);
        text-align: center;
        font-size: var(--text-sm);
        color: var(--text-dark);
    }

    .mobile-banner a {
        color: var(--primary);
        font-weight: var(--font-semibold);
    }

    .mobile-banner a:hover {
        color: var(--primary-dark);
    }

    /* Phone + WhatsApp icons in mobile banner */
    .mobile-banner .icon-group {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        vertical-align: middle;
        margin-right: 2px;
    }

    .mobile-banner .contact-icon {
        width: 16px;
        height: 16px;
        vertical-align: middle;
        color: #0082BA;
    }

    .mobile-banner .whatsapp-icon svg {
        width: 16px;
        height: 16px;
        color: #0082BA;
        vertical-align: middle;
    }

    /* Push body content down so banner doesn't cover it */
    body {
        padding-top: 40px;
    }

    .site-header {
        height: auto;
        border-bottom: 1px solid black;
        position: relative;
        padding: 0;
    }

    /* Centered 300px grid: logo left, text stacked right */
    .header_box {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        width: 300px;
        max-width: 100%;
        margin: var(--space-2) auto;
        padding: 0;
    }

    /* Logo spans both rows */
    .header_box > a {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0;
    }

    .header_box > a .vrc_logo {
        height: 70px;
        margin: 0;
        display: block;
        float: none;
    }

    .site-header h1 {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        padding-left: var(--space-2);
        font-size: 32px;
        font-weight: var(--font-bold);
        color: var(--text-dark);
        line-height: 1.1;
        text-align: left;
    }

    .site-header h2 {
        grid-column: 2;
        grid-row: 2;
        margin-left: 8px;
        padding-left: var(--space-2);
        font-size: 16px;
        color: var(--primary);
        font-weight: var(--font-regular);
        line-height: 1.2;
        text-align: left;
    }

    /* Hide desktop contact block */
    .header_right {
        display: none;
    }

    /* Nav no longer sticky on mobile — banner is */
    body .site-nav {
        position: relative;
    }
}

/* ===== Navigation ===== */
.site-nav {
    background-color: #000000;
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    box-shadow: var(--shadow-md);
    clear: both;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    margin-left: auto;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    width: 100%;
    gap: var(--space-1);
}

.nav-item {
    position: relative;
}

/* Push Get Quote to the right */
.nav-item:last-child {
    margin-left: auto;
}

.nav-link {
    display: block;
    padding: var(--space-4) var(--space-6);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    transition: background-color var(--transition-fast);
    border-radius: var(--radius-sm);
}

/* Hover on inactive items → blue */
.nav-link:hover,
.nav-link:focus-visible {
    background-color: var(--primary);
    text-decoration: none;
    color: var(--text-light);
}

/* Active nav item → blue background */
.nav-link.selected {
    background-color: var(--primary);
}

/* Mobile nav */
@media (max-width: 767px) {
    .nav-container {
        justify-content: flex-end;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #000000;
        padding: var(--space-2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Reset margin-left for stacked mobile menu */
    .nav-item:last-child {
        margin-left: 0;
    }

    .nav-link {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-sm);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
