/* ── Navigation Components ───────────────────────────────────────── */

/* ── Sticky nav  base ───────────────────────────────────── */
#sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-101%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    will-change: transform;
}

#sticky-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ── Hero Nav Pill ─────────────────── */
#hero-nav {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-nav-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* ── Navigation Links ──────────────── */
.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #0a0a0a;
    background: rgba(0, 0, 0, 0.04);
}

.nav-link-active {
    color: #0a0a0a !important;
    font-weight: 600 !important;
    background: rgba(0, 0, 0, 0.04);
}

/* ── Mobile Hamburger & Dropdowns ──── */
.ham-line {
    display: block;
    width: 15px;
    height: 1.5px;
    background: #0a0a0a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#sticky-hamburger.is-open .sham-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#sticky-hamburger.is-open .sham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#sticky-hamburger.is-open .sham-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transform: scaleY(0.95) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    transform-origin: top;
}

.mobile-dropdown.is-open {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mob-nav-link {
    display: block;
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #0a0a0a;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.2s;
}

.mob-nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.mob-nav-link-active {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
    body { padding-top: 64px !important; }

    /* Hide hero nav on mobile completely */
    #hero-nav { display: none !important; }

    /* Ensure sticky nav is visible on mobile (logic handles is-visible class) */
    #sticky-nav {
        transform: translateY(-101%);
        opacity: 0;
        pointer-events: none;
    }
    
    #sticky-nav.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    #sticky-nav-wrap {
        padding: 0 20px !important;
        height: 64px !important;
    }

    /* Hide desktop-only elements */
    #sticky-nav-links, #sticky-cta-btn { display: none !important; }

    /* Show hamburger */
    #sticky-hamburger { display: flex !important; }

    /* Adjust dropdown for mobile */
    .mobile-dropdown {
        left: 12px;
        right: 12px;
        top: calc(100% + 4px);
    }
}
