/* ============================================
   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-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    height: 30px;
    width: auto;
    color: var(--text-dark);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo-text {
    height: 22px;
    width: auto;
    color: var(--text-dark);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled — only text shrinks, icon stays */
.navbar.scrolled .nav-logo-icon {
    height: 26px;
}

.navbar.scrolled .nav-logo-text {
    height: 16px;
}

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

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

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

/* ── CTA ── */
.nav-cta {
    padding: 10px 24px;
    background: var(--terracotta);
    color: var(--white);
    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(--terracotta-hover);
    transform: translateY(-1px);
}

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

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

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover {
    color: var(--text-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-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(--white);
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
        padding: 28px 24px;
        gap: 18px;
    }

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