/* ============================================================
   Commercial Electric Motor Service, Inc. — Homepage Redesign v3
   Brand palette (from cemsi.net): Red #C8180B | Blue #2D14A6
   Dark sections: deepened brand blue #170D52
   Type: Zilla Slab (headlines) / Inter (body) — self-hosted (latin)
   v3: wordmark header, blur nav, duotone photos, marquee,
       oversized type, grain texture, modern radii/shadows
   ============================================================ */

/* ---------- Self-hosted fonts (latin subset, font-display: swap) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/zilla-slab-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/zilla-slab-700-latin.woff2") format("woff2");
}

:root {
  --red: #C8180B;
  --red-dark: #A31309;
  --blue: #2D14A6;
  --blue-deep: #170D52;
  --blue-mid: #221270;
  --light: #F6F5FB;
  --white: #FFFFFF;
  --ink: #1B1830;
  --ink-soft: #4A4763;
  --line: #E5E3F0;
  --gold: #F5B324;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(23, 13, 82, 0.06), 0 8px 24px rgba(23, 13, 82, 0.06);
  --shadow-hover: 0 8px 16px rgba(23, 13, 82, 0.10), 0 20px 48px rgba(23, 13, 82, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--gold); color: var(--blue-deep); }

/* App-smooth cross-page navigation where supported (progressive enhancement) */
@view-transition { navigation: auto; }

/* Anchored sections clear the sticky header */
:where(section[id], h1[id], h2[id], h3[id], #motors, #reviews, #faq) { scroll-margin-top: 100px; }

/* Skip-to-content link (visible on keyboard focus) */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  z-index: 200; padding: 10px 18px;
  background: var(--blue-deep); color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; font-size: 15px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; outline: 3px solid var(--gold); outline-offset: 2px; }

/* Breadcrumb trail (interior pages) */
.breadcrumb { font-size: 13px; margin-bottom: 18px; color: rgba(255,255,255,0.7); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: rgba(255,255,255,0.4); }
.breadcrumb a { color: rgba(255,255,255,0.82); font-weight: 600; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: rgba(255,255,255,0.6); }

h1, h2, h3, h4 {
  font-family: "Zilla Slab", Georgia, serif;
  color: var(--blue-deep);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6.5vw, 78px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 24px); font-weight: 600; }

p { max-width: 65ch; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 18px;
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-secondary { background: var(--blue-deep); color: var(--white); }
.btn-secondary:hover { background: var(--blue-mid); color: var(--white); }

/* ---------- Keyboard focus ring ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav > a:focus-visible,
.nav-item > a:focus-visible,
.drop a:focus-visible,
.cat-card:focus-visible,
.review-card:focus-visible,
.chip:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: var(--white); font-weight: 600; }
.topbar .hours { display: none; }

/* ---------- Header (frosted glass) ---------- */
.site-header {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229,227,240,0.7);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(23,13,82,0.10); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  transition: min-height 0.25s ease;
}
.site-header.scrolled .container { min-height: 74px; }

/* Scroll progress bar (pinned to header's bottom edge) */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  z-index: 1;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: calc(var(--scroll, 0) * 100%);
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform-origin: left;
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress span { transition: none; }
}

/* Brand logo */
.wordmark { display: inline-flex; align-items: center; line-height: 0; }
.wordmark:hover { text-decoration: none; }
.wm-logo {
  display: block;
  height: 85px;
  width: auto;
  transition: height 0.25s ease;
}
.site-header.scrolled .wm-logo { height: 64px; }

/* Nav + dropdown */
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a, .nav-item > a {
  color: var(--blue-deep);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  display: inline-block;
  white-space: nowrap;
}
.nav > a:hover, .nav-item > a:hover { color: var(--red); text-decoration: none; }

.nav-item { position: relative; }
.nav-item > a::after { content: " ▾"; font-size: 11px; color: var(--ink-soft); }
.drop {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 20;
  min-width: 240px;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item:hover .drop, .nav-item:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.drop a {
  display: block;
  padding: 10px 20px;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 500;
}
.drop a:hover { background: var(--light); color: var(--red); text-decoration: none; }

.header-cta { white-space: nowrap; padding: 12px 24px; font-size: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--blue-deep);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  background: var(--blue-deep);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.85) contrast(1.05);
}
/* duotone overlay + glow mesh */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 800px 600px at 22% 45%, rgba(45,20,166,0.55), transparent 65%),
    radial-gradient(ellipse 700px 500px at 80% 90%, rgba(200,24,11,0.28), transparent 60%),
    linear-gradient(100deg, rgba(23,13,82,0.94) 0%, rgba(23,13,82,0.78) 55%, rgba(23,13,82,0.62) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 22px; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .sub {
  color: rgba(255,255,255,0.9);
  font-size: clamp(18px, 2.2vw, 21px);
  max-width: 52ch;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-trust { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.hero-trust .item {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trust .stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.hero-trust strong { color: var(--white); }

/* Hero entrance — staggered rise on load (gated for reduced-motion below) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .sub, .hero-ctas, .hero-trust {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-rise 0.7s var(--ease) forwards;
  }
  .hero h1 { animation-delay: 0.05s; }
  .hero .sub { animation-delay: 0.18s; }
  .hero-ctas { animation-delay: 0.31s; }
  .hero-trust { animation-delay: 0.44s; }
  /* Slow drift on the glow mesh so the hero feels alive, not flashy */
  .hero::before {
    background-size: 140% 140%, 140% 140%, 100% 100%;
    background-position: 22% 45%, 80% 90%, 0 0;
    animation: hero-mesh 22s ease-in-out infinite alternate;
  }
}
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-mesh {
  to { background-position: 30% 55%, 72% 80%, 0 0; }
}

/* ---------- Trust / stats bar ---------- */
.trust-bar { background: var(--light); padding: 56px 0; border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-grid .stat .num {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.trust-grid .stat .label {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- Section headers ---------- */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; color: var(--ink-soft); text-wrap: pretty; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Category cards (line icons) ---------- */
.categories { background: var(--white); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); text-decoration: none; border-color: transparent; }
.cat-card:hover::before { opacity: 1; }
.cat-card .icon {
  width: 56px;
  height: 56px;
  color: var(--red);
  background: var(--light);
  border-radius: 14px;
  padding: 12px;
}
.cat-card h3 { font-size: 22px; }
.cat-card p { font-size: 15px; color: var(--ink-soft); }
.cat-card .link {
  margin-top: auto;
  font-weight: 600;
  font-size: 15px;
  color: var(--red);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.cat-card:hover .link { transform: translateX(5px); color: var(--red-dark); }

/* Motor type chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 44px;
}
.chip {
  background: var(--light);
  border: 1px solid var(--line);
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.chip:hover { background: var(--blue-deep); color: var(--white); text-decoration: none; transform: translateY(-2px); }
/* Flat, non-interactive tag chips (motor-type labels, not links) */
.chip-row.tags .chip { cursor: default; }
.chip-row.tags .chip:hover { background: var(--light); color: var(--blue-deep); transform: none; }

/* ---------- Match section (dark, grain) ---------- */
.match {
  position: relative;
  background: var(--blue-deep);
  color: rgba(255,255,255,0.88);
  overflow: hidden;
}
.match::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 85% 15%, rgba(45,20,166,0.5), transparent 65%),
    radial-gradient(ellipse 500px 400px at 10% 90%, rgba(200,24,11,0.18), transparent 60%);
}
.match::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.match .container { position: relative; z-index: 1; }
.match .split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.match h2 { color: var(--white); }
.match h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 18px;
}
.match p { margin-top: 18px; color: rgba(255,255,255,0.84); }
.match .eyebrow { color: var(--gold); }
.match ul { list-style: none; margin-top: 24px; }
.match li { padding: 10px 0 10px 34px; position: relative; font-size: 16px; }
.match li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.match .btn { margin-top: 32px; }

/* Duotone photo with offset red frame */
.photo-frame { position: relative; }
.photo-frame img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  filter: grayscale(0.9) contrast(1.05);
}
.photo-frame .tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(45,20,166,0.45), rgba(23,13,82,0.35));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.photo-frame::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--red);
  border-radius: var(--radius-lg);
  z-index: 0;
}

/* ---------- Brands marquee ---------- */
.brands { background: var(--white); padding: 80px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  max-height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.25s ease;
}
.marquee-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 40px; }
}
.brands .more {
  text-align: center;
  margin: 40px auto 0;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 15px;
  text-wrap: balance;
}

/* ---------- Reviews ---------- */
.reviews { background: var(--light); }
.agg-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.agg-rating .big-stars { color: var(--gold); font-size: 32px; letter-spacing: 4px; }
.agg-rating .score {
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}
.agg-rating .count { color: var(--ink-soft); font-size: 16px; }
.agg-rating .count strong { color: var(--ink); font-weight: 700; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.review-card blockquote { font-size: 16px; color: var(--ink); flex-grow: 1; }
.review-card cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-weight: 600;
  color: var(--blue-deep);
  font-size: 15px;
}
.review-card cite span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.reviews .actions { text-align: center; margin-top: 52px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item[open] { box-shadow: var(--shadow-hover); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 26px;
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--blue-deep);
  position: relative;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 26px 24px; color: var(--ink-soft); font-size: 16px; }
/* Smooth expand where supported; instant snap is the graceful fallback */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content { transition: none; }
}

/* ---------- Visit ---------- */
.visit { background: var(--light); }
.visit .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.visit .info-block { margin-top: 28px; }
.visit .info-block h3 { margin-bottom: 8px; font-size: 18px; }
.visit .info-block p, .visit .info-block li { color: var(--ink-soft); font-size: 16px; }
.visit table { border-collapse: collapse; width: 100%; max-width: 360px; }
.visit td { padding: 6px 0; font-size: 16px; color: var(--ink-soft); }
.visit td:last-child { text-align: right; font-weight: 500; color: var(--ink); }
.map-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.area-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin-top: 12px;
}
.area-list li { padding-left: 22px; position: relative; }
.area-list li::before { content: "›"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(100deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 88px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.06;
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); max-width: 22ch; margin: 0 auto 14px; }
.cta-band p { color: rgba(255,255,255,0.92); margin: 0 auto 32px; }
.cta-band .btn { background: var(--white); color: var(--red-dark); }
.cta-band .btn:hover { background: var(--light); }

/* In-article blog closing CTA (light panel, distinct from the red footer band) */
.blog-close-cta {
  background: var(--light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  text-align: center;
}
.blog-close-cta .container { max-width: 720px; }
.blog-close-cta h2 { max-width: 20ch; margin: 0 auto 12px; }
.blog-close-cta p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 28px; text-wrap: pretty; }
.blog-close-cta .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline-dark { background: transparent; color: var(--blue-deep); border-color: var(--blue-deep); }
.btn-outline-dark:hover { background: var(--blue-deep); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,0.78); padding: 80px 0 32px; font-size: 15px; position: relative; overflow: hidden; }
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.04;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 { color: var(--white); font-size: 17px; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 4px 0; min-height: 24px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 0.2s var(--ease);
}
.social-link:hover svg { transform: scale(1.12); }
.site-footer .logo-wrap {
  background: var(--white);
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.site-footer .logo-wrap img { height: 40px; width: auto; }
.payments { display: flex; gap: 10px; margin-top: 20px; }
.payments img { height: 26px; width: auto; border-radius: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------- LocalHowl credit ---------- */
.howl {
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.25s ease;
}
.howl:hover { color: var(--white); text-decoration: none; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(23,13,82,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
}
.sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  min-height: 44px;
}
.sticky-cta .call { background: var(--red); color: var(--white); }
.sticky-cta .find { background: var(--white); color: var(--blue-deep); }
.sticky-cta a:hover { text-decoration: none; }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
/* Stagger grid children so they cascade in rather than popping as one block */
.card-grid .fade-up:nth-child(2), .review-grid .fade-up:nth-child(2) { transition-delay: 90ms; }
.card-grid .fade-up:nth-child(3), .review-grid .fade-up:nth-child(3) { transition-delay: 180ms; }
.card-grid .fade-up:nth-child(4) { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .card-grid .fade-up, .review-grid .fade-up { transition-delay: 0ms; }
  html { scroll-behavior: auto; }
  .drop, .nav-item > a::after, .social-link svg { transition: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .topbar .hours { display: inline; }
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
    padding: 8px 0 16px;
  }
  .nav.open { display: flex; }
  .nav > a, .nav-item > a { padding: 14px 24px; min-height: 44px; display: block; }
  .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-item > a::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
    color: var(--ink-soft);
    transition: transform 0.25s var(--ease);
  }
  .nav-item.open > a::after { transform: rotate(45deg); }
  .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .nav-item.open > .drop { max-height: 520px; }
  .drop a {
    padding: 11px 20px 11px 40px;
    min-height: 44px;
    border-left: 3px solid var(--line);
    margin-left: 24px;
  }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .match .split, .visit .split { grid-template-columns: 1fr; gap: 48px; }
  .photo-frame::after { right: -12px; bottom: -12px; top: 12px; left: 12px; }
  .review-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; padding: 96px 0 80px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .wm-logo { height: 60px; }
}

@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .area-list { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .wm-logo { height: 52px; }
}

/* ---------- Interior pages (v4 site build) ---------- */
.hero-interior { min-height: 58vh; padding: 110px 0 88px; }
.hero-interior h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 20ch; }
.hero-interior .sub { margin-bottom: 32px; }
.hero-interior .hero-ctas { margin-bottom: 0; }
.info-block h3 { margin-bottom: 8px; font-size: 18px; }
.info-block p, .info-block li { color: var(--ink-soft); font-size: 16px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.prose a { font-weight: 600; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* ---------- Photo upload (motor match) ---------- */
.photo-drop {
  display: flex; align-items: center; gap: 14px;
  position: relative;
  padding: 16px 18px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--blue); background: #fbfaff; }
.photo-drop-icon { font-size: 26px; line-height: 1; }
.photo-drop-text { font-size: 15px; line-height: 1.35; }
.photo-drop-text strong { color: var(--blue-deep); }
.photo-drop:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.photo-previews { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.photo-previews:empty { margin-top: 0; }
.photo-thumb { position: relative; width: 84px; height: 84px; }
.photo-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.photo-remove {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.photo-remove:hover { background: var(--red-dark); }

/* ---------- Find My Motor: nameplate decoder + brand cross-ref ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.center { text-align: center; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.spec-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.spec-card .spec-key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 32px; padding: 0 12px;
  background: var(--blue-deep); color: var(--white);
  font-family: "Zilla Slab", Georgia, serif; font-weight: 700; font-size: 15px;
  letter-spacing: 1px; border-radius: 8px; margin-bottom: 16px;
}
.spec-card h3 {
  font-family: "Zilla Slab", Georgia, serif; color: var(--blue-deep);
  font-size: 20px; margin: 0 0 8px;
}
.spec-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.brand-search { max-width: 560px; margin: 36px auto 0; }
.brand-search input {
  width: 100%; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A4763' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 20px center;
  padding-left: 50px;
}
.brand-search input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.brand-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.brand-card h3 {
  font-family: "Zilla Slab", Georgia, serif; color: var(--blue-deep);
  font-size: 21px; margin: 0 0 6px;
}
.brand-card p { color: var(--ink-soft); font-size: 14px; margin: 0; line-height: 1.5; }

@media (max-width: 1024px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr !important; gap: 44px !important; }
  .split > * { min-width: 0; }
  .split table { table-layout: fixed; }
  .contact-form > *, .contact-form label { min-width: 0; }
  .contact-form input, .contact-form textarea { min-width: 0; }
  .hero-interior { padding: 80px 0 64px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .spec-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px !important; }
}

/* reCAPTCHA iframe is a fixed 302px wide; scale it down where it can't fit */
@media (max-width: 380px) {
  .g-recaptcha { transform: scale(0.84); transform-origin: 0 0; }
}
@media (max-width: 340px) {
  .g-recaptcha { transform: scale(0.72); transform-origin: 0 0; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease; color: var(--ink);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-date { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.post-card h3 { font-size: 20px; line-height: 1.25; }
.post-card p { font-size: 15px; color: var(--ink-soft); }
.post-card .link { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--red); }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body h2 { margin: 44px 0 16px; }
.post-body p { max-width: 68ch; margin-bottom: 20px; color: var(--ink); font-size: 18px; line-height: 1.75; }
.post-body ul, .post-body ol { max-width: 68ch; margin: 0 0 20px 24px; color: var(--ink); font-size: 18px; line-height: 1.7; }
.post-body li { margin-bottom: 10px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-link {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; }
.related-link h3 { font-size: 19px; line-height: 1.3; }
.related-link .link {
  margin-top: auto; font-weight: 600; font-size: 15px; color: var(--red);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.related-link:hover .link { transform: translateX(5px); color: var(--red-dark); }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Schedule request (3-step) ---------- */
.sched-wrap { max-width: 680px; margin: 0 auto; }
.sched-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
}
.sched-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.sched-steps .step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.sched-steps .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 16px;
  background: var(--light);
  color: var(--ink-soft);
  border: 2px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sched-steps .step .name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sched-steps .bar {
  flex: 1 1 auto;
  height: 2px;
  background: var(--line);
  margin: 0 12px;
}
.sched-steps .step.active .dot { background: var(--red); color: var(--white); border-color: var(--red); }
.sched-steps .step.done .dot { background: var(--blue-deep); color: var(--white); border-color: var(--blue-deep); }
.sched-steps .step.active .name { color: var(--blue-deep); }
.sched-panel { display: none; }
.sched-panel.active { display: block; }
.sched-panel h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.sched-panel .lede { color: var(--ink-soft); font-size: 16px; margin-bottom: 26px; }
.sched-field { margin-bottom: 18px; }
.sched-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--blue-deep); }
.sched-field input,
.sched-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.sched-field input:focus,
.sched-field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.sched-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sched-types { display: grid; gap: 12px; }
.sched-type {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sched-type:hover { border-color: var(--red); }
.sched-type input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; flex: 0 0 auto; }
.sched-type .t-title { font-weight: 600; color: var(--blue-deep); }
.sched-type .t-desc { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.sched-type:has(input:checked) { border-color: var(--red); background: var(--light); }
.sched-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.sched-consent input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; flex: 0 0 auto; }
.sched-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; align-items: center; }
.sched-actions .spacer { flex: 1; }
.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--blue-deep); color: var(--blue-deep); box-shadow: none; }
.sched-status { font-size: 14px; margin: 16px 0 0; min-height: 1px; }
.sched-error { font-size: 13px; color: var(--red); margin-top: 8px; min-height: 1px; }
@media (max-width: 560px) {
  .sched-card { padding: 28px 22px; }
  .sched-row { grid-template-columns: 1fr; }
  .sched-steps .step .name { display: none; }
  .sched-steps .bar { margin: 0 8px; }
}

/* Product photography (real catalog shots): keep the offset frame, skip the duotone */
.photo-frame.product img { filter: none; }
.photo-frame.product .tint { display: none; }

/* ==========================================================================
   WIAB addendum — Elementor Pro form skin (contact + schedule)
   Maps the approved site's .contact-form / .sched-* styling onto Elementor
   Pro form markup. Scoped to the widget classes set in the page data:
   .cemsi-contact-form, .cemsi-sched-form, plus the .cemsi-form-section /
   .cemsi-sched-section container classes.
   ========================================================================== */

/* --- shared: section layout ------------------------------------------------ */
/* Source contact layout: .split grid 1fr 1fr, gap 64px, align start.
   The boxed Elementor container renders .e-con-inner between the section and
   its two child containers; the children carry 48% widths in a wrap:wrap row,
   which overflows past the 64px gap and wraps into a stack. flex-basis 0
   (desktop only) makes them true equal columns regardless of those widths. */
.cemsi-form-section {
  flex-direction: row !important;
  gap: 64px;
  align-items: flex-start;
}
@media (min-width: 901px) {
  .cemsi-form-section > .e-con,
  .cemsi-form-section > .e-con-inner > .e-con {
    flex: 1 1 0 !important;
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .cemsi-form-section,
  .cemsi-form-section > .e-con-inner {
    flex-direction: column !important;
  }
  .cemsi-form-section > .e-con,
  .cemsi-form-section > .e-con-inner > .e-con {
    width: 100% !important;
  }
}
.cemsi-sched-section .elementor-widget-form,
.cemsi-sched-section .elementor-widget-text-editor {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* --- shared: buttons (submit + step nav) ---------------------------------- */
.cemsi-contact-form .elementor-button,
.cemsi-sched-form .elementor-button,
.cemsi-sched-form .e-form__buttons__wrapper__button {
  display: inline-block;
  /* source form buttons carry inline border:0 with 16px/36px padding (52px
     box); this skin keeps the 2px transparent cascade-guard border, so
     14px/34px padding yields the same box (background paints under the
     transparent border, so the red fill is identical). !important:
     Elementor's multi-step CSS zeroes the nav buttons' vertical padding
     and floors min-height at 40. */
  padding: 14px 34px !important;
  min-height: 0 !important;
  border-radius: 10px;
  /* source .btn inherits the body Inter stack; without this the button text
     picks up Elementor's global Roboto (2px narrower "Continue"). */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
  /* !important: Elementor's frontend CSS loads after this sheet and paints its
     stock green accent on buttons/step-nav; these props must win the cascade. */
  border: 2px solid transparent !important;
  background: var(--red) !important;
  color: var(--white) !important;
}
.cemsi-contact-form .elementor-button:hover,
.cemsi-sched-form .elementor-button:hover,
.cemsi-sched-form .e-form__buttons__wrapper__button:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
/* Back button = ghost. Each step-nav button sits in its OWN
   .e-form__buttons__wrapper div, so sibling pseudo-classes can't tell Back
   from Continue — target Elementor's -previous variant class directly. */
.cemsi-sched-form .e-form__buttons__wrapper__button.e-form__buttons__wrapper__button-previous {
  background: transparent !important;
  color: var(--blue-deep) !important;
  border-color: var(--line) !important;
  /* source Back button has no inline border:0, so it keeps .btn's 16px pad */
  padding: 16px 36px !important;
}
.cemsi-sched-form .e-form__buttons__wrapper__button.e-form__buttons__wrapper__button-previous:hover {
  background: transparent !important;
  border-color: var(--blue-deep) !important;
  color: var(--blue-deep) !important;
  box-shadow: none;
  transform: none;
}
.cemsi-sched-form .e-form__buttons__wrapper {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: 100%;
  margin-top: 37px; /* source: error line (8+1) + .sched-actions margin 28 */
}

/* --- contact form card ----------------------------------------------------- */
.cemsi-contact-form .elementor-form {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}
@media (max-width: 520px) {
  .cemsi-contact-form .elementor-form { padding: 24px 18px; }
}
.cemsi-contact-form .elementor-field-label,
.cemsi-sched-form .elementor-field-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}
.cemsi-sched-form .elementor-field-label { color: var(--blue-deep); }
.cemsi-contact-form .elementor-field-textual,
.cemsi-sched-form .elementor-field-textual {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
/* source contact inputs sit INSIDE their 14px <label> and use font:inherit;
   Elementor labels are siblings, so the inputs resolve to the 17px body font
   and run 5px taller per line. Must follow the font:inherit shorthand above
   (which resets font-size) and outrank Elementor's field CSS. Schedule
   inputs are genuinely 17px in the source, so contact-only. */
.cemsi-contact-form .elementor-field-textual { font-size: 14px !important; }
.cemsi-contact-form .elementor-field-textual:focus,
.cemsi-sched-form .elementor-field-textual:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
  box-shadow: none;
}
/* upload field styled like the source .photo-drop zone */
.cemsi-contact-form input[type="file"].elementor-upload-field {
  width: 100%;
  padding: 25px 18px; /* nets the source .photo-drop zone's 75px height */
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 15px;
  color: var(--ink-soft);
}
/* source photos block opens with a 6px-taller lead-in than the field rhythm */
.cemsi-contact-form .elementor-field-group-motor_photos { margin-top: 6px; }
.cemsi-contact-form input[type="file"].elementor-upload-field:hover,
.cemsi-contact-form input[type="file"].elementor-upload-field:focus {
  border-color: var(--blue);
  background: #fbfaff;
}

/* --- schedule form card ---------------------------------------------------- */
.cemsi-sched-form .elementor-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
}
@media (max-width: 560px) {
  .cemsi-sched-form .elementor-form { padding: 28px 22px; }
}
/* radio options as selectable cards (source .sched-type) */
.cemsi-sched-form .elementor-field-type-radio .elementor-field-subgroup {
  display: grid;
  gap: 12px;
  width: 100%;
}
.cemsi-sched-form .elementor-field-type-radio .elementor-field-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cemsi-sched-form .elementor-field-type-radio .elementor-field-option:hover { border-color: var(--red); }
.cemsi-sched-form .elementor-field-type-radio .elementor-field-option:has(input:checked) {
  border-color: var(--red);
  background: var(--light);
}
.cemsi-sched-form .elementor-field-type-radio .elementor-field-option input {
  accent-color: var(--red);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}
.cemsi-sched-form .elementor-field-type-radio .elementor-field-option label {
  font-weight: 600;
  color: var(--blue-deep);
  cursor: pointer;
  margin: 0;
}
/* the radio field's own printed label duplicates the step-2 intro h2 (the
   source has no field label there) — keep it for screen readers only. */
.cemsi-sched-form .elementor-field-group-customerType { margin-bottom: 0 !important; position: relative; }
.cemsi-sched-form .elementor-field-group-customerType > .elementor-field-label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  padding: 0;
  margin: 0;
}
/* option sub-copy (source .t-desc rides inline after the bold title) */
.cemsi-sched-form .elementor-field-option label .t-desc {
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-soft);
}
/* consent checkbox (source .sched-consent) */
.cemsi-sched-form .elementor-field-type-acceptance .elementor-field-subgroup {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cemsi-sched-form .elementor-field-type-acceptance input {
  accent-color: var(--red);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}
.cemsi-sched-form .elementor-field-type-acceptance label {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* --- schedule stepper (source .sched-steps) -------------------------------- */
.cemsi-sched-form .e-form__indicators {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  padding: 0;
  border: 0;
}
.cemsi-sched-form .e-form__indicators__indicator {
  display: flex;
  /* !important: Elementor's indicator CSS loads later and stacks the circle
     over the label (75px); source runs them inline (34px row). */
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 0;
}
.cemsi-sched-form .e-form__indicators__indicator__number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 16px;
  /* !important on fills/colors: Elementor Pro's step-indicator CSS loads after
     this sheet and repaints number circles/labels with its green accent. */
  background: var(--light) !important;
  color: var(--ink-soft) !important;
  border: 2px solid var(--line) !important;
  margin-bottom: 0 !important; /* Elementor's stacked-layout circle margin */
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cemsi-sched-form .e-form__indicators__indicator__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft) !important;
}
.cemsi-sched-form .e-form__indicators__indicator__separator {
  flex: 1 1 auto;
  height: 2px;
  background: var(--line);
  margin: 0 12px;
  border: 0;
}
.cemsi-sched-form .e-form__indicators__indicator--state-active .e-form__indicators__indicator__number {
  background: var(--red) !important;
  color: var(--white) !important;
  border-color: var(--red) !important;
}
.cemsi-sched-form .e-form__indicators__indicator--state-completed .e-form__indicators__indicator__number {
  background: var(--blue-deep) !important;
  color: var(--white) !important;
  border-color: var(--blue-deep) !important;
}
.cemsi-sched-form .e-form__indicators__indicator--state-active .e-form__indicators__indicator__label {
  color: var(--blue-deep) !important;
}
.cemsi-sched-form .e-form__indicators__indicator--state-completed .e-form__indicators__indicator__label {
  color: var(--blue-deep) !important;
}
@media (max-width: 560px) {
  .cemsi-sched-form .e-form__indicators__indicator__label { display: none; }
  .cemsi-sched-form .e-form__indicators__indicator__separator { margin: 0 8px; }
}

/* Elementor-rendered reCAPTCHA is a fixed 302px iframe; scale where tight */
@media (max-width: 380px) {
  .elementor-field-type-recaptcha .elementor-g-recaptcha { transform: scale(0.84); transform-origin: 0 0; }
}
@media (max-width: 340px) {
  .elementor-field-type-recaptcha .elementor-g-recaptcha { transform: scale(0.72); transform-origin: 0 0; }
}

/* --- parity fixes (deep 1:1 pass, 2026-07-20) ------------------------------ */
/* Boxed containers re-apply the section's block padding on .e-con-inner via
   inherited custom props, doubling the 96px vertical rhythm on both form
   sections (contact +26 net, schedule +123 net in the section sweep). */
.cemsi-form-section > .e-con-inner {
  /* !important: Elementor's frontend CSS loads after this sheet and re-applies
     the section's block padding on the inner via inherited custom props. */
  padding-block-start: 0 !important;
  padding-block-end: 0 !important;
}
/* Contact only: the 24px gutters land on the invisible full-width outer con,
   so the boxed 1200px inner keeps full width and the two columns run 568px
   instead of the source's 544px. Re-apply the gutters on the inner. */
.cemsi-form-section:not(.cemsi-sched-section) > .e-con-inner {
  padding-inline: 24px;
}
/* Blog index thumbs: Elementor's `.elementor img { height: auto }` beats the
   height="360" presentational hint the source relies on, letting
   aspect-ratio: 16/9 shrink every card image to ~204px. .post-card exists
   only on the blog index and no source media query touches its height. */
.elementor .post-card img { height: 360px; }
/* Contact form: trailing tip note is an html field pushed after the submit
   button (Elementor renders submit last inside the same flex wrapper). */
.cemsi-contact-form .elementor-field-group-form_note {
  order: 10;
  /* source has an empty 1px .form-status row + 16px grid gap between the
     button and the tip note: 16 + 1 = 17px. */
  margin-top: 17px;
}
.cemsi-contact-form .elementor-field-group-form_note p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
/* Schedule: per-step h2 + lede intro html fields (source .sched-panel h2 and
   .sched-panel .lede, site-styles lines ~1210-1211). */
.cemsi-sched-form .elementor-field-type-html h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 8px;
}
.cemsi-sched-form .elementor-field-type-html p.lede {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 26px;
}
/* the lede's own 26px margin is the full source gap; kill the field-group
   row gap under the intro (and under the last field of step 1, which the
   source zeroes inline on #s-address's wrapper). */
.cemsi-sched-form .elementor-field-type-html { margin-bottom: 0 !important; }
.cemsi-sched-form .elementor-field-group-address { margin-bottom: 0 !important; }
/* source .sched-actions row: back sits left, continue/submit sits right,
   every button auto-width. Elementor's align-stretch + multistep JS makes
   each button fill the row, so undo the stretch and re-create the
   space-between layout (margin-left:auto keeps a lone Continue on the
   right even when Back is hidden on step 1). */
.cemsi-sched-form .e-form__buttons {
  justify-content: space-between !important;
  align-items: center !important;
}
.cemsi-sched-form .e-form__buttons .elementor-button {
  width: auto !important;
  flex: 0 0 auto !important;
}
/* each runtime nav button gets its OWN full-width .e-form__buttons__wrapper
   inside .e-form__buttons; shrink the wrappers so the row lays out like the
   source .sched-actions. margin-left:auto keeps a lone Continue on the right
   when Back is hidden on step 1. */
.cemsi-sched-form .e-form__buttons .e-form__buttons__wrapper {
  width: auto !important;
  flex: 0 0 auto !important;
}
.cemsi-sched-form .e-form__buttons .e-form__buttons__wrapper.elementor-field-type-next,
.cemsi-sched-form .e-form__buttons > button[type="submit"] { margin-left: auto !important; }
/* the static submit button is a DIRECT child of .e-form__buttons and precedes
   the runtime Back wrapper in DOM order; order:2 keeps Back left / Send right
   on the final step, and it needs the wrappers' 37px row offset itself. */
.cemsi-sched-form .e-form__buttons > button[type="submit"] {
  order: 2;
  margin-top: 37px;
}
/* footnote under the schedule card: source is 15px ink-soft, centered, in
   the body font (the text-editor widget otherwise inherits Elementor's
   global Roboto); 24px gap above = form widget's 20px spacing + 4 here. */
p.cemsi-sched-note {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: var(--ink-soft) !important;
  margin: 4px 0 0 !important;
  text-align: center;
}
