/* MegaDezAuto: one stylesheet for every page. Tokens first, then layout, then components. */
@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #1a2229;
  --ink-2: #24303a;
  --steel: #e6e9eb;
  --paper: #f6f7f7;
  --field: #fdfdfd;
  --line: #c6cdd2;
  --field-line: #6f7c86;
  --muted: #4b5862;
  --tag: #c8281e;
  --tag-hover: #ae1f16;
  --on-tag: #fffaf9;
  --tag-light: #ff7a6e;
  --on-dark: #eef1f2;
  --on-dark-muted: #b3bec5;
  --focus: #1d6fb8;
  --radius: 4px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Saira", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tag); color: var(--on-tag); padding: 12px 16px; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 12px; }

h1, h2, h3 { font-stretch: 75%; line-height: 1.12; margin: 0 0 16px; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: 40px; font-weight: 800; line-height: 1.04; }
h2 { font-size: 32px; font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 16px; }
.lede { font-size: 19px; line-height: 1.5; max-width: 38ch; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-stretch: 87%; font-size: 18px; line-height: 1.2;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-tag { background: var(--tag); color: var(--on-tag); }
.btn-tag:hover { background: var(--tag-hover); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--ink-2); }
.btn-out { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.btn-out:hover { background: rgba(238, 241, 242, 0.12); }
.btn-out-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-out-ink:hover { background: var(--steel); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- top bar + header ---------- */
.topbar { display: none; background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.topbar .wrap { display: flex; gap: 28px; align-items: center; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 16px; height: 16px; }
.topbar a { color: var(--on-dark); font-weight: 600; text-decoration: none; margin-left: auto; }

.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-stretch: 75%; font-weight: 800; font-size: 25px; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.brand-auto { background: var(--tag); color: var(--on-tag); padding: 5px 8px 4px 10px; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); }
.d-nav { display: none; }
.head-tel { display: none; }
.head-cta { display: none; }
.m-call { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); }
.m-call svg { width: 22px; height: 22px; }
.m-menu { position: static; }
.m-menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: var(--radius); font-weight: 700; cursor: pointer; }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
.m-menu:not([open]) nav { display: none; }
.m-menu nav a { display: block; padding: 14px 0; font-size: 20px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.m-menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tag); text-decoration-thickness: 4px; }

/* ---------- hero (home) ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 34, 41, 0.55) 0%, rgba(26, 34, 41, 0.92) 70%); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
.hero h1 { color: var(--on-dark); font-size: 42px; max-width: 14ch; }
.hero .lede { color: var(--on-dark-muted); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--on-dark-muted); font-size: 16px; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points svg { width: 20px; height: 20px; color: var(--tag-light); flex: none; }

/* ---------- the part tag: request form ---------- */
.tagcard {
  --hole: var(--ink);
  position: relative; background: var(--paper); color: var(--ink);
  padding: 44px 20px 24px;
  clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 30px);
  border-radius: 0 0 var(--radius) var(--radius);
}
.tagcard::before { content: ""; position: absolute; top: 14px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--hole); box-shadow: inset 0 0 0 3px #9aa6ae; }
.tagcard h2 { font-size: 30px; margin-bottom: 6px; }
.tagcard .tag-sub { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 16px; line-height: 1.3; }
.field label small { font-weight: 400; color: var(--muted); font-size: 15px; }
.field input {
  width: 100%; min-height: 50px; padding: 10px 12px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--field); border: 2px solid var(--field-line); border-radius: var(--radius);
}
.field input:focus { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.tagcard .btn { width: 100%; margin-top: 18px; }
.form-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; line-height: 1.45; }
.form-error { color: #9f1d17; font-weight: 600; font-size: 16px; margin: 12px 0 0; }
.form-error:empty { display: none; }

/* ---------- facts strip ---------- */
.facts { background: var(--steel); border-bottom: 1px solid var(--line); padding: 24px 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; align-items: start; }
.facts svg { width: 26px; height: 26px; grid-row: span 2; margin-top: 2px; }
.facts strong { font-stretch: 87%; font-size: 18px; line-height: 1.3; }
.facts span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.facts a { text-decoration: none; }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec-alt { background: var(--steel); }
.sec-dark { background: var(--ink); color: var(--on-dark); }
.sec-dark h2, .sec-dark h3 { color: var(--on-dark); }
.sec-dark .muted, .sec-dark p { color: var(--on-dark-muted); }
.sec-dark a { color: var(--on-dark); }
.sec-head { max-width: 62ch; margin-bottom: 36px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.sec-dark .sec-head p { color: var(--on-dark-muted); }

/* parts list: ruled rows, not cards */
.parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 48px; }
.parts li { border-top: 2px solid var(--ink); padding: 18px 0 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; }
.parts h3 { margin: 0; font-size: 23px; }
.parts p { margin: 0; color: var(--muted); }
.parts a { justify-self: start; font-weight: 700; margin-top: 6px; padding: 6px 0; }
.parts-note { margin-top: 24px; max-width: 62ch; color: var(--muted); }

/* split: photo + text */
.split { display: grid; gap: 32px; align-items: center; }
.split figure { margin: 0; }
.split figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.sec-dark .split figcaption { color: var(--on-dark-muted); }
.split img { width: 100%; border-radius: var(--radius); }

/* steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-stretch: 75%; font-weight: 800; font-size: 34px; line-height: 50px;
  width: 52px; height: 50px; text-align: center; color: var(--on-tag); background: var(--tag);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.steps h3 { margin-bottom: 8px; }
.steps + p { margin: 40px 0 0; }
.steps p { color: var(--muted); margin: 0; }
.sec-dark .steps p { color: var(--on-dark-muted); }

/* VIN help */
.vin-list { margin: 0; display: grid; gap: 18px; }
.vin-list div { border-top: 1px solid #44525d; padding: 14px 0 0; }
.vin-list dt { font-weight: 700; font-size: 19px; color: var(--on-dark); }
.vin-list dd { margin: 4px 0 0; color: var(--on-dark-muted); }

/* reviews */
.quotes { display: grid; gap: 24px; }
.quotes figure { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 24px 22px; }
.quotes blockquote { margin: 0 0 14px; font-size: 21px; line-height: 1.45; font-weight: 500; }
.quotes figcaption { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.stars { display: inline-flex; gap: 2px; color: #8a6500; }
.stars svg { width: 16px; height: 16px; }

/* related place */
.sec-flush { padding-bottom: 0; }
.nearby { display: grid; gap: 16px; align-items: center; background: var(--steel); border: 1px solid var(--line); padding: 24px 22px; }
.nearby h2 { font-size: 26px; margin-bottom: 6px; }
.nearby p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 19px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; font-size: 26px; line-height: 1; flex: none; width: 22px; text-align: center; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 58ch; }

/* contact */
.contact-grid { display: grid; gap: 36px; }
.info { margin: 0 0 24px; display: grid; gap: 16px; }
.info div { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; }
.info svg { width: 24px; height: 24px; grid-row: span 2; margin-top: 3px; }
.info dt { font-weight: 700; }
.info dd { margin: 0; color: var(--muted); }
.info dd a { color: var(--ink); font-weight: 600; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: 0 0 24px; font-size: 17px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 800; }
.hours caption { text-align: left; font-weight: 700; font-size: 19px; padding-bottom: 6px; }
.map { margin: 0; }
.map > a { display: block; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.map figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* sub-page hero + prose */
.page-hero { background: var(--ink); color: var(--on-dark); padding: 32px 0 44px; }
.page-hero h1 { color: var(--on-dark); max-width: 24ch; }
.page-hero .lede { color: var(--on-dark-muted); max-width: 50ch; }
.crumbs { font-size: 15px; color: var(--on-dark-muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 48px; font-size: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose dl { margin: 0 0 16px; }
.prose dt { font-weight: 700; margin-top: 14px; }
.prose dd { margin: 2px 0 0; color: var(--muted); }
.form-sec { background: var(--steel); }
.form-sec .tagcard { --hole: var(--steel); max-width: 640px; box-shadow: 0 2px 0 var(--line); }
.form-grid { display: grid; gap: 32px; align-items: start; }

/* footer */
.site-foot { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 28px; font-size: 16px; }
.site-foot a { color: var(--on-dark); }
.site-foot a:hover { color: #ffffff; }
.foot-grid { display: grid; gap: 32px; }
.site-foot .brand { color: var(--on-dark); margin-bottom: 14px; }
.foot-title { color: var(--on-dark); font-weight: 700; font-size: 17px; margin: 0 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 4px 18px; margin: 0; }
.foot-hours dt { font-weight: 600; color: var(--on-dark); }
.foot-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.foot-bottom { border-top: 1px solid #3a4651; margin-top: 40px; padding-top: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.foot-bottom p { margin: 0; max-width: 56ch; }

/* mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.callbar .btn { min-height: 52px; padding: 10px 12px; }
body { padding-bottom: 76px; }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .tagcard { padding: 48px 32px 30px; }
  .quotes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  h1 { font-size: 54px; }
  h2 { font-size: 40px; }
  .hero h1 { font-size: 58px; }
  .lede { font-size: 20px; }
  .sec { padding: 88px 0; }
  .parts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .nearby { grid-template-columns: 1fr auto; padding: 28px 32px; }
  .page-hero { padding: 44px 0 60px; }
}
@media (min-width: 960px) {
  .topbar { display: block; }
  .site-head .wrap { min-height: 76px; gap: 28px; }
  .m-menu, .m-call { display: none; }
  .d-nav { display: flex; gap: 22px; margin-left: 12px; }
  .d-nav a { font-weight: 600; text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
  .d-nav a:hover { border-bottom-color: var(--line); }
  .d-nav a[aria-current="page"] { border-bottom-color: var(--tag); }
  .head-tel { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
  .head-tel svg { width: 20px; height: 20px; }
  .head-cta { display: inline-flex; min-height: 46px; padding: 10px 18px; font-size: 17px; }
  .callbar { display: none; }
  .hero-points { display: none; }
  body { padding-bottom: 0; }
  .hero::after { background: linear-gradient(90deg, rgba(26, 34, 41, 0.97) 0%, rgba(26, 34, 41, 0.86) 48%, rgba(26, 34, 41, 0.45) 100%); }
  .hero-img { opacity: 0.62; }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
  .hero h1 { font-size: 58px; }
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-rev figure { order: 2; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .vin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}
@media (min-width: 1200px) {
  .hero h1 { font-size: 62px; }
}
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform 0.15s ease; }
}
