/* ==========================================================================
   Catch The Vision Autos — shared stylesheet
   Palette: cooled steel + soot + ember + clean ceramic
   Type: Archivo (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
   ========================================================================== */

:root {
  --soot:        #131519;
  --iron:        #1B1F25;
  --iron-hi:     #232830;
  --steel:       #333A44;
  --ash:         #98A1AC;
  --ash-dim:     #6E7681;
  --ceramic:     #EFEAE1;
  --ember:       #E8622B;
  --ember-deep:  #A32B10;
  --ember-glow:  rgba(232, 98, 43, 0.14);

  --max:      1120px;
  --gap:      clamp(1rem, 3vw, 2rem);
  --pad-sec:  clamp(3.5rem, 8vw, 6.5rem);
  --radius:   4px;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--soot);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--ceramic); text-decoration-color: var(--steel); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ember); color: #fff; padding: 0.75rem 1.25rem; z-index: 100;
  font-family: var(--font-mono); font-size: 0.8125rem;
}
.skip:focus { left: 0; }

/* --- Type ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ceramic);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
}

h1 { font-size: clamp(2.35rem, 6.2vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.018em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ceramic); font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 1.1rem;
  display: block;
}
.eyebrow-ash { color: var(--ash-dim); }

.lede {
  font-size: clamp(1.075rem, 1.9vw, 1.25rem);
  line-height: 1.55;
  color: var(--ash);
  max-width: 60ch;
}

.mono { font-family: var(--font-mono); }

/* --- Layout -------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

.section { padding: var(--pad-sec) 0; }
.section-line { border-top: 1px solid var(--steel); }
.section-iron { background: var(--iron); }

.narrow { max-width: 68ch; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.sec-head { max-width: 62ch; margin-bottom: 2.75rem; }

/* --- Header -------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 21, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: var(--ceramic);
  text-decoration: none;
  line-height: 1.1;
  display: block;
}
.brand span { color: var(--ember); }
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin-top: 2px;
}

.nav { display: none; gap: 1.6rem; align-items: center; }
.nav a {
  font-size: 0.9rem;
  color: var(--ash);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ceramic); border-bottom-color: var(--ember); }
.nav a[aria-current="page"] { color: var(--ceramic); border-bottom-color: var(--ember); }
@media (min-width: 940px) { .nav { display: flex; } }

.head-cta { display: none; }
@media (min-width: 620px) { .head-cta { display: inline-flex; } }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ember);
  color: #16110D;
  font-weight: 600;
}
.btn-primary:hover { background: #F2743E; }
.btn-ghost {
  border-color: var(--steel);
  color: var(--ceramic);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ceramic); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* --- Hero ---------------------------------------------------------------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--ember); }

/* Signature: DPF cross-section, soot on one side, clean ceramic on the other */
.monolith {
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--iron);
  padding: 1.1rem;
}
.monolith figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash-dim);
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 0.9rem;
}

/* --- Cards --------------------------------------------------------------- */

.card {
  background: var(--iron);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.section-iron .card { background: var(--iron-hi); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.975rem; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 0.85rem;
}

a.card { text-decoration: none; display: block; transition: border-color 0.16s ease; }
a.card:hover { border-color: var(--ember); }
a.card p { color: var(--ash); }

/* --- Steps (a real sequence, so numbered) -------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--steel);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ember);
  padding-top: 0.2rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { font-size: 0.975rem; }

/* --- Detail rows --------------------------------------------------------- */

.rows { border-top: 1px solid var(--steel); }
.rows div {
  display: grid; gap: 0.25rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--steel);
}
@media (min-width: 700px) { .rows div { grid-template-columns: 15rem 1fr; } }
.rows dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.rows dd { margin: 0; color: var(--ceramic); }

/* --- Callout ------------------------------------------------------------- */

.callout {
  border: 1px solid var(--steel);
  border-left: 3px solid var(--ember);
  background: var(--ember-glow);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.callout h3 { margin-bottom: 0.4rem; }
.callout p { color: var(--ceramic); }

/* --- FAQ ----------------------------------------------------------------- */

.faq { border-top: 1px solid var(--steel); }
.faq details { border-bottom: 1px solid var(--steel); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--ceramic);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 1.15rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--ember);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.4rem; max-width: 70ch; font-size: 0.975rem; }

/* --- Form ---------------------------------------------------------------- */

.form { display: grid; gap: 1.15rem; max-width: 34rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ash);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ceramic);
  background: var(--soot);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ember); }
.field-note { font-size: 0.8125rem; color: var(--ash-dim); }
.hp { position: absolute; left: -9999px; }

/* --- Footer -------------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--steel);
  background: var(--iron);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 7rem;
  font-size: 0.9375rem;
}
@media (min-width: 620px) { .site-foot { padding-bottom: 3rem; } }
.foot-grid { display: grid; gap: 2.25rem; }
@media (min-width: 780px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin-bottom: 0.9rem;
}
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-list a { color: var(--ash); text-decoration: none; }
.foot-list a:hover { color: var(--ceramic); }
.foot-base {
  border-top: 1px solid var(--steel);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ash-dim);
}
address { font-style: normal; }

/* --- Sticky mobile action bar -------------------------------------------- */

.bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--steel);
  background: rgba(19, 21, 25, 0.96);
  backdrop-filter: blur(10px);
}
.bar a {
  padding: 1rem 0.5rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ceramic);
}
.bar a:first-child { background: var(--ember); color: #16110D; font-weight: 600; }
@media (min-width: 620px) { .bar { display: none; } }
