/* Economy Auto Body Shop — demo
   60-30-10 colour rule (one accent only):
   60% dominant  #0E0F11 deep charcoal — page, hero, header, footer, large surfaces
   30% secondary #1C1E22 steel grey — cards, panels, section bands + #F2F2F0 off-white text
   10% accent    #E10600 signal red — buttons, CTAs, eyebrows, links, highlights ONLY */
:root {
  --ink: #0e0f11;
  --ink-2: #141619;
  --steel: #1c1e22;
  --steel-2: #26292f;
  --line: #33373e;
  --text: #f2f2f0;
  --muted: #b9bdc4;
  --accent: #e10600;
  --accent-dark: #b30500;
  --radius: 14px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section-sub { color: var(--muted); max-width: 640px; }
.accent-text { color: var(--accent); }
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .7em;
}
.stars { color: var(--accent); letter-spacing: .1em; }

/* Demo badge */
.demo-badge {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 20px;
  background: rgba(14, 15, 17, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-weight: 900; font-size: 1.3rem;
}
.brand-text { font-size: .95rem; letter-spacing: .06em; }
.brand-text strong { color: var(--accent); }
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; font-size: .95rem;
}
.main-nav a:hover { color: var(--text); background: var(--steel); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 1.2rem; cursor: pointer; }

/* Buttons — the accent lives here (10%) */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 800; font-size: 1rem; text-align: center;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: 10px 16px; font-size: .9rem; white-space: nowrap; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,17,.96) 0%, rgba(14,15,17,.82) 46%, rgba(14,15,17,.45) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 96px 20px 90px; }
.hero-sub { font-size: 1.15rem; color: #e6e7e8; max-width: 620px; }
.trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0; font-size: .98rem; }
.trust-line strong { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 34px; }
.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid rgba(255,255,255,.18); max-width: 860px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.05rem; }
.hero-facts span span, .hero-facts li span { color: var(--muted); font-size: .88rem; }

/* Steps */
.steps { background: var(--ink-2); }
.steps-grid { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps-grid li { background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num { display: block; color: var(--accent); font-weight: 900; font-size: 1.6rem; margin-bottom: 8px; }
.steps-grid p { color: var(--muted); margin: 0; }

/* Estimate */
.estimate { background: var(--ink); }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.estimate-photo { border-radius: var(--radius); margin: 18px 0; border: 1px solid var(--line); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; font-weight: 600; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900; }
.panel {
  background: var(--steel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.form-note { color: var(--muted); font-size: .88rem; }
.form-fine { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.form-fine a { color: var(--accent); font-weight: 700; }
.estimate-form label, .booking-form label { display: block; font-weight: 700; font-size: .92rem; margin: 16px 0 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--text);
  font: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
input[type="file"] { width: 100%; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--ink-2); color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-error { color: #ff6b64; font-weight: 700; margin: 12px 0 0; }
.photo-preview { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.photo-preview img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.confirmation { text-align: left; }
.confirm-check {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.6rem; font-weight: 900; margin-bottom: 12px;
}

/* Gallery */
.gallery { background: var(--ink-2); }
.stock-note { color: var(--muted); font-size: .9rem; border-left: 3px solid var(--accent); padding-left: 12px; max-width: 720px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.ba { margin: 0; }
.ba-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); aspect-ratio: 4 / 3; cursor: ew-resize;
  touch-action: none; user-select: none;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba-before-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap .ba-before { width: 400%; max-width: none; }
.ba-tag {
  position: absolute; top: 12px; z-index: 3;
  background: rgba(14,15,17,.85); color: #fff; font-size: .78rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; background: var(--accent); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; z-index: 2;
  background: var(--accent); transform: translateX(-50%);
}
.ba-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem; font-weight: 900;
}
.ba figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.card { background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); font-size: 1.5rem; margin-bottom: 14px; }
.insurance-strip {
  margin-top: 28px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px;
  background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; align-items: stretch;
}
.insurance-strip img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.insurance-strip > div { padding: 32px 32px 32px 0; }
.insurance-steps { margin: 0 0 22px; padding-left: 22px; color: var(--muted); display: grid; gap: 10px; }
.insurance-steps strong { color: var(--text); }

/* Booking */
.booking { background: var(--ink-2); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.review-card { text-align: center; }
.review-score { font-size: 2.4rem; font-weight: 900; margin: .2em 0 0; }
.review-score span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.review-count { font-weight: 700; margin: 0; }
.review-source { color: var(--muted); margin: .4em 0 0; }
.reviews-note { margin-top: 26px; color: var(--muted); text-align: center; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.visit address { font-style: normal; font-size: 1.15rem; line-height: 1.7; margin-bottom: 10px; }
.visit-phone { font-size: 1.15rem; }
.visit-phone a { color: var(--accent); font-weight: 800; text-decoration: none; }
.visit-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--muted); }
.hours-note { color: var(--muted); font-size: .88rem; margin-top: 16px; }
.open-now { font-weight: 800; color: var(--accent); margin: 8px 0 0; }

/* Final CTA */
.final-cta { background: var(--steel); border-top: 1px solid var(--line); padding: 72px 0; text-align: center; }
.final-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 110px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid p { color: var(--muted); }
.footer-brand { color: var(--text); }
.footer-brand strong { color: var(--accent); }
.site-footer a { color: var(--accent); }
.footer-note { max-width: var(--max); margin: 28px auto 0; padding: 0 20px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 22px; }

/* Sticky mobile bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1fr 1fr;
  background: rgba(14,15,17,.97); border-top: 1px solid var(--line);
}
.sticky-bar a { text-align: center; padding: 14px 6px; text-decoration: none; font-weight: 800; font-size: .92rem; }
.sticky-bar a:nth-child(2) { background: var(--accent); color: #fff; }

/* Reveal defaults (JS enhances) */
.reveal { opacity: 1; }
.js-anim .reveal { opacity: 0; }

/* Responsive */
@media (max-width: 900px) {
  .estimate-grid, .booking-grid, .visit-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid, .services-grid, .reviews-grid, .gallery-grid { grid-template-columns: 1fr; }
  .insurance-strip { grid-template-columns: 1fr; }
  .insurance-strip > div { padding: 0 24px 28px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--line); padding: 10px 20px 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header .btn-small { display: none; }
  .sticky-bar { display: grid; }
  .section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* Animated ad creative (before -> after) */
.ad-animation { background: var(--ink); }
.ad-stage-wrap {
  position: relative; margin-top: 34px;
  background: var(--steel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 24px 12px; overflow: hidden;
}
.ad-svg { width: 100%; height: auto; }
.ad-sparkle { opacity: 0; }
.ad-badge {
  position: absolute; top: 22px; right: 24px;
  background: var(--accent); color: #fff; font-weight: 900; font-size: 1.15rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 10px; opacity: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.ad-stage-label { font-weight: 700; margin: 18px 0; min-height: 1.6em; }
.ad-stage-label::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px; }
/* No-JS / no-GSAP / reduced-motion final state */
.ad-final #adBody { fill: #e10600; }
.ad-final #adDent1, .ad-final #adDent2, .ad-final #adCracks, .ad-final #adSpray { display: none; }
.ad-final .ad-sparkle { opacity: 1; }
.ad-final .ad-badge { opacity: 1; }


/* Embedded map (Visit Us) */
.map-wrap { margin-top: 40px; background: var(--steel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.35) contrast(1.02); }
.map-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.map-caption { margin: 0; color: var(--muted); max-width: 640px; }
.reviews-link { text-align: center; margin-top: 22px; }
.reviews-link a { color: var(--accent); font-weight: 800; text-decoration: none; }
.reviews-link span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
  .map-frame { height: 320px; }
}

/* Reserved ad creative space */
.ad-creative { background: var(--ink-2); }
.reserved-space { margin-top: 34px; }
.reserved-frame {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--steel); border: 2px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 10px;
}
.reserved-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px;
}
.reserved-title { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; margin: 0; line-height: 1.3; }
.reserved-sub { color: var(--muted); margin: 0; }
.reserved-note { color: var(--muted); font-size: .9rem; border-left: 3px solid var(--accent); padding-left: 12px; max-width: 720px; margin-top: 22px; }
