/* Great Truck Repair — homepage
   Design tokens and layout taken from Homepage.dc.html. */

:root {
  /* Surfaces */
  --ink:          #0F1316;
  --surface:      #141A1D;
  --card:         #1C2226;
  --line:         #2B3238;
  --line-strong:  #3A424A;

  /* Text */
  --text:         #F4F2EE;
  --muted:        #98A2AC;
  --dim:          #6B7580;

  /* Accents */
  --orange:       #FF7A00;
  --orange-dark:  #E56D00;
  --amber:        #FFC24A;
  --green:        #3B8F4E;

  /* Type */
  --display: Archivo, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --band-y: clamp(40px, 6vw, 80px);
  --radius: 3px;
  --sticky-h: 76px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
}

body {
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

input, button { font-family: inherit; }

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

img { max-width: 100%; }

/* Author `display` rules beat the UA `[hidden]` rule, so restate it. */
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--display);
  font-weight: 800;
}
.skip-link:focus { left: 0; color: var(--ink); }

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

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

.band {
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.band > .wrap { padding-block: var(--band-y); }
.band--surface { background: var(--surface); }

.grid { display: grid; gap: 12px; margin-top: 28px; }
.grid--two   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid--three { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--tight { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}
.split--top { align-items: start; margin-top: 0; }
.split--top + * { margin-top: 0; }

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

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 5.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0;
}
.section-title--narrow { max-width: 20ch; }

.section-lede {
  margin: 16px 0 0;
  max-width: 56ch;
  color: var(--muted);
}
.section-lede--tight { max-width: 48ch; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow--spaced { margin-top: 20px; }

.tag {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
}

.num { font-variant-numeric: tabular-nums; }

.fine-print {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--dim);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand__mark {
  width: 34px;
  height: 38px;
  flex: none;
  background: var(--orange);
  color: var(--ink);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.brand__mark--light { background: var(--text); }

.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 110px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: gtrPulse 2.4s ease-in-out infinite;
}

@keyframes gtrPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.site-header__phone {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  min-height: 48px;
  white-space: nowrap;
}

/* Logo + status pill + phone number won't fit side by side on a phone. Drop the
   pill — the hero badge and the sticky Call/Text bar both still say 24/7 — and
   keep the number, which is the one thing that has to stay reachable. */
@media (max-width: 600px) {
  .status-pill { display: none; }
  .site-header__phone { font-size: 17px; }
}

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

.hero { padding-block: clamp(40px, 7vw, 80px) clamp(48px, 7vw, 88px); }

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 7.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 20px 0 0;
  max-width: 16ch;
}

.hero__lede {
  margin: 20px 0 0;
  max-width: 52ch;
  color: var(--muted);
}

.hero__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.choice { border-radius: var(--radius); padding: 20px; }
.choice--urgent { background: var(--orange); color: var(--ink); }
.choice--calm { background: var(--surface); border: 1px solid var(--line-strong); }

.choice__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.choice--urgent .choice__label { opacity: .75; }
.choice--calm .choice__label { color: var(--dim); }

.choice__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 14px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 3.4vw, 22px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.choice__cta--dark { background: var(--ink); color: var(--text); }
.choice__cta--dark:hover { background: #000; color: var(--orange); }
.choice__cta--outline { border: 1px solid var(--line-strong); color: var(--text); }
.choice__cta--outline:hover { border-color: var(--text); color: var(--text); }

.choice__note {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.choice__note--muted { color: var(--muted); font-weight: 400; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0;
}

.card--link { display: block; padding: 20px; }
.card--link:hover { border-color: var(--line-strong); color: var(--text); }

.card__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
}

.card__heading {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}
.card__heading--lg { font-size: 20px; }

.card__body { margin: 10px 0 0; color: var(--muted); }
.card__body--sm { margin-top: 8px; font-size: 15px; }

.callout {
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 760px;
}
.callout__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.callout p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Reviews ---------- */

.rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rating__stars { color: var(--amber); font-size: 20px; letter-spacing: 0.12em; }
.rating__score {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
  align-items: start;
}
.reviews__short { display: grid; gap: 12px; }

.review p { margin: 0; }
.review p + p { margin-top: 14px; }
.review--long { padding: 22px; }
.reviews__short .review { padding: 18px; }

.review__by { margin-top: 8px; color: var(--dim); font-size: 13px; }
.review__by--ruled {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pull-quote-band > .wrap {
  padding-block: clamp(48px, 7vw, 88px);
  text-align: center;
}
.pull-quote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.pull-quote__by { margin-top: 20px; color: var(--dim); font-size: 13px; }

/* ---------- Plate check ---------- */

.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    rgba(255, 194, 74, .30) 0 10px,
    transparent 10px 20px);
}

.panel {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  max-width: 720px;
}

.plate-form { display: grid; gap: 14px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.field { display: block; }
.field__label {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  min-height: 56px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0 14px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.input:focus { border-color: var(--amber); }
.input::placeholder { color: var(--dim); }

.input--plate {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-error { margin: 0; color: var(--amber); font-size: 15px; }
.form-success { margin: 0; color: var(--muted); font-size: 15px; }

.plate-result {
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
}
.plate-result__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.plate-result__note { margin: 10px 0 0; color: var(--muted); }
.plate-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-dark); color: var(--ink); }
.btn--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--text); color: var(--text); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  min-height: 48px;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--inline { margin-top: 20px; }
.btn--sm { min-height: 48px; padding: 0 20px; font-size: 15px; letter-spacing: 0.03em; }

/* ---------- COF ---------- */

.cof-form { display: grid; gap: 12px; margin-top: 14px; }
.cof-form .input { min-height: 52px; }
.cof-form .btn { min-height: 52px; font-size: 14px; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.step { border-top: 2px solid var(--line); padding-top: 16px; }
.step--current { border-top-color: var(--amber); }
.step__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  margin-top: 8px;
}
.step__body { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Makes ---------- */

.makes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.make {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
}
.make:hover { border-color: var(--text); color: var(--text); }

/* ---------- Media and placeholders ---------- */

.media {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-slot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font: 400 11px var(--mono);
  color: var(--dim);
}
.photo-slot--32 { aspect-ratio: 3 / 2; }

.copy-slot {
  margin: 16px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.ba { margin: 0; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba__caption { margin-top: 10px; color: var(--muted); font-size: 15px; }

.sign-off {
  margin-top: 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

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

.site-footer { background: var(--surface); }
.site-footer > .wrap { padding-block: clamp(40px, 6vw, 72px); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.footer-text { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.footer-text + .footer-text { margin-top: 12px; }

.footer-links { display: grid; gap: 10px; margin-top: 14px; justify-items: start; }
.footer-links--tight { gap: 8px; }

.footer-phone {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.footer-link { color: var(--muted); font-size: 15px; }
.footer-link:hover { color: var(--orange); }

.footer-base {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: baseline;
}
.footer-base__slogan {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.01em;
}
.footer-base__nzbn { color: var(--dim); font-size: 13px; font-family: var(--mono); }

/* ---------- Sticky call/text bar (mobile only) ---------- */

.sticky-bar { display: none; }

@media (max-width: 819px) {
  body { padding-bottom: var(--sticky-h); }

  .sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--orange);
    border-top: 2px solid var(--ink);
  }

  .sticky-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .sticky-bar__btn--split { border-left: 2px solid var(--ink); }
  .sticky-bar__btn:hover,
  .sticky-bar__btn:active { background: var(--orange-dark); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .status-pill__dot { animation: none; }
  * { scroll-behavior: auto !important; }
}
