@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour */
  --porcelain: #F4F7F8;
  --ground: #DFE2E4;
  --mist: #E6EEF0;
  --white: #FFFFFF;
  --deep: #0D3B4C;
  --deep-hover: #082C39;
  --deep-soft: #3E5E6A;
  --rule: #C9D7DB;
  --line: #6B8791;
  --copper: #B8652F;
  --copper-ink: #9A4E1E;
  --copper-light: #E6A374;
  --on-deep: #E9F0F2;
  --on-deep-soft: #A9C2CA;

  /* Space */
  --s1: .25rem;
  --s2: .5rem;
  --s3: .75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --section: clamp(3.5rem, 7vw, 6rem);
  --head-gap: clamp(2rem, 3.4vw, 3rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;

  /* Type */
  --font: "Albert Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-h3: 1.375rem;
  --t-h2: clamp(2rem, 3.6vw, 3rem);
  --t-h1: clamp(2.9rem, 14vw, 3.75rem);

  --radius: 10px;
  --notice-h: 2rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--notice-h) + var(--s4));
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--deep);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { font-weight: 640; text-wrap: balance; }

h2 {
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -.028em;
  margin-bottom: var(--head-gap);
  max-width: 16ch;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -.018em;
  margin-bottom: var(--s2);
}

p { max-width: 60ch; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--copper); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: 0 1.3rem;
  border: 1.5px solid var(--deep);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -.005em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--deep { background: var(--deep); color: var(--white); }
.btn--deep .ico { color: var(--copper-light); }
.btn--deep:hover { background: var(--deep-hover); }
.btn--line { background: transparent; color: var(--deep); }
.btn--line:hover { background: rgba(13, 59, 76, .07); }
.btn--sm { min-height: 2.75rem; padding: 0 1rem; font-size: var(--t-sm); }
.btn--wide { width: 100%; }

/* Notice */
.notice {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--deep);
  color: var(--on-deep);
  font-size: var(--t-xs);
  letter-spacing: .005em;
}
.notice__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--notice-h);
}
.notice a { color: var(--on-deep-soft); text-decoration: underline; text-decoration-color: rgba(169, 194, 202, .5); }
.notice a:hover { color: var(--on-deep); text-decoration-color: var(--copper-light); }
.notice :focus-visible { outline-color: var(--copper-light); }

/* Masthead */
.masthead { background: var(--ground); position: relative; z-index: 30; }
.masthead__in {
  display: flex;
  align-items: center;
  gap: var(--s6);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: -.025em;
  line-height: 1;
  margin-right: auto;
}
.brand__mark { width: 1.75rem; height: 1.75rem; flex: none; }
.brand__name { font-weight: 720; }
.brand__trade { font-weight: 420; color: var(--deep-soft); margin-left: -.2rem; }

.nav { display: none; }
.nav ul { display: flex; gap: var(--s5); }
.nav a {
  font-size: var(--t-sm);
  font-weight: 520;
  text-decoration: none;
  padding-block: var(--s2);
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--copper); }

.masthead__call { display: none; }

.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 .9rem;
  border: 1.5px solid var(--deep);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  font-weight: 620;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--deep); color: var(--white); }
.menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + var(--s2));
  min-width: 13rem;
  padding: var(--s2);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -12px rgba(13, 59, 76, .35);
}
.menu a {
  display: block;
  padding: .7rem .8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 540;
}
.menu a:hover { background: var(--mist); }

/* Hero */
.hero {
  background: var(--ground);
  display: grid;
  grid-template-columns: [full-start] var(--gutter) [content-start] minmax(0, 1fr) [content-end] var(--gutter) [full-end];
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: var(--s5);
}
.hero__copy { grid-column: content; }

h1 {
  font-size: var(--t-h1);
  line-height: .97;
  letter-spacing: -.038em;
  font-weight: 660;
  margin-bottom: var(--s5);
}
h1 span { display: block; }

.hero__sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--deep-soft);
  max-width: 38ch;
  margin-bottom: var(--s6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}
.hero__actions .btn { padding-inline: 1rem; }
.hero__actions .btn--deep { flex: 1 1 auto; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  font-size: .875rem;
  line-height: 1.35;
  white-space: nowrap;
}
.facts div::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-bottom: var(--s2);
  background: var(--copper);
}
.facts dt { color: var(--deep-soft); }
.facts dd { font-weight: 620; font-variant-numeric: tabular-nums; }

.hero__media { grid-column: full; margin-top: var(--s5); }
.hero__media img {
  width: 100%;
  /* Feather the photo's edges into the hero ground so no rectangle shows. */
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 55% 52%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 55% 52%, #000 58%, transparent 100%);
}

/* Sections */
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep :focus-visible { outline-color: var(--copper-light); }

.lede { color: var(--deep-soft); font-size: 1.125rem; max-width: 40ch; }

.photo { width: 100%; border-radius: var(--radius); }
.services .photo { aspect-ratio: 1024 / 684; }

/* Services */
.services { display: grid; gap: var(--s7); }
.services__intro h2 { margin-bottom: var(--s4); }
.services__intro .lede { margin-bottom: var(--s6); }

.svc-list { border-top: 1px solid var(--rule); }
.svc {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
}
.svc__icon {
  grid-row: span 2;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc p { color: var(--deep-soft); }

/* Icon accent: copper strokes inside the sprite */
#i-leak .acc, #i-drain .acc, #i-heater .acc, #i-faucet .acc, #i-repipe .acc, #i-valve .acc { stroke: var(--copper); }
#i-drain .acc { stroke-width: 2.4; }
#i-repipe .acc { stroke-width: 2.4; }

/* How a visit goes: the pipe run */
.run {
  position: relative;
  display: grid;
  gap: var(--s6);
  padding-left: 3.25rem;
}
.run::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  bottom: 1rem;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #CF8752, var(--copper) 55%, var(--copper-ink));
}
.run li { position: relative; }
.run__fit {
  position: absolute;
  left: -3.25rem;
  top: -.1rem;
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 8px;
  background: var(--deep);
  color: var(--on-deep);
  font-size: var(--t-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 4px var(--mist);
}
.run h3 { padding-top: .35rem; }
.run p { color: var(--deep-soft); }

/* Emergency */
.urgent { display: grid; gap: var(--s7); }
.section--deep h2 { color: var(--white); margin-bottom: var(--s4); }
.section--deep .lede { color: var(--on-deep-soft); margin-bottom: var(--s6); }
.urgent__steps { counter-reset: step; display: grid; gap: var(--s5); margin-bottom: var(--s6); }
.urgent__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: var(--s3);
}
.urgent__steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 1.5rem;
  font-weight: 640;
  line-height: 1.1;
  color: var(--copper-light);
  font-variant-numeric: tabular-nums;
}
.urgent__steps h3 { color: var(--white); }
.urgent__steps p { color: var(--on-deep-soft); }

.bigcall {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 640;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--copper-light);
  padding-bottom: .1rem;
}
.bigcall .ico { color: var(--copper-light); stroke-width: 1.6; }
.bigcall:hover { color: var(--copper-light); }

.urgent__media img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 45%; }
.urgent__media figcaption {
  margin-top: var(--s3);
  font-size: var(--t-sm);
  color: var(--on-deep-soft);
  max-width: 44ch;
}

/* FAQ */
.faq { display: grid; gap: var(--s5); }
.faq__intro h2 { margin-bottom: var(--s4); }
.faq__intro p { color: var(--deep-soft); }
.faq__intro a { color: var(--copper-ink); font-weight: 620; white-space: nowrap; }
.faq__list { border-top: 1px solid var(--rule); }
.faq__list details { border-bottom: 1px solid var(--rule); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 1.15rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background:
    linear-gradient(var(--deep), var(--deep)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--deep), var(--deep)) center / 1.5px 10px no-repeat;
}
.faq__list details[open] summary::after {
  border-color: var(--copper);
  background: linear-gradient(var(--copper-ink), var(--copper-ink)) center / 10px 1.5px no-repeat;
}
.faq__list summary:hover { color: var(--copper-ink); }
.faq__list details p { padding: 0 0 var(--s5); color: var(--deep-soft); }

/* Booking */
.book { display: grid; gap: var(--s7); }
.book__info h2 { margin-bottom: var(--s4); }
.book__info .lede { margin-bottom: var(--s6); }

.contact { display: grid; gap: var(--s4); }
.contact div {
  display: grid;
  gap: var(--s1);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--rule);
}
.contact div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact dt { color: var(--deep-soft); font-size: var(--t-sm); padding-top: .1rem; }
.contact dd { font-weight: 560; overflow-wrap: anywhere; }
.contact a { text-decoration-color: var(--copper); }

.form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid;
  gap: var(--s5);
  align-self: start;
}
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 620; font-size: 1rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--deep);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: .8rem .9rem;
  min-height: 3.25rem;
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.45; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--deep); }
.hint { font-size: var(--t-sm); color: var(--deep-soft); }

.form__status:empty { display: none; }
.form__status {
  display: flex;
  align-items: center;
  gap: var(--s3);
  max-width: none;
  padding: var(--s3) var(--s4);
  background: var(--mist);
  border-radius: 8px;
  font-weight: 600;
}
.form__status::before {
  content: "";
  flex: none;
  width: .45rem;
  height: .8rem;
  margin: 0 .25rem .2rem;
  border: solid var(--copper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Footer */
.footer {
  background: var(--ground);
  padding: var(--s7) 0 calc(var(--s7) + 4.5rem);
  font-size: var(--t-sm);
}
.footer__in { display: grid; gap: var(--s5); }
.footer__brand p { margin-top: var(--s3); color: var(--deep-soft); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.footer__links a { text-decoration-color: var(--copper); font-weight: 560; }
.footer__fine { color: var(--deep-soft); padding-top: var(--s5); border-top: 1px solid var(--rule); max-width: none; }

/* Sticky call bar (phones) */
.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 45;
  display: flex;
  gap: var(--s2);
  padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
  background: rgba(244, 247, 248, .96);
  border-top: 1px solid var(--rule);
}
.callbar .btn--deep { flex: 1; }
.js .callbar {
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .22s ease, visibility 0s linear .22s;
}
.js .callbar.is-shown {
  transform: none;
  visibility: visible;
  transition: transform .22s ease, visibility 0s;
}

@media (min-width: 30em) {
  .contact div { grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s3); }
  .facts { gap: var(--s6); font-size: var(--t-sm); }
  .hero__actions .btn { padding-inline: 1.3rem; }
  .hero__actions .btn--deep { flex: 0 1 auto; }
}

@media (min-width: 48em) {
  .callbar { display: none; }
  .footer { padding-bottom: var(--s7); }
  .menu { display: none; }
  .masthead__call { display: inline-flex; }
  .faq__list summary { font-size: 1.1875rem; }
  .footer__in { grid-template-columns: 1fr auto; align-items: end; }
  .footer__fine { grid-column: 1 / -1; }
}

@media (min-width: 62em) {
  :root { --t-h1: clamp(3.75rem, 6vw, 5.4rem); }
  .masthead__in { min-height: 4.75rem; }
  .nav { display: block; }

  .hero {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [content-start] minmax(0, calc(var(--max) * .55))
      [mid] minmax(0, calc(var(--max) * .45))
      [content-end] minmax(var(--gutter), 1fr) [full-end];
    align-items: center;
    min-height: min(calc(100svh - var(--notice-h) - 4.75rem), 54rem);
    padding-block: var(--s7);
  }
  .hero__copy { grid-column: content-start / mid; grid-row: 1; position: relative; z-index: 1; }
  .hero__media { grid-column: mid / full-end; grid-row: 1; margin: 0 0 0 calc(-1 * var(--s8)); }

  .services { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .services__intro { position: sticky; top: calc(var(--notice-h) + var(--s6)); }
  .svc { grid-template-columns: 2.25rem minmax(0, 15rem) minmax(0, 1fr); column-gap: var(--s5); align-items: baseline; }
  .svc__icon { grid-row: auto; align-self: start; }
  .svc h3 { margin: 0; }

  .run {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s6);
    padding-left: 0;
    padding-top: 4.25rem;
  }
  .run::before {
    left: 0;
    right: 0;
    top: 1rem;
    bottom: auto;
    width: auto;
    height: 6px;
    background: linear-gradient(to bottom, #CF8752, var(--copper) 55%, var(--copper-ink));
  }
  .run__fit { left: 0; top: -4.25rem; }
  .run h3 { padding-top: 0; }

  .urgent { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .urgent__media img { aspect-ratio: 683 / 1024; }

  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }

  .book { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .callbar, .js .callbar.is-shown { transition: none; }
  .btn { transition: none; }
}
