/* ============================================================
   House Plumbing & Heating — light, minimal, trade-classic
   Inter throughout · white canvas · one professional blue
   Whitespace and type do the work; no boxes, glows or gradients.
   ============================================================ */

:root {
  --bg: #ffffff;
  --band: #f4f7fb;
  --ink: #0f1e2e;
  --body: #48586a;
  --muted: #7889a0;
  --blue: #135ec4;
  --blue-dark: #0e4c9e;
  --line: #e4e9f0;
  --line-strong: #d3dbe6;
  --shadow: 0 10px 30px rgba(15, 30, 46, 0.08);
  --radius: 10px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ---------- type ---------- */
h1, h2, h3 {
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.7rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn--small { padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(15, 30, 46, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__mark { border-radius: 7px; }
.brand__word {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand__word small {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--blue); }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  padding: 8rem 0 4.5rem;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__lead {
  max-width: 32rem;
  margin-top: 1.1rem;
  font-size: 1.15rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- trust row ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--band);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.15rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; }
.section.band { background: var(--band); border-block: 1px solid var(--line); }
.section__head { max-width: 46rem; margin-bottom: 2.6rem; }
.section__head .eyebrow { margin-bottom: 0.5rem; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about__body p { margin-top: 0.6rem; }
.ticklist {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.6rem;
}
.ticklist li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--ink);
}
.ticklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.75em;
  height: 0.42em;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- services (no cards) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem 2.4rem;
}
.service__icon {
  display: inline-flex;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.service__icon svg { width: 30px; height: 30px; }
.service h3 { margin-bottom: 0.3rem; }
.service p { font-size: 0.96rem; }

/* ---------- emergency ---------- */
.emergency { background: var(--ink); }
.emergency__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: 2.2rem 0;
  flex-wrap: wrap;
}
.emergency p {
  color: #dbe6f2;
  font-size: 1.12rem;
  font-weight: 500;
  max-width: 40rem;
}
.emergency .btn { background: #fff; border-color: #fff; color: var(--ink); white-space: nowrap; }
.emergency .btn:hover { background: #eaf1fb; border-color: #eaf1fb; color: var(--ink); }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 1.4rem;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery__item figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- booking ---------- */
.booking {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.booking__intro p { margin-top: 0.6rem; }
.booking__details { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.booking__details li { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.booking__details a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.booking__details a:hover { color: var(--blue); border-color: var(--blue); }
.ico { display: inline-flex; color: var(--blue); flex: 0 0 auto; }
.ico svg { width: 20px; height: 20px; }

.booking__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 1.6rem;
  display: grid;
  gap: 1.05rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa8ba; }
.field select:invalid { color: #9aa8ba; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid transparent; /* invisible normally, repaints in forced-colors mode */
  outline-offset: 1px;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19, 94, 196, 0.14);
}
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.form__note { font-size: 0.85rem; color: var(--muted); text-align: center; }
.form__note a { color: var(--blue); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b9c6d6; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 2.6rem 0 1.6rem;
}
.footer__brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #fff;
}
.footer__brand span { color: #b9c6d6; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.footer__small { font-size: 0.82rem; margin-top: 0.35rem; }
.footer__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__links a, .footer__col--right a {
  color: #b9c6d6;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer__links a:hover, .footer__col--right a:hover { color: #fff; }
.footer__col--right { display: flex; flex-direction: column; gap: 0.3rem; text-align: right; }
.footer__base { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.2rem 0 1.6rem; }
.footer__base p { font-size: 0.82rem; color: #8496a8; }

/* ---------- reveal (subtle) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--stagger, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .booking { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__col--right { text-align: left; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .section { padding: 3.8rem 0; }
  .hero { padding: 6.5rem 0 3.5rem; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 57px;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 30, 46, 0.08);
    padding: 0.5rem 0 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.85rem 6vw; font-size: 1.05rem; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .25s ease, opacity .25s ease; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item img { aspect-ratio: 4 / 3; }
  .field--half { grid-template-columns: 1fr; }
  .emergency__inner { justify-content: center; text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- print ---------- */
@media print {
  body { color: #000; }
  .nav, .nav__toggle, .booking__form, .emergency, .hero__media { display: none !important; }
  a { color: #000; }
  .footer { background: none; color: #000; }
  .footer__brand, .footer__brand span, .footer__links a, .footer__col--right a, .footer__small, .footer__base p { color: #000 !important; }
}
