:root {
  --deep: #07303a;
  --deep-2: #0b4653;
  --aqua: #00a9c6;
  --aqua-pale: #e2f7fa;
  --orange: #c53a12;
  --ink: #102a32;
  --muted: #4b6269;
  --paper: #f6faf9;
  --white: #fbfdfc;
  --line: #b9cdd0;
  --focus: #ffcc38;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: .09em; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.narrow { max-width: 760px; }
.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; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: 1rem; transform: translateY(-180%); background: var(--white); color: var(--deep); padding: .75rem 1rem; font-weight: 800; }
.skip-link:focus { transform: none; }

h1, h2, h3 { color: var(--deep); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 .8rem; }
h1 { max-width: 18ch; font-size: clamp(2.7rem, 5vw, 5.3rem); }
h2 { max-width: 24ch; font-size: clamp(1.75rem, 3vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.lead, .section-intro { color: var(--muted); font-size: 1.15rem; }
.section-intro { max-width: 72ch; margin-bottom: 2rem; }
.hero-kicker, .section-label {
  margin: 0 0 .7rem;
  color: var(--aqua);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-label { color: #006f82; }
.reviewed { display: block; margin-top: 1.25rem; color: var(--muted); font-size: .78rem; }

.site-header { position: relative; z-index: 50; background: var(--deep); color: var(--white); border-bottom: 4px solid var(--aqua); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.brand { display: inline-flex; flex-direction: column; color: var(--white); font-size: .78rem; font-weight: 900; letter-spacing: .12em; line-height: 1.05; text-decoration: none; white-space: nowrap; }
.brand strong { color: #61dced; font-size: 1.05rem; letter-spacing: .16em; }
.desktop-nav { display: flex; align-items: center; gap: 1.3rem; }
.desktop-nav a { color: #d7e7e9; font-size: .82rem; font-weight: 750; text-decoration: none; }
.desktop-nav a:hover { color: var(--white); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-phone { color: var(--white); text-align: right; line-height: 1.1; text-decoration: none; }
.header-phone small, .header-phone span { display: block; }
.header-phone small { color: #98c5ca; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.header-phone span { font-weight: 900; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .72rem 1rem; border: 2px solid transparent; border-radius: 0; font-size: .88rem; font-weight: 900; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(.92); }
.button-primary { color: var(--white); background: var(--orange); }
.button-light { color: var(--deep); background: var(--white); }
.button-outline { color: var(--deep); border-color: var(--deep); background: transparent; }
.button-outline-light { color: var(--white); border-color: #b6d5d9; background: transparent; }
.menu-button { display: none; width: 48px; height: 48px; padding: 12px; border: 1px solid #7caab0; border-radius: 0; background: transparent; color: var(--white); }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; }
.mobile-sheet[hidden] { display: none; }
.mobile-sheet { position: fixed; inset: 0; z-index: 100; background: rgba(2, 25, 31, .78); }
.mobile-sheet-inner { margin-left: auto; width: min(90vw, 390px); min-height: 100%; padding: 5rem 1.5rem 2rem; background: var(--deep); border-left: 4px solid var(--aqua); }
.mobile-sheet nav { display: grid; }
.mobile-sheet nav a { padding: .95rem 0; border-bottom: 1px solid #315b64; color: var(--white); font-weight: 800; text-decoration: none; }
.menu-close { position: absolute; right: 1.5rem; top: 1rem; width: 48px; height: 48px; border: 1px solid #7caab0; border-radius: 0; background: transparent; color: var(--white); font-size: 2rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); min-height: 660px; background: var(--deep); }
.hero-visual { position: relative; display: flex; align-items: center; min-width: 0; padding: clamp(2.5rem, 5vw, 5rem); color: var(--white); background: var(--deep) url("/assets/images/pool-testing-hero.webp") center / cover no-repeat; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,33,40,.94), rgba(3,33,40,.63) 58%, rgba(3,33,40,.15)), linear-gradient(0deg, rgba(3,33,40,.7), transparent 55%); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.hero-copy h1 { max-width: 13ch; color: var(--white); font-size: clamp(3rem, 5.3vw, 5.4rem); }
.hero-copy > p:not(.hero-kicker) { max-width: 59ch; color: #dcebed; font-size: 1.08rem; }
.hero-call { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin-top: 1.5rem; }
.phone-hero { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: .45rem .9rem; border-left: 5px solid var(--aqua); color: var(--white); font-size: 1.25rem; font-weight: 900; line-height: 1.05; text-decoration: none; }
.phone-hero small { color: #abd1d5; font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-form { padding: 1.25rem clamp(1.3rem, 3vw, 3rem); background: var(--white); border-left: 1px solid var(--line); }
.form-heading h2 { font-size: clamp(1.55rem, 2.3vw, 2.35rem); }
.form-heading p { color: var(--muted); font-size: .9rem; }

.request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .8rem; }
.field { display: grid; align-content: start; gap: .22rem; }
.field-wide { grid-column: 1 / -1; }
.field label, .consent-field label { color: var(--deep); font-size: .75rem; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid #9fb8bc; border-radius: 0; background: var(--white); color: var(--ink); padding: .55rem .65rem; }
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(0,169,198,.17); outline: 0; }
.field [aria-invalid="true"] { border-color: #a42412; }
.field-help, .form-fallback { color: var(--muted); font-size: .67rem; }
.field-error { min-height: .15rem; color: #94210f; font-size: .7rem; }
.consent-field { display: grid; grid-template-columns: 20px 1fr; gap: .35rem .55rem; align-items: start; }
.consent-field input { width: 19px; height: 19px; margin: .08rem 0 0; accent-color: var(--orange); }
.consent-field .field-error { grid-column: 2; }
.form-disclosure { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.42; }
.form-fallback { margin: 0; }
.form-status { display: none; margin: 0; padding: .7rem; border-left: 4px solid currentColor; }
.form-status:not(:empty) { display: block; }
.form-status.is-error { color: #791d10; background: #ffebe6; }
.form-status.is-success { color: #075d3d; background: #e1f7ed; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.request-form.is-loading button { opacity: .65; cursor: wait; }
.form-compact { gap: .38rem .65rem; }
.form-compact .field { gap: .08rem; }
.form-compact .field input, .form-compact .field select { min-height: 35px; padding: .28rem .55rem; }
.form-compact .field textarea { min-height: 48px; height: 48px; padding: .28rem .55rem; }
.form-compact .field-help { display: none; }
.form-compact .field-error { min-height: 0; }
.form-compact .cf-turnstile { min-height: 66px; }
.form-compact .button { min-height: 42px; }

.service-overview { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.25); }
.service-overview > span { display: block; margin-bottom: .45rem; color: #abd1d5; font-size: .63rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.service-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .8rem; }
.service-overview a { color: var(--white); font-size: .75rem; font-weight: 850; text-underline-offset: .16em; }
.service-overview a:hover { color: #8ae6f1; }

.section { padding: clamp(4rem, 7vw, 7rem) 0; }
.home-intro, .home-request { background: var(--paper); }
.home-equipment, .directory-section, .related-section { background: var(--aqua-pale); }
.home-commercial { color: #d9e9eb; background: var(--deep); }
.home-commercial h2, .home-commercial h3, .home-commercial a { color: var(--white); }
.home-locations { background: var(--white); }
.home-intro > .wrap > p { max-width: 75ch; }
.home-feature, .related, .request-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.home-feature > div { padding-top: 1.25rem; border-top: 5px solid var(--aqua); }
.guide-panel { border-color: var(--orange) !important; }
.directory { display: grid; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.directory article { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(360px, 1.6fr); gap: 2rem; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.directory h3 a { text-decoration: none; }
.directory h3, .directory p { margin: 0; }
.directory p { color: var(--muted); font-size: .9rem; }
.text-link, .link-list a { color: var(--deep); font-weight: 850; text-decoration: none; }
.text-link:hover, .link-list a:hover { text-decoration: underline; }
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 0; }

.breadcrumbs { padding-top: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; color: var(--muted); font-size: .73rem; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; }
.interior-hero { padding: clamp(3.5rem, 7vw, 7rem) 0; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, var(--white) 0 68%, var(--aqua-pale) 68%); }
.interior-hero h1 { font-size: clamp(2.7rem, 5.2vw, 5.2rem); }
.interior-hero > .wrap > p:not(.hero-kicker) { max-width: 68ch; color: var(--muted); font-size: 1.17rem; }
.hero-actions, .cta-pair { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.section-flow { display: grid; gap: 0; border-top: 1px solid var(--line); }
.content-block { padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.content-block > div { display: grid; grid-template-columns: minmax(250px, .65fr) 1fr; gap: clamp(1.5rem, 5vw, 5rem); }
.content-block h2 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); }
.content-block p { max-width: 72ch; color: #355159; }
.local-sections .content-block:nth-child(even) { padding-left: 3rem; border-left: 5px solid var(--aqua); }
.guide-sections .section-flow { max-width: 900px; }
.guide-sections .content-block > div { display: block; }
.guide-sections .content-block p { font-size: 1.07rem; }
.resource-line { padding: 1rem 0; border-block: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: .76rem; }
.resource-line strong { color: var(--deep); }
.related { grid-template-columns: 1fr 1fr; }
.related h2 { font-size: 1.55rem; }
.form-section { background: var(--white); }
.request-layout { grid-template-columns: .7fr 1.3fr; }
.request-layout .request-form { padding: 1.5rem; border: 1px solid var(--line); background: var(--paper); }
.contact-block { display: grid; gap: .3rem; margin-top: 2rem; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.contact-block > a { color: var(--deep); font-size: 1.35rem; font-weight: 900; }
.contact-block small { color: var(--muted); }
.final-cta { padding: 3rem 0; color: var(--white); background: var(--deep-2); border-top: 5px solid var(--aqua); }
.final-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.final-cta h2 { margin: 0; color: var(--white); }
.final-cta p { margin: .5rem 0 0; color: #c7dfe2; }
.final-cta .cta-pair { margin: 0; }
.receipt { min-height: 60vh; display: grid; place-items: center; text-align: center; background: var(--white); }
.receipt .narrow { padding: 3rem; border: 1px solid var(--line); border-top: 7px solid var(--aqua); }
.receipt h1 { margin-inline: auto; font-size: clamp(2.2rem, 5vw, 4rem); }
.receipt h2 { margin-top: 2rem; font-size: 1.35rem; }
.receipt .hero-actions { justify-content: center; }
.receipt-id { padding: .8rem; border: 1px solid var(--line); font-family: ui-monospace, monospace; font-weight: 900; }

.site-footer { padding: 4rem 0 1.5rem; color: #bfd3d6; background: #031e25; }
.footer-lead { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr; gap: 3rem; }
.footer-brand { margin-bottom: 1rem; }
.site-footer h2 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer .link-list li { border-color: #24434a; }
.site-footer .link-list a { color: #bfd3d6; font-size: .8rem; }
.footer-phone, .footer-quote { display: block; color: #6de0ef; font-weight: 900; }
.footer-quote { margin-top: .55rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid #24434a; font-size: .72rem; }
.footer-bottom p { max-width: 65ch; margin: 0; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr 430px; }
}

@media (max-width: 840px) {
  .wrap { width: min(100% - 2rem, 720px); }
  .header-phone { display: none; }
  .hero { display: block; }
  .hero-visual { min-height: 530px; padding: 3rem max(1rem, calc((100vw - 720px) / 2)); }
  .hero-form { padding: 2rem max(1rem, calc((100vw - 720px) / 2)); border-left: 0; }
  .home-feature, .related, .request-layout, .footer-lead { grid-template-columns: 1fr; }
  .content-block > div { grid-template-columns: 1fr; gap: .2rem; }
  .local-sections .content-block:nth-child(even) { padding-left: 1.2rem; }
  .final-cta .wrap { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 1.3rem, 520px); }
  .site-header, .header-inner { min-height: 68px; }
  .header-request { display: none; }
  .hero-visual { min-height: 480px; padding: 2rem .75rem; }
  .hero-copy h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .hero-form { padding: 1.5rem .75rem 2rem; }
  .request-form { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-compact .field input, .form-compact .field select { min-height: 46px; padding: .55rem .65rem; }
  .form-compact .field textarea { min-height: 82px; height: auto; padding: .55rem .65rem; }
  .form-compact .field-help { display: block; }
  .directory article { display: block; padding: 1.4rem 0; }
  .directory p { margin-bottom: .65rem; }
  .section { padding: 3.5rem 0; }
  .cta-pair, .cta-pair .button, .hero-actions, .hero-actions .button { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .receipt .narrow { padding: 2rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
