/*
Theme Name: Ameri Auto Group
Theme URI: https://ameriautogroup.com
Author: Ameri Auto Group
Description: Custom theme for Ameri Auto Group — Denver, CO. Includes the full site design: home, junk cars, car dealer inventory, auto shop, and mechanic sections.
Version: 1.3.0
License: Private
Text Domain: ameri-auto
*/


/* ════════════════════════════════════════════════════════════════
   AMERI AUTO GROUP — DESIGN SYSTEM v2
   Palette matched to the brand logo: racing red / ink black / white.
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

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

:root {
  /* ── Primitive tokens — sampled directly from the logo art ── */
  --c-red:        #E8231B;
  --c-red-hi:     #FF3B30;
  --c-red-dk:     #B5150F;
  --c-ink:        #0D0D0D;
  --c-charcoal:   #1A1A1A;
  --c-steel:      #5C5C5C;
  --c-steel-lt:   #8C8C8C;
  --c-white:      #FFFFFF;
  --c-paper:      #F5F5F4;
  --c-paper-dim:  #EAEAE8;
  --c-line:       rgba(13,13,13,0.12);
  --c-line-lt:    rgba(255,255,255,0.16);

  /* ── Semantic tokens ── */
  --surface:           var(--c-paper);
  --surface-raised:    var(--c-white);
  --surface-dark:      var(--c-ink);
  --on-surface:        var(--c-ink);
  --on-surface-muted:  var(--c-steel);
  --on-dark:           var(--c-white);
  --on-dark-muted:     rgba(255,255,255,0.64);
  --border-default:    var(--c-line);
  --border-dark:       var(--c-line-lt);
  --action-primary:    var(--c-red);
  --action-primary-hi: var(--c-red-hi);
  --action-urgent:     var(--c-red);
  --action-urgent-hi:  var(--c-red-hi);
  --focus-ring:        #2E7DD6;

  /* ── Type scale ── */
  --font-display: 'Anton', 'Inter', sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --text-display-xl: clamp(2.9rem, 6.4vw, 5.8rem);
  --text-display-lg: clamp(2.3rem, 4.4vw, 3.6rem);
  --text-display-md: clamp(1.7rem, 2.8vw, 2.35rem);
  --text-body-lg: 1.0625rem;
  --text-body:    0.95rem;
  --text-small:   0.8125rem;
  --text-micro:   0.6875rem;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* ── Component tokens ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --icon-box: 48px;
  --icon-glyph: 22px;
  --shadow-card: 0 1px 2px rgba(13,13,13,0.05), 0 8px 24px rgba(13,13,13,0.08);
  --shadow-card-hover: 0 4px 10px rgba(13,13,13,0.07), 0 20px 40px rgba(13,13,13,0.14);
  --shadow-deep: 0 30px 70px rgba(13,13,13,0.4);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 450ms;
}

html { scroll-behavior: smooth; }
html, body { background: var(--surface); }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

::selection { background: var(--c-red); color: var(--c-white); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.dark-zone :focus-visible { outline-color: var(--c-red-hi); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ════════════════ SCROLL PROGRESS ════════════════ */
#scroll-progress-wrap {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 999;
  background: rgba(13,13,13,0.06);
}
#scroll-progress {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--c-red-dk), var(--c-red), var(--c-red-hi));
  box-shadow: 0 0 12px rgba(232,35,27,0.5);
  transition: width 0.05s linear;
}

/* ════════════════ NAV ════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  height: 72px;
  gap: var(--space-6);
  transition: box-shadow var(--dur-base);
}
.site-nav.is-scrolled { box-shadow: 0 4px 24px rgba(13,13,13,0.08); }

.nav-mark { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; height: 44px; }
.nav-mark img { height: 100%; width: auto; max-width: 168px; object-fit: contain; display: block; }

.nav-links { display: flex; gap: var(--space-1); list-style: none; flex: 1; justify-content: center; }
.nav-links a {
  text-decoration: none; font-size: var(--text-small);
  color: var(--on-surface-muted); font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 16px; border-radius: 99px;
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative; white-space: nowrap;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--c-ink); background: rgba(13,13,13,0.05); }
.nav-links a[aria-current="page"] { color: var(--c-red); background: rgba(232,35,27,0.08); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-red); color: var(--c-white);
  border: none; border-radius: 99px;
  padding: 11px 20px; font-size: var(--text-small); font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.nav-cta:hover { background: var(--c-red-dk); }
.nav-cta:active { transform: scale(0.97); }
.nav-cta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--on-surface); fill: none; stroke-width: 2; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 11px; }
  .nav-mark { height: 36px; }
}

.nav-drawer {
  position: fixed; inset: 0; z-index: 300; background: var(--c-ink);
  display: flex; flex-direction: column;
  padding: 100px clamp(24px,8vw,56px) 40px;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-close {
  position: absolute; top: 20px; right: clamp(20px,5vw,56px);
  width: 44px; height: 44px; background: none; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-drawer-close svg { width: 24px; height: 24px; stroke: var(--c-white); fill: none; stroke-width: 1.8; }
.nav-drawer a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 400;
  color: var(--c-white); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--border-dark);
  text-transform: uppercase; letter-spacing: 0.01em;
}
.nav-drawer a[aria-current="page"] { color: var(--c-red-hi); }
.nav-drawer-phone { margin-top: auto; font-family: var(--font-mono); color: var(--c-red-hi); font-size: 1.1rem; text-decoration: none; }

/* ════════════════ BUTTONS ════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-small);
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 99px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  min-height: 44px; position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.btn-primary { background: var(--c-red); color: var(--c-white); }
.btn-primary:hover { background: var(--c-red-dk); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg); transition: left 0.6s;
}
.btn-primary:hover::after { left: 140%; }

.btn-urgent { background: var(--c-ink); color: var(--c-white); }
.btn-urgent:hover { background: var(--c-charcoal); }

.btn-outline { background: transparent; color: var(--on-surface); border-color: var(--border-default); }
.btn-outline:hover { border-color: var(--c-ink); }

.btn-outline-dark { background: transparent; color: var(--c-white); border-color: var(--border-dark); }
.btn-outline-dark:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }

.btn-ghost-dark { background: rgba(255,255,255,0.1); color: var(--c-white); border-color: transparent; }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.18); }

/* ════════════════ SECTION SHELL ════════════════ */
.section { padding: var(--space-24) clamp(20px, 6vw, 64px); }
.section-tight { padding: var(--space-16) clamp(20px, 6vw, 64px); }
.section-narrow { max-width: 1180px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--text-micro);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--c-red); font-weight: 600;
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ''; width: 18px; height: 3px; background: var(--c-red); }
.eyebrow.on-dark { color: var(--c-red-hi); }

.heading-xl { font-family: var(--font-display); font-weight: 400; font-size: var(--text-display-xl); line-height: 0.96; letter-spacing: 0.005em; color: var(--on-surface); text-transform: uppercase; }
.heading-lg { font-family: var(--font-display); font-weight: 400; font-size: var(--text-display-lg); line-height: 1.02; letter-spacing: 0.005em; color: var(--on-surface); text-transform: uppercase; }
.heading-md { font-family: var(--font-display); font-weight: 400; font-size: var(--text-display-md); line-height: 1.1; color: var(--on-surface); text-transform: uppercase; }
.on-dark .heading-xl, .on-dark .heading-lg, .on-dark .heading-md { color: var(--on-dark); }
.heading-xl em, .heading-lg em, .heading-md em { font-style: normal; color: var(--c-red); }
.on-dark em { color: var(--c-red-hi); }

.body-lead { font-size: var(--text-body-lg); color: var(--on-surface-muted); max-width: 46ch; line-height: 1.7; }
.on-dark .body-lead { color: var(--on-dark-muted); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); margin-bottom: var(--space-12); flex-wrap: wrap; }
.section-head .body-lead { text-align: right; max-width: 360px; }
@media (max-width: 700px) { .section-head .body-lead { text-align: left; } }

/* ════════════════ ICON SYSTEM ════════════════ */
.icon-tile {
  width: var(--icon-box); height: var(--icon-box); min-width: var(--icon-box);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,35,27,0.08);
  flex-shrink: 0;
  transition: background var(--dur-base), transform var(--dur-base);
}
.icon-tile svg {
  width: var(--icon-glyph); height: var(--icon-glyph);
  min-width: var(--icon-glyph); min-height: var(--icon-glyph);
  flex-shrink: 0;
  stroke: var(--c-red); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-tile.sm { width: 36px; height: 36px; min-width: 36px; }
.icon-tile.sm svg { width: 17px; height: 17px; min-width: 17px; min-height: 17px; }
.icon-tile.lg { width: 60px; height: 60px; min-width: 60px; }
.icon-tile.lg svg { width: 27px; height: 27px; min-width: 27px; min-height: 27px; }

/* ════════════════ CARDS ════════════════ */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.card-interactive { cursor: pointer; }
.card-interactive:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

/* ════════════════ WORK-ORDER TICKET ════════════════ */
.ticket { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-deep); padding: var(--space-8); position: relative; font-family: var(--font-mono); }
.ticket::before { content: ''; position: absolute; left: 0; top: var(--space-6); bottom: var(--space-6); width: 4px; background: var(--c-red); border-radius: 0 3px 3px 0; }
.ticket-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: 9px 0; border-bottom: 1px dashed var(--border-default); font-size: var(--text-small); }
.ticket-row:last-child { border-bottom: none; }
.ticket-label { color: var(--on-surface-muted); }
.ticket-value { color: var(--on-surface); font-weight: 600; }
.ticket-stamp { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: var(--text-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #2E7D46; margin-top: var(--space-3); }
.ticket-stamp::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2E7D46; }

/* ════════════════ STAT ════════════════ */
.stat-num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--on-surface); }
.on-dark .stat-num { color: var(--on-dark); }
.stat-label { font-size: var(--text-small); color: var(--on-surface-muted); margin-top: var(--space-2); text-transform: uppercase; letter-spacing: 0.04em; }
.on-dark .stat-label { color: var(--on-dark-muted); }

/* ════════════════ FOOTER ════════════════ */
.site-footer { background: var(--c-ink); color: var(--on-dark); padding: var(--space-24) clamp(20px,6vw,64px) var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: var(--space-12); max-width: 1180px; margin: 0 auto; padding-bottom: var(--space-12); border-bottom: 1px solid var(--border-dark); }
.footer-mark { height: 48px; margin-bottom: var(--space-4); }
.footer-mark img { height: 100%; width: auto; max-width: 180px; object-fit: contain; }
.footer-tagline { color: var(--on-dark-muted); font-size: var(--text-small); max-width: 32ch; line-height: 1.7; }
.footer-col-title { font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-red-hi); margin-bottom: var(--space-4); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; font-size: var(--text-small); transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--c-white); }
.footer-contact { font-size: var(--text-small); color: var(--on-dark-muted); line-height: 1.8; }
.footer-contact a { color: var(--c-white); text-decoration: none; font-weight: 600; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: var(--space-6); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom-text { font-size: var(--text-micro); color: var(--on-dark-muted); }
.footer-legal { display: flex; gap: var(--space-6); }
.footer-legal a { color: var(--on-dark-muted); font-size: var(--text-micro); text-decoration: none; }
.footer-legal a:hover { color: var(--c-white); }

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ════════════════ SOCIAL ROW ════════════════ */
.social-row { display: flex; gap: 8px; }
.social-link { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); color: var(--on-dark-muted); transition: background var(--dur-fast), color var(--dur-fast); }
.social-link:hover { background: var(--c-red); color: var(--c-white); }
.social-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ════════════════ SCROLL REVEAL ════════════════ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ════════════════ UTILITY ════════════════ */
.dark-zone { background: var(--c-ink); color: var(--on-dark); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--c-ink); color: var(--c-white); padding: 12px 20px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 12px; top: 12px; }

/* ════════════════════════════════════════════════════════════════
   HERO v2 — full-bleed scene + floating 3D ticket.
   Motion now responds to BOTH cursor position AND scroll position
   (set via --scroll-progress custom property from app.js), so the
   page never reads as static / "PDF-like".
   ════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  overflow: hidden;
  background: var(--c-ink);
  display: flex;
  align-items: center;
  perspective: 1600px;
}

.hero-media { position: absolute; inset: 0; z-index: 0; transform-style: preserve-3d; }
.hero-media img:not(#homeHeroImg), .hero-media .hero-illustration {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: translateZ(0) scale(1.12);
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}
.hero.is-loaded .hero-media img:not(#homeHeroImg) { transform: translateZ(0) scale(1.04); }

#homeHeroImg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(13,13,13,0.94) 0%, rgba(13,13,13,0.80) 32%, rgba(13,13,13,0.40) 58%, rgba(13,13,13,0.14) 100%),
    linear-gradient(to top, rgba(13,13,13,0.6) 0%, transparent 32%);
}
.hero-scrim-red {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(140deg, rgba(232,35,27,0.22) 0%, transparent 55%);
  mix-blend-mode: screen;
}

.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative; z-index: 3;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(100px,16vh,160px) clamp(20px,6vw,64px) clamp(60px,8vh,90px);
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 64px); align-items: center;
}

.hero-copy { transform-style: preserve-3d; }
.hero-copy .eyebrow { transform: translateZ(30px); }
.hero-copy .heading-xl { transform: translateZ(40px); margin-bottom: var(--space-6); }
.hero-copy .body-lead { transform: translateZ(20px); margin-bottom: var(--space-8); }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; transform: translateZ(25px); }

.hero-ticket-stage { transform-style: preserve-3d; transition: transform 0.15s linear; justify-self: center; }
.hero-ticket { width: min(320px, 100%); transform: translateZ(80px) rotate(-2deg); transition: transform var(--dur-slow) var(--ease-spring); }
.hero-ticket-stage:hover .hero-ticket { transform: translateZ(100px) rotate(0deg) scale(1.02); }
.hero-ticket-perf {
  height: 14px; margin: 0 -32px -8px;
  background-image: radial-gradient(circle, var(--c-paper) 4px, transparent 4.5px);
  background-size: 18px 14px; background-repeat: repeat-x; background-position: center;
}

@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .body-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-ticket-stage { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 540px) { .hero-content { padding-top: 120px; } }

.hero-scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.6; transition: opacity 0.3s;
}
.hero-scroll-cue span { font-family: var(--font-mono); font-size: var(--text-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-white); }
.hero-scroll-cue .line { width: 1px; height: 28px; background: linear-gradient(to bottom, var(--c-red-hi), transparent); animation: scrollpulse 1.8s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.hero-illustration { background: radial-gradient(circle at 30% 20%, #1A1A1A 0%, #0D0D0D 70%); }

/* ════════════════ HOME HERO — speed-streak motif in brand red/black ════════════════ */
.speed-scene { position: absolute; inset: 0; overflow: hidden; }
.speed-streak {
  position: absolute; height: 2px; right: -10%;
  background: linear-gradient(to left, rgba(255,255,255,0.85), transparent);
  border-radius: 2px;
  animation: speedFly linear infinite;
}
.speed-streak.red { background: linear-gradient(to left, rgba(232,35,27,0.9), transparent); }
@keyframes speedFly {
  from { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateX(-140vw); opacity: 0; }
}
.speed-glow {
  position: absolute; right: -15%; top: 50%; width: 70vw; height: 70vw;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(232,35,27,0.28), transparent 60%);
  filter: blur(10px);
}

/* ════════════════ HOME HERO IMAGE ZOOM-IN — car appears to surge toward the viewer ════════════════ */
#homeHeroImg {
  animation: heroPhotoZoomIn 1.8s cubic-bezier(.16,1,.3,1) both;
}
@keyframes heroPhotoZoomIn {
  0%   { transform: scale(1.18) translateX(10px); opacity: 0; }
  100% { transform: scale(1.04) translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #homeHeroImg { animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC STYLES
   ════════════════════════════════════════════════════════════════ */

.page { display: block; }
.page.is-active { display: block; }

/* ── DIVISIONS GRID (home) ── */
.divisions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border-default);
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: -64px; position: relative; z-index: 10;
  max-width: 1180px; margin-inline: auto;
  box-shadow: var(--shadow-deep);
  perspective: 1200px;
}
.division-card {
  background: var(--surface-raised);
  padding: var(--space-8) var(--space-6);
  text-decoration: none; color: var(--on-surface);
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  transform-style: preserve-3d;
  --scroll-skew: 0deg;
}
.division-card:not(:hover) { transform: skewY(var(--scroll-skew)); }
.division-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(21,18,13,0.12); z-index: 2; }
.division-num { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--c-steel-lt); letter-spacing: 0.08em; margin-bottom: var(--space-4); }
.division-name { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin-bottom: var(--space-2); }
.division-desc { font-size: var(--text-small); color: var(--on-surface-muted); line-height: 1.6; margin-bottom: var(--space-6); flex: 1; }
.division-arrow { font-size: 1.1rem; color: var(--c-red); transition: transform var(--dur-base); }
.division-card:hover .division-arrow { transform: translateX(6px); }
@media (max-width: 900px) { .divisions { grid-template-columns: 1fr 1fr; margin-top: -40px; } }
@media (max-width: 560px) { .divisions { grid-template-columns: 1fr; margin-top: -24px; } }

/* ── WHY GRID ── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.why-item { padding: var(--space-8); }
.why-item .icon-tile { margin-bottom: var(--space-6); }
.why-title { font-weight: 700; font-size: 1.05rem; margin-bottom: var(--space-2); }
.why-desc { font-size: var(--text-small); color: var(--on-surface-muted); line-height: 1.65; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ── STATS STRIP ── */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark);
}
.stat-cell { padding: var(--space-12) var(--space-6); text-align: center; border-right: 1px solid var(--border-dark); }
.stat-cell:last-child { border-right: none; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: 1fr 1fr; } .stat-cell:nth-child(2) { border-right: none; } }

/* ── CTA BAND ── */
.cta-band {
  background: var(--c-ink); color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-12) clamp(24px,5vw,56px);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8);
  flex-wrap: wrap;
  position: relative; overflow: hidden;
  max-width: 1180px; margin-inline: auto;
}
.cta-band::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 50%; height: 180%;
  background: radial-gradient(circle, rgba(168,118,58,0.18), transparent 70%);
  pointer-events: none;
}
.cta-band-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); position: relative; z-index: 1; }
.cta-phone-link { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--c-red-hi); text-decoration: none; }
.cta-meta { font-size: var(--text-small); color: var(--on-dark-muted); text-align: right; }
@media (max-width: 700px) { .cta-band { flex-direction: column; align-items: flex-start; } .cta-band-right { align-items: flex-start; } .cta-meta { text-align: left; } }

/* ── REVIEW CARDS ── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.review-card { padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
.review-stars { display: flex; gap: 3px; color: var(--c-red); }
.review-stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.review-quote { font-size: var(--text-body); line-height: 1.65; color: var(--on-surface); flex: 1; }
.review-author { display: flex; align-items: center; gap: var(--space-3); }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-paper-dim); color: var(--c-red-dk);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 400; font-size: 0.9rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: var(--text-small); }
.review-meta { font-size: var(--text-micro); color: var(--on-surface-muted); }
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── JUNK CARS: condition checklist ── */
.condition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.condition-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); }
.condition-check { width: 22px; height: 22px; border-radius: 50%; background: rgba(63,123,79,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.condition-check svg { width: 12px; height: 12px; stroke: #3F7B4F; fill: none; stroke-width: 2.5; }
.condition-text { font-size: var(--text-small); font-weight: 700; }
@media (max-width: 600px) { .condition-grid { grid-template-columns: 1fr; } }

.accept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.accept-item { text-align: center; padding: var(--space-6) var(--space-3); }
.accept-item .icon-tile { margin: 0 auto var(--space-4); }
.accept-title { font-weight: 700; font-size: var(--text-small); margin-bottom: 2px; }
.accept-desc { font-size: var(--text-micro); color: var(--on-surface-muted); }
@media (max-width: 760px) { .accept-grid { grid-template-columns: 1fr 1fr; } }

/* ── PROCESS STEPS ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-default); border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; }
.process-step { background: var(--surface-raised); padding: var(--space-8) var(--space-6); position: relative; }
.process-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--c-red); letter-spacing: 0.1em; margin-bottom: var(--space-4); display: block; }
.process-title { font-weight: 700; font-size: 1rem; margin-bottom: var(--space-2); }
.process-desc { font-size: var(--text-small); color: var(--on-surface-muted); line-height: 1.6; }
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ── CAR DEALER: inventory ── */
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6); }
.car-card { overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.car-card-media { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--c-paper-dim); flex-shrink: 0; }
.car-card-media img, .car-card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); display: block; }
.car-card:hover .car-card-media img, .car-card:hover .car-card-media svg { transform: scale(1.06); }
.car-card-tag { position: absolute; top: 12px; left: 12px; background: var(--c-ink); color: var(--c-paper); font-size: var(--text-micro); font-weight: 700; padding: 5px 12px; border-radius: 99px; letter-spacing: 0.04em; z-index: 1; }
.car-card-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.car-card-name { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: var(--space-1); line-height: 1.15; }
.car-card-trim { font-size: var(--text-small); color: var(--on-surface-muted); margin-bottom: var(--space-3); }
.car-card-specs { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); font-size: var(--text-micro); color: var(--on-surface-muted); font-family: var(--font-mono); margin-bottom: var(--space-4); }
.car-card-specs span:not(:last-child)::after { content: '·'; margin-left: var(--space-3); color: var(--border-default); }
.car-card-price-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--space-4); border-top: 1px solid var(--border-default); margin-top: auto; }
.car-card-price { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.car-card-monthly { font-size: var(--text-micro); color: var(--on-surface-muted); }
.car-card-cta { font-size: var(--text-small); font-weight: 700; color: var(--c-red-dk); text-decoration: none; }
@media (max-width: 420px) { .inventory-grid { grid-template-columns: 1fr; } }

/* ── Inventory toolbar ── */
.inventory-toolbar { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-8); }
.inventory-filter-btn {
  font-family: var(--font-body); font-size: var(--text-small); font-weight: 600;
  padding: 9px 18px; border-radius: 99px; border: 1px solid var(--border-default);
  background: var(--surface-raised); color: var(--on-surface-muted); cursor: pointer;
  transition: all var(--dur-fast);
}
.inventory-filter-btn:hover { border-color: var(--c-ink); color: var(--c-ink); }
.inventory-filter-btn.is-active { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.inventory-count { font-size: var(--text-small); color: var(--on-surface-muted); margin-bottom: var(--space-6); }

/* ════════════════ VEHICLE DETAIL PAGE ════════════════ */
.vehicle-detail-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-small); font-weight: 600; color: var(--on-surface-muted);
  text-decoration: none; margin-bottom: var(--space-8); cursor: pointer;
}
.vehicle-detail-back:hover { color: var(--c-ink); }
.vehicle-detail-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.vehicle-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 980px) { .vehicle-detail-grid { grid-template-columns: 1fr; } }

.vehicle-gallery-main { aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; background: var(--c-paper-dim); margin-bottom: var(--space-4); box-shadow: var(--shadow-card); }
.vehicle-gallery-main img, .vehicle-gallery-main svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.vehicle-gallery-thumb { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--c-paper-dim); transition: border-color var(--dur-fast); }
.vehicle-gallery-thumb.is-active { border-color: var(--c-red); }
.vehicle-gallery-thumb img, .vehicle-gallery-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.vehicle-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-2); flex-wrap: wrap; }
.vehicle-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; line-height: 1.05; }
.vehicle-trim { font-size: var(--text-body-lg); color: var(--on-surface-muted); margin-bottom: var(--space-6); }
.vehicle-price-block { text-align: right; flex-shrink: 0; }
.vehicle-price { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--c-red); line-height: 1; }
.vehicle-monthly { font-size: var(--text-small); color: var(--on-surface-muted); }

.vehicle-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin: var(--space-8) 0; padding: var(--space-6); background: var(--c-paper-dim); border-radius: var(--radius-lg); }
.vehicle-spec-item { display: flex; flex-direction: column; gap: 2px; }
.vehicle-spec-label { font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-surface-muted); }
.vehicle-spec-value { font-size: var(--text-body); font-weight: 600; }

.vehicle-summary { font-size: var(--text-body-lg); line-height: 1.7; color: var(--on-surface); margin-bottom: var(--space-8); }

.vehicle-features-title { font-weight: 700; font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.04em; color: var(--on-surface-muted); margin-bottom: var(--space-4); }
.vehicle-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-8); }
.vehicle-feature-item { display: flex; align-items: center; gap: 8px; font-size: var(--text-small); }
.vehicle-feature-item svg { width: 14px; height: 14px; stroke: #2E7D46; fill: none; stroke-width: 2.5; flex-shrink: 0; }

.vehicle-cta-card { background: var(--c-ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: var(--space-8); position: sticky; top: 90px; }
.vehicle-cta-stock { font-family: var(--font-mono); font-size: var(--text-micro); color: var(--on-dark-muted); margin-bottom: var(--space-2); }
.vehicle-cta-card .btn { width: 100%; margin-top: var(--space-3); }
.vehicle-cta-disclaimer { font-size: var(--text-micro); color: var(--on-dark-muted); margin-top: var(--space-4); line-height: 1.6; }

.vehicle-not-found { text-align: center; padding: var(--space-24) var(--space-6); }


/* ── AUTO SHOP: services ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-card { padding: var(--space-8); }
.service-card .icon-tile { margin-bottom: var(--space-6); }
.service-title { font-weight: 700; font-size: 1.05rem; margin-bottom: var(--space-2); }
.service-desc { font-size: var(--text-small); color: var(--on-surface-muted); line-height: 1.65; margin-bottom: var(--space-4); }
.service-price { font-family: var(--font-mono); font-size: var(--text-small); color: var(--c-red-dk); font-weight: 700; }
@media (max-width: 880px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.warranty-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.warranty-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.warranty-num { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--c-red); line-height: 1; }
@media (max-width: 700px) { .warranty-strip { grid-template-columns: 1fr; } }

/* ── MECHANIC: specialties + repair table ── */
.specialty-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.specialty-item { display: flex; gap: var(--space-5); padding: var(--space-6); }
.specialty-item .icon-tile { margin-top: 2px; }
@media (max-width: 760px) { .specialty-grid { grid-template-columns: 1fr; } }

.repair-table { width: 100%; border-collapse: collapse; }
.repair-table th { text-align: left; font-family: var(--font-mono); font-size: var(--text-micro); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-surface-muted); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-default); }
.repair-table td { padding: var(--space-5); border-bottom: 1px solid var(--border-default); font-size: var(--text-small); }
.repair-table tr:last-child td { border-bottom: none; }
.repair-table tr:hover td { background: var(--c-paper-dim); }
.repair-table-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.repair-table-wrap .repair-table { min-width: 480px; }

/* ── Generic photo banner ── */
.photo-banner { position: relative; height: clamp(220px, 32vw, 340px); overflow: hidden; border-radius: var(--radius-lg); margin: 0 clamp(20px,6vw,64px); }
.photo-banner img { width: 100%; height: 100%; object-fit: cover; }
.photo-banner-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,18,13,0.78), transparent 55%); display: flex; align-items: flex-end; padding: var(--space-8); }
.photo-banner-text { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--c-paper); }
@media (max-width: 700px) { .photo-banner { margin: 0 20px; } }



/* ── WordPress theme overrides ── */
.page { display: block !important; }
.page.is-active { display: block !important; }
