/* TORQUE AUTO CARE main.css: consumes tokens.css only. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  margin: 0 0 var(--s-4);
  font-weight: 640;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 var(--s-4); }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-1); }
::selection { background: var(--accent); color: var(--bg); }

.skip-link {
  position: fixed; top: -100%; left: var(--s-4); z-index: var(--z-skip);
  background: var(--fg); color: var(--bg); padding: var(--s-3) var(--s-5);
  border-radius: var(--r-1); text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- shared roles ---------- */
.lane { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--edge); }
.lane--narrow { max-width: 52rem; }
.stretch { padding-block: var(--section-pad); background: var(--bg); color: var(--fg); }
.stretch-head { margin-bottom: var(--s-7); }
.stretch-head h2 { max-width: 26ch; }
.decal {
  font-family: var(--font-display);
  font-size: var(--t-decal);
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: var(--track-decal);
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.decal--accent { color: var(--accent); }
.lead { font-size: var(--t-lead); max-width: var(--measure); }
.chip {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 0.1em 0.6em; margin-left: var(--s-2);
}
.fitnote { color: var(--muted); font-size: var(--t-small); font-style: italic; }

.pushbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent); border-radius: var(--r-1);
  padding: 0.8em 1.5em; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.pushbtn:hover { color: #fff; transform: translateY(-2px); }
.pushbtn:active { transform: translateY(0); }
[data-theme="bone"] .pushbtn, .pit-band .pushbtn { color: #fff; }
.pushbtn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.pushbtn--ghost:hover { color: var(--accent); border-color: var(--accent); }
.pushbtn--tel { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pushbtn--small { padding: 0.5em 1em; font-size: 0.9rem; }
.pushbtn--wide { width: 100%; }

/* ---------- header ---------- */
.shop-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--asphalt); color: var(--bone);
  border-bottom: 1px solid rgba(241, 237, 228, 0.16);
}
.shop-header .lane {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 3.75rem;
}
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.badge svg { width: 1.4em; height: 1.4em; color: var(--oxide-bright); }
.badge:hover { color: inherit; }
.shop-nav { display: flex; gap: var(--s-4); margin-inline: auto; }
.shop-nav a {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; color: var(--muted);
}
.shop-nav a:hover { color: var(--oxide-bright); }
.header-acts { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
.header-tel {
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.header-tel:hover { color: var(--oxide-bright); }
@media (max-width: 60rem) { .shop-nav { display: none; } }
@media (max-width: 40rem) { .header-acts { display: none; } .shop-header .lane { justify-content: center; } }

/* ---------- hero ---------- */
.hero {
  /* Art direction slot: asphalt ground with faint tread hairlines.
     Swap note: replace this gradient stack with a client photo band if you
     have one; keep contrast (see /styleguide, "texture slots"). */
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(241, 237, 228, 0.035) 26px 28px),
    linear-gradient(180deg, var(--asphalt-2), var(--asphalt) 55%);
  border-bottom: 4px solid var(--accent);
}
.hero-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-8); align-items: start; padding-block: var(--s-8);
}
@media (max-width: 56rem) { .hero-split { grid-template-columns: 1fr; gap: var(--s-6); } }
.hero-pitch h1 { max-width: 14ch; }
.hero-acts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-5); }
.trust-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2);
  padding: 0; margin: var(--s-5) 0 0;
}
.trust-chips li {
  font-size: var(--t-small); font-family: var(--font-display); font-weight: 500;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 0.35em 0.9em; background: rgba(241, 237, 228, 0.04);
}

/* ---------- noise panel (the conversion object) ---------- */
.noise-panel {
  background: var(--bone); color: var(--asphalt);
  border-radius: var(--r-2); padding: var(--s-6);
  border-top: 6px solid var(--oxide-deep);
  scroll-margin-top: 5rem;
}
.noise-title { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.noise-sub { font-size: var(--t-small); color: #625e55; }
.slot { margin-bottom: var(--s-4); }
.slot label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-small); margin-bottom: var(--s-1);
}
.slot input, .slot select {
  width: 100%; font: inherit; color: var(--asphalt);
  background: #fff; border: 1px solid rgba(30, 30, 31, 0.35);
  border-radius: var(--r-1); padding: 0.65em 0.8em;
}
.slot input:focus-visible, .slot select:focus-visible { outline-color: #1d4ed8; }
.slot-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 26rem) { .slot-row { grid-template-columns: 1fr; } }
.slot-err { color: var(--oxide-deep); font-size: var(--t-small); margin: var(--s-1) 0 0; }
.slot--offstage { position: absolute; left: -9999px; top: auto; }
.is-invalid input, .is-invalid select { border-color: var(--oxide-deep); border-width: 2px; }
.triage-readout {
  background: rgba(185, 28, 28, 0.08); border-left: 4px solid var(--oxide-deep);
  border-radius: var(--r-1); padding: var(--s-3) var(--s-4);
  font-size: var(--t-small); margin-bottom: var(--s-2);
}
.triage-readout strong { font-family: var(--font-display); }
.triage-note { font-size: 0.8rem; color: #625e55; }
.alertbox {
  border: 2px solid var(--oxide-deep); border-radius: var(--r-1);
  padding: var(--s-4); margin-bottom: var(--s-4); background: rgba(185, 28, 28, 0.06);
}
.alertbox-head { font-family: var(--font-display); font-weight: 600; margin-bottom: var(--s-2); }
.alertbox ul { margin: 0; padding-left: 1.2em; }
.alertbox a { color: var(--oxide-deep); }
.form-status { font-size: var(--t-small); min-height: 1.4em; margin: var(--s-3) 0 0; }
/* no-JS notice: hidden for the scripted path, revealed by the same html:not(.js)
   gate the reveals use, so it also appears when main.js fails to load. */
.nojs-note { display: none; }
html:not(.js) .nojs-note {
  display: block; font-size: var(--t-small);
  border-left: 4px solid var(--oxide-deep); background: rgba(185, 28, 28, 0.08);
  border-radius: var(--r-1); padding: var(--s-3) var(--s-4); margin: var(--s-4) 0 0;
}
html:not(.js) .nojs-note a { color: var(--oxide-deep); }
.fallback {
  margin-top: var(--s-4); border-top: 1px dashed rgba(30, 30, 31, 0.35); padding-top: var(--s-4);
}
.fallback p { font-size: var(--t-small); }
.fallback-label { display: block; font-size: var(--t-small); font-weight: 600; margin-bottom: var(--s-1); }
.fallback textarea {
  width: 100%; font: inherit; font-size: var(--t-small);
  border: 1px solid rgba(30, 30, 31, 0.35); border-radius: var(--r-1); padding: var(--s-3);
  background: #fff; color: var(--asphalt);
}
.fallback-acts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.noise-panel .pushbtn--ghost { color: var(--asphalt); border-color: rgba(30, 30, 31, 0.45); }
.noise-panel .pushbtn--ghost:hover { color: var(--oxide-deep); border-color: var(--oxide-deep); }

/* ---------- services board ---------- */
.service-board {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
}
@media (max-width: 68rem) { .service-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .service-board { grid-template-columns: 1fr; } }
.service-row {
  border: 1px solid var(--line); border-radius: var(--r-2);
  padding: var(--s-5); background: var(--bg-2);
  display: flex; flex-direction: column;
}
.service-row h3 { font-size: 1.1rem; margin-bottom: var(--s-2); }
.service-row p { font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s-3); }
.from-price {
  margin-top: auto; margin-bottom: 0 !important;
  font-family: var(--font-display); font-weight: 700; color: var(--accent) !important;
  font-variant-numeric: tabular-nums;
}

/* ---------- job steps ---------- */
.job-steps {
  list-style: none; counter-reset: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
@media (max-width: 52rem) { .job-steps { grid-template-columns: 1fr; } }
.job-step { border-top: 2px solid var(--line-strong); padding-top: var(--s-4); position: relative; }
.job-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem;
  color: var(--accent); line-height: 1; display: block; margin-bottom: var(--s-3);
}
.job-step p { color: var(--muted); font-size: var(--t-small); margin: 0; }

/* ---------- reviews ---------- */
.vouch-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 52rem) { .vouch-row { grid-template-columns: 1fr; } }
.vouch {
  margin: 0; background: var(--bg-2); border-radius: var(--r-2);
  padding: var(--s-5); border-left: 4px solid var(--accent);
}
.vouch blockquote { margin: 0 0 var(--s-4); font-size: var(--t-body); }
.vouch figcaption {
  font-family: var(--font-display); font-weight: 600; font-size: var(--t-small);
  color: var(--muted);
}

/* ---------- hours + area ---------- */
.hours-split {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-8); align-items: start;
}
@media (max-width: 52rem) { .hours-split { grid-template-columns: 1fr; gap: var(--s-6); } }
.shop-address { font-style: normal; margin-bottom: var(--s-4); line-height: 1.9; }
.area-line { max-width: var(--measure); color: var(--muted); }
.hours-board { border-collapse: collapse; width: 100%; }
.hours-board caption { text-align: left; }
.hours-board th, .hours-board td {
  text-align: left; padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.hours-board th { font-family: var(--font-display); font-weight: 600; }
.hours-board td { text-align: right; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-stack { display: grid; gap: var(--s-3); }
.faq-lug {
  border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-2);
}
.faq-lug summary {
  cursor: pointer; padding: var(--s-4) var(--s-5);
  font-family: var(--font-display); font-weight: 600; list-style: none;
  position: relative; padding-right: var(--s-8);
}
.faq-lug summary::-webkit-details-marker { display: none; }
.faq-lug summary::after {
  content: "+"; position: absolute; right: var(--s-5); top: 50%;
  transform: translateY(-50%); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.faq-lug[open] summary::after { content: "\2013"; }
.faq-lug p { padding: 0 var(--s-5) var(--s-4); margin: 0; color: var(--muted); max-width: var(--measure); }

/* ---------- final CTA band ---------- */
.pit-band {
  text-align: center;
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(241, 237, 228, 0.035) 26px 28px),
    var(--asphalt);
  border-top: 4px solid var(--accent);
}
.pit-band h2 { max-width: 20ch; margin-inline: auto; }
.pit-band .hero-acts { justify-content: center; margin-bottom: 0; }

/* ---------- footer ---------- */
.shop-footer { background: #171718; color: var(--bone); padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: var(--s-2); }
.footer-line { margin: 0 0 var(--s-2); font-size: var(--t-small); color: #a8a49b; }
.footer-line a { color: var(--bone); }
.footer-line a:hover { color: var(--oxide-bright); }
.footer-legal { margin-top: var(--s-7); border-top: 1px solid rgba(241, 237, 228, 0.14); padding-top: var(--s-4); }
.footer-legal p { font-size: 0.8rem; color: #8b877f; margin: 0; }
.footer-legal a { color: inherit; }

/* ---------- sticky call strip (small screens) ---------- */
.callstrip {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-callstrip);
  background: var(--asphalt); border-top: 1px solid rgba(241, 237, 228, 0.2);
  padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  gap: var(--s-3);
}
.callstrip .pushbtn { flex: 1; font-size: 0.95rem; padding: 0.75em 0.8em; }
.callstrip .pushbtn--ghost { color: var(--bone); }
@media (max-width: 40rem) {
  .callstrip { display: flex; }
  body { padding-bottom: 4.5rem; }
}
@media (max-width: 22.5rem) {
  /* narrowest phones: the strip keeps a plain Call verb, tapping still dials */
  .callstrip .pushbtn--tel span { display: none; }
}

/* ---------- reveals ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.is-inview {
  opacity: 1; transform: none;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
html.js .reveal[data-delay="1"].is-inview { transition-delay: 90ms; }
html.js .reveal[data-delay="2"].is-inview { transition-delay: 180ms; }
html.js .reveal[data-delay="3"].is-inview { transition-delay: 270ms; }
html.js .reveal[data-delay="4"].is-inview { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .pushbtn, .pushbtn:hover { transition: none; transform: none; }
}

/* ---------- styleguide + 404 helpers ---------- */
.guide-swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); padding: 0; margin: 0 0 var(--s-5); list-style: none; }
.guide-swatches li {
  min-width: 9rem; border-radius: var(--r-2); padding: var(--s-4);
  border: 1px solid var(--line); font-size: 0.8rem; font-family: var(--font-display);
}
.guide-block { margin-bottom: var(--s-7); }
.guide-steps { padding-left: 1.3em; }
.guide-steps li { margin-bottom: var(--s-3); }
.guide-kv { font-size: var(--t-small); color: var(--muted); }
.lost-hero { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.lost-code {
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  font-size: clamp(4rem, 18vw, 9rem); line-height: 1; margin-bottom: var(--s-3);
}

/* ---------- print ---------- */
@media print {
  .shop-header, .callstrip, .noise-panel form, .pit-band { display: none; }
  .stretch { padding-block: 1.5rem; }
  body { background: #fff; color: #000; }
}
