/* Heartland Auto Group - Pit Lane theme
   garage white #f5efe0 / asphalt ink #23211d / racing amber #d9a62e */

:root {
  --paper: #f5efe0;
  --paper-2: #ece2c9;
  --card: #faf6e9;
  --ink: #23211d;
  --ink-2: #3a352b;
  --amber: #d9a62e;
  --amber-deep: #a87c1c;
  --muted: #6b6250;
  --line: #d8cdaF;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --step--1: clamp(0.82rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.55vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1.1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.7rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 4.2rem);
  --step-5: clamp(3.4rem, 2.2rem + 6vw, 6.2rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: "Staatliches", "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 em, h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--amber-deep);
  letter-spacing: 0;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--amber-deep);
  margin-bottom: 1rem;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 60ch; }
.section-head h2 { font-size: var(--step-4); margin-bottom: 1rem; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 52ch; }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.8rem 24px;
  background: rgba(245, 239, 224, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-2);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand-check {
  width: 22px; height: 22px; flex: none;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--amber) 0 50%);
  background-size: 11px 11px;
  border-radius: 3px;
}
.brand-word { font-family: "Staatliches", sans-serif; font-size: 1.35rem; letter-spacing: 0.04em; line-height: 1; }
.brand-word span { color: var(--amber-deep); }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { text-decoration: none; font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.site-nav a:hover { color: var(--amber-deep); }
.header-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 800; font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  background: var(--amber); color: var(--ink);
  padding: 0.6rem 1.1rem; border-radius: 5px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.header-call:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168, 124, 28, 0.35); }

/* ---------- hero: ticket stub ---------- */
.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background:
    radial-gradient(42rem 30rem at 12% 8%, rgba(217, 166, 46, 0.22), transparent 60%),
    radial-gradient(30rem 24rem at 88% 90%, rgba(217, 166, 46, 0.14), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.ticket {
  position: relative;
  background: var(--ink); color: var(--paper);
  border-radius: 10px;
  padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.8rem, 4vw, 3.2rem) clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: 0 24px 60px rgba(35, 33, 29, 0.28);
}
.ticket-perf {
  position: absolute; top: 14px; bottom: 14px; left: 0; width: 0;
  border-left: 2px dashed var(--amber);
}
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; left: -13px; width: 24px; height: 24px;
  background: var(--paper); border-radius: 50%;
}
.ticket-perf::before { top: -27px; }
.ticket-perf::after { bottom: -27px; }
.ticket .eyebrow { color: var(--amber); }
.hero-title { font-size: var(--step-5); color: var(--paper); margin-bottom: 1.2rem; max-width: 12ch; }
.hero-title em { color: var(--amber); }
.hero-sub { color: #cfc6ae; font-size: var(--step-1); max-width: 40ch; margin-bottom: 2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 800; font-size: 1.02rem;
  padding: 0.95rem 1.7rem; border-radius: 5px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
  min-height: 52px;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(217, 166, 46, 0.45); }
.btn-ghost { border: 2px solid #5a5344; color: var(--paper); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-3px); }

.trust-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 19px; height: 19px; fill: var(--amber); }
.trust-text { color: #cfc6ae; font-size: var(--step--1); letter-spacing: 0.04em; }
.trust-text strong { color: var(--paper); font-variant-numeric: tabular-nums; }
.ticket-no {
  margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid #464034;
  font-size: 11px; letter-spacing: 0.18em; color: #9a8f73; text-transform: uppercase;
}

.hero-visual { position: relative; }
.hero-photo { border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px rgba(35, 33, 29, 0.25); position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms var(--ease); }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(217, 166, 46, 0.16), rgba(35, 33, 29, 0.34));
  mix-blend-mode: multiply; pointer-events: none;
}
.hero-photo:hover img { transform: scale(1.04); }

/* rotating trust badge: the batch's only one */
.badge-wrap { position: absolute; left: -58px; bottom: -34px; width: 168px; height: 168px; z-index: 2; }
.badge-spin { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-disc { fill: var(--ink); }
.badge-ring { fill: none; stroke: var(--amber); stroke-width: 1.5; }
.badge-text { font-family: "Staatliches", sans-serif; font-size: 20px; letter-spacing: 6px; fill: var(--amber); }
.badge-star { fill: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap;
  border-top: 3px solid var(--amber); border-bottom: 3px solid var(--amber);
  padding: 0.85rem 0;
}
.marquee-track { display: inline-flex; animation: scroll 32s linear infinite; }
.marquee-track span {
  font-family: "Staatliches", sans-serif; font-size: 1.25rem; letter-spacing: 0.12em;
  display: inline-flex; align-items: center;
}
.marquee-track i {
  width: 10px; height: 10px; margin: 0 1.4rem; flex: none;
  background: repeating-conic-gradient(var(--amber) 0 25%, var(--ink) 0 50%);
  background-size: 5px 5px; border-radius: 1px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { padding: clamp(3rem, 6vw, 5rem) 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat { border-top: 3px solid var(--amber); padding-top: 1.2rem; }
.stat-num {
  display: block; font-family: "Staatliches", sans-serif; font-size: var(--step-4);
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.stat-label { display: block; margin-top: 0.5rem; color: var(--muted); font-size: var(--step--1); max-width: 26ch; }

/* ---------- services: sticky ticket stubs ---------- */
.ticket-stack { display: grid; gap: 1.4rem; }
.svc-ticket {
  position: sticky;
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center;
  background: var(--card);
  border: 2px solid var(--ink); border-radius: 10px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 6px 6px 0 rgba(35, 33, 29, 0.9);
  transition: transform 180ms var(--ease);
}
.svc-ticket:nth-child(1) { top: 110px; }
.svc-ticket:nth-child(2) { top: 128px; }
.svc-ticket:nth-child(3) { top: 146px; }
.svc-ticket:nth-child(4) { top: 164px; }
.svc-ticket:nth-child(5) { top: 182px; }
.svc-ticket:nth-child(6) { top: 200px; }
.svc-ticket::after {
  content: ""; position: absolute; top: 12px; bottom: 12px; right: 0;
  border-right: 2px dashed var(--amber);
}
.stub-no {
  font-family: "Staatliches", sans-serif; font-size: var(--step-4); color: var(--amber-deep);
  line-height: 1; border-right: 2px dashed var(--amber); padding-right: 1.6rem;
}
.svc-ticket h3 { font-size: var(--step-2); margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.svc-ticket p { color: var(--ink-2); max-width: 62ch; }
.svc-ticket:hover { transform: translateY(-4px); }

.also-line {
  margin-top: 2.5rem; font-size: var(--step-1); color: var(--ink-2);
  border-left: 4px solid var(--amber); padding-left: 1.2rem; max-width: 64ch;
}

/* ---------- checkered wipe divider ---------- */
.checker-wipe { padding: 0; overflow: hidden; }
.checker-wipe span {
  display: block; height: 30px;
  background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%);
  background-size: 30px 30px;
}
.js .checker-wipe span { transform: scaleX(0); transform-origin: left center; }
.js .checker-wipe span.in { transform: scaleX(1); transition: transform 700ms var(--ease); }

/* ---------- process: numbered timeline ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { position: relative; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.steps li:nth-child(2n) { transform: translateY(1.6rem); }
.step-num {
  display: block; font-family: "Staatliches", sans-serif; font-size: var(--step-4);
  color: transparent; -webkit-text-stroke: 1.5px var(--amber-deep); line-height: 1; margin-bottom: 0.8rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.6rem; letter-spacing: 0.03em; }
.steps p { color: var(--ink-2); font-size: var(--step-0); }
.steps a { color: var(--amber-deep); font-weight: 700; }

/* ---------- reviews: dark band ---------- */
.reviews { background: var(--ink); color: var(--paper); }
.reviews::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.reviews .eyebrow { color: var(--amber); }
.reviews .section-head h2 { color: var(--paper); }
.reviews .section-head h2 em { color: var(--amber); }
.featured-review {
  border: 2px solid var(--amber); border-radius: 10px;
  padding: clamp(1.8rem, 4vw, 3rem); margin-bottom: 2.5rem; position: relative;
}
.featured-review p { font-size: var(--step-2); line-height: 1.45; color: var(--paper); max-width: 44ch; }
.featured-review footer { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.4rem; }
.featured-review .stars svg { width: 17px; height: 17px; }
.featured-review cite { font-style: normal; font-size: var(--step--1); color: #b3a888; letter-spacing: 0.08em; text-transform: uppercase; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.review-card {
  background: #2c2921; border-radius: 10px; padding: 1.8rem;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35); }
.review-card--wide { grid-column: 1 / -1; }
.review-card p { color: #e2d9bd; margin-bottom: 1.1rem; }
.review-card figcaption { font-size: var(--step--1); color: #a89d7f; letter-spacing: 0.06em; text-transform: uppercase; }
.r-stars { display: inline-block; margin-right: 0.5rem; color: var(--amber); font-size: 0.9rem; letter-spacing: 0.1em; }
.r-stars::before { content: "★★★★★"; }
.reviews-cta { margin-top: 2.8rem; text-align: center; }

/* ---------- service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.town-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem;
}
.town-list li {
  font-family: "Staatliches", sans-serif; letter-spacing: 0.06em; font-size: 1.1rem;
  border: 2px solid var(--ink); border-radius: 5px; padding: 0.45rem 1rem;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.town-list li:hover { background: var(--ink); color: var(--amber); transform: translateY(-2px); }
.area-card { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 6px 6px 0 rgba(35, 33, 29, 0.9); }
.area-photo { position: relative; overflow: hidden; }
.area-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 600ms var(--ease); }
.area-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(217, 166, 46, 0.14), rgba(35, 33, 29, 0.3));
  mix-blend-mode: multiply; pointer-events: none;
}
.area-card:hover .area-photo img { transform: scale(1.04); }
.area-card address { font-style: normal; padding: 1.6rem; line-height: 1.7; }
.area-card address strong { font-family: "Staatliches", sans-serif; font-size: 1.4rem; letter-spacing: 0.04em; }
.area-card address a { color: var(--amber-deep); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.hours-note { display: block; margin-top: 0.6rem; color: var(--muted); font-size: var(--step--1); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-list { display: grid; gap: 0.9rem; }
.faq-item { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: "Staatliches", sans-serif; font-size: var(--step-1); letter-spacing: 0.03em;
  padding: 1.1rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.6rem; color: var(--amber-deep); line-height: 1;
  transition: transform 200ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.4rem 1.4rem; color: var(--ink-2); }
.faq-a p { max-width: 60ch; }
.faq-a a { color: var(--amber-deep); font-weight: 700; }

/* ---------- final cta ---------- */
.final { padding-bottom: clamp(5rem, 10vw, 9rem); }
.final-ticket {
  position: relative; background: var(--ink); color: var(--paper); border-radius: 12px;
  text-align: center; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4rem);
  box-shadow: 0 24px 70px rgba(35, 33, 29, 0.3); overflow: hidden;
}
.final-ticket::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(36rem 22rem at 50% 0%, rgba(217, 166, 46, 0.2), transparent 65%);
}
.final-ticket .ticket-perf { top: 0; bottom: 0; }
.final-ticket .ticket-perf::before, .final-ticket .ticket-perf::after { background: var(--paper); }
.final-ticket .eyebrow { color: var(--amber); }
.final-ticket h2 { font-size: var(--step-5); color: var(--paper); position: relative; }
.final-ticket h2 em { color: var(--amber); }
.final-sub { color: #cfc6ae; font-size: var(--step-1); margin: 1rem auto 2rem; max-width: 44ch; position: relative; }
.final-phone {
  display: inline-block; text-decoration: none; position: relative;
  font-family: "Staatliches", sans-serif; font-size: clamp(2.6rem, 8vw, 5.5rem);
  letter-spacing: 0.03em; color: var(--amber); line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 200ms var(--ease), text-shadow 200ms var(--ease);
}
.final-phone:hover { transform: scale(1.03); text-shadow: 0 0 34px rgba(217, 166, 46, 0.55); }
.final-meta { margin-top: 1.8rem; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: #9a8f73; position: relative; }

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--ink); padding: 2.2rem 0 3rem; background: var(--paper-2); }
.site-footer p { font-size: var(--step--1); }
.site-footer a { color: var(--amber-deep); font-weight: 700; }
.fine { color: var(--muted); margin-top: 0.4rem; }

/* ---------- mobile call bar ---------- */
.mobile-callbar { display: none; }

/* ---------- scroll reveals (JS-gated) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 550ms var(--ease), transform 550ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .hero .reveal.in { transition-duration: 700ms; }

/* hero word-mask entrance */
.js .mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .mask > span { display: inline-block; transform: translateY(110%); animation: rise 0.7s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .badge-wrap { left: auto; right: -10px; top: -56px; bottom: auto; width: 132px; height: 132px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2n) { transform: none; }
  .faq-grid, .area-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media (max-width: 720px) {
  .hero { padding: 2.2rem 0 3rem; }
  .ticket { padding: 1.5rem 1.3rem 1.2rem; }
  .hero-title { font-size: clamp(2.7rem, 13.5vw, 3.3rem); margin-bottom: 0.9rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.3rem; }
  .hero-ctas { margin-bottom: 1.2rem; gap: 0.7rem; }
  .btn { padding: 0.85rem 1.4rem; }
  .ticket-no { margin-top: 1.1rem; }
  .stats .wrap { grid-template-columns: 1fr; gap: 1.4rem; }
  .review-grid { grid-template-columns: 1fr; }
  .review-card--wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .svc-ticket { grid-template-columns: 1fr; gap: 0.8rem; }
  .svc-ticket:nth-child(n) { top: 76px; }
  .stub-no { border-right: 0; border-bottom: 2px dashed var(--amber); padding: 0 0 0.5rem; }
  .svc-ticket::after { display: none; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .mobile-callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: var(--ink); border-top: 3px solid var(--amber); padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  }
  .mobile-callbar a {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: var(--amber); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem;
    border-radius: 6px; padding: 0.9rem; font-variant-numeric: tabular-nums;
  }
  body { padding-bottom: 76px; }
  .site-header .header-call span { display: none; }
  .site-header .header-call { padding: 0.6rem 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .checker-wipe span { opacity: 1 !important; transform: none !important; }
  .js .mask > span { transform: none !important; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
