:root {
  --color-primary: #0e6e8c;
  --color-secondary: #121a2e;
  --color-accent: #f2b33d;
  --color-bg: #f1f4f6;
  --color-text: #14202b;

  --surface: #ffffff;
  --ink-soft: #4a5866;
  --line: #c9d3dc;
  --water-deep: #0a4f66;
  --water-tint: #dcecf2;
  --drain: #6b7682;
  --drain-tint: #e4e7ea;
  --night-surface: #1b2540;
  --night-line: #2d3a5c;
  --night-ink: #e8ecf5;
  --night-soft: #a9b4cc;
  --on-primary: #ffffff;
  --shadow: rgba(20, 32, 43, 0.08);
  --shadow-strong: rgba(20, 32, 43, 0.16);
  --header-bg: rgba(241, 244, 246, 0.92);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.tel-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.tel-top:hover { background: var(--water-deep); }

.wordmark {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.wordmark small {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { background: var(--water-tint); }
.nav a[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 2px 8px var(--shadow); }

.nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-call { background: var(--color-primary); color: var(--on-primary); }
.btn-call:hover { background: var(--water-deep); }
.btn-quiet { border-color: var(--line); color: var(--color-text); background: var(--surface); }
.btn-quiet:hover { border-color: var(--color-primary); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
}
.hero h1 .amp { color: var(--color-primary); }

.hero .sub {
  margin: 16px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 34ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.rating-line strong { color: var(--color-text); }

.stars { position: relative; display: inline-block; color: var(--line); letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.stars::before { content: "★★★★★"; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--color-primary); }
.stars span::before { content: "★★★★★"; }

.photo { margin: 0; }
.photo img {
  height: auto;
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 30% 40%;
  width: 100%;
  box-shadow: 0 18px 40px var(--shadow-strong);
}
.photo figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.4; }
.photo .stock-label { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { margin: 12px 0 0; color: var(--ink-soft); }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.about-grid h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.about-grid h2 + p { margin-top: 14px; }
.about-grid p { color: var(--ink-soft); max-width: 58ch; }

.facts {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 24px;
}
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); font-size: 0.92rem; }
.facts dd { margin: 0; font-weight: 700; }
.facts dd a { color: var(--color-primary); }

/* ---------- Water path (signature) ---------- */

.path { position: relative; list-style: none; margin: 0; padding: 0; }

/* The line is the water itself: clean supply (blue) at the top, used water (grey) at the bottom. */
.path::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 6px;
  border-radius: 6px;
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary) 55%, var(--drain) 80%, var(--drain) 100%);
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding-bottom: 28px;
}
.stop:last-child { padding-bottom: 0; }

.node {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 6px solid var(--color-primary);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-text);
}
.used .node { border-color: var(--drain); }

.stop-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
}
.stop-body h3 { font-size: 1.35rem; }
.stop-body h3 + p { margin: 8px 0 0; color: var(--ink-soft); }
.stop-body ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.stop-body li {
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--water-tint);
  font-size: 0.92rem;
}
.stop.used .stop-body li { background: var(--drain-tint); }
.more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 10px;
  font-weight: 700;
}

.path-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; font-size: 0.9rem; color: var(--ink-soft); }
.path-legend span { display: inline-flex; align-items: center; gap: 8px; }
.path-legend i { width: 22px; height: 6px; border-radius: 6px; background: var(--color-primary); }
.path-legend i.used { background: var(--drain); }

/* ---------- Rating ---------- */

.rating-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border-radius: 24px;
  padding: 40px 48px;
  border: 1px solid var(--line);
}
.rating-num { font-size: clamp(4rem, 10vw, 6.5rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }
.rating-num + .stars { margin-top: 10px; font-size: 1.4rem; }
.rating-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.rating-block h2 + p { margin: 10px 0 0; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Before you call ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 24px 0 0; counter-increment: step; }
/* Connector between consecutive steps: it shows the order to do them in. */
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 40px;
  right: 0;
  height: 2px;
  background: var(--line);
}
.steps h3 { font-size: 1.15rem; }
.steps h3 + p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Close (night) ---------- */

.close {
  background: var(--color-secondary);
  color: var(--night-ink);
  padding: 72px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 40px;
}
.close-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.close h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.close h2 + p { margin: 12px 0 0; color: var(--night-soft); max-width: 46ch; }
.close .big-tel {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.close .big-tel:hover { background: var(--night-ink); }

.site-footer {
  background: var(--color-secondary);
  color: var(--night-soft);
  border-top: 1px solid var(--night-line);
  padding: 28px 0 96px;
  font-size: 0.92rem;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--night-ink); display: inline-flex; align-items: center; min-height: 36px; }
.site-footer nav { display: flex; gap: 18px; }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.page-head p { margin: 14px 0 0; color: var(--ink-soft); max-width: 56ch; font-size: 1.15rem; }

/* Services page stage detail */

.stage { display: grid; grid-template-columns: 60px 1fr; gap: 24px; position: relative; padding-bottom: 40px; }
.stage-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage-detail .stop-body { height: 100%; }
.stage h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.stage h2 + p { margin: 8px 0 18px; color: var(--ink-soft); max-width: 60ch; }
.check { background: var(--water-tint); border-radius: 14px; padding: 20px 24px; }
.stage.used .check { background: var(--drain-tint); }
.check h3 { font-size: 1.05rem; }
.check h3 + p { margin: 8px 0 0; }
.plain-list { margin: 10px 0 0; padding-left: 1.1rem; }
.plain-list li { margin: 4px 0; }

.note {
  margin-top: 8px;
  padding: 18px 22px;
  border-left: 4px solid var(--color-primary);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }

.call-card {
  background: var(--color-secondary);
  color: var(--night-ink);
  border-radius: 22px;
  padding: 32px;
}
.call-card h2 { font-size: 1.6rem; }
.call-card h2 + p { margin: 8px 0 0; color: var(--night-soft); }
.call-card .big-tel {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin-top: 20px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}
.call-card dl { margin: 28px 0 0; }
.call-card dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--night-line); }
.call-card dt { color: var(--night-soft); }
.call-card dd { margin: 0; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.form h2 { font-size: 1.6rem; }
.form h2 + p { margin: 8px 0 20px; color: var(--ink-soft); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 46px;
}
.field textarea { min-height: 120px; resize: vertical; }
.form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }

/* ---------- Mobile call bar ---------- */

.call-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  min-height: 52px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--on-primary);
  font-weight: 800;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--shadow-strong);
}

/* ---------- Reveal motion ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.from-left { transform: translateX(-16px); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.from-left { opacity: 1; transform: none; transition: none; }
  .btn, .nav a { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid .photo { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(2)::after { display: none; }
  .stage-detail { grid-template-columns: 1fr; }
  .close-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .photo img { aspect-ratio: 4 / 3; }
  .wordmark { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { min-height: 44px; width: 100%; }
  .header-row { position: relative; }

  .hero { padding: 36px 0 56px; }
  .section { padding: 44px 0; }
  .rating-block { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { display: none; }
  .steps li:not(:last-child)::after { display: block; top: 40px; left: 19px; right: auto; width: 2px; height: calc(100% - 8px); }
  .path::before { left: 21px; }
  .stop, .stage { grid-template-columns: 48px 1fr; gap: 14px; }
  .node { width: 48px; height: 48px; border-width: 5px; font-size: 0.8rem; }
  .stop-body, .check, .form, .call-card { padding: 20px; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .close { padding: 56px 0; border-radius: 24px 24px 0 0; }
  .close .big-tel { width: 100%; justify-content: center; padding: 0 16px; }
  .call-bar { display: flex; }
  .call-card dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* Tap-target floor for inline links */
@media (min-width: 721px) {
  .wordmark { display: inline-flex; flex-direction: column; justify-content: center; min-height: 40px; }
}
p a[href^="tel:"], dd a { display: inline-flex; align-items: center; min-height: 36px; }
