/* ============================================
   Navbar — Premium editorial
   Transparent on hero, solid on scroll
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Brand ── */
.nav-brand-name {
    font-family: var(--font-brand);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--text-on-dark);
    letter-spacing: -0.01em;
    transition: color 0.4s ease;
}

/* ── Links ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-on-dark-muted);
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-on-dark);
}

/* ── CTA ── */
.nav-cta {
    padding: 10px 24px;
    background: var(--lime);
    color: var(--plum);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--lime-hover);
    transform: translateY(-1px);
}

/* Mobile CTA — hidden on desktop */
.nav-cta-mobile {
    display: none;
}

/* ── Scrolled state ── */
.navbar.scrolled {
    background: rgba(26, 15, 31, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .nav-brand-name {
    color: var(--text-on-dark);
}

.navbar.scrolled .nav-link {
    color: var(--text-on-dark-muted);
}

.navbar.scrolled .nav-link:hover {
    color: var(--text-on-dark);
}

/* ── Mobile toggle ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-on-dark);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .navbar .container {
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Show mobile CTA between brand and burger */
    .nav-cta-mobile {
        display: inline-flex;
        margin-left: auto;
        padding: 8px 18px;
        font-size: 0.78rem;
    }

    /* Hide desktop CTA inside nav-links */
    .nav-cta-desktop {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--plum);
        border-bottom: 1px solid var(--border-dark);
        padding: 28px 24px;
        gap: 18px;
    }

    .nav-links.open .nav-link {
        color: var(--text-on-dark-muted);
        font-size: 1rem;
    }
}
