/* ── SHARED NAVIGATION ── */

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light, #f0f1f5);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 0.5rem;
}

/* ── LOGO ── */

.nav-logo-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink, #0a0f1a);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.nav-logo-mark {
    width: 30px; height: 30px;
    background: var(--ink, #0a0f1a);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ── MAIN NAV LINKS ── */

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

/* ── DROPDOWN ITEM ── */

.nav-item {
    position: relative;
}

.nav-item-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.845rem;
    color: var(--ink-muted, #4a5578);
    font-weight: 500;
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
    text-decoration: none;
}

.nav-item-btn:hover,
.nav-item.open .nav-item-btn {
    color: var(--ink, #0a0f1a);
    background: #f5f6fa;
}

.nav-item-btn.active {
    color: var(--accent, #2563eb);
    font-weight: 600;
}

.nav-chevron {
    width: 10px; height: 10px;
    flex-shrink: 0;
    transition: transform 0.2s;
    opacity: 0.6;
}

.nav-item.open .nav-chevron {
    transform: rotate(180deg);
}

/* ── DROPDOWN PANEL ── */

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(10,15,26,0.1), 0 2px 8px rgba(10,15,26,0.06);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    pointer-events: none;
}

.nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.855rem;
    color: var(--ink-muted, #4a5578);
    text-decoration: none;
    border-radius: 7px;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
    font-weight: 500;
}

.nav-dropdown a:hover {
    background: #f0f4ff;
    color: var(--accent, #2563eb);
}

.nav-dropdown a.active {
    color: var(--accent, #2563eb);
    font-weight: 600;
    background: #eff4ff;
}

/* ── CTA BUTTON ── */

.nav-cta-btn {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    border-radius: 22px;
    font-size: 0.845rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
    font-family: inherit;
    line-height: 1;
}

.nav-cta-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* ── HAMBURGER BUTTON ── */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px; height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger-btn:hover {
    background: var(--border-light, #f0f1f5);
}

.hamburger-btn span {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink, #0a0f1a);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE DRAWER ── */

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.99);
    z-index: 1001;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 44px; height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--ink-muted, #4a5578);
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: var(--border-light, #f0f1f5);
}

/* Mobile section heading */
.mobile-nav-section {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 1.25rem 0 0.5rem;
    padding: 0 0.25rem;
}

.mobile-nav-section:first-child {
    margin-top: 0;
}

.mobile-nav-drawer a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink, #0a0f1a);
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
    color: var(--accent, #2563eb);
    background: #f0f4ff;
}

.mobile-nav-cta {
    margin-top: 1.5rem;
    display: flex !important;
    justify-content: center;
    background: #2563eb !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.875rem 1.5rem !important;
}

.mobile-nav-cta:hover {
    background: #1d4ed8 !important;
    color: #fff !important;
}

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
    .nav-item-btn,
    .nav-dropdown a,
    .nav-cta-btn {
        font-size: 0.82rem;
    }

    .nav-item-btn {
        padding: 0.4rem 0.5rem;
    }

    .nav-links {
        gap: 0.1rem;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-cta-btn {
        display: none;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0 1rem;
    }

    .nav-logo-link {
        font-size: 1rem;
    }

    .nav-logo-mark {
        width: 26px; height: 26px;
        font-size: 0.65rem;
    }
}
