/* forklift-certification.io -- marketing/sales-page design system.
   Colors and component patterns ported directly from ELDT.io's
   css/main.css (the real trust/conversion system there -- NOT the
   separate lesson/quiz-app DESIGN-SYSTEM.md, which is a different,
   unrelated palette for a different surface). */

:root {
    --bg: #FAFAF9;
    --surface: #F0EEE9;
    --text: #1A1A1A;
    --text-muted: #4A4A4A;

    --accent: #954707;
    --accent-hover: #7A3A06;
    --success: #03774B;
    --border: #E5E5E5;

    --font-body: 17px;
    --font-small: 14px;
    --font-h1: 42px;
    --font-h2: 28px;
    --font-h3: 22px;

    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-8: 64px;

    --radius: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

main { display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--space-4); }
h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

.wrap, .container { max-width: 1080px; margin: 0 auto; padding: 0 var(--space-5); }

/* ---------------- Header ---------------- */
.site-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid var(--accent);
    color: #fff;
}
.header-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.logo {
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo span { color: var(--accent); }
.logo:hover { color: #fff; }
.logo small { font-size: 11px; font-weight: 400; color: #bbb; letter-spacing: .2px; }

nav[aria-label="primary"] { display: flex; align-items: center; }
.menu-toggle-label { display: none; background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; }
.nav-links { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.nav-links a { color: #e5e5e5; font-size: var(--font-small); font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-welcome { color: #aaa; font-size: var(--font-small); }
.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
}
.nav-cta:hover { background: var(--accent-hover); }

@media (max-width: 760px) {
    .menu-toggle-label { display: block; }
    .nav-links { display: none; flex-direction: column; align-items: flex-start; width: 100%; }
    .nav-links.is-open { display: flex; }
}

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(135deg, rgba(149,71,7,.08) 0%, rgba(149,71,7,.02) 100%);
    padding: var(--space-8) 0 var(--space-6);
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: var(--success);
    color: #fff;
    font-weight: 700;
    font-size: var(--font-small);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: var(--space-4);
}
.hero h1 { margin-bottom: var(--space-3); }
.hero-subtitle { color: var(--text-muted); max-width: 640px; margin: 0 auto var(--space-5); font-size: 1.1rem; }

.cta-primary, .cta-secondary, .btn-primary {
    display: inline-block;
    padding: 18px 48px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
}
.cta-primary, .btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(149,71,7,.3);
}
.cta-primary:hover, .btn-primary:hover { background: var(--accent-hover); color: #fff; }
.cta-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}
.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Base: a plain full-width checklist, usable inside any section/card
   without narrowing or re-centering surrounding content. The hero's
   centered/narrowed version is scoped separately below so reusing this
   class elsewhere (compare.php, course-card bullets) doesn't create a
   narrow centered island misaligned against full-width text around it. */
.proof-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; text-align: left; }
.proof-list li { padding: 6px 0; color: var(--text-muted); }
.proof-list li::before { content: "\2713"; color: var(--success); font-weight: 700; margin-right: 10px; }
.hero .proof-list { max-width: 480px; margin: var(--space-5) auto 0; }

/* ---------------- Sections / cards ---------------- */
section { padding: var(--space-8) 0; }
section.alt { background: var(--surface); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); align-items: stretch; }
@media (max-width: 860px) {
    .grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid3, .grid2 { grid-template-columns: 1fr; }
}
.grid3 > .card, .grid2 > .card { display: flex; flex-direction: column; height: 100%; }

/* For a dynamic/unpredictable item count (e.g. reviews.php's approved-review
   list) -- unlike grid3/grid2, which are for a fixed, author-controlled
   card count and should never use auto-fit (see git history: auto-fit
   there caused uneven desktop layouts). Here the count genuinely varies,
   so flexible wrapping is correct, not a bug. */
.grid-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
}

.course-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
}
.course-card.featured { border: 3px solid var(--accent); }
.course-card .badge-featured {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.compliance-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-6);
}

.review-snippet-card {
    background: #f6f3ee;
    border: 1px solid #e5ddd0;
    border-radius: var(--radius);
    padding: var(--space-5);
}
.review-snippet-card .review-label {
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.star { color: #f6ad55; }

.success-box {
    background: #f0fff4;
    border: 2px solid #9ae6b4;
    color: #22543d;
    border-radius: var(--radius);
    padding: var(--space-5);
}

/* FAQ accordions */
details { border-bottom: 1px solid var(--border); padding: var(--space-3) 0; }
details > summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; color: var(--accent); position: absolute; right: 0; font-weight: 700; }
details[open] > summary::after { content: "\2212"; }
details p { color: var(--text-muted); margin-top: var(--space-2); }

.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
    text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section .cta-primary { background: #fff; color: var(--accent); box-shadow: none; }
.cta-section .cta-primary:hover { background: #f0f0f0; }

/* Compare table */
table.compare-table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; }
table.compare-table th, table.compare-table td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--border); }
table.compare-table tr.us-row { background: #f6f3ee; font-weight: 600; }

/* ---------------- Footer ---------------- */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--accent);
    color: #ccc;
    padding: var(--space-8) 0 var(--space-5);
}
.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}
.footer-section h3 { color: #fff; font-size: 15px; margin-bottom: var(--space-3); }
.footer-section a { display: block; color: #bbb; font-size: var(--font-small); padding: 3px 0; }
.footer-section a:hover { color: #fff; }
.footer-section p { color: #aaa; font-size: var(--font-small); }
.footer-bottom {
    max-width: 1080px;
    margin: var(--space-6) auto 0;
    padding: var(--space-5) var(--space-5) 0;
    border-top: 1px solid #444;
    text-align: center;
    color: #999;
    font-size: var(--font-small);
}
@media (max-width: 760px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
}
