/* ============================================================
   Human Water Supply — site styles
   Brand guide v2.0 · Cobalt & Wheat
     cobalt #1D56B0 · harvest gold #C4883D · wheat #E9D6AE
     deep ink #14203A · cream #F7F3EA
   Typeface: Manrope (IBM Plex Mono for registration codes)
   Gold is a FILL colour — it never carries type. Gold Deep
   (#8A5E22) is the darkened version for small warm text.
   ============================================================ */

:root{
  --cobalt:#1D56B0;
  --cobalt-deep:#16408A;
  --gold:#C4883D;
  --gold-deep:#8A5E22;
  --gold-hover:#AC7430;
  --wheat:#E9D6AE;
  --ink-deep:#14203A;
  --white:#FFFFFF;

  --ground:#F7F3EA;
  --surface:#FFFFFF;
  --surface-2:#F1EADB;
  --ink:#14203A;
  --ink-body:#414D60;
  --ink-soft:#6B7686;
  --rule:#E6DFD0;
  --rule-strong:#D2C7B2;

  --wrap:1140px;
  --radius:4px;
  --shadow:0 1px 2px rgba(20,32,58,.06), 0 10px 30px -18px rgba(20,32,58,.35);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ground);
  color:var(--ink-body);
  font-family:"Manrope","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}
img,svg{max-width:100%}
a{color:var(--cobalt); text-underline-offset:2px}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:3px solid var(--cobalt); outline-offset:2px;
}
strong,b{font-weight:800}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- skip link ---------- */
.skip{position:absolute; left:-9999px; top:0; background:var(--gold); color:var(--ink-deep); padding:12px 18px; font-weight:800; z-index:100}
.skip:focus{left:12px; top:12px}

/* ---------- brand lockup ----------
   Guide spec: mark = 1.75 x the wordmark size, gap = 0.34 x.
   Both scale from the one font-size on .brand. */
.brand, .footer-brand{display:flex; align-items:center; gap:.34em; text-decoration:none; flex:none; font-size:22px; line-height:1}
.brand img, .footer-brand img{height:1.75em; width:auto; display:block}
.brand-wm{font-size:1em; font-weight:800; letter-spacing:-.025em; line-height:1; white-space:nowrap; color:var(--ink)}
.brand-wm span{font-weight:300}
.footer-brand{font-size:19px; margin-bottom:16px}
.footer-brand .brand-wm{color:var(--white)}

/* ---------- header ---------- */
.site-header{background:var(--white); border-bottom:1px solid var(--rule); position:sticky; top:0; z-index:50}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:24px; padding:14px 24px; max-width:var(--wrap); margin:0 auto}
.nav-toggle{display:none; background:none; border:1px solid var(--rule-strong); border-radius:var(--radius); padding:9px 12px; cursor:pointer; color:var(--ink); font-size:15px; font-weight:700}
.nav{display:flex; align-items:center; gap:6px}
.nav a{
  color:var(--ink); text-decoration:none; font-weight:700; font-size:15px;
  padding:9px 14px; border-radius:var(--radius); white-space:nowrap;
}
.nav a:hover{background:var(--surface-2)}
.nav a[aria-current="page"]{color:var(--cobalt); box-shadow:inset 0 -3px 0 var(--gold)}
.nav .btn{margin-left:10px}

/* ---------- buttons ---------- */
.btn{
  display:inline-block; text-decoration:none; font-weight:800; font-size:15.5px;
  padding:13px 24px; border-radius:var(--radius); border:2px solid transparent; cursor:pointer;
  font-family:inherit; line-height:1.2; text-align:center; letter-spacing:-.01em;
}
.btn-primary{background:var(--gold); color:var(--ink-deep); border-color:var(--gold)}
.btn-primary:hover{background:var(--gold-hover); border-color:var(--gold-hover)}
.btn-ghost{background:transparent; color:var(--ink); border-color:var(--rule-strong)}
.btn-ghost:hover{border-color:var(--cobalt); background:var(--surface-2)}
.btn-ghost-light{background:transparent; color:var(--white); border-color:rgba(255,255,255,.5)}
.btn-ghost-light:hover{border-color:var(--white); background:rgba(255,255,255,.12)}

/* ---------- hero ---------- */
.hero{background:var(--cobalt); color:var(--white); padding:84px 0 76px; position:relative; overflow:hidden}
.hero::after{content:""; position:absolute; left:0; right:0; bottom:0; height:6px; background:var(--gold)}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center}
.hero h1{
  font-size:clamp(34px,4.6vw,52px); line-height:1.08; margin:0 0 20px; color:var(--white);
  letter-spacing:-.03em; max-width:16ch; font-weight:800;
}
.hero p.lede{font-size:19.5px; line-height:1.55; color:#D7E3F5; margin:0 0 30px; max-width:56ch; font-weight:300}
.hero-cta{display:flex; flex-wrap:wrap; gap:14px}
.hero-mark{display:flex; justify-content:center; align-items:center}
.hero-mark svg, .hero-mark img{width:120px; height:auto}
.eyebrow{
  font-size:12.5px; letter-spacing:.18em; text-transform:uppercase; font-weight:800;
  color:var(--wheat); margin:0 0 16px;
}

/* ---------- credentials strip ---------- */
.creds{background:var(--white); border-bottom:1px solid var(--rule)}
.creds-inner{display:flex; flex-wrap:wrap; gap:10px 14px; justify-content:center; padding:20px 24px; max-width:var(--wrap); margin:0 auto}
.cred{
  font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  font-size:12.5px; font-weight:500; letter-spacing:.04em; color:var(--ink);
  background:var(--surface-2); border:1px solid var(--rule); border-radius:var(--radius);
  padding:8px 14px; white-space:nowrap;
}

/* ---------- generic sections ---------- */
.section{padding:76px 0}
.section-alt{background:var(--white); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule)}
.section-navy{background:var(--cobalt); color:#D7E3F5}
.section-navy h2, .section-navy h3{color:var(--white)}
.section-head{max-width:62ch; margin-bottom:38px}
.section-head h2{
  font-size:clamp(27px,3.4vw,36px); line-height:1.18; color:var(--ink); margin:0 0 14px;
  letter-spacing:-.025em; font-weight:800;
}
.section-head p{font-size:18px; color:var(--ink-soft); margin:0}
.section-navy .section-head h2{color:var(--white)}
.section-navy .section-head p{color:#BACDE8}
h2,h3,h4{font-weight:800; letter-spacing:-.015em}
h3{font-size:20px; color:var(--ink); margin:0 0 10px; line-height:1.3}
p{margin:0 0 16px; max-width:70ch}

/* ---------- cards ---------- */
.cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px}
.card{
  background:var(--white); border:1px solid var(--rule); border-top:4px solid var(--cobalt);
  border-radius:var(--radius); padding:28px 26px; box-shadow:var(--shadow);
}
.card.accent{border-top-color:var(--gold)}
.card.mint{border-top-color:var(--wheat)}
.card h3{margin-bottom:10px}
.card p:last-child{margin-bottom:0}
.card .kicker{font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:800; color:var(--gold-deep); margin:0 0 10px}

/* ---------- feature rows ---------- */
.features{display:grid; grid-template-columns:repeat(auto-fit,minmax(255px,1fr)); gap:32px 40px}
.feature h3{display:flex; align-items:baseline; gap:10px; margin-bottom:8px}
.feature .num{
  font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  font-size:12.5px; font-weight:500; color:var(--gold-deep); letter-spacing:.1em; flex:none;
}
.feature p{font-size:16px; margin-bottom:0}
.section-navy .feature .num{color:var(--wheat)}
.section-navy .feature p{color:#C3D4EC}
.section-navy .feature h3{color:var(--white)}

/* ---------- product blocks ---------- */
.product{
  background:var(--white); border:1px solid var(--rule); border-left:5px solid var(--cobalt);
  border-radius:var(--radius); padding:28px 30px; margin-bottom:20px; box-shadow:var(--shadow);
}
.product.esl{border-left-color:var(--gold)}
.product.marine{border-left-color:var(--wheat)}
.product-head{display:flex; flex-wrap:wrap; gap:10px 16px; align-items:baseline; margin-bottom:6px}
.product h3{margin:0; font-size:22px}
.tag{
  font-size:11.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
  padding:5px 10px; border-radius:var(--radius); white-space:nowrap;
}
.tag-yellow{background:#F6E9CE; color:var(--gold-deep)}
.tag-mint{background:#F1EADB; color:var(--gold-deep)}
.tag-navy{background:#E4ECF8; color:var(--cobalt)}
.product .who{font-size:14.5px; color:var(--ink-soft); margin:14px 0 0; padding-top:14px; border-top:1px solid var(--rule)}
.product .who strong{color:var(--ink)}

/* ---------- spec list ---------- */
.spec{list-style:none; padding:0; margin:14px 0 0; display:grid; gap:8px}
.spec li{position:relative; padding-left:22px; font-size:16px}
.spec li::before{
  content:""; position:absolute; left:0; top:.62em; width:9px; height:9px;
  background:var(--gold); border-radius:2px;
}

/* ---------- definition table ---------- */
.dl{display:grid; gap:1px; background:var(--rule-strong); border:1px solid var(--rule-strong); border-radius:var(--radius); overflow:hidden; margin:24px 0}
.dl-row{display:grid; grid-template-columns:250px 1fr; gap:0; background:var(--white)}
.dl-row dt{padding:15px 20px; font-weight:800; color:var(--ink); font-size:15px; background:var(--surface-2)}
.dl-row dd{padding:15px 20px; margin:0; font-size:16px}

/* ---------- pledge ---------- */
.pledge{
  background:var(--white); border:1px solid var(--rule); border-radius:var(--radius);
  border-top:5px solid var(--wheat); padding:34px 36px; box-shadow:var(--shadow);
}
.pledge blockquote{
  margin:0 0 18px; padding:0 0 0 22px; border-left:4px solid var(--gold);
  font-size:21px; line-height:1.45; color:var(--ink); font-weight:800; max-width:52ch; letter-spacing:-.02em;
}

/* ---------- callout ---------- */
.callout{
  background:#FBF4E4; border:1px solid var(--wheat); border-left:5px solid var(--gold);
  border-radius:var(--radius); padding:22px 26px; margin:28px 0;
}
.callout p{margin-bottom:10px}
.callout p:last-child{margin-bottom:0}
.callout strong{color:var(--ink)}

/* ---------- CTA band ---------- */
.cta-band{background:var(--cobalt); color:var(--white); padding:62px 0; text-align:center}
.cta-band h2{font-size:clamp(26px,3.2vw,34px); color:var(--white); margin:0 0 14px; line-height:1.2; letter-spacing:-.025em}
.cta-band p{color:#CBDCF2; font-size:18px; margin:0 auto 28px; max-width:56ch; font-weight:300}
.cta-band .hero-cta{justify-content:center}

/* ---------- contact form ---------- */
.contact-grid{display:grid; grid-template-columns:1.25fr .75fr; gap:48px; align-items:start}
.form-card{background:var(--white); border:1px solid var(--rule); border-top:4px solid var(--gold); border-radius:var(--radius); padding:32px; box-shadow:var(--shadow)}
.field{margin-bottom:20px}
.field label{display:block; font-weight:800; font-size:14.5px; color:var(--ink); margin-bottom:7px}
.field .hint{font-weight:400; color:var(--ink-soft); font-size:13.5px}
.field input, .field select, .field textarea{
  width:100%; font-family:inherit; font-size:16px; color:var(--ink-body);
  padding:12px 14px; border:1px solid var(--rule-strong); border-radius:var(--radius);
  background:var(--white);
}
.field textarea{min-height:130px; resize:vertical}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:20px}
.aside-card{background:var(--white); border:1px solid var(--rule); border-radius:var(--radius); padding:26px 28px; margin-bottom:20px}
.aside-card h3{font-size:18px; margin-bottom:12px}
.aside-card p{font-size:16px}
.aside-card p:last-child{margin-bottom:0}
.contact-line{display:block; font-size:18px; font-weight:800; color:var(--cobalt); text-decoration:none; margin-bottom:6px; word-break:break-word}

/* ---------- footer ---------- */
.site-footer{background:var(--ink-deep); color:#9FB0C6; padding:56px 0 30px; font-size:15px}
.footer-grid{display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:44px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.13)}
.site-footer h4{color:var(--white); font-size:14px; letter-spacing:.13em; text-transform:uppercase; margin:0 0 16px}
.site-footer a{color:#C6D4E6; text-decoration:none; display:block; margin-bottom:9px}
.site-footer a:hover{color:var(--white); text-decoration:underline}
.site-footer p{margin-bottom:12px; max-width:44ch; color:#9FB0C6}
.footer-badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px}
.footer-badges span{
  font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  font-size:11.5px; font-weight:400; letter-spacing:.06em; color:#D7E3EE;
  border:1px solid rgba(255,255,255,.28); border-radius:var(--radius); padding:5px 10px;
}
.footer-bottom{padding-top:24px; display:flex; flex-wrap:wrap; gap:8px 26px; justify-content:space-between; font-size:13.5px; color:#8697AE}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr; gap:36px}
  .hero-mark{order:-1; justify-content:flex-start}
  .hero-mark img{width:88px}
  .contact-grid{grid-template-columns:1fr; gap:34px}
  .footer-grid{grid-template-columns:1fr 1fr; gap:34px}
  .dl-row{grid-template-columns:1fr}
  .dl-row dt{padding-bottom:4px}
  .dl-row dd{padding-top:4px}
}
@media (max-width:720px){
  body{font-size:16.5px}
  .brand{font-size:18px}
  .nav-toggle{display:block}
  .nav{
    display:none; position:absolute; top:100%; left:0; right:0; background:var(--white);
    flex-direction:column; align-items:stretch; gap:0; padding:10px 16px 18px;
    border-bottom:1px solid var(--rule); box-shadow:var(--shadow);
  }
  .nav.open{display:flex}
  .nav a{padding:13px 12px; border-radius:0; border-bottom:1px solid var(--rule)}
  .nav .btn{margin:12px 0 0; border-bottom:none}
  .site-header{position:relative}
  .header-inner{position:relative}
  .hero{padding:56px 0 52px}
  .section{padding:54px 0}
  .form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .product{padding:24px 22px}
  .pledge{padding:26px 24px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none !important; transition:none !important}
}
