/* Brookfield Water Softener: "Strata" theme (original, 2026).
   Limestone paper, aquifer teal, clay accent. Young Serif + Figtree (SIL OFL, self-hosted). */
@font-face { font-family: "Young Serif"; font-weight: 400; font-display: swap; src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2"); }

:root {
  --paper: #f4efe6; --paper-2: #ebe3d4; --card: #fffdf8; --ink: #1d2a2e; --ink-2: #44545a;
  --teal: #0d5c63; --teal-d: #08404a; --teal-l: #d6e7e4; --clay: #8f4a1c; --clay-l: #f1dfcc; --sand: #c9a46b;
  --line: #d7cdbb; --focus: #c2410c; --r: 6px; --wrap: 1180px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.18; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.4rem); }
h4 { font: 700 1rem/1.4 var(--sans); margin: 0 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: .75rem; color: #fff; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .97); border-bottom: 1px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: auto; height: 56px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.1; }
.brand-name span { display: block; font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.head-actions { display: flex; align-items: center; gap: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; background: var(--teal); color: #fff; font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--teal); }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; text-decoration: none; }
.btn img { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--teal-d); }
.btn-ghost:hover { background: var(--teal-l); color: var(--teal-d); }
.btn-light { background: #fff; color: var(--teal-d); border-color: #fff; }
.btn-light:hover { background: var(--clay-l); color: var(--teal-d); border-color: var(--clay-l); }
.btn-call { padding-inline: .9rem; white-space: nowrap; }
.nav-toggle { min-height: 44px; padding: .5rem .95rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; font: 700 .95rem var(--sans); cursor: pointer; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
.site-nav { display: none; flex-basis: 100%; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .35rem 0 .6rem; display: grid; gap: .1rem; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .6rem .35rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current="page"] { color: var(--teal-d); box-shadow: inset 4px 0 0 var(--clay); padding-left: .8rem; }
@media (max-width: 420px) { .call-label { display: none; } .brand-name { font-size: 1rem; } }
@media (min-width: 1100px) {
  .head-row { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; flex-basis: auto; order: 2; }
  .head-actions { order: 3; }
  .site-nav ul { display: flex; gap: .2rem; padding: 0; }
  .site-nav a { border: 0; padding: .5rem .6rem; border-radius: var(--r); font-size: .97rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--clay); padding-left: .6rem; border-radius: 0; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 1rem 0 0; margin: 0; font-size: .9rem; color: var(--ink-2); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--clay); }

/* Strata rule: the site's signature layered band */
.strata-rule { height: 14px; background: linear-gradient(var(--sand) 0 3px, var(--paper-2) 3px 6px, var(--teal) 6px 9px, var(--clay) 9px 11px, var(--teal-d) 11px); }

/* Hero */
.hero { padding: 2.2rem 0 2.6rem; }
.hero-grid { display: grid; gap: 1.8rem; align-items: center; }
.eyebrow { font: 700 .8rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-bottom: .7rem; }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.28rem); color: var(--ink-2); max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.hero-figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.hero-figure figcaption, .diagram figcaption { font-size: .9rem; color: var(--ink-2); margin-top: .6rem; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } .hero { padding: 3.2rem 0 3.6rem; } }

/* Sections */
.section { padding: 2.6rem 0; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.band-teal { background: var(--teal-d); color: #f2f7f6; }
.band-teal h2, .band-teal h3 { color: #fff; }
.band-teal a:not(.btn) { color: #fff; }
.band-clay { background: var(--clay-l); }
.prose { max-width: 46rem; }
.prose-wide { max-width: 60rem; }
.two-col { display: grid; gap: 2rem; }
.two-col > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } .two-col.wide-left { grid-template-columns: 1.4fr 1fr; } .section { padding: 3.6rem 0; } }

/* Cards */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.4rem; }
.cards-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.3rem; min-width: 0; }
.band .card { background: var(--paper); }
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; margin-bottom: .8rem; }
.card-link { font-weight: 700; }
.core { position: relative; padding-top: 2.4rem; }
.core::before { content: attr(data-depth); position: absolute; top: .9rem; left: 1.3rem; font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }

/* Numbered steps */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: .9rem; margin-top: 1.2rem; }
.steps > li { counter-increment: s; position: relative; padding: 1rem 1.1rem 1rem 3.6rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 1rem; top: .95rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--teal); color: #fff; font: 700 .95rem/1.9rem var(--sans); text-align: center; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p:last-child { margin-bottom: 0; }

/* Check list */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before { content: ""; position: absolute; left: .3rem; top: .28em; width: .5rem; height: .9rem; border: solid var(--teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Notes and sources */
.note { border-left: 5px solid var(--clay); background: var(--clay-l); padding: 1rem 1.2rem; border-radius: 0 var(--r) var(--r) 0; margin: 1.4rem 0; }
.note p:last-child { margin-bottom: 0; }
.note-title { font-weight: 800; margin-bottom: .3rem; }
.fact { border: 2px solid var(--teal); border-radius: 12px; padding: 1.1rem 1.25rem; background: var(--card); }
.fact .fact-k { font: 700 .78rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--teal-d); margin-bottom: .3rem; }
.sources { font-size: .93rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; }
.sources h2 { font-size: 1.2rem; }
.sources ol { padding-left: 1.2rem; }

/* Figures */
.diagram { margin-inline: 0; margin: 1.6rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.diagram img { width: 100%; }

/* Owner photos (illustrative, captioned) */
.photo { margin: 1.4rem 0; }
.photo img { width: 100%; height: auto; border-radius: 12px; background: var(--paper-2); }
.photo figcaption { font-size: .86rem; line-height: 1.45; color: var(--ink-2); margin-top: .5rem; }
.photo-hero { margin: 0; }
.photo-hero img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.photo-article { margin: 1.4rem 0 0; max-width: 60rem; }
.photo-article img { aspect-ratio: 21 / 9; object-fit: cover; }
.photo-pair-row { display: grid; gap: 1.1rem; margin-bottom: 1.6rem; }
.photo-pair-row > * { min-width: 0; margin: 0; }
.photo-pair img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 700px) { .photo-pair-row { grid-template-columns: 1fr 1fr; } }
.card-photo { margin: -1.25rem -1.3rem 1rem; }
.card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px 12px 0 0; }
.diagram-narrow { max-width: 640px; margin-inline: auto; }
.related { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.4rem; }
.related h2 { font-size: 1.35rem; margin-top: 0; }
.guide-list.compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .9rem; }
.guide-list.compact .g-body { padding: .8rem .95rem 1rem; }
.guide-list.compact p.g-title { font-size: 1.05rem; margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
caption { text-align: left; padding: .8rem 1rem 0; font-weight: 700; }
th, td { padding: .65rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--teal-l); font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }

/* Article layout */
.article-head { padding: 1.6rem 0 1.2rem; }
.article-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.article-grid > * { min-width: 0; }
.article-body h2 { margin-top: 2rem; }
.article-body > h2:first-child { margin-top: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; font-size: .95rem; align-self: start; }
.toc h2 { font: 800 .8rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: .6rem; }
.toc ol { margin: 0 0 1rem; padding-left: 1.1rem; }
.toc .btn { width: 100%; }
@media (min-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 3.5rem; } .toc { position: sticky; top: 6rem; order: 2; } }

/* FAQ */
.faq { display: grid; gap: .7rem; margin-top: 1.2rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 1.1rem; }
.faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 700; list-style-position: outside; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.faq-item p { margin-bottom: 1rem; }

/* CTA */
.cta { display: grid; gap: 1rem; align-items: center; }
.cta p { margin: 0; }
.big-tel { display: inline-flex; align-items: center; min-height: 48px; }
.cta .big-tel { font: 400 clamp(1.8rem, 5vw, 2.6rem)/1.1 var(--serif); color: #fff; text-decoration: none; }
.cta .big-tel:hover { text-decoration: underline; color: #fff; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr 1fr; } .cta .actions { justify-content: flex-end; margin: 0; } }

/* Guide list */
.guide-list { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.guide-list li { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.guide-list img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--teal-l); }
.guide-list .g-body { padding: 1.1rem 1.2rem 1.3rem; }
.guide-list .g-kicker { font: 700 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: .4rem; }
.guide-list p.g-title { font: 400 1.25rem/1.25 var(--serif); margin-bottom: .5rem; }
.guide-list p.g-title a { color: var(--ink); text-decoration: none; }
.guide-list p.g-title a:hover { color: var(--teal); text-decoration: underline; }

/* Contact panel */
.call-panel { background: var(--teal-d); color: #fff; border-radius: 16px; padding: 1.6rem; }
.call-panel h1, .call-panel h2 { color: #fff; }
.call-panel a:not(.btn) { color: #fff; }
.svc-list { list-style: none; padding: 0; margin: .4rem 0 .9rem; display: grid; gap: .3rem; }
.svc-list li { padding-left: 1.1rem; position: relative; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--sand); }
.call-panel .big-tel { display: inline-block; font: 400 clamp(2rem, 7vw, 3rem)/1.1 var(--serif); color: #fff; margin: .2rem 0 1rem; }

/* Footer */
.site-foot { background: var(--ink); color: #dfe6e7; margin-top: 0; }
.site-foot a { color: #fff; }
.site-foot a.btn-light, .site-foot a.btn-light:hover { color: var(--teal-d); }
.foot-grid { display: grid; gap: 2rem; padding: 2.4rem 0 1.6rem; }
.foot-name { font: 400 1.4rem/1.2 var(--serif); color: #fff; margin-bottom: .5rem; }
.foot-nav { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-h { font: 800 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); margin-bottom: .6rem; }
.foot-nav ul { list-style: none; padding: 0; margin: 0; }
.foot-nav li { margin-bottom: .45rem; }
.foot-nav a[aria-current="page"] { font-weight: 800; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid #3c4b50; padding: 1rem 0 1.6rem; font-size: .9rem; }
.foot-base p { margin: 0; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 2fr; gap: 3rem; } }

@media (prefers-reduced-motion: no-preference) { a, .btn { transition: background-color .15s, color .15s; } }
@media print { .site-head, .site-foot, .toc .btn { display: none; } }
