/* ==========================================================================
   The site header, the same on every marketing page.

   Each page carries its own nav styles inline; this file only adds what they
   must share so the header behaves identically everywhere:
   - the page you are on is marked in gold (aria-current="page");
   - below 1180px the eight links fold into the menu button, on every page —
     eight links and the button do not fit on one line below that;
   - the menu button itself, for pages whose own styles never had one;
   - .subnav: a page's own section links (Sixteen), in a slim bar under the
     header, so the header stays the site's and the page keeps its shortcuts.
   Load it after the page's own <style>.
   ========================================================================== */

nav .nav-links a[aria-current="page"] { color: var(--gold, #D4A843); }

nav .mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
}
nav .mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary, #F5F5F5);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 1180px) {
    nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0F0F0F;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    nav .nav-links.open { display: flex; }
    nav .nav-links li { width: 100%; }
    nav .nav-links li a { display: block; padding: 0.8rem 0; }
    nav .nav-links li a.nav-cta { display: inline-block; margin-top: 0.75rem; padding: 0.75rem 1.5rem; }
    nav .mobile-toggle { display: block; }
}

/* ── A page's own section links, under the header ── */
.subnav {
    background: var(--dark-surface, #1A1A1A);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.subnav-in {
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.subnav-in::-webkit-scrollbar { display: none; }
.subnav-title {
    font-weight: 700;
    color: var(--text-primary, #F5F5F5);
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 0.85rem 0;
}
.subnav a {
    color: var(--text-secondary, #A0A0A0);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.85rem 0;
    transition: color 0.2s;
}
.subnav a:hover { color: var(--gold, #D4A843); }
.subnav .subnav-cta {
    margin-left: auto;
    color: var(--gold, #D4A843);
    font-weight: 600;
    border: 1px solid rgba(212, 168, 67, 0.4);
    border-radius: 100px;
    padding: 0.45rem 1.1rem;
}
@media (max-width: 680px) {
    .subnav-in { padding: 0 1rem; gap: 1.25rem; }
}
