/* =========================================================
   DISPATCH — Mobile Mechanic Design System
   Dark roadside-dispatch aesthetic: midnight navy base,
   desert sand + sunset orange + amber + emergency red accents.
   ========================================================= */

:root {
  /* Base */
  --navy-950: #060a13;
  --navy-900: #0a1120;
  --navy-800: #101a2e;
  --navy-700: #182541;
  --navy-600: #23335a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Desert / accent */
  --sand-100: #f6ecd9;
  --sand-300: #e8d3ab;
  --sunset-500: #ff7a29;
  --sunset-600: #e6621a;
  --amber-400: #ffb020;
  --red-600: #e2352b;
  --red-500: #ff4438;
  --green-500: #34c77b;

  /* Text */
  --white: #fbfaf7;
  --text-primary: #f4f2ec;
  --text-muted: #a6b0c6;
  --text-faint: #6d7996;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 320ms;

  /* Layout */
  --container: 1180px;
  --sticky-bar-h: 64px;

  --shadow-glow-orange: 0 0 60px rgba(255, 122, 41, 0.22);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-med: 0ms; }
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-bar-h);
}

/* Dispatch-console scrollbar */
html { scrollbar-color: var(--sunset-500) var(--navy-900); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--sunset-500), var(--red-600));
  border-radius: 6px;
  border: 2px solid var(--navy-900);
}
::-webkit-scrollbar-thumb:hover { background: var(--amber-400); }

.mono { font-family: var(--font-mono); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sunset-500);
  color: var(--navy-950);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 2px;
}

/* ---------- Background texture: map grid + heat shimmer ---------- */
.map-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
}

.heat-shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 80% 10%, rgba(255,122,41,0.18), transparent 70%),
              radial-gradient(40% 40% at 10% 90%, rgba(255,176,32,0.10), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .heat-shimmer { animation: shimmer 12s ease-in-out infinite alternate; }
}
@keyframes shimmer {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

/* ---------- Scroll progress (route line) ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--sunset-500), var(--red-600));
  box-shadow: 0 0 8px rgba(255, 122, 41, 0.6);
  z-index: 300;
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { transition: none; } }

/* ---------- HUD corner-bracket frame ---------- */
.hud-frame { position: relative; }
.hud-frame .corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 3;
}
.hud-frame .corner-tl { top: -2px; left: -2px; border-top: 2px solid var(--amber-400); border-left: 2px solid var(--amber-400); }
.hud-frame .corner-tr { top: -2px; right: -2px; border-top: 2px solid var(--amber-400); border-right: 2px solid var(--amber-400); }
.hud-frame .corner-bl { bottom: -2px; left: -2px; border-bottom: 2px solid var(--amber-400); border-left: 2px solid var(--amber-400); }
.hud-frame .corner-br { bottom: -2px; right: -2px; border-bottom: 2px solid var(--amber-400); border-right: 2px solid var(--amber-400); }

/* ---------- Status pill (dispatch console readout) ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(52, 199, 123, 0.12);
  border: 1px solid rgba(52, 199, 123, 0.35);
  color: #7be3ac;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.status-pill .hud-divider { color: rgba(123, 227, 172, 0.4); font-weight: 400; }
.status-pill #live-clock { text-transform: none; letter-spacing: 0; color: #7be3ac; }

.signal-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.signal-bars span { width: 3px; background: var(--green-500); border-radius: 1px; display: block; }
.signal-bars span:nth-child(1) { height: 40%; }
.signal-bars span:nth-child(2) { height: 70%; }
.signal-bars span:nth-child(3) { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .signal-bars span { animation: bar-pulse 1.4s ease-in-out infinite; }
  .signal-bars span:nth-child(2) { animation-delay: 0.2s; }
  .signal-bars span:nth-child(3) { animation-delay: 0.4s; }
}
@keyframes bar-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(52,199,123,0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .status-pill .dot { animation: pulse 2s ease-out infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,199,123,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52,199,123,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,123,0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--sunset-500), var(--red-600));
  color: var(--white);
  box-shadow: var(--shadow-glow-orange);
}
.btn-primary:hover { box-shadow: 0 0 0 3px rgba(255,122,41,0.3), var(--shadow-glow-orange); }

.btn-secondary {
  background: var(--navy-700);
  color: var(--sand-100);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--navy-600); }

.btn-ghost {
  background: transparent;
  color: var(--amber-400);
  border-color: rgba(255,176,32,0.4);
}
.btn-ghost:hover { background: rgba(255,176,32,0.08); }

/* clip-path can clip the default outline in some browsers — use an explicit ring instead */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--navy-950), 0 0 0 6px var(--amber-400);
}

/* Tap ripple — tactile feedback on press, mobile and desktop alike */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn .ripple { display: none; } }

.btn-block { width: 100%; }
.btn-lg { min-height: 60px; font-size: 1.05rem; padding: 16px 28px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .pin {
  color: var(--sunset-500);
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sand-100);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
}
.header-phone:hover { border-color: var(--sunset-500); color: var(--sunset-500); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 899px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 88px 0 56px;
  }
  .hero .container { width: 100%; }
}

/* Staggered "boot up" entrance for the hero's first column — pure CSS, no JS/FOUC */
.hero-grid > div:first-child > * {
  opacity: 0;
  animation: hero-in 0.7s var(--ease) forwards;
}
.hero-grid > div:first-child > *:nth-child(1) { animation-delay: 0.05s; }
.hero-grid > div:first-child > *:nth-child(2) { animation-delay: 0.16s; }
.hero-grid > div:first-child > *:nth-child(3) { animation-delay: 0.28s; }
.hero-grid > div:first-child > *:nth-child(4) { animation-delay: 0.4s; }
.hero-grid > div:first-child > *:nth-child(5) { animation-delay: 0.52s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid > div:first-child > * { opacity: 1; animation: none; transform: none; }
}

/* Scroll-cue chevron inviting the next section */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: var(--text-faint);
  opacity: 0.8;
  transition: opacity var(--dur-med) var(--ease);
  z-index: 1;
}
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue-bounce 1.8s ease-in-out infinite; }
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: var(--white);
  margin-top: 16px;
}
.hero h1 .accent { color: var(--sunset-500); }
.hero p.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 24px;
}
.hero .btn-row { margin-bottom: 20px; }
.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-top: 18px;
}
.trust-line svg { flex-shrink: 0; color: var(--amber-400); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .placeholder-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(226, 53, 43, 0.9);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  z-index: 4;
}
.route-svg { width: 100%; height: auto; position: relative; z-index: 1; }

#route-path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1.6s var(--ease);
}
#route-path.is-drawn { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  #route-path { stroke-dashoffset: 0; transition: none; }
}

/* Scanline texture — hero visual reads as a live dispatch monitor */
.hero-visual .scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* Mini radar widget — decorative "tracking" motif, no live-data claim */
.radar-widget {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle, rgba(255, 176, 32, 0.1) 0%, transparent 70%),
    repeating-radial-gradient(circle, transparent 0 11px, var(--line-strong) 11px 12px);
  overflow: hidden;
  z-index: 3;
}
.radar-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(255, 176, 32, 0.6), transparent 55deg);
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .radar-widget::before { animation: radar-spin 4s linear infinite; }
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
.radar-widget .blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  top: 34%;
  left: 60%;
  box-shadow: 0 0 8px 2px rgba(255, 68, 56, 0.85);
}
@media (prefers-reduced-motion: no-preference) {
  .radar-widget .blip { animation: pulse 2s ease-out infinite; }
}

.coord-readout {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.66rem;
  color: var(--text-faint);
  background: rgba(6, 10, 19, 0.6);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  z-index: 3;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; position: relative; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--white);
}
.section-head p { color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  color: var(--sunset-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.section-alt { background: var(--navy-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Service Selector ---------- */
.selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) { .selector-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .selector-grid { grid-template-columns: repeat(6, 1fr); } }

/* Mobile: swipeable snap carousel instead of a wrapped grid */
@media (max-width: 699px) {
  .selector-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 4px 28px 4px 4px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, black calc(100% - 36px), transparent 100%);
  }
  .selector-grid::-webkit-scrollbar { display: none; }
  .issue-btn {
    flex: 0 0 128px;
    scroll-snap-align: start;
  }
}

.swipe-hint {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-top: 10px;
  transition: opacity var(--dur-med) var(--ease);
}
.swipe-hint.is-hidden { opacity: 0; }
@media (max-width: 699px) { .swipe-hint { display: inline-flex; } }

.issue-btn {
  position: relative;
  overflow: visible;
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  color: var(--text-primary);
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.issue-btn:hover { border-color: var(--sunset-500); transform: translateY(-2px); }
.issue-btn.pinged::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--amber-400);
  animation: ping-ring 0.6s ease-out;
  pointer-events: none;
}
@keyframes ping-ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .issue-btn.pinged::after { animation: none; display: none; } }
.issue-btn .issue-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber-400);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.issue-btn[aria-pressed="true"] {
  border-color: var(--sunset-500);
  background: linear-gradient(160deg, rgba(255,122,41,0.16), rgba(226,53,43,0.08));
  box-shadow: var(--shadow-glow-orange);
}

.issue-result {
  margin-top: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  padding: 28px;
  display: none;
}
.issue-result.is-visible { display: block; animation: fadeUp var(--dur-med) var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.issue-result h3 { color: var(--amber-400); font-size: 1.15rem; }
.issue-result p { color: var(--text-muted); margin-bottom: 20px; }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  gap: 24px;
  position: relative;
}
@media (min-width: 800px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline-step {
  position: relative;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.timeline-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sunset-500), var(--red-600));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
}
.timeline-step h3 { color: var(--white); font-size: 1.1rem; }
.timeline-step p { color: var(--text-muted); margin: 0; }
.timeline-connector {
  display: none;
}
@media (min-width: 800px) {
  .timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px; right: -12px;
    width: 24px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--sunset-500) 0 6px, transparent 6px 12px);
    background-size: 12px 2px;
  }
  @media (prefers-reduced-motion: no-preference) {
    .timeline-step:not(:last-child)::after { animation: dash-flow 0.8s linear infinite; }
  }
}
@keyframes dash-flow { to { background-position: 12px 0; } }

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Back-to-top (dispatch ETA ring) ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(var(--sticky-bar-h) + 18px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 140;
  color: var(--amber-400);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast), border-color var(--dur-fast) var(--ease);
}
.back-to-top:hover { border-color: var(--sunset-500); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top .ring { position: absolute; inset: 0; }
.back-to-top .ring-bg { fill: none; stroke: var(--line-strong); stroke-width: 3; }
.back-to-top .ring-progress {
  fill: none;
  stroke: var(--sunset-500);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 119.4;
  transition: stroke-dashoffset 0.1s linear;
}
@media (prefers-reduced-motion: reduce) { .back-to-top .ring-progress { transition: none; } }
.back-to-top .chevron { position: relative; z-index: 1; }
@media (min-width: 900px) { .back-to-top { bottom: 28px; } }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.service-card:hover { border-color: var(--sunset-500); transform: translateY(-3px); }
.service-card h3 { color: var(--white); font-size: 1.1rem; }
.service-card p { color: var(--text-muted); margin: 0; flex-grow: 1; }
.service-card .card-icon { color: var(--amber-400); }

/* ---------- Map / service area ---------- */
.area-wrap {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) { .area-wrap { grid-template-columns: 1fr 1fr; align-items: center; } }
.area-map {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--navy-800);
  min-height: 280px;
  padding: 20px;
}
.area-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.area-list li svg { color: var(--sunset-500); flex-shrink: 0; }

/* ---------- Trust cards ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.trust-card h3 { color: var(--white); font-size: 1.05rem; }
.trust-card p { color: var(--text-muted); margin: 0; }
.trust-card.unverified { opacity: 0.55; border-style: dashed; }
.trust-card .verify-flag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red-500);
  text-transform: uppercase;
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.review-card .stars { color: var(--amber-400); margin-bottom: 10px; letter-spacing: 2px; }
.review-card p.quote { color: var(--text-primary); font-style: italic; }
.review-card .who { color: var(--text-faint); font-size: 0.85rem; margin-top: 12px; }
.review-placeholder {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--text-faint);
}

/* ---------- Form ---------- */
.form-wrap {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .form-wrap { grid-template-columns: 1fr 1fr; } }
.dispatch-form {
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--sand-100); }
.field .hint { color: var(--text-faint); font-size: 0.8rem; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea,
.field select {
  background: var(--navy-900);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  min-height: 48px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sunset-500); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.radio-pill input { accent-color: var(--sunset-500); }
.radio-pill:has(input:checked) { border-color: var(--sunset-500); color: var(--amber-400); }

.field-error {
  color: var(--red-500);
  font-size: 0.82rem;
  min-height: 1em;
}
.form-status {
  border-radius: var(--radius-md);
  padding: 16px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(52,199,123,0.12); border: 1px solid rgba(52,199,123,0.4); color: #7be3ac; }
.form-status.error { background: rgba(226,53,43,0.12); border: 1px solid rgba(226,53,43,0.4); color: #ff9d97; }

.form-side h2 { color: var(--white); }
.form-side p { color: var(--text-muted); }
.form-side .btn { margin-top: 12px; }

/* ---------- Save our number ---------- */
.save-number {
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,122,41,0.16), transparent 60%), var(--navy-900);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.save-number-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) { .save-number-grid { grid-template-columns: 1.2fr 0.8fr; } }
.qr-box {
  width: 160px; height: 160px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.75rem;
  text-align: center;
  padding: 10px;
  background: var(--navy-800);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--sunset-500);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-muted); }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  padding: 56px 24px;
  margin: 0 auto;
}
.final-cta h2 { color: var(--white); font-size: clamp(1.7rem, 5vw, 2.5rem); }
.final-cta p { color: var(--text-muted); max-width: 50ch; margin: 0 auto 26px; }
.final-cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  color: var(--text-faint);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h4 { color: var(--sand-100); font-size: 0.95rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--sunset-500); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-disclaimer { color: var(--text-faint); font-size: 0.78rem; max-width: 900px; margin-top: 16px; }

/* ---------- Sticky mobile action bar ---------- */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--sticky-bar-h);
  background: var(--navy-900);
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  z-index: 150;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
}
.sticky-bar a, .sticky-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
}
.sticky-bar a:last-child, .sticky-bar button:last-child { border-right: none; }
.sticky-bar svg { color: var(--sunset-500); }
.sticky-bar .call-action { background: linear-gradient(135deg, var(--sunset-500), var(--red-600)); color: var(--white); }
.sticky-bar .call-action svg { color: var(--white); }

@media (min-width: 900px) {
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Placeholder badge (reused globally) ---------- */
.ph-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--amber-400);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  vertical-align: middle;
}

.text-center { text-align: center; }

/* ---------- Prose (service-page body copy) ---------- */
.prose h2 { color: var(--white); font-size: 1.3rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); }
.prose ul, .prose ol {
  list-style: revert;
  padding-left: 1.4em;
  margin: 0 0 1em;
  color: var(--text-muted);
  display: block;
}
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--sunset-500); font-weight: 700; }
.prose a { color: var(--amber-400); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--sunset-500); }
.prose .btn { margin-top: 1.5em; }
