/* ==========================================================================
   SITE CSS — everything below the fold. Tokens + contrast ratios live in
   src/styles/critical.css (inlined in <head>).
   ========================================================================== */

/* Section bands */
.band { padding-block: clamp(3rem, 6vw, 5rem); }
.band-sky { background: var(--sky); }
.band-navy { background: var(--navy); color: var(--ice); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy a { color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); }
.band-navy .section-head p { color: var(--ice); }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; padding: .35rem 1rem; border-radius: var(--pill);
  border: 1px solid var(--navy); background: transparent; color: var(--blue);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.band-navy .eyebrow, .process .eyebrow { border-color: var(--ice); color: var(--white); text-transform: none; letter-spacing: 0; font-size: .82rem; }
.lead { font-size: 1.125rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Generic grids + cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-link:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgb(var(--shadow) / .08); }
.card-link .more { color: var(--blue); font-weight: 700; }
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--mist); color: var(--blue); margin-bottom: 1rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Media + text split */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.photo { border-radius: 18px; overflow: hidden; background: var(--mist); }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { font-size: .8rem; color: var(--muted); padding: .5rem .75rem; background: var(--white); }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare caption { text-align: left; padding: 1rem 1.25rem 0; color: var(--muted); font-size: .9rem; caption-side: bottom; padding-bottom: 1rem; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 800; }
.compare thead th.us { background: var(--blue); }
.compare tbody th { font-weight: 700; color: var(--navy); width: 34%; }
.compare td.us { background: var(--sky); font-weight: 600; }
.compare tr:last-child > * { border-bottom: 0; }
.compare-cta { margin-top: 1.75rem; text-align: center; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 1.5rem; left: 1.5rem; width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--navy);
  font-family: var(--font-head); font-weight: 800;
}
.steps li.card { padding-top: 4.6rem; }

/* Service area */
.area-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.area-grid ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.area-grid h3 a { color: var(--navy); }
.town-links { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.town-links a {
  display: inline-block; padding: .5rem 1rem; border-radius: var(--pill); border: 1px solid var(--line);
  background: var(--white); text-decoration: none; font-weight: 600;
}
.town-links a:hover { border-color: var(--blue); }

/* Trust */
.trust-block + .trust-block { margin-top: 3.5rem; }
.carousel { position: relative; }
.carousel-track { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: .25rem .25rem 1rem; }
.carousel-list { display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 380px); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.carousel-list > li { scroll-snap-align: start; }
.carousel-track blockquote { margin: 0; }
.carousel-track figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.carousel-track figcaption { margin-top: auto; font-weight: 700; color: var(--navy); }
.placeholder-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); border: 1px dashed var(--blue); border-radius: 6px; padding: .1rem .45rem; margin-bottom: .75rem;
}
.carousel-controls { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .5rem; }
.carousel-controls[hidden] { display: none; }
.carousel-controls button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--navy); cursor: pointer; display: grid; place-items: center;
}
.carousel-controls button:hover { border-color: var(--blue); }
.carousel-controls svg { width: 20px; height: 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.badges img { width: 160px; height: 80px; }
.founder { display: grid; gap: 1.5rem; align-items: center; }
.founder img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
@media (min-width: 700px) { .founder { grid-template-columns: 200px 1fr; } }
.office dl { margin: 0; display: grid; gap: .9rem; }
.office dt { font-weight: 700; color: var(--navy); }
.office dd { margin: 0; }
address { font-style: normal; }

/* FAQ — navy bars, sky blue (navy text) when open */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: .6rem; }
.faq details { border-radius: 8px; overflow: hidden; background: transparent; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; position: relative;
  font-weight: 700; color: var(--white); background: var(--navy); border-radius: 8px;
}
.faq details[open] summary { background: var(--accent); color: var(--navy); border-radius: 8px 8px 0 0; }
.faq details[open] summary::after { color: var(--navy); }
.faq summary:hover { background: var(--navy-2); }
.faq details[open] summary:hover { background: var(--orange-dk); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--white);
}
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 1rem 1.25rem 1.1rem; }
.faq .answer p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--navy); color: var(--ice); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .hero-ctas { justify-content: center; margin-top: 1.5rem; }
.cta-band .btn-outline { color: var(--white); }

/* Long-form / legal */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.notice {
  border: 2px dashed var(--blue); background: var(--sky); color: var(--ink); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-weight: 700; margin-bottom: 2rem;
}

/* Footer — light band, blue headings, map, navy copyright bar */
.site-footer { background: var(--sky); color: var(--ink); padding-top: 3.5rem; font-size: .95rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer h2 { color: var(--navy); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 3px solid var(--accent); display: inline-block; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: start; }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.1fr .9fr 1.2fr 1fr 1.4fr; } .footer-grid.no-map { grid-template-columns: 1.1fr .9fr 1.2fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid ul a { display: inline-block; padding-block: .1rem; }
.footer-town { font-weight: 500 !important; }
.footer-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; gap: .4rem; }
.footer-logo svg { width: 150px; height: 60px; }
.footer-wordmark { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.footer-wordmark small { display: block; text-align: center; font-family: var(--font-body); font-weight: 700; font-size: .68rem; letter-spacing: .3em; color: var(--blue); margin-top: .35rem; }
.footer-brand address { font-size: .9rem; margin-top: 1rem; }
.socials { display: flex !important; gap: .6rem !important; margin-top: 1rem !important; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--navy) !important; display: grid; place-items: center; }
.socials a:hover { background: var(--accent-lt); }
.footer-map iframe { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border: 0; border-radius: 10px; background: var(--mist); }
.footer-map a { display: inline-block; margin-top: .5rem; font-size: .9rem; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-block: 1.5rem; display: grid; gap: .6rem; font-size: .85rem; color: var(--muted); }
.footer-legal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-legal p { margin: 0; }
.footer-bar { background: var(--navy); color: var(--white); text-align: center; padding: .9rem 1rem; font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Hub pages (services / service areas) */
.hub .breadcrumbs ol { color: var(--muted); justify-content: center; }
.hub .breadcrumbs a { color: var(--blue); }
.hub .breadcrumbs li + li::before, .hub .breadcrumbs [aria-current] { color: var(--muted); }
.hub h1 { font-size: clamp(1.9rem, 3.4vw + .6rem, 3rem); }

/* Photo cards (services, counties, towns) */
.photo-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.photo-card {
  flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid #9fb6d6; border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 18px rgb(var(--shadow) / .08);
}
.photo-card img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.photo-card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.photo-card-body h2, .photo-card-body h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.photo-card-body p { font-size: .98rem; }
.pill-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.2rem; min-height: 44px; border: 1.5px solid var(--navy); border-radius: var(--pill);
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.pill-link:hover { background: var(--navy); color: var(--white); }
.pill-link svg { width: 18px; height: 18px; }
.btn svg { width: 18px; height: 18px; }

/* Process — "An Easy, No-Pressure Water Treatment Experience" */
.process { background: var(--navy); color: var(--white); }
.process h2, .process h3 { color: var(--white); }
.process .section-head p { color: var(--white); }
.process-grid { display: grid; gap: 1.25rem; align-items: stretch; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.process-step {
  display: flex; gap: 1.25rem; align-items: center; padding: 1.25rem 1.4rem;
  border: 2px solid var(--white); border-radius: 12px;
}
.process-step h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.process-step p { margin: 0; color: var(--white); }
.process-icon {
  flex: none; width: 88px; height: 88px; display: grid; place-items: center;
  border: 2.5px solid var(--white); border-radius: 50%;
}
.process-icon svg { width: 38px; height: 38px; stroke-width: 1.6; }
.process-photo { margin: 0; padding: .75rem; border: 2px solid var(--white); border-radius: 12px; display: flex; }
.process-photo picture { display: block; width: 100%; }
.process-photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: 8px; }
.process .btn-primary { border-color: var(--white); }
@media (max-width: 560px) {
  .process-step { flex-direction: column; align-items: flex-start; }
  .process-icon { width: 68px; height: 68px; }
  .process-icon svg { width: 30px; height: 30px; }
}
@media (min-width: 960px) { .process-grid { grid-template-columns: 1fr 1fr; } }

/* Contact band on hub pages */
.contact-band { background: var(--navy); }
.contact-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.35fr; } .contact-band .quote-card { max-width: none; justify-self: stretch; } }
.touch-card { background: var(--white); border-radius: 12px; padding: 2rem; }
.touch-card h2 { font-size: 1.6rem; }
.touch-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
.touch-list li { display: flex; gap: .9rem; align-items: flex-start; }
.touch-list strong { display: block; color: var(--blue); }
.touch-list a { color: var(--ink); }
.touch-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--navy); display: grid; place-items: center; }
.touch-icon svg { width: 20px; height: 20px; }

/* About band — navy, sky-blue checks, sky-framed photo */
.about-band { background: var(--navy); color: var(--white); }
.about-band h2 { color: var(--white); }
.about-band a:not(.btn) { color: var(--sand); }
.about-band .eyebrow { background: var(--white); border-color: var(--white); color: var(--navy); }
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.about-points { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .8rem; }
.about-points li { display: flex; gap: .6rem; align-items: flex-start; }
.about-points svg { flex: none; width: 20px; height: 20px; margin-top: .2rem; color: var(--accent); stroke-width: 3; }
.about-photo { margin: 0; padding: 1rem; border: 2px solid var(--accent); border-radius: 6px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.about-band .btn-primary { border-color: var(--white); }

/* Reviews band */
.reviews-band { background: var(--white); }
.reviews-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; max-width: 1000px; margin-inline: auto; }
.reviews-row > * { min-width: 0; }
@media (min-width: 800px) { .reviews-row { grid-template-columns: 200px minmax(0, 1fr); } }
.reviews-summary { text-align: center; }
.reviews-summary p { margin: 0 0 .3rem; }
.reviews-score { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--navy); }
.review-card { background: var(--sky); border-radius: 10px; padding: 1.25rem; }
.review-card figure { margin: 0; }
.review-card figcaption { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.review-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 800; }
.review-card blockquote { margin: 0; }

/* Light form card (bottom contact band) */
.quote-light { background: var(--white); }

/* Flagship offer band */
.offer-band { background: var(--sky); }
.offer-card {
  display: grid; gap: 0; max-width: 1000px; margin-inline: auto; background: var(--white);
  border: 2px solid var(--navy); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgb(var(--shadow) / .12);
}
@media (min-width: 860px) { .offer-card { grid-template-columns: 360px 1fr; } }
.offer-price { background: var(--navy); color: var(--white); text-align: center; padding: 2.25rem 1.75rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.offer-price p { margin: 0; }
.offer-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); }
.offer-amount { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.2rem, 7vw, 4.4rem); line-height: 1; color: var(--white); }
.offer-terms { font-weight: 700; color: var(--white); font-size: 1.05rem; }
.offer-compare { color: var(--ice); font-size: .92rem; margin: .5rem 0 1rem !important; max-width: 28ch; }
.offer-price .btn { border-color: var(--white); width: 100%; max-width: 280px; }
.offer-call { margin-top: .75rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--white); font-weight: 600; }
.offer-call svg { width: 18px; height: 18px; }
.offer-parts { list-style: none; margin: 0; padding: 2rem 1.75rem; display: grid; gap: 1.25rem; align-content: center; }
.offer-parts li { display: flex; gap: 1rem; align-items: flex-start; }
.offer-parts strong { display: block; color: var(--navy); font-size: 1.1rem; }
.offer-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; }
.offer-icon svg { width: 24px; height: 24px; }
.offer-fine { max-width: 1000px; margin: 1rem auto 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* Home: local water problems */
.pattern-card p { color: var(--muted); }

/* Home: where your money goes */
.bundle-card { max-width: 420px; margin: 0 auto 1.5rem; text-align: center; box-shadow: 0 14px 36px rgb(var(--shadow) / .08); }
.bundle-icons { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; justify-content: center; gap: .75rem; }
.bundle-icons li { width: 64px; height: 64px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; }
.bundle-icons svg { width: 30px; height: 30px; }
.bundle-card p { color: var(--muted); margin: 0; }
.reason-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.reason-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.reason-num { flex: none; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--blue); min-width: 2.4rem; }
.reason-card h3 { margin-bottom: .35rem; }
.reason-card p { color: var(--muted); }

/* Home: service-area chips */
.chip-group { margin-top: 1.75rem; }
.chip-group h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.chip-group h3 a { color: var(--navy); }

/* Home: rounded CTA card */
.cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--ice);
  border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem); text-align: center;
}
.cta-card h2 { color: var(--white); }
.cta-card p { max-width: 60ch; margin: 0 auto 1.5rem; }
.cta-card .hero-ctas { justify-content: center; }
.cta-card .btn-primary { border-color: var(--white); }

/* About page story column */
.founder-copy { max-width: 70ch; }
.founder-role { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.founder-copy h2 { font-size: clamp(1.4rem, 1.6vw + .8rem, 1.9rem); margin-top: 2.25rem; }
.about-creds { list-style: none; padding: 0; margin: 1rem 0 1.75rem; display: grid; gap: .5rem; }
.about-creds li { padding: .6rem .9rem; background: var(--sky); border-radius: 10px; }
.about-creds strong { color: var(--navy); }
.about-callout { background: var(--sky); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; padding: 1.25rem 1.4rem; margin-top: 1.5rem; }
.about-callout p { margin: 0; }
.about-callout strong { color: var(--navy); }

/* Service-area map + counties/towns (home + contact) */
.area-map-grid { display: grid; gap: 2rem; align-items: start; margin-top: 1.5rem; }
@media (min-width: 960px) { .area-map-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.area-map { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.area-map iframe { display: block; }
.area-map-h { font-size: 1.2rem; margin-bottom: 1rem; }
.area-counties { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.area-county { display: inline-block; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: .55rem; }
.area-counties .town-links a { padding: .35rem .8rem; font-size: .9rem; }
