/* ===========================================================
   EV EDUCATOR — Design System
   Palette: warm paper + leaf green + forest depth + amber spark
   Type: Fraunces (headlines, organic serif) + Inter (body/UI)
=========================================================== */

:root {
    --bg:            #FBFAF4;
    --bg-alt:        #EEF2E2;
    --bg-dark:       #223318;
    --leaf:          #6E9B37;
    --leaf-dark:     #3E5A24;
    --leaf-light:    #A8C97F;
    --charcoal:      #20241C;
    --charcoal-soft: #4B5142;
    --amber:         #DE9A34;
    --line:          #DCE2CE;
    --white:         #FFFFFF;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-organic: 28px 8px 28px 8px;
    --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--charcoal);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { max-width: 68ch; }

a { color: var(--leaf-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
    background: var(--leaf);
    color: var(--white);
}
.btn-primary:hover { background: var(--leaf-dark); }

.btn-outline {
    background: transparent;
    border-color: var(--charcoal);
    color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-amber {
    background: var(--amber);
    color: var(--charcoal);
}

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--charcoal);
}
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
    color: var(--charcoal-soft);
    font-weight: 500;
    font-size: 0.95rem;
}
.main-nav a:hover { color: var(--leaf-dark); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 860px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 78px; left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 20px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
    .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 88px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--leaf-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 18px;
}
.hero-eyebrow svg { width: 18px; height: 18px; }
.hero h1 { margin-bottom: 20px; }
.hero p.lede {
    font-size: 1.15rem;
    color: var(--charcoal-soft);
    margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-card {
    background: var(--white);
    border-radius: var(--radius-organic);
    padding: 28px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(62, 90, 36, 0.25);
}
.hero-card .tag {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--leaf-dark);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.hero-card h3 { margin-bottom: 8px; }
.hero-card .meta {
    display: flex;
    gap: 16px;
    color: var(--charcoal-soft);
    font-size: 0.85rem;
    margin: 14px 0;
}

@media (max-width: 860px) {
    .hero .container { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #D8E2C8; }

.section-head {
    max-width: 620px;
    margin-bottom: 44px;
}
.section-head p { color: var(--charcoal-soft); }

/* ---------- Grids ---------- */
.grid {
    display: grid;
    gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px 20px 20px 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -28px rgba(32, 36, 28, 0.3);
}
.card-thumb { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--charcoal-soft); font-size: 0.94rem; flex: 1; }
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.price { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--leaf-dark); }
.price .old { color: #A5AA98; text-decoration: line-through; font-size: 0.9rem; font-weight: 400; margin-right: 6px; }
.badge {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--leaf-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-failed { background: #FBE7E4; color: #A23B2A; }
.status-pending { background: #FBF0DC; color: #9A6A16; }
.status-paid { background: #E4F0DA; color: var(--leaf-dark); }

/* ---------- Steps / Process (genuine sequence, numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 8px; border-left: 3px solid var(--leaf); }
.step .num { font-family: var(--font-display); font-size: 2rem; color: var(--leaf); display: block; margin-bottom: 6px; }

/* ---------- Testimonial / quote ---------- */
.quote {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--charcoal);
    max-width: 720px;
    margin: 0 auto 20px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
}
.form-control:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
textarea.form-control { min-height: 140px; resize: vertical; }

.auth-box {
    max-width: 440px;
    margin: 60px auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-organic);
    padding: 40px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.alert-error { background: #FBE7E4; color: #A23B2A; }
.alert-success { background: #E4F0DA; color: var(--leaf-dark); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: #CBD6BC;
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 44px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer .brand { color: var(--white); }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #CBD6BC; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #9AA98A;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background: var(--bg-alt);
    padding: 56px 0;
    text-align: left;
}
.page-header p { color: var(--charcoal-soft); }

/* ---------- Legal / content pages ---------- */
.prose { max-width: 780px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose ul { color: var(--charcoal-soft); }

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--charcoal-soft); }
