/* ==========================================================================
   Shelby Plumbing Inc. — site styles
   Vibe: the van wrap. Deep navy badge, cobalt water-blue body, white condensed
   caps, the blue fish's red shirt as the emergency accent, charcoal rocker panel.
   ========================================================================== */

:root {
  /* Brand blues sampled straight from the client's logo artwork:
     #002B69 nameplate navy · #0063F1 badge blue · #04B4FD highlight · #001223 outline.
     The navy ramp is built around #002B69 so every surface is the same hue family. */
  --navy-950: #001223;   /* page floor / footer — the logo's outline navy */
  --navy-900: #04203F;   /* dark sections */
  --navy-800: #06305C;   /* raised cards on dark */
  --navy-700: #0A3C74;   /* mid sections */
  --navy-600: #0E4A8C;
  --badge: #002B69;      /* the SHELBY nameplate navy */

  --blue: #0063F1;       /* badge blue — primary CTA */
  --blue-deep: #0048B8;
  --blue-bright: #04B4FD;/* highlight blue */
  --cyan: #5FD8EE;       /* the fish */
  --red: #D9342B;        /* the fish's shirt + the pipe wrench */
  --red-deep: #A81F18;
  --gold: #F2B134;       /* tool belt / stars */
  --charcoal: #23272E;   /* rocker panel */

  --cream: #EFF5FD;
  --cream-2: #DFEAF8;
  --white: #FFFFFF;

  /* scoped tokens — re-set per section tone */
  --bg: var(--navy-900);
  --surface: var(--navy-800);
  --surface-2: #08386B;
  --text: #EAF2FB;
  --text-2: #A8C0DA;
  --line: rgba(255, 255, 255, .12);
  --accent-fg: var(--blue-bright);
  --shadow: 0 18px 44px rgba(0, 0, 0, .40);

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 76px;
  --logo-bleed: 36px;   /* how far the lockup hangs below the header */
  --logo-top: 9px;      /* breathing room above it, off the utility bar */
  --util-h: 34px;
  --bar-h: 68px;

  /* water beads lifted from the van wrap — generated by _build/make_droplets.py */
  --drops: url("../images/droplets.svg");
  --drops-size: 460px 460px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* room for the fixed action bar, which only exists on mobile */
@media (max-width: 960px) { body { padding-bottom: var(--bar-h); } }

/* height:auto is load-bearing — without it the HTML height attribute wins
   whenever CSS changes the width, and every scaled image gets squashed. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--text-2); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 300;
  background: var(--gold); color: #14120A; padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h1 em { font-style: normal; color: var(--accent-fg); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  font-size: .82rem; color: var(--accent-fg);
  display: flex; align-items: center; gap: .5em; margin: 0 0 .9em;
}
.eyebrow .ico { width: 1.05em; height: 1.05em; flex: none; }
.eyebrow.alarm { color: #FF8177; }
.center .eyebrow { justify-content: center; }
.lead { font-size: 1.12rem; color: var(--text-2); }

.sec-head { max-width: 780px; margin-bottom: 44px; }
.center .sec-head, .sec-head.center { margin-inline: auto; }

/* ---------- section tones ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; position: relative; }

.tone-dark {
  --bg: var(--navy-900); --surface: var(--navy-800); --surface-2: #0C2A4E;
  --text: #EAF2FB; --text-2: #A8C0DA; --line: rgba(255,255,255,.12);
  --accent-fg: var(--blue-bright);
  background: var(--bg); color: var(--text);
}
.tone-mid {
  --bg: var(--navy-700); --surface: #0D4886; --surface-2: #11549B;
  --text: #EFF5FC; --text-2: #B3C9E2; --line: rgba(255,255,255,.15);
  --accent-fg: var(--cyan);
  background: var(--bg); color: var(--text);
}
.tone-light {
  --bg: var(--cream); --surface: #FFFFFF; --surface-2: var(--cream-2);
  --text: #001223; --text-2: #40607F; --line: rgba(0,43,105,.16);
  --accent-fg: var(--blue-deep);
  background: var(--bg); color: var(--text);
}

.tone-mid::before, .tone-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--drops); background-size: var(--drops-size);
  opacity: .78; pointer-events: none;
}
.tone-dark::before { opacity: .58; }
.section > * { position: relative; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-line: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; font-size: 1.02rem; line-height: 1;
  padding: 15px 22px; border-radius: 10px; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-line);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .22), 0 12px 26px rgba(0, 0, 0, .28);
  transition: transform .12s ease, box-shadow .12s ease, background .16s ease;
  white-space: nowrap;
}
.btn > span { display: inline-flex; align-items: center; gap: .55em; flex-wrap: wrap; justify-content: center; }
/* A phone number must never break across lines, anywhere on the site. */
.num { white-space: nowrap; }
.btn .ico { width: 1.12em; height: 1.12em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,.22), 0 16px 32px rgba(0,0,0,.34); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,.22); }

.btn-call     { --btn-bg: var(--blue); }
.btn-call:hover { --btn-bg: #1E78FF; }
.btn-quote    { --btn-bg: var(--gold); --btn-fg: #201704; }
.btn-quote:hover { --btn-bg: #FFC24E; }
.btn-emergency{ --btn-bg: var(--red); }
.btn-emergency:hover { --btn-bg: #EC4038; }
.btn-ghost    { --btn-bg: transparent; --btn-fg: var(--text); --btn-line: var(--line); box-shadow: none; }
.btn-ghost:hover { --btn-bg: rgba(255,255,255,.08); box-shadow: none; }
.tone-light .btn-ghost { --btn-line: rgba(10,30,55,.25); }
.tone-light .btn-ghost:hover { --btn-bg: rgba(10,30,55,.06); }

.btn-lg  { font-size: 1.14rem; padding: 18px 28px; }
.btn-sm  { font-size: .92rem; padding: 11px 16px; box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.btn-block { display: flex; width: 100%; }

.cta-row, .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note {
  flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--text-2);
  font-weight: 600; letter-spacing: .01em;
}
.sec-foot { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.or-call { margin: 14px 0 0; text-align: center; font-size: .96rem; color: var(--text-2); }
.or-call a { color: var(--accent-fg); font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }
.or-call small { display: block; font-size: .8rem; opacity: .8; margin-top: 2px; }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .st { width: 17px; height: 17px; }

/* ---------- utility bar ---------- */
.utility-bar {
  background: var(--badge); color: #CFE2F7; font-size: .78rem;
  height: var(--util-h); display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.utility-bar ul {
  margin: 0; padding: 0; list-style: none; display: flex; gap: 26px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .13em;
}
.utility-bar li { white-space: nowrap; }

/* ---------- sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  height: var(--header-h);
  background: rgba(0, 24, 48, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { background: rgba(0,18,35,.98); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.site-header > .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.site-header, .site-header > .wrap { overflow: visible; }

/* The lockup is taller than the header and bleeds below it, as on the old site.
   The negative bottom margin makes its OUTER box exactly --header-h, so flex
   centring leaves it flush at the top and the artwork overhangs the bar. */
.brand {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  flex: none; position: relative; z-index: 3;
}
.brand-logo {
  height: calc(var(--header-h) + var(--logo-bleed)); width: auto;
  /* margin-top + height + margin-bottom == --header-h, so the outer box still
     matches the header row; the artwork just sits --logo-top lower and hangs
     that much further below. Keeps the logo's size rather than trimming it. */
  margin-top: var(--logo-top);
  margin-bottom: calc((var(--logo-bleed) + var(--logo-top)) * -1);
  filter: drop-shadow(0 6px 14px rgba(0, 18, 35, .55));
}
.brand-mark { display: none; }

.main-nav { margin-left: auto; }
.nav-links {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block; padding: 10px 14px; text-decoration: none;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1rem; color: #D6E6F8; border-radius: 8px;
}
.nav-links a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(59,180,242,.18); }
.nav-ctas { display: none; }

/* Services dropdown — opens on hover/focus on desktop; the chevron button opens it on
   touch and in the mobile drawer (js/main.js toggles .open). */
.nav-links .has-sub { position: relative; display: flex; align-items: center; }
.nav-links .has-sub.is-active > a { color: #fff; background: rgba(59,180,242,.18); }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 34px; margin-left: -8px; padding: 0;
  background: none; border: 0; border-radius: 6px; color: #D6E6F8; cursor: pointer;
}
.sub-toggle:hover { color: #fff; background: rgba(255,255,255,.09); }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.sub-menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120; min-width: 300px;
  background: var(--navy-900); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}
.has-sub:hover > .sub-toggle svg, .has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
.nav-links .sub-menu a {
  font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: 0;
  font-size: 1rem; padding: 9px 12px; white-space: nowrap;
}
.sub-menu .sub-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav-links .sub-menu .sub-all a { color: var(--blue-bright); }

.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-phone {
  display: flex; flex-direction: column; text-decoration: none; line-height: 1.15;
  padding: 6px 10px; border-radius: 9px;
}
.header-phone:hover { background: rgba(255,255,255,.08); }
.header-phone small {
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--blue-bright);
}
.header-phone strong {
  font-family: var(--display); font-size: 1.32rem; font-weight: 900;
  color: #fff; white-space: nowrap;
}

.header-call { display: none; }
.nav-toggle {
  display: none; background: rgba(255,255,255,.1); border: 1px solid var(--line);
  color: #fff; width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(2,10,20,.66); z-index: 110;
  backdrop-filter: blur(2px);
}

/* ---------- sticky bottom action bar (all sizes) ---------- */
/* Mobile only — on desktop the header already carries a phone button and a
   Request Estimate button, so a second fixed bar just eats screen. */
.sticky-bar { display: none; }
@media (max-width: 960px) {
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  height: var(--bar-h);
  display: flex; align-items: stretch; gap: 1px;
  background: var(--badge);
  border-top: 2px solid var(--blue-bright);
  box-shadow: 0 -10px 30px rgba(0,0,0,.42);
}
.sticky-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .6em;
  text-decoration: none; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; font-size: 1.06rem;
}
.sb-call { background: var(--blue); color: #fff; flex: 1.35; }
.sb-call:hover { background: #1683F0; }
.sb-call .ico { width: 22px; height: 22px; flex: none; }
.sb-call span { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.sb-call small { font-size: .68rem; letter-spacing: .14em; opacity: .85; }
.sb-call strong { font-size: 1.22rem; }
.sb-quote { background: var(--gold); color: #201704; }
.sb-quote:hover { background: #FFC24E; }
}   /* end mobile-only sticky bar */

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: calc(100svh - var(--header-h) - var(--util-h));
  padding: clamp(28px, 4vh, 56px) 0 clamp(36px, 5vh, 68px);
  background: var(--navy-900);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 74% 52%; opacity: .58; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* beads sit UNDER the scrim, so the scrim quiets them behind the headline and
     lets them read on the lighter right-hand side — as on the van panel */
  background:
    linear-gradient(97deg, rgba(0,18,35,.96) 0%, rgba(0,18,35,.93) 38%,
                    rgba(0,32,63,.74) 56%, rgba(0,43,105,.36) 100%),
    linear-gradient(0deg, rgba(0,18,35,.72) 0%, rgba(0,18,35,0) 36%),
    var(--drops);
  background-size: auto, auto, var(--drops-size);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.hero h1 { margin-bottom: .3em; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero-lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: #C6DBF1; max-width: 46ch; }
.hero-ctas { margin: 22px 0 10px; }
.hero-trust {
  list-style: none; margin: 20px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.hero-trust li {
  display: flex; align-items: center; gap: .45em;
  font-size: .9rem; font-weight: 600; color: #BFD6EE;
}
.hero-trust .ico { width: 17px; height: 17px; color: var(--cyan); flex: none; }

/* service-page hero: the homepage hero, with a one-line intro on phones and tablets */
.hero .lead-sm { display: none; }
.svc-page-link {
  display: inline-flex; align-items: center; gap: .3em; margin: 2px 0 18px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-fg); text-decoration: none;
}
.svc-page-link svg { width: 16px; height: 16px; }
.svc-page-link:hover { text-decoration: underline; }

/* page heroes (inner pages) */
.page-hero {
  position: relative; padding: clamp(52px, 7vw, 92px) 0 clamp(44px, 6vw, 76px);
  background: var(--navy-900); overflow: hidden;
  min-height: calc(74svh - var(--header-h));
  display: flex; align-items: center;
}
.page-hero .hero-media { position: absolute; inset: 0; }
.page-hero .hero-media img { width: 100%; height: 100%; max-height: none; object-fit: cover; opacity: .24; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,18,35,.93), rgba(0,43,105,.60)), var(--drops);
  background-size: auto, var(--drops-size); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; max-width: 860px; }
.page-hero .lead { color: #C6DBF1; }
.page-hero .hero-ctas { margin-top: 26px; }

/* ---------- lead form ---------- */
.lead-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow);
}
.hero .lead-form {
  background: rgba(10, 36, 68, .90);
  backdrop-filter: blur(10px);
  border-color: rgba(59,180,242,.32);
}
.form-head { margin-bottom: 16px; }
.form-head h2 { font-size: clamp(1.35rem, 2vw, 1.85rem); margin-bottom: .25em; }
.form-head p { font-size: .94rem; color: var(--text-2); margin: 0; }

.f-row { margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.lead-form label {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; color: var(--text-2);
}
.lead-form .opt { text-transform: none; letter-spacing: 0; opacity: .7; font-weight: 600; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email],
.lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1.5px solid var(--line);
}
.tone-light .lead-form input, .tone-light .lead-form select, .tone-light .lead-form textarea {
  background: #fff; border-color: rgba(10,30,55,.2);
}
.lead-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237FA7CC'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 22px; padding-right: 38px; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(168,192,218,.6); }
.tone-light .lead-form input::placeholder, .tone-light .lead-form textarea::placeholder { color: #8FA6BC; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--blue-bright); background: rgba(255,255,255,.1);
}
.tone-light .lead-form input:focus, .tone-light .lead-form select:focus { background: #fff; }
.lead-form .invalid { border-color: #FF6B60 !important; }
.f-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.f-consent { margin: 4px 0 14px; }
.f-consent label { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: .78rem; line-height: 1.45; color: var(--text-2); font-weight: 400; }
.f-consent input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--blue); }
.f-consent a { color: var(--accent-fg); }
.form-status { margin: 12px 0 0; font-size: .92rem; color: #FFB4AD; min-height: 0; }
.form-status:empty { margin: 0; }
.form-status a { color: inherit; font-weight: 700; }

/* ---------- stats strip ---------- */
.stats { background: var(--badge); border-block: 1px solid rgba(255,255,255,.1); }
.stats ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats li {
  padding: 22px 16px; text-align: center;
  border-left: 1px solid rgba(255,255,255,.1);
}
.stats li:first-child { border-left: 0; }
.stats strong {
  display: block; font-family: var(--display); font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: uppercase; color: #fff;
}
.stats span { font-size: .84rem; color: #A9C6E4; }

/* ---------- emergency ---------- */
.emergency .emerg {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.emergency .emerg > * { min-width: 0; }
.emerg-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.emerg-steps li { display: flex; gap: .7em; align-items: flex-start; font-size: 1.04rem; font-weight: 600; }
.emerg-steps .ico { width: 21px; height: 21px; color: var(--cyan); flex: none; margin-top: 3px; }
.emerg-note { font-size: .9rem; color: var(--text-2); }
.emerg-cta {
  background: rgba(217,52,43,.12); border: 1.5px solid rgba(255,129,119,.4);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.emerg-lead { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; margin-bottom: 14px; }
.emerg-cta .btn { width: 100%; }
.emerg-cta .cta-note { margin-top: 10px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.svc-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--accent-fg); box-shadow: var(--shadow); }
.svc-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-700); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-code {
  font-family: var(--display); font-weight: 800; letter-spacing: .18em;
  font-size: .72rem; color: var(--accent-fg);
}
.svc-body strong {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1.32rem; line-height: 1.08;
}
.svc-blurb { font-size: .93rem; color: var(--text-2); flex: 1; }
.svc-more {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; font-size: .88rem; color: var(--accent-fg);
}
.svc-more svg { width: 15px; height: 15px; }

/* service detail blocks */
.svc-detail {
  display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.svc-detail-sec:nth-of-type(even) .svc-detail { direction: rtl; }
.svc-detail-sec:nth-of-type(even) .svc-detail > * { direction: ltr; }
.svc-detail-art { position: relative; }
.svc-detail-art img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  width: 100%; height: auto;
  max-height: 560px; object-fit: cover;   /* tall portraits get cropped, not squashed */
}
.svc-detail-code {
  position: absolute; top: 14px; left: 14px;
  background: var(--badge); color: #fff; padding: 6px 12px; border-radius: 8px;
  font-family: var(--display); font-weight: 800; letter-spacing: .16em; font-size: .78rem;
}
.svc-facts { margin: 20px 0 24px; display: grid; gap: 14px; }
.svc-facts > div { border-left: 3px solid var(--line); padding-left: 16px; }
.svc-facts .tellyou { border-left-color: var(--accent-fg); }
.svc-facts dt {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; color: var(--accent-fg); margin-bottom: 3px;
}
.svc-facts dd { margin: 0; font-size: .98rem; color: var(--text-2); }

/* ---------- why / promises ---------- */
.why-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
.why-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
}
.why-ico {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(140deg, var(--blue), var(--blue-bright));
  color: #fff; margin-bottom: 14px;
}
.why-ico .ico { width: 26px; height: 26px; }
.why-card strong {
  display: block; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; font-size: 1.24rem; margin-bottom: 6px;
}
.why-card p { font-size: .95rem; color: var(--text-2); margin: 0; }
.why-foot { margin-top: 36px; }
.why-foot p { font-weight: 600; margin-bottom: 14px; }

.promises { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.promises li { display: flex; gap: .65em; align-items: flex-start; font-weight: 600; }
.promises .ico { width: 20px; height: 20px; color: var(--cyan); flex: none; margin-top: 3px; }

/* ---------- process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden;
}
.step::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.step-n {
  display: block; font-family: var(--display); font-weight: 900;
  font-size: 2.6rem; line-height: 1; color: rgba(255,255,255,.14); margin-bottom: 4px;
}
.tone-light .step-n { color: rgba(10,30,55,.14); }
.step-tag {
  display: inline-block; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  color: var(--accent-fg); margin-bottom: 8px;
}
.step strong {
  display: block; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; font-size: 1.2rem; line-height: 1.1; margin-bottom: 8px;
}
.step p { font-size: .94rem; color: var(--text-2); margin: 0; }
.steps-foot { margin-top: 34px; }
.steps-foot p { font-weight: 600; margin-bottom: 14px; max-width: 62ch; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.about-art { position: relative; }
.about-art > img:first-child {
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  width: 100%; height: auto; max-height: 520px; object-fit: cover;
}
.about-badge {
  position: absolute; right: -14px; bottom: -22px; width: clamp(84px, 11vw, 130px); height: auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}
.about-copy .cta-row { margin-top: 24px; }

.mission { font-size: 1.1rem; color: var(--text-2); }
.sig {
  font-family: var(--display); font-weight: 800; letter-spacing: .18em;
  font-size: .82rem; color: var(--accent-fg); margin-top: 22px;
}
.mission-sec .sec-foot, .center .sec-foot { justify-content: center; }
.center .cta-row { justify-content: center; }
.center .cta-note { text-align: center; }

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.proof {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;      /* caption sits under the image */
}
/* fixed 4:5 window so the three shots line up; cover crops, it never squashes */
.proof img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center;
}
.proof figcaption { padding: 14px 18px 18px; font-size: .92rem; color: var(--text-2); flex: 1; }
.proof .tag {
  display: inline-block; margin-right: .5em; padding: 3px 9px; border-radius: 6px;
  background: rgba(255,255,255,.12); color: var(--text);
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; font-size: .7rem;
}
.proof .tag.after { background: var(--blue); color: #fff; }

/* ---------- reviews ---------- */
/* Elfsight Google reviews widget — min-height holds the space while it lazy-loads */
.reviews-widget { min-height: 320px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.review {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; position: relative;
}
.qmark { width: 34px; height: 34px; color: var(--accent-fg); opacity: .32; margin-bottom: 6px; }
.review blockquote { margin: 12px 0 16px; }
.review blockquote p { font-size: .98rem; color: var(--text-2); margin: 0; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.review figcaption strong { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.06rem; }
.review figcaption small { font-size: .8rem; color: var(--text-2); }

/* ---------- service area ---------- */
.area-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.area-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-chips li {
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .94rem;
}
.area-chips .ico { width: 16px; height: 16px; color: var(--accent-fg); }
.area-chips li.wide { background: var(--blue); border-color: var(--blue); color: #fff; }
.area-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.area-map iframe { display: block; width: 100%; height: clamp(280px, 40vw, 420px); border: 0; filter: saturate(.9); }

/* ---------- claims ---------- */
.claims { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.claims-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; }
.claims-list li { display: flex; gap: .7em; align-items: flex-start; }
.claims-list .ico { width: 22px; height: 22px; color: var(--accent-fg); flex: none; margin-top: 2px; }
.claims-copy .cta-row { margin-top: 24px; }
.claims-art img { width: min(100%, 300px); margin-inline: auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,.4)); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; position: relative;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.1rem; line-height: 1.22;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 13px; height: 13px;
  border-right: 2.5px solid var(--accent-fg); border-bottom: 2.5px solid var(--accent-fg);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { background: rgba(255,255,255,.05); }
.tone-light .faq summary:hover { background: rgba(10,30,55,.04); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { font-size: .98rem; color: var(--text-2); margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.contact-direct { margin-top: 26px; }
.contact-email { margin-top: 14px; display: flex; align-items: center; gap: .5em; font-size: .96rem; }
.contact-email .ico { width: 19px; height: 19px; color: var(--accent-fg); }
.contact-email a { color: var(--accent-fg); }

.urgency { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.urg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.urg-now { border-color: rgba(255,129,119,.42); background: rgba(217,52,43,.12); }
.urg-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.urg-card p { font-size: .98rem; color: var(--text-2); }
.urg-card .btn { margin-top: 6px; }

.contact-details { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: .8em; align-items: flex-start; }
.contact-list .ico { width: 20px; height: 20px; color: var(--accent-fg); flex: none; margin-top: 4px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; font-size: .85rem; color: var(--text-2); }
.contact-list.big span { display: flex; flex-direction: column; }
.contact-list.big strong {
  font-family: var(--display); font-size: 1.3rem; font-weight: 800; white-space: nowrap;
}
.hours { margin: 0; display: grid; gap: 12px; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--accent-fg); }

/* ---------- thank-you / 404 ---------- */
.ty { min-height: calc(76svh - var(--header-h)); display: flex; align-items: center; }
.ty-mascot { width: min(210px, 46vw); margin: 0 auto 22px; filter: drop-shadow(0 14px 28px rgba(0,0,0,.45)); }
.ty .hero-ctas { justify-content: center; margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.12); padding-top: 56px; }
.footer-top {
  display: grid; grid-template-columns: 1.15fr .8fr .95fr 1.1fr; gap: 36px;
  padding-bottom: 40px;
}
.footer-brand img { width: 130px; margin-bottom: 16px; }
.footer-brand p { font-size: .93rem; color: #92AAC4; }
.footer-brand .lic { font-family: var(--display); font-weight: 700; letter-spacing: .1em; font-size: .8rem; color: var(--blue-bright); text-transform: uppercase; }
.footer-col h3 {
  font-size: 1.06rem; letter-spacing: .12em; color: #fff; margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer-col ul.cols { grid-template-columns: 1fr 1fr; }
.footer-col a { color: #A9C1D9; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .muted { font-size: .85rem; color: #7E97B2; }
.footer-col .contact-list { gap: 12px; margin-bottom: 18px; }
.footer-col .contact-list strong {
  font-family: var(--display); font-size: 1.2rem; color: #fff;
  white-space: nowrap;   /* a phone number must never break across lines */
}
.footer-col .contact-list li { flex-wrap: wrap; }
.footer-col .contact-list small { flex-basis: 100%; }
.footer-col .contact-list small { color: #86A0BB; }
.footer-links { display: flex !important; flex-wrap: wrap; gap: 6px 16px !important; font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 26px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .85rem; color: #7E97B2;
}
.footer-bottom a { color: #A9C1D9; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero { min-height: 0; padding-block: 40px 52px; }
  .hero-form { max-width: 560px; }
  .svc-hero .lead-lg { display: none; }
  .svc-hero .lead-sm { display: block; }
  /* 961–1080px: the desktop header row is tight — tighten the nav so the
     Request Estimate button never pushes past the viewport */
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px 9px; letter-spacing: .05em; }
  .sub-toggle { width: 22px; margin-left: -6px; }
  .header-cta { gap: 6px; }
  .contact-grid, .about-grid, .claims, .emergency .emerg, .svc-detail,
  .area-wrap, .contact-details { grid-template-columns: 1fr; }
  .svc-detail-sec:nth-of-type(even) .svc-detail { direction: ltr; }
  .about-badge { width: 84px; right: 6px; bottom: -16px; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  /* backdrop-filter makes the header a containing block for position:fixed, which
     would trap the drawer inside the header box — so the mobile header is solid. */
  .site-header { background: #04203F; backdrop-filter: none; }
  .site-header.scrolled { background: #001223; }
  .nav-toggle { display: inline-flex; }
  /* the full lockup stays on mobile — the wordmark is the recognisable part.
     Width for it is reclaimed from the row gap, the phone button and the toggle.
     Sizing stays height-driven with width:auto, so it can never distort. */
  .site-header > .wrap { gap: 10px; }
  .brand-mark { display: none; }
  .header-cta { display: none; }
  .header-call {
    display: inline-flex; align-items: center; gap: .4em;
    background: var(--blue); color: #fff; text-decoration: none;
    padding: 10px 12px; border-radius: 10px; margin-left: auto;
    font-family: var(--display); font-weight: 800; font-size: .98rem;
    letter-spacing: .01em; white-space: nowrap; flex: none;
  }
  .header-call .ico { width: 17px; height: 17px; flex: none; }

  /* Closed drawer is display:none, not just translated off-screen: it is
     position:fixed, so body overflow-x cannot clip it and an off-screen
     transform would widen the document. js/main.js mounts it, then opens it
     on the next frame so the slide-in still animates. */
  .main-nav {
    display: none;
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 115;
    background: var(--navy-900);          /* solid: a blurred parent would clip it */
    border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + 22px) 22px 100px;
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto; margin-left: 0;
  }
  .main-nav.mounted { display: block; }
  .main-nav.open { transform: none; }
  .nav-links { flex-direction: column; gap: 2px; }
  .nav-links a { padding: 13px 14px; font-size: 1.16rem; }
  .nav-links .has-sub { flex-wrap: wrap; }
  .nav-links .has-sub > a { flex: 1; }
  .sub-toggle { width: 48px; height: 48px; margin-left: 4px; background: rgba(255,255,255,.06); }
  .sub-menu, .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu {
    position: static; display: none; width: 100%; min-width: 0;
    padding: 2px 0 8px 14px; border: 0; border-radius: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .sub-menu::before { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .has-sub:hover > .sub-toggle svg { transform: none; }
  .has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
  .nav-links .sub-menu a { font-size: 1.04rem; padding: 10px 12px; white-space: normal; color: #C6DBF1; }
  .nav-ctas { display: grid; gap: 10px; margin-top: 22px; }
  .nav-ctas p { margin: 0; font-size: .84rem; color: var(--text-2); text-align: center; }
  .urgency { grid-template-columns: 1fr; }
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .stats li:nth-child(odd) { border-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .utility-bar ul { gap: 18px; }
  .utility-bar li:nth-child(n+3) { display: none; }
  .hero-ctas .btn, .cta-row .btn, .sec-foot .btn { flex: 1 1 100%; }
  .f-grid { grid-template-columns: 1fr; }
  .proof img { aspect-ratio: 1 / 1; }
}

@media (max-width: 560px) {
  :root { --bar-h: 62px; --logo-bleed: 14px; --logo-top: 7px; }
  .btn { white-space: normal; }   /* the label may wrap; .num keeps the number whole */
  .utility-bar li:nth-child(n+2) { display: none; }
  /* the number is what Google/GHL swap and what must stay visible — the glyph is not */
  .header-call .ico { display: none; }
  .header-call { padding: 9px 11px; font-size: .92rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .sb-call strong { font-size: 1.08rem; }
  .sb-quote { font-size: .94rem; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  :root { --logo-bleed: 10px; --logo-top: 6px; }
  .site-header > .wrap { gap: 8px; }
  .header-call { padding: 8px 9px; font-size: .86rem; }
  .nav-toggle { width: 38px; height: 38px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 20px); }
  .header-call { padding: 7px 8px; font-size: .8rem; }
  .nav-toggle { width: 36px; height: 36px; }
  /* On the narrowest phones drive the lockup by WIDTH (height:auto keeps the
     ratio) and drop the bleed — fitting the wordmark matters more than the
     overhang once the row gets this tight. */
  .brand-logo {
    width: 150px; height: auto;
    margin-top: var(--logo-top); margin-bottom: calc(var(--logo-top) * -1);
  }
}

/* short desktop screens — keep the hero above the fold */
@media (min-width: 1081px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(2.2rem, 4.6vh, 3.4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-trust { margin-top: 14px; gap: 6px 18px; }
  .hero .lead-form { padding: 18px; }
  .hero .form-head { margin-bottom: 12px; }
  .hero .f-row { margin-bottom: 9px; }
  .hero .lead-form input, .hero .lead-form select { padding: 10px 13px; }
  .hero .f-consent { margin: 2px 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .utility-bar, .sticky-bar, .nav-backdrop { display: none !important; }
  body { padding-bottom: 0; background: #fff; color: #000; }
}

/* ---------- legal pages ---------- */
.legal-hero { padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 48px); }
.legal-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-top: 2em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); }
.prose a { color: var(--accent-fg); font-weight: 600; }
