/* Front Porch Water Filtration: "Porch in a Drop" brand.
   Color balance: Clean White 52% · Ice Blue 15% · Navy 20% · Sky 8% · Red 5% (red is the spice, not the meal). */
:root {
  --white: #ffffff;
  --ice: #eaf3fc;
  --navy: #1e2d5a;
  --navy-2: #2b3d72;
  --sky: #8eb8e5;
  --red: #d7362b;
  --red-dark: #b92a20;
  --ink: #1e2d5a;
  --muted: #45517a;
  --line: #c9dcf1;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 8px 8px 0 var(--navy);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--sky); }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Display type: heavy italic serif with a sky-blue offset, like the wordmark */
h1, h2, .display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .45em;
  color: var(--navy);
  text-shadow: 3px 3px 0 var(--sky);
}
h1 { font-size: clamp(2.05rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 5vw, 2.75rem); text-shadow: 2px 2px 0 var(--sky); }
h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; line-height: 1.25; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Label style from the guide: heavy, wide-spaced caps */
.kicker, .eyebrow {
  font-family: var(--sans); font-weight: 800; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin: 0 0 10px;
}

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-drop { width: 34px; height: 44px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.wordmark-name {
  font-family: var(--display); font-style: italic; font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: 1.45rem; letter-spacing: -.01em; color: var(--navy);
  text-shadow: 2px 2px 0 var(--sky);
}
.wordmark-sub {
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font-family: var(--sans); font-weight: 800; font-size: .6rem; letter-spacing: .2em; color: var(--red);
}
.wordmark-sub::before, .wordmark-sub::after {
  content: ""; width: 14px; height: 5px; flex: none;
  border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
}
.logo-light .wordmark-name { color: var(--white); text-shadow: 2px 2px 0 var(--navy-2); }
.logo-light .wordmark-sub { color: var(--sky); }
.logo-light .wordmark-sub::before, .logo-light .wordmark-sub::after { border-color: var(--sky); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 3px solid var(--navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); background: var(--navy);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--sky);
}
.header-phone:hover { background: var(--navy-2); color: var(--white); }
.header-phone svg { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 28px;
  font: 700 1.1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 3px solid var(--navy); border-radius: 999px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--red); color: var(--white); box-shadow: 4px 4px 0 var(--navy); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--navy); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--navy); }
.btn-primary:disabled { opacity: .75; cursor: progress; }
.btn-block { width: 100%; }
.btn-lg { min-height: 64px; font-size: 1.2rem; padding: 16px 34px; }
.cta-row { margin-top: 44px; text-align: center; }

/* ---------- Hero ---------- */
.hero { background: var(--ice); padding: 28px 0 60px; border-bottom: 3px solid var(--navy); position: relative; overflow: hidden; }
.hero::after {
  /* big faint drop in the corner */
  content: ""; position: absolute; right: -90px; top: -60px; width: 420px; height: 546px; pointer-events: none;
  background: url("images/drop-outline.svg") center/contain no-repeat; opacity: .3;
}
@media (min-width: 900px) { .hero::after { opacity: .6; } }
.hero-grid { display: grid; gap: 28px; position: relative; z-index: 1; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 36em; margin-bottom: 0; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: none; }
.hero-points li { position: relative; padding-left: 36px; margin-bottom: 12px; font-weight: 500; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;
}

/* ---------- Form card ---------- */
.form-card {
  position: relative; background: var(--white);
  border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 20px 22px; scroll-margin-top: 20px;
}
.form-card-tag {
  position: absolute; top: -16px; left: 20px;
  background: var(--red); color: var(--white);
  font-weight: 800; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; border: 2px solid var(--navy);
}
.form-title { font-size: 1.65rem; text-shadow: 2px 2px 0 var(--sky); margin-bottom: .3em; }
.form-sub { color: var(--muted); font-size: 1rem; }

.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
label, legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; min-height: 52px;
  font: 400 1.0625rem/1.3 var(--sans); color: var(--ink);
  background: var(--white); border: 2px solid #8b95b3; border-radius: 12px; padding: 12px 14px;
}
select {
  appearance: none; -webkit-appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231e2d5a' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center/20px no-repeat;
  padding-right: 42px;
}
input:focus, select:focus { border-color: var(--navy); outline: 3px solid var(--sky); outline-offset: 0; }
.field.invalid input, .field.invalid select { border-color: var(--red); background-color: #fff5f4; }
.error { color: var(--red-dark); font-size: .95rem; font-weight: 500; margin: 6px 0 0; }
.error:empty { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { width: 100%; }
.chip { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px;
  border: 2px solid #8b95b3; border-radius: 999px; background: var(--white);
}
.chip input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.note { width: 100%; font-size: .95rem; background: var(--ice); border-left: 4px solid var(--sky); padding: 10px 12px; border-radius: 8px; margin: 6px 0 0; }

.consent { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-ice { background: var(--ice); border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2 { color: var(--white); text-shadow: 3px 3px 0 var(--navy-2); }
.section-navy .kicker { color: var(--sky); }

/* Step numbers sit in little drops */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.step { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius-sm); padding: 26px 22px 24px; }
.step-num {
  position: relative; isolation: isolate;
  display: grid; place-items: center; width: 46px; height: 46px; margin: 14px 0 18px 6px;
  font: 900 1.35rem/1 var(--sans); color: var(--white);
}
.step-num::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy); border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  box-shadow: 3px 3px 0 var(--sky);
}
.step p { margin: 0; color: var(--muted); }

.porch-band {
  margin: 44px 0 0; display: grid; gap: 22px; align-items: center;
  background: var(--sky); border: 3px solid var(--navy); border-radius: var(--radius); padding: 20px;
}
.porch-band img { width: 100%; height: auto; border-radius: 12px; border: 3px solid var(--navy); }
.porch-band .display { font-size: 1.75rem; text-shadow: 2px 2px 0 var(--white); margin-bottom: .35em; }
.porch-band figcaption p:last-child { margin: 0; color: var(--navy); }

.cards { display: grid; gap: 18px; margin-top: 30px; }
.card { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius-sm); padding: 24px 22px; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 46px; height: 46px; color: var(--navy); margin-bottom: 14px; }
.card-icon .accent { color: var(--red); }

.why-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 24px; }
.why-list li { padding-left: 22px; border-left: 5px solid var(--sky); }
.why-list p { margin: 0; color: var(--muted); }

.area { display: grid; gap: 28px; align-items: center; }
.cities { list-style: none; padding: 0; margin: 22px 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.cities li {
  font-weight: 700; padding: 8px 18px; border-radius: 999px;
  background: var(--white); color: var(--navy); border: 2px solid var(--sky);
}
.area-note { font-size: 1.15rem; margin: 0; }
.area-art { width: 130px; justify-self: center; }

.faq details { border: 3px solid var(--navy); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 60px 18px 20px; position: relative;
  font-weight: 700; font-size: 1.15rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  font: 700 1.35rem/1 var(--sans); color: var(--white); background: var(--navy); border-radius: 50%;
  box-shadow: 2px 2px 0 var(--sky);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { background: var(--ice); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0; color: var(--muted); }

.final-cta { background: var(--sky); border-top: 3px solid var(--navy); }
.final-cta h2 { text-shadow: 3px 3px 0 var(--white); }
.final-cta p { font-size: 1.2rem; color: var(--navy); }
.final-cta .cardinal { width: 60px; height: 60px; margin: 0 auto 12px; }
.text-us { margin: 22px 0 0; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 44px 0 120px; font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration-color: var(--sky); }
.footer-grid { display: grid; gap: 20px; }
.footer-grid .logo { margin-bottom: 14px; }
.small { font-size: .875rem; opacity: .85; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 3px solid var(--navy);
  transition: transform .2s ease;
}
.sticky-cta.is-hidden { transform: translateY(110%); }
.sticky-cta .btn { min-height: 52px; box-shadow: 3px 3px 0 var(--navy); }

/* ---------- Simple pages (thanks, privacy, terms) ---------- */
.page { padding: 48px 0 72px; background: var(--ice); }
.page h1 { font-size: clamp(2rem, 5.5vw, 2.8rem); }
.page h2 { font-size: 1.55rem; margin-top: 1.5em; text-shadow: 2px 2px 0 var(--sky); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.page-card { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); padding: 28px 22px; }
.draft-note {
  background: #fff5f4; border: 2px solid var(--red); color: var(--red-dark); border-radius: 12px;
  padding: 12px 16px; font-weight: 700; margin-bottom: 24px;
}
.thanks-card {
  background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px 24px; text-align: center;
}
.thanks-card .thanks-drop { width: 70px; height: 91px; margin: 0 auto 14px; }
.thanks-card .lede { margin: 0 auto 28px; color: var(--ink); }
.thanks-card .btn { margin-bottom: 16px; }
.site-footer.short { padding-bottom: 40px; }

/* ---------- Small phones ---------- */
@media (max-width: 420px) {
  .header-phone { padding: 9px 12px; font-size: .95rem; }
  .header-phone svg { display: none; }
  .logo-drop { width: 28px; height: 36px; }
  .wordmark-name { font-size: 1.25rem; }
  .wordmark-sub { font-size: .52rem; letter-spacing: .16em; gap: 4px; }
  .wordmark-sub::before, .wordmark-sub::after { width: 8px; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 36px 30px 26px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .why-list { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
  .page-card { padding: 40px 44px; }
}

@media (min-width: 900px) {
  .hero { padding: 64px 0 84px; }
  .hero::after { right: -40px; top: -40px; width: 520px; height: 676px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
  .hero-copy { padding-top: 28px; }
  .lede { font-size: 1.25rem; }
  .hero-points { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .porch-band { grid-template-columns: 1.1fr .9fr; padding: 28px; gap: 40px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .area { grid-template-columns: 1fr auto; }
  .area-art { width: 170px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .site-footer { padding-bottom: 44px; }
  .sticky-cta { display: none; }
  .wordmark-name { font-size: 1.65rem; }
  .logo-drop { width: 38px; height: 49px; }
}
