/* ===================================================================
   SPEED UP ADVENCE LLC — Roadside Assistance
   Design system: night-shoulder amber. Dark asphalt neutrals + a single
   hazard-amber accent, echoing hazard lights / safety vests / tow beacons.
   =================================================================== */

:root {
  /* ---- Type scale (fluid clamp, 12px floor) ---- */
  --text-xs: clamp(0.75rem, 0.71rem + 0.2vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
  --text-3xl: clamp(2.25rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.8rem + 6.2vw, 6.5rem);

  /* ---- 4px spacing system ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Radius ---- */
  --radius-sm: 0.3rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.85rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* ---- Fonts ---- */
  --font-display: 'Clash Grotesk', 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'General Sans', 'Inter', 'Segoe UI', sans-serif;
}

/* ---------------- LIGHT MODE (default) ---------------- */
:root,
[data-theme='light'] {
  --color-bg: #f2f2ee;
  --color-surface: #ffffff;
  --color-surface-2: #fbfbf8;
  --color-surface-offset: #e9e8e2;
  --color-surface-offset-2: #dfded6;
  --color-surface-dynamic: #d3d2c8;
  --color-divider: #ddddd5;
  --color-border: #cfced4;

  --color-text: #191b16;
  --color-text-muted: #5c5f57;
  --color-text-faint: #9a9c93;
  --color-text-inverse: #f7f6f0;

  /* Primary — safety amber/orange */
  --color-primary: #c1440e;
  --color-primary-hover: #9c3608;
  --color-primary-active: #7a2a06;
  --color-primary-highlight: #f3d9c8;

  /* Success — available now */
  --color-success: #2f7d32;
  --color-success-highlight: #d8e8d5;

  /* Error */
  --color-error: #b3261e;
  --color-error-highlight: #f2d6d3;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.2 0.02 60 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 60 / 0.16);
}

/* ---------------- DARK MODE ---------------- */
[data-theme='dark'] {
  --color-bg: #101214;
  --color-surface: #16191c;
  --color-surface-2: #1b1e21;
  --color-surface-offset: #1f2225;
  --color-surface-offset-2: #262a2d;
  --color-surface-dynamic: #2e3235;
  --color-divider: #2a2d30;
  --color-border: #33373a;

  --color-text: #edece6;
  --color-text-muted: #9a9c96;
  --color-text-faint: #63655f;
  --color-text-inverse: #191b16;

  --color-primary: #ff7a29;
  --color-primary-hover: #ff9450;
  --color-primary-active: #ffaa70;
  --color-primary-highlight: #3a2a1c;

  --color-success: #6fbe6a;
  --color-success-highlight: #23301f;

  --color-error: #e2564c;
  --color-error-highlight: #372221;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
}

@media (color-gamut: p3) {
  :root {
    --color-primary: oklch(0.52 0.17 40);
  }
  [data-theme='dark'] {
    --color-primary: oklch(0.72 0.17 45);
  }
}

/* ===================== Layout Primitives ===================== */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  max-width: 26ch;
}

.section-head {
  margin-bottom: var(--space-12);
}
.section-head p {
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-top: var(--space-4);
  font-size: var(--text-base);
}

/* ===================== Typography ===================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-text);
}

p {
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  white-space: nowrap;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    border-color var(--transition-interactive);
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid oklch(from var(--color-text) l c h / 0.22);
}
.btn-outline:hover {
  border-color: oklch(from var(--color-text) l c h / 0.4);
  background: oklch(from var(--color-text) l c h / 0.04);
}

.btn-light {
  background: var(--color-text-inverse);
  color: #171310;
}
.btn-light:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.9);
}

.btn-ghost-light {
  background: oklch(1 0 0 / 0.1);
  color: #fff;
  border: 1.5px solid oklch(1 0 0 / 0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
  background: oklch(1 0 0 / 0.18);
  border-color: oklch(1 0 0 / 0.55);
}

.btn-block {
  width: 100%;
}

/* ===================== Header ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-word strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-word span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  gap: var(--space-6);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav-links a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: oklch(from var(--color-text) l c h / 0.06);
  color: var(--color-text);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.call-pill:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.call-pill svg {
  width: 16px;
  height: 16px;
}

.request-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1.5px solid oklch(from var(--color-text) l c h / 0.18);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.request-pill:hover {
  border-color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.08);
  color: var(--color-primary);
}
.request-pill svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.nav-toggle:hover {
  background: oklch(from var(--color-text) l c h / 0.06);
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5) var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.mobile-panel a {
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.mobile-panel a:hover {
  background: oklch(from var(--color-text) l c h / 0.05);
}
.mobile-panel.is-open {
  display: flex;
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f2f0ea;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.12 0.01 60 / 0.55) 0%, oklch(0.1 0.01 60 / 0.35) 38%, oklch(0.08 0.01 60 / 0.92) 100%),
    linear-gradient(90deg, oklch(0.08 0.01 60 / 0.75) 0%, oklch(0.08 0.01 60 / 0.15) 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) clamp(var(--space-10), 6vw, var(--space-16));
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.1);
  border: 1px solid oklch(1 0 0 / 0.2);
  backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: #7ee08a;
  box-shadow: 0 0 0 3px oklch(0.75 0.16 140 / 0.25);
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 650;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: var(--space-6);
  color: #f2f0ea;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary-hover, var(--color-primary));
  color: oklch(0.68 0.18 45);
}

.hero-sub {
  font-size: var(--text-lg);
  max-width: 46ch;
  color: oklch(0.95 0.01 90 / 0.88);
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid oklch(1 0 0 / 0.16);
  padding-top: var(--space-6);
  max-width: 620px;
}
.hero-strip div + div {
  border-left: 1px solid oklch(1 0 0 / 0.16);
  padding-left: var(--space-6);
}
.hero-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.hero-strip span {
  font-size: var(--text-xs);
  color: oklch(0.95 0.01 90 / 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===================== Services ===================== */
.services-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-5);
}

.service-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  overflow: hidden;
}

.service-card--feature {
  grid-row: span 2;
  color: #f4f2ec;
  justify-content: flex-end;
  min-height: 100%;
}
.service-card--feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.service-card--feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.1 0.02 60 / 0.05) 0%, oklch(0.08 0.02 60 / 0.92) 88%);
  z-index: -1;
}
.service-card--feature .service-num {
  color: oklch(0.95 0.02 60 / 0.7);
}
.service-card--feature h3 {
  color: #fff;
}
.service-card--feature p {
  color: oklch(0.95 0.01 80 / 0.82);
}

.service-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 650;
  margin-bottom: var(--space-2);
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.service-card--tall {
  grid-column: span 1;
}

/* ===================== How it works ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.step {
  padding: var(--space-8) var(--space-6) var(--space-8) 0;
  border-right: 1px solid oklch(from var(--color-text) l c h / 0.1);
  position: relative;
}
.step:last-child {
  border-right: none;
}
.step-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: oklch(from var(--color-primary) l c h / 0.35);
  margin-bottom: var(--space-4);
  line-height: 1;
}
.step h3 {
  font-size: var(--text-base);
  font-weight: 650;
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ===================== Coverage / Map ===================== */
.coverage-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-12);
  align-items: center;
}
.coverage-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 460px;
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  box-shadow: var(--shadow-md);
}
.coverage-map .maplibregl-ctrl-attrib {
  font-size: 10px;
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.town-chip {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

.county-badges {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.county-badge {
  flex: 1;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  background: var(--color-surface);
}
.county-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}
.county-badge span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===================== Pricing ===================== */
.pricing-table-wrap {
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--color-surface);
}
.pricing-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
}
.pricing-table thead th {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  font-weight: 650;
}
.pricing-table tbody tr {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.pricing-table td:first-child {
  font-weight: 600;
}
.pricing-table td.price {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--color-primary);
  white-space: nowrap;
}
.pricing-note {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 68ch;
}

/* ===================== Testimonials ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
}
.testimonial-card:nth-child(2) {
  transform: translateY(var(--space-8));
}
.stars {
  display: flex;
  gap: 3px;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.stars svg {
  width: 15px;
  height: 15px;
}
.testimonial-card blockquote {
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-sm);
  color: var(--color-primary);
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
}
.testimonial-author span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ===================== FAQ ===================== */
.faq-list {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
  max-width: var(--content-narrow);
}
.faq-item {
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}
.faq-question:hover {
  color: var(--color-primary);
}
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: transform var(--transition-interactive);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-in-out);
}
.faq-answer-inner {
  overflow: hidden;
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding-bottom: var(--space-6);
  max-width: 60ch;
}

/* ===================== Contact / Quote form ===================== */
.contact-section {
  background: var(--color-surface-offset);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-12);
  align-items: start;
}
.contact-info-card {
  background: #171310;
  color: #f4f1ea;
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  position: sticky;
  top: calc(var(--space-20) + 20px);
}
.contact-info-card h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.contact-info-card p {
  color: oklch(0.9 0.01 80 / 0.75);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}
.contact-detail {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid oklch(1 0 0 / 0.12);
}
.contact-detail:first-of-type {
  border-top: none;
}
.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}
.contact-detail span,
.contact-detail a {
  font-size: var(--text-sm);
  color: oklch(0.9 0.01 80 / 0.75);
}
.contact-detail a:hover {
  color: #fff;
}

.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  font-size: var(--text-base);
  min-height: 46px;
}
.form-field textarea {
  min-height: 100px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.18);
}
.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--color-error);
}
.field-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
}
.form-field.has-error .field-error {
  display: block;
}

.service-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.check-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-3);
  font-size: var(--text-sm);
  cursor: pointer;
  min-height: 44px;
}
.check-chip:has(input:checked) {
  border-color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.08);
}
.check-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.form-success.is-visible {
  display: block;
}
.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--color-success);
  margin: 0 auto var(--space-5);
}
.form-success h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.form-success p {
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-inline: auto;
}

/* ===================== Footer ===================== */
.footer {
  background: #14110e;
  color: oklch(0.9 0.01 80 / 0.85);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid oklch(1 0 0 / 0.1);
}
.footer-brand .brand-word strong,
.footer-brand .brand-word span {
  color: #fff;
}
.footer-brand p {
  font-size: var(--text-sm);
  color: oklch(0.9 0.01 80 / 0.6);
  margin-top: var(--space-4);
  max-width: 32ch;
}
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(0.9 0.01 80 / 0.5);
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-weight: 650;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a,
.footer-col span {
  font-size: var(--text-sm);
  color: oklch(0.9 0.01 80 / 0.75);
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: oklch(0.9 0.01 80 / 0.45);
}
.footer-socials {
  display: flex;
  gap: var(--space-3);
}
.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.08);
  color: oklch(0.9 0.01 80 / 0.75);
}
.footer-socials a:hover {
  background: var(--color-primary);
  color: #fff;
}
.footer-socials svg {
  width: 16px;
  height: 16px;
}

/* ===================== Sticky mobile call bar ===================== */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-primary);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 20px oklch(0 0 0 / 0.25);
  align-items: stretch;
}
.mobile-call-bar a,
.mobile-call-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex: 1;
  color: #fff;
  font-weight: 650;
  font-size: var(--text-sm);
  min-height: 44px;
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.mobile-bar-request {
  border-left: 1px solid oklch(1 0 0 / 0.32) !important;
}
.mobile-call-bar svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===================== Skip link ===================== */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top var(--transition-interactive);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ===================== Scroll reveal ===================== */
.reveal {
  opacity: 1;
}
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .service-card--feature {
    grid-column: span 2;
    grid-row: auto;
    min-height: 320px;
  }
  .coverage-layout {
    grid-template-columns: 1fr;
  }
  .coverage-map {
    order: -1;
    height: 340px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-card:nth-child(2) {
    transform: none;
  }
  .testimonial-card:nth-child(3) {
    grid-column: span 2;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .header-actions .call-pill,
  .header-actions .request-pill,
  .header-actions .theme-toggle {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions {
    gap: var(--space-1);
  }
  .header-actions .nav-toggle {
    display: flex;
  }
  .mobile-panel .call-pill-mobile {
    display: inline-flex;
    margin-top: var(--space-3);
  }
  .mobile-panel .request-pill-mobile {
    display: inline-flex;
    justify-content: center;
    margin-top: var(--space-2);
  }
  .hero-strip {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: none;
  }
  .hero-strip div + div {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid oklch(1 0 0 / 0.16);
    padding-top: var(--space-4);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card--feature {
    grid-column: auto;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: none;
    border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
    padding-right: 0;
  }
  .step:last-child {
    border-bottom: none;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card:nth-child(3) {
    grid-column: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .service-checks {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .mobile-call-bar {
    display: flex;
  }
  body {
    padding-bottom: 68px;
  }
  .county-badges {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 92vh;
  }
}
