/* ============================================================
   Highlands Ranch Water Systems — shared stylesheet
   System fonts only (no external font requests = fast + private).
   Palette: charcoal-slate + brass, distinct from the rest of the
   portfolio (no teal/aqua, no navy/amber) — built for an affluent,
   fixture-and-appliance-protection market.
   ============================================================ */

:root{
  --page:        #f8f6f1;
  --surface:     #ffffff;
  --surface-2:   #efeae1;
  --ink:         #1c2124;
  --ink-2:       #4b5359;
  --muted:       #7d868c;
  --hair:        #e2ddd1;
  --border:      rgba(28,33,36,0.10);

  --brand:       #2b3a3d;   /* charcoal-slate — primary */
  --brand-dark:  #182326;
  --brand-soft:  #e8ece9;
  --accent:      #a9713f;   /* brushed brass — the conversion accent */
  --accent-dark: #825529;
  --accent-soft: #f4e9db;

  --good:        #3f7a52;
  --good-bg:     #e9f3ec;
  --warn:        #b3552b;
  --warn-bg:     #f7ece3;

  --radius:14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark){
  :root:where(:not([data-theme="light"])){
    --page:        #0e1213;
    --surface:     #171c1e;
    --surface-2:   #1d2325;
    --ink:         #f2f1ee;
    --ink-2:       #c4c9cb;
    --muted:       #8b9296;
    --hair:        #2a3133;
    --border:      rgba(255,255,255,0.12);
    --brand:       #7fa093;
    --brand-dark:  #547569;
    --brand-soft:  #1a2624;
    --accent:      #cf9a5f;
    --accent-dark: #e3b378;
    --accent-soft: #2b2013;
    --good:        #5fbf82;
    --good-bg:     #13251a;
    --warn:        #e08a54;
    --warn-bg:     #2b1c12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --page:#0e1213; --surface:#171c1e; --surface-2:#1d2325; --ink:#f2f1ee; --ink-2:#c4c9cb;
  --muted:#8b9296; --hair:#2a3133; --border:rgba(255,255,255,0.12);
  --brand:#7fa093; --brand-dark:#547569; --brand-soft:#1a2624;
  --accent:#cf9a5f; --accent-dark:#e3b378; --accent-soft:#2b2013;
  --good:#5fbf82; --good-bg:#13251a; --warn:#e08a54; --warn-bg:#2b1c12;
  color-scheme: dark;
}
:root[data-theme="light"]{
  --page:#f8f6f1; --surface:#ffffff; --surface-2:#efeae1; --ink:#1c2124; --ink-2:#4b5359;
  --muted:#7d868c; --hair:#e2ddd1; --border:rgba(28,33,36,0.10);
  --brand:#2b3a3d; --brand-dark:#182326; --brand-soft:#e8ece9;
  --accent:#a9713f; --accent-dark:#825529; --accent-soft:#f4e9db;
  --good:#3f7a52; --good-bg:#e9f3ec; --warn:#b3552b; --warn-bg:#f7ece3;
  color-scheme: light;
}

*{ box-sizing:border-box; }
@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior:smooth; }
}
body{
  margin:0; background:var(--page); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:17px; line-height:1.62; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--brand); }
h1,h2,h3,h4{
  font-family:Georgia,"Iowan Old Style","Times New Roman",serif;
  font-weight:700; line-height:1.18; text-wrap:balance; color:var(--ink); margin:0 0 .5em;
}
p{ margin:0 0 1em; color:var(--ink-2); }
ul,ol{ color:var(--ink-2); }
.container{ max-width:1100px; margin:0 auto; padding:0 24px; }
.section{ padding:68px 0; }
.section-narrow{ max-width:760px; margin:0 auto; }
.section-md{ max-width:900px; margin:0 auto; }
.eyebrow{
  font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace; font-size:12px;
  letter-spacing:.10em; text-transform:uppercase; color:var(--accent-dark); font-weight:700;
  display:block; margin-bottom:10px;
}
.center{ text-align:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:15.5px; padding:13px 22px; border-radius:9px;
  text-decoration:none; border:1.5px solid transparent; cursor:pointer;
  font-family:inherit; white-space:nowrap; flex:none;
}
.btn-accent{ background:var(--accent); color:#241505; border-color:var(--accent); }
.btn-accent:hover{ background:var(--accent-dark); border-color:var(--accent-dark); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--hair); }
.btn-outline:hover{ border-color:var(--accent); color:var(--accent-dark); }
.btn-brand{ background:var(--brand); color:#fff; border-color:var(--brand); }
.btn-brand:hover{ background:var(--brand-dark); border-color:var(--brand-dark); }
.btn-lg{ padding:16px 28px; font-size:17px; }
.btn-block{ width:100%; }

/* ---------- Top utility bar ---------- */
.utility-bar{
  background:var(--brand-dark); color:#f2efe8; font-size:13.5px; text-align:center;
  padding:8px 16px;
}
.utility-bar a{ color:#fff; text-decoration:underline; font-weight:700; }

/* ---------- Header ---------- */
header.site{
  position:sticky; top:0; z-index:40; background:var(--surface);
  border-bottom:1px solid var(--hair);
}
.site-nav{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 24px; max-width:1100px; margin:0 auto;
}
.brand{
  font-family:Georgia,serif; font-weight:700; font-size:19.5px; color:var(--ink);
  text-decoration:none; letter-spacing:-.01em; white-space:nowrap; line-height:1.2;
  display:flex; flex-direction:column;
}
.brand .sub{ font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--accent-dark); font-weight:700; }
nav.links{ display:flex; gap:19px; align-items:center; flex-wrap:wrap; }
nav.links a{ color:var(--ink-2); text-decoration:none; font-size:14px; font-weight:600; }
nav.links a:hover{ color:var(--accent-dark); }
.dropdown{ position:relative; }
.dropdown>a:after{ content:" \25BE"; color:var(--accent-dark); font-size:11px; }
.dropdown-menu{
  position:absolute; top:130%; left:50%; transform:translateX(-50%) translateY(6px);
  background:var(--surface); border:1px solid var(--hair); border-radius:12px;
  box-shadow:0 16px 34px -16px rgba(20,24,26,.3); padding:8px; min-width:250px;
  opacity:0; visibility:hidden; transition:.15s; z-index:60;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.dropdown-menu a{ display:block; padding:9px 12px; border-radius:8px; font-size:13.5px; color:var(--ink-2); }
.dropdown-menu a:hover{ background:var(--brand-soft); color:var(--accent-dark); }
.header-cta{ display:flex; align-items:center; gap:14px; }
.phone-link{ display:flex; align-items:center; gap:7px; font-weight:700; color:var(--ink); text-decoration:none; font-size:15px; white-space:nowrap; }
.phone-link .num{ font-variant-numeric:tabular-nums; }
.nav-toggle{ display:none; background:none; border:1px solid var(--hair); border-radius:8px; padding:8px 10px; cursor:pointer; flex:none; }
.mobile-menu{ display:none; }
@media (max-width:900px){
  nav.links{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .header-cta .phone-link{ display:none; }
  .header-cta{ gap:10px; }
}
@media (max-width:480px){
  .header-cta a.btn-accent{ display:none; }
}
.mobile-menu.open{ display:flex; flex-direction:column; gap:2px; padding:8px 24px 16px; border-top:1px solid var(--hair); }
.mobile-menu a{ padding:10px 4px; color:var(--ink-2); text-decoration:none; font-weight:600; border-bottom:1px solid var(--hair); }

/* ---------- Decorative ripple / topo motif (original vector art) ---------- */
.hero, .page-hero{ position:relative; overflow:hidden; }
.hero > .container, .page-hero > .container{ position:relative; z-index:1; }
.deco-rings{ position:absolute; top:-90px; right:-90px; width:460px; height:460px; pointer-events:none; z-index:0; }
.page-hero .deco-rings{ width:320px; height:320px; top:-70px; right:-70px; }
.deco-rings circle{ fill:none; }

/* ---------- Hero ---------- */
.hero{ padding:52px 0 46px; background:var(--surface-2); }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:44px; align-items:center; }
@media (max-width:880px){ .hero-grid{ grid-template-columns:1fr; } }
.hero h1{ font-size:38px; margin-bottom:16px; }
.hero .lede{ font-size:18px; color:var(--ink-2); max-width:56ch; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }

.stat-card{
  background:var(--surface); border:1.5px solid var(--accent); border-radius:16px;
  padding:26px 24px; box-shadow:0 12px 30px -14px rgba(20,24,26,0.25);
}
.stat-card .amount{ font-family:Georgia,serif; font-size:40px; font-weight:700; color:var(--brand); line-height:1; }
.stat-card .amount-label{ font-size:12.5px; color:var(--ink-2); text-transform:uppercase; letter-spacing:.06em; font-weight:700; margin-top:6px; }
.stat-card p{ font-size:14px; margin-top:14px; }
.stat-card .fine{ font-size:11.5px; color:var(--muted); margin-top:10px; }
.stat-card hr{ border:none; border-top:1px solid var(--hair); margin:16px 0; }
.stat-card .mini-stat{ display:flex; justify-content:space-between; font-size:13px; padding:6px 0; border-bottom:1px dashed var(--hair); }
.stat-card .mini-stat:last-of-type{ border-bottom:none; }
.stat-card .mini-stat b{ color:var(--ink); }

/* ---------- Trust strip ---------- */
.trust-strip{ background:var(--brand-soft); border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding:24px 0; }
@media (max-width:760px){ .trust-grid{ grid-template-columns:1fr 1fr; } }
.trust-item{ display:flex; align-items:flex-start; gap:10px; }
.trust-item svg{ flex:none; width:22px; height:22px; color:var(--brand); margin-top:2px; }
.trust-item span{ font-size:13.5px; font-weight:650; color:var(--ink); line-height:1.35; }

/* ---------- Local facts panel ---------- */
.facts-panel{ background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius); padding:30px 32px; }
.facts-layout{ display:grid; grid-template-columns:1fr 280px; gap:36px; align-items:center; }
@media (max-width:820px){ .facts-layout{ grid-template-columns:1fr; } }
.facts-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:20px; }
@media (max-width:760px){ .facts-grid{ grid-template-columns:1fr; } }
.fact{ border-left:3px solid var(--accent); padding-left:14px; }
.fact .stat{ font-family:Georgia,serif; font-size:25px; font-weight:700; color:var(--brand); }
.fact .lbl{ font-size:13px; color:var(--ink-2); margin-top:3px; }
.source-note{ font-size:12px; color:var(--muted); margin-top:18px; }
.source-note a{ color:var(--muted); }

/* ---------- Gauge (hardness meter) illustration ---------- */
.gauge-wrap{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.gauge{ width:100%; max-width:250px; height:auto; }
.gauge-read{ font-family:Georgia,serif; font-size:15px; font-weight:700; color:var(--brand); text-align:center; }
.gauge-read span{ display:block; font-family:ui-monospace,monospace; font-size:11px; color:var(--muted); font-weight:400; margin-top:2px; letter-spacing:.04em; }

/* ---------- Service cards ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:920px){ .card-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .card-grid{ grid-template-columns:1fr; } }
.svc-card{
  background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius); padding:26px 22px;
  text-decoration:none; display:flex; flex-direction:column; gap:10px; transition:border-color .15s, transform .15s;
}
.svc-card:hover{ border-color:var(--accent); transform:translateY(-2px); }
.svc-card .icon{ width:36px; height:36px; color:var(--brand); }
.svc-card h3{ font-size:17px; margin:0; color:var(--ink); }
.svc-card p{ font-size:13.5px; margin:0; }
.svc-card .go{ margin-top:auto; font-size:13px; font-weight:700; color:var(--accent-dark); }

/* ---------- Process ---------- */
.process{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; counter-reset:step; }
@media (max-width:820px){ .process{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .process{ grid-template-columns:1fr; } }
.step{ position:relative; padding-top:6px; }
.step .num{
  font-family:Georgia,serif; font-size:15px; font-weight:700; color:var(--accent-dark);
  width:34px; height:34px; border:1.5px solid var(--accent); border-radius:50%;
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.step h4{ font-size:15.5px; margin:0 0 6px; }
.step p{ font-size:13.5px; margin:0; }

/* ---------- FAQ (native details/summary — accessible, no JS) ---------- */
.faq-item{ border-bottom:1px solid var(--hair); padding:16px 0; }
.faq-item summary{
  cursor:pointer; font-weight:700; font-size:16px; color:var(--ink);
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .chevron{ flex:none; transition:transform .15s; color:var(--muted); }
.faq-item[open] summary .chevron{ transform:rotate(180deg); }
.faq-item .answer{ padding-top:10px; font-size:15px; color:var(--ink-2); max-width:74ch; }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--brand); color:#fff; border-radius:18px; padding:44px 36px; text-align:center; }
.cta-band h2{ color:#fff; margin-bottom:10px; }
.cta-band p{ color:#dfe4e1; max-width:58ch; margin:0 auto 22px; }
.cta-band .btn-accent{ box-shadow:0 10px 24px -10px rgba(0,0,0,.4); }

/* ---------- Footer ---------- */
footer.site{ background:var(--surface-2); border-top:1px solid var(--hair); padding:44px 0 26px; margin-top:60px; }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:32px; }
@media (max-width:720px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h5{ font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 12px; }
.footer-grid a{ display:block; color:var(--ink-2); text-decoration:none; font-size:14px; margin-bottom:8px; }
.footer-grid a:hover{ color:var(--accent-dark); }
.disclosure{ font-size:12px; color:var(--muted); line-height:1.65; max-width:70ch; margin-bottom:10px; }
.footer-bottom{ border-top:1px solid var(--hair); margin-top:30px; padding-top:18px; font-size:12px; color:var(--muted); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar{ display:none; }
@media (max-width:640px){
  .mobile-call-bar{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:50;
    background:var(--brand); color:#fff; padding:12px 16px; align-items:center; justify-content:center;
    gap:10px; font-weight:700; text-decoration:none; box-shadow:0 -6px 18px rgba(0,0,0,.2);
  }
  body{ padding-bottom:58px; }
}

/* ---------- Generic content pages ---------- */
.prose h2{ margin-top:1.7em; font-size:25px; }
.prose h3{ margin-top:1.3em; font-size:18.5px; }
.prose ul{ padding-left:22px; }
.prose li{ margin-bottom:6px; }
.prose table{ width:100%; border-collapse:collapse; margin:1.4em 0; font-size:14.5px; }
.prose table caption{ text-align:left; font-size:12.5px; color:var(--muted); margin-bottom:8px; }
.breadcrumb{ font-size:13px; color:var(--muted); margin-bottom:18px; }
.breadcrumb a{ color:var(--muted); text-decoration:none; }
.breadcrumb a:hover{ color:var(--accent-dark); }

.page-hero{ padding:38px 0 8px; background:var(--surface-2); }
.page-hero .eyebrow{ margin-bottom:8px; }
.page-hero h1{ font-size:31px; }
.page-hero .lede{ font-size:16.5px; color:var(--ink-2); max-width:68ch; }

.signs-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:640px){ .signs-grid{ grid-template-columns:1fr; } }
.sign{ background:var(--surface); border:1px solid var(--hair); border-radius:12px; padding:18px 20px; }
.sign h4{ font-size:15px; margin:0 0 6px; }
.sign p{ font-size:13.5px; margin:0; }

/* ---------- Comparison table ---------- */
.compare-wrap{ overflow-x:auto; border:1px solid var(--hair); border-radius:var(--radius); }
table.compare{ width:100%; border-collapse:collapse; min-width:640px; background:var(--surface); }
table.compare th, table.compare td{ padding:14px 16px; text-align:left; border-bottom:1px solid var(--hair); font-size:14px; vertical-align:top; }
table.compare thead th{ background:var(--brand-soft); font-family:Georgia,serif; font-size:14.5px; color:var(--brand); }
table.compare tbody tr:last-child td{ border-bottom:none; }
table.compare td:first-child, table.compare th:first-child{ font-weight:700; color:var(--ink); white-space:nowrap; }

/* ---------- Sizing / cost box ---------- */
.info-box{ background:var(--brand-soft); border:1px solid var(--hair); border-radius:var(--radius); padding:26px 28px; margin:1.6em 0; }
.info-box h4{ margin-top:0; font-size:16px; }
.info-box.accent{ background:var(--accent-soft); }
.info-box.warn{ background:var(--warn-bg); }

/* ---------- Neighborhood / service-area grid ---------- */
.area-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
@media (max-width:760px){ .area-grid{ grid-template-columns:repeat(2,1fr); } }
.area-chip{ background:var(--surface); border:1px solid var(--hair); border-radius:9px; padding:10px 14px; font-size:13.5px; font-weight:650; color:var(--ink-2); text-align:center; }

/* ---------- Badge list ---------- */
.badge-row{ display:flex; flex-wrap:wrap; gap:10px; margin:1.2em 0; }
.badge{ display:inline-flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--hair); border-radius:999px; padding:7px 14px; font-size:12.5px; font-weight:700; color:var(--ink-2); }
.badge svg{ width:14px; height:14px; color:var(--good); }

/* ---------- Two column media/text ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
@media (max-width:820px){ .split{ grid-template-columns:1fr; } }
.split.reverse .media{ order:2; }
@media (max-width:820px){ .split.reverse .media{ order:0; } }
.media-frame{ background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius); padding:20px; }

/* ---------- Quote form ---------- */
.form-card{ background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius); padding:30px; box-shadow:0 16px 40px -20px rgba(20,24,26,.3); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:560px){ .form-grid{ grid-template-columns:1fr; } }
.form-grid .full{ grid-column:1/-1; }
label{ display:block; font-size:13px; font-weight:700; color:var(--ink); margin-bottom:6px; }
input, select, textarea{
  width:100%; padding:12px 13px; border:1.5px solid var(--hair); border-radius:9px;
  font-family:inherit; font-size:15px; background:var(--surface); color:var(--ink);
}
input:focus, select:focus, textarea:focus{ outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
.form-note{ font-size:11.5px; color:var(--muted); margin-top:14px; }
.placeholder-note{ background:var(--warn-bg); border:1px dashed var(--warn); border-radius:9px; padding:10px 14px; font-size:12.5px; color:var(--warn); margin-bottom:18px; }

/* ---------- Softener sizing calculator ---------- */
.calc-card{
  display:grid; grid-template-columns:1fr 1fr; gap:0;
  background:var(--surface); border:1px solid var(--hair); border-radius:var(--radius);
  overflow:hidden; box-shadow:0 16px 40px -24px rgba(20,24,26,.35);
}
@media (max-width:760px){ .calc-card{ grid-template-columns:1fr; } }
.calc-inputs{ padding:32px; display:flex; flex-direction:column; gap:22px; }
.calc-inputs label{ margin-bottom:8px; }
.calc-range-note{ font-size:12px; color:var(--muted); margin-top:6px; }
.calc-check{ display:flex; align-items:flex-start; gap:10px; font-size:13.5px; font-weight:600; color:var(--ink-2); cursor:pointer; }
.calc-check input{ width:auto; margin-top:2px; }
input[type="range"]{ padding:0; accent-color:var(--accent); cursor:pointer; }
.calc-results{ background:var(--brand); color:#fff; padding:32px; display:flex; flex-direction:column; gap:14px; justify-content:center; }
.calc-result-row{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,.18); }
.calc-result-row span{ font-size:13px; color:#d8e0dd; }
.calc-result-row strong{ font-family:Georgia,serif; font-size:20px; text-align:right; }
.calc-fine{ font-size:11.5px; color:#c7d1ce; margin:4px 0 4px; }
.calc-fine a{ color:#fff; }
.calc-results .btn-brand{ background:var(--accent); border-color:var(--accent); color:#241505; }
.calc-results .btn-brand:hover{ background:var(--accent-dark); border-color:var(--accent-dark); }

/* ---------- Photo grid ---------- */
.photo-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:1.6em 0; }
@media (max-width:700px){ .photo-grid{ grid-template-columns:1fr 1fr; } }
.photo-tile{ background:var(--surface); border:1px solid var(--hair); border-radius:12px; overflow:hidden; }
.photo-tile img, .photo-tile svg{ width:100%; height:150px; object-fit:cover; display:block; }
.photo-cap{ font-size:12px; color:var(--muted); padding:10px 12px; }
