/* LAAF Engineering
   Colours come from the business card: card red and card green on survey grid paper.
   Soil colours match the Three.js ground block in hero-ground.js. */

:root {
  --paper: #F3F5F1;
  --grid: #E1E6DE;
  --ink: #13231B;
  --ink-2: #4A5A51;
  --rule: #C9D1C8;
  --red: #A51C24;
  --red-deep: #861118;
  --green: #0F5236;
  --green-deep: #0A3B27;
  --green-ink: #E8F0EA;

  --turf: #5E8A3A;
  --topsoil: #6B5A45;
  --grey-sand: #CBC3B1;
  --yellow-sand: #D8B26E;
  --limestone: #E3D7BC;
  --aquifer: #5E7A76;
  --sand-wash: #EEE5D0;
  --deep: #17393A;

  --p-power: #F07A1A;
  --p-gas: #F2C81B;
  --p-comms: #FFFFFF;
  --p-water: #3478E0;
  --p-sewer: #E9DDB8;
  --p-recycled: #B59BDA;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --head-h: 80px;
  --radius: 4px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--red);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The graph-paper grid behind the page. On phones the lines cross every few lines of text, so it's fainter there. */
:root { --grid-bg: var(--grid); }
@media (max-width: 720px) { :root { --grid-bg: color-mix(in srgb, var(--grid) 35%, var(--paper)); } }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-bg) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-bg) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; color: var(--green); text-wrap: balance; }
h1, h2 { font-weight: 850; font-stretch: 112%; font-variation-settings: "wdth" 112; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.9rem); line-height: 0.96; }
h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); line-height: 1; }
h3 { font-size: 1.125rem; font-weight: 750; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--green); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: inherit; font-weight: 750; font-stretch: 105%; font-variation-settings: "wdth" 105;
  font-size: 1.0625rem; text-decoration: none; letter-spacing: 0.005em;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--line { border-color: var(--green); color: var(--green); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.btn--line:hover { background: var(--green); color: #fff; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
/* The frosted background sits on its own layer: a blur on .top itself would fade the Services dropdown */
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.top.is-scrolled { border-bottom-color: var(--rule); }
.top__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  height: var(--head-h); display: flex; align-items: center; gap: 24px;
}

.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__laaf { color: var(--red); font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 2.5rem; letter-spacing: -0.02em; }
.brand__eng { color: var(--green); font-weight: 800; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: 0.97rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }
.brand--light .brand__laaf { color: #fff; }
.brand--light .brand__eng { color: var(--green-ink); }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__list a {
  display: block; padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: 0.97rem;
  border-radius: var(--radius); color: var(--ink);
}
.nav__list a:hover { background: var(--grid); }
.nav__list a[aria-current] { color: var(--red); }
.nav__toggle { display: none; }

/* Services dropdown: the four service pages, each with the depth it works at and its layer colour */
.nav__has-sub { position: relative; display: flex; align-items: center; }
.nav__has-sub > a { padding-right: 4px; }
.nav__sub-toggle {
  width: 26px; height: 36px; padding: 0; margin-left: -2px; background: none; border: 0; border-radius: var(--radius);
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.nav__sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav__sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.nav__sub-toggle:hover { background: var(--grid); }
.nav__sub {
  position: absolute; top: calc(100% + 8px); left: -10px; z-index: 40; min-width: 290px;
  list-style: none; margin: 0; padding: 8px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(19, 35, 27, .14);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }  /* keeps hover across the gap */
.nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub, .nav__sub-toggle[aria-expanded="true"] + .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.nav__has-sub.is-closed .nav__sub { opacity: 0; visibility: hidden; }
.nav__sub a { display: grid; gap: 1px; padding: 10px 12px 10px 18px; position: relative; }
.nav__sub a::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--layer); }
.nav__sub-name { font-weight: 700; }
.nav__sub-depth { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.nav__sub a[aria-current] .nav__sub-name { color: var(--red); }

.top__call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--red); color: #fff; text-decoration: none; border-radius: var(--radius);
  font-weight: 750; font-feature-settings: "tnum" 1; white-space: nowrap;
}
.top__call:hover { background: var(--red-deep); }
.top__call svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 1080px) {
  /* Collapsed header: call button first, menu at the far edge */
  .top__call { order: 2; margin-left: auto; }
  .nav { order: 3; margin-left: 0; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
    font: inherit; font-weight: 650; background: none; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, background-color .2s ease; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__list {
    position: absolute; left: 0; right: 0; top: var(--head-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gut) 20px; display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--grid); border-radius: 0; }
  .nav__list { max-height: calc(100svh - var(--head-h)); overflow-y: auto; }
  /* In the menu the service pages sit under Services, always shown */
  .nav__has-sub { display: block; }
  .nav__has-sub > a { padding-right: 4px; }
  .nav__sub-toggle { display: none; }
  .nav__sub, .nav__has-sub.is-closed .nav__sub { position: static; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__sub::before { display: none; }
  .nav__sub a { padding: 11px 4px 11px 18px; font-size: 1rem; }
  .nav__sub a::before { top: 13px; bottom: 13px; }
  .nav__sub-depth { display: none; }}
@media (max-width: 560px) {
  :root { --head-h: 66px; }
  .top__in { gap: 10px; }
  .top__call span { display: none; }
  .top__call { padding: 0 13px; }
  .nav__label { display: none; }
  .brand__laaf { font-size: 2rem; }
  .brand__eng { font-size: 0.78rem; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gut) 24px;
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(16px, 3vw, 40px);
  align-items: center; min-height: calc(100svh - var(--head-h));
}
.hero__copy { max-width: 34rem; position: relative; z-index: 2; }
.hero__lead { margin-top: 24px; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 33rem; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__base { margin-top: 22px; font-size: 0.95rem; color: var(--ink-2); padding-left: 14px; border-left: 3px solid var(--red); }

.hero__stage {
  position: relative; margin: 0; height: min(76svh, 700px); min-height: 420px;
  touch-action: pan-y;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__stage::before { /* contact shadow under the ground block */
  content: ""; position: absolute; left: 12%; right: 6%; bottom: 3%; height: 26%;
  background: radial-gradient(closest-side, rgba(19, 35, 27, .28), rgba(19, 35, 27, .1) 55%, transparent);
  transform: skewX(-24deg); pointer-events: none;
}
.no-webgl::before { display: none; }
.hero__stage.no-webgl { background: url("../img/ground-still.webp") center / contain no-repeat; }
.hero__hint {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 0.875rem; color: var(--ink-2); pointer-events: none; transition: opacity .4s ease;
}
.hero__hint.is-done { opacity: 0; }
.hint-coarse { display: none; }
@media (pointer: coarse) { .hint-fine { display: none; } .hint-coarse { display: inline; } }
.no-webgl .hero__hint { display: none; }

.hero__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag {
  position: absolute; left: 0; top: 0; will-change: transform;
  font-size: 0.8125rem; font-weight: 650; line-height: 1.2; white-space: nowrap; color: var(--ink);
  opacity: 0; transition: opacity .5s ease;
}
.tag.is-on { opacity: 1; }
.tag__text { display: block; padding: 5px 8px; background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; transform: translate(-50%, calc(-100% - 22px)); }
.tag::after { content: ""; position: absolute; left: -0.5px; bottom: 0; width: 1px; height: 22px; background: var(--ink); }
.tag::before { content: ""; position: absolute; left: -3px; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.tag--left .tag__text { transform: translate(calc(-100% + 12px), calc(-100% - 22px)); }
.tag--tall .tag__text { transform: translate(-50%, calc(-100% - 64px)); }
.tag--tall::after { height: 64px; }
.tag--below .tag__text { transform: translate(-50%, 22px); }
.tag--below::after { bottom: auto; top: 0; }
.tag--below::before { bottom: auto; top: -3px; }
.tag--right .tag__text { transform: translate(-12px, calc(-100% - 22px)); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 8px; }
  .hero__stage { height: 64vw; min-height: 300px; max-height: 520px; margin: 0 calc(var(--gut) * -1); }
  .tag { font-size: 0.75rem; }
  .tag--hide-sm { display: none; }
  .tag--tall .tag__text { transform: translate(-50%, calc(-100% - 26px)); }
  .tag--tall::after { height: 26px; }
}

/* ---------- Descent: services ordered by depth (home) ---------- */
.descent { padding-top: clamp(32px, 6vw, 72px); }
.descent__intro {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) clamp(8px, 2vw, 16px);
  font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1;
}
/* The sand colour runs on under the Pumps section's wavy top edge, so no paper shows between them */
.descent .svc--earth::before { bottom: -40px; }
.descent .svc__actions { margin-top: 32px; }

/* ---------- Services page: the four services as rows, ordered by depth ---------- */
.work { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(64px, 9vw, 112px); }
.work > h1 { max-width: 14em; }
.work__intro { margin-top: 18px; max-width: 38rem; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.work__list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.work__item {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px);
  padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.work__item .log { position: relative; top: 0; height: 168px; }
.work__body { max-width: 44rem; align-self: center; }
.work__body .svc__depth { margin-bottom: 6px; }
.work__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.05; }
.work__body h2 a { text-decoration: none; color: var(--green); }
.work__body h2 a::after { content: ""; position: absolute; inset: 0; } /* whole row is the link */
.work__body h2 + p { margin-top: 10px; color: var(--ink-2); max-width: 40rem; }
.work__item:hover h2 a { color: var(--red); }
.work__item:has(a:focus-visible) { box-shadow: var(--focus); }
.work__body h2 a:focus-visible { box-shadow: none; }

.work__points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; max-width: 40rem; }
.work__points li { position: relative; padding-left: 18px; font-size: 0.95rem; }
.work__points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 2px; background: var(--red); }
@media (max-width: 560px) { .work__points { grid-template-columns: 1fr; } }

/* Services page: each service as a wide row, a picture running off one edge of the page and the
   detail beside it, rows alternating sides. The page heading uses the same two columns, so the
   intro lines up with the text of the right-hand rows. --edge is the page's content edge. */
.xsec, .svr__row {
  --edge: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  --inner: clamp(32px, 3.4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.xsec { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4.5vw, 56px); align-items: end; }
.xsec h1 { padding-left: var(--edge); padding-right: var(--inner); }
.xsec h1::after { content: ""; display: block; width: 88px; height: 6px; margin-top: 18px; background: var(--red); }
.xsec__intro { padding: 0 var(--edge) 4px var(--inner); font-size: clamp(1.0625rem, 1.4vw, 1.2rem); color: var(--ink-2); }

.svr { display: grid; gap: clamp(24px, 3vw, 40px); padding-bottom: clamp(24px, 4vw, 48px); }
.svr__row { align-items: stretch; scroll-margin-top: calc(var(--head-h) + 12px); }
.svr__text { align-self: center; padding: clamp(28px, 3vw, 44px) var(--inner) clamp(28px, 3vw, 44px) var(--edge); }
.svr__row:nth-child(even) .svr__text { padding-left: var(--inner); padding-right: var(--edge); }
.svr__row:nth-child(even) .svr__media { order: -1; }
/* The picture fills the row's full height, so its top and bottom line up with the row */
.svr__media {
  position: relative; display: block; min-height: 440px; overflow: hidden; cursor: default;
  background-color: #E9EDE6;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.svr__media img, .scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svr__media.is-3d img { visibility: hidden; }
.svr__text h2 { margin-top: 6px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.03; }
.svr__text h2 a { color: var(--green); text-decoration: none; }
.svr__text h2 a:hover { color: var(--red); }
.svr__lead { margin-top: 12px; color: var(--ink-2); max-width: 34rem; }
.svr__text .work__points { margin-top: 16px; }
.svr__note { margin-top: 20px; max-width: 34rem; padding: 10px 0 10px 16px; border-left: 3px solid var(--red); }
.svr__if { font-size: 0.8125rem; font-weight: 700; color: var(--red); }
.svr__symptoms { margin-top: 2px; font-weight: 600; }
.svr__text .svc__actions { margin-top: 24px; gap: 10px; }
.svr__text .btn { padding: 0 20px; font-size: 1rem; }

/* Scroll-in: the picture opens out from the page edge it runs off, then the text settles in.
   Only when JS is running (html.js), so nothing stays hidden without it. */
@media (prefers-reduced-motion: no-preference) {
  .js .svr__media { clip-path: inset(0 0 0 100%); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1); }
  .js .svr__row:nth-child(even) .svr__media { clip-path: inset(0 100% 0 0); }
  .js .svr__media img, .js .svr__media .scene__canvas { transform: scale(1.12); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
  .js .svr__text > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
  .js .svr__row.is-in .svr__media, .js .svr__row.is-in:nth-child(even) .svr__media { clip-path: inset(0); }
  .js .svr__row.is-in .svr__media img, .js .svr__row.is-in .svr__media .scene__canvas { transform: none; }
  .js .svr__row.is-in .svr__text > * { opacity: 1; transform: none; }
  .js .svr__row.is-in .svr__text > :nth-child(1) { transition-delay: .25s; }
  .js .svr__row.is-in .svr__text > :nth-child(2) { transition-delay: .32s; }
  .js .svr__row.is-in .svr__text > :nth-child(3) { transition-delay: .39s; }
  .js .svr__row.is-in .svr__text > :nth-child(4) { transition-delay: .46s; }
  .js .svr__row.is-in .svr__text > :nth-child(5) { transition-delay: .53s; }
  .js .svr__row.is-in .svr__text > :nth-child(6) { transition-delay: .6s; }
}

@media (max-width: 960px) {
  .xsec, .svr__row { grid-template-columns: minmax(0, 1fr); }
  .xsec h1 { padding: 0 var(--gut); }
  .xsec__intro { padding: 18px var(--gut) 0; }
  .svr__row .svr__media, .svr__row:nth-child(even) .svr__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .svr__text, .svr__row:nth-child(even) .svr__text { padding: 24px var(--gut) 8px; }
}
@media (max-width: 600px) { .svr__row .svr__media, .svr__row:nth-child(even) .svr__media { aspect-ratio: 5 / 4; } }

/* Jobs that go together: each as a line of stops, starting with the locate */
.combos { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gut) clamp(64px, 9vw, 112px); }
.combos__intro { margin-top: 14px; color: var(--ink-2); max-width: 38rem; }
.combos__list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.combos__list > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 56px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.combos__list h3 { color: var(--green); font-size: 1.2rem; }
.combos__list p { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; max-width: 30rem; }
.combos__chain { list-style: none; margin: 0; padding: 0; display: flex; }
.combos__chain li { position: relative; flex: 1 1 0; padding: 28px 12px 0 0; font-size: 0.9rem; font-weight: 700; color: var(--green); }
.combos__chain li:last-child { flex: 0 0 auto; padding-right: 0; }
.combos__chain li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); box-sizing: border-box; z-index: 1; }
.combos__chain li::after { content: ""; position: absolute; left: 9px; right: -9px; top: 9.5px; height: 3px; background: var(--green); }
.combos__chain li:last-child::after { display: none; }
.combos__chain li:first-child::before { background: var(--red); border-color: var(--red); }
@media (max-width: 800px) { .combos__list > li { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .combos__chain { flex-direction: column; }
  .combos__chain li, .combos__chain li:last-child { padding: 0 0 14px 30px; }
  .combos__chain li::after { left: 7.5px; right: auto; top: 12px; bottom: -2px; width: 3px; height: auto; }
}

/* Service pages: numbered steps, questions, pump guide */
.svc__steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; max-width: 42rem; }
.svc__steps li { counter-increment: s; position: relative; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--rule); }
.svc__steps li::before {
  content: counter(s); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 0.9rem;
}
.svc__steps strong { color: var(--green); }
.svc--pumps .svc__steps li, .svc--pumps .faq details { border-color: #2F5554; }
.svc--pumps .svc__steps strong { color: #fff; }
.faq { margin-top: 12px; max-width: 42rem; border-top: 2px solid currentColor; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; font-weight: 600; color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 38rem; }
.svc--pumps .faq details p { color: #C9D8D3; }
.svc--pumps .faq summary::after { color: #FF7A6E; }
.faq summary:focus-visible { box-shadow: var(--focus); }
.pumpguide { margin: 14px 0 0; max-width: 44rem; border-top: 2px solid currentColor; }
.pumpguide div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pumpguide dt { font-weight: 800; color: var(--ink); }
.pumpguide dd { margin: 0; color: var(--ink-2); }
/* On the dark Pumps section */
.svc--pumps .pumpguide div { border-bottom-color: #2F5554; }
.svc--pumps .pumpguide dt { color: #fff; }
.svc--pumps .pumpguide dd { color: #C9D8D3; }
@media (max-width: 640px) { .pumpguide div { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start;
}
.about__lead { margin-top: 22px; max-width: 40rem; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); }
.about__values { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 40rem; }
.about__values li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.about__values li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 10px; height: 2px; background: var(--red); }
.about__values strong { color: var(--green); }
/* Company details as a card, like the back of the business card */
.about__card { position: relative; background: var(--green); color: #fff; border-radius: var(--radius); padding: 28px 28px 28px 40px; overflow: hidden; }
.about__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--red); }
.about__facts { margin: 0; display: grid; gap: 0; }
.about__facts div { padding: 12px 0; border-bottom: 1px solid #2E6B4E; }
.about__facts div:first-child { padding-top: 0; }
.about__facts dt { font-weight: 600; font-size: 0.875rem; color: #B9CEC1; }
.about__facts dd { margin: 2px 0 0; font-weight: 700; }
.about__call { display: inline-block; margin-top: 20px; color: #fff; text-decoration: none; font-weight: 900; font-stretch: 112%; font-variation-settings: "wdth" 112; font-size: 1.6rem; border-bottom: 3px solid var(--red); }
.about__call:hover { color: #FFD9D5; }
.about__card :focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 5px #fff; }
@media (min-width: 901px) { .about__card { position: sticky; top: calc(var(--head-h) + 32px); } }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.steps--about { padding-top: clamp(24px, 4vw, 48px); }

/* Call to action band: the back of the business card */
.cta { position: relative; background: var(--green); color: #fff; }
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--red); }
.cta__in { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gut) clamp(56px, 8vw, 96px) calc(var(--gut) + 18px); }
.cta h2 { color: #fff; }
.cta p { margin-top: 14px; color: var(--green-ink); max-width: 30rem; }
.cta__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { border-color: #fff; color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--green); }
.cta :focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 5px #fff; }
@media (max-width: 720px) {
  .work__item { grid-template-columns: 1fr; padding: 22px 0; }
  .work__item .svc__log { display: none; }
}

.svc {
  --sec-bg: transparent;
  position: relative;
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px);
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gut);
}
.svc::before { /* full-bleed section colour, so the grid paper reads through on light sections */
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--sec-bg);
}
.svc--earth { --sec-bg: color-mix(in srgb, var(--sand-wash) 78%, transparent); }
.svc--pumps { --sec-bg: var(--deep); color: #E3ECE8; }
.svc--locate { border-top: 1px solid var(--rule); }
.svc--earth::before, .svc--pumps::before {
  -webkit-mask: url("../img/strata-edge.svg") top center / 1400px 36px repeat-x, linear-gradient(#000, #000) 0 35px / 100% calc(100% - 35px) no-repeat;
          mask: url("../img/strata-edge.svg") top center / 1400px 36px repeat-x, linear-gradient(#000, #000) 0 35px / 100% calc(100% - 35px) no-repeat;
}
.svc--earth { margin-top: 0; padding-top: clamp(80px, 10vw, 128px); }
.svc--pumps { padding-top: clamp(80px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px); }
.svc--pumps h1, .svc--pumps h2 { color: #fff; }

/* A service on its own page: the section runs to the footer, straight under the header.
   On wide screens a third column holds the close-up and an at-a-glance panel, kept in view. */
.svc__aside { display: none; }
/* Narrower screens: no side column, so the scene opens the page above the title (as on the Services
   page), and the at-a-glance facts and buttons stay out (the page has its own buttons further down) */
@media (max-width: 1179px) {
  .svc--page .svc__aside { display: block; grid-column: 1 / -1; grid-row: 1; margin-bottom: 4px; }
  .svc--page .svc__aside > :not(.svc__fig) { display: none; }
  .svc--page .svc__fig { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .svc--page .svc__fig { aspect-ratio: 5 / 4; margin-inline: calc(var(--gut) * -1); border-radius: 0; border-width: 1px 0; box-shadow: none; }
  .svc--page { padding-top: 0; }
}
@media (min-width: 1180px) {
  .svc--page { grid-template-columns: 96px minmax(0, 1fr) minmax(300px, 360px); }
  .svc--page .svc__body { max-width: none; }
  .svc__aside { display: block; position: sticky; top: calc(var(--head-h) + 32px); align-self: start; }
}
.svc__fig { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 4 / 3;
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, #EEF1EC;
  box-shadow: 0 18px 40px -26px rgba(19, 35, 27, .5); }
.svc__fig { position: relative; }
.svc__fig img, .svc__fig .scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.svc__fig.is-3d img { visibility: hidden; }
.svc__glance { margin: 18px 0 0; border-top: 2px solid currentColor; }
.svc__glance div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.svc__glance dt { font-weight: 700; color: var(--ink-2); }
.svc__glance dd { margin: 0; font-weight: 600; }
.svc__aside .btn { width: 100%; margin-top: 16px; }
.svc__aside .btn + .btn { margin-top: 10px; }
.svc--pumps .svc__fig { border-color: #2F5554; }
.svc--pumps .svc__glance div { border-color: #2F5554; }
.svc--pumps .svc__glance dt { color: #9FB7B0; }
.svc--page { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 9vw, 112px); border-top: 0; }
.svc--page::before { -webkit-mask: none; mask: none; }
.svc--page .log { height: min(560px, calc(100svh - var(--head-h) - 96px)); }
.svc__sub { font-size: 1.25rem; font-weight: 800; font-stretch: 105%; font-variation-settings: "wdth" 105; margin-top: 48px; letter-spacing: -0.005em; }
.svc__sub + .svc__list { margin-top: 14px; }
.svc__plain { margin: 14px 0 0; padding-left: 1.1em; max-width: 40rem; }
.svc__plain li { padding: 4px 0; }
.svc__plain li::marker { color: var(--red); }
.svc__text { margin-top: 14px; max-width: 40rem; }
.svc__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.svc--pumps .svc__plain li::marker { color: #FF7A6E; }
.svc--pumps .btn--line { border-color: #fff; color: #fff; background: transparent; }
.svc--pumps .btn--line:hover { background: #fff; color: var(--deep); }
.next {
  display: flex; flex-direction: column; gap: 2px; margin-top: 56px; padding: 18px 0 0;
  border-top: 2px solid var(--ink); text-decoration: none; color: var(--ink); max-width: 40rem;
}
.next__label { font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.next__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 850; font-stretch: 112%; font-variation-settings: "wdth" 112; color: var(--green); letter-spacing: -0.015em; }
.next__title::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.35em; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: translateY(-0.14em) rotate(45deg); transition: transform .15s ease; }
.next:hover .next__title { color: var(--red); }
.next:hover .next__title::after { transform: translateY(0.02em) rotate(45deg); }

.svc__log { position: relative; }
.log { position: sticky; top: calc(var(--head-h) + 32px); width: 72px; height: 420px; }
.log__core {
  position: absolute; left: 10px; top: 0; width: 34px; height: 100%;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.14), transparent 30%, transparent 70%, rgba(0,0,0,.18)),
    linear-gradient(to bottom,
      var(--turf) 0 2.5%, var(--topsoil) 2.5% 9%, var(--grey-sand) 9% 33%,
      var(--yellow-sand) 33% 58%, var(--limestone) 58% 78%, var(--aquifer) 78% 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.log::before { /* depth ticks */
  content: ""; position: absolute; left: 0; top: 0; width: 7px; height: 100%;
  background: repeating-linear-gradient(to bottom, var(--ink-2) 0 1px, transparent 1px 21px);
  opacity: .6;
}
.svc--pumps .log::before { background: repeating-linear-gradient(to bottom, #9FB7B0 0 1px, transparent 1px 21px); }
.log__band { /* bracket: the depth this work happens at */
  position: absolute; left: 50px; width: 12px;
  top: var(--band-top); height: max(10px, calc(var(--band-bottom) - var(--band-top)));
  border: 3px solid var(--red); border-left: 0;
}
.svc--pumps .log__band { border-color: #FF7A6E; }
.svc__body { max-width: 46rem; }
.svc__depth {
  display: inline-block; font-weight: 700; font-size: 0.95rem; color: var(--red);
  font-feature-settings: "tnum" 1; margin-bottom: 14px;
}
.svc--pumps .svc__depth { color: #FF9A8F; }
.svc__lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.4vw, 1.2rem); max-width: 40rem; }
.svc__list {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px;
  border-top: 2px solid currentColor;
}
.svc__list li { padding: 13px 0 13px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.svc__list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 10px; height: 2px; background: var(--red); }
.svc--pumps .svc__list { border-top-color: #9FB7B0; }
.svc--pumps .svc__list li { border-bottom-color: #2F5554; }
.svc--pumps .svc__list li::before { background: #FF7A6E; }
.svc__note { margin-top: 20px; color: var(--ink-2); }
.svc--pumps .svc__note { color: #B8CBC5; }
.svc__cta {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px;
  font-weight: 750; color: var(--green); text-decoration: none;
  border-bottom: 3px solid var(--red); padding: 0 2px;
}
.svc__cta:hover { color: var(--red); }
.svc--pumps .svc__cta { color: #fff; border-bottom-color: #FF7A6E; }
.svc--pumps .svc__cta:hover { color: #FFB3AB; }

@media (max-width: 720px) {
  .svc { grid-template-columns: 1fr; }
  .svc__log { display: none; }
  .svc__list { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gut); }
.steps__list {
  list-style: none; margin: 40px 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
}
.steps__list li { counter-increment: step; position: relative; padding: 0 20px 0 0; }
.steps__list li::before {
  content: counter(step);
  display: block; font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: 2.75rem; line-height: 1; color: var(--red); padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 2px solid var(--green);
}
.steps__list p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 960px) {
  .steps__list { grid-template-columns: 1fr; gap: 0; }
  .steps__list li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
  .steps__list li::before { grid-row: span 2; border: 0; padding: 0; margin: 0; font-size: 2.25rem; }
}

/* ---------- Area ---------- */
.area {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) clamp(64px, 9vw, 112px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start;
}
.area__copy > p { margin-top: 18px; max-width: 30rem; }
.area__list { list-style: none; margin: 24px 0 0; padding: 0; columns: 3 9rem; column-gap: 20px; }
.area__list li { position: relative; padding: 6px 0 6px 22px; break-inside: avoid; border-bottom: 1px dotted var(--rule); }
/* A small map pin beside each suburb; the home base gets a filled red one */
.area__list li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 16px; transform: translateY(-50%);
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.5A2.5 2.5 0 1 1 6 3.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.5 6 10 6 10s6-5.5 6-10a6 6 0 0 0-6-6zm0 8.5A2.5 2.5 0 1 1 6 3.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.area__list li.is-base { font-weight: 700; }
.area__list li.is-base::before { background: var(--red); }
.area__map {
  position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 46% 44%, var(--red) 0 7px, transparent 8px),
    radial-gradient(circle at 46% 44%, color-mix(in srgb, var(--red) 18%, transparent) 0 64px, transparent 65px),
    radial-gradient(circle at 46% 44%, transparent 0 150px, color-mix(in srgb, var(--green) 25%, transparent) 151px 152px, transparent 153px),
    linear-gradient(115deg, #DCE8DD 0 58%, #BFD6E2 58% 100%);
  border: 1px solid var(--rule);
}
.area__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.area__load {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 56px; padding: 10px 22px; background: var(--paper); border: 2px solid var(--green);
  border-radius: var(--radius); font: inherit; font-weight: 750; color: var(--green); cursor: pointer;
}
.area__load small { font-weight: 500; font-size: 0.8rem; color: var(--ink-2); }
.area__load:hover { background: var(--green); color: #fff; }
.area__load:hover small { color: var(--green-ink); }
/* Service-area map: OpenStreetMap coastline with the suburbs we cover shaded */
.area-map { margin: 0; }
.area-map svg { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #CFE0E6; }
.area-map .sea { fill: #CFE0E6; }
.area-map .land { fill: #EEEAE0; stroke: #B9C9C9; stroke-width: 1; }
.area-map .area { fill: color-mix(in srgb, var(--green) 30%, transparent); stroke: #fff; stroke-width: 1.4; transition: fill .2s ease; }
.area-map .area:hover { fill: color-mix(in srgb, var(--green) 55%, transparent); }
.area-map .area.is-base { fill: color-mix(in srgb, var(--red) 45%, transparent); }
.area-map .base-dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.area-map .base-pulse { fill: none; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: base-pulse 2.4s ease-out infinite; }
@keyframes base-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }
.area-map .area-label {
  font: 700 11px/1 "Archivo", sans-serif; fill: var(--ink); pointer-events: none;
  paint-order: stroke; stroke: #F6F4EE; stroke-width: 3px; stroke-linejoin: round;
}
.area-map .area-label.is-base { fill: var(--red); font-size: 12px; }
.area-map .area-edge { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-dasharray: 6 5; }
.area-map .place-dot { fill: var(--green); stroke: #fff; stroke-width: 1.2; }
.area-map .map-sea-label { font: italic 600 13px/1 "Archivo", sans-serif; fill: #6E8F99; letter-spacing: .06em; }
.area-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); }
.area-map__key { display: inline-flex; align-items: center; gap: 6px; }
.area-map__key i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.area-map__key .k-area { background: color-mix(in srgb, var(--green) 30%, #EEEAE0); border: 1px solid #fff; }
.area-map__key .k-base { background: var(--red); border-radius: 50%; }
.area-map__credit { margin-left: auto; font-size: 0.78rem; }
@media (max-width: 600px) {
  .area-map .area-label { display: none; }
  .area-map .area-label.is-key { display: inline; font-size: 19px; stroke-width: 4px; }
  .area-map .map-sea-label { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .area-map .base-pulse { animation: none; opacity: 0; } }
.area--page { padding-top: clamp(40px, 6vw, 80px); }
.area--page .area__map { min-height: 520px; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; } .area__map, .area--page .area__map { min-height: 320px; } }

/* ---------- Quote (echoes the back of the business card) ---------- */
.quote {
  position: relative; color: #fff; background: var(--green);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px);
  padding: clamp(64px, 8vw, 104px) max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  padding-left: max(calc(var(--gut) + 18px), calc((100vw - var(--wrap)) / 2 + var(--gut)));
}
.quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--red); }
.quote h1, .quote h2 { color: #fff; }
.quote--page { min-height: calc(100svh - var(--head-h)); align-items: start; }
.quote__contact > p { margin-top: 16px; color: var(--green-ink); max-width: 24rem; }
/* The heading and phone numbers stay in view while you scroll down the form */
@media (min-width: 901px) {
  .quote__contact { position: sticky; top: calc(var(--head-h) + 32px); align-self: start; }
}
.quote__lines { list-style: none; margin: 28px 0 0; padding: 0; }
.quote__lines li + li { margin-top: 6px; }
.quote__lines a {
  color: #fff; text-decoration: none; font-weight: 800; font-feature-settings: "tnum" 1;
  font-size: clamp(1.5rem, 2.4vw, 2rem); font-stretch: 108%; font-variation-settings: "wdth" 108;
  border-bottom: 2px solid transparent;
}
.quote__lines a[href^="mailto"] { font-size: 1.125rem; font-weight: 600; }
.quote__where { margin-top: 10px; font-weight: 600; }
.quote__lines a:hover { border-bottom-color: #FF7A6E; }
.quote__hours { margin-top: 24px; color: var(--green-ink); font-size: 0.95rem; }
.quote :focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 5px #fff; }

.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.form__group { border: 0; margin: 0 0 22px; padding: 0; }
.form__group legend, .field > span { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.97rem; }
.field small { font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; font-weight: 600; font-size: 0.97rem;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.chip span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink-2); border-radius: 2px; flex: none; }
.chip input[type="radio"] + span::before { border-radius: 50%; }
.chip input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.chip input:checked + span::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px var(--green); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red); }
/* Phones: the options line up in even columns (one per row where they don't fit two) instead of wrapping raggedly */
@media (max-width: 560px) {
  .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .chip span { display: flex; width: 100%; }
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px; background: #fff;
  border: 1.5px solid var(--rule); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.form__error { display: block; margin-top: 6px; font-style: normal; color: var(--red); font-weight: 600; font-size: 0.9rem; }
.form__error[hidden] { display: none; }
.form__send { width: 100%; margin-top: 6px; }
.form__small { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.foot { background: var(--green-deep); color: var(--green-ink); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
/* The descent ends here: the soil layers rise into place, then the call line comes up */
.foot { position: relative; padding-top: 0; }
.foot__ground { display: block; width: 100%; height: 96px; }
.foot__ground path { transform-box: view-box; transform: translateY(var(--from, 0)); transition: transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 90ms); }
.foot:not(.is-in) .foot__ground path { --from: 100%; }
.foot__call {
  max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gut) 40px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  background: linear-gradient(#22573F, #22573F) bottom center / calc(100% - 2 * var(--gut)) 1px no-repeat;
  transition: opacity .6s ease .5s, transform .6s ease .5s;
}
.foot:not(.is-in) .foot__call { opacity: 0; transform: translateY(16px); }
.foot__kicker { color: #B9CEC1; font-size: 1.05rem; }
.foot__phone {
  color: #fff; text-decoration: none; font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; font-feature-settings: "tnum" 1;
  border-bottom: 4px solid var(--red); padding-bottom: 4px;
}
.foot__phone:hover { color: #FFD9D5; }
@media (prefers-reduced-motion: reduce) {
  .foot:not(.is-in) .foot__ground path { --from: 0; }
  .foot:not(.is-in) .foot__call { opacity: 1; transform: none; }
}
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gut) 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.95fr) minmax(0, 1.65fr); gap: 32px 40px; }
.foot__motto { margin-top: 10px; font-style: italic; color: #B9CEC1; }
.foot__facts { margin: 0; display: grid; gap: 10px; }
.foot__about { margin-top: 14px; max-width: 22rem; font-size: 0.95rem; color: #B9CEC1; }
.foot__h { font-size: 1rem; font-weight: 800; color: #fff; margin: 0 0 12px; font-stretch: 105%; font-variation-settings: "wdth" 105; }
.foot__h a { color: inherit; text-decoration: none; }
.foot__h a:hover { text-decoration: underline; text-decoration-color: #6E9A84; text-underline-offset: 3px; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot__links a { color: var(--green-ink); text-decoration: none; }
.foot__links a:hover, .foot__links a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: #6E9A84; text-underline-offset: 3px; }
.foot__facts > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
.foot__facts dt { margin-bottom: 0; font-weight: 600; color: #A9C2B4; }
@media (max-width: 960px) { .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot__brand, .foot__contact { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot__facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.foot__facts dd { overflow-wrap: anywhere; }
.foot__brand .brand { text-decoration: none; }
.foot__facts dd { margin: 0; }
.foot__facts a { color: inherit; text-decoration: none; }
.foot__facts a:hover { color: #fff; text-decoration: underline; text-decoration-color: #6E9A84; text-underline-offset: 3px; }
.foot__legal { grid-column: 1 / -1; margin-top: 8px; padding-top: 24px; border-top: 1px solid #22573F; font-size: 0.875rem; color: #A9C2B4; }
.foot__legal a { color: inherit; }

/* ---------- Mobile dock ---------- */
.dock { display: none; }
@media (max-width: 720px) {
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent); border-top: 1px solid var(--rule);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .dock.is-on { transform: none; }
  .dock a { min-height: 48px; display: grid; place-items: center; border-radius: var(--radius); font-weight: 750; text-decoration: none; }
  .dock__call { background: var(--red); color: #fff; }
  .dock__quote { border: 2px solid var(--green); color: var(--green); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Simple pages ---------- */
.page { max-width: 46rem; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gut); }
.page h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.page h2 { font-size: 1.5rem; margin-top: 36px; }
.page p, .page ul { margin-top: 16px; }
.page .btn { margin-top: 28px; }

/* ---------- Preview helper: add ?verify to the URL to see every unconfirmed fact ---------- */
.verify [data-verify] { outline: 2px dashed #D99A00; outline-offset: 4px; position: relative; }
.verify [data-verify]::after {
  content: "Confirm: " attr(data-verify);
  display: block; margin-top: 6px; padding: 6px 8px; background: #FFF3C4; color: #4A3A00;
  font: 600 0.8rem/1.35 "Archivo", sans-serif; border-radius: 3px; white-space: normal;
}
.verify li[data-verify]::after { position: static; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Client content (Nov 2026): hero kicker, Why choose, approach intro ---------- */
.hero__kicker { margin-bottom: 14px; font-weight: 800; font-size: 1rem; color: var(--red); font-stretch: 105%; font-variation-settings: "wdth" 105; }
.hero h1 { font-size: clamp(2.1rem, 3vw, 2.85rem); line-height: 1.04; }
.hero .hero__copy { max-width: 34rem; }
.svc__sub-lead { margin-top: 20px; font-weight: 700; }
.steps__intro { margin-top: 12px; max-width: 40rem; color: var(--ink-2); }
.why { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gut) 0; }
.why--about { padding-top: clamp(48px, 7vw, 88px); }
.why__lead { margin-top: 12px; max-width: 40rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1.4vw, 1.2rem); }
.why__list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.why__list li { padding: 26px 32px 0 0; }
.why__list li + li { padding-left: 32px; border-left: 1px solid var(--rule); }
/* The first line of each column is the same height, so the three headings line up */
.why__big, .why__kicker { height: clamp(3rem, 5vw, 4.2rem); display: flex; align-items: flex-end; }
.why__big { font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: clamp(3rem, 5vw, 4.2rem); line-height: 0.85; color: var(--red); }
.why__big span { margin-left: 8px; font-size: 0.36em; line-height: 1.6; color: var(--green); letter-spacing: 0; }
.why__kicker { font-weight: 800; font-size: 0.95rem; color: var(--red); padding-bottom: 4px; }
.why__list h3 { margin-top: 14px; font-size: 1.25rem; }
.why__list li > p:last-child { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 860px) {
  .why__list { grid-template-columns: minmax(0, 1fr); }
  .why__list li, .why__list li + li { padding: 22px 0; border-left: 0; }
  .why__list li + li { border-top: 1px solid var(--rule); }
  .why__kicker { height: auto; }
}

/* ---------- Hero: the irrigation app, shown on a phone beside the 3D system ----------
   hero-ground.js drives the app; without WebGL the phone is hidden.
   On wide screens the hero fills the viewport: the block is nudged left (--view-shift) and the phone
   stands in front of its right-hand side. On narrow screens the phone sits under the block. */
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.125rem; }
.hero__phone { position: absolute; z-index: 2; right: 0; bottom: 3%; width: 212px; }
.hero__app {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  padding: 28px 14px 16px; background: #13231B; color: #E3ECE8;
  border: 7px solid #0A1510; border-radius: 34px; box-shadow: 0 30px 50px -24px rgba(19, 35, 27, .6), 0 0 0 1px #2C3D35;
  font-size: 0.8125rem; opacity: 0; transform: translateY(12px); transition: opacity .5s ease .4s, transform .5s ease .4s;
}
.hero__app.is-live { opacity: 1; transform: none; }
.no-webgl .hero__phone { display: none; }
.app__notch { position: absolute; top: 9px; left: 50%; width: 54px; height: 7px; margin-left: -27px; border-radius: 4px; background: #24342D; }
.app__top { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; font-size: 0.875rem; }
.app__wifi { width: 14px; height: 10px; border: 2px solid #7FC2FF; border-bottom: 0; border-left-color: transparent; border-right-color: transparent; border-radius: 14px 14px 0 0; }
.app__status { font-weight: 700; color: #9FE0B4; min-height: 1.3em; }
.app__bar { height: 4px; border-radius: 2px; background: #2C3D35; overflow: hidden; }
.app__bar span { display: block; height: 100%; background: #3FAE5A; transform-origin: left; transform: scaleX(0); }
.app__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app__zones { display: grid; gap: 6px; margin-top: 4px; }
.app__zones button {
  display: grid; text-align: left; gap: 1px; padding: 8px 11px; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 700; color: #E3ECE8; background: #1F3129; border: 1px solid #2C3D35;
  transition: background-color .2s ease, border-color .2s ease;
}
.app__zones button span { font-size: 0.6875rem; font-weight: 600; color: #9FB7B0; }
.app__zones button:hover { border-color: #4E7A62; }
.app__zones button.is-on { background: #1D5A3A; border-color: #3FAE5A; }
.app__zones button.is-on span { color: #BFE8CC; }
.app__zones button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.app__note { margin-top: 2px; font-size: 0.75rem; color: #9FB7B0; }
.hero .hero__hint {
  position: absolute; left: auto; right: calc(100% + 18px); bottom: 18px; width: 172px;
  text-align: right; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2);
}
.hero__hint strong { display: block; color: var(--ink); font-weight: 750; }
[data-hint] { transition: opacity .4s ease; }
[data-hint].is-done { opacity: 0; }

@media (min-width: 901px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    height: clamp(640px, calc(100svh - var(--head-h)), 940px); min-height: 0;
    padding-top: 12px; padding-bottom: 20px;
  }
  .hero__stage { align-self: stretch; height: auto; min-height: 0; --view-shift: 0.07; --view-zoom: 1.2; }
  .hero .hero__copy { max-width: 40rem; }
  .hero__kicker { font-size: 1.125rem; }
  .hero h1 { font-size: clamp(2.6rem, 3.6vw, 3.25rem); line-height: 1.02; }
  .hero__actions { margin-top: 40px; }
}
@media (max-width: 900px) {
  .hero__stage { margin-bottom: 214px; }
  .hero__phone { right: auto; left: 50%; bottom: auto; top: calc(100% + 4px); width: min(420px, calc(100vw - 2 * var(--gut))); transform: translateX(-50%); }
  .hero__app { border-width: 6px; border-radius: 28px; padding: 24px 14px 14px; }
  .app__zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app__zones button { padding: 7px 9px; }
  .hero .hero__hint { position: static; width: auto; margin-top: 10px; text-align: center; }
  .hero__hint strong { display: inline; }
}

/* ---------- About intro (home): sits between the hero and the services ---------- */
.intro {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gut) clamp(24px, 3vw, 32px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 40px);
}
.intro__title { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1; max-width: 9em; }
.intro__body { border-top: 2px solid var(--ink); padding-top: 24px; }
.intro__lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--ink); max-width: 40rem; }
.intro__goal { margin-top: 20px; font-size: 1rem; color: var(--ink-2); padding-left: 14px; border-left: 3px solid var(--red); max-width: 38rem; }
.intro .btn { margin-top: 28px; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Recent work (home): the client's job photos, in pairs ---------- */
.work { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gut) 0; }
.work__lead { margin-top: 12px; max-width: 40rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1.4vw, 1.2rem); }
.work__grid {
  margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px);
}
.work__job { margin: 0; }
.work__pics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.work__pics a { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--grid); }
.work__pics img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work__pics a:hover img { transform: scale(1.04); }
.work__job figcaption { margin-top: 12px; font-weight: 800; font-size: 1.125rem; line-height: 1.25; }
@media (max-width: 900px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .work__pics img { transition: none; } .work__pics a:hover img { transform: none; } }

/* Photo viewer: a full-screen dialog opened from any [data-zoom] link (site.js) */
.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.zoom::backdrop { background: rgba(8, 18, 13, .94); }
.zoom__fig { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; padding: 64px 84px 24px; }
.zoom__fig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.zoom__fig figcaption { margin-top: 14px; text-align: center; font-weight: 700; }
.zoom__fig figcaption span { display: block; margin-top: 2px; font-weight: 500; font-size: 0.875rem; color: #B8C6BF; }
.zoom button {
  position: absolute; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff;
}
.zoom button:hover { background: rgba(255, 255, 255, .18); }
.zoom button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.zoom button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.zoom__close { top: 14px; right: 14px; }
.zoom__prev { left: 18px; top: 50%; margin-top: -26px; }
.zoom__next { right: 18px; top: 50%; margin-top: -26px; }
@media (max-width: 700px) {
  .zoom__fig { padding: 64px 12px 92px; }
  .zoom__prev, .zoom__next { top: auto; bottom: 22px; margin-top: 0; }
  .zoom__prev { left: calc(50% - 64px); }
  .zoom__next { right: calc(50% - 64px); }
}
