/* Hydr8Fuel — Cobalt Sky palette, Archivo (variable width) */
:root {
  --cobalt: #0047ab;
  --navy: #000080;
  --sky: #82c8e5;
  --slate: #6d8196;
  --logo-blue: #19a7ec;
  --ice: #eef6fb;
  --white: #ffffff;
  --ink: #18234f;
  --ink-soft: #4a5a74;
  --line: #d3e4ef;
  --error: #b3261e;
  --ok: #0b6b3a;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius-lg: 28px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-stretch: 100%;
}
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--cobalt); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--logo-blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--navy); margin: 0 0 0.5em; text-wrap: balance; }
h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 850;
  font-stretch: 125%;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.25;
}
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  font: inherit; font-weight: 700; font-stretch: 110%; font-size: 1.0625rem;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--cobalt); color: var(--cobalt); background: transparent; }
.btn-outline:hover { background: var(--cobalt); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-ghost-light { border-color: var(--sky); color: var(--white); }
.btn-ghost-light:hover { background: var(--sky); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-stretch: 108%;
  padding: 0.55rem 0.9rem; border-radius: 999px;
}
.site-nav a:hover { color: var(--cobalt); background: var(--ice); }
.site-nav a[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 -3px 0 var(--sky); border-radius: 0; }
.site-nav .nav-call { background: var(--cobalt); color: var(--white); margin-left: 0.5rem; }
.site-nav .nav-call:hover { background: var(--navy); color: var(--white); }
.nav-toggle {
  display: none; font: inherit; font-weight: 700; color: var(--navy);
  background: var(--ice); border: 0; border-radius: 999px; padding: 0.6rem 1.1rem; cursor: pointer;
}

@media (max-width: 760px) {
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav .nav-call { margin: 0.75rem 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--ice) 100%); padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-address { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 0.975rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.hero-address svg { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; color: var(--cobalt); }
.hero-media { position: relative; }
.hero-media video, .hero-media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--ice);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 128, 0.45);
}
.hero-media::before {
  content: ""; position: absolute; inset: -14% -18% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(130, 200, 229, 0.55), rgba(130, 200, 229, 0) 70%);
  z-index: -1;
}
.video-toggle {
  position: absolute; right: 0.9rem; bottom: 0.9rem;
  font: inherit; font-size: 0.875rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.92); color: var(--navy);
  border: 0; border-radius: 999px; padding: 0.45rem 0.95rem; cursor: pointer;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--ink-soft); }

/* The water line: six purification stages */
.waterline { list-style: none; margin: 0; padding: 0; counter-reset: stage; position: relative; }
.waterline > li { counter-increment: stage; position: relative; }
.stage-num {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--white); color: var(--navy);
  border: 3px solid var(--stage-color, var(--cobalt));
  font-weight: 800; font-stretch: 125%; font-size: 1.15rem;
  position: relative; z-index: 1;
}
.waterline > li:nth-child(1) { --stage-color: var(--sky); }
.waterline > li:nth-child(2) { --stage-color: #5aaedc; }
.waterline > li:nth-child(3) { --stage-color: var(--logo-blue); }
.waterline > li:nth-child(4) { --stage-color: #1977c9; }
.waterline > li:nth-child(5) { --stage-color: var(--cobalt); }
.waterline > li:nth-child(6) { --stage-color: var(--navy); }
.waterline h3 { margin: 1rem 0 0.35rem; font-size: 1.125rem; }
.waterline p { font-size: 0.975rem; color: var(--ink-soft); margin: 0; }

/* Pipe segments: each stage draws the pipe to the next stage in its own colour */
.waterline > li:not(:last-child)::before {
  content: ""; position: absolute; border-radius: 6px; background: var(--stage-color);
}

/* Horizontal on wide screens */
.waterline--row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.waterline--row > li:not(:last-child)::before { left: 1.6rem; top: 1.45rem; height: 6px; width: calc(100% + 1.5rem); }

/* Vertical layout (process page, and the home strip on narrow screens) */
.waterline--column > li,
.waterline--row > li { --pipe-x: 1.45rem; }
.waterline--column > li:not(:last-child)::before { left: var(--pipe-x); top: 1.6rem; bottom: -1.6rem; width: 6px; }
.waterline--column > li { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: clamp(1.25rem, 3vw, 2.25rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.waterline--column > li:last-child { padding-bottom: 0; }
.waterline--column h3 { margin-top: 0.55rem; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.waterline--column p { grid-column: 2; font-size: 1.0625rem; max-width: 56ch; }

@media (max-width: 980px) {
  .waterline--row { grid-template-columns: 1fr; gap: 0; }
  .waterline--row > li:not(:last-child)::before { left: var(--pipe-x); top: 1.6rem; bottom: -1.6rem; width: 6px; height: auto; }
  .waterline--row > li { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1.25rem; padding-bottom: 1.75rem; }
  .waterline--row > li:last-child { padding-bottom: 0; }
  .waterline--row h3 { margin-top: 0.7rem; }
  .waterline--row p { grid-column: 2; }
}

.text-link { font-weight: 700; display: inline-block; margin-top: 2.5rem; }

/* Who we supply */
.supply { background: var(--ice); }
.supply-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.supply-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.supply-list li { padding: 1.35rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(9rem, 0.8fr) 1.2fr; gap: 1rem; align-items: baseline; }
.supply-list h3 { margin: 0; font-size: 1.3rem; }
.supply-list p { margin: 0; color: var(--ink-soft); }
.supply-figure { margin: 0; position: sticky; top: 7rem; }
.supply-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius-lg); }
@media (max-width: 860px) {
  .supply-grid { grid-template-columns: 1fr; }
  .supply-figure { position: static; }
  .supply-figure img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .supply-list li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Why us — navy band */
.why { background: var(--navy); color: #dbe9f6; }
.why h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.why-grid > div { border-top: 4px solid var(--sky); padding-top: 1.25rem; }
.why h3 { color: var(--white); font-size: 1.35rem; }
.why p { margin: 0; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

/* Call to action */
.cta { background: var(--cobalt); color: var(--white); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end; }
.cta h2 { color: var(--white); margin-bottom: 0.3em; }
.cta p { color: #e3f1fa; margin: 0; }
@media (max-width: 820px) { .cta-inner { grid-template-columns: 1fr; align-items: start; } }

/* Page intro (inner pages) */
.page-intro { background: linear-gradient(180deg, var(--white), var(--ice)); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.breadcrumb { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--slate); }
.breadcrumb a { color: var(--ink-soft); }

.process-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.process-aside { position: sticky; top: 7rem; }
.process-aside img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.process-aside figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.75rem; }
@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-aside { position: static; }
  .process-aside img { aspect-ratio: 16 / 10; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 2px solid var(--navy); }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 1.6rem; height: 1.6rem; color: var(--cobalt); margin-top: 0.15rem; }
.contact-list h3 { font-size: 1rem; margin: 0; color: var(--ink-soft); font-weight: 600; font-stretch: 100%; }
.contact-list .value { font-size: 1.3rem; font-weight: 700; font-stretch: 112%; color: var(--navy); text-decoration: none; display: inline-block; }
.contact-list a.value:hover { color: var(--cobalt); text-decoration: underline; }
.contact-list address { font-style: normal; font-size: 1.15rem; font-weight: 600; color: var(--navy); line-height: 1.45; }
.contact-list .small { font-size: 0.95rem; display: inline-block; margin-top: 0.35rem; font-weight: 600; }
.map { border-radius: var(--radius-lg); overflow: hidden; background: var(--ice); aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form-card { background: var(--ice); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.form-card > p { color: var(--ink-soft); }
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: 0.975rem; margin-bottom: 0.35rem; color: var(--navy); }
.optional { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #b5cadb; border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem; min-height: 3rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--logo-blue); outline-offset: 1px; border-color: var(--cobalt); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; margin: 0.35rem 0 0; font-weight: 600; }
.field-error:empty { display: none; }
.cf-turnstile { min-height: 65px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 1rem; }
.form-status { border-radius: var(--radius-sm); padding: 0.9rem 1rem; margin-bottom: 1.25rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #e3f4ea; color: var(--ok); border: 1px solid #a8d8bb; }
.form-status.is-error { background: #fbe9e7; color: var(--error); border: 1px solid #efb7b1; }
button[disabled] { opacity: 0.7; cursor: progress; }

/* 404 */
.notfound { padding-block: var(--section); text-align: left; }

/* Footer */
.site-footer { background: #00005c; color: #c9d8ea; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.975rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-name { font-size: 1.5rem; font-weight: 850; font-stretch: 125%; color: var(--white); margin-bottom: 0.35rem; }
.footer-grid h2 { font-size: 0.95rem; font-weight: 700; font-stretch: 100%; color: var(--sky); margin-bottom: 0.6rem; letter-spacing: 0; }
.footer-grid address { font-style: normal; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 0.35rem; }
.footer-base { border-top: 1px solid rgba(130, 200, 229, 0.25); padding-block: 1.25rem; font-size: 0.875rem; }
.footer-base p { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Keep focused/anchored elements clear of the sticky header */
[id], .form-status, input, select, textarea { scroll-margin-top: 6.5rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
