/* Theo Varden — learn.theovarden.com */

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

:root {
    --bg: #0e0f11;
    --bg-alt: #16181c;
    --surface: #1a1d22;
    --ink: #f4f1ea;
    --ink-soft: #c8c2b8;
    --muted: #9aa0aa;
    --line: #2a2d33;
    --navy: #d99b3d;
    --navy-dark: #b8822f;
    --coral: #d99b3d;
    --coral-hover: #e8b04a;
    --gold: #d99b3d;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
    --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;
    --container: 1120px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 17px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(14, 15, 17, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-main a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-main a:hover { color: var(--ink); }

.nav-cta {
    background: var(--coral) !important;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 999px;
}

.nav-cta:hover {
    background: var(--coral-hover) !important;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: 8px 14px;
    font: inherit;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.mobile-nav a {
    padding: 12px 0;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { display: flex; }

/* Hero */
.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(ellipse 80% 60% at 70% -10%, rgba(30, 58, 95, 0.08) 0%, transparent 60%),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(30, 58, 95, 0.08);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

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

.hero-lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--muted);
}

.hero-trust li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-trust li::before {
    content: '✓';
    color: var(--navy);
    font-weight: 700;
}

/* Opt-in card */
.optin-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
}

.optin-card h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 8px;
}

.optin-sub {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 24px;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 4px;
    display: block;
}

.form-input {
    width: 100%;
    font: inherit;
    font-size: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.form-check input { margin-top: 3px; flex-shrink: 0; }

.form-check a { color: var(--navy); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}

.btn-primary {
    width: 100%;
    background: var(--coral);
    color: #fff;
    box-shadow: 0 4px 16px rgba(212, 92, 74, 0.35);
}

.btn-primary:hover {
    background: var(--coral-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--navy);
    color: #fff;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

.optin-success {
    display: none;
    text-align: center;
    padding: 24px 0;
}

.optin-success.is-visible { display: block; }
.form-stack.is-hidden { display: none; }

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats */
.stats-bar {
    background: var(--navy);
    color: #fff;
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.85;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 12px;
}

.section-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.card-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--coral);
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    font-size: 15px;
    color: var(--ink-soft);
}

/* About split */
.about-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.about-photo {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0;
    background: var(--navy);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-photo-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 48px 24px 24px;
    background: linear-gradient(to top, rgba(15, 35, 55, 0.92) 0%, rgba(15, 35, 55, 0.4) 70%, transparent 100%);
    color: #fff;
}

.about-photo-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

.about-photo-role {
    font-size: 14px;
    opacity: 0.85;
}

.about-body p {
    margin-bottom: 18px;
    color: var(--ink-soft);
}

.about-body strong { color: var(--ink); }

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.testimonial p {
    font-size: 15px;
    color: var(--ink-soft);
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial cite {
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
}

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

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--coral);
    font-size: 20px;
    line-height: 1;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    margin-top: 12px;
    font-size: 15px;
    color: var(--ink-soft);
}

/* CTA band */
.cta-band {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 64px 0;
    text-align: center;
}

.cta-band h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 12px;
}

/* Legal pages */
.legal-page {
    padding: 56px 0 80px;
}

.legal-page h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.legal-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 36px;
}

.legal-page h2 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
}

.legal-page p,
.legal-page li {
    color: var(--ink-soft);
    margin-bottom: 14px;
    font-size: 16px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 0 80px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.contact-card h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.contact-row {
    margin-bottom: 20px;
}

.contact-row dt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 4px;
}

.contact-row dd {
    font-size: 16px;
    color: var(--ink);
}

.contact-row a {
    color: var(--navy);
    text-decoration: none;
}

.contact-row a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
    background: var(--bg-alt);
    color: var(--ink-soft);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.footer-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--ink-soft);
}

.footer-contact a {
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
}

.footer-links a:hover { color: var(--ink); }

.footer-address {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--muted);
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 12px !important;
}

@media (max-width: 960px) {
    .hero-grid,
    .about-split,
    .contact-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .cards-3,
    .testimonials,
    .stats-grid { grid-template-columns: 1fr; }

    .nav-main { display: none; }
    .nav-toggle { display: block; }
}

@media (max-width: 640px) {
    .hero { padding-top: 48px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Cookie consent ---- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    pointer-events: none;
}

.cookie-banner-inner {
    pointer-events: auto;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #1e3a5f 0%, #152a45 100%);
    color: #f6f3ed;
    box-shadow: 0 18px 50px rgba(21, 42, 69, 0.35);
    border: 1px solid rgba(255,255,255,0.08);
    animation: cookieIn .35s ease-out;
}

@keyframes cookieIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: #fff;
}

.cookie-banner-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(246, 243, 237, 0.82);
    max-width: 56ch;
}

.cookie-banner-text a {
    color: #f0d9a8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn--primary {
    background: #d45c4a;
    color: #fff;
}

.cookie-btn--primary:hover { background: #c04e3d; }

.cookie-btn--ghost {
    background: transparent;
    color: #f6f3ed;
    border: 1px solid rgba(246, 243, 237, 0.35);
}

.cookie-btn--ghost:hover {
    border-color: rgba(246, 243, 237, 0.7);
}

@media (max-width: 720px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }
    .cookie-banner-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
}

