/* Johnson County Water Solutions: styles
   Tokens follow the brand brief: navy, water blue, light aqua, white, charcoal; Manrope. */
:root {
  --navy: #102A43;
  --blue: #0077B6;
  --blue-dark: #005F92;
  --aqua: #EAF7FC;
  --aqua-line: #CFE9F4;
  --white: #FFFFFF;
  --charcoal: #17212B;
  --muted: #4A5866;
  --line: #DCE3EA;
  --focus: #F2B705;
  --wheat: #C99A2E;
  --wheat-soft: #F6EBD0;
  --radius-s: 6px;
  --radius-m: 12px;
  --wrap: 1180px;
  --measure: 68ch;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  padding: .9rem 1.35rem; border-radius: var(--radius-s); border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--aqua); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; width: min(var(--wrap), 100% - 2.5rem); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; flex-shrink: 0; }
.brand img { width: 171px; height: 56px; display: block; }
.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; position: relative; }
.nav-link, .nav-toggle-sub {
  display: flex; align-items: center; gap: .3rem; padding: .6rem .5rem; border: 0; background: none; white-space: nowrap;
  font: 600 .93rem/1 var(--font); color: var(--charcoal); text-decoration: none; cursor: pointer; border-radius: var(--radius-s);
}
.nav-link:hover, .nav-toggle-sub:hover, .nav-link[aria-current="page"] { color: var(--blue-dark); }
.nav-toggle-sub svg { width: 10px; height: 10px; transition: transform .15s; }
.subnav {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; list-style: none; margin: 0;
  padding: .5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 18px 40px -18px rgba(16,42,67,.35);
}
.subnav a { display: block; padding: .55rem .7rem; text-decoration: none; color: var(--charcoal); font-size: .95rem; border-radius: var(--radius-s); }
.subnav a:hover { background: var(--aqua); color: var(--navy); }
.has-sub.open > .subnav { display: block; }
.has-sub.open > .nav-toggle-sub svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1081px) {
  .has-sub:hover > .subnav { display: block; }
}
.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-cta .btn { white-space: nowrap; padding: .75rem 1.1rem; font-size: .95rem; }
.header-phone { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.menu-button { display: none; margin-left: auto; background: none; border: 2px solid var(--navy); border-radius: var(--radius-s); padding: .5rem .75rem; font: 700 .95rem var(--font); color: var(--navy); cursor: pointer; }

@media (max-width: 1080px) {
  .menu-button { display: inline-flex; }
  .header-cta { order: 2; }
  .menu-button { order: 3; margin-left: 0; }
  .brand { margin-right: auto; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); max-height: calc(100vh - 76px); overflow-y: auto; }
  .primary-nav.open { display: block; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; }
  .nav-link, .nav-toggle-sub { width: 100%; justify-content: space-between; padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .subnav { position: static; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; min-width: 0; }
  .header-phone { display: none; }
}
@media (max-width: 760px) { .header-cta .btn { display: none; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: .5rem; padding: .6rem; background: var(--white); border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; padding: .8rem .5rem; }
  body { padding-bottom: 76px; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .9rem; color: var(--muted); padding-top: 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: #9AA7B4; }
.breadcrumbs a { color: var(--muted); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.bg-aqua { background: var(--aqua); }
.bg-navy { background: var(--navy); color: #D9E6F2; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy a { color: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.bg-navy .section-head p { color: #B8CADB; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--white) 0%, var(--aqua) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 17ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Hardness gauge: the signature element */
.gauge { background: var(--white); border: 1px solid var(--aqua-line); border-radius: var(--radius-m); padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 30px 60px -40px rgba(16,42,67,.45); }
.gauge h2, .gauge h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.gauge-sub { font-size: .92rem; color: var(--muted); margin-bottom: 1.25rem; }
.gauge-scale { position: relative; margin: 2.6rem 0 .6rem; }
.gauge-bar { display: grid; grid-template-columns: 1fr 2.5fr 3.5fr 3.5fr 3.5fr; height: 14px; border-radius: 7px; overflow: hidden; }
.gauge-bar span:nth-child(1) { background: #DFF3FB; }
.gauge-bar span:nth-child(2) { background: #A9DCF0; }
.gauge-bar span:nth-child(3) { background: #5BB5DE; }
.gauge-bar span:nth-child(4) { background: #1C86C2; }
.gauge-bar span:nth-child(5) { background: var(--navy); }
.gauge-band { position: absolute; top: -8px; height: 30px; border: 2px solid var(--charcoal); border-radius: 6px; background: rgba(255,255,255,.25); }
.gauge-band-label { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .82rem; font-weight: 700; color: var(--charcoal); }
.gauge-labels { display: grid; grid-template-columns: 1fr 2.5fr 3.5fr 3.5fr 3.5fr; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.gauge-labels span { padding-right: .25rem; }
.gauge-note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; border-top: 1px solid var(--line); padding-top: .75rem; }

/* Trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.trust div { display: flex; gap: .75rem; align-items: flex-start; }
.trust svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.trust strong { display: block; color: var(--navy); }
.trust span { font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* Service tiles */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-tile { display: flex; flex-direction: column; padding: 1.5rem; background: var(--white); border-top: 4px solid var(--blue); border-radius: 0 0 var(--radius-m) var(--radius-m); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-tile h3 { font-size: 1.15rem; }
.service-tile p { color: var(--muted); font-size: .98rem; flex-grow: 1; }
.service-tile a.more { font-weight: 700; text-decoration: none; }
.service-tile a.more:hover { text-decoration: underline; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* Problem list: two-column definition layout instead of card grid */
.problems { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.problem { padding: 1.25rem 0; border-top: 1px solid var(--aqua-line); }
.problem h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.problem p { margin: 0; color: var(--muted); font-size: .98rem; }
.problem .fix { display: block; margin-top: .4rem; font-size: .92rem; color: var(--navy); font-weight: 600; }
@media (max-width: 760px) { .problems { grid-template-columns: 1fr; } }

/* Two-column text + aside */
.split-wide-right { grid-template-columns: .75fr 1.25fr !important; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .split, .split-wide-right { grid-template-columns: 1fr !important; } }

/* Comparison table */
.table-scroll { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius-m); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 620px; background: var(--white); }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--navy); font-weight: 700; }

/* Solution cards */
.solutions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.solution { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.75rem; }
.solution dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: .45rem 1rem; margin: 1rem 0 1.25rem; font-size: .95rem; }
.solution dt { font-weight: 700; color: var(--navy); }
.solution dd { margin: 0; color: var(--muted); }
.solution .links { display: flex; flex-wrap: wrap; gap: 1rem; font-weight: 700; }
@media (max-width: 860px) { .solutions { grid-template-columns: 1fr; } .solution dl { grid-template-columns: 1fr; gap: .1rem; } .solution dd { margin-bottom: .5rem; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; margin: 0; padding-top: 1rem; border-top: 3px solid var(--aqua-line); }
.steps li::before { content: counter(step); display: block; font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: .6rem; }
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Why list */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.why h3 { font-size: 1.08rem; }
.why p { color: #B8CADB; margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* Areas */
.areas { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.area-list { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.area-list li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--aqua-line); margin: 0; }
.area-list a { font-weight: 700; }
.area-map { background: var(--white); border: 1px solid var(--aqua-line); border-radius: var(--radius-m); padding: 1rem; }
.area-map figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: var(--measure); }
.faq-item { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.faq-item p:last-child { margin-bottom: 0; }

/* Page header (interior pages) */
.page-hero { background: var(--aqua); padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-hero h1 { margin-top: 1.25rem; max-width: 22ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 1.75rem; }

/* Article / service body */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.content-grid > aside { position: relative; }
@media (max-width: 980px) { .content-grid { grid-template-columns: 1fr; } }
.body { max-width: var(--measure); }
.body h2 { margin-top: 2.4rem; font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.body h2:first-child { margin-top: 0; }
.body h3 { margin-top: 1.75rem; }
.body ul li::marker { color: var(--blue); }
.body table { min-width: 560px; }
.answer { font-size: 1.12rem; padding: 1.1rem 1.25rem; background: var(--aqua); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.callout { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
.callout p:last-child { margin: 0; }
.inline-cta { margin: 2.5rem 0; padding: 1.75rem; background: var(--navy); color: #D9E6F2; border-radius: var(--radius-m); }
.inline-cta h2, .inline-cta h3 { color: var(--white); margin-top: 0; }
.inline-cta p { margin-bottom: 1rem; }
.sources { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; }
.sources h2 { font-size: 1.1rem; margin-top: 0; }
.article-meta { font-size: .92rem; color: var(--muted); margin-top: .75rem; }

.side-card { position: sticky; top: 100px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
.side-card h2 { font-size: 1.15rem; }
.side-card p { font-size: .95rem; color: var(--muted); }
.side-card .btn { width: 100%; }
.side-links { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.side-links h3 { font-size: 1rem; }
.side-links ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.side-links li { margin-bottom: .5rem; }

/* Link lists (hubs) */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.link-cards li { margin: 0; }
.link-cards a { display: block; height: 100%; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: var(--charcoal); background: var(--white); }
.link-cards a:hover { border-color: var(--blue); }
.link-cards strong { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: .35rem; }
.link-cards span { font-size: .95rem; color: var(--muted); }

/* Forms */
.form-panel { background: var(--white); color: var(--charcoal); border-radius: var(--radius-m); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); }
.form-panel h2, .form-panel h3 { color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .35rem; }
.field .hint { font-weight: 500; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem/1.4 var(--font); color: var(--charcoal); padding: .75rem .85rem;
  border: 1.5px solid #B9C6D2; border-radius: var(--radius-s); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0,119,182,.2); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .88rem; font-weight: 600; margin: .35rem 0 0; }
.field-note { color: var(--muted); font-size: .88rem; margin: .35rem 0 0; }
.hp { position: absolute; left: -5000px; }
.form-privacy { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
.form-status { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-s); font-weight: 600; }
.form-status.success { background: #E7F6EC; color: #145A32; border: 1px solid #A6D9B6; }
.form-status.error { background: #FDECEA; color: #8A1C12; border: 1px solid #F3B4AC; }
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

/* Solution finder */
.finder { background: var(--white); border: 1px solid var(--aqua-line); border-radius: var(--radius-m); padding: clamp(1.5rem, 3vw, 2.25rem); }
.finder fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.finder legend { font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-bottom: .75rem; }
.choice-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: .6rem 1rem; border: 1.5px solid #B9C6D2; border-radius: 999px; font-weight: 600; font-size: .95rem; background: var(--white); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.finder-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .finder-row { grid-template-columns: 1fr; } }
.finder-result { margin-top: 1.5rem; padding: 1.5rem; background: var(--aqua); border-radius: var(--radius-m); }
.finder-result h3 { margin-top: 0; }
.finder-result ul { margin-bottom: 1rem; }
.finder-disclaimer { font-size: .85rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #B8CADB; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #D9E6F2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.15rem; margin-bottom: .5rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .mobile-bar, .site-footer, .side-card { display: none; } }

figure { margin: 0; }
@media (max-width: 520px) {
  .gauge { padding: 1.25rem 1rem 1rem; }
  .gauge-labels { font-size: .7rem; }
}

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--navy); color: #D9E6F2; font-size: .85rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; width: min(var(--wrap), 100% - 2.5rem); }
.utility-links { display: flex; gap: 1.25rem; }
.utility-bar a { color: var(--white); font-weight: 700; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
@media (max-width: 760px) { .utility-inner > span:first-child { display: none; } .utility-inner { justify-content: center; } }

/* Footer brand */
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand img { width: 30px; height: auto; }
.footer-tag { color: var(--wheat-soft); font-weight: 600; margin-top: -.25rem; }

/* ---------- Buttons ---------- */
.btn-small { padding: .6rem 1rem; font-size: .92rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product-grid-sm { grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
@media (max-width: 980px) { .product-grid, .product-grid-sm { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .product-grid, .product-grid-sm { grid-template-columns: 1fr; } }
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; position: relative; }
.product-card::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 0; height: 3px; background: var(--wheat); border-radius: 0 0 3px 3px; }
.product-card-top { display: flex; gap: .85rem; align-items: center; margin-bottom: .75rem; }
.product-card-top img { width: 36px; height: auto; flex-shrink: 0; }
.product-card h3 { font-size: 1.15rem; margin: 0; }
.product-card h3 a { color: var(--navy); text-decoration: none; }
.product-card h3 a:hover { color: var(--blue-dark); text-decoration: underline; }
.product-type { font-size: .88rem; color: var(--muted); margin: .15rem 0 0; line-height: 1.35; }
.product-card > p { color: var(--muted); font-size: .97rem; }
.product-card .btn { margin-top: auto; align-self: flex-start; }
.product-card.compact { padding: 1.25rem; }
.price-line { font-weight: 700; color: var(--navy); font-size: .95rem; margin: .25rem 0 1rem; }
.price-lg { font-size: 1.05rem; margin-top: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .75rem; }
.chips li { margin: 0; font-size: .82rem; font-weight: 700; color: var(--navy); background: var(--aqua); border: 1px solid var(--aqua-line); padding: .25rem .6rem; border-radius: 999px; }
.chips-lg li { font-size: .92rem; padding: .4rem .8rem; }
.systems-inline { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.systems-inline .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---------- Product page ---------- */
.product-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: 1rem; }
@media (max-width: 900px) { .product-hero-grid { grid-template-columns: 1fr; } }
.product-type-lg { font-weight: 700; color: var(--blue-dark); margin: 1.25rem 0 .25rem; }
.product-hero h1 { margin-top: 0; }
.product-plate { background: var(--white); border-radius: 18px; padding: 2rem; border: 1px solid var(--aqua-line); box-shadow: 0 30px 60px -40px rgba(16,42,67,.5); position: relative; overflow: hidden; }
.product-plate::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--navy), var(--blue) 60%, var(--wheat)); }
.product-plate img { width: 56px; height: auto; margin-bottom: .75rem; }
.plate-name { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin: 0 0 1rem; line-height: 1; }
.plate-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.plate-list li { padding: .55rem 0; border-top: 1px solid var(--line); font-weight: 700; color: var(--charcoal); display: flex; gap: .6rem; align-items: center; }
.plate-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.plate-facts { margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
.plate-facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; }
.plate-facts dt { color: var(--muted); }
.plate-facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.proscons h2 { margin-top: 1rem !important; font-size: 1.35rem !important; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; gap: 0; } }
.check-list, .limit-list { list-style: none; padding: 0; }
.check-list li, .limit-list li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.limit-list li::before { content: "–"; position: absolute; left: .2rem; color: var(--wheat); font-weight: 800; }

/* ---------- Comparison table ---------- */
.compare { min-width: 860px; }
.compare thead th { vertical-align: bottom; }
.compare thead th a { color: var(--white); text-decoration: none; display: block; font-size: 1.02rem; }
.compare thead th a:hover { text-decoration: underline; }
.compare thead th span { display: block; font-weight: 500; font-size: .8rem; color: #B8CADB; margin-top: .2rem; }
.compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--white); min-width: 11rem; }
.compare thead th:first-child { background: var(--navy); }
.compare td { text-align: center; }
.compare .yes { color: var(--blue); font-weight: 800; font-size: 1.15rem; }
.compare .no { color: #9AA7B4; }
.compare td.is-current { background: var(--wheat-soft); font-weight: 600; }
.compare thead th.is-current { background: var(--blue-dark); box-shadow: inset 0 -4px 0 var(--wheat); }
.bg-navy-soft { background: linear-gradient(180deg, var(--aqua), var(--white)); }

/* ---------- Systems hub ---------- */
.jump-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.jump-links a { font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--navy); background: var(--white); border: 1px solid var(--aqua-line); border-radius: 999px; padding: .45rem .9rem; }
.jump-links a:hover { border-color: var(--blue); }
.category { scroll-margin-top: 110px; }
.well-callout { margin-bottom: 1.5rem; border-left: 4px solid var(--wheat); }

/* ---------- Maintenance plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.75rem; background: var(--white); display: flex; flex-direction: column; border-top: 4px solid var(--blue); }
.plan-aud { color: var(--muted); }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 0 0 1rem; }
.plan-price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan-pending { font-weight: 700; color: var(--navy); background: var(--aqua); border-radius: var(--radius-s); padding: .6rem .8rem; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* Two-row desktop header: logo + CTA on top, full navigation below */
@media (min-width: 1081px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: .6rem; }
  .brand { margin-right: auto; }
  .primary-nav { order: 3; flex-basis: 100%; margin-left: 0; border-top: 1px solid var(--line); margin-top: .6rem; }
  .primary-nav > ul { gap: .1rem; padding: .3rem 0; margin-left: -.5rem; }
  .menu-button { display: none; }
}
html { scroll-padding-top: 140px; }
.crumb-bar { background: var(--aqua); }
.compare thead th:not(:first-child) { text-align: center; }

/* ---------- Price ladder ---------- */
.ladder { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white); }
.ladder li { display: grid; grid-template-columns: 1.1fr 1.4fr .8fr auto; gap: 1rem 1.5rem; align-items: center; padding: 1.1rem 1.5rem; margin: 0; border-top: 1px solid var(--line); }
.ladder li:first-child { border-top: 0; }
.ladder li:nth-child(even) { background: #F8FCFE; }
.ladder-problem { font-weight: 800; color: var(--navy); font-size: 1.08rem; }
.ladder-system a { font-weight: 700; }
.ladder-system small { display: block; color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.ladder-price { font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.ladder-note { font-size: .92rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 760px) {
  .ladder li { grid-template-columns: 1fr auto; padding: 1rem 1.1rem; }
  .ladder-problem { grid-column: 1 / -1; }
  .ladder-system { grid-column: 1 / -1; }
}
.includes-line { font-size: .95rem; color: var(--muted); margin: -.5rem 0 0; }

/* Systems by water type */
.by-type { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.by-type-item { background: var(--white); border: 1px solid var(--aqua-line); border-radius: var(--radius-m); padding: 1.25rem; scroll-margin-top: 150px; }
.by-type-item h3 { font-size: 1.05rem; }
.by-type-item p { font-size: .92rem; color: var(--muted); }
.by-type-item ul { list-style: none; padding: 0; margin: 0; font-weight: 700; }
@media (max-width: 1100px) { .by-type { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .by-type { grid-template-columns: 1fr; } }

/* Four-tier plans */
.plan-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .plan-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plan-grid-4 { grid-template-columns: 1fr; } }
.plan h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.plan-bronze { border-top-color: #A9713A; }
.plan-silver { border-top-color: #8E9AA6; }
.plan-gold { border-top-color: var(--wheat); }
.plan-platinum { border-top-color: var(--navy); background: linear-gradient(180deg, #F3F8FB, var(--white) 40%); }
.plan-free { font-size: 1.15rem; color: var(--blue-dark); }
.plan-from { font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: .5rem; }
.plan-badge { display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 800; color: var(--navy); background: var(--wheat-soft); border: 1px solid var(--wheat); padding: .2rem .6rem; border-radius: 999px; margin: 0 0 .6rem; }
.page-hero { padding-top: 1.25rem; }
.page-hero h1 { margin-top: 0; }
.product-hero .product-type-lg { margin-top: 0; }
@media (min-width: 1081px) { .primary-nav .nav-link, .primary-nav .nav-toggle-sub { padding-left: .42rem; padding-right: .42rem; } }

/* =========================================================
   Mobile pass
   ========================================================= */
.compare-cards { display: none; }
.content-grid > * { min-width: 0; }
.body { overflow-wrap: anywhere; }
.body .table-stack table { min-width: 0; }

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 2rem); }
  .utility-bar { display: none; }
  .site-header .header-inner { min-height: 64px; padding-top: 0; }
  .brand img { width: 140px; height: auto; }
  .primary-nav { max-height: calc(100vh - 64px); }
  html { scroll-padding-top: 80px; }

  h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  h2 { font-size: 1.5rem; }
  .lede { font-size: 1.05rem; }
  .section { padding: 2.75rem 0; }
  .section-tight { padding: 2rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .section-head p { font-size: 1rem; }
  .hero { padding: 1.75rem 0 2.5rem; }
  .page-hero { padding-bottom: 2rem; }
  .content-grid { padding: 2rem 0; gap: 1.5rem; }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .btn { padding: .85rem 1.1rem; }

  /* hero hardness gauge */
  .gauge { padding: 1.1rem 1rem 1rem; }
  .gauge-labels { font-size: .66rem; }
  .gauge-band-label { font-size: .75rem; }

  /* trust bar: compact two-up */
  .trust { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.25rem 0; }
  .trust div { gap: .5rem; }
  .trust svg { width: 20px; height: 20px; }
  .trust strong { font-size: .92rem; line-height: 1.3; }
  .trust span { font-size: .82rem; line-height: 1.4; display: block; }

  .service-tile, .solution, .product-card, .plan, .side-card, .form-panel, .finder { padding: 1.2rem; }
  .side-card { position: static; }
  .problem { padding: 1rem 0; }

  /* content tables stack into labeled cards */
  .table-stack { border: 0; overflow: visible; }
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack tbody th { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: .75rem; padding: .35rem 0; background: var(--white); }
  table.stack td { border: 0; padding: .4rem 1rem; text-align: left; }
  table.stack td:first-child { font-weight: 700; color: var(--navy); padding-top: .6rem; }
  table.stack td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .1rem; }
  table.stack td:empty { display: none; }

  /* system comparison: cards instead of a wide table */
  .compare-scroll { display: none; }
  .compare-cards { display: grid; gap: .9rem; }
  .compare-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; }
  .compare-card.is-current { border-color: var(--wheat); box-shadow: inset 0 3px 0 var(--wheat); }
  .compare-card h3 { font-size: 1.1rem; margin: 0; }
  .compare-card-type { font-size: .88rem; color: var(--muted); margin: .15rem 0 .6rem; }
  .compare-card dl { margin: 0; }
  .compare-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
  .compare-card dt { color: var(--charcoal); }
  .compare-card dd { margin: 0; text-align: right; font-weight: 600; color: var(--navy); }
  .compare-card .yes { color: var(--blue); }
  .compare-card .no { color: #8796A5; font-weight: 500; }

  /* price ladder */
  .ladder li { padding: 1rem; gap: .35rem 1rem; }
  .ladder-problem { font-size: 1rem; }
  .ladder-price { font-size: 1rem; }

  /* product page */
  .product-plate { padding: 1.25rem; }
  .plate-name { font-size: 1.6rem; }
  .plate-facts div { grid-template-columns: 7rem 1fr; }
  .proscons { gap: 0; }

  /* areas */
  .area-list { columns: 1; }
  .areas { gap: 1.5rem; }

  /* forms: 16px inputs stop iOS zooming on focus */
  .field input, .field select, .field textarea { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .consult-form .btn[type=submit] { width: 100%; }

  .steps li::before { font-size: 2rem; }
  .why { gap: 1.25rem; }
  .footer-grid { gap: 1.5rem; }
  .site-footer { padding: 2.5rem 0 1.5rem; }

  .mobile-bar { padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px -12px rgba(16,42,67,.35); }
  .mobile-bar .btn { padding: .75rem .5rem; }
  body { padding-bottom: 72px; }
}
@media (max-width: 760px) {
  .compare-card .yes, .compare-card .no { white-space: nowrap; }
  .compare-card dd { flex-shrink: 0; max-width: 55%; }
}
@media (max-width: 1080px) {
  .primary-nav > ul { padding-bottom: 6rem; }
  .primary-nav.open { box-shadow: 0 20px 30px -20px rgba(16,42,67,.4); }
}

/* Text wordmark (emblem + name) */
.brand { gap: .55rem; }
.brand img { width: 33px !important; height: auto !important; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top { font-weight: 800; font-size: 1.12rem; color: var(--navy); letter-spacing: -0.02em; }
.brand-bottom { font-weight: 700; font-size: .72rem; color: var(--blue); letter-spacing: .14em; text-transform: uppercase; margin-top: .15rem; }
@media (max-width: 760px) { .brand-top { font-size: 1rem; } .brand-bottom { font-size: .66rem; } .brand img { width: 28px !important; } }

/* Product photos */
.product-media { display: block; margin: -1.5rem -1.5rem 1.1rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-m) var(--radius-m) 0 0; background: #fff; border-bottom: 1px solid var(--line); }
.product-card.compact .product-media { margin: -1.25rem -1.25rem 1rem; }
.product-media img, .plate-media img { width: 100%; height: 100%; display: block; }
.fit-contain img { object-fit: contain; padding: .75rem; }
.fit-cover img { object-fit: cover; object-position: center 60%; }
.product-card::before { z-index: 1; }
.plate-media { aspect-ratio: 4 / 3; margin: -2rem -2rem 1.25rem; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .product-media { margin: -1.2rem -1.2rem 1rem; }
  .plate-media { margin: -1.25rem -1.25rem 1rem; }
}
