/* ===== Theme tokens ===== */
:root {
  --c-primary: 30 41 59;            /* #1E293B — headings/emphasis text */
  --c-accent: 220 38 38;            /* #DC2626 */
  --c-accent-dark: 185 28 28;       /* #B91C1C */
  --c-accent-light: 254 226 226;    /* #FEE2E2 */
  --c-canvas: 248 250 252;          /* #F8FAFC — page background */
  --c-ink: 15 23 42;                /* #0F172A — body text */
  --c-surface: 255 255 255;         /* #FFFFFF — card/alt-section background */
  --c-muted: 233 237 241;           /* #E9EDF1 — subtle panel background */
  --c-muted-foreground: 100 116 139;/* #64748B — secondary text */
  --c-hairline: 226 232 240;        /* #E2E8F0 — borders */
  --c-success: 6 95 70;             /* #065F46 */
  --c-success-bg: 209 250 229;      /* #D1FAE5 */
  --shadow-color: 15 23 42;
}
:root[data-theme="dark"] {
  --c-primary: 226 232 240;         /* #E2E8F0 */
  --c-accent: 248 113 113;          /* #F87171 */
  --c-accent-dark: 254 202 202;     /* #FECACA */
  --c-accent-light: 69 10 10;       /* #450A0A */
  --c-canvas: 8 13 26;              /* #080D1A */
  --c-ink: 241 245 249;             /* #F1F5F9 */
  --c-surface: 17 24 39;            /* #111827 */
  --c-muted: 30 41 59;              /* #1E293B */
  --c-muted-foreground: 148 163 184;/* #94A3B8 */
  --c-hairline: 51 65 85;           /* #334155 */
  --c-success: 167 243 208;         /* #A7F3D0 */
  --c-success-bg: 6 42 33;          /* #062A21 */
  --shadow-color: 0 0 0;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  transition: background-color 200ms ease, color 200ms ease;
}

::selection {
  background: rgb(var(--c-accent));
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgb(var(--c-accent));
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #1E293B;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ===== Nav ===== */
.nav-link {
  position: relative;
  padding: 0.25rem 0;
  transition: color 200ms ease;
}
.nav-link:hover {
  color: rgb(var(--c-accent));
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
}
.mobile-nav-link:hover {
  background: rgb(var(--c-muted));
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  border: 1.5px solid rgb(var(--c-hairline));
  color: rgb(var(--c-primary));
  cursor: pointer;
  background: transparent;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.theme-toggle:hover {
  border-color: rgb(var(--c-accent));
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ===== Buttons ===== */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(var(--c-accent));
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  transition: background-color 200ms ease, transform 150ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-accent:hover {
  background: rgb(var(--c-accent-dark));
}
.btn-accent:active {
  transform: scale(0.97);
}
.btn-accent:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgb(var(--c-primary));
  font-weight: 600;
  border: 1.5px solid rgb(var(--c-hairline));
  border-radius: 9999px;
  transition: border-color 200ms ease, background-color 200ms ease, transform 150ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: rgb(var(--c-primary));
  background: rgb(var(--c-canvas));
}
.btn-outline:active {
  transform: scale(0.97);
}
.btn-outline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ===== Hero ===== */
.headlight-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(220,38,38,0.12) 0%, rgba(220,38,38,0) 70%);
  border-radius: 9999px;
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero-photo {
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgb(var(--shadow-color) / 0.25);
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

/* ===== Section headings ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--c-accent));
}
.section-title {
  margin-top: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.2;
  color: rgb(var(--c-primary));
}
@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

/* ===== Process infographic ===== */
.process-step {
  position: relative;
  padding-top: 0.5rem;
}
.process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: rgb(var(--c-surface));
  border: 1.5px solid rgb(var(--c-hairline));
  color: rgb(var(--c-accent));
}
.process-num {
  position: absolute;
  top: -0.35rem;
  left: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #1E293B;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.process-title {
  margin-top: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: rgb(var(--c-primary));
}
.process-desc {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: rgb(var(--c-muted-foreground));
  line-height: 1.5;
}
@media (min-width: 1024px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.6rem;
    left: 3.6rem;
    width: calc(100% - 1.2rem);
    height: 2px;
    background: rgb(var(--c-hairline));
  }
}

/* ===== Pricing cards ===== */
.price-card {
  position: relative;
  background: rgb(var(--c-surface));
  border: 1.5px solid rgb(var(--c-hairline));
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgb(var(--shadow-color) / 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgb(var(--shadow-color) / 0.1);
}
.price-card--selectable {
  cursor: pointer;
  padding: 1.5rem;
}
.vehicle-option input:checked + .price-card {
  border-color: rgb(var(--c-accent));
  border-width: 2px;
  background: rgb(var(--c-accent-light));
  box-shadow: 0 8px 24px rgb(var(--c-accent) / 0.2);
}
.vehicle-option input:focus-visible + .price-card {
  outline: 2px solid rgb(var(--c-primary));
  outline-offset: 2px;
}

.included-list {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  padding: 0;
  list-style: none;
}
.included-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--c-ink));
}
.included-list li svg {
  flex-shrink: 0;
  color: rgb(var(--c-accent));
}

/* ===== Booking wizard ===== */
.progress-track {
  height: 0.375rem;
  border-radius: 9999px;
  background: rgb(var(--c-muted));
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: rgb(var(--c-accent));
  border-radius: 9999px;
  transition: width 300ms ease;
}
.booking-step-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: rgb(var(--c-primary));
}
.booking-step {
  animation: stepIn 250ms ease;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.vehicle-option {
  display: block;
  cursor: pointer;
}
.vehicle-option-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1.5px solid rgb(var(--c-hairline));
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  background: rgb(var(--c-surface));
  transition: border-color 150ms ease, background-color 150ms ease;
}
.vehicle-option input:focus-visible + .vehicle-option-card {
  outline: 2px solid rgb(var(--c-primary));
  outline-offset: 2px;
}
.vehicle-option input:checked + .vehicle-option-card {
  border-color: rgb(var(--c-accent));
  background: rgb(var(--c-accent-light));
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(var(--c-primary));
  margin-bottom: 0.375rem;
}
.field-input {
  width: 100%;
  border: 1.5px solid rgb(var(--c-hairline));
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: rgb(var(--c-surface));
  color: rgb(var(--c-ink));
  transition: border-color 150ms ease;
}
.field-input:focus {
  outline: none;
  border-color: rgb(var(--c-accent));
}
.field-input.field-invalid {
  border-color: rgb(var(--c-accent));
}
.field-error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: rgb(var(--c-accent));
}

.calendar-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.25rem;
  border: 1.5px solid rgb(var(--c-hairline));
  border-radius: 0.75rem;
}
.calendar-day {
  border: 1.5px solid rgb(var(--c-hairline));
  border-radius: 0.625rem;
  padding: 0.625rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--c-primary));
  background: rgb(var(--c-surface));
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.calendar-day:hover {
  border-color: rgb(var(--c-accent));
}
.calendar-day[aria-checked="true"] {
  border-color: rgb(var(--c-accent));
  background: rgb(var(--c-accent-light));
  color: rgb(var(--c-accent-dark));
}

.review-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.review-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-hairline));
  border-radius: 0.625rem;
  font-size: 0.9375rem;
}
.review-list dt {
  color: rgb(var(--c-muted-foreground));
}
.review-list dd {
  font-weight: 600;
  color: rgb(var(--c-primary));
  text-align: right;
}

/* ===== Service area ===== */
.area-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(var(--c-surface));
  border: 1.5px solid rgb(var(--c-hairline));
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  font-weight: 600;
  color: rgb(var(--c-primary));
  font-size: 0.9375rem;
}
.area-card svg {
  color: rgb(var(--c-accent));
  flex-shrink: 0;
}
.area-card--cta {
  color: rgb(var(--c-accent));
  cursor: pointer;
  transition: border-color 150ms ease;
}
.area-card--cta:hover {
  border-color: rgb(var(--c-accent));
}

/* ===== FAQ ===== */
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  text-align: left;
  font-weight: 600;
  color: rgb(var(--c-primary));
  background: transparent;
  cursor: pointer;
}
.faq-chevron {
  flex-shrink: 0;
  transition: transform 200ms ease;
  color: rgb(var(--c-muted-foreground));
}
.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: rgb(var(--c-accent));
}
.faq-panel {
  padding: 0 0.25rem 1.25rem;
  color: rgb(var(--c-muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.6;
}
.link {
  color: rgb(var(--c-accent));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.success-banner {
  background: rgb(var(--c-success-bg));
  color: rgb(var(--c-success));
}
