/* Cal Wheel Technology — "Pit Lane" design system.
   Dark graphite base, brand red primary accent, brand yellow micro-accent only. */

:root {
  --bg: #0e0f12;
  --bg-alt: #121317;
  --surface: #16181d;
  --surface-2: #1c1f26;
  --border: #262a33;
  --text: #e8e9ec;
  --muted: #9aa0ab;
  --red: #d40f1e;
  --red-dark: #a10c17;
  --red-glow: rgba(212, 15, 30, 0.35);
  --yellow: #ffd400;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --max: 1200px;
  --font-display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--yellow); display: inline-block; }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--red-glow);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 14px 34px -8px var(--red-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-block { width: 100%; }

/* Top bar — shop address above the header (Cory, 08-26) */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 2px; padding-bottom: 2px; }
.topbar-address { color: var(--text); font-weight: 600; display: inline-block; padding: 6px 0; }
.topbar-address:hover { color: var(--yellow); }
.topbar-hours { color: var(--muted); }
.topbar-directions { flex: none; background: var(--yellow); color: #111; font-weight: 700; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; line-height: 1.4; margin-right: auto; }
.topbar-directions:hover { color: #111; filter: brightness(1.08); }
@media (max-width: 720px) {
  .topbar .container { justify-content: center; text-align: center; gap: 4px 10px; flex-wrap: wrap; padding-bottom: 6px; }
  .topbar-directions { margin-right: 0; }
  .topbar-hours { display: none; }
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 15, 18, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 22px; align-items: center; }
.main-nav a { font-size: 0.86rem; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; color: var(--text); }
.main-nav a:hover { color: var(--yellow); }
.has-children { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 220px;
  padding: 8px;
  list-style: none;
  display: none;
  box-shadow: var(--shadow);
}
.has-children:hover .dropdown,
.has-children:focus-within .dropdown { display: block; }
.dropdown li a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 0.82rem; }
.dropdown li a:hover { background: var(--surface-2); color: var(--yellow); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.02em; color: var(--yellow); white-space: nowrap; }
.header-phone:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}
.mobile-nav-panel {
  display: none;
  position: fixed;
  inset: 0;
  top: 68px;
  background: var(--bg);
  z-index: 55;
  padding: 24px 20px;
  overflow-y: auto;
}
.mobile-nav-panel.open { display: block; }
.mobile-nav-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav-panel > ul > li { border-bottom: 1px solid var(--border); }
.mobile-nav-panel a { display: block; padding: 16px 4px; font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; }
.mobile-nav-panel .sub-list { padding-left: 16px; }
.mobile-nav-panel .sub-list a { font-family: var(--font-body); font-size: 0.92rem; padding: 12px 4px; text-transform: none; font-weight: 600; }

@media (max-width: 880px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(8,9,11,0.94) 8%, rgba(8,9,11,0.72) 42%, rgba(8,9,11,0.28) 78%),
              linear-gradient(0deg, rgba(8,9,11,0.75), rgba(8,9,11,0.2) 55%);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 88px; max-width: 720px; }
.hero-sub { font-size: 1.08rem; color: #d8dade; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.chip .star { color: var(--yellow); }

.hero-compact { min-height: 380px; }
.hero-compact .hero-inner { padding: 72px 0 60px; }

/* Trust strip */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}
.trust-strip li::before { content: "\2726"; color: var(--red); margin-right: 8px; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212,15,30,0.4); }
.card-photo { aspect-ratio: 4/3; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.card-link { color: var(--red); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.card:hover .card-link { color: var(--yellow); }

.also-ask {
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
}
.also-ask strong { color: var(--text); }

/* Process */
.process-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  counter-reset: step;
}
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-list { grid-template-columns: 1fr; } }
.process-list li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}
.process-list li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.process-list h3 { font-size: 0.95rem; margin-bottom: 6px; }
.process-list p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* Two-column content (service/city "what is / when is") */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col .photos img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }
.two-col .photos picture { display: block; }

.content-block + .content-block { margin-top: 48px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  border: 1px solid var(--border);
  cursor: pointer;
  background: none;
  padding: 0;
  display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 900px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.gallery-strip .gallery-item { aspect-ratio: 1/1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,7,9,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 999px;
  width: 44px; height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Reviews */
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .review-cards { grid-template-columns: 1fr; } }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.review-card .stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { color: var(--text); font-size: 0.95rem; }
.review-card footer { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.review-cta { text-align: center; margin-top: 40px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 16px 4px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 1.4rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); padding: 0 4px 18px; margin: 0; }

/* Quote form */
.quote-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: flex-start; }
/* Grid items default to min-width:auto (min-content floor ~300px here), which
   overflows viewports narrower than ~345px; let tracks actually shrink. */
.quote-grid > * { min-width: 0; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--red); }
.form-consent { font-size: 0.78rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-bottom: 20px; }
.form-consent input { width: auto; margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 0.88rem; min-height: 1.4em; }
.form-status.ok { color: #7be08a; }
.form-status.err { color: #ff9b9b; }
.turnstile-box { margin: 16px 0; }

/* Quote form: wheel photos */
.photo-field { position: relative; margin-bottom: 16px; }
.photo-label { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
.photo-optional { text-transform: none; letter-spacing: 0; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-actions .btn { flex: 1 1 140px; min-height: 48px; padding: 12px 16px; }
/* Visually hidden but still clickable from script (display:none file inputs
   are unreliable on some mobile browsers). */
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.photo-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.photo-thumbs:not(:empty) { margin-top: 12px; }
.photo-thumb { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-name { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 4px; font-size: 0.68rem; color: var(--muted); text-align: center; word-break: break-all; }
.photo-thumb button { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.photo-thumb button:focus-visible { outline: 2px solid var(--yellow); }
.photo-note { margin: 8px 0 0; font-size: 0.8rem; color: var(--muted); min-height: 1.2em; }
.photo-note.err { color: #ff9b9b; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; max-width: 280px; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--muted);
}
.footer-kit { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-kit a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); }
.footer-kit a:hover { color: var(--yellow); }

/* What's New board */
.updates-list { display: flex; flex-direction: column; gap: 22px; max-width: 720px; margin: 0 auto; }
.update-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.update-date {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.update-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.update-card p { color: var(--muted); margin: 0; }

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
@media (max-width: 720px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 74px; }
}
.mobile-call-bar a { flex: 1; text-align: center; padding: 13px 10px; border-radius: 999px; font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; }
.mobile-call-bar .call { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.mobile-call-bar .quote { background: var(--red); color: #fff; }

/* Service-areas index */
.city-index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .city-index-grid { grid-template-columns: repeat(2, 1fr); } }
.city-index-grid a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-weight: 600;
}
.city-index-grid a:hover { border-color: var(--red); color: var(--yellow); }

.crosslinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.crosslinks a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
}
.crosslinks a:hover { border-color: var(--red); color: var(--yellow); }

/* Privacy / legal */
.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal h3 { margin-top: 1.2em; font-size: 1.05rem; }
.legal ul { color: var(--muted); }
.legal p, .legal li { color: var(--muted); }
.legal { max-width: 760px; }

/* 404 */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-page .eyebrow { color: var(--red); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .quote-section { padding: 24px; }
  .cta-band { padding: 32px; flex-direction: column; text-align: center; }
}
