/*
Theme Name: Jacksonville Sewer Line Pros
Theme URI: https://sewerlinerepairjacksonville.us/
Author: Jacksonville Sewer Line Pros
Description: Custom classic theme for Jacksonville Sewer Line Pros — sewer line repair in Jacksonville, FL. First-person provider site: the homepage is the primary authority page, and every service, area, About and Contact page has its own template with per-page SEO (title, meta, canonical, OG, JSON-LD) driven by seo-map.php. Design system: Navy #0B2545 + Orange #F97316, Plus Jakarta Sans headings + Inter body.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: jacksonvillesewerpros
*/

/* ==========================================================================
   Jacksonville Sewer Line Pros — Design System
   sewerlinerepairjacksonville.us
   --------------------------------------------------------------------------
   Colors : Preset A — Navy #0B2545 (primary) + Orange #F97316 (accent)
   Fonts  : Plus Jakarta Sans (headings 700–800) + Inter (body 400–500),
            loaded via Google Fonts <link> with preconnect + display=swap.
            (No @import — render-blocking. No banned fonts anywhere.)
   Accent buttons use navy text on orange: white-on-#F97316 is only ~2.9:1,
   navy-on-orange is ~5.2:1 and passes WCAG AA.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Navy scale (from primary #0B2545) */
  --navy-50:  #eef4fb;
  --navy-100: #d9e7f8;
  --navy-200: #b3cfef;
  --navy-300: #84aee0;
  --navy-400: #5589c8;
  --navy-500: #3268ab;
  --navy-600: #1f4e86;
  --navy-700: #143863;
  --navy-800: #0b2545; /* primary */
  --navy-900: #061830;
  --navy-950: #04101f; /* darkest — footer / dark sections */

  --color-primary: var(--navy-800);
  --color-primary-dark: var(--navy-900);
  --color-dark: var(--navy-950);

  /* Accent — CTAs and highlights only */
  --accent: #f97316;
  --accent-dark: #c2410c; /* text-safe orange on light backgrounds (AA) */
  --accent-hover: #ea580c;
  --accent-tint: #fff3e8;

  /* Neutrals */
  --ink: #1c2f47;          /* body text */
  --ink-strong: #0e2238;   /* headings on light */
  --muted: #51667c;        /* secondary text (AA on white) */
  --off-white: #f6f9fc;    /* alternate section background */
  --border: #dce5ef;
  --border-strong: #c3d2e2;
  --white: #ffffff;

  /* On-dark text */
  --on-dark: #e8eff8;
  --on-dark-muted: #a9bed6;

  /* Type */
  --font-heading: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Shape + elevation */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(6, 24, 48, .05), 0 8px 24px -8px rgba(6, 24, 48, .12);
  --shadow-lift: 0 2px 4px rgba(6, 24, 48, .06), 0 20px 40px -12px rgba(6, 24, 48, .22);
  --shadow-glow: 0 8px 30px -6px rgba(249, 115, 22, .55);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
  --section-pad: 40px;
}

@media (min-width: 1024px) {
  :root { --section-pad: 64px; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::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: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden; /* belt-and-braces: no horizontal scroll */
}

@media (min-width: 1280px) {
  body { font-size: 1.125rem; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink-strong);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--navy-200); }

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--color-primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   3. Layout + section rhythm
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--white { background: var(--white); }
.section--alt   { background: var(--off-white); }
.section--tint  { background: var(--navy-50); }
.section--dark  { background: var(--color-dark); color: var(--on-dark); }
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark a { color: var(--navy-200); }

.section__head { max-width: 760px; margin-bottom: 24px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section__head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--accent); }

.section__intro {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 68ch;
}
.section__head--center .section__intro { margin-inline: auto; }
.section--dark .section__intro { color: var(--on-dark-muted); }

/* Angled / wave dividers between some sections */
.divider {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: -1px;
}
.divider--flip { transform: scaleY(-1); }

/* Highlighted key phrase inside headings */
.hl {
  background-image: linear-gradient(transparent 62%, rgba(249, 115, 22, .45) 62%, rgba(249, 115, 22, .45) 94%, transparent 94%);
  padding-inline: .06em;
}
.section--dark .hl,
.hero .hl {
  background-image: none;
  color: var(--accent);
}

/* Direct-answer block (AI Overview friendly: answer first, then expand) */
.answer {
  font-size: 1.125rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.section--dark .answer { background: rgba(249, 115, 22, .10); color: var(--on-dark); }
.hero .answer { background: rgba(249, 115, 22, .10); color: var(--on-dark); }

.lead { font-size: 1.1875rem; color: var(--ink); }

/* Check list */
.check-list { list-style: none; margin: 0 0 1.4em; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4e86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: var(--accent);
  color: var(--navy-900); /* AA on orange */
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--color-primary);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.section--dark .btn--outline,
.hero .btn--outline,
.page-hero .btn--outline {
  border-color: rgba(255, 255, 255, .4);
  color: var(--white);
}
.section--dark .btn--outline:hover,
.hero .btn--outline:hover,
.page-hero .btn--outline:hover { border-color: var(--white); color: var(--white); }

.btn--lg { min-height: 60px; padding: 18px 36px; font-size: 1.125rem; }

@media (max-width: 639px) {
  .btn { width: 100%; }
  .btn--inline { width: auto; }
}

/* --------------------------------------------------------------------------
   5. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

/* Brand (SVG logo mark + wordmark) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { line-height: 1.12; }
.brand__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
}
.brand__tag {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* Desktop nav */
.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
}
.nav__link:hover { background: var(--navy-50); color: var(--color-primary); }
.nav__link[aria-current="page"] { background: var(--navy-50); color: var(--color-primary); }
.nav__caret { width: 14px; height: 14px; transition: transform .2s ease; }

/* Dropdown (Services / Areas) */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.nav__dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
}
.nav__dropdown a:hover { background: var(--navy-50); color: var(--color-primary); }

.header__cta { flex: none; margin-left: 8px; }
.header__cta .btn { min-height: 48px; padding: 12px 22px; width: auto; }

/* Hamburger (shown below 1024px) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--navy-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Full-screen mobile panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-dark);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 24px) 24px 40px;
  overflow-y: auto;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel__list { list-style: none; margin: 0 0 28px; padding: 0; }
.mobile-panel__list > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 4px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
.mobile-panel__sub {
  list-style: none;
  margin: 0; padding: 0 0 14px 16px;
}
.mobile-panel__sub a {
  display: block;
  padding: 8px 0;
  min-height: 44px;
  color: var(--on-dark-muted);
  text-decoration: none;
  font-weight: 500;
}
.mobile-panel__sub a:hover { color: var(--white); }
.mobile-panel .btn { width: 100%; }
body.no-scroll { overflow: hidden; }

@media (max-width: 1023px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   6. Hero — layered underground cross-section composition
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--on-dark);
  padding: 48px 0 56px;
}
@media (min-width: 1024px) {
  .hero { padding: 72px 0 84px; }
}

/* Gradient mesh */
.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(249, 115, 22, .22), transparent 60%),
    radial-gradient(760px 520px at -10% 110%, rgba(50, 104, 171, .5), transparent 62%),
    radial-gradient(620px 380px at 55% 0%, rgba(132, 174, 224, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
/* Soft grain / noise overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 48px;
  /* v2.2.1: was align-items:center — the shorter photo column was vertically
     centred against the taller headline column, leaving a large empty navy
     band above the photo. Start-aligns both columns at the top. */
  align-items: start;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero__sub {
  font-size: 1.125rem;
  color: var(--on-dark-muted);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 639px) {
  .hero__ctas .btn { width: 100%; }
}

/* Trust chip row */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0; padding: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .875rem;
  font-weight: 600;
  color: var(--on-dark);
}
.chip svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.section--dark .chip,
.section--white .chip {
  background: var(--navy-50);
  border-color: var(--border);
  color: var(--ink);
}

/* Hero photo + key-points row.
   v2.2.1: the three key points (.glass-card) used to be absolutely positioned
   OVER the photo (and the third one hid on mobile). They are now a separate
   in-flow card row (.hero__points) directly under the hero grid — the photo
   stays completely clean and all three points stack in flow on mobile. */
.hero__scene { position: relative; }
.hero__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
}
.hero__points {
  position: relative;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .hero__points { grid-template-columns: repeat(3, 1fr); }
}
.glass-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
  color: var(--white);
}
.glass-card .icon-tile {
  background: rgba(249, 115, 22, .18);
  color: var(--accent);
  flex: none;
}
.glass-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: .92rem;
  line-height: 1.25;
}
.glass-card span { font-size: .8rem; color: var(--on-dark-muted); line-height: 1.35; display: block; }

/* --------------------------------------------------------------------------
   7. Icon tiles + cards + bento grid
   -------------------------------------------------------------------------- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy-50);
  color: var(--navy-600);
  flex: none;
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--accent { background: var(--accent-tint); color: var(--accent-dark); }
.icon-tile--dark { background: rgba(255, 255, 255, .09); color: var(--accent); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-top: 18px; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-primary);
  text-decoration: none;
}
.card__link svg { width: 17px; height: 17px; transition: transform .18s ease; }
.card__link:hover { color: var(--accent-dark); }
.card__link:hover svg { transform: translateX(4px); }

/* Bento: 1 wide lead card + mixed sizes (never 3 identical cards).
   v2.2.1: align-items:start — grid stretch used to force every card in a row
   to the tall feature card's height, and with the link pinned by
   margin-top:auto the shorter cards rendered as tall, near-empty blocks.
   Cards now size to their own content, and each carries a photo on top.
   v2.2.2: the feature card takes the --wide span (2 columns, ONE row).
   It carries roughly double the copy of the other cards; squeezed into a
   single narrow column it rendered ~1070px tall against ~715-770px for
   its row-mates, and because a grid row is as tall as its tallest item,
   300px+ of empty tint showed under each of them (the void the owner
   circled), while row 2 held only 3 cards and a permanently empty 4th
   cell. At double width its paragraphs wrap to about half the lines, its
   height lands in line with the single cards, and the 7 cards fill the
   4-column grid exactly: 2+1+1 across row 1, 1+1+1+1 across row 2 — no
   empty cell, no stretched card, no filler. */
.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  /* v2.2.2: --wide spans columns only — the old span-2-rows rule would
     leave two empty cells in the last row with this 7-card set. */
  .bento__card--wide { grid-column: span 2; }
  .bento__card--tall { grid-row: span 2; }
}
.bento__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
/* v2.2.1: full-bleed photo block at the top of each service card */
.bento__card-img {
  display: block;
  flex: none;
  width: calc(100% + 56px);
  max-width: none;
  height: 160px;
  object-fit: cover;
  margin: -28px -28px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.bento__card h3 { margin-top: 18px; }
.bento__card .card__link { margin-top: auto; padding-top: 16px; }
.bento__card--feature {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: var(--on-dark);
  border-color: var(--navy-700);
}
.bento__card--feature h3 { color: var(--white); }
.bento__card--feature .card__link { color: var(--accent); }
.bento__card--feature .icon-tile { background: rgba(249, 115, 22, .18); color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Symptom checker (cards + table variants)
   -------------------------------------------------------------------------- */
.symptom-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .symptom-grid { grid-template-columns: repeat(3, 1fr); } }

.symptom-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.symptom-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.symptom-card strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--ink-strong);
  margin-bottom: 4px;
}
.symptom-card span { font-size: .95rem; color: var(--muted); }
.symptom-card svg { width: 20px; height: 20px; color: var(--accent-dark); flex: none; margin-top: 4px; }

/* Cost factors — designed card grid (replaced the table layout, v2.2.0) */
.factor-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .factor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .factor-grid { grid-template-columns: repeat(3, 1fr); } }
.factor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}
.factor-card h3,
.prose .factor-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--navy-900);
}
.factor-card p { font-size: .95rem; margin: 0; max-width: none; }
.factor-card__label {
  display: block;
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   9. Numbered process (oversized outlined numbers)
   v2.2.1: the long horizontal dashed connector line (.process__list::before)
   is removed — it stretched emptily across the section — and the step grid
   gaps are tightened so the four steps read compact.
   -------------------------------------------------------------------------- */
.process__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 28px;
  position: relative;
}
@media (min-width: 1024px) {
  .process__list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.process__step { position: relative; }
.process__num {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--navy-300);
  display: block;
  margin-bottom: 14px;
}
.section--dark .process__num { -webkit-text-stroke-color: var(--navy-500); }
.process__step h3 { margin-bottom: 8px; }
.process__step p { color: var(--muted); font-size: .98rem; }
.section--dark .process__step p { color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   10. Split sections (text + SVG illustration, alternating)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse .split__media { order: 2; }
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
}
.split__media svg,
.split__media img { width: 100%; height: auto; }
.split__body .section__head { margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   11. Callouts — Pro tip / Warning
   -------------------------------------------------------------------------- */
.callout {
  display: flex;
  gap: 16px;
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin: 28px 0;
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy-500);
  background: var(--navy-50);
}
.callout .icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--white); }
.callout strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--ink-strong);
  margin-bottom: 4px;
}
.callout p { font-size: .98rem; color: var(--ink); }
.callout--tip { border-left-color: var(--navy-500); }
.callout--warning {
  border-left-color: var(--accent);
  background: var(--accent-tint);
  border-color: #fbd9bd;
}
.callout--warning .icon-tile { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   12. Dark CTA band (glow + huge phone number)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 300px at 50% -20%, rgba(249, 115, 22, .28), transparent 65%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: var(--on-dark);
  text-align: center;
  padding-block: var(--section-pad);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-dark-muted); max-width: 60ch; margin-inline: auto; }
.cta-band__phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  line-height: 1.1;
  color: var(--white);
  text-decoration: none;
  margin: 18px 0 26px;
  text-shadow: 0 0 44px rgba(249, 115, 22, .45);
}
.cta-band__phone:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   13. FAQ — <details> accordion with rotating plus
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; }
.faq--center { margin-inline: auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-strong);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--color-primary); }
.faq__plus {
  position: relative;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-50);
  transition: transform .25s ease, background .25s ease;
}
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 2.5px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus { transform: rotate(135deg); background: var(--accent-tint); }
.faq__body { padding: 0 22px 22px; color: var(--ink); }
.faq__body p { max-width: 68ch; }

/* --------------------------------------------------------------------------
   14. Inner pages — page hero, breadcrumbs, prose
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 90% -30%, rgba(249, 115, 22, .18), transparent 60%),
    linear-gradient(155deg, var(--navy-800), var(--navy-950));
  color: var(--on-dark);
  padding: 40px 0 44px;
}
@media (min-width: 1024px) { .page-hero { padding: 52px 0 60px; } }
.page-hero h1 { color: var(--white); font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 22ch; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 62ch; }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.breadcrumbs {
  font-size: .9rem;
  margin-bottom: 22px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--navy-300); }
.breadcrumbs a { color: var(--navy-200); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--on-dark-muted); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }

/* --------------------------------------------------------------------------
   15. Service / location page layout — sticky TOC + sticky call card
   -------------------------------------------------------------------------- */
.service-layout {
  display: grid;
  gap: 44px;
  align-items: start;
}
@media (min-width: 1024px) {
  .service-layout { grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 40px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .service-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .service-layout .sidebar { grid-column: 2; }
}

.toc {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
@media (min-width: 1024px) {
  .toc { position: sticky; top: calc(var(--header-h) + 20px); }
}
.toc__title {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list a {
  display: block;
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 8px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.toc__list a:hover { background: var(--navy-50); color: var(--color-primary); }

/* On mobile the TOC + sidebar collapse under the H1 (DOM order does this) */
.sidebar { display: grid; gap: 20px; }
@media (min-width: 1280px) {
  .sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
}

.call-card {
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.call-card h3 { color: var(--white); margin-top: 0; }
.call-card p { color: var(--on-dark-muted); font-size: .95rem; }
.call-card__phone {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  margin: 10px 0 16px;
}
.call-card__phone:hover { color: var(--accent); }
.call-card .btn { width: 100%; }

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.related-card h3 { font-size: 1.05rem; margin-top: 0; }
.related-card ul { list-style: none; margin: 0; padding: 0; }
.related-card li + li { border-top: 1px solid var(--border); }
.related-card a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.related-card a:hover { color: var(--color-primary); }

/* Area cards (neighborhoods) */
.area-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start; /* v2.2.1: cards size to their content, no stretched empty boxes */
}
@media (min-width: 640px)  { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   16. Footer — dark, 4 columns
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: var(--on-dark-muted);
  padding: 48px 0 0;
}
.footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
@media (min-width: 640px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer__brand .brand__name { color: var(--white); }
.footer__brand p { font-size: .95rem; margin-top: 16px; max-width: 36ch; }
.footer__title {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 6px; }
.footer__list a {
  display: inline-block;
  padding: 5px 0;
  min-height: 34px;
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: .97rem;
}
.footer__list a:hover { color: var(--accent); }
.footer__phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 8px;
}
.footer__phone:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 26px 0 34px;
  font-size: .88rem;
}
.footer__disclaimer { max-width: 88ch; margin-bottom: 14px; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   17. Sticky mobile call bar (mobile only, safe-area aware)
   -------------------------------------------------------------------------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 16, 31, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.callbar .btn { flex: 1; min-height: 52px; }
@media (max-width: 1023px) {
  .callbar { display: flex; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); } /* bar never covers content */
}

/* --------------------------------------------------------------------------
   18. Motion — fade-up on scroll.
   Content is fully visible without JS: the hidden start state is only
   applied when main.js has added the .js class to <html>.
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal--delay-1 { transition-delay: .08s; }
.js .reveal--delay-2 { transition-delay: .16s; }
.js .reveal--delay-3 { transition-delay: .24s; }

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

/* --------------------------------------------------------------------------
   19. Tablet layer (768px breakpoint)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero { padding: 88px 0 104px; }
  .process__list { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .faq__question { padding: 20px 24px; }
  .call-card__phone { font-size: 1.65rem; }
  .footer__legal { flex-wrap: nowrap; }
}
