/* ==========================================================================
   The PowerSports Lab — design tokens + base layout
   Mobile-first: base styles target small screens; @media (min-width) enhances.
   ========================================================================== */

:root {
  /* Brand palette */
  --color-bg: #111111;
  --color-surface: #1e1e1e;
  --color-surface-alt: #181818;
  --color-black: #08090B; /* logo-matched near-black — matches logo PNG background so emblems blend; used for header + hero */
  --color-scrim: rgba(8, 9, 11, 0.55); /* translucent --color-black — backing for slideshow arrow controls over photos */

  /* Chrome / metal neutrals (borders, dividers, accents) */
  --color-metal: #9a9a9a;
  --color-metal-light: #d9d9d9;
  --color-hairline: #2a2a2a;

  /* Accent red */
  --color-accent: #c1121f;
  --color-accent-hover: #9d0e19;
  --color-accent-ring: rgba(193, 18, 31, 0.35);

  /* Form status: success green (distinct from error red) */
  --color-success: #2e9e5b;

  /* Text */
  --color-text: #f2f2f2;
  --color-text-muted: #9a9a9a;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;

  /* Layout */
  --max-width: 1100px;
  --gutter: 1.25rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Type scale */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-100: 0.875rem;
  --fs-200: 1rem;
  --fs-300: 1.125rem;
  --fs-400: 1.375rem;
  --fs-500: 1.875rem;
  --fs-600: 2.5rem;
  --fs-700: clamp(2.25rem, 6vw, 3.5rem);

  /* Header height (used for scroll-margin so anchors clear the sticky bar) */
  --header-height: 64px;

  /* Polish: metal/chrome treatments, shadows, motion (Stage 3) */
  --metal-gradient: linear-gradient(180deg, var(--color-surface), var(--color-surface-alt));
  --metal-hairline: linear-gradient(90deg, transparent, var(--color-metal) 50%, transparent);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-btn: 0 4px 14px rgba(193, 18, 31, 0.35);
  --shadow-header: 0 1px 0 rgba(255, 255, 255, 0.03), 0 6px 18px rgba(0, 0, 0, 0.4);
  --ease: 180ms ease;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--fs-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: var(--fs-700);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-500);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}

h3 {
  letter-spacing: -0.005em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Skip link: off-screen until focused, then pinned top-left over the header */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100%;
  z-index: 200;
  padding: var(--space-2) var(--space-3);
  background: var(--color-accent);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: var(--space-2);
  outline: 2px solid var(--color-metal-light);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-6);
}

/* Accent marker under section headings (not the hero h1) */
.section h2 {
  position: relative;
  padding-bottom: var(--space-3);
}

.section h2::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-lead {
  color: var(--color-text-muted);
  font-size: var(--fs-300);
  max-width: 60ch;
}

/* Anchor targets clear the sticky header on jump */
.anchor-offset {
  scroll-margin-top: var(--header-height);
}

/* Quote-form CTA target clears the sticky header on jump (Round-3 Stage 1) */
#quote-form {
  scroll-margin-top: var(--header-height);
}

/* --------------------------------------------------------------------------
   Sticky header + nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-black);
  box-shadow: var(--shadow-header);
}

/* Single red accent hairline along the header's bottom edge */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--color-accent);
  pointer-events: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
}

/* Hamburger button (visible on mobile, hidden on desktop) */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Mobile: nav list collapsed by default, revealed as a stacked panel
   when the toggle marks it open via [aria-expanded="true"] / .is-open */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-hairline);
}

.site-header.is-open .nav-list {
  display: flex;
}

.nav-list li {
  border-top: 1px solid var(--color-hairline);
}

.nav-link {
  display: block;
  padding: var(--space-3) var(--gutter);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Visible keyboard focus on all interactive elements */
.brand:focus-visible,
.nav-link:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Buttons / CTA
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: background var(--ease), border-color var(--ease),
    transform var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
}

.btn:focus-visible {
  outline: 2px solid var(--color-metal-light);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Section content + footer
   -------------------------------------------------------------------------- */

.hero {
  background: var(--color-black);
  padding-block: var(--space-7);
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  margin-bottom: var(--space-5);
}

.hero-lead {
  color: var(--color-text);
  font-size: var(--fs-400);
}

.hero-industries {
  color: var(--color-text-muted);
  font-size: var(--fs-200);
  max-width: 60ch;
}

.hero-cta {
  margin-top: var(--space-5);
}

/* Hero load animation: gentle fade + rise, staggered logo -> h1 -> lead -> CTA.
   The hidden start state lives ONLY inside the no-preference query, so
   reduced-motion users (and any engine where the animation/query doesn't run)
   always see the hero fully visible. */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(var(--space-2));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .hero-logo,
  .hero h1,
  .hero .hero-lead,
  .hero .hero-cta {
    opacity: 0;
    animation: hero-rise 1s ease both;
  }

  .hero .hero-logo {
    animation-delay: 0ms;
  }
  .hero h1 {
    animation-delay: 160ms;
  }
  .hero .hero-lead {
    animation-delay: 320ms;
  }
  .hero .hero-cta {
    animation-delay: 480ms;
  }

  /* Hero band + About slideshow crossfades only animate when motion is allowed. */
  .photo-band--hero .photo-frame img,
  .about-slideshow img {
    transition: opacity 600ms var(--ease);
  }

  .slideshow-dot::before {
    transition: background var(--ease), transform var(--ease);
  }

  .slideshow-arrow {
    transition: background var(--ease);
  }
}

/* --------------------------------------------------------------------------
   Credibility strip (after hero) — wrapping chip list, no id / no nav
   -------------------------------------------------------------------------- */

.credibility-strip {
  background: var(--color-surface-alt);
  border-block: 1px solid var(--color-hairline);
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.cred-list li {
  position: relative;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--color-text);
}

.cred-list li::before {
  content: "";
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Photo bands + About media — full-bleed accent images with a token-only
   dark gradient overlay so they integrate with the dark theme (no headings,
   no overlaid copy; accents, not a gallery)
   -------------------------------------------------------------------------- */

.photo-band {
  padding-block: 0; /* full-bleed visual break, no section vertical padding */
}

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 500px;
  overflow: hidden;
  background: var(--color-black); /* backdrop shown before the image paints */
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* all band photos are landscape now — fill the band edge-to-edge */
}

/* Every band photo is landscape, so COVER fills the frame; the only portraits
   live in the About slideshow. Default center crop reads fine — no per-image
   object-position nudge needed. */

/* Red-ATV standalone band (photo-band--tall, user request): a centered, bounded
   true-3:2 frame (banner cap dropped) — same treatment as the hero showcase. The
   3:2 photo fills it edge-to-edge with NO crop, taller/wider than the capped
   strip, while the width bound keeps its height sane on wide monitors. */
.photo-band--tall .photo-frame {
  max-width: var(--max-width);
  margin-inline: auto;
  max-height: none;
}

/* Hero crossfade is a SHOWCASE, not a cropped banner (user request): a centered,
   bounded true-3:2 frame (banner cap dropped) so every layer — set to
   object-fit:contain above — survives WHOLE at a consistent size. Five layers are
   3:2 and fill the frame exactly; atvs-field is 4:3 and shows slim side bars on
   the --color-black backdrop. */
.photo-band--hero .photo-frame {
  max-width: var(--max-width);
  margin-inline: auto;
  max-height: none;
}

/* Hero band auto-crossfade (Round-3 Stage 4): the stacked images are absolute
   layers, exactly one .is-active (opacity 1) at a time. JS (main.js) cycles the
   class ~5s; CSS does the opacity fade. The fade transition lives ONLY inside the
   prefers-reduced-motion: no-preference query below so reduced-motion stays static
   (the global reduced-motion backstop neutralizes any stray transition too). */
.photo-band--hero .photo-frame img {
  position: absolute;
  inset: 0;
  opacity: 0;
  object-fit: contain; /* showcase: whole photo survives, no top/bottom crop */
}
.photo-band--hero .photo-frame img.is-active {
  opacity: 1;
}

.about-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

/* About portrait slideshow — three same-size portraits cross-fade in the side
   slot. Same mechanism as the hero band, but cover-cropped since the three are
   all ~3:4 portraits. JS (main.js) cycles .is-active; CSS does the opacity fade
   (transition lives in the no-preference query below). */
.about-slideshow {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.about-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.about-slideshow img.is-active {
  opacity: 1;
}

/* Slideshow dot indicators (inserted by main.js, shared by the hero band and the
   About slideshow). Click a dot to jump to that photo and stop the auto-advance
   for that slideshow so it can be viewed for longer. Tokens only. */
.slideshow-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-3);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  pointer-events: none; /* only the dots themselves are interactive */
}

.slideshow-dot {
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; /* touch target; the visible dot is the ::before */
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slideshow-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-metal-light);
  box-shadow: var(--shadow-card); /* keeps dots legible over bright photos */
}

.slideshow-dot[aria-current="true"]::before {
  background: var(--color-accent);
  transform: scale(1.2);
}

.slideshow-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 50%;
}

/* Prev / next arrows (inserted by main.js) — same manual-control behavior as the
   dots: navigating stops that slideshow's auto-advance. */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-scrim);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.slideshow-arrow--prev {
  left: var(--space-3);
}
.slideshow-arrow--next {
  right: var(--space-3);
}

.slideshow-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid var(--color-text);
  border-width: 0 2px 2px 0; /* chevron drawn from two borders, rotated per side */
}
.slideshow-arrow--prev::before {
  margin-left: 4px; /* optical centering of the left chevron */
  transform: rotate(135deg);
}
.slideshow-arrow--next::before {
  margin-right: 4px;
  transform: rotate(-45deg);
}

.slideshow-arrow:hover {
  background: var(--color-black);
}
.slideshow-arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Services — two grouped card surfaces, each with a heading + name list
   -------------------------------------------------------------------------- */

.service-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.service-group {
  background: var(--metal-gradient);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.service-group h3 {
  font-size: var(--fs-400);
  color: var(--color-text);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.service-list li {
  position: relative;
  padding-left: var(--space-4);
  color: var(--color-text-muted);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--color-metal-light);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Feature list (Why Choose Us)
   -------------------------------------------------------------------------- */

.feature-list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.feature-list li {
  position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  font-size: var(--fs-300);
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: var(--space-3);
  top: 1.25em;
  width: 8px;
  height: 8px;
  background: var(--color-metal-light);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Testing Capabilities — wrapping chip/tag grid (cred-list idiom)
   -------------------------------------------------------------------------- */

.capability-list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.capability-list li {
  position: relative;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--color-text);
}

.capability-list li::before {
  content: "";
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Standards — boxed name list (feature-list idiom)
   -------------------------------------------------------------------------- */

.standards-list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.standards-list li {
  position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
}

.standards-list li::before {
  content: "";
  position: absolute;
  left: var(--space-3);
  top: 1.25em;
  width: 8px;
  height: 8px;
  background: var(--color-metal-light);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Our Process — semantic ordered list rendered as a connected, accent-numbered
   timeline: vertical connector spine on mobile, horizontal stepper ≥768px
   (Photos-Polish Stage 3). Still <ol> + CSS counter — markers preserved.
   -------------------------------------------------------------------------- */

.process-list {
  list-style: none;
  counter-reset: process;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.process-list li {
  counter-increment: process;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
}

.process-list li::before {
  content: counter(process);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: var(--fs-300);
}

/* Vertical connector spine: a line from each number node down to the next,
   aligned to the center of the 2rem number node. Suppressed on the last step
   so it never overshoots below step 7. */
.process-list li::after {
  content: "";
  position: absolute;
  left: calc(var(--space-4) + 1rem);
  top: 100%;
  width: 2px;
  height: var(--space-4);
  transform: translateX(-50%);
  background: var(--color-hairline);
}

.process-list li:last-child::after {
  display: none;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-headline {
  font-size: var(--fs-500);
  font-weight: 700;
  color: var(--color-accent);
}

.pricing-cta {
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   About / Credibility
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-list {
  font-style: normal;
  margin-top: var(--space-4);
}

.contact-list p {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-300);
}

.contact-name {
  font-weight: 700;
  color: var(--color-text);
}

.contact-list a {
  color: var(--color-text);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--color-accent);
}

.contact-list a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Contact map (keyless lazy Google Maps embed + "Get directions" fallback)
   -------------------------------------------------------------------------- */

.map-frame {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 720px;
  margin-top: var(--space-4);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-directions {
  margin: var(--space-3) 0 0;
}

.map-directions-link {
  color: var(--color-text);
  text-decoration: underline;
}

.map-directions-link:hover {
  color: var(--color-accent);
}

.map-directions-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Quote form
   -------------------------------------------------------------------------- */

.quote-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5);
  max-width: 720px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-row label {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--fs-100);
}

.form-row .req {
  color: var(--color-accent);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  font: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.quote-form textarea {
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-ring);
}

.quote-form .is-invalid {
  border-color: var(--color-accent);
}

/* Honeypot: off-screen, keyboard/AT unreachable, never display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.quote-form .btn {
  justify-self: start;
}

.form-status {
  margin: 0;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-success {
  color: var(--color-success);
}

.form-status.is-error {
  color: var(--color-accent);
}

.section-alt {
  background: var(--color-surface-alt);
  border-block: 1px solid var(--color-hairline);
}

.site-footer {
  border-top: 1px solid var(--color-hairline);
  padding-block: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--fs-100);
}

.site-footer p {
  margin: 0;
}

.site-footer .container {
  text-align: center;
}

.faith-tagline {
  color: var(--color-metal-light);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.faith-ref {
  color: var(--color-text-muted);
}

.footer-meta {
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Desktop nav (>= 768px): horizontal bar, hamburger hidden
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    position: static;
    flex-direction: row;
    gap: var(--space-4);
    background: transparent;
    border-bottom: none;
  }

  .nav-list li {
    border-top: none;
  }

  .nav-link {
    padding: var(--space-2) 0;
  }

  .section {
    padding-block: var(--space-7);
  }

  .hero-logo {
    width: min(360px, 40vw);
  }

  .service-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .standards-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Process: flip the vertical timeline into a horizontal connected stepper.
     Each step is a centered cell (number node over label); cells flex-wrap so
     all 7 fit without horizontal overflow at 768/1100px. */
  .process-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .process-list li {
    flex: 1 1 8.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
  }

  /* Horizontal connector: a hairline sitting in the gap to the right of each
     step, centered on the number node. Suppressed on the last step. */
  .process-list li::after {
    left: 100%;
    top: calc(var(--space-4) + 1rem);
    width: var(--space-4);
    height: 2px;
    transform: translateY(-50%);
  }

  .map-frame {
    aspect-ratio: 16 / 9;
  }

  .quote-form {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* name/company and email/phone pair across the two columns (children 5-8);
     vehicle (9), message (10), the button, and the status span full width. */
  .quote-form .form-row:nth-child(9),
  .quote-form .form-row:nth-child(10),
  .quote-form .btn,
  .quote-form .form-status {
    grid-column: 1 / -1;
  }

  /* cinematic full-bleed bands + 2-col text/image About on desktop */
  .photo-frame {
    aspect-ratio: 3 / 2;
    max-height: 600px;
  }

  .about-row {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Motion safety: disable non-essential motion for users who prefer it
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn-primary:hover {
    transform: none;
  }
}
