/* =========================================================
   HEADER + NAV (CLEAN CONSOLIDATED VERSION)
========================================================= */

header.site-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #4a4f63 0%, #626576 50%, #77b6e4 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    z-index: 20;
    backdrop-filter: saturate(1.25) blur(6px);
}

/* ---- Header bar ---- */
.bar {
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    position: relative;
    color: #f3f6ff;
}

/* ---- Logo + tagline ---- */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo img {
    height: 32px;
}

.logo-tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .logo-tagline {
        display: none;
    }
}

/* ---- CTA button ---- */
.bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cta {
    padding: 12px 24px;
    white-space: nowrap;
    box-shadow: 0 16px 36px rgba(237, 122, 35, 0.35);
}

/* ---------------------------------------------------------
   CENTERED CAPSULE NAV
--------------------------------------------------------- */

/* container */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    position: relative;
    gap: 1.2rem;
}

/* grouping */
.nav-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* blurred pill behind links */
.nav-group-bg {
    position: absolute;
    inset: 0;
    padding-inline: 22px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 0;
}

/* links inside the capsule */
.nav-main-links {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1.25rem;
}

/* nav links */
.nav-link {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* active link */
.nav-link.is-current {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ---------------------------------------------------------
   MOBILE NAV
--------------------------------------------------------- */

.nav-toggle {
    display: none;
}
.nav-mobile-cta {
    display: none;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 40px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.35);
        color: #fff;
    }

    .nav {
        position: fixed;
        top: 16px;
        left: 18px;
        right: 18px;
        background: rgba(6, 13, 28, 0.98);
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        padding: 1.25rem;
        gap: 0.6rem;
        z-index: 30;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        align-items: stretch;
        box-shadow: 0 24px 60px rgba(5, 9, 22, 0.45);
    }

    .nav-group-bg {
        display: none;
    }

    .nav-main-links {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 0.85rem;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.is-current {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .nav[data-collapsed] {
        display: none;
    }

    .nav-mobile-cta {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .bar-actions .header-cta {
        display: none;
    }

    .nav-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .nav-link-standalone {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 0.85rem;
    }
}
