/* ==========================================================================
   Africa Automotive Analysis — public website
   Identity colour is production's orange, #b8590b — the same --brand the
   portals and sign-in screens use (assets/css/style.css, auth-theme.css) —
   paired with the navy the portal shell's gradient settles into (#14243a /
   #3a4a66). White on #b8590b is 4.70:1.
   ========================================================================== */
:root {
    --brand: #b8590b;
    --brand-dark: #9c4c08;
    --brand-light: #e0730f;
    --brand-bright: #f5811b;
    --brand-ink: #14243a;
    --brand-ink-2: #3a4a66;
    --brand-tint: #fdf2e8;
    --ground: #f5f6f8;
    --surface: #ffffff;
    --text: #1a2230;
    --muted: #586273;
    --line: #e2e5ea;
    --on-dark: #eef1f6;
    --on-dark-muted: #aab4c4;
    --on-dark-accent: #f8b47a;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(20, 36, 58, .06), 0 8px 24px rgba(20, 36, 58, .07);
    --wrap: 1160px;
    --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
    margin: 0; background: var(--surface); color: var(--text);
    font: 400 17px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; color: var(--brand-ink); text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* --- buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em; padding: .78em 1.35em; border-radius: 999px;
    font: 600 1rem/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: var(--brand); color: var(--brand-dark); background: transparent; }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--light:hover { background: var(--brand-tint); color: var(--brand-ink); }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* --- top contact strip -------------------------------------------------- */
.topbar { background: var(--brand-ink); color: var(--on-dark-muted); font-size: .9rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.social { display: flex; gap: 6px; }
.social a { width: 32px; height: 32px; justify-content: center; border-radius: 50%; }
.social a:hover { background: rgba(255,255,255,.1); }
@media (max-width: 760px) { .topbar__contacts a.hide-sm { display: none; } }

/* --- header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px rgba(20,36,58,.06); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand__divider { width: 1px; height: 32px; background: var(--line); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a.nav__link { color: var(--text); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a.nav__link:hover { color: var(--brand-dark); background: var(--brand-tint); }
.nav__cta { display: flex; gap: 10px; margin-left: 10px; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--brand-ink); cursor: pointer; }
.nav__toggle .icon { width: 28px; height: 28px; }
@media (max-width: 980px) {
    .nav__toggle { display: inline-flex; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; box-shadow: 0 12px 24px rgba(20,36,58,.08); }
    .nav.is-open { display: flex; }
    .nav a.nav__link { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav__cta { margin: 14px 0 0; flex-direction: column; }
    .nav__cta .btn { justify-content: center; }
    .brand img { height: 38px; }
}

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--brand-ink); color: var(--on-dark); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 15% 10%, rgba(184,89,11,.38), transparent 60%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 .82rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.hero .eyebrow, .voice .eyebrow { color: var(--on-dark-accent); }
.hero__lead { font-size: 1.2rem; color: var(--on-dark); max-width: 34em; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero__badge { position: absolute; left: -18px; bottom: -18px; background: #fff; color: var(--brand-ink); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); font-weight: 600; line-height: 1.25; }
.hero__badge img { height: 34px; width: auto; }
.hero__badge small { display: block; font-weight: 500; color: var(--muted); }
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 36px; }
    .hero__badge { left: 12px; bottom: -14px; }
}

/* --- trust strip -------------------------------------------------------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 20px; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__item .icon { width: 28px; height: 28px; color: var(--brand); margin-top: 2px; }
.trust__item b { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--brand-ink); font-weight: 600; }
.trust__item span { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .trust .wrap { grid-template-columns: 1fr 1fr; } .trust__item:nth-child(2) { border-right: 0; } .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .trust .wrap { grid-template-columns: 1fr; } .trust__item { border-right: 0; border-bottom: 1px solid var(--line); } }

/* --- sections ----------------------------------------------------------- */
.section { padding: 88px 0; }
.section--ground { background: var(--ground); }
.section--tint { background: var(--brand-tint); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* steps (a real sequence: book -> pay -> inspect -> certificate) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.1rem/1 var(--font-display); margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3.2; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split--reverse .split__media { order: 0; } }

.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks .icon { color: var(--brand); margin-top: 4px; }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
.note { color: var(--muted); font-size: .98rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon .icon { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; }
/* eight cards: 4 x 2, 2 x 4 or 1 x 8 — never an orphan on the last row */
.cards--8 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards--8 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards--8 { grid-template-columns: 1fr; } }
.card--cta { background: var(--brand); border-color: var(--brand); color: #fff; display: flex; flex-direction: column; }
.card--cta h3 { color: #fff; }
.card--cta p { color: rgba(255,255,255,.88); margin-bottom: 18px; }
.card--cta .btn { margin-top: auto; align-self: flex-start; }

/* fees */
.fees { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.price { background: var(--brand-ink); color: var(--on-dark); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; }
.price h3 { color: #fff; }
.price__amount { font: 700 clamp(3rem, 6vw, 4.2rem)/1 var(--font-display); color: #fff; margin: 8px 0 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price__unit { color: var(--on-dark-muted); margin-bottom: 24px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.pay-methods li { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--on-dark); }
.price .btn { align-self: flex-start; margin-top: auto; }
.reinspect { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table th { font: 600 .82rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table td:last-child { font-weight: 600; color: var(--brand-ink); }
@media (max-width: 900px) { .fees { grid-template-columns: 1fr; } }

/* about / philosophy */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.fact { border-left: 3px solid var(--brand); padding: 4px 0 4px 14px; }
.fact b { display: block; font: 700 1.5rem/1.1 var(--font-display); color: var(--brand-ink); }
.fact span { color: var(--muted); font-size: .94rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.values { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 0; }
.values li { background: var(--brand-tint); color: var(--brand-dark); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }
.philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 900px) { .philosophy { grid-template-columns: 1fr; } }

/* regulator band */
.regulator { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.regulator img { width: 200px; }
.regulator p { margin: 0 0 .6em; color: var(--muted); }
@media (max-width: 700px) { .regulator { grid-template-columns: 1fr; padding: 28px; } }

/* customer band */
.voice { background: var(--brand-ink); color: var(--on-dark); }
.voice .split__media img { aspect-ratio: 4 / 3; }
.voice h2 { color: #fff; }
.voice p { color: var(--on-dark); font-size: 1.12rem; }
.voice__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .icon { width: 22px; height: 22px; color: var(--brand); margin-top: 3px; }
.contact__list b { display: block; font-weight: 600; color: var(--brand-ink); }
.contact__list span, .contact__list a { color: var(--muted); text-decoration: none; }
.contact__list a:hover { color: var(--brand-dark); text-decoration: underline; }
.contact__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--ground); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.social--light a { color: var(--brand-dark); border: 1px solid var(--line); }
.social--light a:hover { background: var(--brand-tint); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* --- footer ------------------------------------------------------------- */
.site-footer { background: var(--brand-ink); color: var(--on-dark-muted); padding: 64px 0 0; font-size: .96rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__logos { display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.footer__logos img { height: 34px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* --- document pages (policy, terms) ------------------------------------ */
.page-hero { background: var(--brand-ink); color: var(--on-dark); padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .3em; }
.page-hero p { color: var(--on-dark-muted); margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.doc { padding: 56px 0 80px; background: var(--ground); }
.doc__body { max-width: 820px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 52px; }
.doc__body h2 { font-size: 1.45rem; margin: 2em 0 .55em; padding-top: .2em; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body p, .doc__body li { color: #2a3936; max-width: 72ch; }
.doc__body ol, .doc__body ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc__body li { margin-bottom: .35em; }
.doc__body table { border-collapse: collapse; margin: .4em 0 1.2em; font-variant-numeric: tabular-nums; }
.doc__body th, .doc__body td { border: 1px solid var(--line); padding: 10px 16px; text-align: left; }
.doc__body th { background: var(--ground); font-weight: 600; }
.doc__contact { margin-top: 2.4em; padding: 22px 24px; background: var(--brand-tint); border-radius: 10px; }
.doc__contact h2 { margin-top: 0 !important; }
@media (max-width: 700px) { .doc__body { padding: 28px 22px; } }
