/* ═══════════════════════════════════════════════════════
   SPL NAV — shared across all pages
   Transparent over hero (index.html), white-frosted on all other pages.
   ═══════════════════════════════════════════════════════ */
:root {
    --spl-nav-height: 58px;
}

/* Hide the old header everywhere */
.header {
    display: none !important;
}

/* ── Nav Bar ──────────────────────────────────────── */
.spl-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--spl-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.spl-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ── Logo ─────────────────────────────────────────── */
.spl-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.spl-logo img {
    height: 36px;
    width: auto;
    transition: filter 0.3s;
    /* over video/dark hero — subtle shadow keeps it visible */
    filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.6));
}

/* on non-hero (always-white) nav scroll state → clear, original colour */
.spl-nav.scrolled .spl-logo img {
    filter: none;
}

/* ── Desktop Links ────────────────────────────────── */
.spl-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.spl-nav-links a,
.spl-nav-links .spl-nav-dropdown>a {
    color: rgba(255, 255, 255, 0.93);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 9px;
    border-radius: 20px;
    transition: background 0.2s, color 0.3s;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.spl-nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.spl-nav-links a.spl-active {
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Scrolled state → dark text */
.spl-nav.scrolled .spl-nav-links a,
.spl-nav.scrolled .spl-nav-links .spl-nav-dropdown>a {
    color: #111827;
}

.spl-nav.scrolled .spl-nav-links a:hover {
    background: rgba(0, 0, 0, 0.06);
}

.spl-nav.scrolled .spl-nav-links a.spl-active {
    color: var(--primary-blue, #1e40af);
    background: rgba(30, 64, 175, 0.08);
}

/* ── Dropdown ─────────────────────────────────────── */
.spl-nav-dropdown {
    position: relative;
}

.spl-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 10px;
    min-width: 185px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    z-index: 2100;
}

.spl-nav-dropdown:hover .spl-nav-dropdown-menu {
    display: block;
}

.spl-nav-dropdown-menu a {
    display: block !important;
    color: #111827 !important;
    padding: 11px 18px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    white-space: nowrap !important;
    background: transparent !important;
}

.spl-nav-dropdown-menu a:last-child {
    border-bottom: none !important;
}

.spl-nav-dropdown-menu a:hover {
    background: #f5f7ff !important;
    color: var(--primary-blue, #1e40af) !important;
}

/* ── Right CTA ────────────────────────────────────── */
.spl-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spl-nav-right a {
    color: rgba(255, 255, 255, 0.93);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    transition: background 0.2s, color 0.3s, border-color 0.3s;
    white-space: nowrap;
}

.spl-nav-right a:hover {
    background: rgba(255, 255, 255, 0.28);
}

.spl-nav.scrolled .spl-nav-right a {
    background: var(--primary-blue, #1e40af);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(30, 64, 175, 0.25);
}

.spl-nav.scrolled .spl-nav-right a:hover {
    opacity: 0.9;
}

/* ── Hamburger ────────────────────────────────────── */
.spl-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 7px;
    border: none;
    background: none;
    border-radius: 6px;
}

.spl-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 2px;
    transition: background 0.3s;
}

.spl-nav.scrolled .spl-hamburger span {
    background: #111827;
}

/* ── Mobile Menu ──────────────────────────────────── */
.spl-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: #111827;
    z-index: 2200;
    padding: 68px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.spl-mobile-menu.open {
    transform: translateX(0);
}

.spl-mobile-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    transition: opacity 0.2s;
}

.spl-mobile-menu a:hover {
    opacity: 0.7;
}

.spl-mobile-menu a.spl-active {
    color: #fbbf24;
    font-weight: 700;
}

.spl-mobile-menu .spl-mob-cta {
    display: block;
    margin-top: 22px;
    background: var(--primary-blue, #1e40af);
    color: #fff !important;
    text-align: center;
    padding: 13px 28px !important;
    border-radius: 8px;
    font-weight: 700 !important;
    border-bottom: none !important;
}

.spl-mobile-menu .spl-mob-cta:hover {
    opacity: 0.88 !important;
}

.spl-menu-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.spl-menu-close:hover {
    opacity: 1;
}

.spl-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    backdrop-filter: blur(3px);
}

/* ── Page body offset (so content isn't hidden under fixed nav) ── */
body.spl-page {
    padding-top: var(--spl-nav-height);
}

/* ── Non-hero pages: always show white-frosted nav with dark text ── */
body.spl-page .spl-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body.spl-page .spl-nav .spl-nav-links a,
body.spl-page .spl-nav .spl-nav-links .spl-nav-dropdown>a {
    color: #111827;
}

body.spl-page .spl-nav .spl-nav-links a:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.spl-page .spl-nav .spl-nav-links a.spl-active {
    color: var(--primary-blue, #1e40af);
    background: rgba(30, 64, 175, 0.08);
}

body.spl-page .spl-nav .spl-logo img {
    filter: none;
}

body.spl-page .spl-nav .spl-nav-right a {
    background: var(--primary-blue, #1e40af);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(30, 64, 175, 0.25);
}

body.spl-page .spl-nav .spl-nav-right a:hover {
    opacity: 0.9;
}

body.spl-page .spl-nav .spl-hamburger span {
    background: #111827;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1100px) {

    .spl-nav-links a,
    .spl-nav-links .spl-nav-dropdown>a {
        font-size: 11.5px;
        padding: 6px 6px;
    }
}

@media (max-width: 900px) {
    .spl-nav-links {
        display: none;
    }

    .spl-hamburger {
        display: flex;
    }

    .spl-mobile-menu {
        display: block;
    }

    .spl-menu-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s;
    }

    .spl-menu-overlay.open {
        opacity: 1;
        pointer-events: all;
    }
}

@media (max-width: 560px) {
    .spl-nav-right {
        display: none;
    }
}