/* ═══════════════════════════════════════════════════════
   FAQDOMAIN.COM — Design System
   Based on URL.Ventures Fundamentals
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Libre+Franklin:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-cream: #ffffff;
    --bg-cream-alt: #f9f9f7;
    --cream-text: #2a2418;
    --cream-muted: #6a5e50;
    --red: #e63946;
    --gold: #c8a84e;
    --green: #2ecc71;
    --teal: #2bb7c4;
    --text-primary: #f0ece4;
    --text-secondary: #a8a4a0;
    --text-muted: #6a6660;
    --border: #2a2a34;
    --border-cream: #ccc8be;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--bg-cream);
    color: var(--cream-text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

/* ── Navigation ─────────────────────────────── */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-brand .brand-sub {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-weckett {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-weckett:hover { color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

/* ── Hero ─────────────────────────────── */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 860px;
    margin: 0 auto;
}

.hero-tag {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    color: var(--cream-text);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--red);
}

.hero-sub {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 19px;
    color: var(--cream-muted);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* ── Buttons ─────────────────────────────── */
.btn-primary {
    display: inline-block;
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--cream-text);
    color: var(--bg-cream);
    padding: 16px 40px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { background: var(--red); }

.btn-ghost {
    display: inline-block;
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: var(--cream-text);
    padding: 14px 38px;
    text-decoration: none;
    border: 2px solid var(--cream-text);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 32px 0;
}

/* ── Stat Cards ─────────────────────────────── */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid var(--border-cream);
    background: rgba(255,255,255,0.3);
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 42px;
    color: var(--cream-text);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream-muted);
}

/* ── Content Sections ─────────────────────────────── */
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.section {
    padding: 48px 0;
    border-top: 1px solid var(--border-cream);
}

.section-tag {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin-bottom: 8px;
}

.section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 28px;
    color: var(--cream-text);
    margin-bottom: 20px;
}

.section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--cream-text);
    margin: 32px 0 12px;
}

.section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--cream-text);
    margin-bottom: 16px;
}

.section ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.section ul li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--cream-text);
    padding: 6px 0 6px 20px;
    position: relative;
}

.section ul li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 900;
    font-size: 1.3em;
}

.section .note {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 12px;
    color: var(--cream-muted);
    margin-top: 16px;
    font-style: italic;
}

.pull-quote {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    color: var(--cream-text);
    border-left: 3px solid var(--red);
    padding-left: 20px;
    margin: 32px 0;
    line-height: 1.5;
}

/* ── Accordion FAQ ─────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border-cream);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--cream-text);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
}

.faq-q:hover { color: var(--red); }

.faq-q .arrow {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    transition: transform 0.3s;
    color: var(--cream-muted);
}

.faq-item.open .faq-q .arrow { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-a p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--cream-muted);
}

/* ── Chapter Progress ─────────────────────────────── */
.progress-bar-wrap {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.progress-label {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-track {
    height: 4px;
    background: var(--border-cream);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--red);
    transition: width 0.6s ease;
}

/* ── Dark Section (for contrast blocks) ─────────── */
.dark-block {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 60px 24px;
}

.dark-block .section-tag { color: var(--gold); }
.dark-block h2 { color: var(--text-primary); }
.dark-block p { color: var(--text-secondary); }
.dark-block .pull-quote { color: var(--text-primary); border-left-color: var(--gold); }

/* ── CTA Block ─────────────────────────────── */
.cta-block {
    text-align: center;
    padding: 60px 24px;
    border-top: 1px solid var(--border-cream);
}

.cta-block h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-block p {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: var(--cream-muted);
    margin-bottom: 32px;
}

/* ── Next Chapter Nav ─────────────────────────────── */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid var(--border-cream);
    margin-top: 40px;
}

.chapter-nav a {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cream-text);
    text-decoration: none;
    transition: color 0.2s;
}

.chapter-nav a:hover { color: var(--red); }

.chapter-nav .next { text-align: right; }

/* ── Glossary ─────────────────────────────── */
.glossary-grid {
    display: grid;
    gap: 0;
}

.glossary-term {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-cream);
}

.glossary-term dt {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--cream-text);
    margin-bottom: 4px;
}

.glossary-term dd {
    font-size: 15px;
    color: var(--cream-muted);
    line-height: 1.7;
}

/* ── Footer ─────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 60px 24px 30px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ── Scroll Animations ─────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 767px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 30px; }
    .stat-strip { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .btn-primary, .btn-ghost { display: block; margin: 8px auto; max-width: 280px; text-align: center; }
    .chapter-nav { flex-direction: column; gap: 16px; }
    .chapter-nav .next { text-align: left; }
}
