/* =========================================================================
   Mold Removal Raleigh — Stylesheet
   Pure CSS, no framework. Organized: variables, reset, typography,
   layout/utilities, components, page sections, responsive.
   ========================================================================= */

/* ---------- 1. Design tokens ------------------------------------------- */
:root {
  --color-navy: #0e2a3b;
  --color-navy-dark: #081b27;
  --color-teal: #0f6e63;
  --color-teal-light: #12897a;
  --color-teal-pale: #e6f4f1;
  --color-amber: #f2994a;
  --color-amber-dark: #d97f2e;
  --color-bg: #f8faf9;
  --color-surface: #ffffff;
  --color-border: #e2e8e6;
  --color-text: #1c2b2a;
  --color-text-muted: #55696a;
  --color-text-invert: #f4f8f7;
  --color-success: #1c8a4b;
  --color-danger: #c0392b;

  --font-heading: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(14, 42, 59, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 42, 59, 0.10);
  --shadow-lg: 0 20px 48px rgba(14, 42, 59, 0.16);
  --container-w: 1180px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Removes the gray flash Android/iOS browsers show on tap, and drops the
   ~300ms tap delay on touch — touch/interaction polish only, no visual change. */
a, button, .nav-toggle, .accordion-trigger, .dropdown-trigger { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
/* Sane default size for every inline icon SVG so an icon never renders at
   browser-default (huge) size if a more specific rule hasn't sized it. */
svg { width: 20px; height: 20px; flex-shrink: 0; }
.top-bar-links a { display: inline-flex; align-items: center; gap: 6px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { color: var(--color-text-muted); }
p + p { margin-top: 1em; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

/* ---------- 3. Layout & utilities ---------------------------------------- */
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--color-surface); }
.section-navy { background: var(--color-navy); color: var(--color-text-invert); }
.section-navy h2, .section-navy h3 { color: #ffffff; }
.section-navy p { color: #c4d5d2; }
.section-teal-pale { background: var(--color-teal-pale); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Main content + sidebar layout (service/area/blog pages, contact page).
   Uses real CSS classes instead of inline styles specifically so the
   responsive rule below can collapse it to one column on mobile. */
.content-with-sidebar { grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.content-with-sidebar--wide { grid-template-columns: 2.4fr 1fr; }
.content-with-sidebar--narrow { grid-template-columns: 1.3fr 1fr; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--color-text-muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-heading); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-teal); background: var(--color-teal-pale);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-navy .eyebrow { background: rgba(255,255,255,0.1); color: #7fd9c9; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 4. Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--color-amber); color: #221505; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-amber-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-teal); color: #fff; }
.btn-secondary:hover { background: var(--color-teal-light); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: #fff; }
.btn-outline-invert { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-invert:hover { background: #fff; color: var(--color-navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 5. Header / nav ------------------------------------------------ */
.top-bar {
  background: var(--color-navy-dark); color: #cfe3df; font-size: 0.85rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #fff; font-weight: 600; }
.top-bar-item { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-item svg { width: 14px; height: 14px; }
.top-bar-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.site-header {
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--color-navy); }
.brand-text .brand-sub { font-size: 0.72rem; color: var(--color-teal); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

/* Logo image branding (header + footer) */
.brand-logo-link { display: flex; align-items: center; }
.brand-logo-img { display: block; height: 56px; width: 56px; max-width: none; object-fit: contain; }
.footer-brand .brand-logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: var(--radius-sm); padding: 10px 16px;
}
.footer-brand .brand-logo-badge .brand-logo-img { height: 46px; width: 46px; }

.nav-menu { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > .dropdown-trigger {
  display: flex; align-items: center; gap: 4px; padding: 12px 12px; font-weight: 600; font-size: 0.9rem; color: var(--color-navy); border-radius: var(--radius-sm); white-space: nowrap;
}
.nav-menu > li > a:hover, .nav-menu > li > .dropdown-trigger:hover { background: var(--color-teal-pale); color: var(--color-teal); }
.nav-menu .dropdown-trigger svg { width: 14px; height: 14px; transition: transform .15s ease; flex-shrink: 0; }
.has-dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute; top: 100%; left: 0; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); padding: 10px; min-width: 280px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 50;
}
.has-dropdown:hover .dropdown-panel, .has-dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--color-text); }
.dropdown-panel a:hover { background: var(--color-teal-pale); color: var(--color-teal); }
.dropdown-panel a small { display: block; color: var(--color-text-muted); font-weight: 400; font-size: 0.78rem; margin-top: 2px; }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); flex-shrink: 0; }
.header-phone svg { width: 20px; height: 20px; color: var(--color-amber); }
.nav-toggle { flex-shrink: 0; }
.brand-logo-link { flex-shrink: 0; min-width: 0; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--color-navy); }

/* ---------- 6. Hero ------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 76px 0 90px;
  background:
    linear-gradient(160deg, rgba(14,42,59,0.93) 0%, rgba(8,27,39,0.94) 60%, rgba(6,20,28,0.95) 100%),
    url("/assets/images/hero-mold-removal.webp") center center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background: radial-gradient(600px circle at 85% 10%, rgba(18,137,122,0.35), transparent 60%),
              radial-gradient(500px circle at 10% 90%, rgba(242,153,74,0.18), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lede { color: #c9dbd8; max-width: 560px; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); padding: 9px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.hero-badge svg { width: 16px; height: 16px; color: #7fd9c9; }

.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); color: var(--color-text);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .muted { font-size: 0.88rem; margin-bottom: 18px; }
.hero-card .form-field { margin-bottom: 14px; }

.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #123c34, #0e2a3b); display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual svg { width: 62%; height: 62%; opacity: 0.92; }

/* ---------- 7. Trust bar / stats ------------------------------------------ */
.trust-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 22px 0; }
.trust-bar .grid-4 { align-items: center; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--color-navy); }
.trust-item svg { width: 26px; height: 26px; color: var(--color-teal); flex-shrink: 0; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-heading); font-weight: 700; font-size: 2.4rem; color: var(--color-teal); }
.section-navy .stat-num { color: #7fd9c9; }
.stat-label { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; margin-top: 4px; }
.section-navy .stat-label { color: #b7cbc8; }

/* ---------- 8. Cards -------------------------------------------------------- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--color-teal-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { width: 26px; height: 26px; color: var(--color-teal); }
.card h3 { margin-bottom: 10px; }
.card p { flex-grow: 1; }
.card .card-link { margin-top: 16px; font-weight: 700; color: var(--color-teal); display: inline-flex; align-items: center; gap: 6px; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

.service-card-list { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.service-card-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; color: var(--color-text-muted); }
.service-card-list svg { width: 15px; height: 15px; color: var(--color-teal); margin-top: 3px; flex-shrink: 0; }

.icon-list { display: flex; flex-direction: column; gap: 14px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; }
.icon-list svg { width: 20px; height: 20px; color: var(--color-teal); flex-shrink: 0; margin-top: 2px; }
.icon-list strong { display: block; color: var(--color-navy); }

/* ---------- 9. Process steps ------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-teal); color: #fff; font-family: var(--font-heading); font-weight: 700; margin-bottom: 16px;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.92rem; }

/* ---------- 10. Testimonials ------------------------------------------------ */
.testimonial-card {
  background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius-md);
  padding: 26px; height: 100%; display: flex; flex-direction: column;
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 12px; color: var(--color-amber); }
.testimonial-stars svg { width: 18px; height: 18px; }
.testimonial-quote { font-style: italic; flex-grow: 1; }
.testimonial-author { margin-top: 16px; font-weight: 700; color: var(--color-navy); font-size: 0.9rem; }
.placeholder-flag {
  display: inline-block; margin-top: 14px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--color-amber-dark); background: #fdf1e4; padding: 4px 10px; border-radius: 999px;
}

/* ---------- 11. FAQ / accordion --------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-heading); font-weight: 600; color: var(--color-navy);
}
.accordion-trigger svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; color: var(--color-teal); }
.accordion-item.is-open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-panel-inner { padding: 0 22px 20px; color: var(--color-text-muted); }

/* ---------- 12. Forms -------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--color-navy); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--color-teal); }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--color-danger); }
.form-error { display: none; font-size: 0.78rem; color: var(--color-danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none; background: #eafaf1; border: 1px solid var(--color-success); color: #145c34;
  padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600;
}
.form-note { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 10px; }

/* ---------- 13. Cost calculator ---------------------------------------------- */
.calculator-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.calc-result { display: none; margin-top: 24px; background: var(--color-teal-pale); border-radius: var(--radius-md); padding: 22px; text-align: center; }
.calc-range { font-family: var(--font-heading); font-weight: 700; font-size: 2.1rem; color: var(--color-teal); }
.calc-range span { color: var(--color-navy); }

/* ---------- 14. Tables (pricing) ---------------------------------------------- */
.pricing-table { width: 100%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.pricing-table th, .pricing-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.pricing-table thead th { background: var(--color-navy); color: #fff; font-family: var(--font-heading); }
.pricing-table tbody tr:nth-child(even) { background: #f2f7f6; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- 15. Callout / CTA banners ------------------------------------------ */
.callout {
  background: linear-gradient(120deg, var(--color-teal), var(--color-navy)); border-radius: var(--radius-lg);
  padding: 44px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.callout h2, .callout h3 { color: #fff; margin-bottom: 8px; }
.callout p { color: #d5e8e4; }
.alert-box {
  border-left: 4px solid var(--color-amber); background: #fff8ef; padding: 18px 22px; border-radius: var(--radius-sm); margin: 24px 0;
}
.alert-box strong { color: var(--color-navy); }
.info-box { border-left: 4px solid var(--color-teal); background: var(--color-teal-pale); padding: 18px 22px; border-radius: var(--radius-sm); margin: 24px 0; }

/* ---------- 16. Article / prose content ---------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; color: var(--color-navy); }
.prose p { color: var(--color-text); }
.prose ul, .prose ol { margin: 1em 0 1em 1.3em; color: var(--color-text); }
.prose li { margin-bottom: 0.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--color-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 4px solid var(--color-teal); padding-left: 18px; font-style: italic; color: var(--color-text-muted); margin: 1.5em 0; }
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 8px; flex-wrap: wrap; }

/* Inline content photos — responsive figures placed inside prose/sidebar columns.
   Base variant fills the column width (img native res is always >= column width
   at the breakpoints it's used, so it never upscales past source resolution).
   --compact/--square variants cap width for portrait/square source photos so
   they display near their native size instead of being blown up full-width. */
.content-photo { margin: 8px 0 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--color-surface); }
.content-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.content-photo figcaption { padding: 10px 16px; font-size: 0.82rem; color: var(--color-text-muted); border-top: 1px solid var(--color-border); }
.content-photo--compact, .content-photo--square { max-width: 380px; }
.content-photo--square { max-width: 320px; }
.content-photo--square img { aspect-ratio: 1 / 1; }
.content-photo--portrait img { aspect-ratio: 4 / 5; }
.content-photo--wide { width: 100%; }
.content-photo figcaption a { color: var(--color-teal); text-decoration: underline; text-underline-offset: 2px; }

/* Unique 16:9 feature image used on every page. */
.page-feature { padding: 24px 0 0; background: var(--color-bg); }
.page-feature-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.page-feature-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* Responsive image rows added to the homepage and blog listing. */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 36px;
}
.photo-gallery figure {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.photo-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.photo-gallery figcaption {
  padding: 10px 12px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .content-photo--compact, .content-photo--square { max-width: 260px; }
}
.toc { background: var(--color-teal-pale); border-radius: var(--radius-md); padding: 22px 26px; margin: 28px 0; }
.toc h4 { margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--color-navy); font-weight: 600; }

/* ---------- 17. Breadcrumbs ---------------------------------------------------- */
.breadcrumbs { font-size: 0.82rem; color: var(--color-text-muted); padding: 16px 0; }
.breadcrumbs a { color: var(--color-teal); font-weight: 600; }
.breadcrumbs .sep { margin: 0 6px; }

/* ---------- 18. Page header banner (services/locations/blog) ------------------- */
.page-banner {
  position: relative; color: #fff; padding: 52px 0 60px;
  background:
    linear-gradient(150deg, rgba(14,42,59,0.93), rgba(8,27,39,0.95)),
    url("/assets/images/page-banner.webp") center 32% / cover no-repeat;
}
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner .lede { color: #c9dbd8; max-width: 680px; }
.page-banner .btn-row { margin-top: 24px; }

/* ---------- 19. Location grid ---------------------------------------------------- */
.area-pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.area-pill { background: #fff; border: 1px solid var(--color-border); padding: 9px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--color-navy); }
.area-pill svg { width: 14px; height: 14px; color: var(--color-teal); margin-right: 6px; display: inline-block; vertical-align: -2px; }

/* ---------- 20. Footer -------------------------------------------------------- */
.site-footer { background: var(--color-navy-dark); color: #b7cbc8; padding-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand-text .brand-name { color: #fff; }
.footer-about { margin-top: 14px; font-size: 0.9rem; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: #b7cbc8; }
.footer-links a:hover { color: #fff; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.hours-row:last-child { border-bottom: none; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-teal); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-bottom { padding: 22px 0 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
.footer-bottom a { color: #b7cbc8; }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 21. Sticky mobile call bar ------------------------------------------ */
.sticky-call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none; gap: 10px; padding: 12px 16px;
  background: var(--color-navy); box-shadow: 0 -6px 20px rgba(0,0,0,0.18); transform: translateY(100%); transition: transform .25s ease;
}
.sticky-call-bar.is-visible { transform: translateY(0); }
.sticky-call-bar a { flex: 1; }

/* ---------- 22. Back to top -------------------------------------------------------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--color-teal);
  color: #fff; border: none; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease; z-index: 80;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- 23. Misc badges / chips -------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--color-teal-pale); color: var(--color-teal); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tag-danger { background: #fdeceb; color: var(--color-danger); }

/* ---------- 24. Related links / internal linking blocks -------------------------------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.related-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px; display: block; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-card .chip { margin-bottom: 10px; }
.related-card h4 { font-size: 1rem; margin-bottom: 6px; }
.related-card p { font-size: 0.85rem; margin: 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .content-with-sidebar,
  .content-with-sidebar--wide,
  .content-with-sidebar--narrow { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1140px) {
  .top-bar-links { display: none; }
  .nav-menu {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 86vw); background: #fff;
    flex-direction: column; align-items: stretch; padding: 90px 20px 20px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu > li > a, .nav-menu > li > .dropdown-trigger { padding: 14px 10px; border-bottom: 1px solid var(--color-border); justify-content: space-between; }
  .dropdown-panel { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; padding: 0; transition: max-height .2s ease; }
  .has-dropdown.is-open .dropdown-panel { max-height: 600px; padding: 8px 0; }
  .has-dropdown:hover .dropdown-panel { max-height: 0; }
  .has-dropdown.is-open:hover .dropdown-panel { max-height: 600px; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
  .sticky-call-bar { display: flex; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .brand-logo-img { height: 34px; width: 34px; }
  .site-header .container { padding: 0 16px; gap: 10px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-sm { padding: 9px 12px; font-size: 0.78rem; }
}

@media (max-width: 360px) {
  .brand-logo-img { height: 30px; width: 30px; }
  .site-header .container { padding: 0 12px; gap: 8px; }
  .header-cta { gap: 6px; }
  .header-phone { display: none; }
  .header-cta .btn-sm { padding: 8px 10px; font-size: 0.74rem; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* Trust bar stays 2x2 on mobile instead of collapsing to a single column
     — higher specificity than the rule above so it wins regardless of order. */
  .trust-bar .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  h1 { font-size: 2rem; }
  .photo-gallery { grid-template-columns: 1fr; gap: 14px; }
  .content-photo { border-radius: var(--radius-md); }
  .page-feature { padding-top: 16px; }
  .page-feature-photo { border-radius: var(--radius-md); }
}

/* =========================================================================
   Mobile hardening
   Keeps every shared page inside the viewport and makes the off-canvas
   navigation, CTA areas, forms, and footer comfortable on touch screens.
   ========================================================================= */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }

.grid > *,
.hero-inner > *,
.content-with-sidebar > *,
.callout > *,
.footer-top > *,
.footer-bottom > * { min-width: 0; }

.prose,
.footer-links a,
.footer-about,
.callout p,
.accordion-trigger,
.accordion-panel-inner { overflow-wrap: anywhere; }

@media (max-width: 1140px) {
  .top-bar { display: none; }

  .site-header .container {
    min-height: 64px;
  }

  .nav-menu {
    top: var(--mobile-header-height, 64px);
    height: calc(100vh - var(--mobile-header-height, 64px));
    height: calc(100dvh - var(--mobile-header-height, 64px));
    width: min(360px, 100vw);
    padding: 14px 18px calc(28px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 110;
  }

  .nav-menu > li,
  .dropdown-panel,
  .dropdown-panel a { width: 100%; min-width: 0; }

  .nav-menu > li > a,
  .nav-menu > li > .dropdown-trigger {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .nav-menu .dropdown-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .has-dropdown:hover .dropdown-trigger svg { transform: none; }
  .has-dropdown.is-open:hover .dropdown-trigger svg { transform: rotate(180deg); }

  .dropdown-panel {
    min-width: 0;
    transition: max-height .25s ease, padding .25s ease;
  }

  .has-dropdown.is-open .dropdown-panel,
  .has-dropdown.is-open:hover .dropdown-panel {
    max-height: none;
  }

  .dropdown-panel a {
    padding: 11px 12px 11px 22px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    position: relative;
    z-index: 120;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: var(--mobile-header-height, 64px) 0 0;
    z-index: 95;
    background: rgba(8, 27, 39, 0.58);
  }

  .site-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

  .sticky-call-bar {
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .sticky-call-bar.is-visible { display: grid; }
  .sticky-call-bar a { min-width: 0; width: 100%; }

  .back-to-top { bottom: 92px; }
}

@media (max-width: 720px) {
  .container { padding-left: 18px; padding-right: 18px; }

  .hero { padding: 52px 0 60px; }
  .hero .lede { font-size: 1rem; }
  .hero-badges { gap: 10px; margin-top: 24px; }
  .hero-badge { width: 100%; border-radius: var(--radius-md); }

  .btn-row { width: 100%; }
  .hero .btn-row .btn,
  .page-banner .btn-row .btn,
  .callout .btn-row .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .callout {
    width: 100%;
    padding: 30px 22px;
    gap: 24px;
    border-radius: var(--radius-md);
  }

  .callout .btn-row { flex-direction: column; }

  .hero-card,
  .calculator-box,
  .card,
  .related-card { padding: 22px; }

  .form-field input,
  .form-field select,
  .form-field textarea { min-height: 48px; font-size: 16px; }

  .accordion-trigger { padding: 16px 18px; }
  .accordion-panel-inner { padding: 0 18px 18px; }

  .footer-top { gap: 34px; padding-bottom: 36px; }
  .footer-col { width: 100%; }
  .footer-links a,
  .footer-links > span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .footer-links svg { margin-top: 3px; flex: 0 0 auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .pricing-table { min-width: 560px; }
  .table-scroll { max-width: 100%; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .section-tight { padding: 36px 0; }
  .page-banner { padding: 38px 0 44px; }

  .site-header .container { min-height: 60px; }
  .brand-logo-img { height: 36px; width: 36px; }

  .header-cta .btn-sm {
    max-width: calc(100vw - 132px);
    padding: 9px 11px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  .header-cta .btn-sm svg { display: none; }

  .btn { max-width: 100%; white-space: normal; text-align: center; }
  .area-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

  .hero h1,
  .page-banner h1 { font-size: clamp(1.75rem, 9vw, 2.15rem); overflow-wrap: anywhere; }

  .eyebrow { max-width: 100%; line-height: 1.4; }
  .trust-bar .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .stat-num { font-size: 2rem; }

  .sticky-call-bar { grid-template-columns: 0.8fr 1.2fr; gap: 8px; }
  .sticky-call-bar .btn {
    min-height: 48px;
    padding: 10px 8px;
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  .sticky-call-bar [data-cfg="phoneDisplay"] { display: none; }

  .site-footer { padding-top: 48px; }
  .footer-legal-links { flex-direction: column; gap: 8px; }
}

@media (max-width: 340px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .site-header .container { padding-left: 10px; padding-right: 10px; gap: 5px; }
  .header-cta { gap: 4px; }
  .header-cta .btn-sm { max-width: calc(100vw - 112px); padding: 8px; font-size: 0.7rem; }
  .nav-toggle { min-width: 40px; padding: 6px; }
  .hero-card, .calculator-box, .card, .related-card { padding: 18px; }
  .callout { padding: 26px 18px; }
}
