/* =========================================================
   Danbury Water Pros — shared stylesheet (every page uses this)
   Layout idea: navy "bedrock" hero with the lead form, then
   calm cream sections; copper is used only for actions.
   ========================================================= */

:root {
  /* Brand colors */
  --navy: #0F2B3C;        /* Deep Well Navy — primary */
  --navy-2: #173A50;      /* lighter navy for panels on navy */
  --blue: #2F7FA8;        /* Clear Water Blue — secondary */
  --blue-light: #6FB0D2;  /* blue on dark backgrounds */
  --copper: #A8612E;      /* Copper — buttons and key actions only */
  --copper-dark: #8E4F22; /* copper hover / small copper text */
  --cream: #F6F4EF;       /* Limestone — page background */
  --mist: #E6F0F4;        /* light blue panels */
  --slate: #4A5560;       /* body text */
  --green: #3E8E6E;       /* "passed" only */
  --white: #FFFFFF;
  --line: #DDD8CC;        /* borders on cream */

  /* Fonts */
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --font-accent: "Lora", Georgia, serif;

  /* Type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem);
  --fs-hero: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);

  /* Spacing & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --section: clamp(64px, 8vw, 104px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 40px -18px rgba(15, 43, 60, 0.35);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }
.sr-only { 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: 16px; top: -60px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }

/* Section heading block with small outlined tag */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { font-size: var(--fs-lg); max-width: 60ch; }
.tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-dark);
  border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 14px;
}
.section-head--center .tag { align-self: center; }
.tag--light { color: var(--blue-light); }
.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--copper); color: var(--white); }
.btn--primary:hover { background: var(--copper-dark); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { border-color: rgba(246, 244, 239, .7); color: var(--cream); }
.btn--outline-light:hover { background: var(--cream); color: var(--navy); }
.btn--block { width: 100%; }

/* ---------- Top bar + sticky header ---------- */
.topbar { background: var(--navy); color: var(--cream); font-size: var(--fs-sm); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--cream); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--blue-light); }
.topbar svg { width: 16px; height: 16px; }
.topbar__area { opacity: .85; }
@media (max-width: 640px) { .topbar__area { display: none; } .topbar .container { justify-content: center; } }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__toggle {
  font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 500; color: var(--navy);
  text-decoration: none; padding: 10px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav__link:hover, .nav__toggle:hover { color: var(--blue); background: var(--mist); }
.nav__toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--navy); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.dropdown a span { display: block; font-weight: 400; color: var(--slate); font-size: var(--fs-xs); }
.dropdown a:hover { background: var(--mist); }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown.is-open .nav__toggle svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1025px) {
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
}
.nav__cta { margin-left: 10px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; }
  .brand img { width: 160px; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 40px) 0 auto 0; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav:not(.is-open) { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: var(--fs-base); border-bottom: 1px solid var(--mist); border-radius: 0; }
  .dropdown { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .nav__cta { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--navy); color: var(--cream);
  padding-block: clamp(48px, 7vw, 88px) calc(clamp(48px, 7vw, 88px) + 110px);
}
/* "Bedrock layers" from the logo, drawn as faint bands */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 150px; pointer-events: none;
  background:
    linear-gradient(var(--copper), var(--copper)) 0 132px / 100% 3px no-repeat,
    linear-gradient(rgba(111, 176, 210, .18), rgba(111, 176, 210, .18)) 0 96px / 100% 10px no-repeat,
    linear-gradient(rgba(111, 176, 210, .12), rgba(111, 176, 210, .12)) 0 64px / 100% 10px no-repeat,
    linear-gradient(rgba(111, 176, 210, .07), rgba(111, 176, 210, .07)) 0 32px / 100% 10px no-repeat;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; min-width: 0; }
.hero h1 { color: var(--white); font-size: var(--fs-hero); font-weight: 700; }
.hero h1 .accent { color: var(--blue-light); display: block; font-size: .72em; margin-top: 8px; }
.hero__lead { font-size: var(--fs-lg); color: #D5DEE4; max-width: 52ch; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 12px; }
.check-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid rgba(111, 176, 210, .55); color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); background: rgba(255, 255, 255, .04);
}
.check-pill:hover { background: rgba(111, 176, 210, .15); color: var(--white); border-color: var(--blue-light); }
.check-pill svg { width: 20px; height: 20px; flex: none; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 6px 0 0; font-size: var(--fs-sm); color: #C3CFD7; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--blue-light); flex: none; }

/* ---------- Lead form card ---------- */
.lead-card {
  background: var(--white); color: var(--slate); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .55);
  border-top: 5px solid var(--copper); min-width: 0;
}
.lead-card h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.lead-card__sub { font-size: var(--fs-sm); margin-bottom: 18px; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 127, 168, .2); background: var(--white); }
.field input:user-invalid, .field select:user-invalid { border-color: #B23B3B; }
.form__legal { font-size: var(--fs-xs); line-height: 1.5; color: #6A737C; }
.form__legal a { color: inherit; }
.form__status { font-size: var(--fs-sm); font-weight: 600; border-radius: var(--radius); padding: 12px 14px; }
.form__status--ok { background: #E4F2EC; color: #245A45; }
.form__status--err { background: #F6E3E3; color: #8A2B2B; }
.hp { position: absolute; left: -9999px; }
.stars { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--slate); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip ul { list-style: none; margin: 0 auto; padding-block: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-strip li { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 500; color: var(--navy); line-height: 1.35; }
.trust-strip svg { width: 32px; height: 32px; flex: none; color: var(--blue); }
.trust-strip small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--slate); font-size: var(--fs-xs); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg);
}
.step h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.process__side { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Photo placeholders (swap for real photos) ---------- */
.photo {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--mist), #D3E3EB);
  display: grid; place-items: center; text-align: center; color: var(--navy);
  border: 1.5px dashed rgba(47, 127, 168, .5);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__label { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 500; max-width: 30ch; }
.photo__label svg { width: 34px; height: 44px; opacity: .8; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }

/* ---------- Water facts (city vs well) ---------- */
.water-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.water-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.water-card--city { background: var(--white); border: 1px solid var(--line); }
.water-card--well { background: var(--navy); color: #D5DEE4; }
.water-card--well h3 { color: var(--white); }
.water-card h3 { font-size: var(--fs-xl); }
.water-card__label { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-dark); }
.water-card--well .water-card__label { color: var(--blue-light); }
.reading { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.water-card--well .reading { border-color: rgba(255, 255, 255, .15); }
.reading strong { font-family: var(--font-head); font-size: var(--fs-2xl); color: var(--navy); line-height: 1; }
.water-card--well .reading strong { color: var(--white); }
.reading span { font-size: var(--fs-sm); }
.water-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.water-card .src { font-size: var(--fs-xs); opacity: .8; margin-top: auto; }
.water-card .src a { color: inherit; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.card .photo { border-radius: 0; border: 0; border-bottom: 1.5px dashed rgba(47, 127, 168, .4); }
.card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.card__kicker { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.card h3 { font-size: var(--fs-lg); }
.card ul { margin: 0; padding-left: 18px; font-size: var(--fs-sm); display: grid; gap: 4px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card--main { border: 2px solid var(--navy); }
.badge-main { position: absolute; top: 14px; left: 14px; background: var(--copper); color: var(--white); font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.about__copy h2 { font-size: var(--fs-2xl); }
.checklist { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.checklist svg { width: 28px; height: 28px; color: var(--copper); }
.checklist strong { display: block; font-family: var(--font-head); color: var(--navy); font-weight: 600; }
.checklist--light strong { color: var(--white); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.review__stars { display: flex; gap: 3px; color: var(--copper); }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-family: var(--font-accent); font-style: italic; color: var(--navy); font-size: var(--fs-base); }
.review__who { margin-top: auto; font-size: var(--fs-sm); }
.review__who strong { color: var(--navy); font-family: var(--font-head); font-weight: 600; }
.review--placeholder { border-style: dashed; }
.promise { margin-top: 32px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: clamp(24px, 3vw, 36px); background: var(--navy); color: #D5DEE4; border-radius: var(--radius-lg); }
.promise__badge { width: 132px; height: 132px; }
.promise h3 { color: var(--white); font-size: var(--fs-xl); margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--blue); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2.5px solid var(--copper); border-bottom: 2.5px solid var(--copper); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq__a { padding: 0 22px 22px; display: grid; gap: 10px; max-width: 70ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.contact__info h2 { font-size: var(--fs-2xl); }
.contact-line { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
.contact-line__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; }
.contact-line__icon svg { width: 22px; height: 22px; }
.contact-line small { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-head); color: var(--slate); }
.contact-line a, .contact-line span { font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none; font-size: var(--fs-lg); overflow-wrap: anywhere; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); min-width: 0; }
.contact-form h3 { font-size: var(--fs-xl); margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C3CFD7; padding-block: 64px 28px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 210px; height: auto; }
.site-footer h3 { color: var(--white); font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #C3CFD7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact a { color: var(--white); font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--fs-xs); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(15, 43, 60, .35);
  }
  .callbar .btn { min-height: 48px; padding: 10px 12px; }
  body { padding-bottom: 72px; }
}

/* ---------- Responsive layout ---------- */
@media (max-width: 1024px) {
  .hero__grid, .process, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .cards, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise { grid-template-columns: auto minmax(0, 1fr); }
  .promise__list { grid-column: 1 / -1; }
  .about .photo { max-width: 560px; }
}
@media (max-width: 700px) {
  .cards, .reviews, .water-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .promise { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .promise__badge { width: 104px; height: 104px; }
  .step { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .step__num { width: 44px; height: 44px; font-size: var(--fs-base); }
}
@media (max-width: 480px) { .trust-strip ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Well water note ---------- */
.water-card .note { margin-top: auto; padding: 14px 16px; border-radius: var(--radius); background: rgba(111, 176, 210, .14); border: 1px solid rgba(111, 176, 210, .35); color: var(--white); font-weight: 600; font-size: var(--fs-sm); }

/* ---------- Main bundle: Whole-Home Water + RO ---------- */
.bundle-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 40px; }
.bundle-intro .section-head { margin-bottom: 0; }
.bundle-intro .section-head h2 { font-size: var(--fs-hero); }
.included { list-style: none; margin: 0; padding: 24px; display: grid; gap: 16px; background: var(--mist); border-radius: var(--radius-lg); }
.included li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.included svg { width: 26px; height: 26px; color: var(--blue); }
.included strong { display: block; font-family: var(--font-head); color: var(--navy); font-weight: 600; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.size { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.size h3 { font-size: var(--fs-xl); }
.size__fit { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--copper-dark); }
/* Simple drawing of the tanks: taller for XL, two for Dual */
.size__tanks { display: flex; align-items: flex-end; gap: 10px; height: 96px; margin-bottom: 8px; }
.size__tanks span {
  width: 38px; height: 70px; border-radius: 19px 19px 8px 8px; background: var(--navy); position: relative;
  box-shadow: inset 0 -12px 0 var(--copper), inset 0 -26px 0 var(--blue-light), inset 0 -34px 0 var(--navy), inset 0 -44px 0 var(--blue-light);
}
.size__tanks span::before { content: ""; position: absolute; left: 50%; top: -12px; width: 20px; height: 12px; margin-left: -10px; border-radius: 4px 4px 0 0; background: var(--slate); }
.size__tanks span.xl { height: 84px; }
.bundle-foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 28px; border-radius: var(--radius-lg); background: var(--navy); color: #D5DEE4; }
.bundle-foot p { max-width: 56ch; }
@media (max-width: 1024px) { .bundle-intro { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 800px) { .sizes { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Service pages (shared by all service pages)
   ========================================================= */
.hero--sub h1 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); color: #AFC0CB; }
.breadcrumb a { color: var(--blue-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--cream); }
.dropdown a[aria-current="page"] { background: var(--mist); }

.checklist--roomy { gap: 22px; }
.checklist--roomy strong { font-size: var(--fs-lg); margin-bottom: 4px; }
.about--photo-left { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }

.steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--row .step { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; background: var(--cream); }

/* Find us + map */
.find { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.find__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.find__copy h2 { font-size: var(--fs-2xl); }
.map { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); color: var(--navy); font-size: var(--fs-sm); }

@media (max-width: 1024px) {
  .about--photo-left, .find { grid-template-columns: minmax(0, 1fr); }
  .about--photo-left .photo { order: 2; max-width: 560px; }
}
@media (max-width: 800px) { .steps--row { grid-template-columns: minmax(0, 1fr); } }
.size__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--blue-light); display: grid; place-items: center; margin-bottom: 6px; }
.size__icon svg { width: 24px; height: 26px; }
.size a { font-weight: 600; }
.other-option { margin-top: 20px; padding: 14px 18px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: var(--fs-sm); background: var(--cream); max-width: 80ch; }
.other-option strong { color: var(--navy); font-family: var(--font-head); font-weight: 600; }

/* ---------- Well water page ---------- */
.sizes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.problem__chip { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 6px; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.problem__chip--iron { background: radial-gradient(circle at 35% 35%, #C9773B, #8A4A1F); }
.problem__chip--sulfur { background: radial-gradient(circle at 35% 35%, #E3CD72, #B6962C); }
.problem__chip--sediment { background: radial-gradient(circle at 35% 35%, #BCA888, #7F6B4E); }
.problem__chip--hard { background: radial-gradient(circle at 35% 35%, #FFFFFF, #D9D5CB); }
.analysis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); background: var(--navy); color: #D5DEE4; border-radius: var(--radius-lg); }
.analysis__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.analysis__copy h2 { color: var(--white); font-size: var(--fs-2xl); }
.analysis__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.analysis__steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(111, 176, 210, .25); }
.analysis__steps span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--copper); color: var(--white); font-family: var(--font-head); font-weight: 700; }
.analysis__steps strong { display: block; color: var(--white); font-family: var(--font-head); font-weight: 600; }
.steps--on-cream .step { background: var(--white); }
.faq--on-white details { background: var(--cream); }
@media (max-width: 1024px) { .sizes--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .analysis { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sizes--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- "Have your water test results?" ---------- */
.send-section { padding-block: clamp(40px, 5vw, 64px); }
.send { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.send__card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--mist); border: 1px solid rgba(47, 127, 168, .25); min-width: 0; }
.send__card--quote { background: var(--cream); border-color: var(--line); }
.send__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--blue-light); display: grid; place-items: center; }
.send__icon svg { width: 24px; height: 24px; }
.send__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.send__body h2 { font-size: var(--fs-xl); }
.send__body h3 { font-size: var(--fs-lg); }
.send__ways { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 6px; }
.send__ways small { display: block; font-family: var(--font-head); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.send__ways a { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.send__ways a:hover { color: var(--blue); }
@media (max-width: 900px) { .send { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service Areas page ---------- */
.cards--towns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.town .card__body h3 { font-size: var(--fs-xl); }
.town .photo { aspect-ratio: 16 / 7; }
.also { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.also__label { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.also__towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.also__towns li { padding: 6px 14px; border-radius: 999px; background: var(--mist); color: var(--navy); font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 500; }
.also__towns--center { justify-content: center; margin-top: 24px; }
.also__ask { margin-left: auto; font-size: var(--fs-sm); }
.also__ask a { font-weight: 600; color: var(--navy); }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.points li { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.points svg { width: 30px; height: 30px; color: var(--copper); }
.points strong { font-family: var(--font-head); font-size: var(--fs-lg); color: var(--navy); font-weight: 600; }
.map--wide { aspect-ratio: 21 / 9; }
@media (max-width: 800px) { .points { grid-template-columns: minmax(0, 1fr); } .map--wide { aspect-ratio: 4 / 3; } .also__ask { margin-left: 0; } }
@media (max-width: 700px) { .cards--towns { grid-template-columns: minmax(0, 1fr); } .town .photo { aspect-ratio: 16 / 9; } }

/* ---------- Legal pages (Terms, Privacy) ---------- */
.hero--plain .hero__copy { max-width: 760px; padding-top: 0; }
.hero--plain h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal__updated { font-family: var(--font-head); font-size: var(--fs-sm); color: var(--blue-light); }
.legal { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px 22px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.legal__toc-title { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-dark); margin-bottom: 10px; }
.legal__toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--fs-sm); }
.legal__toc a { color: var(--navy); text-decoration: none; }
.legal__toc a:hover { color: var(--blue); text-decoration: underline; }
.legal__body { display: grid; gap: 40px; max-width: 70ch; min-width: 0; }
.legal__sec { display: grid; gap: 14px; }
.legal__sec h2 { font-size: var(--fs-xl); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal__sec ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal__sec strong { color: var(--navy); }
.footer-bottom a { color: inherit; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal__toc { position: static; } }

/* ---------- Text message consent checkbox (A2P: optional, unchecked) ---------- */
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); line-height: 1.5; color: #4A535C; cursor: pointer; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--blue); }

/* ---------- Supplier product photos (white background, shown whole) ---------- */
.photo[data-product] { background: #fff; border-style: solid; border-color: rgba(47, 127, 168, .2); }
.photo[data-product] img { object-fit: contain; padding: 18px; box-sizing: border-box; position: absolute; inset: 0; }
.photo[data-product] .badge-main { z-index: 1; }

/* ---------- Size cards: real product photos ---------- */
.size__photo { height: 170px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; padding: 12px; background: #fff; border-radius: var(--radius-md, 12px); }
.size__photo img { height: 120px; width: auto; object-fit: contain; }
.size__photo--xl img { height: 145px; }

.photo--real { border: 0; background: none; }
.photo-stack { display: grid; gap: 16px; width: 100%; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 16px 0 28px; }
.photo-pair .photo { aspect-ratio: 1 / 1; }
@media (max-width: 700px) { .photo-pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Photo gallery: big photo + clickable thumbnails ---------- */
.gallery { width: 100%; display: grid; gap: 12px; align-content: start; }
.gallery--small { max-width: 440px; margin: 16px 0 28px; }
.gallery--small .gallery__main { aspect-ratio: 4 / 5; }
.gallery__main { border: 0; background: none; }
.gallery__main--product { background: #fff; border: 1.5px solid rgba(47, 127, 168, .2); }
.gallery__main--product img { object-fit: contain; padding: 18px; box-sizing: border-box; position: absolute; inset: 0; }
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumb { width: 84px; height: 84px; padding: 0; border-radius: 10px; overflow: hidden; background: #fff; border: 2px solid rgba(47, 127, 168, .25); cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb.is-active { border-color: var(--navy); }
.gallery__thumb:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.gallery--tall { max-width: 440px; justify-self: center; }
.gallery--tall .gallery__main { aspect-ratio: 4 / 5; }
.gallery__thumb img.is-product { object-fit: contain; padding: 4px; box-sizing: border-box; }
