/* Sneaky Leaks Plumbing — shared styles (every page).
   Brand: navy #04204f and red #c82818 from the logo, water blue for accents. */

@font-face { font-family: "Alfa Slab One"; src: url("/assets/fonts/alfa-slab-one-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy-950: #020d27;
  --navy-900: #04163a;
  --navy-800: #04204f;
  --navy-700: #0b2f6e;
  --navy-600: #154391;
  --red-700: #9f1d10;
  --red-600: #c82818;
  --red-500: #e03a28;
  --water-600: #0b78c8;
  --water-500: #1e9bf0;
  --water-400: #4bb8ff;
  --water-300: #8fd4ff;
  --water-100: #e3f3ff;
  --gold: #ffc531;
  --silver: #c8ced6;
  --ink: #0b1730;
  --ink-2: #3d4a63;
  --ink-3: #5c6880;
  --line: #dde4ee;
  --paper: #f3f6fb;
  --white: #fff;

  --font-display: "Alfa Slab One", "Rockwell Extra Bold", "Rockwell", "Arial Black", Georgia, serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;

  --wrap: 75rem;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --header-h: 4.75rem;
  --shadow-1: 0 1px 2px rgb(4 22 58 / 0.06), 0 6px 18px rgb(4 22 58 / 0.07);
  --shadow-2: 0 2px 4px rgb(4 22 58 / 0.06), 0 18px 44px rgb(4 22 58 / 0.14);
  --shadow-3: 0 30px 70px rgb(2 13 39 / 0.38);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw + 0.6rem, 5.1rem); }
h2 { font-size: clamp(2rem, 3.6vw + 0.7rem, 3.5rem); }
h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 700; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--water-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red-600); color: #fff; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: 0.75rem 1.1rem; border-radius: 0.6rem;
  background: var(--navy-800); color: #fff; font-weight: 700; text-decoration: none; transition: top 0.15s;
}
.skip:focus { top: 1rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-cond); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow::before { content: ""; width: 1.9em; height: 3px; border-radius: 3px; background: currentColor; }
.on-dark .eyebrow, .eyebrow--light { color: var(--water-300); }
.lead { font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.on-dark .lead { color: #d5e2f7; }
.nowrap { white-space: nowrap; }
/* A phone number is one unit: never let it break at the space or the hyphen. */
a[href^="tel:"] { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red-600); --btn-edge: var(--red-700); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.25rem; padding: 0.7em 1.45em; border: 0; border-radius: 0.8rem; cursor: pointer;
  font-family: var(--font-cond); font-weight: 700; font-size: 1.22rem; line-height: 1.1; letter-spacing: 0.035em; text-transform: uppercase; text-decoration: none; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg);
  box-shadow: 0 5px 0 var(--btn-edge), 0 14px 26px rgb(2 13 39 / 0.22);
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.14s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-edge), 0 20px 34px rgb(2 13 39 / 0.26); background: var(--red-500); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px rgb(2 13 39 / 0.2); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--navy { --btn-bg: var(--navy-800); --btn-edge: var(--navy-950); }
.btn--navy:hover { background: var(--navy-700); }
.btn--white { --btn-bg: #fff; --btn-edge: #b9c6da; --btn-fg: var(--navy-800); }
.btn--white:hover { background: #fff; }
.btn--ghost {
  --btn-fg: #fff; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.75);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.18); box-shadow: inset 0 0 0 2px #fff; }
.btn--ghost:active { box-shadow: inset 0 0 0 2px #fff; }
.btn--outline { --btn-fg: var(--navy-800); background: transparent; box-shadow: inset 0 0 0 2px var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: #fff; box-shadow: inset 0 0 0 2px var(--navy-800); }
.btn--outline:active { box-shadow: inset 0 0 0 2px var(--navy-800); }
.btn--sm { min-height: 2.75rem; font-size: 1.08rem; padding: 0.55em 1.1em; }
.btn--lg { min-height: 3.75rem; font-size: 1.42rem; padding: 0.7em 1.6em; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }

.textlink { color: var(--red-600); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.textlink:hover { color: var(--red-700); }
.on-dark .textlink { color: var(--water-300); }
.on-dark .textlink:hover { color: #fff; }

/* ---------- Emergency strip + header ---------- */
.alertbar {
  background: var(--red-600); color: #fff; text-align: center; font-weight: 500; font-size: 0.98rem; line-height: 1.35;
  padding: 0.5rem var(--gutter);
}
.alertbar a { font-weight: 700; white-space: nowrap; text-underline-offset: 0.2em; }
.alertbar strong { font-family: var(--font-cond); font-size: 1.08rem; letter-spacing: 0.08em; text-transform: uppercase; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.site-header.is-stuck { box-shadow: 0 8px 30px rgb(4 22 58 / 0.12); border-color: var(--line); }
.site-header__in { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: block; flex: none; margin-right: auto; border-radius: 0.5rem; }
.brand img { width: auto; height: 3.6rem; }

.nav ul { display: flex; align-items: center; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 0.6rem; text-decoration: none;
  font-family: var(--font-cond); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-800);
  transition: background-color 0.15s, color 0.15s;
}
.nav a:hover { background: var(--water-100); }
.nav a[aria-current="true"] { color: var(--red-600); }
.site-header__cta { display: flex; flex: none; align-items: center; gap: 0.7rem; }
.nav-toggle {
  position: relative; flex: none; display: none; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 0.9rem; border: 2px solid var(--navy-800); border-radius: 0.7rem;
  background: #fff; color: var(--navy-800); cursor: pointer;
  font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-toggle__bars { position: relative; width: 1.15rem; height: 2px; background: currentColor; border-radius: 2px; transition: background-color 0.2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform 0.2s var(--ease);
}
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

@media (max-width: 68rem) {
  .site-header__cta .btn--outline { display: none; }
}
@media (max-width: 56rem) {
  :root { --header-h: 4.25rem; }
  /* The call button and menu button keep their size. If the row ever runs short (large text,
     fonts still loading), the logo scales down instead of the phone number wrapping. */
  .brand { flex: 0 1 auto; min-width: 2rem; }
  .brand img { height: 3.1rem; max-width: 100%; object-fit: contain; object-position: left center; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgb(4 22 58 / 0.16); padding: 0.5rem var(--gutter) 1.25rem;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .js .nav { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s; }
  .js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .no-js .nav { position: static; box-shadow: none; border: 0; padding: 0; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header__in { flex-wrap: wrap; padding-block: 0.5rem; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; }
  .nav a { padding: 0.9rem 0.25rem; font-size: 1.3rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .no-js .nav a { border: 0; padding: 0.4rem 0.6rem; font-size: 1rem; }
}
/* The header call button shows the full number, area code included, at every width.
   Room is made around it instead: first the menu label, then spacing, then the phone icon. */
@media (max-width: 30rem) {
  .site-header__in { gap: 0.6rem; }
  .brand img { height: 2.7rem; }
}
@media (max-width: 26rem) {
  /* Phones: the menu button drops to its icon. The "Menu" label stays in the accessibility tree. */
  .nav-toggle { width: 2.9rem; padding: 0; }
  .nav-toggle__bars + span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 22rem) {
  .site-header__cta .btn { font-size: 1rem; padding-inline: 0.75em; gap: 0.45em; }
  .brand img { height: 2.5rem; }
}
@media (max-width: 19.5rem) {
  .site-header__in { gap: 0.45rem; }
  .site-header__cta .btn svg { display: none; }
  .brand img { height: 2.4rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #c9d6ee; font-size: 1rem; padding: clamp(3rem, 6vw, 5rem) 0 2rem; position: relative; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.site-footer__logo { width: 13.5rem; margin-bottom: 1rem; filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.4)); }
.site-footer h2 {
  font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--water-300); margin-bottom: 0.9rem; line-height: 1.2;
}
.site-footer ul { display: grid; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer address { font-style: normal; display: grid; gap: 0.5rem; }
.site-footer__phone { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; color: #fff; }
.site-footer__base {
  margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; justify-content: space-between; font-size: 0.93rem; color: #a9b8d4;
}
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
@media (max-width: 60rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile action bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgb(4 22 58 / 0.14);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.callbar.is-visible { transform: none; }
.callbar .btn { flex: 1; min-height: 3.1rem; font-size: 1.15rem; padding-inline: 0.6em; box-shadow: 0 4px 0 var(--btn-edge); }
@media (max-width: 56rem) {
  .callbar { display: flex; }
  body.has-callbar { padding-bottom: 4.6rem; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.35rem; }
.field label, .field legend { font-weight: 700; font-size: 0.98rem; color: var(--navy-800); padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 0.9rem; border: 2px solid #c5d0e0; border-radius: 0.7rem; background: #fff; color: var(--ink);
  font-size: 1.0625rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2304204f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1rem; padding-right: 2.6rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8fa3c2; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--water-500); box-shadow: 0 0 0 4px rgb(30 155 240 / 0.22); }
.field [aria-invalid="true"] { border-color: var(--red-600); }
.field__error { color: var(--red-700); font-size: 0.92rem; font-weight: 500; }
.field__error:empty { display: none; }

/* ---------- Legal / simple pages ---------- */
.page-hero {
  position: relative; background: radial-gradient(120% 140% at 20% 0%, var(--navy-700), var(--navy-800) 45%, var(--navy-950)); color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: clip;
}
.page-hero::before {
  content: ""; 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%3Cpath fill='%23fff' fill-opacity='.09' d='m20 8 2.6 7.4h7.8l-6.3 4.7 2.4 7.5-6.5-4.6-6.5 4.6 2.4-7.5-6.3-4.7h7.8zM84 66l1.8 5.2h5.5l-4.4 3.3 1.7 5.3-4.6-3.3-4.6 3.3 1.7-5.3-4.4-3.3h5.5z'/%3E%3C/svg%3E");
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw + 0.6rem, 3.8rem); }
.page-hero p { margin-top: 1rem; max-width: 46rem; color: #d5e2f7; font-size: 1.15rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.98rem; color: var(--water-300); }
.crumbs a { color: #fff; text-underline-offset: 0.2em; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }

.prose-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 1.25rem); font-size: 0.97rem; border-left: 3px solid var(--line); padding-left: 1rem; }
.toc h2 { font-family: var(--font-cond); font-weight: 700; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.6rem; line-height: 1.2; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red-600); text-decoration: underline; text-underline-offset: 0.2em; }
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.6rem; line-height: 1.2; letter-spacing: 0; color: var(--navy-800); margin-top: 2.6rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h3 { font-size: 1.15rem; color: var(--navy-800); margin-top: 1.7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.prose a { color: var(--red-600); font-weight: 500; text-underline-offset: 0.18em; }
.prose a:hover { color: var(--red-700); }
.prose strong { color: var(--navy-800); }
.prose .note { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--water-500); border-radius: 0.75rem; padding: 1rem 1.2rem; }
.prose .note--alert { border-left-color: var(--red-600); background: #fff5f3; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--navy-800); background: var(--paper); }
.prose .meta { color: var(--ink-3); font-size: 0.98rem; }
.table-scroll { overflow-x: auto; }
@media (max-width: 52rem) {
  .prose-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.cta-band { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: clamp(1.6rem, 2.6vw + 0.6rem, 2.4rem); color: var(--navy-800); }
.cta-band p { color: var(--ink-2); margin-top: 0.4rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; background: radial-gradient(120% 120% at 50% 0%, var(--navy-700), var(--navy-800) 50%, var(--navy-950)); color: #fff; }
.center-page .wrap { display: grid; justify-items: center; gap: 1.25rem; }
.center-page p { max-width: 36rem; color: #d5e2f7; font-size: 1.2rem; }
.center-page__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.5rem; }
.center-page__mark { width: min(22rem, 70vw); filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.45)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .alertbar, .site-header, .callbar, .toc, .cta-band, .site-footer__grid { display: none !important; }
  body { font-size: 11pt; }
  .page-hero { background: none; color: #000; padding: 0 0 1rem; }
  .page-hero p, .crumbs { color: #333; }
}
