/* Residential Leak Detection — styles.css.
   Base tokens and elements first, then components, then page layouts.
   Imported once by src/layouts/Base.astro, so every page links a single CSS file. *//* Residential Leak Detection: global styles.
   Approved New Build template, with sky blue, warm white and deep-blue calls.
   The inherited amber tokens carry ocean-blue actions and details. The cold token carries copper,
   1px rules instead of boxes, Big Shoulders Display for display, IBM Plex Sans for everything else.
   Fonts are self-hosted under the SIL Open Font Licence (licence files in /fonts). */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/BigShouldersDisplay-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-400-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffdf7;
  --stone: #edf7fc;
  --stone-2: #d5edf8;
  --rule: #c5dfe9;
  --rule-strong: #608496;
  --ink: #173e54;
  --ink-2: #3e5d6e;
  --ink-3: #516c7a;
  --sky: #83cef0;
  --sky-soft: #d5edf8;
  --action-ink: #fff;
  --amber: #00749b;
  --amber-deep: #005975;
  --amber-tint: #dff2fc;
  --cold: #9b4d21;

  --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;

  --t-display: clamp(2.875rem, 1.7rem + 3.8vw, 5rem);
  --t-h1: clamp(2.5rem, 1.4rem + 3vw, 4rem);
  --t-h2: clamp(2rem, 1.4rem + 1.8vw, 2.875rem);
  --t-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --t-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-micro: 0.8125rem;

  --max: 1440px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings:
    'kern' 1,
    'liga' 1;
  caret-color: var(--amber-deep);
  scrollbar-color: var(--rule-strong) var(--paper);
}
::selection {
  background: var(--amber-tint);
  color: var(--ink);
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

/* Type */
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
  font-weight: 800;
}
h1 {
  font-size: var(--t-h1);
  line-height: 1;
  letter-spacing: -0.005em;
}
.display {
  font-size: var(--t-display);
  line-height: 0.98;
  letter-spacing: -0.005em;
  max-width: 19ch;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 26ch;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.1;
  letter-spacing: 0.005em;
  font-weight: 700;
}
h4 {
  font-family: var(--body);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: 0;
}
p {
  margin: 0;
}
p + p {
  margin-top: 1em;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 62ch;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: var(--t-small);
}
.micro {
  font-size: var(--t-micro);
  letter-spacing: 0.01em;
}
.num {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    'tnum' 1,
    'lnum' 1;
}
strong {
  font-weight: 600;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color 0.2s var(--ease);
}
a:hover {
  text-decoration-color: var(--amber-deep);
  text-decoration-thickness: 2px;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
}
.arrow-link .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.25s var(--ease);
}
.arrow-link:hover .icon {
  transform: translateX(4px);
}
.arrow-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
  text-decoration-thickness: 2px;
}
ul.plain,
ol.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.section + .section {
  border-top: 1px solid var(--rule);
}
.band {
  background: var(--stone);
}
.section-head {
  display: grid;
  gap: 1rem 3rem;
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head > p {
  max-width: 60ch;
}
.grid {
  display: grid;
  gap: var(--gap, 2rem);
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .split.reverse {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.stack > * + * {
  margin-top: var(--stack, 1rem);
}
.stack-lg {
  --stack: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.4rem;
  min-height: 48px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  color: var(--action-ink);
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.1s var(--ease);
}
.btn:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--action-ink);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn .icon {
  width: 1.15em;
  height: 1.15em;
}
.btn-quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule-strong);
}
.btn-quiet:hover {
  background: var(--stone);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-sm {
  padding: 0.65rem 1rem;
  min-height: 40px;
  font-size: 0.9375rem;
}
.btn-block {
  width: 100%;
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

/* Figures */
.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.figure {
  display: grid;
  grid-template-rows: minmax(3em, auto) auto;
  align-content: start;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
}
.figure + .figure {
  border-left: 1px solid var(--rule);
}
@media (max-width: 719px) {
  .figure:nth-child(3) {
    border-left: 0;
  }
  .figure:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}
.figure .value {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.figure .label {
  display: grid;
  align-content: center;
  margin: 0;
  line-height: 1.4;
  font-size: var(--t-small);
  color: var(--ink-2);
}

/* Pills and status */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  max-width: 100%;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: var(--t-micro);
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.pill-repaired .dot {
  background: var(--amber);
}
.pill-located .dot {
  background: var(--ink);
}
.pill-diagnosed .dot {
  background: var(--cold);
}

/* Accordion */
.faq {
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.125rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 0 1.5rem;
  max-width: 68ch;
  color: var(--ink-2);
}

/* Prose (guides and policy pages) */
.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.prose p + p,
.prose ul,
.prose ol {
  margin-top: 1em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  font-size: var(--t-small);
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.7em 0.75em 0.7em 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.prose th {
  font-weight: 600;
}
.prose .note {
  padding: 1.25rem 1.5rem;
  background: var(--stone);
  border-radius: var(--radius-lg);
  margin-top: 1.5em;
}

/* Page header (inner pages) */
.page-head {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}
.page-head + .section {
  padding-top: clamp(1rem, 2vw, 2rem);
}
.page-head .lead {
  margin-top: 1.25rem;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: var(--t-small);
  color: var(--ink-2);
  list-style: none;
  padding: 0;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--rule-strong);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* Table-ish lists */
.deflist {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.deflist > div {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .deflist > div {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}
.deflist dt {
  font-weight: 600;
  margin: 0;
}
.deflist dd {
  margin: 0;
  color: var(--ink-2);
}

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .btn {
    display: none !important;
  }
  body {
    font-size: 11pt;
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
  }
}

/* Case photographs use the same frame as the original case diagrams. */
.case-photo {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}
/* Component: Header.astro */
.site-header {
  --paper: var(--sky);
  --stone: var(--sky);
  --ink-2: #234b60;
  --rule: #72b4cf;
  --rule-strong: #3d708b;
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header :focus-visible {
  outline-color: var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.site-header .brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  padding: 0.5rem 0;
}
.site-header .brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-header .brand-by {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  margin-top: 2px;
}
.nav-list {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.nav-list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-list a:hover {
  border-bottom-color: var(--amber-deep);
}
.nav-list a[aria-current='page'] {
  border-bottom-color: var(--ink);
}
.nav-call {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.header-phone .icon {
  width: 1.1rem;
  height: 1.1rem;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.75rem;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .i-close {
  display: none;
}
.menu-toggle[aria-expanded='true'] .i-open {
  display: none;
}
.menu-toggle[aria-expanded='true'] .i-close {
  display: block;
}

/* One call action per width: the blue button on wide screens, the number link below that. */
@media (min-width: 1100px) {
  .header-phone {
    display: none;
  }
}
@media (max-width: 1099px) {
  .header-cta {
    display: none;
  }
}
@media (max-width: 959px) {
  .header-inner {
    gap: 0.75rem;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .site-header .brand-name {
    font-size: 1.125rem;
  }
  .header-phone span {
    display: none;
  }
  .header-phone {
    width: 44px;
    height: 44px;
    justify-content: center;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
  }
  .header-phone .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px -20px rgba(8, 20, 30, 0.35);
  }
  .site-nav.open {
    display: block;
  }
  .site-nav .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 0;
  }
  .nav-list a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-list a[aria-current='page'] {
    border-bottom: 1px solid var(--rule);
    font-weight: 700;
  }
  .nav-call {
    display: grid;
    gap: 0.6rem;
    padding: 1.25rem var(--gutter) 1.5rem;
  }
}
@media (max-width: 379px) {
  .site-header .brand-name {
    font-size: 1rem;
  }
  .header-inner {
    gap: 0.375rem;
  }
  .header-actions {
    gap: 0.25rem;
  }
  .menu-toggle {
    padding-inline: 0.5rem;
    font-size: 0.875rem;
  }
  .menu-toggle .icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}
/* Component: Footer.astro */
.site-footer {
  --paper: var(--sky-soft);
  --stone: var(--sky-soft);
  --rule: #b0d5e6;
  --rule-strong: #528099;
  color: var(--ink);
  background: var(--stone);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer :focus-visible {
  outline-color: var(--ink);
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.site-footer .brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-footer .brand:hover {
  text-decoration: none;
}
.site-footer .brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}
.site-footer .brand-by {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 4px;
}
.site-footer .tagline {
  margin-top: 1rem;
  color: var(--ink-2);
  max-width: 36ch;
}
.footer-call {
  display: grid;
  gap: 0.4rem;
}
@media (min-width: 720px) {
  .footer-call {
    justify-items: end;
    text-align: right;
  }
}
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem);
  line-height: 1;
}
.footer-phone .icon {
  width: 0.8em;
  height: 0.8em;
  color: var(--amber);
}
.footer-call p {
  color: var(--ink-2);
}

.footer-links {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
@media (min-width: 900px) {
  .footer-links {
    grid-template-columns: 1fr 1.3fr 1fr;
  }
}
.footer-heading {
  margin: 0 0 1rem;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.footer-links li + li {
  margin-top: 0.6rem;
}
.footer-links a,
.site-footer address {
  font-size: var(--t-small);
}
.site-footer address {
  font-style: normal;
  line-height: 1.7;
  color: var(--ink);
}

.footer-legal {
  display: grid;
  gap: 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.policy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--t-small);
}
.footer-legal .micro {
  max-width: 90ch;
  line-height: 1.6;
}
/* Component: Cutaway.astro */
.cutaway {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .cutaway {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
}
.drawing {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}
.drawing svg {
  width: 100%;
  height: auto;
  font-family: var(--body);
}
.zone {
  fill-opacity: 0.04;
  stroke-opacity: 0.25;
  cursor: pointer;
  transition:
    fill-opacity 0.25s var(--ease),
    stroke-opacity 0.25s var(--ease);
}
.zone:hover {
  fill-opacity: 0.1;
  stroke-opacity: 0.7;
}
.zone.is-active {
  fill-opacity: 0.18;
  stroke-opacity: 1;
}
.zlabels text {
  pointer-events: none;
}
.zone-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.zone-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.25rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.zone-btn:hover .zone-name {
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  transition: background-color 0.2s var(--ease);
}
.zone-btn[aria-pressed='true'] .zone-dot {
  background: var(--amber);
  border-color: var(--ink);
}
.zone-name {
  font-weight: 600;
}
.zone-short {
  font-size: var(--t-small);
  text-align: right;
}
@media (max-width: 479px) {
  .zone-btn {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .zone-short {
    display: none;
  }
}
.zone-detail {
  margin-top: 1.5rem;
}
.zone-text {
  display: grid;
  gap: 0.9rem;
}
.zone-text[hidden] {
  display: none;
}
.zone-text p {
  color: var(--ink-2);
}
.zone-text strong {
  color: var(--ink);
}
/* Component: Methods.astro */
.method-list {
  display: grid;
  gap: 0 clamp(2rem, 4vw, 4rem);
}
@media (min-width: 720px) {
  .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .method:last-child {
    grid-column: 1 / -1;
  }
}
.method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.method > div {
  display: grid;
  gap: 0.5rem;
  max-width: 62ch;
}
.method-icon {
  width: 2rem;
  height: 2rem;
  margin-top: 0.1rem;
}
.method-summary {
  display: none;
  margin: 0;
}
@media (max-width: 719px) {
  .method-detail {
    display: none;
  }
  .method-summary {
    display: block;
  }
}
/* Photos sit in one row under the list; on phones the row scrolls sideways instead of stacking three tall images. */
.method-photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 1rem;
  margin-top: 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.method-photos > * {
  scroll-snap-align: start;
}
@media (min-width: 720px) {
  .method-photos {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    gap: 1.5rem;
  }
}
/* Component: CaseCard.astro */
.case-card {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  min-width: 0;
}
.case-fig {
  display: block;
  text-decoration: none;
}
.case-body {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.case-body h2,
.case-body h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
}
.case-card--feature .case-body h2,
.case-card--feature .case-body h3 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
}
.case-body h2 a,
.case-body h3 a {
  text-decoration: none;
}
.case-body h2 a:hover,
.case-body h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
  text-decoration-thickness: 2px;
}
.case-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}
.case-meta {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
/* Row cards sit image-beside-text on tablets; on wide screens they stack beside a square featured photo so both columns end level. */
@media (min-width: 600px) and (max-width: 959px) {
  .case-card--row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1.25rem;
    align-items: center;
  }
}
@media (min-width: 960px) {
  .case-card--feature .case-fig img {
    aspect-ratio: 1 / 1;
  }
}
/* Component: Steps.astro */
.steps {
  --line: 2px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 2rem;
}
.steps::before {
  content: '';
  position: absolute;
  background: var(--rule-strong);
}
.step {
  position: relative;
  display: grid;
  gap: 0.6rem;
}
.step h3 {
  font-size: 1.125rem;
}
.step p {
  color: var(--ink-2);
  font-size: var(--t-small);
  max-width: 34ch;
}
.marker {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-weight: 700;
  font-size: 0.9375rem;
  z-index: 1;
}

@media (max-width: 959px) {
  .steps {
    padding-left: 3.25rem;
  }
  .steps::before {
    left: 17px;
    top: 18px;
    bottom: 18px;
    width: var(--line);
  }
  .marker {
    position: absolute;
    left: -3.25rem;
    top: 0;
  }
}
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-top: 3.25rem;
  }
  .steps::before {
    left: 18px;
    right: calc((100% - 10rem) / 6 - 18px);
    top: 17px;
    height: var(--line);
  }
  .marker {
    position: absolute;
    left: 0;
    top: -3.25rem;
  }
}
/* Component: Reviews.astro */
.reviews-head {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .reviews-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .score {
    justify-self: end;
    text-align: right;
  }
}
.score {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}
.score .arrow-link {
  min-height: 44px;
}
@media (min-width: 900px) {
  .score {
    justify-items: end;
  }
}
.trustpilot-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.trustpilot-logo {
  width: 160px;
  height: auto;
}
.score-stars {
  width: 208px;
  height: auto;
}
.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.review-stars {
  width: 128px;
  height: auto;
}
.review-brand {
  width: 98px;
  height: auto;
}
.score-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.review-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.review {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
@media (min-width: 720px) {
  .review {
    padding: 2rem 2rem 2rem 0;
  }
  .review:nth-child(even) {
    padding-left: 2rem;
    padding-right: 0;
    border-left: 1px solid var(--rule);
  }
}
.reviews blockquote {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
}
.reviews blockquote p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 62ch;
  color: var(--ink-2);
}
.reviews blockquote footer {
  font-size: var(--t-small);
}
.review-more {
  min-height: 44px;
  justify-self: start;
}
.reviews cite {
  font-style: normal;
  font-weight: 600;
}
/* Component: Provider.astro */
.provider-text {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.provider-text h2 {
  max-width: 20ch;
}
.facts {
  display: grid;
  gap: 0.9rem;
}
.facts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-2);
}
.facts strong {
  color: var(--ink);
}
.facts .icon {
  margin-top: 0.2rem;
  color: var(--ink);
}
/* Component: Faq.astro */
.faq-wrap {
  display: grid;
  gap: 2rem;
}
@media (min-width: 960px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}
.faq-intro .lead {
  margin-top: 1rem;
}
/* Component: ContactBlock.astro */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}
.contact-grid .lead {
  margin-top: 1rem;
}
.contact-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.contact-block:not(.band) .contact-card {
  background: var(--stone);
}
.contact-card .big-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}
.contact-card .big-phone .icon {
  width: 0.9em;
  height: 0.9em;
}
.contact-card .big-phone:hover span {
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}
.contact-facts {
  display: grid;
  gap: 0.75rem;
}
.contact-facts li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink-2);
}
.contact-facts .icon {
  margin-top: 0.2rem;
  color: var(--ink);
}
/* Component: Viewfinder.astro */
.vf {
  margin: 0;
  min-width: 0;
}
.vf-image {
  overflow: hidden;
  border-radius: var(--radius);
}
.ar-4x3 {
  aspect-ratio: 4 / 3;
}
.ar-4x5 {
  aspect-ratio: 4 / 5;
}
.ar-3x4 {
  aspect-ratio: 3 / 4;
}
.ar-16x10 {
  aspect-ratio: 16 / 10;
}
.vf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pos-40 img {
  object-position: center 40%;
}
.pos-55 img {
  object-position: center 55%;
}
.vf figcaption {
  margin-top: 0.75rem;
  color: var(--ink-2);
  font-size: var(--t-small);
  line-height: 1.4;
}
/* Page: index.astro */
/* The hero hugs its content rather than filling the screen, so there is no dead space above and below the headline. */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 5vw, 4rem);
  background: var(--paper);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem);
}
.hero-text {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.hero-text .lead {
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
/* Phones, matching the Hotel Leak Detection site: headline and lead, then the photo, then one call button,
   then the trust figures. The text column flattens into the hero grid so the button can sit below the photo. */
@media (max-width: 599px) {
  .hero-actions .btn {
    width: 100%;
  }
  .hero-case-link {
    display: none;
  }
  .hero-text {
    display: contents;
  }
  .hero-text h1 {
    order: 1;
  }
  .hero-text .lead {
    order: 2;
  }
  .hero-media {
    order: 3;
  }
  .hero-actions {
    order: 4;
  }
  .hero-figures {
    order: 5;
  }
  /* Fit the first screen: smaller headline and lead, a shorter photo, and the trust figures as slim one-line rows. */
  .hero {
    padding-block: 1.25rem 2rem;
  }
  .hero-grid {
    row-gap: 1rem;
  }
  .hero .hero-grid h1.display {
    font-size: 2.125rem;
    line-height: 1.02;
  }
  .hero-text .lead {
    font-size: 1rem;
    line-height: 1.45;
  }
  .hero-media {
    aspect-ratio: 16 / 9;
  }
  .hero-figures {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--rule);
    border-bottom: 0;
  }
  .hero-figures .figure {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border: 0;
    border-bottom: 1px solid var(--rule);
    text-align: left;
  }
  .hero-figures .figure .label {
    display: block;
    font-size: var(--t-small);
  }
  .hero-figures .figure .value {
    font-size: 1.25rem;
  }
}
.hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-figures {
  margin: 0;
}
@media (min-width: 600px) and (max-width: 959px) {
  .hero-media {
    aspect-ratio: 16 / 9;
  }
}
/* Two-line headline at desktop: a wider text column and a display size planned around the photo. */
.hero h1.display {
  font-size: clamp(2.5rem, 1.2rem + 3vw, 4.25rem);
  max-width: none;
  text-wrap: balance;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .hero-text {
    align-content: center;
  }
  .hero-media {
    aspect-ratio: auto;
    min-height: 24rem;
  }
  .hero-figures {
    grid-column: 1 / -1;
  }
}
.case-feature {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.case-side {
  display: grid;
  gap: 2rem;
  align-content: start;
}
@media (min-width: 960px) {
  .case-feature {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}
.visit-more {
  margin-top: 3rem;
}
/* Page: services.astro */
.jump {
  margin-top: 2rem;
}
.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: 500;
}
.jump a:hover {
  background: var(--stone);
  border-color: var(--ink);
}
.service-text {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.service-text .lead {
  margin-bottom: 0.5rem;
}
.service-text h3 {
  margin-top: 0.75rem;
}
.service-text .btn {
  justify-self: start;
  margin-top: 1rem;
}
.signs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.signs li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink-2);
}
.signs .icon {
  color: var(--cold);
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
}
.service .vf {
  align-self: center;
}
.service-wide .lead {
  margin-top: 1rem;
  max-width: 70ch;
}
.wide-cols {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 960px) {
  .wide-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
  }
}
.wide-col {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.wide-col .btn {
  justify-self: start;
  margin-top: 0.5rem;
}
/* Page: how-it-works.astro */
.checklist {
  display: grid;
  gap: 0.9rem;
}
.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-2);
}
.checklist strong {
  color: var(--ink);
}
.checklist .icon {
  color: var(--ink);
  margin-top: 0.2rem;
}
.report-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-self: center;
}
.stack .btn {
  justify-self: start;
}
/* Page: about.astro */
.stack .btn {
  justify-self: start;
}
.about-copy p {
  max-width: 62ch;
}
/* Page: contact.astro */
.contact-main {
  display: grid;
  gap: 2rem;
  align-content: start;
}
.contact-main .big-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.25rem);
  letter-spacing: 0;
  text-decoration: none;
  line-height: 1;
  justify-self: start;
}
.contact-main .big-phone .icon {
  width: 0.7em;
  height: 0.7em;
}
.contact-main .big-phone:hover span {
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}
.have-ready {
  display: grid;
  gap: 1rem;
}
.have-ready h2 {
  font-size: var(--t-h3);
}
.ready-list {
  display: grid;
  gap: 0.75rem;
}
.ready-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-2);
}
.ready-list .icon {
  color: var(--ink);
  margin-top: 0.2rem;
}
/* Page: case-studies/index.astro */
.case-grid {
  --gap: clamp(2rem, 4vw, 3.5rem);
}
.case-grid ~ .note {
  margin-top: 2.5rem;
}
/* Page: case-studies/[slug].astro */
.case-head .case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.case-head h1 {
  max-width: 24ch;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
}
.case-layout {
  display: grid;
  gap: 3rem;
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
@media (min-width: 960px) {
  .case-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}
.case-figure {
  margin: 0 0 2.5rem;
  display: grid;
  gap: 0.75rem;
}
.case-section {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  max-width: 68ch;
}
.case-section h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  margin-bottom: 0.75rem;
}
.case-section p {
  color: var(--ink-2);
  font-size: 1.0625rem;
}
.lesson {
  border-top: 1px solid var(--rule);
  background: var(--stone);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}
.lesson p {
  color: var(--ink);
}
.case-aside {
  display: grid;
  gap: 2rem;
  align-content: start;
}
@media (min-width: 960px) {
  .case-aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
.aside-block {
  display: grid;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.aside-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-h3);
  line-height: 1.1;
}
.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.method-tags li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: var(--t-micro);
  font-weight: 600;
}
.more-title {
  margin-bottom: 2rem;
}
.case-grid {
  --gap: clamp(2rem, 4vw, 3.5rem);
}
/* Page: guides/index.astro */
.guide-list {
  display: grid;
  border-top: 1px solid var(--rule);
}
.guide-item {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: end;
}
@media (min-width: 800px) {
  .guide-item {
    grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
  }
  .guide-item .arrow-link {
    justify-self: end;
  }
}
.guide-item h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  margin: 0.4rem 0 0.75rem;
  max-width: 26ch;
}
.guide-item h2 a {
  text-decoration: none;
}
.guide-item h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
  text-decoration-thickness: 2px;
}
.guide-item p.muted {
  max-width: 60ch;
}
/* Page: Homeowner guides */
.guide-layout {
  display: grid;
  gap: 3rem;
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}
.guide-aside {
  display: grid;
  gap: 2rem;
  align-content: start;
}
@media (min-width: 960px) {
  .guide-aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
.guide-layout .prose table {
  overflow-x: auto;
  display: block;
}
@media (min-width: 720px) {
  .guide-layout .prose table {
    display: table;
  }
}
/* Page: 404.astro */
.notfound .wrap {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  min-height: 50vh;
  align-content: center;
}
.notfound .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
/*$vite$:1*/