/* Heatwise Plumbing Limited — demo stylesheet (Wave 1, V0.4).
   Art direction: warm technical heating circuit. Deep blue-green ink, warm cream
   ground, mineral grey notation, one restrained ember accent for the call action. */

:root {
  --ink: #0d2f2d;
  --deep: #103a37;
  --deep-2: #0b2b29;
  --cream: #f5f0e4;
  --paper: #fdfbf5;
  --mineral: #6d7c79;
  --line: #d9d2c1;
  --line-soft: #e7e1d2;
  --ember: #cf5620;
  --ember-dark: #b04616;
  --body: #23413e;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

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

.micro {
  margin: 0;
  color: var(--mineral);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.71rem;
  letter-spacing: 0.16em;
  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(245, 240, 228, 0.95);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
}

.brand-mark .mark-core { fill: var(--ember); stroke: none; }

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

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #33514e;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
}

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

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ember);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 2px;
}

.header-call:hover { background: var(--ember-dark); }

.menu-toggle { display: none; }

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

.hero {
  padding: 72px 0 84px;
  border-bottom: 1px solid var(--line);
}

/* Art column carries a slightly larger share of the first screen so the circuit
   reads as the deliberate right-hand anchor rather than a residual column. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 46px;
  align-items: center;
}

.hero-copy .micro { margin-bottom: 20px; }

.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  margin-bottom: 18px;
}

.hero-lede {
  max-width: 30ch;
  color: #2c4a47;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 32px;
}

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

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px;
  background: var(--ember);
  color: #fff;
  border-radius: 2px;
}

.btn-call:hover { background: var(--ember-dark); }

.btn-call-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}

.btn-call-number { font-size: 1.18rem; font-weight: 800; letter-spacing: 0.01em; }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 4px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  border-bottom: 2px solid var(--line);
}

.btn-quiet:hover { border-bottom-color: var(--ember); }

.hero-figure { margin: 0; }

.hero-figure .circuit { width: 100%; height: auto; }

.hero-figure figcaption { margin-top: 14px; text-align: center; }

.circuit .loop-outer path {
  fill: none;
  stroke: var(--deep);
  stroke-width: 2.4;
}

.circuit .loop-flow path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2.4;
  stroke-dasharray: 12 9;
}

.circuit .flow-head { fill: var(--ember); }

.circuit .dial circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.6;
}

.circuit .dial .ticks path { stroke: var(--mineral); stroke-width: 2; }
.circuit .dial .needle { stroke: var(--ember); stroke-width: 3.2; }
.circuit .dial .hub { fill: var(--deep); stroke: none; }

.circuit .radiator rect { fill: none; stroke: var(--mineral); stroke-width: 2; }
.circuit .radiator path { stroke: var(--mineral); stroke-width: 2; opacity: 0.75; }

.circuit .nodes circle { fill: none; stroke: var(--deep); stroke-width: 2; }
.circuit .nodes .node-core { fill: var(--ember); stroke: none; }

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

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

.section-head h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  margin-top: 12px;
}

.stations {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 58px;
}

.stations::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.station { position: relative; padding-top: 4px; }

.station::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 2px solid var(--deep);
  border-radius: 50%;
  background: var(--paper);
}

.station::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ember);
}

.station-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mineral);
  margin-bottom: 10px;
}

.station h3 { font-size: 1.12rem; margin-bottom: 14px; }

.station li {
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
  color: #2f4d4a;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---------- location ---------- */

/* Lower-page rhythm: the address band gets enough vertical weight to read as a
   composed band of its own, and the dark contact close is given a deeper top
   margin so the light-to-dark transition lands deliberately. Spacing only. */
.location { padding: 60px 0 66px; border-bottom: 1px solid var(--line); }

.location-inner { display: flex; align-items: center; gap: 24px; }

.pin svg {
  width: 26px;
  height: 32px;
  fill: none;
  stroke: var(--deep);
  stroke-width: 2;
}

.location-copy .micro { margin-bottom: 8px; }

.location-address {
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.location-link { margin-left: auto; }

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

.contact {
  padding: 96px 0 92px;
  background: var(--deep);
  color: #d8e6e2;
}

.contact .micro { color: #8fb2ab; }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: center;
}

.contact h2 {
  color: #f4f7f4;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  margin: 12px 0 16px;
}

.contact-lede p { max-width: 40ch; font-size: 1rem; }

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

.btn-call-invert {
  background: var(--ember);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-call-invert .btn-call-label { opacity: 0.88; }

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

.site-footer {
  background: var(--deep-2);
  color: #c9dbd7;
  padding: 44px 0 26px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-name {
  color: #f2f6f3;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 4px;
  color: #f2f6f3;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

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

.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;
  font-size: 0.86rem;
  color: #bcd0cc;
}

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

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

.footer-base p { color: #8aa5a1; font-size: 0.8rem; }

/* ---------- mobile call bar ---------- */

.mobile-call { display: none; }

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

  .header-inner { gap: 14px; min-height: 64px; }

  .brand { font-size: 0.8rem; letter-spacing: 0; gap: 8px; }

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

  .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(--line);
    border-radius: 2px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
  }

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

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

  .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(--line-soft);
  }

  .hero { padding: 40px 0 48px; }

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

  .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.5rem); }

  .hero-lede { font-size: 1rem; margin-bottom: 26px; }

  .hero-actions { gap: 12px; }

  .btn-call { min-height: 56px; padding: 0 18px; width: 100%; justify-content: center; }

  .btn-quiet { min-height: 40px; }

  .hero-figure { max-width: 320px; margin: 0 auto; }

  .services { padding: 52px 0 68px; }

  .stations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 22px;
    margin-top: 40px;
  }

  .stations::before { display: none; }

  .stations::after { display: none; }

  .station { border-top: 1px solid var(--line); padding-top: 12px; }

  .station::before { display: none; }
  .station::after { display: none; }

  .station-index { margin-bottom: 6px; }

  .station h3 { font-size: 0.98rem; margin-bottom: 10px; }

  .station li { font-size: 0.84rem; padding: 7px 0; }

  .location { padding: 78px 0 72px; }

  .location-inner { flex-wrap: wrap; gap: 14px; }

  .location-address { font-size: 1rem; }

  .location-link { margin-left: 0; }

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

  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .contact h2 { font-size: 1.65rem; }

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

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

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

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

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

  /* clearance for the fixed call bar (applied to the footer element itself) */
  .site-footer { padding-bottom: 104px; }

  .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: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
    background: var(--deep);
    color: #f4f7f4;
    border-radius: 3px;
    box-shadow: 0 10px 26px rgba(11, 43, 41, 0.28);
  }

  .mobile-call-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9dc0b9;
  }

  .mobile-call-number { font-size: 1.05rem; font-weight: 800; }
}