/* ── KSP Global Nav — single source of truth ──────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo .logo-mark {
    width: 32px;
    height: 32px;
    background: #2563eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}
.nav-logo .logo-name {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 600;
    font-size: 14px;
    color: #f8fafc;
    letter-spacing: 0.02em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}
.nav-cta {
    display: flex;
    align-items: center;
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Solutions dropdown ── */
.nav-links li.has-dropdown {
    position: relative;
}
.nav-links li.has-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.8em;
    opacity: 0.7;
}
.nav-dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111726;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    min-width: 240px;
    padding: 0.4rem 0;
    z-index: 300;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    list-style: none;
    margin: 0;
}
.nav-links li.has-dropdown:hover .nav-dropdown {
    display: block !important;
}
.nav-dropdown li {
    list-style: none;
}
.nav-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav-dropdown a::after {
    content: '';
}
.nav-dropdown a:hover {
    color: #3b82f6;
    background: rgba(37, 99, 235, 0.08);
}
.nav-dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.3rem 0;
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    .nav-hamburger {
        display: flex;
        order: 99;
        margin-left: auto;
    }
    nav.mobile-open .nav-links,
    nav.mobile-open .nav-cta {
        display: flex;
        flex-basis: 100%;
        order: 100;
    }
    nav.mobile-open .nav-links {
        flex-direction: column;
        gap: 1.1rem;
        padding: 1.25rem 0 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
        margin-top: 0.85rem;
    }
    nav.mobile-open .nav-cta {
        padding: 0.5rem 0;
    }
    nav.mobile-open .nav-cta .btn {
        width: 100%;
        text-align: center;
    }
    .nav-inner {
        flex-wrap: wrap;
    }
    .nav-dropdown {
        display: none !important;
    }
}
