/* ==========================================================================
   24/7 ASAP Towing -- Design System & Global Styles
   Mobile-first. No framework dependencies.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Brand colors */
  --color-blue: #1458c4;
  --color-blue-dark: #0d3f8f;
  --color-navy: #0a1f44;
  --color-navy-light: #132c5c;
  --color-white: #ffffff;
  --color-off-white: #f5f8fc;

  /* Accent (reserved for call-to-call actions only) */
  --color-accent: #e8720c;
  --color-accent-dark: #c25f09;

  /* Neutrals / text */
  --color-text: #1a2233;
  --color-text-muted: #4a5568;
  --color-border: #dde4ee;
  --color-border-strong: #b9c6dc;

  /* Status */
  --color-success-bg: #eaf6ee;
  --color-success-text: #1e6b3c;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);

  /* Spacing scale (8px base) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */

  /* Radius / shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(10, 31, 68, 0.08), 0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow-card-hover: 0 6px 20px rgba(10, 31, 68, 0.12);

  /* Layout */
  --container-max: 1180px;
  --header-height: 72px;
  --mobile-bar-height: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Keeps in-page anchor targets (e.g. /towing/#flatbed-towing) from being
   hidden under the sticky header when jumped to. */
[id] {
  scroll-margin-top: calc(var(--header-height) + var(--space-3));
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: var(--mobile-bar-height);
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

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

a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--color-blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

/* ---- Focus visibility ---- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible { border-radius: 4px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}
.section--tight { padding: var(--space-5) 0; }
.section--white { background: var(--color-white); }
.section--off { background: var(--color-off-white); }
.section--navy {
  background: var(--color-navy);
  color: #dbe4f5;
}
.section--navy h2, .section--navy h3 { color: var(--color-white); }
.section--navy a { color: #bcd2f7; }

.section-head {
  max-width: 760px;
  margin: 0 0 var(--space-4);
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: var(--space-1);
}
.section--navy .eyebrow { color: #7fb0ff; }

/* ---- Buttons ---- */
.btn[hidden] { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-blue-dark); color: var(--color-white); }

.btn--call {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--call:hover { background: var(--color-accent-dark); color: var(--color-white); }

.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); color: var(--color-white); }

.btn--outline-navy {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn--outline-navy:hover { background: var(--color-navy); color: var(--color-white); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.6em 1.1em; min-height: 40px; font-size: 0.9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand:hover { color: var(--color-navy); }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(10, 31, 68, 0.3);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.brand-mark-text {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-mark-bar {
  width: 55%;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}
.brand-text-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.header-call {
  display: none;
}
@media (min-width: 1200px) {
  .header-call {
    display: inline-flex;
    flex-shrink: 0;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: rotate(-45deg); top: 0; }

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

.primary-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}
.primary-nav.is-open { display: block; }

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.primary-nav__list li { margin: 0; }
.primary-nav__list a,
.primary-nav__list button.nav-sublink-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9em 0.2em;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--space-2);
  display: none;
}
.nav-submenu.is-open { display: block; }
.nav-submenu a {
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav-caret { transition: transform 0.15s ease; flex-shrink: 0; margin-left: 0.5em; }
.nav-caret.is-open { transform: rotate(180deg); }

.primary-nav__cta {
  margin-top: var(--space-2);
}

@media (min-width: 1200px) {
  .primary-nav {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: none;
    background: none;
    flex: 1;
  }
  .primary-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space_1, 0.25rem);
    padding: 0;
    justify-content: center;
  }
  .primary-nav__list > li {
    position: relative;
  }
  .primary-nav__list a,
  .primary-nav__list button.nav-sublink-toggle {
    border-bottom: none;
    padding: 0.6em 0.85em;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }
  .primary-nav__list a:hover,
  .primary-nav__list button.nav-sublink-toggle:hover {
    background: var(--color-off-white);
  }
  .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card-hover);
    border-radius: var(--radius-md);
    padding: 0.4em;
    min-width: 230px;
    z-index: 50;
  }
  .nav-submenu a {
    border-bottom: none;
    border-radius: var(--radius-sm);
    color: var(--color-text);
  }
  .primary-nav__cta { display: none; }
}

/* ---- Sticky mobile action bar ---- */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  display: flex;
  height: var(--mobile-bar-height);
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: 0 -2px 10px rgba(10,31,68,0.08);
}
.mobile-action-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.mobile-action-bar__call {
  background: var(--color-accent);
  color: var(--color-white);
}
.mobile-action-bar__quote {
  background: var(--color-navy);
  color: var(--color-white);
}
@media (min-width: 768px) {
  .mobile-action-bar { display: none; }
}

/* ---- Hero ----
   One full-bleed photographic composition: the real Calgary-skyline truck
   photo as the hero's own background layer, a directional (left-to-right)
   scrim for text legibility over the photo itself, and content sitting on
   top. Mobile (<768px) gets its own treatment: the photo is a deliberately
   cropped banner band up top (not the full content-driven height, and not
   a same-crop-as-desktop stretch) so the truck reads at a strong size, and
   the headline sits mostly below it on solid navy. Desktop (768px+) is
   approved and untouched below except where a rule is shared by both. */
.hero {
  --hero-photo-h: min(68vw, 280px);
  --hero-gutter: 20px;
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-white);
}
.hero-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-photo-h);
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 40%;
}
.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hero-photo-h);
  background: linear-gradient(180deg, rgba(6,13,30,0.08) 0%, rgba(6,13,30,0.3) 58%, rgba(6,13,30,0.95) 100%);
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: -8%;
  width: 45%;
  height: 55%;
  background: radial-gradient(circle, rgba(232,114,12,0.18) 0%, rgba(232,114,12,0) 70%);
}

/* Mobile-only gutter: .container's own horizontal padding gets clobbered
   by the padding shorthand below (it sets left/right too), so it's
   restored explicitly here rather than relying on .container. This block
   is superseded wholesale by the 768px+ rule beneath it -- desktop keeps
   its previously-approved padding: var(--space-5) 0 untouched. */
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--hero-photo-h) - 30px);
  padding-bottom: var(--space-4);
  padding-left: var(--hero-gutter);
  padding-right: var(--hero-gutter);
}
.hero-content { max-width: 640px; }
.hero-cta-row .btn { width: 100%; }

@media (min-width: 768px) {
  .hero-photo { height: auto; bottom: 0; }
  .hero-photo img { object-position: 32% 38%; }
  .hero-scrim {
    height: auto; bottom: 0;
    background:
      linear-gradient(100deg, rgba(6,13,30,0.88) 0%, rgba(6,13,30,0.78) 20%, rgba(6,13,30,0.5) 38%, rgba(6,13,30,0.2) 55%, rgba(6,13,30,0.05) 75%, rgba(6,13,30,0.08) 100%),
      linear-gradient(180deg, rgba(6,13,30,0.3) 0%, rgba(6,13,30,0) 18%, rgba(6,13,30,0) 68%, rgba(6,13,30,0.55) 100%);
  }
  .hero-inner {
    padding: var(--space-5) 0;
    min-height: 560px;
    display: flex;
    align-items: center;
  }
  .hero-cta-row .btn { width: auto; }
}
@media (min-width: 1024px) { .hero-inner { min-height: 620px; } }
@media (min-width: 1280px) { .hero-inner { min-height: 680px; } }

.hero-eyebrow,
.hero h1 { text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 var(--space-2);
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
  font-size: clamp(2.1rem, 6.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-accent { color: var(--color-accent); }
.hero p.lede.hero-lede {
  font-size: 1.1rem;
  color: #dbe4f5;
  max-width: 46ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: var(--space-3) 0;
}
@media (min-width: 768px) {
  .hero-services { grid-template-columns: repeat(6, 1fr); }
}
.hero-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  padding: 0.75em 0.7em;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.hero-service-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: var(--color-white);
}
.hero-service-card svg { color: var(--color-accent); flex-shrink: 0; }

.hero-cta-row { margin-top: var(--space-2); }
.hero .btn--hero-call {
  font-size: 1.1rem;
  padding: 1em 1.7em;
  box-shadow: 0 8px 24px rgba(232,114,12,0.4);
}
.hero .btn--hero-call svg { flex-shrink: 0; }

.hero-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: #060d1e;
}
.hero-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1) var(--space-3);
  padding: var(--space-2) var(--space-3);
}
@media (min-width: 768px) {
  .hero-strip-grid { grid-template-columns: repeat(4, 1fr); padding: var(--space-3); gap: var(--space-2) var(--space-3); }
}
.hero-strip-item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: #cdd9ef;
  font-size: 0.85rem;
  font-weight: 700;
}
.hero-strip-item svg { color: var(--color-accent); flex-shrink: 0; width: 20px; height: 20px; }

/* ---- Page header (interior pages) ---- */
.page-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-5) 0 var(--space-4);
}
.page-header h1 { color: var(--color-white); margin-bottom: var(--space-1); }
.page-header p { color: #cdd9ef; max-width: 65ch; margin-bottom: var(--space-2); }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  margin: 0;
  padding: 0;
}
.breadcrumbs a { color: #a9c2ec; }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35em;
  color: #6f89b8;
}
.breadcrumbs li[aria-current] { color: #cdd9ef; }

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  gap: var(--space-3);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease;
}
.card--link:hover {
  box-shadow: var(--shadow-card-hover);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-off-white);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  flex-shrink: 0;
}

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5em;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .area-list { grid-template-columns: 1fr 1fr; } }
.area-list a {
  display: block;
  text-decoration: none;
  padding: 0.7em 1em;
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-weight: 600;
}
.area-list a:hover { border-color: var(--color-blue); }

/* ---- Steps ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  position: relative;
  padding-top: var(--space-5);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: var(--space-2);
  left: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ---- FAQ (details/summary) ---- */
.faq-list {
  border-top: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  padding: 1.1em 0.2em;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-blue);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  padding: 0 0.2em 1.2em;
  color: var(--color-text-muted);
  max-width: 70ch;
}

/* ---- Image gallery ---- */
.photo-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-off-white);
  aspect-ratio: 4 / 3;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Single feature photo (interior pages: service/about content) ---- */
.feature-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-off-white);
  aspect-ratio: 4 / 3;
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Image placeholder (until real photos supplied) ---- */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #e7edf7, #e7edf7 10px, #eef2fa 10px, #eef2fa 20px);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: var(--space-2);
}

/* ---- Forms ---- */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-3);
}
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4em; }
.field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-navy);
}
.field .optional-tag {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.75em 0.9em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-blue);
}
.field-hint { font-size: 0.82rem; color: var(--color-text-muted); }
.form-status {
  margin-top: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--color-success-bg); color: var(--color-success-text); }
.form-status.is-error { background: #fdecea; color: #9a2f27; }

/* Honeypot -- hidden from sighted users and kept out of the tab order */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* ---- Callout / CTA bands ---- */
.cta-band {
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}
@media (min-width: 700px) {
  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cta-band h2, .cta-band h3 { color: var(--color-white); margin: 0; }
.cta-band p { color: #e2ecfd; margin: 0; }

/* ---- Info list (for About / trust points) ---- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 1.9em;
  position: relative;
  margin-bottom: 0.7em;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: var(--color-blue);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.32em;
  top: 0.42em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-navy);
  color: #b9c8e6;
  padding: var(--space-6) 0 var(--space-4);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.footer-brand { color: var(--color-white); font-weight: 800; font-size: 1.1rem; margin-bottom: var(--space-1); }
.site-footer h4 { color: var(--color-white); font-size: 0.95rem; margin-bottom: var(--space-2); }
.site-footer a { color: #b9c8e6; text-decoration: none; }
.site-footer a:hover { color: var(--color-white); text-decoration: underline; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.55em; }
.footer-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(255,255,255,0.08);
  padding: 0.4em 0.8em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  margin-top: var(--space-2);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-legal-links { display: flex; gap: var(--space-2); flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-social {
  display: flex;
  gap: 0.6em;
  margin-top: var(--space-2);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Utility ---- */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sr-note { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---- Booking wizard (homepage quick-request form) ---- */
.booking-card {
  max-width: 640px;
  margin: 0 auto;
}

.booking-progress { margin-bottom: var(--space-3); }
.booking-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
  margin-bottom: 0.6em;
}
.booking-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-accent));
  transition: width 0.3s ease;
  width: 16%;
}
.booking-progress-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}
.booking-progress-label span:last-child { color: var(--color-blue); }

.booking-step {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
}
.booking-step.is-active {
  display: block;
  animation: bookingStepIn 0.25s ease;
}
@keyframes bookingStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .booking-step.is-active { animation: none; }
}

.booking-step legend {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
  padding: 0;
  margin-bottom: 0.3em;
}
.booking-step-hint {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6em;
}
@media (min-width: 480px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* Two-option primary choice (Towing / Roadside Assistance) stays 2-up at every width */
.service-grid--primary { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .service-grid--primary { grid-template-columns: repeat(2, 1fr); } }

.service-option--lg {
  min-height: 88px;
  font-size: 1.05rem;
  justify-content: center;
  text-align: center;
  padding: 1.1em 1em;
}

.service-group-label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0.6em 0 0.1em;
}
.service-group-label:first-child { margin-top: 0; }

.service-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.9em 1.8em 0.9em 0.8em;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--color-text);
  min-height: 56px;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.05s ease;
}
.service-option:hover { border-color: var(--color-blue); }
.service-option:active { transform: translateY(1px); }
.service-option[aria-pressed="true"] {
  border-color: var(--color-blue);
  background: #eef4ff;
  color: var(--color-navy);
}
.service-option-check {
  position: absolute;
  top: 50%;
  right: 0.6em;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.7rem;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-option[aria-pressed="true"] .service-option-check { display: flex; }

.booking-summary {
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.7;
}
.booking-summary strong { color: var(--color-navy); }

.booking-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.booking-actions .btn { min-width: 120px; }
.booking-actions .btn:only-child { margin-left: auto; }

.booking-field-error {
  color: #9a2f27;
  font-size: 0.82rem;
  margin-top: 0.4em;
  display: none;
}
.booking-field-error.is-visible { display: block; }
