/* ═══════════════════════════════════════════════════════════════════
   NeuroWave One — global site styles (header, footer, shared utils)
   Loaded on every page via layout.php
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --nw-delta:  #6366f1;
    --nw-theta:  #8b5cf6;
    --nw-alpha:  #06b6d4;
    --nw-beta:   #10b981;
    --nw-gamma:  #f59e0b;
    --nw-dark:   #0f172a;
    --nw-header-h: 68px;
}

/* ── SITE SHELL ────────────────────────────────────────────────── */
.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main {
    flex: 1;
    display: grid;
    gap: var(--size-6);
    padding: var(--size-6) var(--size-6);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── HEADER ────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: var(--nw-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--size-4);
    padding: 0 var(--size-6);
}

/* ── BRAND ─────────────────────────────────────────────────────── */
.site-brand-link {
    display: flex;
    align-items: center;
    gap: var(--size-3);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: white;
    white-space: nowrap;
}

/* ── DESKTOP NAV ───────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--size-1);
}

.nav-link {
    padding: 0.4em 0.75em;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: rgba(248, 250, 252, 0.65);
    border-radius: var(--radius-3);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link-active {
    color: white;
    background: rgba(255,255,255,0.07);
}

.nav-link-active {
    color: #a5b4fc;
}

.nav-cta {
    margin-left: var(--size-3);
    padding: 0.5em 1.1em;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--nw-delta), var(--nw-alpha));
    border-radius: var(--radius-round);
    transition: filter 0.15s, transform 0.15s;
    white-space: nowrap;
}

.nav-cta:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* ── MOBILE MENU BUTTON ────────────────────────────────────────── */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--size-2);
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(248,250,252,0.75);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ── MOBILE NAV DRAWER ─────────────────────────────────────────── */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: var(--size-4) var(--size-6) var(--size-5);
    border-top: 1px solid rgba(99,102,241,0.18);
    gap: var(--size-1);
}

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

.mobile-nav-link {
    padding: 0.65em 0.5em;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(248,250,252,0.7);
    text-decoration: none;
    border-radius: var(--radius-3);
    transition: color 0.15s, background 0.15s;
}

.mobile-nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.07);
}

.mobile-nav-cta {
    margin-top: var(--size-3);
    padding: 0.75em 1.2em;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--nw-delta), var(--nw-alpha));
    border-radius: var(--radius-round);
    text-decoration: none;
    text-align: center;
    transition: filter 0.15s;
}

.mobile-nav-cta:hover { filter: brightness(1.1); }

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--nw-dark);
    border-top: 1px solid rgba(99,102,241,0.18);
    color: rgba(248,250,252,0.65);
    margin-top: var(--size-4);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--size-7) var(--size-6) var(--size-5);
    display: grid;
    gap: var(--size-6);
    align-items: start;
}

@media (min-width: 700px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

.footer-brand {
    display: grid;
    gap: var(--size-3);
}

.footer-brand .brand-name {
    font-size: 1rem;
}

.footer-tagline {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(248,250,252,0.45);
    max-width: 52ch;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--size-1) var(--size-4);
}

.footer-nav a {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(248,250,252,0.5);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}

.footer-nav a:hover {
    color: rgba(248,250,252,0.9);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--size-4) var(--size-6);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-wrap: wrap;
    gap: var(--size-3) var(--size-6);
    justify-content: space-between;
    align-items: flex-start;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(248,250,252,0.35);
    line-height: 1.6;
}

.footer-disclaimer {
    max-width: 60ch;
}

/* ── SHARED UTILITY CLASSES ────────────────────────────────────── */

/* Open Props stack helpers */
.stack-tight  { display: grid; gap: var(--size-3); }
.stack-large  { display: grid; gap: var(--size-5); }

/* Eyebrow label */
.eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--site-accent-strong);
}

/* Lede paragraph */
.lede {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--site-text-muted);
    max-width: 64ch;
}

/* Panel card */
.panel {
    border-radius: var(--radius-4);
    border: 1px solid var(--site-border);
    background: var(--site-panel);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.65em 1.4em;
    min-height: 2.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-round);
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
    background: linear-gradient(135deg, var(--nw-delta), var(--nw-alpha));
    color: white;
    border: none;
}

.button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-4);
}

.button-secondary {
    background: transparent;
    color: var(--site-text);
    border: 1.5px solid var(--site-border);
}

.button-secondary:hover {
    background: var(--site-panel);
    border-color: var(--site-accent);
    filter: none;
}

.button-row {
    display: flex;
    gap: var(--size-3);
    flex-wrap: wrap;
    align-items: center;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .site-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-main {
        padding: var(--size-5) var(--size-4);
        gap: var(--size-5);
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 var(--size-4);
    }

    .page-main {
        padding: var(--size-4) var(--size-3);
    }
}
