/* MASTER WATERWORKS, LLC — site styles */
:root {
  /* palette */
  --c-navy: #0B2B40;
  --c-navy-2: #0F3A55;
  --c-navy-3: #082234;
  --c-blue: #0A6FB0;
  --c-aqua: #4FC3E8;
  --c-silver: #9AA7B2;
  --c-silver-2: #D5DDE3;
  --c-white: #F6F9FB;
  --c-paper: #FFFFFF;
  --c-ink: #122431;
  --c-muted: #4A5D6B;
  --c-on-dark: #C8D8E3;
  --c-on-dark-link: #9FDDF2;
  --c-field: #7D8C98;
  --c-error: #B42318;

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 2rem;
  --sp-8: 2.5rem;
  --sp-9: 3.5rem;
  --sp-10: 5rem;
  --section-pad: 4rem;

  /* radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pipe: 999px;

  /* shadows */
  --sh-1: 0 1px 2px rgba(11, 43, 64, 0.08), 0 4px 14px rgba(11, 43, 64, 0.06);
  --sh-2: 0 14px 36px rgba(11, 43, 64, 0.16);
  --sh-3: 0 30px 60px rgba(3, 18, 28, 0.45);
  --sh-inset-pipe: inset 3px 0 0 rgba(255, 255, 255, 0.45), inset -3px 0 0 rgba(11, 43, 64, 0.25);

  /* layout */
  --header-h: 64px;
  --container: 1180px;
  --line-w: 14px;
  --line-x: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: var(--c-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--c-navy); }

:focus-visible { outline: 3px solid var(--c-aqua); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--c-navy);
}

p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-3);
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-navy);
  color: var(--c-paper);
  border-radius: var(--r-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--c-paper); }

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 249, 251, 0.95);
  border-bottom: 1px solid var(--c-silver-2);
  backdrop-filter: saturate(160%) blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--c-navy);
}
.brand:hover { color: var(--c-navy); }

.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__pipe { fill: var(--c-silver); }
.brand__collar { fill: var(--c-blue); }
.brand__drop { fill: var(--c-paper); }

.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand__sub {
  display: none;
  margin-top: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--c-blue);
}

.burger {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-silver-2);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: var(--sp-2) var(--sp-5) var(--sp-6);
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-silver-2);
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.site-nav.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-nav__list { list-style: none; display: flex; flex-direction: column; }
.site-nav__list a {
  display: block;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--c-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--c-silver-2);
}
.site-nav__list a:hover { color: var(--c-blue); }
.site-nav__list .site-nav__cta {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  text-align: center;
  background: var(--c-blue);
  color: var(--c-paper);
  border: 0;
  border-radius: var(--r-sm);
}
.site-nav__list .site-nav__cta:hover { color: var(--c-paper); background: var(--c-navy); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--sp-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-aqua); color: var(--c-navy); }
.btn--primary:hover { color: var(--c-navy); }
.btn--ghost { border-color: rgba(213, 221, 227, 0.55); color: var(--c-paper); }
.btn--ghost:hover { color: var(--c-paper); }
.btn--solid { background: var(--c-blue); color: var(--c-paper); }
.btn--solid:hover { color: var(--c-paper); }

/* ───────── Main line (memorable element) ───────── */
main { position: relative; display: block; }
.mainline { display: none; }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding-block: var(--sp-9) var(--sp-10);
  color: var(--c-paper);
  background-color: var(--c-navy);
  background-image:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(10, 111, 176, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(79, 195, 232, 0.14), transparent 70%);
  overflow: hidden;
}

.hero__grid { display: grid; gap: var(--sp-8); align-items: center; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-size: 1rem;
  color: var(--c-aqua);
  font-weight: 600;
}
.hero__kicker::before {
  content: "";
  flex: none;
  width: 36px;
  height: 8px;
  border-radius: var(--r-pipe);
  background: linear-gradient(180deg, var(--c-silver-2), var(--c-silver));
}

.hero h1 {
  font-size: clamp(2.6rem, 10vw, 4.8rem);
  color: var(--c-paper);
  max-width: 13ch;
  margin-bottom: var(--sp-5);
}

.hero__lead {
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--c-on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero__facts {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(154, 167, 178, 0.3);
  font-size: 0.975rem;
  color: var(--c-on-dark);
}
.hero__facts li { display: flex; align-items: center; gap: var(--sp-3); }
.hero__facts li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c-aqua);
}

/* Schematic */
.schematic {
  position: relative;
  margin: 0;
  padding: var(--sp-4);
  border: 1px solid rgba(154, 167, 178, 0.35);
  border-radius: var(--r-lg);
  background-color: #0D3350;
  background-image:
    linear-gradient(rgba(79, 195, 232, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 195, 232, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: var(--sh-3);
}
.schematic::before, .schematic::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--c-aqua);
  border-style: solid;
}
.schematic::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.schematic::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.schematic__svg { width: 100%; height: auto; }
.schematic figcaption {
  margin-top: var(--sp-2);
  padding-left: var(--sp-2);
  font-size: 0.875rem;
  color: var(--c-on-dark);
}

.s-pipe { fill: none; stroke: var(--c-silver); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.s-core { fill: none; stroke: var(--c-navy); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.s-core--treated { stroke: #1C6E98; }
.s-tank { fill: #123E5C; stroke: var(--c-silver-2); stroke-width: 2; }
.s-media-1 { fill: rgba(79, 195, 232, 0.55); }
.s-media-2 { fill: rgba(10, 111, 176, 0.8); }
.s-media-3 { fill: rgba(154, 167, 178, 0.55); }
.s-house { fill: rgba(79, 195, 232, 0.08); stroke: var(--c-silver-2); stroke-width: 2; stroke-linejoin: round; }
.s-window { fill: rgba(79, 195, 232, 0.35); }
.s-drain { fill: none; stroke: var(--c-silver); stroke-width: 3; stroke-dasharray: 7 6; }
.s-ground { stroke: rgba(154, 167, 178, 0.5); stroke-width: 1.5; }
.s-head { fill: var(--c-silver-2); }
.s-spray { fill: none; stroke: var(--c-aqua); stroke-width: 2; stroke-linecap: round; }
.s-valve { fill: var(--c-aqua); stroke: var(--c-navy); stroke-width: 2; }
.s-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  fill: var(--c-on-dark);
}
.s-dot { fill: var(--c-paper); }

.s-flow--a { animation: flow-a 2.4s linear infinite; }
.s-flow--b { animation: flow-b 3.4s linear infinite; }
.s-flow--up { animation: flow-up 2.2s linear infinite; }
.s-flow--down { animation: flow-down 2s linear infinite; }
.s-delay-1 { animation-delay: -0.8s; }
.s-delay-2 { animation-delay: -1.6s; }
.s-delay-3 { animation-delay: -2.4s; }
.s-spray { animation: spray 2.4s ease-in-out infinite; }
.s-spray--2 { animation-delay: -1.2s; }

@keyframes flow-a {
  0% { transform: translateX(0); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateX(92px); opacity: 0; }
}
@keyframes flow-b {
  0% { transform: translateX(0); opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { transform: translateX(176px); opacity: 0; }
}
@keyframes flow-up {
  0% { transform: translateY(0); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateY(-72px); opacity: 0; }
}
@keyframes flow-down {
  0% { transform: translateY(0); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateY(44px); opacity: 0; }
}
@keyframes spray {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ───────── Sections ───────── */
.section { position: relative; padding-block: var(--section-pad); }
.section--paper { background: var(--c-paper); }
.section--dark { background: var(--c-navy); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--c-paper); }

.fitting {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-blue);
}
.section--dark .fitting { color: var(--c-aqua); }

.fitting__joint {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--c-silver), var(--c-silver-2) 45%, var(--c-silver));
  box-shadow: 0 0 0 2px rgba(11, 43, 64, 0.12);
}
.fitting__joint::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--c-aqua);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .fitting:not(.is-wet) .fitting__joint::after { opacity: 0; transform: scale(0.3); }

.section-head { max-width: 46rem; margin-bottom: var(--sp-8); }
.section-head h2 { font-size: clamp(2.1rem, 6vw, 3.3rem); }
.section-head p { font-size: 1.125rem; color: var(--c-muted); }
.section--dark .section-head p { color: var(--c-on-dark); }

/* Services */
.services { list-style: none; display: grid; gap: var(--sp-6); }

.service {
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-silver-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
}

.service__media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  background-color: var(--c-navy-2);
  overflow: hidden;
}

.service__media--plumbing {
  background-image:
    linear-gradient(180deg, transparent 40%, var(--c-silver) 40%, var(--c-silver-2) 46%, var(--c-silver) 52%, transparent 52%),
    linear-gradient(90deg, transparent 62%, var(--c-silver) 62%, var(--c-silver-2) 65.5%, var(--c-silver) 69%, transparent 69%),
    repeating-linear-gradient(90deg, rgba(79, 195, 232, 0.12) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(79, 195, 232, 0.12) 0 1px, transparent 1px 22px);
  background-size: 100% 100%, 100% 56%, auto, auto;
  background-position: 0 0, 0 100%, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}
.service__media--plumbing::before {
  content: "";
  position: absolute;
  left: 59%;
  top: 34%;
  width: 13%;
  height: 24%;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, #7F8C97, var(--c-silver-2) 45%, #7F8C97);
  box-shadow: 0 6px 14px rgba(3, 18, 28, 0.35);
}
.service__media--plumbing::after {
  content: "";
  position: absolute;
  left: 20%;
  top: 31%;
  width: 6%;
  height: 30%;
  border-radius: 3px;
  background: var(--c-aqua);
}

.service__media--treatment {
  background-image:
    radial-gradient(circle, rgba(79, 195, 232, 0.35) 0 2px, transparent 3px),
    linear-gradient(135deg, var(--c-navy-2), var(--c-navy));
  background-size: 18px 18px, 100% 100%;
}
.service__media--treatment::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 30%;
  transform: translateX(-50%);
  border: 3px solid var(--c-silver-2);
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg,
    #1A4A69 0 16%,
    var(--c-aqua) 16% 36%,
    #2B93C9 36% 56%,
    var(--c-blue) 56% 74%,
    var(--c-silver) 74% 88%,
    #6C7A85 88%);
}
.service__media--treatment::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  top: 30%;
  height: 7%;
  border-radius: var(--r-pipe);
  background: linear-gradient(180deg, var(--c-silver-2), var(--c-silver));
}

.service__media--irrigation {
  background-image:
    linear-gradient(0deg, #0E5A8A 0 16%, transparent 16%),
    repeating-radial-gradient(circle at 50% 84%, rgba(79, 195, 232, 0.5) 0 2px, transparent 2px 20px),
    linear-gradient(180deg, var(--c-navy), var(--c-navy-2));
}
.service__media--irrigation::before {
  content: "";
  position: absolute;
  left: calc(50% - 10px);
  bottom: 16%;
  width: 20px;
  height: 18%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #7F8C97, var(--c-silver-2) 45%, #7F8C97);
}
.service__media--irrigation::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  height: 5%;
  background: linear-gradient(180deg, var(--c-silver-2), var(--c-silver));
}

.service__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.service__body h3 { font-size: 1.85rem; }
.service__body p { color: var(--c-muted); }

.checklist { list-style: none; display: grid; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 6px;
  border-radius: var(--r-pipe);
  background: var(--c-blue);
}

/* Properties */
.section--properties {
  background-color: var(--c-white);
  background-image:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(154, 167, 178, 0.2) calc(100% - 1px)),
    linear-gradient(0deg, transparent calc(100% - 1px), rgba(154, 167, 178, 0.2) calc(100% - 1px));
  background-size: 48px 48px;
}

.properties { display: grid; gap: var(--sp-6); }

.property {
  position: relative;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  background: var(--c-paper);
  border: 1px solid var(--c-silver-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.property::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--sp-6);
  right: var(--sp-6);
  height: 8px;
  border-radius: 0 0 var(--r-pipe) var(--r-pipe);
  background: linear-gradient(180deg, var(--c-blue), #085A8F);
}
.property--commercial::before { background: linear-gradient(180deg, var(--c-silver-2), var(--c-silver)); }
.property h3 { font-size: 1.75rem; }
.property p { color: var(--c-muted); }

/* Process */
.steps { list-style: none; display: grid; gap: var(--sp-7); }
.step { position: relative; padding-left: 4.25rem; }
.step__num {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--c-aqua);
  background: var(--c-navy);
  border: 2px solid var(--c-silver);
  border-radius: var(--r-md);
}
.step h3 { font-size: 1.45rem; margin-bottom: var(--sp-2); }
.step p { margin: 0; }

/* Contact */
.contact { display: grid; gap: var(--sp-7); align-items: start; }

.form-card {
  padding: var(--sp-6);
  background: var(--c-paper);
  border: 1px solid var(--c-silver-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

.form-grid { display: grid; gap: var(--sp-4); }
.form-grid + .form-grid { margin-top: var(--sp-4); }

.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.field label { font-weight: 600; color: var(--c-navy); }
.field__hint { font-weight: 400; color: var(--c-muted); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  color: var(--c-ink);
  background-color: var(--c-paper);
  border: 1.5px solid var(--c-field);
  border-radius: var(--r-sm);
  appearance: none;
}
.field select {
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-navy) 50%),
    linear-gradient(135deg, var(--c-navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--c-aqua); outline-offset: 1px; border-color: var(--c-blue); }

.field--error input, .field--error select, .field--error textarea { border-color: var(--c-error); }
.field__error { min-height: 1.3em; margin: 0; font-size: 0.9rem; color: var(--c-error); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.form-note { margin: 0; font-size: 0.9rem; color: var(--c-muted); }

.form-success {
  padding: var(--sp-7) var(--sp-6);
  border-left: 8px solid var(--c-aqua);
  background: #EEF8FC;
  border-radius: var(--r-md);
}
.form-success:focus { outline: 3px solid var(--c-aqua); outline-offset: 3px; }
.form-success h3 { font-size: 1.8rem; }
.form-success p { color: var(--c-muted); }

.contact-panel {
  padding: var(--sp-7) var(--sp-6);
  background: var(--c-navy);
  color: var(--c-on-dark);
  border-radius: var(--r-lg);
}
.contact-panel h3 { color: var(--c-paper); font-size: 1.6rem; }
.contact-panel dl { margin: 0; display: grid; gap: var(--sp-5); }
.contact-panel dt { font-weight: 600; color: var(--c-aqua); }
.contact-panel dd { margin: var(--sp-1) 0 0; overflow-wrap: anywhere; }
.contact-panel a { color: var(--c-paper); }
.contact-panel a:hover { color: var(--c-aqua); }

/* ───────── Legal pages & 404 ───────── */
.page-hero {
  padding-block: var(--sp-9) var(--sp-8);
  background: var(--c-navy);
  color: var(--c-on-dark);
}
.page-hero h1 { color: var(--c-paper); font-size: clamp(2.4rem, 8vw, 3.8rem); }
.page-hero p { margin: 0; max-width: 40rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.75rem; margin-top: var(--sp-8); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose address { font-style: normal; margin-bottom: var(--sp-4); }

.notfound__code {
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 24vw, 9rem);
  line-height: 0.9;
  color: var(--c-aqua);
}
.notfound .hero__actions { margin-top: var(--sp-7); }

/* ───────── Footer ───────── */
.site-footer {
  padding-block: var(--sp-9) var(--sp-7);
  background: var(--c-navy-3);
  color: var(--c-on-dark);
}
.footer__top { display: grid; gap: var(--sp-7); padding-bottom: var(--sp-7); }
.site-footer .brand { color: var(--c-paper); }
.site-footer .brand__sub { color: var(--c-aqua); }
.footer__about { max-width: 30rem; margin: var(--sp-4) 0 0; }
.footer__nav ul { list-style: none; display: grid; gap: var(--sp-2); }
.footer__nav a, .legal a { color: var(--c-on-dark-link); }
.footer__nav a:hover, .legal a:hover { color: var(--c-paper); }
.footer__heading { margin: 0 0 var(--sp-3); font-weight: 600; color: var(--c-paper); }

.legal {
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(154, 167, 178, 0.3);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #C9D6DF;
}
.legal__title { margin: 0 0 var(--sp-2); font-weight: 600; color: var(--c-paper); }
.legal__list { list-style: none; display: grid; gap: var(--sp-1); margin-bottom: var(--sp-4); overflow-wrap: anywhere; }
.legal__bottom { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; }
.legal__bottom p { margin: 0; }
.legal__links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-5); }

/* ───────── Breakpoints ───────── */
@media (min-width: 480px) {
  .container { padding-inline: var(--sp-6); }
  .brand__sub { display: block; }
  .form-grid--two { grid-template-columns: 1fr 1fr; }
  .hero__facts { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: var(--sp-7); }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; --section-pad: 5rem; }
  .burger { display: none; }
  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: var(--sp-6); }
  .site-nav__list a { padding: var(--sp-2) 0; font-size: 1.15rem; border: 0; }
  .site-nav__list .site-nav__cta { margin-top: 0; padding: var(--sp-2) var(--sp-5); }
  .services { grid-template-columns: 1fr 1fr; }
  .service:last-child { grid-column: 1 / -1; flex-direction: row; }
  .service:last-child .service__media { flex: 0 0 48%; aspect-ratio: auto; min-height: 280px; }
  .properties { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: var(--sp-8); }
  .footer__top { grid-template-columns: 2fr 1fr; }
  .form-card { padding: var(--sp-8); }
}

@media (min-width: 1024px) {
  :root {
    --section-pad: 6.5rem;
    --line-x: max(20px, calc((100vw - var(--container)) / 2 - 6px));
  }
  .container { padding-inline: 3.5rem; }
  .hero { padding-block: var(--sp-10) 7rem; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-9); }

  .mainline {
    display: block;
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: var(--line-x);
    width: var(--line-w);
    border-radius: 0 0 var(--r-pipe) var(--r-pipe);
    background: linear-gradient(90deg, #7F8C97, var(--c-silver-2) 45%, #7F8C97);
    box-shadow: var(--sh-inset-pipe);
    pointer-events: none;
  }
  .mainline__fill {
    position: absolute;
    top: 0;
    bottom: 3px;
    left: 3px;
    right: 3px;
    border-radius: 0 0 var(--r-pipe) var(--r-pipe);
    background: linear-gradient(180deg, var(--c-aqua), var(--c-blue));
    transform-origin: 50% 0;
    transform: scaleY(0);
  }
  .fitting__joint {
    position: absolute;
    z-index: 3;
    left: calc(var(--line-x) - 6px);
    top: calc(var(--section-pad) - 3px);
    width: 26px;
    height: 28px;
  }
  .fitting__joint::after { inset: 7px; }

  .services { grid-template-columns: repeat(3, 1fr); }
  .service:last-child { grid-column: auto; flex-direction: column; }
  .service:last-child .service__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }

  .steps { grid-template-columns: repeat(5, 1fr); column-gap: var(--sp-6); position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    top: calc(1.55rem - 4px);
    left: 1.5rem;
    right: 1.5rem;
    height: 8px;
    border-radius: var(--r-pipe);
    background: linear-gradient(180deg, var(--c-silver-2), var(--c-silver));
  }
  .step { padding-left: 0; padding-top: 4.5rem; }

  .contact { grid-template-columns: 1.35fr 0.65fr; gap: var(--sp-8); }
}

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