/*
 * OVH design parity overrides
 *
 * This file intentionally loads after app.css. Keep small visual adjustments
 * here so future changes do not require editing the main stylesheet.
 */

:root {
    --header-height: 5rem;
}

/* Primary navigation header — matches the original Lovable design. */
.site-header {
    height: var(--header-height);
    border-bottom: 0;
    background: hsl(220 55% 18% / 0.85);
    box-shadow: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition:
        background-color 300ms ease,
        border-color 300ms ease,
        box-shadow 300ms ease,
        backdrop-filter 300ms ease;
}

.site-header.is-scrolled {
    border-bottom: 1px solid hsl(40 30% 96% / 0.10);
    background: hsl(220 55% 18% / 0.95);
    box-shadow: 0 4px 24px -8px hsl(220 30% 20% / 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.site-logo {
    width: auto;
    height: auto;
}

.site-logo img {
    width: auto;
    max-width: none;
    height: 3rem;
    object-fit: contain;
}

.desktop-nav {
    height: auto;
    gap: 2rem;
}

.nav-link {
    display: block;
    height: auto;
    color: hsl(40 30% 96% / 0.70);
    padding-block: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
}

.nav-link::after {
    right: 0;
    bottom: -0.25rem;
    left: 0;
    height: 0.125rem;
    border-radius: 0;
    background: hsl(38 60% 52%);
    opacity: 0;
    transform: none;
    transition: none;
}

.nav-link:hover,
.nav-link.is-active {
    color: hsl(40 30% 96%);
}

.nav-link:hover::after {
    opacity: 0;
    transform: none;
}

.nav-link.is-active::after,
.nav-link.is-active:hover::after {
    opacity: 1;
    transform: none;
}

.menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.375rem;
    color: hsl(40 30% 96%);
    padding: 0.5rem;
}

.menu-toggle:hover {
    background: hsl(40 30% 96% / 0.10);
}

.mobile-nav {
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.mobile-nav__inner {
    padding-block: 1rem;
}

.mobile-nav__link {
    border-bottom-color: var(--border);
    color: var(--muted);
    padding-block: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-nav__link.is-active {
    color: var(--navy-900);
}

/* Internal page title banner — matches the original centered banner. */
.page-header {
    background: linear-gradient(
        135deg,
        hsl(220 55% 14%) 0%,
        hsl(220 55% 22%) 60%,
        hsl(220 50% 32%) 100%
    );
}

.page-header::after {
    display: none;
}

.page-header__inner {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding: 5rem 1.5rem;
    text-align: center;
}

.page-header .eyebrow {
    margin-bottom: 1rem;
    color: hsl(38 60% 52%);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1rem;
}

.page-header h1 {
    max-width: none;
    color: hsl(40 30% 96%);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
}

.page-header__subtitle {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    color: hsl(40 30% 96% / 0.80);
    font-size: 1rem;
    line-height: 1.625;
    text-align: center;
}

@media (min-width: 48rem) {
    .site-header__inner {
        padding-inline: 2rem;
    }

    .site-logo img {
        height: 3.5rem;
    }

    .page-header__inner {
        padding: 7rem 2rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .page-header__subtitle {
        font-size: 1.125rem;
    }
}

/*
 * Navigation breakpoint intentionally starts below 52rem rather than 64rem.
 * Some Android browsers request a roughly 980px-wide desktop viewport and
 * scale it down to the phone. At the former 64rem breakpoint that viewport
 * received the hamburger layout, making the entire header look unusually
 * small. A 52rem breakpoint gives those browsers the full desktop navigation
 * while keeping the mobile menu for genuine phone-width viewports.
 */
@media (min-width: 52rem) {
    .desktop-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .page-header h1 {
        font-size: 3.75rem;
    }
}

@media (max-width: 51.999rem) {
    :root {
        --header-height: 4.75rem;
    }

    .site-header__inner {
        padding-inline: 1rem;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        width: 3rem;
        height: 3rem;
        padding: 0.625rem;
    }

    .menu-toggle svg {
        width: 1.625rem;
        height: 1.625rem;
        stroke-width: 2.25;
    }

    .site-logo img {
        height: 3.25rem;
    }

    .mobile-nav__inner {
        padding: 0.5rem 1rem 1rem;
    }

    .mobile-nav__link {
        padding: 1rem 0.25rem;
        font-size: 1.0625rem;
        line-height: 1.4;
    }
}
