/* Shared marketing-site header.
 *
 * Layout: fixed top, blurred glass, logo left + nav middle + auth buttons right.
 * Desktop ≥769px: full nav inline.
 * Mobile ≤768px: nav collapses behind a hamburger; CTA button stays in the
 * header bar so the primary action is always one tap away.
 *
 * Pages link this file in <head> and include <script defer src="/lo-header.js">.
 */

.lo-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lo-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.lo-logo-icon { display: block; }

.lo-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.lo-logo-text span { color: #D97706; }

/* Desktop nav — middle of the bar */
.lo-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
    margin-right: 1.25rem;
}

.lo-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.lo-nav a:hover { color: #D97706; }

.lo-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lo-header-actions a {
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}

.lo-signin {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.lo-signin:hover { color: #D97706; }

.lo-cta {
    background: #D97706;
    color: #0B0F1A;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.lo-cta:hover {
    background: #F59E0B;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35);
    transform: translateY(-1px);
}

/* Hamburger button — desktop hides it */
.lo-burger {
    display: none;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.lo-burger:hover { border-color: #D97706; }

.lo-burger:focus-visible {
    outline: 2px solid #D97706;
    outline-offset: 2px;
}

.lo-burger-bars {
    width: 20px;
    height: 14px;
    position: relative;
}

.lo-burger-bars span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #1E293B;
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.lo-burger-bars span:nth-child(1) { top: 0; }
.lo-burger-bars span:nth-child(2) { top: 6px; }
.lo-burger-bars span:nth-child(3) { top: 12px; }

.lo-burger[aria-expanded="true"] .lo-burger-bars span:nth-child(1) {
    top: 6px; transform: rotate(45deg);
}
.lo-burger[aria-expanded="true"] .lo-burger-bars span:nth-child(2) {
    opacity: 0;
}
.lo-burger[aria-expanded="true"] .lo-burger-bars span:nth-child(3) {
    top: 6px; transform: rotate(-45deg);
}

/* Slide-down mobile drawer */
.lo-mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 0.5rem 1.25rem 1.25rem;
    z-index: 99;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    visibility: hidden;
}

.lo-mobile-menu[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
}

.lo-mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.lo-mobile-menu nav a {
    display: block;
    padding: 0.95rem 0.25rem;
    color: #1E293B;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-family: 'DM Sans', sans-serif;
}

.lo-mobile-menu nav a:last-child { border-bottom: none; }

.lo-mobile-menu nav a:hover,
.lo-mobile-menu nav a:focus { color: #D97706; }

.lo-mobile-menu-cta {
    display: block;
    text-align: center;
    background: #D97706;
    color: #0B0F1A;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.lo-mobile-menu-cta:hover { background: #F59E0B; }

/* Spacer beneath the fixed header so content doesn't slip behind it.
 * Kept on every page rather than in body padding so per-page hero
 * sections can override and still pin to the top edge of the viewport. */
.lo-header-spacer {
    height: 64px;
}

/* ── Mobile cutover ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lo-header {
        padding: 0.75rem 1rem;
    }
    .lo-logo-text { font-size: 1.05rem; }
    .lo-nav { display: none; }
    .lo-signin { display: none; }
    .lo-cta {
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
    }
    .lo-burger { display: inline-flex; }
}

/* When the drawer is open, lock body scroll so taps don't drift. */
body.lo-menu-open { overflow: hidden; }
