/* autobodyprices.com — collision & body-repair cost guides.
   Tokens first, components after. All asset paths elsewhere are ABSOLUTE
   (/css/…, /js/…): nginx serves /deals-a without redirecting to /deals-a/,
   so a relative path would resolve one level too high and 404. */

:root {
  /* ink — warm near-black, not a pure grey */
  --ink:        #191713;
  --ink-muted:  #57514A;
  --ink-faint:  #8A827A;

  /* brand — deep automotive green */
  --brand:      #1E4D3B;
  --brand-dark: #143528;

  /* action — oxide red-orange, ONLY on real CTAs */
  --cta:        #C8442A;
  --cta-hover:  #A93520;
  --cta-soft:   #FBEDE9;

  /* surface — neutrals biased toward the brand hue */
  --bg:         #FFFFFF;
  --bg-soft:    #F4F5F2;
  --line:       #E1E0DA;
  --ok:         #2B7A4B;
  --err:        #B02A1F;

  /* type */
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  2.875rem;

  /* space */
  --s2: .5rem;  --s3: .75rem;  --s4: 1rem;    --s5: 1.25rem;
  --s6: 1.5rem; --s8: 2rem;    --s10: 2.5rem; --s12: 3rem;
  --s16: 4rem;  --s20: 5rem;

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1080px;
  --readw: 68ch;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--text-4xl); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 700; }
p  { margin: 0; }

a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }

:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── header + nav ─────────────────────────────────────────────────────── */
.header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between;
                gap: var(--s6); padding: var(--s4) 0; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl);
        color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--brand); }
.nav-desktop { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.nav-desktop a { color: var(--ink-muted); text-decoration: none; font-size: var(--text-sm);
                 font-weight: 600; }
.nav-desktop a:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: var(--s2); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2; }
.nav-mobile { display: none; list-style: none; margin: 0; padding: 0 var(--s6) var(--s4); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: var(--s3) 0; color: var(--ink);
                text-decoration: none; border-bottom: 1px solid var(--line); }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-block; padding: var(--s3) var(--s6); border-radius: var(--radius-sm);
       font-weight: 700; font-size: var(--text-sm); text-decoration: none; border: 0;
       cursor: pointer; font-family: var(--font-body); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-quiet { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }

/* ── forms — label is REQUIRED on every field (quality gate) ───────────── */
.capture { max-width: 30rem; }
.field { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s4); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-muted); }
.field input { padding: var(--s3) var(--s4); border: 1px solid var(--line);
               border-radius: var(--radius-sm); font-size: var(--text-base);
               font-family: var(--font-body); background: var(--bg); color: var(--ink); }
.field input:focus { border-color: var(--brand); }
/* Consent copy uses --ink-muted, NOT --ink-faint. Faint on white is ~3.5:1,
   under the 4.5:1 minimum for small text — and this is the one line on the page
   that carries legal weight, so it has to be readable. */
.consent { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--text-sm);
           color: var(--ink-muted); margin-bottom: var(--s4); line-height: 1.5; }
.consent input { margin-top: .2em; flex: none; }

/* ── cards + grid ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
        background: var(--bg); display: flex; flex-direction: column; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3);
             flex: 1; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em;
           text-transform: uppercase; color: var(--brand); }

/* ── sections ─────────────────────────────────────────────────────────── */
.section { padding: var(--s16) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: var(--readw); margin-bottom: var(--s10); display: flex;
                flex-direction: column; gap: var(--s3); }
.lead { font-size: var(--text-lg); color: var(--ink-muted); }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding: var(--s16) 0 var(--s12); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s12);
              align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--s5); align-items: flex-start; }
.hero img { border-radius: var(--radius); }

/* ── cost strip ───────────────────────────────────────────────────────── */
.cost-figure { font-family: var(--font-display); font-size: var(--text-2xl);
               font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }

/* ── footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--brand-dark); color: #D8E0DB; padding: var(--s12) 0 var(--s8); }
.footer a { color: #fff; }
.footer-links { display: flex; gap: var(--s5); list-style: none; margin: 0 0 var(--s4);
                padding: 0; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--s5);
                 font-size: var(--text-xs); color: #A8B5AD; display: flex;
                 flex-direction: column; gap: var(--s2); }

@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s8); }
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  h1 { font-size: var(--text-3xl); }
}
