/* ============================================
   EMERGENCY SEPTIC & SEWER — Shared Stylesheet
   Palette: brand red, navy, white — clean, trust-first
   ============================================ */

:root {
  --brand-red: #C8102E;
  --brand-red-dark: #9E0B23;
  --brand-navy: #0B2545;
  --brand-navy-deep: #061731;
  --brand-blue: #1B3A6B;
  --accent-gold: #D4A017;
  --ink: #1A1F2E;
  --ink-soft: #4A5168;
  --ink-mute: #8089A0;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --bg-mid: #EAEEF6;
  --line: #D9DEEA;
  --line-soft: #E8ECF3;
  --shadow-sm: 0 1px 2px rgba(11,37,69,.06), 0 1px 3px rgba(11,37,69,.04);
  --shadow-md: 0 4px 12px rgba(11,37,69,.08), 0 2px 4px rgba(11,37,69,.04);
  --shadow-lg: 0 12px 32px rgba(11,37,69,.12), 0 4px 8px rgba(11,37,69,.06);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-red); }
button { font-family: inherit; cursor: pointer; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-navy-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-red); font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.lead { font-size: 1.125rem; color: var(--ink-soft); line-height: 1.7; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 1rem;
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
section.compact { padding: 3.5rem 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--brand-navy-deep); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,.78); }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--brand-navy-deep);
  color: #fff;
  font-size: .85rem;
  padding: .5rem 0;
  border-bottom: 2px solid var(--brand-red);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-left { color: rgba(255,255,255,.85); }
.topbar-left strong { color: #fff; font-weight: 600; }
.topbar-right a {
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.topbar-right a:hover { color: var(--brand-red); }
.topbar-after-hours {
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  font-weight: 400;
}
.topbar-after-hours a {
  color: rgba(255,255,255,.88);
  font-weight: 500;
  margin-left: .3rem;
}
.topbar-after-hours a:hover { color: #fff; }

/* ---------- HEADER ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  text-decoration: none;
}
.logo-mark {
  width: 44px;
  height: 50px;
  background: linear-gradient(155deg, var(--brand-navy) 0%, var(--brand-navy) 50%, var(--brand-red) 50%, var(--brand-red) 100%);
  clip-path: polygon(50% 0%, 100% 18%, 100% 70%, 50% 100%, 0 70%, 0 18%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .02em;
}
.logo-mark-img {
  /* Real logo image — used in place of the CSS shield */
  height: 50px;
  width: auto;
  display: block;
  max-width: 60px;
  object-fit: contain;
}
/* Footer renders logo on dark navy — invert/brighten for contrast */
.footer-brand .logo-mark-img {
  filter: brightness(0) invert(1) opacity(.9);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-text strong {
  color: var(--brand-navy-deep);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.logo-text span {
  color: var(--brand-red);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: .25rem 0;
}
.nav a:hover, .nav a.active {
  color: var(--brand-red);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.4rem;
  height: 2px;
  background: var(--brand-red);
}
.nav-dropdown { position: relative; }
.nav-dropdown > a::after {
  content: "▾";
  margin-left: .25rem;
  font-size: .7em;
  opacity: .6;
}
/* Show dropdown on hover, focus-within (keyboard tab), and .open class (click/touch).
   Uses visibility+opacity so the menu remains in the document flow during
   hover transit, eliminating the dead-zone gap that closes menus prematurely.
   Transition delay on close gives a small grace period for cursor slips. */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear 0s;
}
.dropdown-menu {
  /* Stays in DOM but invisible; pointer-events: none prevents accidental capture */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .25s;

  position: absolute;
  top: 100%; left: -1rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--brand-red);
  box-shadow: var(--shadow-lg);
  min-width: 260px;
  padding: .5rem 0;
  border-radius: 0 0 var(--radius) var(--radius);
  /* No margin-top — the gap is created with padding-top on a pseudo-element instead
     so the cursor stays inside the hover-active area while transiting. */
  margin-top: 0;
}
/* Right-aligned variant — for dropdowns that sit on the right side of the
   nav. Anchors to the right edge of the trigger so the menu grows leftward
   and doesn't run off the viewport. */
.dropdown-menu.align-right {
  left: auto;
  right: -1rem;
}
.dropdown-menu::before {
  /* Invisible hover bridge between trigger and menu — keeps :hover active while
     the cursor moves vertically from the trigger link down into the menu. */
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.dropdown-menu a {
  display: block;
  padding: .65rem 1.25rem;
  font-size: .9rem;
  border-left: 3px solid transparent;
  color: var(--ink);
}
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--bg-soft);
  border-left-color: var(--brand-red);
  color: var(--brand-red);
  outline: none;
}

/* Two-column variant for the Locations mega-menu */
.dropdown-menu.dropdown-two-col {
  min-width: 460px;
  padding: .75rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .5rem;
}
.dropdown-menu.dropdown-two-col .dropdown-section {
  padding: 0 .5rem;
}
.dropdown-menu.dropdown-two-col .dropdown-section-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-red);
  padding: .4rem 1rem .35rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: .25rem;
}
.dropdown-menu.dropdown-two-col a {
  padding: .45rem 1rem;
  font-size: .87rem;
}
.dropdown-menu.dropdown-two-col .dropdown-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  margin-top: .35rem;
  padding-top: .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .25rem;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
}
.dropdown-menu.dropdown-two-col .dropdown-footer a {
  display: inline-flex;
  padding: .35rem .5rem;
  font-weight: 600;
  color: var(--brand-red);
  border-left: 0;
  font-size: .82rem;
}
.dropdown-menu.dropdown-two-col .dropdown-footer a:hover {
  border-left: 0;
  background: transparent;
  color: var(--brand-red-dark);
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .5rem .65rem;
  color: var(--brand-navy-deep);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  transition: all .18s ease;
  letter-spacing: .01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 2px 0 var(--brand-red-dark);
}
.btn-primary:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--brand-red-dark), 0 8px 16px rgba(200,16,46,.25);
}
.btn-secondary {
  background: #fff;
  color: var(--brand-navy-deep);
  border-color: var(--brand-navy-deep);
}
.btn-secondary:hover {
  background: var(--brand-navy-deep);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--brand-navy-deep);
  border-color: #fff;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.02rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--brand-navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: .55;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, var(--brand-navy-deep) 0%, var(--brand-navy-deep) 25%, rgba(11,37,69,.88) 45%, rgba(11,37,69,.45) 75%, rgba(11,37,69,.2) 100%);
}
.hero-inner {
  position: relative;
  padding: 5.5rem 0 5.5rem;
  z-index: 2;
}
.hero-content {
  max-width: 680px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--brand-red); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 2rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.hero-badges span::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--brand-red);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 50%;
}

/* ---------- EMERGENCY BAR ---------- */
.emergency-bar {
  background: var(--brand-red);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  font-weight: 600;
}
.emergency-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.emergency-bar a:hover { color: #fff; opacity: .85; }

/* ---------- SERVICES GRID ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.services-group-head {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand-navy-deep);
  margin: 0 0 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.services-group-head::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--brand-red);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--brand-red);
  font-size: 1.5rem;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: .65rem;
}
.service-card p {
  font-size: .95rem;
  margin-bottom: 1.25rem;
}
.service-card .link {
  font-weight: 600;
  color: var(--brand-red);
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.service-card .link::after {
  content: "→";
  transition: transform .18s ease;
}
.service-card:hover .link::after { transform: translateX(3px); }

/* ---------- INSPECTION SPOTLIGHT (Real estate callout) ---------- */
.spotlight {
  background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,16,46,.18) 0%, transparent 70%);
  pointer-events: none;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.spotlight h2 { color: #fff; }
.spotlight p { color: rgba(255,255,255,.82); }
.spotlight .eyebrow { color: var(--brand-red); }
.spotlight-bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.spotlight-bullets li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255,255,255,.92);
  font-size: .95rem;
}
.spotlight-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: 700;
}
.spotlight-report-mock {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  position: relative;
}
.spotlight-report-mock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: #fff;
  transform: rotate(-3deg);
  z-index: -1;
  border: 1px solid var(--line);
}
.report-mock-header {
  border-bottom: 2px solid var(--brand-red);
  padding-bottom: .75rem;
  margin-bottom: 1rem;
}
.report-mock-header .eyebrow { font-size: .65rem; margin: 0; }
.report-mock-header strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--brand-navy-deep); }
.report-mock-row {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  font-size: .8rem;
  border-bottom: 1px dotted var(--line);
}
.report-mock-row span:first-child { color: var(--ink-mute); }
.report-mock-row .pass { color: #1B8C4E; font-weight: 700; }
.report-mock-row .fail { color: var(--brand-red); font-weight: 700; }

/* ---------- WHY CHOOSE ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.why-item {
  text-align: center;
  padding: 1rem;
}
.why-item .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: .35rem;
}
.why-item h4 {
  color: var(--brand-navy-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: .5rem;
}
.why-item p { font-size: .92rem; margin: 0; }

/* ---------- PROCESS STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  counter-increment: step;
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-red);
  display: block;
  margin-bottom: .5rem;
  line-height: 1;
}
.step h4 {
  color: var(--brand-navy-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: .5rem;
}
.step p { font-size: .92rem; margin: 0; }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: .75rem; }
.cta-strip p { color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto 1.75rem; font-size: 1.05rem; }
.cta-strip .btn-primary {
  background: #fff;
  color: var(--brand-red);
  border-color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.15);
}
.cta-strip .btn-primary:hover {
  background: var(--brand-navy-deep);
  color: #fff;
  border-color: var(--brand-navy-deep);
}

/* ---------- SERVICE PAGE LAYOUT ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy) 100%);
  color: #fff;
  padding: 4rem 0;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 680px; }
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }

.page-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}
.content h2 { margin-top: 2.5rem; }
.content h2:first-child { margin-top: 0; }
.content ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}
.content li {
  margin-bottom: .5rem;
  color: var(--ink-soft);
}
.content li::marker { color: var(--brand-red); }

.sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h3 {
  font-family: var(--font-display);
  color: var(--brand-navy-deep);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--brand-red);
}
.sidebar-card.dark {
  background: var(--brand-navy-deep);
  color: #fff;
  border-color: var(--brand-navy-deep);
}
.sidebar-card.dark h3 { color: #fff; }
.sidebar-card.dark p { color: rgba(255,255,255,.82); font-size: .92rem; }
.sidebar-phone {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: .5rem 0 1rem;
  text-decoration: none;
}
.sidebar-phone:hover { color: #fff; opacity: .9; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid var(--line-soft); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a {
  display: block;
  padding: .65rem 0;
  font-size: .92rem;
  color: var(--ink);
  position: relative;
  padding-left: 1rem;
}
.sidebar-list a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: 700;
}
.sidebar-list a:hover { color: var(--brand-red); }

/* ---------- INSPECTION PAGE SPECIFIC ---------- */
.inspection-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--brand-red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
}
.feature-card h4 {
  color: var(--brand-navy-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: .5rem;
}
.feature-card p { margin: 0; font-size: .92rem; }

.checklist-preview {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.checklist-preview h3 {
  font-family: var(--font-display);
  color: var(--brand-navy-deep);
  margin-bottom: 1rem;
}
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .5rem 1.5rem;
}
.checklist-grid li {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  font-size: .92rem;
  color: var(--ink-soft);
  padding-top: .3rem;
  padding-bottom: .3rem;
}
.checklist-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .3rem;
  color: var(--brand-red);
  font-weight: 700;
}

/* ---------- CONTACT FORM ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-navy-deep);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.form-field label .req { color: var(--brand-red); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.15);
}
.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--brand-navy-deep);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--brand-red); }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.65); margin: 1rem 0; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
}
.inspector-link {
  /* Subtle text link to the internal inspection tool. Findable for staff,
     not flashy enough to distract regular site visitors. */
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.25);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.inspector-link:hover {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

/* Social icon row in the footer brand block */
.social-row {
  display: flex;
  gap: .5rem;
  margin-top: .25rem;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  transition: background .15s ease, transform .15s ease, color .15s ease;
}
.social-row a:hover {
  background: var(--brand-red);
  color: #fff;
  transform: translateY(-1px);
}
.social-row a svg { display: block; }

/* Compact reviews badge in footer brand column */
.footer-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .5rem .75rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  transition: background .15s ease, border-color .15s ease;
  max-width: max-content;
}
.footer-reviews-badge:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.footer-reviews-badge .stars {
  color: #F5A623;
  letter-spacing: -1px;
  font-size: .95rem;
}
.footer-reviews-badge .footer-reviews-text strong { color: #fff; font-weight: 700; }
.footer-reviews-badge .footer-reviews-text {
  color: rgba(255,255,255,.7);
}

/* ============================================
   WORK GALLERY & INLINE SERVICE PHOTOS
   ============================================ */
.work-gallery {
  background: var(--bg-soft);
  padding: 4rem 0;
}
.work-gallery .section-head { margin-bottom: 2rem; }
.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
@media (max-width: 900px) {
  .work-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .work-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}
.work-gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  background: var(--line-soft);
}
.work-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.work-gallery-item:hover img { transform: scale(1.04); }
.work-gallery-caption {
  font-size: .82rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 1.25rem;
  font-style: italic;
}

/* Inline service photos */
.service-photo {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11,37,69,.1);
}
.service-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.service-photo figcaption {
  background: var(--brand-navy-deep);
  color: rgba(255,255,255,.85);
  padding: .6rem 1rem;
  font-size: .85rem;
  font-style: italic;
}
.service-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 700px) {
  .service-photo-pair { grid-template-columns: 1fr; }
}
.service-photo-pair figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11,37,69,.1);
}
.service-photo-pair img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.service-photo-pair figcaption {
  background: var(--brand-navy-deep);
  color: rgba(255,255,255,.85);
  padding: .55rem .85rem;
  font-size: .82rem;
}
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.95);
  color: var(--brand-navy-deep);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(11,37,69,.12);
  border: 1px solid rgba(255,255,255,.5);
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.reviews-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11,37,69,.18);
}
.reviews-badge .stars {
  color: #F5A623;
  letter-spacing: -1px;
  font-size: .95rem;
  line-height: 1;
}
.reviews-badge .count {
  color: var(--ink-soft);
  font-weight: 500;
}
.reviews-badge .google {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .75rem;
  padding-left: .5rem;
  margin-left: .25rem;
  border-left: 1px solid var(--line);
}

/* Dark-bg variant (for hero / navy sections) */
.reviews-badge.on-dark {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.reviews-badge.on-dark .count { color: rgba(255,255,255,.85); }
.reviews-badge.on-dark .google {
  color: rgba(255,255,255,.7);
  border-left-color: rgba(255,255,255,.25);
}

/* Inline stars-only mini (for service-page top corner, etc.) */
.reviews-mini {
  font-size: .82rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.reviews-mini .stars { color: #F5A623; letter-spacing: -1px; }
.reviews-mini a { color: var(--brand-red); font-weight: 600; }

/* Full review section (homepage) */
.reviews-section {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 3rem 0;
}
.reviews-section-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 760px) {
  .reviews-section-inner { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
}
.reviews-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--brand-navy-deep);
  margin: 0;
  line-height: 1;
}
.reviews-headline .stars {
  color: #F5A623;
  font-size: 1.6rem;
  display: block;
  letter-spacing: 2px;
  margin-bottom: .35rem;
}
.reviews-headline .review-num { display: block; font-size: 1rem; color: var(--ink-soft); font-weight: 400; font-family: var(--font-body); margin-top: .35rem;}
.reviews-copy { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }
.reviews-copy strong { color: var(--brand-navy-deep); }
.reviews-google-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
  font-size: .92rem;
}
.reviews-google-link:hover { text-decoration: underline; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: .85rem 1.5rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-dropdown > a::after { display: none; }
  .dropdown-menu {
    /* On mobile, dropdowns sit inline inside the open hamburger menu */
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    position: static;
    box-shadow: none;
    border: 0;
    border-top: 0;
    padding: 0;
    margin: 0;
    background: var(--bg-soft);
    min-width: 0;
  }
  .dropdown-menu::before { display: none; }
  /* Two-column dropdown collapses to single column on mobile */
  .dropdown-menu.dropdown-two-col {
    display: block;
    min-width: 0;
  }
  .dropdown-menu.dropdown-two-col .dropdown-section-title {
    padding: .65rem 1.5rem .35rem;
    background: var(--bg-mid);
  }
  .dropdown-menu.dropdown-two-col a {
    padding: .65rem 2rem;
  }
  .site-header { position: relative; }
  .site-header .container { position: relative; }

  .spotlight { padding: 2rem; }
  .spotlight-grid { grid-template-columns: 1fr; gap: 2rem; }
  .spotlight-bullets { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .topbar .container { flex-direction: column; gap: .4rem; text-align: center; }
  .topbar-after-hours { display: none; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .hero-inner { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; flex: 1; min-width: 140px; }
}

/* ============================================
   TEAM BAND (inspection page) — reusable
   ============================================ */
.team-band { padding: 0; background: var(--bg-soft); }
.team-band-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 360px;
}
.team-band-img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
  max-height: 360px;
}
.team-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,37,69,.82) 0%, rgba(11,37,69,.55) 40%, rgba(11,37,69,.2) 75%, transparent 100%);
  display: flex;
  align-items: center;
}
.team-band-text { max-width: 480px; color: #fff; }

/* At narrower viewports the gradient runs out of room and image bleeds into text.
   Make the overlay closer to a uniform scrim so text remains legible. */
@media (max-width: 800px) {
  .team-band-overlay {
    background: linear-gradient(90deg, rgba(11,37,69,.88) 0%, rgba(11,37,69,.78) 60%, rgba(11,37,69,.55) 100%);
  }
}
@media (max-width: 600px) {
  .team-band-inner { max-height: 280px; }
  .team-band-img { max-height: 280px; object-position: center 40%; }
  .team-band-overlay {
    background: linear-gradient(90deg, rgba(11,37,69,.92) 0%, rgba(11,37,69,.85) 100%);
  }
  .team-band-text { max-width: 100%; }
  .team-band-text p { font-size: .9rem !important; }
}

/* ============================================
   MOBILE EXPERIENCE IMPROVEMENTS
   ============================================ */
@media (max-width: 700px) {
  /* Topbar — collapse "Licensed · Insured · Bonded" since they appear in footer.
     Also tighten vertical space taken by the topbar. */
  .topbar { padding: .4rem 0; font-size: .78rem; }
  .topbar-left {
    /* Show only "24/7 Emergency Response" — hide the licensed/insured/bonded text */
    font-size: .75rem;
  }
  .topbar-left br { display: none; }
  /* Keep phone visible & tappable */
  .topbar-right a { font-size: .92rem; padding: .2rem 0; }

  /* CTA buttons — give them more breathing room and prevent overflow */
  .hero-actions { gap: .6rem; }
  .hero-actions .btn {
    padding: .85rem .9rem !important;
    font-size: .9rem !important;
    min-width: 0;
    flex: 1 1 calc(50% - .3rem);
  }
  .hero-actions .btn-lg { padding: .9rem 1rem !important; }

  /* Hero headline — shrink for mobile */
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .hero p { font-size: 1.02rem; }
  .hero .eyebrow { font-size: .7rem; }

  /* Hero badges — make them wrap cleanly with smaller text */
  .hero-badges {
    gap: .7rem 1rem;
    font-size: .82rem;
    padding-top: 1.2rem;
  }
  .hero-badges span::before {
    width: 18px; height: 18px;
    font-size: .7rem;
  }

  /* Emergency bar — tighter padding, smaller text on mobile */
  .emergency-bar { padding: .85rem .5rem; font-size: .92rem; line-height: 1.45; }

  /* Page hero — tighter padding, smaller H1 */
  .page-hero { padding: 2.5rem 0; }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: .5rem; }
  .page-hero p { font-size: 1rem; }
  .breadcrumb { font-size: .8rem; margin-bottom: .75rem; }

  /* Service grid heading — tighter on mobile */
  .services-group-head {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
  }

  /* Service cards — slight tightening, no animation transforms which can feel janky */
  .service-card { padding: 1.5rem 1.25rem; }
  .service-card:hover { transform: none; }
  .service-card h3 { font-size: 1.1rem; }
  .service-card p { font-size: .92rem; }

  /* Section heads */
  .section-head { margin-bottom: 2rem; }

  /* Spotlight (real estate inspection callout on homepage) — collapse on mobile */
  .spotlight { padding: 1.5rem; border-radius: 10px; }
  .spotlight-report-mock { transform: none; padding: 1.25rem; }
  .spotlight-report-mock::before { display: none; }

  /* Why-choose grid */
  .why-item .num { font-size: 2rem; }

  /* Footer — improve compact display */
  .site-footer { padding: 2.5rem 0 1rem; font-size: .88rem; }
  .footer-col h4 { font-size: .78rem; margin-bottom: .9rem; }
  .footer-brand p, .footer-brand address { font-size: .85rem; }
  .footer-bottom { font-size: .76rem; flex-direction: column; align-items: flex-start; }

  /* Sidebar cards — when stacked vertically on mobile, less giant */
  .sidebar-card { padding: 1.25rem; }
  .sidebar-phone { font-size: 1.5rem; }

  /* Form fields stack cleanly */
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 1rem; /* prevents iOS zoom on focus */ }

  /* CTA strip — tighter */
  .cta-strip { padding: 2.5rem 0; }
  .cta-strip h2 { font-size: 1.5rem; }
  .cta-strip p { font-size: .98rem; }

  /* Container padding — tighter side margins on small screens */
  .container { padding: 0 1.1rem; }

  /* Header logo — let it shrink to fit alongside the menu button */
  .logo-text strong { font-size: 1rem; line-height: 1.15; }
  .logo-text span { font-size: .65rem; }
  .logo-mark { width: 38px; height: 44px; font-size: .75rem; }
  .logo-mark-img { height: 42px; max-width: 50px; }
  .site-header .container { gap: .5rem; padding-top: .75rem; padding-bottom: .75rem; }

  /* Dropdown sub-section labels — make them stand out as headers, not pill-look */
  .dropdown-menu.dropdown-two-col .dropdown-section-title {
    background: var(--brand-navy-deep);
    color: #fff;
    padding: .55rem 1.1rem;
  }

  /* Tap-target audit — anything that needs to be tappable should be ≥44px high */
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .dropdown-menu.dropdown-two-col a { min-height: 44px; display: flex; align-items: center; }
}

/* iPhone SE / very small phones */
@media (max-width: 380px) {
  .topbar-left { font-size: .72rem; }
  .topbar { padding: .35rem 0; }
  .hero h1 { font-size: 1.55rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; }
  .page-hero h1 { font-size: 1.55rem; }
  .menu-toggle { padding: .4rem .55rem; font-size: .85rem; }
}
