/* Header Container */
.site-header {
    width: 100%;
    /* max-width: 1440px; */
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-bg);
    padding: 2.5rem 3.75rem;
}

/* Logo Block */
.logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
    width: auto;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0.5rem;
    padding: 0.25rem;
    outline: none;
}

/* Navigation Links */
.main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem;
    outline: none;
    font-family: "Lato", sans-serif;
    line-height: 100%;
    letter-spacing: 2%;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus-visible {
    color: var(--color-white);
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-brand-outline);
    transition: width 0.3s ease;
    border-radius: 999px;
    will-change: width;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator,
.nav-link:focus-visible .nav-indicator {
    width: 100%;
}

/* CTA Button */
.cta-container {
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
    font-style: bold;
    padding: 1rem;
    border-radius: 8px;
    /* This stays pill-shaped as per spec */
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
    opacity: 80%;
    will-change: transform, background-color;
}

.cta-button:hover {
    background-color: var(--color-brand-blue-hover);
    transform: scale(1.03);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button:focus-visible {
    box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-brand-outline);
}

/* Mobile Menu Toggle & Responsive Breakpoint */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 1.75rem;
    height: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle__bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .site-header {
        padding: 1.25rem 1rem;
        /* reduced from the desktop padding */
    }

    .main-nav,
    .cta-container {
        display: none;
        /* hidden on mobile, replaced by the hamburger-triggered menu */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-link img,
    .logo-link svg {
        width: 8.8125rem;
        /* scaled down from desktop size — adjust to match reference proportions */
        height: auto;
    }

    .footer-brand__name,
    .logo-link .footer-brand__name,
    .logo-link span {
        font-size: 1rem;
        /* scaled down wordmark text */
    }

    /* Mobile Menu Full-Screen Overlay */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-bg);
        z-index: 100;
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 2.5rem;
    }

    .mobile-menu_nav-parent {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
    }

    .mobile-menu--open {
        display: flex;
        width: 100%;
        height: 60%;
    }

    .mobile-menu__header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-menu__close {
        background: none;
        border: none;
        color: var(--color-white);
        font-size: 1.75rem;
        cursor: pointer;
        line-height: 1;
        padding: 0.25rem;
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;

        justify-content: space-between;
        width: 100%;
    }

    .mobile-menu__link {
        color: var(--color-white);
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 100%;
        text-decoration: none;
        padding: 0.5rem 1rem;
    }

    .mobile-menu__cta {
        width: 100%;
        text-align: center;
        background-color: var(--color-brand-blue);
        color: var(--color-white);
        font-weight: 700;
        padding: 1rem;
        border-radius: 8px;
        text-decoration: none;
        font-size: 1.25rem;
        line-height: 100%;
    }
}