/* ==========================================================================
   Wave Asset Management — Shared Stylesheet
   Brand: Navy (#1e3a8a) + Gold (#cda85f), Inter
   ========================================================================== */

:root {
    --blue-950: #172554;
    --blue-900: #1e3a8a;
    --blue-800: #1e40af;
    --gold: #cda85f;
    --gold-dark: #b5924a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--slate-800);
    background-color: var(--slate-50);
}
a { text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.eyebrow {
    font-size: 0.8rem; font-weight: 700; color: var(--gold);
    letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem;
}

/* ---------- Navigation ---------- */
header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--slate-200);
}
.nav { display: flex; justify-content: space-between; align-items: center; height: 5rem; }
.logo { font-size: 1.15rem; font-weight: 800; color: var(--blue-900); letter-spacing: 0.06em; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--slate-600); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-900); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 700; border-radius: 9999px; padding: 0.9rem 2rem;
    transition: all 0.2s; cursor: pointer; border: 2px solid transparent; font-size: 1rem;
}
.btn-primary { background: var(--blue-900); color: var(--white); box-shadow: 0 10px 15px -3px rgba(30,58,138,0.2); }
.btn-primary:hover { background: var(--blue-800); }
.btn-gold { background: var(--gold); color: var(--blue-950); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: var(--white); color: var(--blue-900); border-color: var(--blue-900); }
.btn-outline:hover { background: var(--slate-50); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 6rem 0 4rem; text-align: center; }
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; color: var(--blue-900);
    letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.5rem;
}
.hero p { font-size: 1.25rem; color: var(--slate-600); max-width: 720px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.free-badge {
    display: inline-block; background: var(--blue-900); color: var(--white);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 0.4rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem;
}
.free-badge span { color: var(--gold); }

/* ---------- Generic section ---------- */
section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--blue-900); margin-bottom: 1rem; }
.section-head p { color: var(--slate-600); font-size: 1.1rem; }
.bg-light { background: var(--slate-100); }
.bg-white { background: var(--white); }

/* ---------- Nodes (home) ---------- */
.nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.node {
    position: relative; background: var(--slate-50); border: 1px solid var(--slate-100);
    border-radius: 1.5rem; padding: 2rem; transition: all 0.2s; overflow: hidden;
}
.node:hover { border-color: #bfdbfe; transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.node.dark { background: var(--blue-900); border-color: var(--blue-800); }
.node .node-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: flex; align-items: center;
    justify-content: center; margin-bottom: 1.5rem; font-size: 1.6rem;
}
.node .ic-gold { background: var(--blue-900); color: var(--gold); }
.node .ic-outline { background: var(--white); color: var(--blue-900); border: 2px solid var(--blue-900); }
.node .ic-solid { background: var(--gold); color: var(--blue-900); }
.node h4 { font-size: 1.25rem; font-weight: 700; color: var(--blue-900); margin-bottom: 0.75rem; }
.node.dark h4 { color: var(--white); }
.node p { color: var(--slate-600); margin-bottom: 1.25rem; }
.node.dark p { color: #c7d2fe; }
.node .node-link { font-weight: 700; color: var(--blue-900); display: inline-flex; align-items: center; gap: 0.4rem; }
.node.dark .node-link { color: var(--gold); }
.node .node-link:hover { color: var(--gold); }
.node.dark .node-link:hover { color: var(--white); }

/* ---------- Framework + video ---------- */
.framework { background: var(--slate-100); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.framework-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.framework-grid h3 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--blue-900); margin-bottom: 1.5rem; }
.framework-grid p { font-size: 1.1rem; color: var(--slate-600); margin-bottom: 1.5rem; }
.framework-list { list-style: none; margin-bottom: 1.5rem; }
.framework-list li { display: flex; align-items: center; gap: 0.75rem; color: var(--slate-800); font-weight: 500; padding: 0.4rem 0; }
.framework-list li .dot { color: var(--gold); font-weight: 900; }
.video-wrap {
    position: relative; border-radius: 1.25rem; overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35); border: 4px solid var(--white);
    background: #0f172a; aspect-ratio: 16 / 9;
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Survey card (resiliency) ---------- */
.survey-card { background: var(--white); border: 1px solid var(--slate-100); border-radius: 1.5rem; padding: 2.5rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05); }
.survey-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.survey-icon { width: 3rem; height: 3rem; flex-shrink: 0; background: #dbeafe; color: var(--blue-900); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; }
.survey-head h3 { font-size: 1.5rem; font-weight: 700; color: var(--blue-900); }
.survey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.survey-grid h4 { font-weight: 700; color: var(--slate-800); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.survey-grid h4 .check { color: var(--gold); font-weight: 900; }
.survey-grid ul { list-style: none; }
.survey-grid li, .bullet-list li { color: var(--slate-600); padding: 0.35rem 0 0.35rem 1.25rem; position: relative; }
.survey-grid li::before, .bullet-list li::before { content: "\2022"; color: var(--blue-800); position: absolute; left: 0; font-weight: 700; }

/* ---------- EWAF quick grid ---------- */
.ewaf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ewaf-item { text-align: center; background: var(--white); border: 1px solid var(--slate-100); border-radius: 1rem; padding: 2rem 1rem; }
.ewaf-letter { font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.ewaf-item h4 { color: var(--blue-900); font-size: 1.1rem; margin: 0.75rem 0 0.5rem; }
.ewaf-item p { font-size: 0.88rem; color: var(--slate-600); }

/* ---------- Cards / solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.card { background: var(--white); border: 1px solid var(--slate-100); border-radius: 1.25rem; padding: 2rem; transition: all 0.2s; }
.card:hover { border-color: #bfdbfe; transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08); }
.card-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.card h4 { font-size: 1.25rem; font-weight: 700; color: var(--blue-900); margin-bottom: 0.5rem; }
.card .tagline { font-size: 0.9rem; font-weight: 600; color: var(--slate-800); margin-bottom: 1rem; }
.card ul { list-style: none; }
.card li { font-size: 0.9rem; color: var(--slate-600); padding: 0.3rem 0 0.3rem 1.1rem; position: relative; }
.card li::before { content: "\2022"; color: var(--gold); position: absolute; left: 0; font-weight: 700; }
.card li strong { color: var(--slate-800); }

/* ---------- Why it pays off ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-item { padding: 1.75rem; background: var(--slate-50); border-radius: 1rem; border-left: 4px solid var(--gold); }
.why-item h4 { color: var(--blue-900); font-size: 1.1rem; margin-bottom: 0.4rem; }
.why-item p { font-size: 0.92rem; color: var(--slate-600); }

/* ---------- Entertainment feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row h3 { font-size: 1.9rem; font-weight: 700; color: var(--blue-900); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.feature-row h3 .ic { color: var(--gold); }
.feature-row p { font-size: 1.1rem; color: var(--slate-600); margin-bottom: 1.5rem; }
.feature-media { border-radius: 1.5rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.feature-media img { width: 100%; height: 420px; object-fit: cover; }
.feature-stack { display: grid; gap: 1.5rem; }
.feature-stack img { width: 100%; height: 220px; object-fit: cover; border-radius: 1.25rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* ---------- Shop ---------- */
.trust-bar { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; align-items: center; background: var(--white); padding: 0.85rem 1.75rem; border-radius: 9999px; border: 1px solid var(--slate-200); box-shadow: 0 4px 6px rgba(0,0,0,0.04); }
.trust-bar span { font-size: 0.85rem; font-weight: 700; color: var(--slate-600); display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-bar .divider { width: 1px; height: 1rem; background: var(--slate-200); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product { background: var(--white); border: 1px solid var(--slate-100); border-radius: 1.5rem; overflow: hidden; transition: all 0.25s; display: flex; flex-direction: column; }
.product:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.18); transform: translateY(-6px); }
.product-img { position: relative; height: 18rem; background: var(--slate-100); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product:hover .product-img img { transform: scale(1.05); }
.product-price { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); padding: 0.4rem 1rem; border-radius: 9999px; font-weight: 700; color: var(--blue-900); }
.product-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--blue-900); margin-bottom: 0.6rem; }
.product-body p { font-size: 0.9rem; color: var(--slate-600); margin-bottom: 1.5rem; flex: 1; }

/* ---------- Affiliate teaser ---------- */
.affiliate-teaser { position: relative; background: var(--blue-900); border-radius: 1.5rem; padding: 3.5rem 2rem; text-align: center; overflow: hidden; }
.affiliate-teaser h3 { font-size: 1.9rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.affiliate-teaser p { color: #c7d2fe; font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }

/* ---------- Value banner (resiliency) ---------- */
.banner { background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 100%); color: var(--white); padding: 4rem 0; }
.banner h2 { text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.banner .sub { text-align: center; color: #c7d2fe; max-width: 640px; margin: 0 auto 2.5rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; }
.stat .big { font-size: 1.6rem; font-weight: 900; color: var(--gold); letter-spacing: 0.05em; }
.stat .small { font-size: 0.85rem; color: #c7d2fe; margin-top: 0.25rem; }

/* ---------- CTA ---------- */
.cta { background: var(--blue-900); }
.cta-box { text-align: center; max-width: 720px; margin: 0 auto; color: var(--white); }
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.cta-box p { color: #c7d2fe; font-size: 1.15rem; margin-bottom: 2rem; }
.cta-contact { margin-top: 1.5rem; font-size: 0.95rem; color: #c7d2fe; }
.cta-contact a { color: var(--gold); font-weight: 600; }

/* ---------- Affiliations bar ---------- */
.affiliations { background: var(--white); border-top: 1px solid var(--slate-200); padding: 3.5rem 0; }
.affiliations h4 { text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 2rem; }
.affil-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.affil-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 1rem;
    padding: 1.5rem 1rem; min-height: 7rem; transition: all 0.2s;
}
.affil-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }
.affil-card .mark { font-size: 1.05rem; font-weight: 800; color: var(--blue-900); line-height: 1.2; }
.affil-card .kind { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); margin-top: 0.4rem; }

/* ---------- Footer ---------- */
footer { background: var(--blue-950); color: var(--white); padding: 3rem 0 2rem; border-top: 6px solid var(--gold); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-inner .brand { font-weight: 800; letter-spacing: 0.06em; }
.footer-inner .brand small { display: block; font-weight: 500; color: var(--slate-400); letter-spacing: 0.15em; font-size: 0.7rem; margin-top: 0.25rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.85rem; flex-wrap: wrap; }
.footer-links a { color: var(--slate-400); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.partner-note { text-align: center; font-size: 0.8rem; color: var(--slate-500); margin-top: 1.5rem; }
.copyright { text-align: center; color: #64748b; font-size: 0.8rem; margin-top: 0.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .stats, .ewaf { grid-template-columns: repeat(2, 1fr); }
    .nodes, .solutions, .why-grid, .products { grid-template-columns: repeat(2, 1fr); }
    .framework-grid, .feature-row { grid-template-columns: 1fr; gap: 2rem; }
    .affil-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    /* Hide the inline links; show the hamburger (injected by script.js) */
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    /* When script.js adds .open, drop the links as a stacked panel */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 5rem; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--slate-200);
        padding: 0.5rem 1.5rem 1rem;
        box-shadow: 0 12px 24px rgba(23,37,84,0.08);
    }
    .nav-links.open a { padding: 0.85rem 0; border-bottom: 1px solid var(--slate-200); }
    .nav-links.open a:last-child { border-bottom: none; }

    .survey-grid, .stats, .ewaf, .nodes, .solutions, .why-grid, .products { grid-template-columns: 1fr; }
    .affil-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 4rem 0 3rem; }
}

/* ---------- Mobile nav hamburger (hidden on desktop) ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none; border: none; cursor: pointer;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--blue-900); border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Slightly stronger header shadow once the page is scrolled */
header.scrolled { box-shadow: 0 4px 16px rgba(23,37,84,0.06); }
