/* ============================================
   ProMatch Auto — Production Stylesheet
   "Cars enter broken. They leave better than before."
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* The spectrum — pulled straight from the triangle */
  --color-red: #c0392b;
  --color-orange: #d4700a;
  --color-gold: #c9a800;
  --color-green: #1fa04a;
  --color-teal: #1a9a9a;
  --color-blue: #2a6fcc;
  --color-purple: #6a2aaa;

  /* The gradient — the soul of the brand */
  --gradient-spectrum: linear-gradient(90deg,
    var(--color-purple),
    var(--color-blue),
    var(--color-teal),
    var(--color-green),
    var(--color-gold),
    var(--color-orange),
    var(--color-red)
  );
  --gradient-spectrum-v: linear-gradient(180deg,
    var(--color-red),
    var(--color-orange),
    var(--color-gold),
    var(--color-green),
    var(--color-teal),
    var(--color-blue),
    var(--color-purple)
  );

  /* Functional */
  --color-black: #0e0e0e;
  --color-dark: #141414;
  --color-surface: #2a2a2a;
  --color-bg: #252525;
  --color-text: #e0e0e0;
  --color-text-muted: #999999;
  --color-text-light: #777777;
  --color-accent: #c0392b;
  --color-cta: #c0392b;
  --color-cta-hover: #a52a1f;
  --color-border: #333333;
  --color-section-alt: #222222;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ============================================
   SPECTRUM BAR — the recurring motif
   A thin gradient line that says "this is ProMatch"
   ============================================ */
.spectrum-bar {
  height: 4px;
  background: var(--gradient-spectrum);
  width: 100%;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-black);
}

/* Spectrum strip under header */
.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--gradient-spectrum);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: #ffffff; }
.nav-links a.active { color: #ffffff; font-weight: 700; }
.nav-links .btn-cta.active { color: #111111; }

/* Nav CTA — grey pill */
.nav-links .btn-cta {
  background: #e0e0e0;
  color: #111111;
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
}

.nav-links .btn-cta:hover {
  background: #ffffff;
  color: #111111;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  color: #111111;
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: #ffffff;
  color: #111111;
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(0);
  background: #cccccc;
  color: #111111;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  position: relative;
  padding-bottom: 4px;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-spectrum);
  transition: height 0.2s;
}

.btn-secondary:hover::after {
  height: 4px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
main {
  min-height: calc(100vh - var(--nav-height));
}

section {
  padding: var(--space-xl) 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   HERO — The entrance. Bold. Dark. Dramatic.
   ============================================ */
.hero {
  background: var(--color-black);
  padding: calc(var(--space-xl) + 2rem) 0;
  position: relative;
  overflow: hidden;
}

/* Map background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/area-map.svg') center calc(25% - 160px) / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

/* Fade left side so text is clean */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-black) 25%, rgba(14,14,14,0.7) 42%, rgba(14,14,14,0.2) 58%, transparent 68%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Spectrum accent line above heading */
.hero .container::before {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-spectrum);
  margin-bottom: 2rem;
  border-radius: 2px;
}

.hero-location {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: #ffffff;
  max-width: 720px;
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  line-height: 1.05;
}

.hero p {
  color: #888888;
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero .btn-cta {
  background: #e0e0e0;
  color: #111111;
  border-radius: 100px;
  padding: 0.5rem 1.4rem;
  font-size: 0.85rem;
}

.hero .btn-cta:hover {
  background: #ffffff;
  color: #111111;
}

/* ============================================
   TRUST BAR — Spectrum-backed confidence strip
   ============================================ */
.trust-bar {
  background: var(--color-dark);
  padding: 0;
  border: none;
  position: relative;
}

/* Top spectrum line */
.trust-bar::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--gradient-spectrum);
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.trust-bar div {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #cccccc;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================
   SERVICE CARDS — Color-coded by spectrum
   ============================================ */
.services-preview {
  background: #2a2a2a;
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
}

.services-preview h2 {
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.services-preview .container {
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #353535;
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Spectrum top border on each card */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-spectrum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Color-code each card's accent */
.service-card:nth-child(1) { border-top: 4px solid var(--color-red); }
.service-card:nth-child(2) { border-top: 4px solid var(--color-orange); }
.service-card:nth-child(3) { border-top: 4px solid var(--color-teal); }
.service-card:nth-child(4) { border-top: 4px solid var(--color-green); }

.service-card:nth-child(1):hover::before { background: var(--color-red); }
.service-card:nth-child(2):hover::before { background: var(--color-orange); }
.service-card:nth-child(3):hover::before { background: var(--color-teal); }
.service-card:nth-child(4):hover::before { background: var(--color-green); }

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #999;
}

/* ============================================
   WHY PROMATCH — Dark section, spectrum accents
   ============================================ */
.why-promatch {
  background: var(--color-black);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Subtle angled background texture */
.why-promatch::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: conic-gradient(
    from 90deg,
    rgba(26, 154, 154, 0.06),
    rgba(42, 111, 204, 0.04),
    rgba(106, 42, 170, 0.06),
    transparent
  );
  filter: blur(80px);
  pointer-events: none;
}

.why-promatch h2 {
  color: #ffffff;
  margin-bottom: var(--space-md);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.why-grid > div {
  padding: 1.75rem;
  border-left: 4px solid;
  transition: transform 0.2s;
}

.why-grid > div:hover {
  transform: translateX(4px);
}

/* Each pillar gets a spectrum color */
.why-grid > div:nth-child(1) { border-color: var(--color-red); }
.why-grid > div:nth-child(2) { border-color: var(--color-orange); }
.why-grid > div:nth-child(3) { border-color: var(--color-teal); }
.why-grid > div:nth-child(4) { border-color: var(--color-green); }

.why-grid h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.why-grid p {
  color: #999999;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ============================================
   REVIEWS — Cards with spectrum left accents
   ============================================ */
.reviews {
  background: #303030;
}

.reviews h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: #ffffff;
}

.reviews-slideshow {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  min-height: 180px;
}

.review-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
  background: #3a3a3a;
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  border: 1px solid #333;
  border-left: 4px solid var(--color-gold);
}

.review-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.reviews blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #aaa;
}

.reviews blockquote cite {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ddd;
  letter-spacing: 0.02em;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.review-dot.active {
  background: var(--color-gold);
}

.reviews-badge {
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   LOCATIONS SERVED — Chip links
   ============================================ */
.locations-served {
  background: var(--color-dark);
  padding: var(--space-lg) 0;
}

.locations-served h2 {
  text-align: center;
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.locations-served ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.locations-served li a {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border: 2px solid #333333;
  border-radius: var(--radius-sm);
  color: #cccccc;
  transition: all 0.3s;
}

.locations-served li:nth-child(1) a:hover { border-color: var(--color-red); background: var(--color-red); color: #fff; }
.locations-served li:nth-child(2) a:hover { border-color: var(--color-orange); background: var(--color-orange); color: #fff; }
.locations-served li:nth-child(3) a:hover { border-color: var(--color-teal); background: var(--color-teal); color: #fff; }
.locations-served li:nth-child(4) a:hover { border-color: var(--color-green); background: var(--color-green); color: #fff; }

/* ============================================
   LOCAL ROOTS
   ============================================ */
.local-roots {
  background: #1a1a1a;
  text-align: center;
}

.local-roots h2 {
  color: #ffffff;
}

.local-roots p {
  max-width: 620px;
  margin: 0 auto var(--space-md);
  font-size: 1.1rem;
  color: #999;
}

.local-areas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.local-areas a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border: 2px solid #444;
  border-radius: var(--radius-sm);
  color: #ccc;
  transition: all 0.3s;
}

.local-areas a:hover { border-color: #fff; background: #fff; color: #111; }

.local-areas span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1.4rem;
  border: 2px solid #333;
  border-radius: var(--radius-sm);
  color: #777;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.services-faq h2 {
  text-align: center;
  margin-bottom: var(--space-md);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid #333;
  padding: 1.25rem 0;
}

.faq-list summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #ddd;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::after {
  content: '+';
  font-size: 1.4rem;
  color: #666;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  margin-top: 0.75rem;
  color: #999;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   FINAL CTA — Spectrum-backed call to action
   ============================================ */
.final-cta {
  background: #2a2a2a;
  text-align: center;
  position: relative;
}

/* Spectrum bar above */
.final-cta::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--gradient-spectrum);
}

.final-cta h2 {
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.final-cta p {
  max-width: 520px;
  margin: 0 auto var(--space-md);
  font-size: 1.1rem;
  color: #999;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ccc;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.btn-phone:hover {
  color: #ffffff;
}

/* ============================================
   SERVICES PAGE — Section accents
   ============================================ */
.service-detail {
  padding: var(--space-lg) 0;
}

.service-detail:nth-child(even) {
  background: var(--color-section-alt);
}

.service-detail h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.service-detail h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
}

/* Color-code each service heading */
.service-detail:nth-child(2) h2::after { background: var(--color-red); }
.service-detail:nth-child(3) h2::after { background: var(--color-orange); }
.service-detail:nth-child(4) h2::after { background: var(--color-teal); }
.service-detail:nth-child(5) h2::after { background: var(--color-blue); }
.service-detail:nth-child(6) h2::after { background: var(--color-green); }

.service-detail p {
  max-width: 680px;
  font-size: 1.05rem;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-hero {
  background: var(--color-black);
  padding: calc(var(--space-xl) + 2rem) 0;
  position: relative;
}

.services-hero .container { position: relative; z-index: 1; }

.services-hero h1 {
  color: #ffffff;
  max-width: 600px;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
}

.services-hero p {
  color: #888;
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: var(--space-md);
}

/* Philosophy Cards */
.services-philosophy {
  background: #1e1e1e;
  padding: var(--space-xl) 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.philosophy-card {
  padding: 2rem;
  border-left: 4px solid var(--color-cta);
  background: #252525;
  border-radius: var(--radius-md);
}

.philosophy-card:nth-child(1) { border-left-color: var(--color-red); }
.philosophy-card:nth-child(2) { border-left-color: var(--color-orange); }
.philosophy-card:nth-child(3) { border-left-color: var(--color-teal); }

.philosophy-card h3 { color: #fff; margin-bottom: 0.75rem; }
.philosophy-card p { color: #999; margin-bottom: 0; font-size: 0.95rem; }

/* Service Detail Cards */
.services-detail-section {
  background: #222;
  padding: var(--space-xl) 0;
}

.services-detail-section h2 {
  margin-bottom: var(--space-md);
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-detail-card {
  background: #2a2a2a;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
}

.service-detail-accent {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.service-detail-card h3 { color: #fff; margin-bottom: 0.75rem; }
.service-detail-card p { color: #999; margin-bottom: 0; font-size: 0.95rem; }

/* Partner Services */
.services-partners {
  background: #1a1a1a;
  padding: var(--space-xl) 0;
}

.services-partners h2 { margin-bottom: 0.75rem; }
.services-partners > .container > p {
  color: #888;
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  max-width: 560px;
}

.partner-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.partner-services > div {
  padding: 1.5rem;
  background: #222;
  border-radius: var(--radius-md);
  border: 1px solid #2a2a2a;
}

.partner-services h3 { color: #ccc; font-size: 1rem; margin-bottom: 0.5rem; }
.partner-services p { color: #777; margin-bottom: 0; font-size: 0.9rem; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-hero {
  background: var(--color-black);
  padding: calc(var(--space-xl) + 2rem) 0 var(--space-lg);
}

.gallery-hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  max-width: 500px;
}

.gallery-hero p {
  color: #888;
  font-size: 1.1rem;
  max-width: 520px;
}

.gallery {
  background: #1e1e1e;
  padding: var(--space-xl) 0;
}

.gallery-filters {
  display: flex;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.gallery-filters button {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border: 1px solid #333;
  border-radius: 100px;
  background: transparent;
  color: #777;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-filters button:hover {
  border-color: #555;
  color: #ccc;
}

.gallery-filters button.active {
  border-color: #e0e0e0;
  background: #e0e0e0;
  color: #111;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.gallery-pair {
  background: #252525;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-pair:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gallery-pair-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* Spectrum divider between before/after */
.gallery-pair-images::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--gradient-spectrum-v);
  z-index: 1;
}

.gallery-before,
.gallery-after {
  position: relative;
  aspect-ratio: 4/3;
  background: #1a1a1a;
}

.gallery-before img,
.gallery-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.gallery-caption {
  padding: 0.85rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: #999;
}

.gallery-single {
  background: var(--color-black);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

.gallery-single img {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder for missing photos */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-placeholder::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 2px dashed #333;
  border-radius: 4px;
}

.gallery-note {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-top: var(--space-md);
}

.gallery-note a {
  color: #ccc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery-note a:hover { color: #fff; }

/* ============================================
   ESTIMATE FORM
   ============================================ */
.estimate-hero {
  background: var(--color-black);
  padding: calc(var(--space-xl) + 2rem) 0 var(--space-lg);
}

.estimate-hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  max-width: 500px;
}

.estimate-hero p {
  color: #888;
  font-size: 1.1rem;
  max-width: 480px;
}

.estimate-form-section {
  background: #1e1e1e;
  padding: var(--space-xl) 0;
}

.estimate-form-section .container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: start;
}

#estimate-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-submit {
  justify-content: flex-end;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group .required { color: var(--color-cta); }

.vin-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #666;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #333;
  border-radius: var(--radius-sm);
  background: #252525;
  color: #e0e0e0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: #252525;
  color: #e0e0e0;
}

/* Photo upload area */
.photo-upload {
  position: relative;
  border: 2px dashed #333;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.photo-upload:hover {
  border-color: #555;
}

.photo-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}

.upload-hint {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Submit button */
.form-error {
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid var(--color-red);
  color: #ff6b6b;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-submit {
  padding: 0.7rem 2rem;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* Trust sidebar */
.trust-signals {
  background: #222;
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.trust-signals::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-spectrum-v);
}

.trust-signals h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1rem;
}

.trust-signals p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: #999;
  margin-bottom: 0.85rem;
  padding-left: 1.5rem;
  position: relative;
}

.trust-signals p::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

.trust-divider {
  height: 1px;
  background: #333;
  margin: 1.5rem 0;
}

.trust-phone {
  padding-left: 0 !important;
}

.trust-phone::before { display: none !important; }

.trust-phone a {
  font-size: 1.2rem;
  color: #ccc;
  font-weight: 700;
}

.trust-phone a:hover { color: #fff; }

.trust-hours {
  padding-left: 0 !important;
  color: #666 !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}

.trust-hours::before { display: none !important; }

.trust-walkin {
  padding-left: 0 !important;
  font-weight: 400 !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  color: #777 !important;
  line-height: 1.6;
}

.trust-walkin::before { display: none !important; }

/* Thank you state */
.estimate-thanks {
  background: var(--color-black);
  padding: var(--space-xl) 0;
  text-align: center;
}

.estimate-thanks h2 { color: #fff; margin-bottom: 1rem; }
.estimate-thanks p { color: #999; font-size: 1.05rem; max-width: 480px; margin: 0 auto 1rem; }
.estimate-thanks a { color: #ccc; font-weight: 700; }
.estimate-thanks a:hover { color: #fff; }

@media (max-width: 900px) {
  .estimate-form-section .container {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  background: var(--color-black);
  padding: calc(var(--space-xl) + 2rem) 0;
}

.about-hero h1 {
  color: #ffffff;
  max-width: 580px;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
}

.about-hero p {
  color: #888;
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.8;
}

/* Story */
.about-story {
  background: #1e1e1e;
  padding: var(--space-xl) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.story-block h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.story-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
}

.story-block:nth-child(1) h2::after { background: var(--color-red); }
.story-block:nth-child(2) h2::after { background: var(--color-teal); }

.story-block p {
  color: #999;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Values */
.about-values {
  background: #222;
  padding: var(--space-xl) 0;
}

.about-values h2 { margin-bottom: var(--space-md); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: #2a2a2a;
  border-radius: var(--radius-md);
  border-left: 4px solid;
}

.value-card:nth-child(1) { border-left-color: var(--color-orange); }
.value-card:nth-child(2) { border-left-color: var(--color-green); }
.value-card:nth-child(3) { border-left-color: var(--color-blue); }

.value-card h3 { color: #fff; margin-bottom: 0.75rem; }
.value-card p { color: #999; margin-bottom: 0; font-size: 0.95rem; }

/* Shop Details + Map */
.about-shop {
  background: #1a1a1a;
  padding: var(--space-xl) 0;
}

.shop-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.shop-info h2 { margin-bottom: 1rem; }

.shop-info > p {
  color: #888;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.shop-details-list p {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.shop-details-list a {
  color: #ccc;
  transition: color 0.2s;
}

.shop-details-list a:hover { color: #fff; }

.shop-details-list {
  margin-bottom: var(--space-md);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #333;
}

.map-embed iframe { display: block; }

@media (max-width: 768px) {
  .shop-info-grid {
    grid-template-columns: 1fr;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LOCATION PAGES
   ============================================ */
.location-services ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.location-services li {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.85rem 1rem 0.85rem 2.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  position: relative;
  transition: border-color 0.2s;
}

.location-services li::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Spectrum color each bullet */
.location-services li:nth-child(1)::before { background: var(--color-red); }
.location-services li:nth-child(2)::before { background: var(--color-orange); }
.location-services li:nth-child(3)::before { background: var(--color-teal); }
.location-services li:nth-child(4)::before { background: var(--color-blue); }
.location-services li:nth-child(5)::before { background: var(--color-green); }

.location-services li:hover { border-color: var(--color-black); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-black);
  color: #999999;
  padding: 0;
  margin-top: 0;
}

.site-footer .container {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

/* Spectrum bar at top of footer */
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--gradient-spectrum);
}

.footer-inner {
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: #666666;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: #ffffff; }

.footer-col span {
  display: block;
  color: #666666;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-col p {
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
  text-align: center;
  font-size: 0.8rem;
  color: #444444;
}

/* ============================================
   CHAT WIDGET — Spectrum ring
   ============================================ */
/* Chat button — Ask Scout */
.chat-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  border-radius: 100px;
  background: var(--color-black);
  border: 2px solid transparent;
  cursor: pointer;
  z-index: 200;
  padding: 4px 16px 4px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 0 12px rgba(255, 0, 0, 0.3),
    0 0 12px rgba(255, 165, 0, 0.3),
    0 0 12px rgba(0, 200, 255, 0.3),
    0 0 12px rgba(128, 0, 255, 0.3);
  animation: rainbow-glow 3s linear infinite;
  transition: transform 0.25s;
}

@keyframes rainbow-glow {
  0%   { box-shadow: 0 0 14px rgba(255, 0, 0, 0.5), 0 0 28px rgba(255, 0, 0, 0.15); }
  16%  { box-shadow: 0 0 14px rgba(255, 165, 0, 0.5), 0 0 28px rgba(255, 165, 0, 0.15); }
  33%  { box-shadow: 0 0 14px rgba(255, 255, 0, 0.5), 0 0 28px rgba(255, 255, 0, 0.15); }
  50%  { box-shadow: 0 0 14px rgba(0, 200, 100, 0.5), 0 0 28px rgba(0, 200, 100, 0.15); }
  66%  { box-shadow: 0 0 14px rgba(0, 150, 255, 0.5), 0 0 28px rgba(0, 150, 255, 0.15); }
  83%  { box-shadow: 0 0 14px rgba(128, 0, 255, 0.5), 0 0 28px rgba(128, 0, 255, 0.15); }
  100% { box-shadow: 0 0 14px rgba(255, 0, 0, 0.5), 0 0 28px rgba(255, 0, 0, 0.15); }
}

.chat-widget-btn:hover {
  transform: translateY(-2px) scale(1.05);
  animation-duration: 1.5s;
}

.chat-widget-btn img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-widget-btn span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ccc;
}

/* ============================================
   SCOUT CHAT PANEL
   ============================================ */
.scout-chat {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 16px);
  max-height: min(540px, calc(100vh - 100px));
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 16px;
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.scout-chat.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scout-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #1a1a1a;
  border-bottom: 1px solid #e0e0e0;
}

.scout-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.scout-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.scout-status {
  font-size: 0.72rem;
  color: #aaa;
  letter-spacing: 0.02em;
}

.scout-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.scout-close:hover { color: #fff; }

.scout-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  max-height: 340px;
}

.scout-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.scout-msg-scout {
  background: #f0f0f0;
  color: #222;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.scout-msg-user {
  background: #1a1a1a;
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.scout-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scout-chip {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 100px;
  background: transparent;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.scout-chip:hover {
  border-color: #888;
  color: #222;
}

.scout-input-bar {
  display: flex;
  padding: 12px;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
  gap: 8px;
}

.scout-input-bar input {
  flex: 1;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #222;
  outline: none;
}

.scout-input-bar input::placeholder { color: #999; }

.scout-input-bar input:focus {
  border-color: #888;
}

.scout-input-bar button {
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.scout-input-bar button:hover { background: #333; }

@media (max-width: 768px) {
  .scout-chat {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .scout-chat .scout-messages {
    min-height: 0;
    max-height: none;
    flex: 1;
    overflow-y: auto;
  }

  .scout-chat .scout-input-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .estimate-form-section .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  section { padding: var(--space-lg) 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-height) + 3px); /* below spectrum strip */
    left: 0;
    right: 0;
    background: var(--color-black);
    flex-direction: column;
    padding: var(--space-sm);
    gap: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open { display: flex; }

  .nav-links a,
  .nav-links .btn-cta {
    padding: 0.85rem var(--space-sm);
    width: 100%;
    text-align: left;
  }

  .nav-links .btn-cta {
    text-align: center;
    margin-top: var(--space-xs);
  }

  .hero { padding: var(--space-lg) 0; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-bar .container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .reviews-slideshow { min-height: 200px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-pair { grid-template-columns: 1fr; }
  .gallery-pair::after { display: none; }

  .locations-served li a {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}
