/* Village Pool Supply — the site IS the water-test counter.
   Palette: counter white #f4faf9, water wash #d9ecee, deep-water ink #0e3542,
   muted #5a7583, hairline #c8dfe3, ONE accent reagent tangerine #d2611f.
   Display: Cherry Swash 700 (self-hosted). Body: system stack. */

@font-face {
  font-family: 'Cherry Swash';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cherry-swash-700.ttf') format('truetype');
}

:root {
  --paper: #f4faf9;
  --wash: #d9ecee;
  --wash-deep: #c3dfe3;
  --ink: #0e3542;
  --ink-soft: #17424f;
  --muted: #5a7583;
  --hairline: #c8dfe3;
  --accent: #d2611f;
  --accent-deep: #a94c15;
  --accent-soft: #f6e3d3;
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.75vw, 1.5625rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --step-6: clamp(2.6rem, 1.6rem + 5vw, 4.75rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

h1, h2, h3 {
  font-family: 'Cherry Swash', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 1rem;
}
h2 { font-size: var(--step-3); }
h2 em, h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
}
p { margin: 0 0 1rem; text-wrap: pretty; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.25rem;
}
.eyebrow .tick { width: 26px; height: 3px; background: var(--accent); border-radius: 2px; flex: none; }
.eyebrow.light { color: #eaf4f5; }
.eyebrow.light .tick { background: #fdf9f2; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 250, 249, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.wordmark {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: 'Cherry Swash', Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--ink);
}
.wordmark-drop { width: 26px; height: 26px; fill: var(--accent); flex: none; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-call {
  background: var(--accent); color: #fdf6ee; text-decoration: none; font-weight: 700;
  padding: 10px 20px; border-radius: 6px; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.header-call:hover { background: var(--accent-deep); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fdfefe; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(8, 40, 52, 0.15) 0%, rgba(8, 40, 52, 0.62) 78%),
    linear-gradient(180deg, rgba(8, 40, 52, 0.35) 0%, rgba(8, 40, 52, 0.55) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; padding-top: clamp(5rem, 10vw, 8.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero-h { font-size: var(--step-6); color: #fdf9f2; max-width: 16ch; }
.hero-h em { color: #ffd9b8; }
.hero-line2 { display: block; margin-top: 0.15em; }
.mask { display: block; overflow: hidden; }
.mask > span { display: inline-block; transform: translateY(110%); animation: rise 0.75s var(--ease) forwards; }
.mask:nth-child(2) > span { animation-delay: 90ms; }
.hero-line2 > span { animation-delay: 180ms; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub {
  color: #eaf4f5; max-width: 62ch; font-size: var(--step-1); margin: 1.5rem 0 2rem;
  animation: fadeUp 0.7s var(--ease) 0.32s both;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; animation: fadeUp 0.7s var(--ease) 0.44s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; padding: 16px 30px; border-radius: 6px;
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn-solid { background: var(--accent); color: #fdf6ee; box-shadow: 0 8px 24px rgba(210, 97, 31, 0.35); }
.btn-solid:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost-light { border: 2px solid rgba(253,249,242,0.65); color: #fdf9f2; }
.btn-ghost-light:hover { border-color: #fdf9f2; transform: translateY(-2px); }
.btn-solid-dark { background: var(--ink); color: #fdf6ee; }
.btn-solid-dark:hover { transform: translateY(-2px); background: #0a2833; }

.trust-row {
  list-style: none; margin: 2.5rem 0 0; padding: 1.1rem 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  border-top: 1px solid rgba(253,249,242,0.35);
  font-size: 0.92rem; font-weight: 600; color: #eef7f8;
  animation: fadeUp 0.7s var(--ease) 0.56s both;
}
.stars { color: #ffd9b8; letter-spacing: 2px; }

/* ---------- proof strip ---------- */
.proof-strip { background: var(--ink); color: var(--paper); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 3rem; padding-bottom: 3rem; }
.proof-item { border-left: 3px solid var(--accent); padding-left: 18px; }
.proof-num { font-family: 'Cherry Swash', Georgia, serif; font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem); margin: 0; color: #fdf9f2; font-variant-numeric: tabular-nums; }
.proof-label { margin: 0.25rem 0 0; color: #b9d3d8; font-size: 0.92rem; }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-photo { margin: 0; }
.split-photo img {
  border-radius: 22px; box-shadow: 0 24px 60px rgba(14, 53, 66, 0.18);
  transition: transform 400ms var(--ease);
}
.split-photo:hover img { transform: scale(1.02); }
.split-photo figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

.process { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.process li {
  display: flex; gap: 18px; align-items: baseline; padding: 18px 0;
  border-top: 1px solid var(--hairline);
}
.process li:last-child { border-bottom: 1px solid var(--hairline); }
.p-num { font-family: 'Cherry Swash', Georgia, serif; color: var(--accent); font-size: 1.3rem; flex: none; }
.p-text { font-weight: 600; color: var(--ink-soft); }

/* ---------- vial divider ---------- */
.vial-divider { padding: 1rem 0; }
.vials { display: flex; justify-content: center; gap: 26px; }
.vial { width: 44px; height: auto; }
.vial-glass { fill: rgba(14, 53, 66, 0.08); stroke: var(--hairline); stroke-width: 2; }
.vial-cap { fill: var(--accent); }
.vial-fill { fill: url(#vialGrad); transform: scaleY(0); transform-origin: 50% 100%; transform-box: fill-box; transition: transform 1.4s var(--ease); }
.vial-divider.filled .vial:nth-child(2) .vial-fill { transition-delay: 150ms; }
.vial-divider.filled .vial:nth-child(3) .vial-fill { transition-delay: 300ms; }
.vial-divider.filled .vial-fill { transform: scaleY(0.72); }

/* ---------- service rows ---------- */
.service-rows { list-style: none; margin: 3rem 0 0; padding: 0; }
.service-row {
  display: grid; grid-template-columns: 90px 1fr 190px; gap: 28px; align-items: center;
  padding: 30px 8px; border-top: 1px solid var(--hairline);
  transition: background 180ms var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--hairline); }
.service-row:hover { background: rgba(217, 236, 238, 0.45); }
.row-num {
  font-family: 'Cherry Swash', Georgia, serif; font-size: 1.6rem; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.row-body h3 { font-size: 1.45rem; margin-bottom: 0.35rem; }
.row-body p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.row-photo { width: 190px; height: 120px; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 28px rgba(14,53,66,0.15); }

/* ---------- wipe ---------- */
.wipe { height: 26px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); }

/* ---------- store ---------- */
.store { background: var(--wash); }
.shelf-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.shelf-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 4px; border-top: 1px solid var(--wash-deep); font-weight: 700; font-size: 1.1rem;
}
.shelf-list li:last-child { border-bottom: 1px solid var(--wash-deep); }
.shelf-list span { font-weight: 400; color: var(--muted); font-size: 0.95rem; text-align: right; }
.delivery-note {
  margin-top: 1.5rem; display: inline-block; background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 700; padding: 10px 18px; border-radius: 6px;
}

/* ---------- team ---------- */
.team-band { background: var(--ink); color: var(--paper); padding: clamp(5rem, 10vw, 9rem) 0; }
.team-band h2 { color: #fdf9f2; }
.team-band h2 em { color: #ffd9b8; }
.team-band .eyebrow { color: #b9d3d8; }
.team-photo { margin: 2.5rem 0; }
.team-photo img { border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,0.35); }
.team-facts { max-width: 70ch; color: #dcebec; font-size: var(--step-1); }
.team-fine { color: #9dbcc3; font-size: 1rem; margin: 0; }

/* ---------- photo band ---------- */
.photo-band { height: clamp(240px, 38vw, 460px); overflow: hidden; position: relative; }
.photo-band img { width: 100%; height: 120%; object-fit: cover; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(-6%); } to { transform: translateY(2%); } }

/* ---------- proof band ---------- */
.proof-split { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.proof-big { text-align: left; }
.proof-star-num { font-family: 'Cherry Swash', Georgia, serif; font-size: clamp(4.5rem, 3rem + 8vw, 8rem); line-height: 1; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
.proof-big .stars { color: var(--accent); font-size: 1.6rem; }
.proof-big-label { color: var(--muted); font-weight: 600; }
.proof-facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 12px; }
.proof-facts li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.proof-facts li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  -webkit-mask: radial-gradient(circle at 50% 35%, transparent 32%, #000 34%);
  mask: radial-gradient(circle at 50% 35%, transparent 32%, #000 34%);
}

/* ---------- service area ---------- */
.area { background: var(--wash); }
.town-chips { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.town-chips li {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 10px 22px; font-weight: 700; color: var(--ink-soft);
}
.area-card {
  margin-top: 2.5rem; background: var(--paper); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 30px; display: grid; gap: 14px; max-width: 640px;
  box-shadow: 0 18px 44px rgba(14, 53, 66, 0.1);
}
.area-line { display: flex; gap: 18px; align-items: baseline; }
.area-line strong { min-width: 64px; color: var(--accent-deep); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.12em; }
.area-line a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); }

/* ---------- faq ---------- */
.faq-narrow { max-width: 820px; }
.accordion { margin-top: 2.5rem; }
.acc-item {
  border-top: 1px solid var(--hairline); padding: 0;
}
.acc-item:last-child { border-bottom: 1px solid var(--hairline); }
.acc-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: 'Cherry Swash', Georgia, serif; font-size: 1.3rem; padding: 22px 4px; color: var(--ink);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "+"; font-family: Georgia, serif; font-size: 1.8rem; color: var(--accent); flex: none;
  transition: transform 200ms var(--ease);
}
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-item p { padding: 0 4px 24px; color: var(--ink-soft); max-width: 62ch; margin: 0; }

/* ---------- final cta ---------- */
.final-cta { background: var(--accent); color: #fdf6ee; padding: clamp(5rem, 10vw, 8rem) 0; text-align: left; }
.final-cta h2 { color: #fdf9f2; font-size: clamp(2.6rem, 2rem + 5vw, 4.5rem); }
.final-cta h2 em { color: #ffe9d2; }
.final-cta .eyebrow.light .tick { background: #fdf9f2; }
.cta-phone {
  display: inline-block; font-family: 'Cherry Swash', Georgia, serif; font-weight: 700;
  font-size: clamp(2.4rem, 1.8rem + 5vw, 4.5rem); color: #fdf9f2; text-decoration: none;
  margin: 1.5rem 0 2rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  transition: transform 180ms var(--ease);
}
.cta-phone:hover { transform: scale(1.02); }
.cta-fine { margin: 1.5rem 0 0; color: #ffe9d2; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9d3d8; padding: 4rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-name { font-family: 'Cherry Swash', Georgia, serif; color: #fdf9f2; font-size: 1.3rem; margin-bottom: 0.5rem; }
.footer-col strong { color: #fdf9f2; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.12em; }
.footer-col a { color: #fdf9f2; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); }
.footer-fine { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(253,249,242,0.15); font-size: 0.88rem; }

/* ---------- mobile call bar ---------- */
.mobile-callbar { display: none; }

/* ---------- reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 100ms; }
.js .reveal[data-delay="2"] { transition-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .mask > span { transform: none; }
  .vial-divider.filled .vial-fill { transform: scaleY(0.72); }
  .photo-band img { animation: none; height: 100%; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .proof-split { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 64px 1fr; }
  .row-photo { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-call { margin-left: auto; padding: 9px 14px; font-size: 0.9rem; }
  .mobile-callbar {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    text-align: center;
  }
  .mobile-callbar a {
    display: block; background: var(--accent); color: #fdf6ee; text-decoration: none; font-weight: 700;
    padding: 14px; border-radius: 8px; font-variant-numeric: tabular-nums;
  }
  body { padding-bottom: 76px; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .area-line { flex-direction: column; gap: 4px; }
}
