/*
Theme Name: Instant Restoration
Theme URI: https://instant-restoration.com/
Author: Instant Restoration
Author URI: https://instant-restoration.com/
Description: Custom theme for Instant Restoration — 24/7 water, fire, smoke & mold damage restoration serving Los Angeles, Ventura, and Orange County. Server-rendered, SEO-first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: instant-restoration
*/

/* ============================================
   INSTANT RESTORATION — SITE STYLES
   tokens · type · components · sections
   ============================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-1: #101010;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);
  --ink: #f6f5f3;
  --ink-2: #c8c6c2;
  --ink-3: #7d7a75;
  --ink-4: #4a4a48;

  --orange: #ff4d03;
  --orange-2: #ff6422;
  --orange-soft: rgba(255, 77, 3, 0.14);
  --orange-line: rgba(255, 77, 3, 0.42);

  --green: #22c55e;
  --amber: #f4b740;
  --red: #ef4343;
  --blue: #5fa8ff;

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;

  --maxw: 1440px;
  --gutter: clamp(16px, 4vw, 32px);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(255, 77, 3, 0.18);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #000; }

/* ---------- Type utilities ---------- */
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.h-display {
  font-size: clamp(44px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.h-1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 700; margin: 0; text-wrap: balance; }
.h-2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0; text-wrap: balance; }
.h-3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.muted { color: var(--ink-3); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 160px) 0; position: relative; }
.section-head { display: flex; gap: 48px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 64px; }
.section-head .lede { margin: 0; }
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.16em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #0a0a0a; }
.btn-primary:hover { background: #ff5e1f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,0.03); }
.btn-square { border-radius: 8px; }
.btn-lg { padding: 18px 28px; font-size: 15px; }

/* ---------- Top status bar ---------- */
.statusbar {
  background: var(--orange);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  height: 36px;
  overflow: hidden;
  position: relative;
}
.statusbar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}
.statusbar-track { display: inline-flex; align-items: center; }
.statusbar-item { padding: 0 28px; display: inline-flex; align-items: center; gap: 10px; border-right: 1px solid rgba(0,0,0,0.18); }
.statusbar-item .dot { width: 6px; height: 6px; border-radius: 50%; background: #0a0a0a; animation: pulse 1.4s ease-in-out infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: 14px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--orange);
  -webkit-mask: url("assets/logo-mark.svg") center/contain no-repeat;
  mask: url("assets/logo-mark.svg") center/contain no-repeat;
}
.brand-mark.actual {
  background: transparent;
  -webkit-mask: none;
  mask: none;
}
.brand-mark.actual img { width: 100%; height: 100%; object-fit: contain; }
.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}
.brand-word .b1 { font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
.brand-word .b2 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); margin-top: 3px; }

.nav-links { display: flex; gap: 4px; justify-content: center; }
.nav-link {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--ink-2);
  transition: color 0.18s, background 0.18s;
  font-weight: 500;
  position: relative;
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-link.has-menu::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  display: inline-block;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 8px;
  opacity: 0.5;
}
.nav-cta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: nowrap;
}
.nav-phone {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  transition: border 0.2s;
  min-height: 44px;
  white-space: nowrap;
}
.nav-phone:hover { border-color: var(--orange); }
.nav-phone .icon { color: var(--orange); }

.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  touch-action: manipulation;
}
.nav-mobile-toggle span,
.nav-mobile-toggle span::before,
.nav-mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  content: "";
}
.nav-mobile-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-mobile-toggle span::after { position: absolute; top: 6px; left: 0; }

/* Mobile panel — hidden by default at every width.
   Only the @media (max-width: 820px) block below re-enables it
   when .nav-inner has .mobile-open. */
.nav-mobile-panel { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 140px) 0 clamp(80px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
  z-index: -1;
}
.hero-glow {
  position: absolute;
  top: -10%; left: 10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(255,77,3,0.18), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
.hero-spot {
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,77,3,0.10), transparent 65%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.hero-right {
  position: relative;
}
.hero-left .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--orange-line); border-radius: 999px; background: rgba(255,77,3,0.06); }
.hero-left .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,77,3,0.18); animation: pulse 1.6s ease-in-out infinite; }

.hero-headline {
  margin-top: 32px;
  margin-bottom: 28px;
  position: relative;
  padding: 0 14px;
}
.hero-headline .line { display: block; }
.hero-headline .em {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero-h1 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 0;
  max-width: 28ch;
  text-wrap: balance;
}
.bracket-l, .bracket-r {
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid var(--orange);
}
.bracket-l { top: -10px; left: -14px; border-right: none; border-bottom: none; }
.bracket-r { bottom: -10px; right: -14px; border-left: none; border-top: none; }

.hero-sub { max-width: 52ch; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stat { padding: 22px 0; padding-right: 24px; border-right: 1px solid var(--line); }
.hero-stat:last-child { border-right: none; padding-right: 0; padding-left: 24px; }
.hero-stat:nth-child(2), .hero-stat:nth-child(3) { padding-left: 24px; }
.hero-stat .v { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* ---------- Hero right side (docked Live Ops) ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { position: relative; top: 0; max-width: 460px; width: 100%; margin: 0 auto; }
}

/* ---------- White section ---------- */
.section-light {
  background: var(--ink);
  color: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}
.section-light .section-num { color: rgba(10,10,10,0.4); }
.section-light .lede { color: rgba(10,10,10,0.7); }
.section-light .h-1, .section-light .h-2 { color: #0a0a0a; }

/* ---------- Explainer (white) ---------- */
.explainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #1a1a1a;
  background: #0a0a0a;
}
.explainer-cell {
  background: var(--ink);
  padding: 56px 40px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  border-right: 1px solid #e8e3d8;
}
.explainer-cell:last-child { border-right: none; }
.explainer-cell .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.18em;
  font-weight: 700;
}
.explainer-cell .ill {
  height: 140px;
  color: var(--orange);
  display: flex; align-items: flex-end;
  margin: 8px 0 12px;
}
.explainer-cell .ill svg { width: auto; height: 100%; }
.explainer-cell h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #0a0a0a;
}
.explainer-cell p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(10,10,10,0.7);
  max-width: 32ch;
}
.explainer-cell .arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange); font-weight: 700;
}
@media (max-width: 1000px) {
  .explainer { grid-template-columns: 1fr; }
  .explainer-cell { border-right: none; border-bottom: 1px solid #e8e3d8; }
  .explainer-cell:last-child { border-bottom: none; }
}

/* ---------- Process light variant ---------- */
.section-light .process-step .node { background: var(--ink); border-color: rgba(10,10,10,0.12); color: rgba(10,10,10,0.5); }
.section-light .process-step .node .core { background: #f0ebe0; color: var(--orange); }
.section-light .process::before { background: rgba(10,10,10,0.12); }
.section-light .process-step h4 { color: #0a0a0a; }
.section-light .process-step p { color: rgba(10,10,10,0.7); }
.section-light .process-step .step-num { color: rgba(10,10,10,0.4); }
.section-light .process-step:hover .node { border-color: var(--orange); }
.section-light .process-step:hover .node .core { background: var(--orange-soft); }

/* ---------- Live Ops panel ---------- */
.liveops {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.liveops-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.4);
}
.liveops-head .title { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.liveops-head .ind { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,0.18); animation: pulse 1.6s ease-in-out infinite; }
.liveops-head .clock { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }

.liveops-loc {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.liveops-loc .pin { color: var(--orange); }
.liveops-loc .city { font-weight: 600; color: var(--ink); }
.liveops-loc .coords { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em; }

.liveops-alert {
  padding: 22px 18px 18px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-bottom: 1px solid var(--line);
}
.liveops-alert .alert-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.liveops-alert .alert-fg { position: relative; z-index: 1; }
.liveops-alert .alert-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 4px;
  background: var(--orange-soft); color: var(--orange);
  border: 1px solid var(--orange-line);
  margin-bottom: 14px;
}
.liveops-alert .alert-tag.tag-ok { background: rgba(34,197,94,0.10); color: var(--green); border-color: rgba(34,197,94,0.32); }
.liveops-alert .alert-tag.tag-warn { background: rgba(244,183,64,0.10); color: var(--amber); border-color: rgba(244,183,64,0.32); }
.liveops-alert .alert-tag.tag-danger { background: rgba(239,67,67,0.10); color: var(--red); border-color: rgba(239,67,67,0.32); }
.liveops-alert .alert-icon { width: 44px; height: 44px; margin-bottom: 12px; color: var(--orange); }
.liveops-alert .alert-headline { font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 6px; }
.liveops-alert .alert-sub { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-bottom: 14px; }
.liveops-alert .alert-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
}

.liveops-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.liveops-metric {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.liveops-metric:last-child { border-right: none; }
.liveops-metric .v { font-size: 18px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.liveops-metric .l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.liveops-metric .v.ok { color: var(--green); }
.liveops-metric .v.warn { color: var(--amber); }
.liveops-metric .v.danger { color: var(--red); }

.liveops-foot {
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-2);
}
.liveops-foot .crew { display: flex; }
.liveops-foot .crew span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--bg);
  margin-left: -6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--orange);
  font-family: var(--mono);
}
.liveops-foot .crew span:first-child { margin-left: 0; }
.liveops-foot .status-text { line-height: 1.3; }
.liveops-foot .status-text strong { color: var(--ink); font-weight: 600; }

/* ---------- Service Cards ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: background 0.3s;
  cursor: pointer;
  min-height: 280px;
}
.service-card:hover { background: var(--bg-2); }
.service-card .ill {
  width: 88px; height: 88px;
  color: var(--orange);
  margin-bottom: 16px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover .ill { transform: translateY(-4px) scale(1.05); }
.service-card .num {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.16em;
}
.service-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.service-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; }
.service-card .arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
  transition: gap 0.2s;
}
.service-card:hover .arrow { gap: 10px; }

/* ---------- Process Timeline ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process::before {
  content: ""; position: absolute;
  top: 38px; left: 8%; right: 8%; height: 1px;
  background: var(--line-2);
  z-index: 0;
}
.process-step {
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  padding: 0 16px;
}
.process-step .node {
  width: 76px; height: 76px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.14em;
  transition: border-color 0.3s, background 0.3s;
}
.process-step .node .core {
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  transition: background 0.3s;
}
.process-step .node .core svg { width: 30px; height: 30px; }
.process-step:hover .node { border-color: var(--orange); }
.process-step:hover .node .core { background: var(--orange-soft); }
.process-step .step-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.18em;
  margin-top: 18px;
}
.process-step h4 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.process-step p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.55; }

/* ---------- Equipment ---------- */
.equipment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.equip-card {
  position: relative;
  padding: 28px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column; gap: 14px;
}
.equip-card:hover { border-color: var(--orange-line); transform: translateY(-2px); }
.equip-card .equip-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.16em;
}
.equip-card .equip-ill {
  width: 100%;
  aspect-ratio: 4 / 3;
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.equip-card .equip-ill svg { width: 90%; height: 90%; }
.equip-card:hover .equip-ill { transform: scale(1.08) translateY(-2px); }
.equip-card .equip-name { font-size: 15px; font-weight: 700; letter-spacing: -0.005em; margin: 0; }
.equip-card .equip-spec {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.equip-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- Service Areas ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.area-card {
  display: block;
  padding: 28px 26px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.area-card:hover { border-color: var(--orange-line); transform: translateY(-2px); background: var(--bg-2); }
.area-card .area-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.area-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}
.area-card .area-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.area-card .area-cities {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 18px;
}
.area-card .arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  border-right: 1px solid var(--line);
  padding: 0 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.trust-item:last-child { border-right: none; }
.trust-item .v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.trust-item .v .pre { color: var(--orange); }
.trust-item .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Reviews ---------- */
.reviews-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
  padding: 32px;
}
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.reviews-summary-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.reviews-stars {
  color: var(--orange);
  letter-spacing: 3px;
  font-size: 22px;
  line-height: 1;
}
.reviews-summary-meta { display: flex; flex-direction: column; gap: 4px; }
.reviews-rating-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.reviews-rating-value .muted { color: var(--ink-3); font-weight: 500; }
.reviews-rating-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.reviews-summary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-height: 44px;
}
.reviews-summary-cta:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.review-card:hover { border-color: var(--orange-line); transform: translateY(-2px); }
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-card .review-stars {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
}
.review-card .review-stars .dim { color: var(--ink-4); }
.review-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  position: relative;
  /* Clamp very long reviews so the grid stays tidy */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--orange); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.review-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-author:hover { color: var(--orange); }
.review-time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 2px;
}

.reviews-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  padding: 10px 0;
  transition: gap 0.2s;
}
.reviews-cta-row:hover { gap: 14px; }

.reviews-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
}
.reviews-fallback:hover { border-color: var(--orange-line); background: var(--bg-3); }
.reviews-fallback-text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.reviews-fallback-arrow { color: var(--orange); font-weight: 700; }

/* ---------- Standalone review-card style (used by the ported reviews grid) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.reviews-grid .review-card {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.reviews-grid .review-card:hover { border-color: var(--orange-line); transform: translateY(-2px); }
.reviews-grid .review-card .stars { color: var(--orange); letter-spacing: 4px; font-size: 16px; line-height: 1; }
.reviews-grid .review-card .quote { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.reviews-grid .review-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.reviews-grid .review-card .who .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); font-weight: 700; font-size: 13px;
  border: 1px solid var(--orange-line);
  flex-shrink: 0;
}
.reviews-grid .review-card .who .meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.reviews-grid .review-card .who .name {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reviews-grid .review-card .who .loc {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.08em; margin-top: 2px;
}

/* ---------- Big CTA cta-actions stack ---------- */
.big-cta .cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- Section-num as block-ish label above h-1 ---------- */
.section-head .section-num { display: inline-block; }

.certs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px;
  margin-top: 56px;
}
.cert {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg-1);
}
.cert .cert-mark { width: 44px; height: 44px; color: var(--orange); }
.cert .cert-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.cert .cert-sub { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  gap: 24px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--ink);
}
.faq-q .plus {
  width: 28px; height: 28px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--orange);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; transition: transform 0.3s; }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 24px; }

/* Light-section variant — FAQ default text colors are --ink/--ink-2 (cream/light grey)
   which match the .section-light background. Override so the text is readable. */
.section-light .faq-item { border-bottom-color: rgba(10, 10, 10, 0.12); }
.section-light .faq-q { color: #0a0a0a; }
.section-light .faq-q .plus::before,
.section-light .faq-q .plus::after { background: var(--orange); }
.section-light .faq-a { color: rgba(10, 10, 10, 0.7); }
.section-light .faq-a p { color: inherit; margin: 0; }

/* ---------- Big CTA ---------- */
.big-cta {
  border-radius: var(--radius-lg);
  background: var(--orange);
  color: #0a0a0a;
  padding: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.big-cta .eyebrow { color: #0a0a0a; }
.big-cta h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.025em; margin: 18px 0 0; font-weight: 700; }
.big-cta p { font-size: 18px; line-height: 1.5; color: rgba(10,10,10,0.78); margin: 18px 0 0; max-width: 50ch; }
.big-cta .cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.big-cta .btn-primary { background: #0a0a0a; color: var(--orange); }
.big-cta .btn-primary:hover { background: #1a1a1a; }
.big-cta .btn-ghost { color: #0a0a0a; border-color: rgba(10,10,10,0.3); }
.big-cta .btn-ghost:hover { border-color: #0a0a0a; background: rgba(10,10,10,0.05); }
.big-cta-phone {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: block;
  margin-top: 12px;
  color: #0a0a0a;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: var(--ink-2); max-width: 38ch; line-height: 1.55; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-emergency {
  border: 1px solid var(--orange-line);
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 18px;
}
.footer-emergency .label { color: var(--orange); margin-bottom: 6px; display: block; }
.footer-emergency .phone {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.footer-emergency .open { font-size: 12px; color: var(--ink-2); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom .fine { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-4); }

/* ---------- Floating Pills ---------- */
.float-chat, .float-dispatch {
  position: fixed;
  bottom: 20px;
  z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.float-chat:hover, .float-dispatch:hover { transform: translateY(-2px); }
.float-chat {
  left: 20px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.float-dispatch {
  right: 20px;
  background: var(--orange);
  color: #0a0a0a;
}
.float-dispatch .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #0a0a0a;
  position: relative;
}
.float-dispatch .pulse::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: #0a0a0a;
  animation: ripple 1.6s ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(4); opacity: 0; } }

/* ============================================================
   CHAT WIDGET — port from standalone (homepage only)
   ============================================================ */
.chat-widget { position: relative; }

/* --- Launcher pill (bottom-left) --- */
.chat-launcher {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  min-height: 44px;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-widget.open .chat-launcher { background: var(--bg-3); }
.chat-launcher-icon { flex-shrink: 0; }
.chat-launcher-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 1.6s ease-in-out infinite;
}
.chat-widget.open .chat-launcher-dot { display: none; }

/* --- Panel (opens above the launcher) --- */
.chat-panel {
  position: fixed;
  left: 20px;
  bottom: 76px;
  z-index: 75;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 120px));
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadein 0.2s ease;
}
.chat-panel[hidden] { display: none; }

/* --- Head --- */
.chat-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-shrink: 0;
}
.chat-head-bracket {
  position: absolute;
  top: -1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--orange);
}
.chat-head-bracket-l { left: -1px; border-left: 2px solid var(--orange); }
.chat-head-bracket-r { right: -1px; border-right: 2px solid var(--orange); }
.chat-head-title { display: flex; align-items: center; gap: 10px; }
.chat-head-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.chat-head-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.chat-head-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.chat-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.chat-close:hover { color: var(--ink); border-color: var(--line-3); }

/* --- Messages area --- */
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-msg-assistant {
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.chat-msg-user {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--orange);
  color: #0a0a0a;
  border: none;
}

/* --- Call button inside an assistant response bubble --- */
.chat-msg-assistant .chat-msg-text { display: block; }
.chat-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  min-height: 36px;
  white-space: nowrap;
}
.chat-call-btn:hover { background: #ff5e1f; transform: translateY(-1px); }

/* ============================================================
   SERVICE-AREA MAP (Section 06) — ported from site.css
   ============================================================ */
.map-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-pane {
  background: var(--bg);
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.map-svg { width: 100%; height: 100%; display: block; }

.map-controls {
  position: absolute; top: 16px; left: 16px;
  display: flex; gap: 6px;
  z-index: 5;
}
.map-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  color: var(--ink-2);
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 77, 3, 0.18);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.map-ctrl:hover { color: var(--ink); border-color: var(--orange-line); background: rgba(10, 10, 10, 0.92); }
.map-ctrl:active { transform: translateY(1px); }
.map-ctrl:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.map-ctrl.active { background: var(--orange); color: #0a0a0a; border-color: var(--orange); box-shadow: 0 4px 14px rgba(255, 77, 3, 0.32); }
.map-ctrl.active:hover { background: #ff5e1f; color: #0a0a0a; border-color: #ff5e1f; }

.map-legend {
  position: absolute; bottom: 16px; left: 16px;
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: 2;
}
.map-legend .l { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.map-legend .swatch { width: 10px; height: 10px; border-radius: 50%; }

.map-side {
  background: var(--bg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.map-side .ms-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

.zip-form {
  display: flex; gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 4px 4px 4px 14px;
  align-items: center;
  transition: border-color 0.2s;
}
.zip-form:focus-within { border-color: var(--orange); }
.zip-form input {
  background: transparent;
  border: none; outline: none;
  width: 100%;
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.06em;
  padding: 10px 0;
  color: var(--ink);
}
.zip-form input::placeholder { color: var(--ink-4); }
.zip-form button { padding: 10px 16px; min-height: 40px; }

.zip-result {
  font-size: 13px; line-height: 1.5;
  padding: 14px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.zip-result[hidden] { display: none; }
.zip-result.ok { border-color: rgba(34, 197, 94, 0.32); background: rgba(34, 197, 94, 0.05); }
.zip-result.no { border-color: rgba(244, 183, 64, 0.32); background: rgba(244, 183, 64, 0.04); }
.zip-result .r-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.zip-result.ok .r-tag { color: var(--green); }
.zip-result.no .r-tag { color: var(--amber); }

.coverage-list { display: flex; flex-direction: column; gap: 6px; }
.coverage-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}
.coverage-item:hover { border-color: var(--orange-line); background: var(--bg-3); }
.coverage-item .ci-name { font-weight: 600; font-size: 13px; color: var(--ink); }
.coverage-item .ci-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; margin-top: 2px; }
.coverage-item .ci-time { font-family: var(--mono); font-size: 11px; color: var(--orange); font-weight: 700; flex-shrink: 0; margin-left: 10px; }

/* ---------- Map SVG specifics ---------- */
.map-svg .county-shape { fill: rgba(255, 255, 255, 0.02); stroke: var(--line-3); stroke-width: 1; transition: fill 0.3s, stroke 0.3s; }
.map-svg .county-shape.hq { fill: rgba(255, 77, 3, 0.10); stroke: var(--orange); }
.map-svg .county-shape:hover { fill: rgba(255, 77, 3, 0.06); stroke: var(--orange-line); }
.map-svg .city-dot { fill: var(--ink); stroke: var(--bg); stroke-width: 2; cursor: pointer; transition: r 0.2s; }
.map-svg .city-dot:hover { r: 6; fill: var(--orange); }
.map-svg .city-dot.hq { fill: var(--orange); }
.map-svg .city-dot.hq-ring { fill: none; stroke: var(--orange); stroke-width: 1; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { r: 6; opacity: 0.8; } 100% { r: 28; opacity: 0; } }
.map-svg .city-label { fill: var(--ink-2); font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; pointer-events: none; }

/* City labels — non-HQ labels stay in HTML (SEO) but visually hidden.
   HQ labels (.hq-label, .hq-name) always stay visible.
   Hover information is delivered via the .map-tooltip card instead. */
.map-svg .map-city .city-label:not(.hq-label):not(.hq-name) {
  opacity: 0;
  pointer-events: none;
}
/* Transparent larger hit-area so the 3px dots are easy to hover. */
.map-svg .city-hit { fill: transparent; cursor: pointer; }
/* Tag the whole group as cursor:pointer so the dot circle also signals hover. */
.map-svg .map-city .city-dot:not(.hq-ring) { cursor: pointer; }
.map-svg .hazard { cursor: pointer; }

/* ---------- Map tooltip card (Pass 13 — port from standalone) ---------- */
.map-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 130px;
  padding: 9px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  white-space: nowrap;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.map-tooltip.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease, visibility 0s linear 0s;
}
.map-tooltip-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.map-tooltip-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}
/* Arrow nub under the tooltip pointing down at the dot */
.map-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--bg-1);
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.map-svg .van-route { fill: none; stroke: var(--orange); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.5; }
.map-svg .van-route.active { stroke-dasharray: 6 6; animation: dash 1.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.map-svg .hazard { display: none; }
.map-svg .map-hazards.show .hazard,
.map-svg .hazard.show { display: block; }
.map-svg .map-routes { display: none; }
.map-svg .map-routes.show { display: block; }
.map-svg .hazard .h-pulse {
  fill: rgba(239, 67, 67, 0.18);
  stroke: var(--red);
  animation: hazpulse 2s ease-out infinite;
}
@keyframes hazpulse { 0% { r: 8; opacity: 0.9; } 100% { r: 30; opacity: 0; } }
@keyframes ray-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .map-shell { grid-template-columns: 1fr; }
}

/* ============================================================
   BEFORE / AFTER GALLERY (Section 07)
   ============================================================ */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.ba {
  position: relative;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  background: var(--bg-1);
  touch-action: none;
}
.ba .ba-side { position: absolute; inset: 0; }
.ba .ba-side svg { width: 100%; height: 100%; display: block; }
.ba .ba-after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba .ba-label {
  position: absolute; top: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 2;
}
.ba .ba-label.before { left: 16px; background: rgba(0, 0, 0, 0.6); color: var(--ink-2); border: 1px solid var(--line); }
.ba .ba-label.after { right: 16px; background: var(--orange); color: #0a0a0a; }
.ba .ba-title {
  position: absolute; bottom: 16px; left: 16px;
  font-size: 18px; font-weight: 700;
  background: rgba(0, 0, 0, 0.5); padding: 6px 12px; border-radius: 4px;
  color: var(--ink);
  z-index: 2;
}
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px;
  background: var(--orange);
  pointer-events: none;
  z-index: 3;
}
.ba-handle {
  position: absolute;
  top: 50%; left: var(--ba-pos, 50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid #0a0a0a;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  display: flex; align-items: center; justify-content: center;
  color: #0a0a0a; font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 4;
  padding: 0;
  outline: none;
}
.ba-handle:focus-visible { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 77, 3, 0.4); }

@media (max-width: 640px) {
  .ba-grid { grid-template-columns: 1fr; gap: 16px; }
  .ba .ba-title { font-size: 15px; padding: 5px 10px; bottom: 12px; left: 12px; }
  .ba .ba-label { font-size: 9px; top: 12px; }
  .ba .ba-label.before { left: 12px; }
  .ba .ba-label.after { right: 12px; }
}

/* --- Quick actions --- */
.chat-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.chat-quick {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.chat-quick:hover { border-color: var(--orange-line); color: var(--ink); }

/* --- Input row --- */
.chat-input-row {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  background: var(--bg);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.chat-input::placeholder { color: var(--ink-4); }
.chat-input:focus { border-color: var(--orange); }
.chat-send {
  padding: 10px 14px;
  min-width: 44px;
  min-height: 44px;
}

/* --- Emergency CTA bar --- */
.chat-emergency {
  display: block;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--orange);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.chat-emergency:hover { background: #ff5e1f; color: #0a0a0a; }

/* --- Responsive: keep launcher visible on phones; hide launcher only
       when float-dispatch is hidden too (≤720 already hides .float-chat
       which doesn't exist anymore — chat takes its place) --- */
@media (max-width: 640px) {
  .chat-launcher {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 12px;
    padding: 12px 16px;
    font-size: 12px;
  }
  .chat-panel {
    left: 12px;
    right: 12px;
    bottom: 72px;
    width: auto;
  }
}
/* Avoid the chat launcher overlapping with the float-dispatch pill on
   narrow widths. The dispatch CTA is the higher-priority element for
   emergencies, so hide the chat launcher when the screen gets very tight. */
@media (max-width: 420px) {
  .chat-widget:not(.open) .chat-launcher .chat-launcher-label { display: none; }
  .chat-launcher { padding: 12px; }
}

/* ---------- Responsive ---------- */

/* Desktop-to-tablet — collapse to wide-tablet layout */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > *:nth-child(5) { grid-column: 1 / -1; }
  .big-cta { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
  /* Process — 5-col timeline keeps until 820 (the canvas is wide enough);
     below that the horizontal connector disappears and steps wrap. */
}
@media (max-width: 820px) {
  .process { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px 24px; }
  .process::before { display: none; }
}

/* Tablet — primary nav becomes mobile menu, Live Ops stacks below hero */
@media (max-width: 820px) {
  .section { padding: clamp(64px, 8vw, 120px) 0; }
  .section-head { margin-bottom: 48px; gap: 28px; }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .trust-item { padding: 14px 22px; }
  .trust-item:nth-child(3) { border-right: none; }
  .trust-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .trust-item:nth-child(n+4) { padding-top: 22px; }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-inner.mobile-open + .nav-mobile-panel { display: flex; }
  .nav-mobile-panel {
    /* display: none kept from base; activated by .mobile-open above */
    flex-direction: column;
    gap: 6px;
    padding: 14px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.96);
  }
  .nav-mobile-panel a {
    padding: 14px;
    border-radius: 6px;
    font-size: 15px;
    color: var(--ink-2);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-mobile-panel a:hover { background: rgba(255,255,255,0.04); color: var(--ink); }

  .nav-cta .nav-phone { display: none; }
}

/* Mid-mobile — stack hero stats, reduce stacked spacing */
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(2) { padding-right: 0; padding-left: 24px; }
  .hero-stat:nth-child(3) { padding-left: 0; border-right: 1px solid var(--line); padding-top: 22px; border-top: 1px solid var(--line); }
  .hero-stat:nth-child(4) { padding-left: 24px; border-right: none; padding-top: 22px; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 0; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
  .float-chat { display: none; }
}

/* Phone — single column, tightened spacing, body pad for floating CTA */
@media (max-width: 640px) {
  body { padding-bottom: 84px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; gap: 18px; }
  .section-head .lede { font-size: 16px; }
  .h-2 { font-size: clamp(26px, 7vw, 34px); }

  /* Status ticker — keep readable on phones */
  .statusbar { height: 32px; font-size: 10px; letter-spacing: 0.12em; }
  .statusbar-item { padding: 0 18px; gap: 8px; }

  /* Nav */
  .brand-word .b1 { font-size: 13px; }
  .brand-word .b2 { font-size: 9px; }
  .brand-mark, .brand-mark img { width: 34px; height: 34px; }
  .nav-cta .btn-primary { padding: 10px 14px; font-size: 13px; }
  .nav-cta .btn-primary .btn-label { display: none; }

  /* Hero */
  .hero { padding: 48px 0 64px; }
  .hero-headline { margin-top: 24px; margin-bottom: 22px; padding: 0 12px; }
  .hero-h1 { font-size: 18px; margin-top: 20px; }
  .hero-sub { margin-bottom: 28px; font-size: 15px; }
  .hero-ctas { gap: 10px; margin-bottom: 40px; width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero-ctas .btn-lg { padding: 16px 22px; font-size: 14px; }
  /* Hero stats — clean 2×2 grid on phones */
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat,
  .hero-stat:last-child,
  .hero-stat:nth-child(2),
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) {
    padding: 18px 16px;
    border-right: 1px solid var(--line);
    border-top: none;
  }
  .hero-stat:nth-child(2),
  .hero-stat:nth-child(4) { border-right: none; }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) { border-top: 1px solid var(--line); }
  .hero-stat .v { font-size: 24px; }
  .hero-stat .l { font-size: 9.5px; }

  /* Live Ops */
  .liveops-head { padding: 12px 14px; }
  .liveops-loc { padding: 10px 14px; flex-wrap: wrap; row-gap: 4px; }
  .liveops-loc .coords { margin-left: 0; width: 100%; }
  .liveops-alert { padding: 18px 14px; min-height: 0; }
  .liveops-alert .alert-headline { font-size: 16px; }
  .liveops-alert .alert-sub { font-size: 12px; }
  .liveops-metric { padding: 10px 12px; }
  .liveops-foot { padding: 12px 14px; }

  /* What we do (explainer) */
  .explainer-cell { padding: 36px 24px; gap: 14px; }
  .explainer-cell h3 { font-size: 24px; }
  .explainer-cell .ill { height: 110px; margin: 4px 0 8px; }

  /* Services */
  .services { grid-template-columns: 1fr; border-radius: 8px; }
  .service-card { padding: 28px 22px; min-height: 0; }
  .service-card .ill { width: 72px; height: 72px; margin-bottom: 8px; }
  .service-card h3 { font-size: 18px; padding-right: 32px; }

  /* Process */
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process-step h4 { font-size: 17px; }
  .process-step p { font-size: 13.5px; }
  .process-step .node { width: 64px; height: 64px; }
  .process-step .node .core svg { width: 26px; height: 26px; }

  /* Equipment */
  .equipment { grid-template-columns: 1fr; }
  .equip-card { padding: 24px 20px; min-height: 0; }
  .equip-card .equip-ill { aspect-ratio: 16 / 9; }

  /* Service areas */
  .areas-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .area-card { padding: 24px 22px; }
  .area-card h3 { font-size: 20px; }

  /* Reviews */
  .reviews-shell { padding: 18px; }
  .reviews-summary { flex-direction: column; align-items: flex-start; gap: 16px; }
  .reviews-summary-cta { width: 100%; justify-content: center; }
  .reviews-grid { grid-template-columns: 1fr; gap: 12px; }
  .review-card { padding: 20px; }
  .review-text { -webkit-line-clamp: 8; }
  .reviews-fallback { padding: 18px 20px; flex-wrap: wrap; gap: 10px; }

  /* FAQ */
  .faq-q { font-size: 17px; padding: 22px 0; gap: 16px; min-height: 56px; }
  .faq-item.open .faq-a { max-height: 600px; }
  .faq-a { font-size: 14.5px; }

  /* Big CTA */
  .big-cta { padding: 40px 24px; border-radius: 14px; }
  .big-cta h2 { font-size: clamp(28px, 7vw, 36px); margin-top: 14px; }
  .big-cta p { font-size: 16px; margin-top: 14px; }
  .big-cta .cta-actions { width: 100%; gap: 12px; }
  .big-cta .cta-actions .btn { width: 100%; }
  .big-cta-phone { font-size: 26px; margin-top: 6px; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 28px; margin-bottom: 36px; }
  .footer-emergency { padding: 18px; }
  .footer-emergency .phone { font-size: 22px; }
  .footer-bottom { padding-top: 22px; gap: 12px; }
  .footer-bottom .fine { font-size: 10px; }

  /* Floating dispatch — bigger tap, anchored bottom-right with safe area */
  .float-dispatch {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 12px;
    padding: 14px 18px;
    font-size: 13px;
    min-height: 48px;
  }
}

/* Very small phones (≤380px) — drop the phone number from the float pill to keep it compact */
@media (max-width: 380px) {
  .nav-cta { gap: 6px; }
  .nav-cta .btn-primary { padding: 10px 12px; }
  .float-dispatch .phone-label { display: none; }
  .hero-headline .line { letter-spacing: -0.045em; }
}
