/* The Almanac. A Water Dealer Pro design for Kinetico dealers. MJM Design. */

:root{
  --ink:#14262B;         /* headings */
  --deep:#0C1B20;        /* hero + footer */
  --teal:#0E6E63;        /* accent */
  --teal-d:#0A5049;
  --teal-l:#EAF4F2;
  --clay:#B4643C;        /* warm secondary, used sparingly */
  --body:#495B62;
  --muted:#6C7C82;
  --sand:#FAF7F2;
  --line:#E6DFD6;
  --bg:#fff;
  --head:'Plus Jakarta Sans',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --sans:'Plus Jakarta Sans',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --wrap:1160px;
  --r:14px;
  --shadow:0 18px 44px -30px rgba(12,27,32,.5);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--body);font:400 17px/1.65 var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3,h4{font-family:var(--head);color:var(--ink);line-height:1.15;margin:0 0 .5em;font-weight:700;letter-spacing:-.02em}
h1{font-size:clamp(2.1rem,4.6vw,3.35rem)}
h2{font-size:clamp(1.65rem,3.1vw,2.4rem)}
h3{font-size:1.2rem}
p{margin:0 0 1.1em}
a{color:var(--teal-d);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.lead{font-size:1.13rem}
.eyebrow{font:700 .76rem/1 var(--head);letter-spacing:.15em;text-transform:uppercase;color:var(--teal-d);margin:0 0 .85rem}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--teal);outline-offset:2px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:52px;padding:0 26px;
  border-radius:10px;background:var(--teal);color:#fff;font:700 1rem/1 var(--head);border:none;cursor:pointer;
  transition:background .16s}
.btn:hover{background:var(--teal-d);text-decoration:none;color:#fff}
.btn.ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.5)}
.btn.ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
.btn.lg{min-height:58px;padding:0 32px;font-size:1.06rem}
.btn.dark{background:var(--ink)}
.btn.dark:hover{background:var(--deep)}

/* header */
#hdr{position:sticky;top:0;z-index:100;background:var(--bg);border-bottom:1px solid var(--line)}
.hdr-in{display:flex;align-items:center;gap:20px;min-height:84px}
.brand{display:flex;align-items:center;gap:11px;flex:none}
.brand .mark{width:40px;height:40px;border-radius:50%;background:linear-gradient(145deg,var(--teal),#084A44);
  display:grid;place-items:center;color:#fff;font:800 1.02rem/1 var(--head);flex:none}
.brand b{font:800 1.19rem/1.1 var(--head);color:var(--ink);letter-spacing:-.02em;display:block}
.brand .sub{font:600 .72rem/1 var(--head);letter-spacing:.11em;text-transform:uppercase;color:var(--muted);display:block;margin-top:3px}
#nav{margin-left:auto;display:flex;align-items:center;gap:28px}
#nav ul{list-style:none;padding:0;margin:0;display:flex;gap:28px;align-items:center}
#nav a.nl{font:600 .95rem/1 var(--head);color:var(--ink)}
#nav a.nl:hover,#nav a.nl.on{color:var(--teal-d);text-decoration:none}
.hdr-cta{flex:none}
#burger{display:none;margin-left:auto;width:46px;height:46px;border:1.5px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;padding:0}
#burger span{display:block;width:20px;height:2px;background:var(--ink);margin:4px auto;border-radius:2px}

/* hero */
.hero{position:relative;background:var(--deep);color:#fff;overflow:hidden}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.42}
.hero::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,rgba(12,27,32,.74) 0%,rgba(12,27,32,.52) 52%,rgba(12,27,32,.30) 100%)}
.hero .wrap{position:relative;z-index:2;padding-top:96px;padding-bottom:100px}
.hero h1{color:#fff;max-width:17ch}
.hero .eyebrow{color:#7FD3C6}
.hero p{color:#D3DCDE;font-size:1.15rem;max-width:52ch}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px}
.hero-note{margin:26px 0 0;font-size:.92rem;color:#9BAAB0}

/* sections */
.sec{padding:clamp(56px,7vw,92px) 0}
.sec.alt{background:var(--sand)}
.sec-head{max-width:64ch;margin-bottom:44px}
.sec-head.mid{margin-left:auto;margin-right:auto;text-align:center}
.sec-head.mid .lead{margin-left:auto;margin-right:auto;max-width:58ch}

/* card grid */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:30px 26px}
.card .ico{width:46px;height:46px;border-radius:12px;background:var(--teal-l);color:var(--teal-d);
  display:grid;place-items:center;margin-bottom:18px}
.card .ico svg{width:23px;height:23px}
.card h3{margin-bottom:.45em}
.card p{margin:0;font-size:.97rem}

/* split */
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.ph img{border-radius:var(--r);box-shadow:var(--shadow);width:100%;height:auto}
.prod .ph img{box-shadow:none}
.checks{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:12px}
.checks li{display:flex;gap:12px;font-size:1rem;line-height:1.55}
.checks li::before{content:'';flex:none;width:22px;height:22px;margin-top:2px;border-radius:50%;
  background:var(--teal-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A5049' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L19 7'/%3E%3C/svg%3E") center/13px no-repeat}

/* band */
.band{position:relative;background:var(--deep);background-size:cover;background-position:center;color:#fff;
  padding:clamp(64px,8vw,110px) 0;text-align:center}
.band::after{content:'';position:absolute;inset:0;background:rgba(12,27,32,.76)}
.band .wrap{position:relative;z-index:2}
.band h2{color:#fff;max-width:20ch;margin-left:auto;margin-right:auto}
.band p{color:#CFDADD;max-width:56ch;margin:0 auto;font-size:1.08rem}

/* steps, vertical timeline */
.steps{max-width:760px;margin:0 auto;position:relative}
.steps::before{content:'';position:absolute;left:23px;top:14px;bottom:14px;width:2px;background:var(--line)}
.step{position:relative;padding:0 0 34px 68px}
.step:last-child{padding-bottom:0}
.step .n{position:absolute;left:0;top:0;width:48px;height:48px;border-radius:50%;background:var(--teal);color:#fff;
  display:grid;place-items:center;font:800 1.1rem/1 var(--head);border:5px solid #fff}
.step h3{margin-bottom:.35em}
.step p{margin:0;font-size:.99rem}

/* product strip */
.prod{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
/* Product renders are isolated objects on white. Never crop them, and give
   them a white card so the photo background reads as deliberate against the
   sand section rather than as a mismatched rectangle. */
.prod .ph{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:28px}
.prod .ph img{width:100%;height:auto;max-height:360px;margin:0 auto;object-fit:contain;border-radius:0}

/* cta */
.cta{background:var(--deep);color:#C6D2D5;text-align:center;padding:clamp(60px,7vw,96px) 0}
.cta h2{color:#fff;max-width:22ch;margin-left:auto;margin-right:auto}
.cta .lead{color:#C6D2D5;max-width:52ch;margin-left:auto;margin-right:auto}
.cta .hero-cta{justify-content:center}

/* footer */
footer{background:var(--ink);color:#A9B7BC;padding:64px 0 0;font-size:.95rem}
footer a{color:#D6E0E2}
footer a:hover{color:#fff}
.foot-in{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding-bottom:44px}
.foot-brand .brand b{color:#fff}
.foot-brand .brand .sub{color:#8FA0A6}
.foot-brand p{margin:18px 0 0;max-width:38ch;font-size:.93rem}
footer h4{color:#fff;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;margin:0 0 16px}
footer ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.foot-base{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.12);padding-top:22px;padding-bottom:26px;font-size:.86rem;color:#8FA0A6}

@media(max-width:920px){
  .grid3{grid-template-columns:1fr}
  .split,.prod{grid-template-columns:1fr;gap:34px}
  .foot-in{grid-template-columns:1fr 1fr}
  #nav{position:fixed;inset:84px 0 auto;background:#fff;border-bottom:1px solid var(--line);
    flex-direction:column;align-items:stretch;gap:0;padding:8px 24px 18px;display:none}
  #nav.open{display:flex}
  #nav ul{flex-direction:column;align-items:stretch;gap:0}
  #nav a.nl{display:block;padding:14px 0;border-bottom:1px solid var(--line)}
  #burger{display:block}
  .hdr-cta{display:none}
}
@media(max-width:560px){
  .foot-in{grid-template-columns:1fr}
  .hero .wrap{padding-top:64px;padding-bottom:72px}
  .step{padding-left:60px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Approved Kinetico mark in the footer, per brand guidance. The logo keeps
   its own clear space and is never recoloured or stretched. */
.foot-auth{display:flex;align-items:center;gap:14px;margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.16)}
.foot-auth img{height:26px;width:auto;display:block;flex:none}
.foot-auth span{font-size:.76rem;letter-spacing:.09em;text-transform:uppercase;color:rgba(255,255,255,.55)}

/* Free water test form. Demo behaviour: validates, honours the honeypot and a
   2 second fill floor, then confirms on screen without sending. The submission
   is recorded through the site beacon because a dealer filling this in is a
   strong buying signal. Styled for the dark CTA band. */
.wtest{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:34rem;margin:26px auto 0;text-align:left}
.wt-row{display:flex;flex-direction:column;gap:6px}
.wt-wide{grid-column:1 / -1}
.wtest label{font-size:.82rem;font-weight:600;color:rgba(255,255,255,.86)}
.wt-opt{font-weight:400;color:rgba(255,255,255,.6)}
.wtest input,.wtest textarea{font:inherit;font-size:.98rem;color:#fff;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.34);border-radius:10px;padding:.75rem .9rem;width:100%}
.wtest input:focus,.wtest textarea:focus{outline:2px solid rgba(255,255,255,.8);outline-offset:1px;background:rgba(255,255,255,.16)}
.wtest textarea{resize:vertical}
.wtest button{grid-column:1 / -1;justify-self:center;margin-top:4px}
.wt-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.wt-err{grid-column:1 / -1;margin:0;font-size:.9rem;color:#FFC9C9;min-height:1.2em}
.wt-alt{margin:18px 0 0;font-size:.92rem;color:rgba(255,255,255,.66)}
.wt-alt a{color:#fff;font-weight:600}
.wt-done{max-width:34rem;margin:26px auto 0;padding:1.2rem 1.4rem;border:1px solid rgba(255,255,255,.3);
  border-radius:12px;background:rgba(255,255,255,.10);text-align:left}
.wt-done-h{margin:0 0 .4rem;font-weight:700;color:#fff}
.wt-done p{margin:0;color:rgba(255,255,255,.82);font-size:.95rem}
@media(max-width:620px){.wtest{grid-template-columns:1fr}}
