/* New Berlin Water Softener: "Prairie Line" design (original, Taro, 17 Nov 2026).
   Oat paper, spruce ink, wheat and clay accents. Plain and soft organic surfaces only: no repeated square motifs. */
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("../fonts/bitter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --oat: #f6f1e7;
  --oat-2: #ece4d3;
  --paper: #fffdf8;
  --spruce: #17352d;
  --spruce-2: #24493f;
  --moss: #3f6b4f;
  --wheat: #e2b65c;
  --wheat-soft: #f5e3b8;
  --clay: #a4482a;
  --clay-dark: #8a3a20;
  --ink: #1f2623;
  --muted: #4a5550;
  --line: #d5cab3;
  --radius: 18px;
  --radius-lg: 32px;
  --shadow: 0 14px 40px rgba(23, 53, 45, 0.12);
  --wrap: 1160px;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--oat); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--spruce); line-height: 1.18; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--spruce); color: #fff; padding: 0.7rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; color: #fff; }
main:focus { outline: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.25rem; border-radius: 999px; font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; }
.btn-call { background: var(--clay); color: #fff; }
.btn-call:hover { background: var(--clay-dark); color: #fff; }
.btn-ghost { border-color: var(--spruce); color: var(--spruce); background: transparent; }
.btn-ghost:hover { background: var(--spruce); color: #fff; }
.btn-light { background: var(--wheat); color: var(--spruce); }
.btn-light:hover { background: var(--wheat-soft); color: var(--spruce); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--spruce); }
.brand img { width: auto; height: 52px; flex: none; }
.brand .brand-name{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.brand-name { font: 700 1.12rem/1.1 var(--serif); }
.brand-name span { display: block; font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss); }
.head-actions { display: flex; align-items: center; gap: 0.5rem; }
.head-call { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.head-call img { filter: brightness(0) invert(1); }
.nav-toggle { display: none; min-height: 44px; padding: 0.5rem 1rem; border-radius: 999px; border: 2px solid var(--spruce); background: transparent; color: var(--spruce); font: 700 0.95rem var(--sans); cursor: pointer; }
.site-nav { flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; }
.site-nav li { margin: 0; }
.site-nav a { display: inline-block; padding: 0.5rem 0.8rem; border-radius: 999px; text-decoration: none; color: var(--spruce); font-weight: 600; font-size: 0.97rem; }
.site-nav a:hover { background: var(--oat-2); }
.site-nav a[aria-current="page"] { background: var(--spruce); color: #fff; }
@media (min-width: 900px) {
  .head-row { flex-wrap: nowrap; }
  .site-nav { flex-basis: auto; order: 2; }
  .head-actions { order: 3; }
}
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav[data-open="false"] { display: none; }
  .js .site-nav[data-open="true"] { display: block; padding: 0.4rem 0 0.6rem; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { display: block; padding: 0.75rem 0.9rem; }
}
@media (max-width: 420px) {
  .call-word { display: none; }
  .brand-name { font-size: 1rem; }
  .brand img { width: auto; height: 40px; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0.9rem 0 0; margin: 0; font-size: 0.92rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }

/* Hero: photo panel with a curved lower edge and a paper card */
.hero { padding: 1.6rem 0 2.6rem; }
.hero-grid { display: grid; gap: 1.6rem; align-items: center; }
.hero-panel .eyebrow { margin-bottom: 0.4rem; }
.lede { font-size: 1.14rem; color: var(--muted); }
.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px; box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; }
.hero-media figcaption, figure figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.55rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .hero { padding: 2.4rem 0 3.4rem; }
}
.hero-plain { padding: 2rem 0 1.4rem; }
.eyebrow { font: 700 0.8rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-dark); margin: 0 0 0.7rem; }

/* Sections */
.section { padding: 3rem 0; }
.section.tint { background: var(--paper); }
.section.deep { background: var(--spruce); color: #eef2ec; }
.section.deep h2, .section.deep h3 { color: #fff; }
.section.deep a:not(.btn) { color: var(--wheat-soft); }
.section.deep .eyebrow { color: var(--wheat); }
.curve-top { position: relative; border-top-left-radius: 50% 48px; border-top-right-radius: 50% 48px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.split { display: grid; gap: 2rem; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .split.rev { grid-template-columns: 0.85fr 1.15fr; }
  .split.rev > :first-child { order: 2; }
}
figure.figure { margin: 0; }
figure.figure img.photo { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
figure.figure img.diagram { width: 100%; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.pair { display: grid; gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair figure { margin: 0; }
.pair img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Note card, check lists, steps */
.note { background: var(--wheat-soft); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.4rem 0; border-left: 6px solid var(--wheat); }
.note p:last-child { margin-bottom: 0; }
.note h3 { margin-bottom: 0.4em; }
.aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.aside p:last-child, .aside ul:last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7em; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--moss); box-shadow: inset 0 0 0 3px var(--wheat-soft); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 1rem 3.2rem; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--spruce); color: #fff; display: grid; place-items: center; font: 700 1rem var(--serif); }
.steps > li h3 { margin-bottom: 0.25em; padding-top: 0.2rem; }
.cards { display: grid; gap: 1.2rem; list-style: none; padding: 0; margin: 1.4rem 0; }
@media (min-width: 720px) { .cards.c2 { grid-template-columns: 1fr 1fr; } .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.cards > li { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 1.3rem; border: 1px solid var(--line); }
.cards > li h3 { margin-bottom: 0.4em; }
.cards > li p:last-child { margin-bottom: 0; }
.cards .icon { width: 44px; height: 44px; margin-bottom: 0.7rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--oat-2); color: var(--spruce); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
caption { text-align: left; padding: 0.8rem 0.9rem 0; font-weight: 700; color: var(--spruce); }

/* FAQ */
.faq { max-width: 72ch; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.7rem; }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font: 700 1.05rem/1.35 var(--serif); color: var(--spruce); list-style-position: inside; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item > p, .faq-item > ul { padding: 0 1.2rem; }
.faq-item > p:first-of-type { padding-top: 0.9rem; }

/* CTA band */
.cta-band { background: var(--spruce); color: #eef2ec; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 90px; padding: 2rem; display: grid; gap: 1rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1.4fr auto; padding: 2.4rem 2.8rem; } }

/* Guides */
.guide-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .guide-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .guide-list.g4 { grid-template-columns: repeat(4, 1fr); } .guide-list.g5 { grid-template-columns: repeat(3, 1fr); } }
.guide-list > li { margin: 0; }
.guide-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.guide-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.guide-card h3 { font-size: 1.08rem; margin: 1rem 1.1rem 0.4rem; }
.guide-card h3 a { color: var(--spruce); text-decoration: none; }
.guide-card h3 a:hover { text-decoration: underline; }
.guide-card p { margin: 0 1.1rem 1.1rem; color: var(--muted); font-size: 0.97rem; }
.src { font-size: 0.88rem; color: var(--muted); }
.sources { font-size: 0.93rem; color: var(--muted); }
.sources li { margin-bottom: 0.5em; }

/* Contact */
.call-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.8rem; border: 1px solid var(--line); }
.call-card .big { font: 700 clamp(1.6rem, 5vw, 2.3rem)/1.1 var(--serif); color: var(--spruce); margin: 0.2rem 0 1rem; }
.call-card .big a { color: inherit; text-decoration: none; }

/* Footer */
.site-foot { background: var(--spruce); color: #dfe7e1; margin-top: 2.5rem; border-top-left-radius: 50% 40px; border-top-right-radius: 50% 40px; }
.site-foot a:not(.btn) { color: #fff; }
.foot-grid { display: grid; gap: 2rem; padding: 3.2rem 0 2rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1.6fr; } }
.foot-name { font: 700 1.3rem var(--serif); color: #fff; margin-bottom: 0.5rem; }
.foot-nav { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .foot-nav { grid-template-columns: repeat(3, 1fr); } }
.foot-h { font: 700 0.85rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--wheat); margin-bottom: 0.6rem; }
.foot-nav ul { list-style: none; padding: 0; margin: 0; }
.foot-nav li { margin-bottom: 0.45rem; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 1.2rem 0 2rem; font-size: 0.9rem; color: #c9d4cd; }
.foot-base p { margin-bottom: 0.5rem; }

/* 404 */
.lost { padding: 3rem 0; text-align: center; }
.lost img { margin: 0 auto 1.4rem; }
.lost .actions { justify-content: center; }

/* New Berlin: sitewide map and contact form section */
.contact-section{padding:3rem 0 0}
.contact-split{display:grid;grid-template-columns:minmax(0,1fr);gap:1.25rem;align-items:stretch}
.contact-split>*{min-width:0}
.contact-location{display:flex;flex-direction:column;gap:0.9rem;min-width:0;background:var(--spruce);color:#eef2ec;padding:clamp(1.5rem,3vw,2.35rem);border-radius:var(--radius-lg)}
.contact-location .eyebrow{color:var(--wheat);margin:0}
.contact-location h2{color:#fff;font-size:clamp(1.55rem,2.3vw,2.15rem);margin:0;line-height:1.2;text-align:left}
.contact-location .contact-intro{margin:0;max-width:55ch;text-align:left}
.contact-location .btn{align-self:flex-start}
.contact-location address{font-style:normal;font-weight:600;color:#eef2ec;line-height:1.45;margin-top:0.4rem}
.contact-map{display:flex;flex:1 1 auto;min-height:330px;overflow:hidden;border-radius:var(--radius);background:var(--oat-2);margin-top:0.25rem}
.contact-map iframe{display:block;width:100%;min-height:330px;height:auto;flex:1;border:0}
.contact-form-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-lg);padding:clamp(1.5rem,3vw,2.35rem);color:var(--ink);min-width:0}
.contact-form-panel .eyebrow{color:var(--clay-dark);margin-bottom:0.6rem}
.contact-form-panel h3{color:var(--spruce);font-size:clamp(1.5rem,2.2vw,1.9rem);margin-bottom:0.5rem}
.contact-form-panel>p:not(.eyebrow){color:var(--muted);margin-bottom:1.4rem}
.contact-form-panel .rr-form-embed{min-height:350px}
.contact-form-panel .rr-form-embed .rr-submit{background:var(--clay)!important;color:#fff!important;border-radius:12px!important;font-family:var(--sans)!important;min-height:48px}
.contact-form-panel .rr-form-embed .rr-submit:hover{background:var(--clay-dark)!important}
.contact-form-panel .rr-form-embed .rr-input,.contact-form-panel .rr-form-embed textarea,.contact-form-panel .rr-form-embed select{font-family:var(--sans)!important;color:var(--ink)!important;border-color:var(--line)!important}
.contact-form-panel .rr-form-embed label{font-family:var(--sans)!important;color:var(--spruce)!important}
@media (min-width:800px){.contact-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.75rem}}
/* Standing site preference: the whole header stays pinned. */
.site-head{position:sticky;top:0}
html:root{scroll-padding-top:130px}
@media (max-width:899px){html:root{scroll-padding-top:140px}}
