/* ==========================================================================
   Rapids Basement Solutions — design tokens
   Palette grounded in the material world of the job: poured concrete,
   limestone, wet slate, drain gravel, and the copper/rust of old pipe
   fittings. Deliberately not the cream+terracotta or near-black+neon
   defaults.
   ========================================================================== */
:root {
  /* Color */
  --stone:        #EFEEEA;  /* page background — warm limestone */
  --stone-dark:   #E4E1D7;  /* card / secondary-block background */
  --gravel:       #D3CDBD;  /* borders, dividers, drain-gravel accent */
  --ink:          #182226;  /* primary text, nav, footer — wet slate */
  --ink-soft:     #4B565A;  /* secondary text */
  --ink-faint:    #7C868A;  /* tertiary text, captions */
  --teal:         #2F6B67;  /* primary accent — drain-tile teal */
  --teal-dark:    #234F4C;  /* hover / active */
  --teal-tint:    #E4EEED;  /* light accent background */
  --rust:         #B5622E;  /* secondary accent — copper pipe, used sparingly */
  --white:        #FFFFFF;
  --success:      #3F6E4E;
  --success-tint: #E6EFE8;

  /* Type */
  --font-head: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--stone-dark { background: var(--stone-dark); }
.section--ink { background: var(--ink); color: var(--stone); }
.section--ink h2, .section--ink h3 { color: var(--stone); }
.section--ink p { color: #C7CDCE; }
.section--teal-tint { background: var(--teal-tint); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--teal);
  font-size: 0.95rem;
  margin: 0 0 0.6em;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

.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;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
  padding: 0.75em 1.2em; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--stone); }
.btn-on-dark { background: var(--stone); color: var(--ink); }
.btn-on-dark:hover { background: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background: var(--ink);
  color: var(--stone);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65em;
  color: var(--stone);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--white); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name-full { display: inline; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  color: #D6DADA; text-decoration: none; font-weight: 500; font-size: 0.97rem;
  padding: 0.4em 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); border-bottom-color: var(--teal); outline: none; }

.has-dropdown { position: relative; }
.dropdown-panel {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white); color: var(--ink);
  min-width: 260px; padding: 0.6rem; margin-top: 0;
  border-radius: var(--radius-md); box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  border-top: 3px solid var(--teal);
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block; color: var(--ink); padding: 0.55em 0.7em; border-radius: var(--radius-sm);
  font-size: 0.95rem; border-bottom: none;
}
.dropdown-panel a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.dropdown-panel .dropdown-divider { height: 1px; background: var(--gravel); margin: 0.4em 0.2em; }

.header-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-sm);
  color: var(--stone); width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  padding-bottom: 80px;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.is-open { display: block; }
.mobile-nav .container { display: block; padding: 1rem 1.5rem 1.5rem; height: auto; }
.mobile-nav-group { margin-bottom: 1.1rem; }
.mobile-nav-group-label { font-size: 0.8rem; text-transform: none; color: var(--ink-faint); margin-bottom: 0.4em; font-weight: 600; }
.mobile-nav a { display: block; color: #E4E7E7; text-decoration: none; padding: 0.5em 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav .btn { margin-top: 0.75rem; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .brand-name-full { display: inline; }
}
@media (max-width: 899.98px) {
  .brand-name-full { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,20,22,0.88) 0%, rgba(15,20,22,0.72) 32%, rgba(15,20,22,0.30) 62%, rgba(15,20,22,0.12) 100%);
}
.hero-inner {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero-content h1 { color: var(--white); }
.hero-content .lede { color: #DCE3E2; max-width: 52ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-trustline { margin-top: 1.8rem; font-size: 0.92rem; color: #C6CDCC; display: flex; flex-wrap: wrap; gap: 0.5em 1.4em; }
.hero-trustline span { display: inline-flex; align-items: center; gap: 0.5em; }
.hero-trustline svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

.hero--simple .hero-inner { min-height: 420px; padding: var(--space-5) 0 var(--space-4); }

/* ==========================================================================
   Signs quick-list band
   ========================================================================== */
.signs-band { background: var(--teal-tint); border-top: 1px solid var(--gravel); border-bottom: 1px solid var(--gravel); }
.signs-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.8rem; grid-template-columns: 1fr; }
.signs-list li { margin: 0; display: flex; align-items: flex-start; gap: 0.7em; font-weight: 500; color: var(--ink); }
.signs-list svg { width: 20px; height: 20px; color: var(--rust); flex-shrink: 0; margin-top: 2px; }
@media (min-width: 700px) { .signs-list { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Grid / two-col layout helpers
   ========================================================================== */
.split { display: grid; gap: var(--space-4); align-items: center; }
.split > img, .split > .split-media { border-radius: var(--radius-md); overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right { grid-template-columns: 1.05fr 0.95fr; }
  .split--media-left { grid-template-columns: 0.95fr 1.05fr; }
  .split--media-left .split-media { order: -1; }
}

/* ==========================================================================
   Cross-section diagram (signature device)
   ========================================================================== */
.crosssection-wrap { margin-top: var(--space-4); }
.crosssection-wrap svg { width: 100%; height: auto; display: block; }
.crosssection-caption { margin-top: 0.8rem; font-size: 0.9rem; color: var(--ink-faint); }
.xs-label {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--ink);
}
.xs-label-link { text-decoration: none; }
.xs-label-link tspan.xs-label { fill: var(--teal); }
.xs-label-link:hover tspan.xs-label { fill: var(--teal-dark); }
.xs-leader { stroke: var(--ink-faint); stroke-width: 1; }
.xs-dot { fill: var(--teal); }

/* ==========================================================================
   Service cards (deliberately NOT the rounded-shadow-card kit)
   ========================================================================== */
.service-grid {
  display: grid; gap: 1.5rem; margin-top: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border-left: 4px solid var(--teal);
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.service-card:hover { background: var(--teal-tint); border-color: var(--rust); }
.service-card h3 { margin-bottom: 0.4em; font-size: 1.15rem; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0.9em; }
.service-card .card-link { margin-top: auto; font-weight: 600; color: var(--teal); font-size: 0.94rem; }
.service-card:hover .card-link { color: var(--teal-dark); }

/* ==========================================================================
   Process steps (numbering justified — this content is a real sequence)
   ========================================================================== */
.process-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; counter-reset: step; }
.process-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6rem 3rem;
  margin: 0;
  border-left: 2px solid var(--gravel);
}
.process-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.process-list li::before {
  content: counter(step);
  position: absolute; left: -19px; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.process-list h4 { font-family: var(--font-head); font-size: 1.05rem; margin: 0 0 0.3em; }
.process-list p { color: var(--ink-soft); font-size: 0.97rem; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { margin-top: var(--space-3); border-top: 1px solid var(--gravel); }
.faq-item { border-bottom: 1px solid var(--gravel); }
.faq-item summary {
  cursor: pointer; padding: 1.15rem 0; font-weight: 600; font-family: var(--font-head);
  font-size: 1.02rem; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--teal); flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 0 1.3rem; color: var(--ink-soft); }
.faq-item .faq-answer p { max-width: 70ch; }

/* ==========================================================================
   Cost band
   ========================================================================== */
.cost-band { display: grid; gap: var(--space-3); align-items: start; }
@media (min-width: 800px) { .cost-band { grid-template-columns: 1.3fr 1fr; } }
.cost-callout {
  background: var(--white); border: 1px solid var(--gravel); border-radius: var(--radius-md);
  padding: 1.6rem 1.7rem;
}
.cost-callout .figure { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--teal); }

/* Cost / comparison tables */
.data-table { width: 100%; border-collapse: collapse; margin-top: var(--space-2); font-size: 0.96rem; }
.data-table th, .data-table td { text-align: left; padding: 0.85em 1em; border-bottom: 1px solid var(--gravel); vertical-align: top; }
.data-table th { font-family: var(--font-head); font-weight: 700; color: var(--ink); background: var(--stone-dark); }
.data-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

.cost-table-row { display: grid; grid-template-columns: 1fr; gap: 0.3rem; padding: 1.3rem 0; border-bottom: 1px solid var(--gravel); }
.cost-table-row:first-child { border-top: 1px solid var(--gravel); }
.cost-table-row .ct-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.cost-table-row .ct-price { color: var(--teal); font-weight: 700; font-family: var(--font-head); }
.cost-table-row .ct-note { color: var(--ink-soft); font-size: 0.94rem; max-width: 60ch; }
@media (min-width: 700px) {
  .cost-table-row { grid-template-columns: 1fr auto; align-items: baseline; }
  .cost-table-row .ct-note { grid-column: 1 / -1; }
}

/* ==========================================================================
   Location cards / area list
   ========================================================================== */
.area-grid { display: grid; gap: 1rem; margin-top: var(--space-3); grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .area-grid { grid-template-columns: repeat(4, 1fr); } }
.area-card {
  background: var(--white); border: 1px solid var(--gravel); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5em;
}
.area-card:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-tint); }
.area-card svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--teal); }

.location-hero-meta { display: flex; flex-wrap: wrap; gap: 0.5em 1.4em; margin-top: 1rem; font-size: 0.92rem; color: #C6CDCC; }
.location-hero-meta span { display: inline-flex; align-items: center; gap: 0.5em; }
.location-hero-meta svg { width: 16px; height: 16px; flex-shrink: 0; }

.signs-highlight-list { list-style: none; padding: 0; margin-top: 1rem; }
.signs-highlight-list li { display: flex; gap: 0.7em; align-items: flex-start; margin-bottom: 0.7em; }
.signs-highlight-list svg { width: 18px; height: 18px; color: var(--rust); flex-shrink: 0; margin-top: 3px; }

/* Numbered symptom guide (Signs page) */
.symptom-list { list-style: none; padding: 0; margin-top: var(--space-3); counter-reset: sym; }
.symptom-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--gravel); }
.symptom-item:first-child { border-top: 1px solid var(--gravel); }
.symptom-item .sym-num {
  counter-increment: sym; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--gravel);
}
.symptom-item .sym-num::before { content: counter(sym, decimal-leading-zero); }
.symptom-item h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.symptom-item p { color: var(--ink-soft); font-size: 0.96rem; }

/* ==========================================================================
   Lead form
   ========================================================================== */
.lead-form-section { }
.lead-form-card {
  background: var(--white); border-radius: var(--radius-md); padding: var(--space-4);
  box-shadow: 0 20px 45px rgba(15,20,22,0.18);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4em; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 0.75em 0.85em;
  border: 1.5px solid var(--gravel); border-radius: var(--radius-sm); background: var(--stone);
  color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form-two-col { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-two-col { grid-template-columns: 1fr 1fr; } }
.form-fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.form-fieldset legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5em; padding: 0; color: var(--ink); }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pill {
  border: 1.5px solid var(--gravel); border-radius: 999px; padding: 0.55em 1.1em; font-size: 0.93rem;
  cursor: pointer; background: var(--stone); user-select: none;
}
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pill:has(input:checked) { background: var(--teal); border-color: var(--teal); color: var(--white); }
.radio-pill:has(input:focus-visible) { outline: 3px solid var(--rust); outline-offset: 2px; }
.form-disclaimer { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.9rem; }
.form-status { margin-top: 1rem; padding: 0.9em 1em; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form-status.is-success { display: block; background: var(--success-tint); color: var(--success); }
.form-status.is-error { display: block; background: #F5E4DD; color: var(--rust); }

.quote-section { position: relative; overflow: hidden; }
.quote-section .quote-intro h2 { color: var(--white); }
.quote-section .hero-media::after { background: linear-gradient(100deg, rgba(15,20,22,0.90) 0%, rgba(15,20,22,0.78) 40%, rgba(15,20,22,0.55) 100%); }
.quote-inner { position: relative; padding: var(--space-6) 0; }
.quote-intro { color: var(--white); max-width: 480px; }
.quote-intro .lede { color: #DCE3E2; }
.quote-intro ul { list-style: none; padding: 0; margin-top: 1.4rem; }
.quote-intro li { color: #DCE3E2; display: flex; gap: 0.6em; align-items: flex-start; margin-bottom: 0.6em; }
.quote-intro svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }

/* ==========================================================================
   Related services / breadcrumb
   ========================================================================== */
.breadcrumb { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--teal); }

.related-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 700px) { .related-list { grid-template-columns: repeat(3, 1fr); } }
.related-list a {
  display: block; background: var(--white); border: 1px solid var(--gravel); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.related-list a:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #B9C0C0; padding: var(--space-5) 0 var(--space-3); }
.footer-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6em; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-decoration: none; margin-bottom: 0.8rem; }
.footer-brand svg { width: 16px; height: 16px; }
.site-footer p { color: #9DA6A6; font-size: 0.93rem; max-width: 40ch; }
.footer-col h4 { color: var(--stone); font-size: 0.88rem; text-transform: none; letter-spacing: 0.01em; margin-bottom: 0.9em; font-family: var(--font-body); font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55em; }
.footer-col a { color: #B9C0C0; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: var(--space-4); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.85rem; color: #8A9494;
}
.footer-bottom a { color: #8A9494; }
.footer-bottom a:hover { color: var(--white); }
.footer-legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink); padding: 0.75rem 1rem; box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
  display: flex; gap: 0.75rem;
}
.sticky-cta .btn { flex: 1; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
body { padding-bottom: 74px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ==========================================================================
   Symptom checker (interactive widget, homepage + signs page)
   ========================================================================== */
.checker { background: var(--white); border: 1px solid var(--gravel); border-radius: var(--radius-md); padding: var(--space-3); margin-top: var(--space-3); }
.checker-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.checker-item { display: flex; align-items: center; gap: 0.8em; padding: 0.6em 0; border-bottom: 1px solid var(--stone-dark); }
.checker-item:last-child { border-bottom: none; }
.checker-item input { width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0; }
.checker-item label { font-size: 0.98rem; cursor: pointer; }
.checker-result { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--stone); font-weight: 600; display: none; }
.checker-result.is-visible { display: block; }
.checker-result.level-low { background: var(--success-tint); color: var(--success); }
.checker-result.level-med { background: var(--teal-tint); color: var(--teal-dark); }
.checker-result.level-high { background: #F5E4DD; color: var(--rust); }

/* ==========================================================================
   Ground-line divider motif
   ========================================================================== */
.ground-divider { display: block; width: 100%; height: 14px; margin: 0; }
.ground-divider path { stroke: var(--gravel); stroke-width: 1.5; fill: none; }

/* ==========================================================================
   Misc utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w-prose { max-width: 68ch; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.section-head { max-width: 720px; margin-bottom: var(--space-3); }
.section-head.text-center { margin-left: auto; margin-right: auto; }
