/* ============================================================
   Blue Heron Pool Care — blueheronpoolcare.com
   Palette: Heron Deep #0F3B4C · Pool Aqua #3BB8CC · Heron Gold #E9A13B
            Foam #EAF6F8 · Sand #F6F1E7 · Ink #16262C
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

:root{
  --deep:#0F3B4C;
  --deep-2:#0B2E3C;
  --aqua:#3BB8CC;
  --aqua-soft:#8FD4E0;
  --gold:#E9A13B;
  --gold-hover:#DD9128;
  --foam:#EAF6F8;
  --sand:#F6F1E7;
  --ink:#16262C;
  --muted:#5E6E75;
  --line:#DCE7EA;
  --white:#FFFFFF;
  --radius:24px;
  --shadow:0 10px 30px rgba(15,59,76,.10);
  --maxw:1140px;
  --barh:76px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  padding-bottom:var(--barh); /* room for sticky action bar */
}
img{max-width:100%;display:block}
a{color:inherit}
.container{max-width:var(--maxw);margin:0 auto;padding:0 22px}

h1,h2,h3,.display{
  font-family:'Fraunces',Georgia,serif;
  font-weight:600;
  line-height:1.12;
  letter-spacing:-.01em;
  color:var(--deep);
}
h2{font-size:clamp(30px,6vw,44px);text-align:center;margin-bottom:14px}
.section{padding:72px 0}
.kicker{text-align:center;color:var(--muted);font-size:17px;margin-bottom:40px}
.kicker em{font-style:italic}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  font-family:'Inter',sans-serif;
  font-weight:600;
  font-size:17px;
  border:none;
  border-radius:999px;
  padding:16px 30px;
  cursor:pointer;
  text-decoration:none;
  text-align:center;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-gold{background:var(--gold);color:var(--ink);box-shadow:0 8px 22px rgba(233,161,59,.35)}
.btn-gold:hover{background:var(--gold-hover);transform:translateY(-1px)}
.btn-outline-light{background:transparent;color:#F3F7F8;border:1.5px solid rgba(243,247,248,.55)}
.btn-outline-light:hover{border-color:#fff}
.btn:focus-visible{outline:3px solid var(--aqua);outline-offset:3px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid var(--aqua);outline-offset:3px;border-radius:6px}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:76px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand-badge{width:52px;height:52px;flex:0 0 52px}
.brand-name{font-family:'Fraunces',serif;font-weight:600;font-size:24px;color:var(--deep);line-height:1.05}
.brand-sub{font-size:12px;font-weight:600;letter-spacing:.22em;color:var(--aqua)}
.menu-btn{background:none;border:none;cursor:pointer;padding:10px;display:flex;flex-direction:column;gap:5px}
.menu-btn span{display:block;width:26px;height:2.5px;background:var(--ink);border-radius:2px;transition:transform .2s ease,opacity .2s ease}
.menu-btn[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.menu-btn[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-btn[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* Mobile drawer */
.drawer{
  position:fixed;inset:76px 0 auto 0;z-index:55;
  background:var(--white);
  border-bottom:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:10px 22px 22px;
  display:none;
}
.drawer.open{display:block}
.drawer a{
  display:block;padding:14px 4px;text-decoration:none;
  font-weight:600;color:var(--deep);border-bottom:1px solid var(--foam);font-size:17px;
}
.drawer a:last-child{border-bottom:none}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:92svh;
  display:flex;align-items:center;
  background:
    linear-gradient(180deg, rgba(11,42,54,.72) 0%, rgba(15,59,76,.55) 55%, rgba(11,42,54,.78) 100%),
    url('../images/hero.jpg') center/cover no-repeat,
    linear-gradient(180deg,#123D4F,#0B2E3C);
  overflow:hidden;
}
.hero::after{ /* gentle animated water shimmer */
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 60% at 50% 115%, rgba(59,184,204,.22), transparent 60%);
  animation:shimmer 9s ease-in-out infinite alternate;
}
@keyframes shimmer{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(-6px)}}
.hero-inner{position:relative;z-index:2;padding:64px 0 88px;max-width:760px}
.hero h1{
  color:#F6FBFC;
  font-size:clamp(42px,9.5vw,72px);
  margin-bottom:26px;
}
.hero h1 .accent{color:var(--aqua)}
.hero p.lede{
  color:#C9D9DE;font-size:clamp(18px,4.6vw,22px);line-height:1.55;
  margin-bottom:34px;max-width:34ch;
}
.hero .call-line{margin-top:18px;color:#C9D9DE;font-size:18px}
.hero .call-line a{color:#F3F7F8;text-decoration:none;font-weight:600}
.hero-trust{
  margin-top:44px;display:flex;flex-wrap:wrap;gap:10px 26px;
  color:#AEC5CC;font-size:15.5px;
}
.hero-trust span{display:inline-flex;align-items:center;gap:8px}
.hero-trust svg{flex:0 0 auto}

/* wave divider at hero bottom */
.wave{display:block;width:100%;height:54px;margin-top:-1px}

/* ---------- Quote form ---------- */
.quote-head{max-width:640px;margin:0 auto}
.form-card{
  background:var(--sand);
  border-radius:var(--radius);
  padding:34px 26px 30px;
  max-width:640px;margin:0 auto;
  box-shadow:var(--shadow);
}
.field{margin-bottom:22px}
.field label{display:block;font-weight:600;color:#3C4A50;margin-bottom:10px;font-size:17px}
.field input,.field select{
  width:100%;
  background:var(--white);
  border:1px solid #E7E0D2;
  border-radius:14px;
  padding:18px 16px;
  font-size:17px;
  font-family:'Inter',sans-serif;
  color:var(--ink);
  appearance:none;
}
.field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230F3B4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;
}
.field input:focus,.field select:focus{outline:3px solid rgba(59,184,204,.45);border-color:var(--aqua)}
.form-card .btn{width:100%;margin-top:6px;font-size:19px;padding:19px}
.reassure{margin-top:20px;text-align:center;color:#8B9AA1;font-size:15px;line-height:1.7}
.privacy{margin-top:12px;text-align:center;color:#A7B4BA;font-size:14px}
.hidden{display:none}

/* ---------- Trust bar ---------- */
.trust{background:var(--foam)}
.trust-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:44px 18px;
  max-width:820px;margin:0 auto;text-align:center;
}
.trust-item .icon-circle{
  width:72px;height:72px;border-radius:50%;
  background:var(--white);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
  box-shadow:0 6px 18px rgba(15,59,76,.08);
}
.trust-item p{color:#4A5B62;font-size:18px;line-height:1.4}

/* ---------- Before / After ---------- */
.ba-wrap{max-width:820px;margin:0 auto}
.ba{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  aspect-ratio:4/5;
  box-shadow:var(--shadow);
  touch-action:pan-y;
  user-select:none;
}
@media(min-width:760px){.ba{aspect-ratio:16/10}}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.ba .after-side{position:absolute;inset:0;overflow:hidden;clip-path:inset(0 0 0 50%)}
.ba .divider{
  position:absolute;top:0;bottom:0;left:50%;width:2px;background:#fff;
  transform:translateX(-1px);
}
.ba .handle{
  position:absolute;top:50%;left:50%;
  width:64px;height:64px;border-radius:50%;
  background:#fff;color:var(--deep);
  transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  font-size:20px;font-weight:700;letter-spacing:2px;
  cursor:ew-resize;
}
.ba .tag{
  position:absolute;top:20px;
  padding:9px 18px;border-radius:999px;
  font-weight:600;font-size:15px;letter-spacing:.06em;color:#fff;
}
.tag-before{left:20px;background:rgba(22,38,44,.55);backdrop-filter:blur(4px)}
.tag-after{right:20px;background:rgba(59,184,204,.9)}
.ba-caption{text-align:center;color:var(--muted);font-size:18px;margin-top:22px}

/* ---------- How it works ---------- */
.how{background:var(--foam)}
.how-grid{display:grid;gap:26px;max-width:1040px;margin:0 auto}
@media(min-width:860px){.how-grid{grid-template-columns:repeat(3,1fr)}}
.how-card{
  background:var(--white);border-radius:var(--radius);
  padding:38px 30px 42px;box-shadow:0 6px 18px rgba(15,59,76,.06);
}
.how-card .num{
  font-family:'Fraunces',serif;font-weight:600;
  font-size:74px;line-height:1;color:#D7EDF2;
  margin-bottom:26px;
}
.how-card h3{font-size:30px;margin-bottom:14px}
.how-card p{color:var(--muted);font-size:17.5px}

/* ---------- Includes checklist ---------- */
.includes-list{
  max-width:900px;margin:26px auto 0;
  display:grid;gap:26px 40px;
}
@media(min-width:760px){.includes-list{grid-template-columns:1fr 1fr}}
.includes-list li{
  list-style:none;display:flex;gap:16px;align-items:flex-start;
  font-size:19px;color:#3C4A50;
}
.includes-list svg{flex:0 0 auto;margin-top:5px}
.chem-note{
  text-align:center;color:#9AA8AE;font-size:16px;
  max-width:560px;margin:44px auto 0;line-height:1.7;
}

/* ---------- Guarantee ---------- */
.guarantee{
  position:relative;background:var(--sand);overflow:hidden;text-align:center;
}
.guarantee .heron-mark{
  position:absolute;inset:0;margin:auto;height:88%;opacity:.07;pointer-events:none;
}
.guarantee .rule{
  width:64px;height:3px;background:var(--aqua);
  margin:0 auto 34px;border-radius:2px;
}
.guarantee-inner{position:relative;max-width:720px;margin:0 auto}
.guarantee p{
  color:#5C6B72;font-size:clamp(18px,4.6vw,21px);line-height:1.7;
  margin:0 auto 40px;max-width:34ch;
}

/* ---------- Service area ---------- */
.area-visual{
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);
  max-width:1020px;margin:0 auto 40px;
}
.area-visual svg{display:block;width:100%;height:auto}
.city-grid{
  max-width:820px;margin:0 auto;
  display:grid;grid-template-columns:1fr 1fr;gap:26px 30px;
}
.city-grid a{
  display:flex;gap:12px;align-items:flex-start;
  color:#4A5B62;font-size:18.5px;text-decoration:none;line-height:1.35;
}
.city-grid a:hover{color:var(--deep)}
.city-grid svg{flex:0 0 auto;margin-top:4px}

/* ---------- FAQ ---------- */
.faq{background:var(--foam)}
.faq-list{max-width:820px;margin:0 auto;display:grid;gap:18px}
.faq-item{
  background:var(--white);border-radius:20px;
  box-shadow:0 4px 14px rgba(15,59,76,.05);
  overflow:hidden;
}
.faq-item summary{
  list-style:none;cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:26px 26px;
  font-weight:600;font-size:19px;color:var(--ink);
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary svg{flex:0 0 auto;transition:transform .2s ease;color:var(--deep)}
.faq-item[open] summary svg{transform:rotate(180deg)}
.faq-item .answer{padding:0 26px 26px;color:var(--muted);font-size:17.5px;line-height:1.7}

/* ---------- Footer ---------- */
.site-footer{background:var(--deep);color:#B9CBD1;padding:64px 0 120px}
.footer-brand{display:flex;align-items:center;gap:12px;margin-bottom:30px}
.footer-brand .brand-name{color:#F3F7F8}
.footer-nap{display:grid;gap:12px;margin-bottom:44px;font-size:18px}
.footer-nap a{color:#DCE9ED;text-decoration:none;display:inline-flex;gap:12px;align-items:center}
.footer-h{font-size:14px;font-weight:600;letter-spacing:.2em;color:#7E97A0;margin-bottom:20px}
.footer-links{display:grid;gap:16px;margin-bottom:44px}
.footer-links a{color:#C6D6DB;text-decoration:none;font-size:18px}
.footer-links a:hover{color:#fff}
.serve-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;font-size:17px}
.footer-rule{border:none;border-top:1px solid rgba(255,255,255,.14);margin:44px 0 30px}
.footer-fine{text-align:center;color:#8AA0A8;font-size:16px}

@media(min-width:900px){
  .footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1.2fr;gap:40px}
  .footer-nap,.footer-links{margin-bottom:0}
  .site-footer{padding-bottom:80px}
}

/* ---------- Sticky action bar ---------- */
.action-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;
  background:#152026;
  padding:14px 18px calc(14px + env(safe-area-inset-bottom));
  display:flex;gap:14px;
}
.action-bar .btn{flex:1;padding:15px 10px;font-size:17.5px}
.action-bar .btn-outline-light{display:inline-flex;align-items:center;justify-content:center;gap:10px}
@media(min-width:900px){
  body{padding-bottom:0}
  .action-bar{display:none}
}

/* ---------- Thanks page ---------- */
.thanks-hero{min-height:70svh;display:flex;align-items:center;background:var(--foam);text-align:center}
.thanks-hero .container{max-width:640px}
.thanks-hero p{color:var(--muted);font-size:19px;margin:18px 0 34px}
