/* SFR Plumbing & Heating Ltd — demo stylesheet (Wave 2, V0.4).
   Art direction: a split-flow utility diagram. One labelled line-drawn pipe route
   enters an ink-navy hero and branches three ways — to a tap, a boiler loop and a
   radiator notation — with valve junctions drawn as bow-ties and flow drawn as a
   dashed clean-water blue. Below it a broad editorial service route divides the ten
   supported labels into four connected groups separated by rules, a narrow address
   marker, then a direct call close and a minimal footer.
   Palette: ink navy, warm off-white, oxidised copper, restrained clean-water blue.
   Hierarchy comes from rules, junction points, type scale and whitespace — no cards. */

:root {
  --ink: #0f2231;
  --ink-2: #16303f;
  --ink-3: #0a1a26;
  --paper: #f7f2e9;
  --paper-2: #fdfaf4;
  --copper: #b0602a;
  --copper-deep: #8a4620;
  --copper-soft: rgba(176, 96, 42, 0.15);
  --blue: #3d7fa8;
  --body: #3b4a55;
  --mute: #7d8992;
  --rule: rgba(15, 34, 49, 0.16);
  --rule-faint: rgba(15, 34, 49, 0.08);
  --grotesk: "Helvetica Neue", "Liberation Sans", Arial, "Segoe UI", system-ui, sans-serif;
  --humanist: "Segoe UI", "Trebuchet MS", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--humanist);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--grotesk);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.04;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.micro {
  margin: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 233, 0.97);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.9;
  stroke-linecap: round;
}

.brand-mark .mark-branch { stroke: var(--blue); }
.brand-mark .mark-node { fill: var(--copper-deep); stroke: none; }

.site-nav { margin-left: auto; }

.site-nav ul { display: flex; gap: 24px; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #405462;
  font-size: 0.86rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { color: var(--ink); border-bottom-color: var(--copper); }

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #f6f1e7;
  font-family: var(--grotesk);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 2px;
}

.header-call:hover { background: var(--copper-deep); }

.menu-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  background: var(--ink);
  color: #cfdbd8;
  padding: 70px 0 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(176, 96, 42, 0.14) 0 1px,
    transparent 1px 42px
  );
  opacity: 0.8;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -110px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at center, rgba(61, 127, 168, 0.3), rgba(15, 34, 49, 0) 68%);
  pointer-events: none;
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 52px;
  align-items: center;
}

.hero-micro { color: #d38f57; margin-bottom: 20px; }

.hero h1 {
  color: #fbf8f1;
  font-size: clamp(2.45rem, 4.4vw, 3.85rem);
  margin-bottom: 22px;
  max-width: 15ch;
}

.hero-line {
  max-width: 38ch;
  color: #a9bfc4;
  font-size: 1rem;
  line-height: 1.6;
  padding-top: 20px;
  border-top: 1px solid rgba(176, 96, 42, 0.4);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 26px;
  background: var(--copper);
  color: #fdf7ee;
  font-family: var(--grotesk);
  font-size: 1.16rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  border-radius: 2px;
}

.btn-call:hover { background: var(--copper-deep); }

.btn-view {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: #eaf2f1;
  font-size: 0.94rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(176, 96, 42, 0.5);
}

.btn-view:hover { border-bottom-color: var(--copper); }

.hero-figure { margin: 0; }

.route-map { width: 100%; height: auto; }

.hero-figure figcaption {
  margin-top: 14px;
  color: #7d97a0;
  font-size: 0.64rem;
}

.route-map .halo { fill: rgba(176, 96, 42, 0.07); }

.route-map .pipe path {
  fill: none;
  stroke: var(--copper);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-map .pipe-thin path {
  fill: none;
  stroke: var(--copper);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.85;
}

.route-map .boiler rect,
.route-map .boiler path {
  fill: none;
  stroke: #d8a173;
  stroke-width: 2.6;
  stroke-linejoin: round;
}

.route-map .boiler rect { fill: rgba(176, 96, 42, 0.08); }

.route-map .boiler path:last-child { stroke-width: 3.4; }

.route-map .radiator path {
  fill: none;
  stroke: #d8a173;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.route-map .radiator path:nth-child(-n+4) { stroke-width: 3.2; }

.route-map .water path,
.route-map .water circle {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.route-map .water circle { fill: var(--blue); stroke: none; }

.route-map .water .spout { stroke-width: 3.4; }

.route-map .valve path {
  fill: rgba(176, 96, 42, 0.22);
  stroke: #e0ab7c;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.route-map .flow path {
  fill: none;
  stroke: #6fb2d8;
  stroke-width: 2.4;
  stroke-dasharray: 12 9;
  opacity: 0.95;
}

.route-map .tip { fill: #6fb2d8; }

.route-map .nodes circle { fill: #e6b285; }

/* ---------- services ---------- */

.services {
  padding: 76px 0 84px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  margin-top: 14px;
  max-width: 24ch;
}

.routes { margin-top: 50px; }

.route {
  display: grid;
  grid-template-columns: 104px minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 0 30px;
  align-items: start;
  padding: 28px 0 32px;
  border-top: 1px solid var(--rule);
}

.routes .route:last-child { border-bottom: 1px solid var(--rule); }

.route-index {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.route-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.route-title { font-size: 1.2rem; }

.route-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-top: 3px;
}

.route-labels li {
  display: inline-flex;
  align-items: center;
  color: #35495a;
  font-size: 0.97rem;
}

.route-labels li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 18px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

/* ---------- address ---------- */

.address {
  padding: 50px 0 54px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.address-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 22px 32px;
  align-items: end;
}

.address-id .micro { margin-bottom: 12px; }

.address-id h2 { font-size: 1.46rem; }

.address-line {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.4;
}

.address-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 3px;
  background: var(--copper);
  border-radius: 2px;
}

.address-line::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 0.16em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- contact ---------- */

.contact {
  padding: 60px 0 64px;
  background: var(--ink-2);
  color: #cddbdb;
}

.contact .micro { color: #d38f57; }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 38px;
  align-items: center;
}

.contact h2 {
  color: #fbf8f1;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  margin: 14px 0 14px;
  max-width: 20ch;
}

.contact-note { color: #a6bcc1; font-size: 1rem; max-width: 36ch; }

.contact-action { display: flex; justify-content: flex-end; }

.contact .btn-call { box-shadow: 0 0 0 1px rgba(176, 96, 42, 0.55); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink-3);
  color: #b8cbcb;
  padding: 42px 0 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(176, 96, 42, 0.28);
}

.footer-name {
  color: #f3f7f5;
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.014em;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 4px;
  color: #f3f7f5;
  font-family: var(--grotesk);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(176, 96, 42, 0.5);
}

.footer-phone:hover { border-bottom-color: var(--copper); }

.footer-nav { margin-left: auto; }

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 22px; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #a8c0c0;
  font-size: 0.86rem;
}

.footer-nav a:hover { color: #ffffff; }

.footer-base { padding-top: 20px; }

.footer-base p { color: #7d9597; font-size: 0.79rem; }

/* ---------- fixed mobile call bar (parked by default) ---------- */

.mobile-call { display: none; }

/* ---------- narrow viewports ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }

  .header-inner { gap: 12px; min-height: 62px; }

  .brand { font-size: 0.78rem; letter-spacing: -0.01em; gap: 8px; }

  .brand-mark svg { width: 21px; height: 21px; }

  .header-call { display: none; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-left: auto;
    padding: 0 12px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 2px;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-bars {
    width: 15px;
    height: 2px;
    background: var(--copper);
    box-shadow: 0 -5px 0 var(--copper), 0 5px 0 var(--copper);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule);
  }

  .site-header.nav-open .site-nav { display: block; }

  .site-nav ul { flex-direction: column; gap: 0; padding: 6px 20px 14px; }

  .site-nav a {
    min-height: 46px;
    width: 100%;
    border-bottom: 1px solid var(--rule-faint);
  }

  .hero { padding: 36px 0 42px; }

  .hero::after { top: -220px; right: -180px; }

  /* the split-flow graphic collapses away on mobile: the vertical pipe spine that
     branches to the service groups is carried by the service route below */
  .hero-figure { display: none; }

  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .hero-micro { margin-bottom: 14px; }

  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.5rem); max-width: none; margin-bottom: 16px; }

  .hero-line { font-size: 0.94rem; padding-top: 15px; margin-bottom: 24px; }

  .hero-actions { gap: 12px; }

  .btn-call {
    min-height: 58px;
    padding: 0 20px;
    width: 100%;
    justify-content: center;
    font-size: 1.06rem;
  }

  .btn-view { min-height: 42px; }

  .services { padding: 50px 0 58px; }

  .section-head h2 { max-width: none; }

  /* one vertical pipe spine with the service groups branching from it */
  .routes {
    position: relative;
    margin-top: 30px;
    padding-left: 44px;
  }

  .routes::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 16px;
    bottom: 22px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--copper), rgba(176, 96, 42, 0.3));
  }

  .route {
    display: block;
    position: relative;
    border-top: 0;
    border-bottom: 1px solid var(--rule-faint);
    padding: 0 0 24px;
    margin-bottom: 22px;
  }

  .routes .route:last-child { border-bottom: 0; margin-bottom: 0; }

  .route::after {
    content: "";
    position: absolute;
    left: -34px;
    top: 17px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--paper-2);
    box-shadow: 0 0 0 3px var(--copper);
  }

  .route::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 21px;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background: var(--copper);
  }

  .route-index { gap: 10px; padding-top: 0; margin-bottom: 10px; }

  .route-title { font-size: 1.08rem; }

  .route-labels { gap: 8px 14px; padding-top: 2px; }

  .route-labels li { font-size: 0.92rem; }

  .route-labels li + li::before { margin-right: 14px; }

  .address { padding: 42px 0 46px; }

  .address-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }

  .address-id h2 { font-size: 1.3rem; }

  .address-line { font-size: 1.06rem; }

  .contact { padding: 46px 0 52px; }

  /* mobile order: heading, then details, then the call action — this keeps the
     fixed bar's reveal window open rather than collapsing it behind the CTA */
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .contact h2 { font-size: 1.55rem; max-width: none; margin: 12px 0 12px; }

  .contact-note { font-size: 0.95rem; }

  .contact-action { justify-content: flex-start; }

  .contact .btn-call { min-height: 60px; }

  .site-footer { padding: 32px 0 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }

  .footer-nav { margin-left: 0; }

  .footer-nav ul { gap: 18px; }

  /* clearance for the fixed call bar — applied to the footer element itself, so no
     .wrap padding rule can override it and let the bar cover the copyright line */
  .site-footer { padding-bottom: 106px; }

  .mobile-call {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 0;
    z-index: 60;
    visibility: hidden;
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  }

  .mobile-call.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-call a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 18px;
    background: var(--copper);
    color: #fdf7ee;
    font-family: var(--grotesk);
    font-size: 1.06rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -10px 26px rgba(10, 26, 38, 0.4);
  }
}
