/* =========================================================================
   PROTERM — design system CSS
   Source: Proterm brand & interface guide v1.0 (Claude Design export, Aug 2026)
   Palette: Proterm Red + Slate-900 + slate ramp + white. Type: Bitter + Figtree.
   ========================================================================= */

:root {
  /* --- Brand color --- */
  --color-red: #E02B20;
  --color-red-dark: #C81E14;   /* paragraph-safe red, 4.5:1 on white; also primary hover */
  --color-red-tint: #FEE9E7;
  --color-red-hairline: #F2A09A;

  /* --- Slate ramp (working greys) --- */
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-400: #94A3B8;
  --color-slate-300: #CBD5E1;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50:  #F8FAFC;

  --color-black: #000000;
  --color-white: #FFFFFF;

  /* --- Role aliases --- */
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-slate-50);
  --color-text: var(--color-slate-900);
  --color-body: var(--color-slate-600);
  --color-muted: var(--color-slate-500);
  --color-border: var(--color-slate-200);

  /* --- Type --- */
  --font-heading: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Radius scale --- */
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* --- Shadows: two-layer, slate-tinted, never pure black --- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px -6px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 44px -12px rgba(15, 23, 42, 0.24), 0 6px 16px rgba(15, 23, 42, 0.10);

  --container-w: 1240px;
  --header-h: 76px;
}

/* =========================================================================
   RESET
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* .mobile-menu is `position:fixed` + `transform:translateX(100%)` to sit
     off-canvas; that combination can get pulled into the document's
     scrollable-overflow box after a reflow (e.g. the wizard's
     scrollIntoView), which would otherwise expose real horizontal scroll. */
}
img { max-width: 100%; display: block; }
/* color/background/border/appearance reset: without this, unstyled-by-class button
   properties fall back to the browser's native button chrome — most notably iOS
   Safari, which tints default buttons with the system accent color (blue), which
   then leaks into any icon inside via currentColor. Components that need their own
   background/border (.nav-toggle, .seg-opt, etc.) already set those explicitly and
   are unaffected. */
button {
  font-family: inherit; color: inherit; background: none; border: none;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); color: var(--color-text); font-weight: 700; }
p { margin: 0; }
::selection { background: var(--color-red); color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

/* =========================================================================
   TYPE SCALE
   ========================================================================= */
h1, .h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
h2, .h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
}
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red-dark);
  margin-bottom: 10px;
}
.lede {
  font-size: 1.05rem;
  color: var(--color-body);
}
.caption, small, .meta {
  font-size: 0.875rem;
  color: var(--color-muted);
}
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; }

/* =========================================================================
   LAYOUT
   ========================================================================= */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-slate-900); color: var(--color-slate-300); }
.section--dark h2, .section--dark h3 { color: #fff; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.two-col { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.two-col--rev { grid-template-columns: 0.95fr 1.05fr; }
.two-col--rev > *:first-child { order: 2; }
.hr { border: none; border-top: 1px solid var(--color-border); margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--color-slate-900); color: #fff; padding: 10px 18px;
  border-radius: var(--radius-sm); transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col--rev { grid-template-columns: 1fr; gap: 32px; }
  .two-col--rev > *:first-child { order: 0; }
  .section { padding: 52px 0; }
}

/* =========================================================================
   ICONS  (Lucide-style, stroke 2.25, round caps/joins)
   ========================================================================= */
.icon {
  width: 20px; height: 20px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }

.icon-tile {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.icon-tile--accent { background: var(--color-red-tint); color: var(--color-red-dark); }
.icon-tile--neutral { background: var(--color-slate-100); color: var(--color-slate-700); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  height: 48px; padding: 0 22px; border-radius: var(--radius-md);
  border: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--color-red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: #fff; color: var(--color-slate-900); border: 2px solid var(--color-slate-300); }
.btn-secondary:hover { border-color: var(--color-slate-500); }
.btn-ghost { background: transparent; color: var(--color-slate-700); }
.btn-ghost:hover { background: var(--color-slate-100); }
.btn-on-dark { background: #fff; color: var(--color-slate-900); }
.btn-on-dark:hover { background: var(--color-slate-100); }
.btn-lg { height: 56px; padding: 0 28px; border-radius: var(--radius-lg); font-size: 1rem; }
.btn-sm { height: 38px; padding: 0 16px; border-radius: var(--radius-sm); font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.link {
  color: var(--color-red-dark); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.link:hover { border-bottom-color: currentColor; }
.link--ghost-nav { color: var(--color-slate-700); font-weight: 600; }

/* =========================================================================
   TAGS / BADGES / PILLS
   ========================================================================= */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--color-slate-700);
  background: var(--color-slate-100); border-radius: var(--radius-pill);
  padding: 8px 14px; line-height: 1;
}
.tag--accent { background: var(--color-red-tint); color: var(--color-red-dark); }
.tag--outline { background: transparent; border: 1.5px solid var(--color-slate-300); }
.badge {
  display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; background: var(--color-red); border-radius: var(--radius-pill);
  padding: 5px 11px;
}
.badge--slate { background: var(--color-slate-700); }

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 28px;
}
.card--interactive { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--interactive:hover, .card--interactive:focus-within {
  transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-slate-300);
}
.card--flat { box-shadow: none; }
.card--dark {
  background: var(--color-slate-900); color: var(--color-slate-300);
  border: none; box-shadow: var(--shadow-lg);
}
.card--dark h3, .card--dark strong { color: #fff; }
/* .stat-tile strong/span (below) are same specificity as the rules above and defined
   later in the file, so source order let them win and silently overrode the dark-card
   text colors — bump specificity here so dark cards always win regardless of order. */
.card--dark.stat-tile strong { color: #fff; }
.card--dark.stat-tile span { color: var(--color-slate-300); } /* .stat-tile span defaults to slate-500 (--color-muted), which fails contrast on the dark slate-900 card background — brand guide: dark-ground body copy uses Slate 300, never Slate 500 */
.team-avatar {
  width: 84px; height: 84px; border-radius: 999px; background: var(--color-slate-100);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  color: var(--color-slate-400); overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-red-dark); }
.card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; margin: 8px 0 8px; color: var(--color-text); }
.card-body { color: var(--color-body); font-size: 0.95rem; }
.card-meta { font-size: 0.82rem; color: var(--color-muted); margin-top: 10px; }

/* Stat tiles */
.stat-tile strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--color-text); }
.stat-tile span { font-size: 0.85rem; color: var(--color-muted); }

/* =========================================================================
   FORMS
   ========================================================================= */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 700; font-size: 0.8rem; color: var(--color-slate-700);
  margin-bottom: 7px;
}
.field .req { color: var(--color-red-dark); }
.field input,
.field select,
.field textarea {
  width: 100%; height: 48px; padding: 0 14px;
  border: 2px solid var(--color-slate-200); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--color-text);
  background: #fff; transition: border-color .15s ease;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-slate-400); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--color-red); outline: none; }
.field--error input, .field--error textarea { border-color: var(--color-red); background: var(--color-red-tint); }
.field-error-msg { display: flex; align-items: center; gap: 6px; color: var(--color-red-dark); font-size: 0.82rem; margin-top: 7px; font-weight: 600; }
.field input:disabled, .field textarea:disabled { background: var(--color-slate-100); color: var(--color-muted); cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--color-body); margin-bottom: 14px; }
.checkbox-row input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--color-red);
}
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card {
  display: block; border: 2px solid var(--color-slate-200); border-radius: var(--radius-md);
  padding: 14px 16px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { display: block; font-size: 0.92rem; color: var(--color-text); }
.choice-card span.sub { display: block; font-size: 0.8rem; color: var(--color-muted); margin-top: 2px; }
.choice-card:has(input:checked) { border-color: var(--color-red); background: var(--color-red-tint); }
.seg { display: inline-flex; border: 2px solid var(--color-slate-200); border-radius: var(--radius-pill); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg-opt {
  display: inline-flex; align-items: center;
  border: none; background: transparent; border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 0.85rem; font-weight: 700; color: var(--color-slate-600); cursor: pointer;
}
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt.is-active { background: var(--color-slate-900); color: #fff; }
.upload-drop {
  border: 2px dashed var(--color-slate-300); border-radius: var(--radius-md);
  padding: 20px; display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: var(--color-slate-50); transition: border-color .15s ease, background-color .15s ease;
}
.upload-drop:hover, .upload-drop.is-dragover { border-color: var(--color-red); background: var(--color-red-tint); }
.upload-drop strong { display: block; font-size: 0.92rem; color: var(--color-text); }
.upload-drop span { font-size: 0.8rem; color: var(--color-muted); }
.upload-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.upload-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden;
  position: relative; background: var(--color-slate-100); border: 1px solid var(--color-border);
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb button {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 999px;
  background: rgba(15,23,42,.75); color: #fff; border: none; font-size: 11px; line-height: 1; cursor: pointer;
}

@media (max-width: 640px) {
  .form-row, .choice-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PHOTO PLACEHOLDER  (until real photography is supplied)
   ========================================================================= */
.photo-placeholder {
  background: var(--color-slate-100); border: 1.5px dashed var(--color-slate-300);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--color-muted);
  aspect-ratio: 4 / 3; text-align: center; padding: 20px;
}
.photo-placeholder svg { width: 34px; height: 34px; opacity: .55; }
.photo-placeholder span { font-size: 0.85rem; font-weight: 600; }
.service-area-map { width: 100%; height: auto; align-self: center; }

/* =========================================================================
   BEFORE / AFTER SLIDER
   One frame instead of two side-by-side images — drag (or tap/arrow-key) the
   handle to reveal more of the "before" pane. Both panes fill the container
   and the "before" pane is clipped with clip-path (not resized), so the
   underlying image/placeholder never gets visually squeezed as it reveals.
   No-JS fallback: --pos defaults to 50%, so it just renders as a static
   half-and-half split, still readable without any script running.
   ========================================================================= */
.ba-slider {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize;
  box-shadow: var(--shadow-md);
}
.ba-slider__pane { position: absolute; inset: 0; }
.ba-slider__pane .ba-slider__img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; border: none; }
.ba-slider__pane--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-slider__tag {
  position: absolute; top: 14px; z-index: 2;
  background: rgba(15, 23, 42, 0.72); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill);
}
.ba-slider__tag--before { left: 14px; }
.ba-slider__tag--after { right: 14px; }
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 0; transform: translateX(-50%); pointer-events: none;
}
.ba-slider__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}
.ba-slider__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; color: var(--color-slate-900);
}
.ba-slider__grip svg { width: 20px; height: 20px; }
.ba-slider:focus-visible { outline: 3px solid var(--color-red); outline-offset: 2px; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.nav-bar {
  height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
}
/* Explicit width alongside height: with only height set, CSS Grid's "auto" column
   sizing for .nav-bar was computing the wrong max-content contribution for this
   replaced element and squishing the logo horizontally instead of preserving its
   aspect ratio. Locking both dimensions (source is 1636x418) fixes it reliably. */
.nav-logo img { height: 30px; width: 117px; }
.primary-nav { justify-self: center; display: none; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; }
.primary-nav a {
  font-weight: 700; font-size: 0.92rem; color: var(--color-slate-700);
  display: flex; align-items: center; gap: 4px; padding: 8px 0;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--color-slate-900); }
.primary-nav a.is-active { color: var(--color-red-dark); }
.primary-nav .icon--sm { width: 14px; height: 14px; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  /* top:100% with zero gap (no margin-top) so the mouse never crosses a dead
     zone between the "Services" link and the dropdown — a gap here breaks
     :hover before the cursor reaches the menu, closing it prematurely. The
     8px top padding below keeps the same visual breathing room. */
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 8px; padding-top: 12px; min-width: 220px;
  display: none; z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; }
.nav-dropdown-menu a:hover { background: var(--color-slate-100); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: none; align-items: center; gap: 7px; font-weight: 700; font-size: 0.9rem;
  color: var(--color-slate-900);
}
.nav-phone .icon { width: 16px; height: 16px; color: var(--color-red-dark); }
/* "Get a quote" is redundant with the mobile header's call button + hamburger menu
   (which itself ends in a "Get a quote" CTA) — keep the mobile header to logo / call / menu. */
.nav-actions .btn-primary { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md); border: 1.5px solid var(--color-slate-200);
  background: #fff;
}
.nav-call-mobile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-red); color: #fff;
}
@media (min-width: 980px) {
  .primary-nav { display: block; }
  .nav-phone { display: inline-flex; }
  .nav-actions .btn-primary { display: inline-flex; }
  .nav-toggle, .nav-call-mobile { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: #fff;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--color-border);
}
.mobile-menu__logo { height: 24px; width: 94px; } /* explicit width — see .nav-logo img comment */
.mobile-menu__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__body a {
  padding: 14px 4px; font-weight: 700; font-size: 1.05rem; color: var(--color-slate-900);
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu__foot { padding: 20px 24px; margin-top: auto; border-top: 1px solid var(--color-border); display: grid; gap: 10px; }
.mobile-menu__close { background: none; border: none; width: 40px; height: 40px; }

/* Breadcrumb */
.breadcrumb { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--color-muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-red-dark); }
.breadcrumb strong { color: var(--color-slate-700); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding: 56px 0 72px; }
.hero .badges-row { margin-top: 22px; }
.hero h1 { margin-top: 14px; }
.hero .lede { margin-top: 18px; max-width: 46ch; }

/* =========================================================================
   STATS BAND
   ========================================================================= */
.stats-band { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stats-band .grid-4 { text-align: left; gap: 16px; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.stars { color: var(--color-red); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 12px; }
.testimonial p { font-style: italic; color: var(--color-text); }
.testimonial footer { margin-top: 14px; font-size: 0.85rem; color: var(--color-muted); font-style: normal; }

/* =========================================================================
   DARK CTA BAND
   ========================================================================= */
.cta-band {
  background: var(--color-slate-900); color: #fff; border-radius: var(--radius-lg);
  padding: 44px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band .eyebrow { color: var(--color-red-hairline); }
.cta-band h2 { color: #fff; font-size: 1.7rem; }
.cta-band p { color: var(--color-slate-300); margin-top: 6px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--color-bg-alt); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: var(--color-muted); max-width: 32ch; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--color-slate-700); font-weight: 600; }
.footer-col a:hover { color: var(--color-red-dark); }
.footer-bottom {
  border-top: 1px solid var(--color-border); padding: 20px 0; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: var(--color-muted);
}
.footer-bottom .links { display: flex; gap: 18px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   WIZARD / STEPPER
   ========================================================================= */
.wizard-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px; }
.wizard-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.wizard-head h3 { font-size: 1.15rem; }
.wizard-step-label { font-size: 0.78rem; font-weight: 700; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; }
.wizard-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.wizard-progress span { height: 4px; flex: 1; border-radius: 999px; background: var(--color-slate-200); }
.wizard-progress span.is-done, .wizard-progress span.is-active { background: var(--color-red); }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; }
.wizard-note { font-size: 0.8rem; color: var(--color-muted); margin-top: 14px; }
.wizard-tabs { display: flex; border-bottom: 1px solid var(--color-border); margin-bottom: 28px; }
.wizard-tabs button {
  background: none; border: none; padding: 14px 4px; margin-right: 32px; font-weight: 700;
  color: var(--color-muted); border-bottom: 2px solid transparent; cursor: default; font-size: 0.95rem;
}
.wizard-tabs button.is-done { color: var(--color-slate-700); }
.wizard-tabs button.is-active { color: var(--color-slate-900); border-bottom-color: var(--color-red); }
.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }
.no-js .wizard-panel { display: block; }
.no-js .wizard-tabs, .no-js .wizard-progress, .no-js [data-next], .no-js [data-back] { display: none; }
.no-js .mobile-menu { display: none; }
.no-js .nav-toggle { display: none; }
.no-js .ba-slider { cursor: default; } /* dragging needs JS — static 50/50 split still reads fine */
.no-js .ba-slider__grip { display: none; }
.confirm-check {
  width: 60px; height: 60px; border-radius: 999px; background: var(--color-red-tint);
  color: var(--color-red-dark); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.confirm-block { text-align: center; padding: 24px 0; }
.timeline-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 700px) { .timeline-3 { grid-template-columns: 1fr; } }

/* =========================================================================
   SERVICE DETAIL — sticky sidebar layout
   ========================================================================= */
.service-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.service-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 980px) {
  .service-hero { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}
.sidebar-phone-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.sidebar-phone-row .icon-tile { width: 38px; height: 38px; }

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--color-slate-900); color: var(--color-slate-300); padding: 24px 18px; display: flex; flex-direction: column; }
.admin-sidebar img { height: 24px; margin-bottom: 28px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar a {
  display: flex; align-items: center; justify-content: space-between; padding: 11px 12px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; color: var(--color-slate-300);
}
.admin-sidebar a:hover { background: var(--color-slate-800); color: #fff; }
.admin-sidebar a.is-active { background: var(--color-slate-800); color: #fff; }
.admin-sidebar .count { background: var(--color-red); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.admin-sidebar__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--color-slate-800); font-size: 0.85rem; }
.admin-sidebar__foot strong { color: #fff; display: block; }
.admin-main { padding: 28px 32px; background: var(--color-bg-alt); min-height: 100vh; }
.admin-topbar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.admin-search {
  flex: 1; min-width: 220px; height: 44px; border-radius: var(--radius-md); border: 1.5px solid var(--color-border);
  padding: 0 14px; background: #fff; font-family: var(--font-body);
}
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px 20px; }
.admin-stat-card.is-alert { border-color: var(--color-red); }
.admin-stat-card .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted); }
.admin-stat-card .value { font-family: var(--font-heading); font-size: 2rem; margin-top: 6px; }
.admin-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-panel { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.admin-panel__head { padding: 18px 22px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; }
.leads-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.leads-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); padding: 10px 22px; border-bottom: 1px solid var(--color-border); }
.leads-table td { padding: 14px 22px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.leads-table tr:hover td { background: var(--color-slate-50); }
.leads-table tr.is-urgent td:first-child { box-shadow: inset 3px 0 0 var(--color-red); }
.lead-name { font-weight: 700; color: var(--color-text); }
.lead-addr { color: var(--color-muted); font-size: 0.82rem; }
.status-pill { display: inline-flex; padding: 5px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; background: var(--color-slate-100); color: var(--color-slate-700); }
.status-pill--new { background: var(--color-red-tint); color: var(--color-red-dark); }
.status-pill--urgent { background: var(--color-red); color: #fff; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--color-slate-900); padding: 24px; }
.admin-login-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.admin-login-card img { height: 30px; margin-bottom: 22px; }

/* =========================================================================
   ALERT / TOAST
   ========================================================================= */
.alert { border-radius: var(--radius-md); padding: 14px 18px; font-size: 0.9rem; margin-bottom: 20px; }
.alert--error { background: var(--color-red-tint); color: var(--color-red-dark); border: 1px solid var(--color-red-hairline); }
.alert--success { background: #EAF6EE; color: #1E7B3B; border: 1px solid #BFE6C8; }

/* =========================================================================
   UTILITIES
   ========================================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.no-js .js-only { display: none; }

/* Mobile sticky call/quote bar */
.mobile-cta-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--color-border);
  padding: 10px 14px; gap: 10px; box-shadow: 0 -6px 16px rgba(15,23,42,.08);
}
@media (max-width: 720px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 74px; }
}
