/* ==========================================================================
   Droplet Water Co. — site styles
   Mobile-first. No external fonts, no CDN, no JS framework. Speed is a
   conversion lever: every 100ms of LCP costs form fills on cold Meta traffic.
   Palette rationale + the trade-dress line: see ../../BUILD-NOTES.md §3.
   ========================================================================== */

:root {
  /* Brand — deliberately NOT Parker's. See BUILD-NOTES.md §3. */
  --navy-900: #071B33;
  --navy-800: #0A2540;  /* primary surface — authority */
  --navy-700: #123A5E;
  --navy-600: #1B4F7E;

  --gulf-500: #0EA5E9;  /* brand accent — the droplet, the checks. Tampa/Gulf, not Raleigh. */
  --gulf-400: #38BDF8;
  --gulf-100: #E0F2FE;

  /* CTA ONLY. Never decorative — the eye must learn one colour = one action. */
  --cta-500: #EA6A1E;   /* button/icon FILL. Never a text colour on light — 3.19:1 on white. */
  --cta-400: #F5853F;   /* button HOVER fill. Lighter, not darker — see the .btn note. */
  --cta-600: #C9540F;   /* dark fill for non-text surfaces only. Fails as text: 4.19:1 on --paper-alt. */
  --cta-text: #B8490B;  /* the ONLY accent safe for text on light. 4.99:1 on --paper-alt ✅ AA.
                           Recomputed 2026-07-17. If you tint the accent, re-derive this —
                           do not eyeball it. */

  --ink-900: #0B1620;
  --ink-700: #33424F;
  --ink-500: #5C6C7A;

  --paper: #FFFFFF;
  --paper-alt: #F4FAFE;
  --line: #DCE7F0;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(7, 27, 51, .08);
  --shadow-md: 0 8px 24px rgba(7, 27, 51, .10);
  --shadow-lg: 0 18px 48px rgba(7, 27, 51, .18);

  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Height of the fixed mobile action bar — body padding compensates. */
  --mobilebar: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--mobilebar); /* clears the fixed mobile bar */
}
@media (min-width: 861px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  color: var(--navy-800);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-600); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
@media (min-width: 861px) { .section { padding: 92px 0; } }

.section--navy { background: var(--navy-800); color: #C7DBEC; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--alt { background: var(--paper-alt); }

.center { text-align: center; }
.lede { font-size: 1.06rem; max-width: 62ch; margin-inline: auto; }
.section--navy .lede { color: #A9C6DD; }

/* Eyebrow pill — Parker's section-label device. Structure is unprotectable; the copy is ours. */
.eyebrow {
  display: inline-block;
  border: 1px solid var(--gulf-400);
  color: var(--gulf-500);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section--navy .eyebrow { border-color: rgba(56,189,248,.5); color: var(--gulf-400); }

/* ---------- Buttons ---------- */
/* Button text is INK, not white — an accessibility fix, not a style choice.
   Recomputed 2026-07-17 (WCAG 2.x relative luminance), AA normal text = 4.5:1:
     white     on --cta-500 #EA6A1E → 3.19:1  ❌   (what this shipped as)
     white     on --cta-600 #C9540F → 4.41:1  ❌   (darkening does NOT fix it)
     --ink-900 on --cta-500 #EA6A1E → 5.72:1  ✅
   Consequence: because the text is now dark, HOVER MUST GO LIGHTER.
   Hovering to --cta-600 would drop ink to 4.14:1 and fail on hover only —
   the nastiest kind, since it looks fine until you interact with it.
     --ink-900 on --cta-400 #F5853F → 7.23:1  ✅
   Any mid-tone warm accent behaves this way. If the CTA hue changes, re-derive
   both — do not eyeball it. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cta-500);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease;
  min-height: 52px; /* thumb target */
}
.btn:hover { background: var(--cta-400); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gulf-400); outline-offset: 3px; }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--navy-800);
  box-shadow: none;
  font-weight: 600;
}
.btn--ghost:hover { background: var(--paper-alt); border-color: var(--gulf-400); }
.btn__arrow { font-size: 1.05em; line-height: 1; }

/* ---------- Phone bar ---------- */
.phonebar {
  background: var(--navy-900);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: .93rem;
  font-weight: 600;
}
.phonebar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.phonebar a:hover { text-decoration: underline; }
.phonebar__hours { color: #7FA8C9; font-weight: 500; }
@media (max-width: 600px) { .phonebar__hours { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img, .nav__logo svg { height: 50px; width: auto; }
.nav__links { display: none; gap: 30px; align-items: center; }
@media (min-width: 861px) { .nav__links { display: flex; } }
.nav__links a {
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--cta-500); }
.nav__cta { display: none; }
@media (min-width: 861px) { .nav__cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(102deg, rgba(7,27,51,.94) 0%, rgba(10,37,64,.86) 52%, rgba(10,37,64,.72) 100%),
    var(--navy-800) url("assets/hero.svg") center/cover no-repeat;
  color: #fff;
  padding: 44px 0 52px;
}
@media (min-width: 861px) { .hero { padding: 76px 0 84px; } }
.hero__grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 961px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 52px; } }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero__sub { color: #C7DBEC; font-size: 1.07rem; max-width: 56ch; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(56,189,248,.42);
  background: rgba(14,165,233,.10);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: .87rem; font-weight: 600; color: #DCEEFB;
}
.chip svg { flex: none; }

/* ---------- Form ---------- */
.formcard {
  background: var(--navy-700);
  border: 1px solid rgba(56,189,248,.24);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 861px) { .formcard { padding: 32px 30px; } }
.formcard__title { color: #fff; text-align: center; font-size: 1.45rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
.formcard__sub { color: #A9C6DD; text-align: center; font-size: .9rem; margin: 0 0 20px; }

.field { margin-bottom: 11px; }
.field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* <16px triggers iOS zoom-on-focus — never lower this */
  color: var(--ink-900);
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  padding: 14px 18px;
  min-height: 50px;
  appearance: none;
}
.field textarea { border-radius: var(--radius); min-height: 110px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2333424F' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gulf-400);
  box-shadow: 0 0 0 4px rgba(56,189,248,.26);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-500); }

.consent {
  color: #9BBBD6;
  font-size: .705rem;
  line-height: 1.5;
  text-align: center;
  margin: 14px 0 0;
}
.consent a { color: #CBE4F7; }

.trustrow {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 20px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.trustrow__item { display: flex; align-items: center; gap: 8px; color: #CBE4F7; font-size: .76rem; font-weight: 600; line-height: 1.25; }
.trustrow__item svg { flex: none; }

/* ---------- Process ---------- */
.process__grid { display: grid; gap: 30px; }
@media (min-width: 961px) { .process__grid { grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; } }
.steps { display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px;
  border: 1px solid rgba(56,189,248,.3);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(14,165,233,.05);
}
.step__icon {
  flex: none;
  width: 50px; height: 50px;
  border: 1.5px solid var(--gulf-400);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gulf-400);
}
.step h3 { margin-bottom: 5px; }
.step p { margin: 0; font-size: .93rem; color: #A9C6DD; }
.process__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Services ---------- */
.cards { display: grid; gap: 22px; }
@media (min-width: 641px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 3/2; width: 100%; object-fit: cover; background: var(--gulf-100); }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .93rem; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 8px; padding: 11px 22px; font-size: .9rem; min-height: 44px; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 961px) { .about__grid { grid-template-columns: 1.05fr .95fr; gap: 52px; } }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; font-size: .95rem; }
.checks svg { flex: none; margin-top: 3px; color: var(--cta-500); }
.checks strong { color: #fff; }
.about__media {
  border: 1px solid rgba(234,106,30,.5);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: rgba(255,255,255,.03);
}

/* ---------- Proof ---------- */
.proof { display: grid; gap: 18px; }
@media (min-width: 641px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 961px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof__item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
}
.proof__icon {
  width: 46px; height: 46px; margin: 0 auto 12px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--gulf-100); color: var(--navy-600);
}
.proof__item h3 { font-size: 1rem; margin-bottom: 5px; }
.proof__item p { font-size: .86rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 11px; }
.faq details { border-radius: var(--radius); overflow: hidden; background: var(--navy-800); }
.faq details[open] > summary { background: var(--cta-500); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 22px;
  color: #fff; font-weight: 700; font-size: 1rem;
  min-height: 58px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--gulf-400); outline-offset: -3px; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq__a { padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-top: 0; }
.faq__a p { margin: 0; font-size: .95rem; }
.faq__a p + p { margin-top: .8em; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 22px; }
@media (min-width: 861px) { .contact__grid { grid-template-columns: .8fr 1.2fr; } }
.contact__card { background: var(--paper-alt); border-radius: var(--radius-lg); padding: 30px; }
.contact__list { display: grid; gap: 20px; margin-top: 22px; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; }
.contact__ico {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cta-500); color: #fff; display: grid; place-items: center;
}
.contact__row strong { display: block; color: var(--cta-text); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.contact__row a { color: var(--ink-900); text-decoration: none; font-weight: 600; }
.contact__row a:hover { text-decoration: underline; }

.formcard--light { background: var(--paper-alt); border: 1px solid var(--line); box-shadow: none; }
.formcard--light .formcard__title { color: var(--navy-800); text-align: left; }
.formcard--light .field input,
.formcard--light .field select,
.formcard--light .field textarea { border-color: var(--line); }
.formcard--light .consent { color: var(--ink-500); }
.form__row { display: grid; gap: 11px; }
@media (min-width: 641px) { .form__row { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--paper-alt); border-top: 1px solid var(--line); padding: 54px 0 0; }
.footer__grid { display: grid; gap: 34px; }
@media (min-width: 861px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr 1.4fr; } }
.footer h3 { color: var(--cta-text); font-size: 1.1rem; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { color: var(--ink-700); text-decoration: none; font-size: .93rem; }
.footer a:hover { color: var(--cta-text); }
.footer__logo { height: 78px; width: auto; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cta-500); color: #fff;
  display: grid; place-items: center;
}
.socials a:hover { background: var(--cta-600); color: #fff; }
.footer__legal {
  margin-top: 44px; border-top: 3px solid var(--cta-500);
  background: var(--navy-800); color: #A9C6DD;
  text-align: center; padding: 18px; font-size: .82rem;
}
.footer__legal a { color: #CBE4F7; font-size: inherit; }
.footer__disclaimer { color: #7FA8C9; font-size: .74rem; max-width: 78ch; margin: 8px auto 0; line-height: 1.5; }

/* ---------- Fixed mobile action bar ---------- */
.mobilebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(7,27,51,.12);
}
@media (min-width: 861px) { .mobilebar { display: none; } }
.mobilebar .btn { padding: 13px 12px; font-size: .93rem; min-height: 48px; }
.mobilebar .btn--ghost { border-color: var(--navy-800); color: var(--navy-800); }

.skip {
  position: absolute; left: -9999px;
  background: var(--navy-800); color: #fff; padding: 12px 20px; z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Interior pages (service, service-area, legal) ---------- */
.hero--plain { background: var(--navy-800); padding: 40px 0 48px; }
@media (min-width: 861px) { .hero--plain { padding: 60px 0 68px; } }
.hero--plain .hero__sub { max-width: 60ch; }

.crumbs { font-size: .82rem; color: #A9C6DD; margin-bottom: 16px; }
.crumbs a { color: #CBE4F7; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: #7FA8C9; margin: 0 6px; }

/* Readable long-form column */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul { margin: 0; padding-left: 1.25em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gulf-500); }
.prose strong { color: var(--navy-800); }

/* Scope-boundary callout — the well-water YELLOW line, made visible */
.scopebox {
  border-left: 4px solid var(--cta-500);
  background: var(--paper-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 1.6em 0;
}
.scopebox strong { color: var(--navy-800); }

/* Related-services chips at the foot of an interior page */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.related a {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 10px 18px; font-size: .9rem; font-weight: 600;
  color: var(--navy-800); text-decoration: none; background: #fff;
}
.related a:hover { border-color: var(--gulf-400); background: var(--paper-alt); }
