/* ROCK GAS & PLUMBING LTD — demo stylesheet (Wave 1, V0.4).
   Art direction: charcoal graphite ground with warm mineral white, one copper-orange
   heat accent (flow) and one cool return-flow blue. Instrument-panel typography and an
   original closed-loop boiler-to-radiator schematic as the only artwork. */

:root {
  --char: #17191b;
  --char-deep: #101214;
  --char-soft: #212427;
  --graphite: #2a2d31;
  --graphite-line: #3a3e43;

  --warm-white: #f4f1e9;
  --paper: #fbf9f4;
  --ink: #16181a;
  --body: #4c5157;
  --body-strong: #2c3034;
  --mineral: #8b9096;
  --mineral-light: #9aa1a8;
  --line: #ddd8cc;
  --line-soft: #e8e3d8;

  --copper: #c8763e;
  --copper-deep: #ab5f2c;
  --return-blue: #7ba3c4;
  --return-blue-deep: #5c86a8;

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --display: "HelveticaNeue-CondensedBold", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

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

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

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

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

.micro {
  color: var(--mineral);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 34px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--char-deep);
  border-bottom: 1px solid var(--graphite-line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: var(--warm-white);
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

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

.brand-mark rect {
  fill: none;
  stroke: #7c848b;
  stroke-width: 1.7;
}

.brand-mark .mark-flow { fill: none; stroke: var(--copper); stroke-width: 2; }
.brand-mark .mark-return { fill: none; stroke: var(--return-blue); stroke-width: 2; stroke-dasharray: 3.4 2.6; }

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

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #a9b0b7;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
}

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

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  background: var(--copper);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 2px;
}

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

.menu-toggle { display: none; }

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

.hero {
  position: relative;
  padding: 74px 0 66px;
  background: var(--char);
  color: #b9c0c7;
  border-bottom: 1px solid var(--graphite-line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--copper), var(--return-blue), transparent);
  opacity: 0.5;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px 56px;
}

.hero-copy .micro {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--return-blue);
  margin-bottom: 20px;
}

.hero-copy .micro::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--copper);
  flex: none;
}

.hero h1 {
  color: #fcfaf5;
  font-size: clamp(2.35rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 18px;
}

.hero-lede {
  max-width: 34ch;
  color: #c3cad1;
  font-size: 1.06rem;
}

.hero-call {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 4px;
}

/* circuit connector: the call action sits on the same line language as the schematic */
.hero-call::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 16px);
  left: 26px;
  width: 1px;
  height: 152px;
  background: linear-gradient(180deg, transparent, var(--graphite-line) 45%, var(--copper));
}

.hero-schematic {
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--graphite-line);
}

.schematic { margin: 0; }

.schematic .circuit { width: 100%; height: auto; }

.schematic-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.schematic-caption .micro { color: #7e868d; }

.legend { display: flex; gap: 26px; }

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8f979e;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.legend li::before {
  content: "";
  width: 20px;
  height: 2px;
  flex: none;
}

.legend-flow::before { background: var(--copper); }
.legend-return::before { background: repeating-linear-gradient(90deg, var(--return-blue) 0 6px, transparent 6px 10px); }

/* schematic linework */

.circuit .boiler rect,
.circuit .radiator rect { fill: none; stroke: var(--mineral-light); stroke-width: 2; }

.circuit .flue { stroke: #6d757c; stroke-width: 1.8; fill: none; }

.circuit .gauge-outer { fill: none; stroke: #6d757c; stroke-width: 1.6; }
.circuit .gauge-inner { fill: none; stroke: #545c63; stroke-width: 1.4; }

.circuit .ticks { stroke: #7e868d; stroke-width: 1.8; fill: none; }

.circuit .needle { stroke: var(--copper); stroke-width: 3; fill: none; stroke-linecap: round; }

.circuit .hub { fill: #e9e6de; stroke: none; }

.circuit .coil { stroke: #6d757c; stroke-width: 1.6; fill: none; opacity: 0.7; }

.circuit .flow path { fill: none; stroke: var(--copper); stroke-width: 2.6; }
.circuit .head-flow { fill: var(--copper); }

.circuit .return path { fill: none; stroke: var(--return-blue); stroke-width: 2.6; stroke-dasharray: 11 7; }
.circuit .head-return { fill: var(--return-blue); }

.circuit .dial-outer { fill: none; stroke: #6d757c; stroke-width: 1.8; }
.circuit .dial-inner { fill: none; stroke: #545c63; stroke-width: 1.4; }

.circuit .radiator .fins { stroke: #6d757c; stroke-width: 1.6; fill: none; opacity: 0.85; }

.circuit .node { fill: var(--char); stroke: var(--mineral-light); stroke-width: 2; }
.circuit .core-flow { fill: var(--copper); stroke: none; }
.circuit .core-return { fill: var(--return-blue); stroke: none; }

/* ---------- shared call controls ---------- */

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

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

.btn-call-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.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;
  color: #cfd6dc;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-bottom: 2px solid var(--graphite-line);
}

.btn-quiet:hover { border-bottom-color: var(--copper); color: #fff; }

/* ---------- service index ---------- */

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

.section-head h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  margin-top: 16px;
  max-width: 22ch;
  letter-spacing: -0.028em;
}

.index {
  --spine-x: 9px;
  --pad: 62px;
  --row-pad: 30px;
  --node-top: 38px;
  position: relative;
  margin-top: 56px;
  padding-left: var(--pad);
}

.index::before {
  content: "";
  position: absolute;
  left: calc(var(--spine-x) - 1px);
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--copper) 0%, var(--copper) 40%, var(--return-blue) 100%);
  opacity: 0.9;
}

.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 18px 44px;
  padding: var(--row-pad) 0;
}

.index-row + .index-row { border-top: 1px solid var(--line-soft); }

.index-row::before {
  content: "";
  position: absolute;
  top: var(--node-top);
  left: calc(var(--spine-x) - var(--pad) - 5px);
  width: 11px;
  height: 11px;
  border: 2px solid var(--copper);
  border-radius: 50%;
  background: var(--paper);
}

.index-row:last-child::before { border-color: var(--return-blue); }

.index-row::after {
  content: "";
  position: absolute;
  top: calc(var(--node-top) + 5.5px);
  left: calc(var(--spine-x) - var(--pad) + 7px);
  width: calc(var(--pad) - var(--spine-x) - 7px);
  height: 1px;
  background: var(--line);
}

.index-tag h3 {
  font-size: 1.3rem;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.label-run {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 34px;
  padding-top: 1px;
}

.label-run li {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--body-strong);
  font-size: 1.01rem;
  line-height: 24px;
}

.label-run li::before {
  content: "";
  width: 13px;
  height: 1px;
  flex: none;
  background: var(--mineral);
}

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

.contact {
  padding: 88px 0 92px;
  background: var(--char);
  color: #b9c0c7;
}

.contact .micro { color: var(--return-blue); }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 44px;
}

.contact h2 {
  color: #fcfaf5;
  font-size: clamp(1.75rem, 3.1vw, 2.7rem);
  margin: 16px 0 16px;
  letter-spacing: -0.03em;
}

.contact-line { color: #aab2b9; font-size: 1rem; max-width: 42ch; }

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

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

.site-footer {
  background: var(--char-deep);
  color: #a6adb4;
  padding: 46px 0 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 44px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--graphite-line);
}

.footer-name {
  color: #f1eee7;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 4px;
  color: #f1eee7;
  font-size: 1.02rem;
  font-weight: 700;
  border-bottom: 1px solid var(--graphite-line);
}

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

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

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

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #a6adb4;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

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

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

.footer-base p { color: #757c83; font-size: 0.78rem; letter-spacing: 0.03em; }

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

.mobile-call { display: none; }

/* ---------- responsive ---------- */

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

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

  .brand { font-size: 0.78rem; gap: 9px; }

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

  .header-call { display: none; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin-left: auto;
    padding: 0 13px;
    background: transparent;
    color: var(--warm-white);
    border: 1px solid var(--graphite-line);
    border-radius: 2px;
    font: inherit;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }

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

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

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

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

  .site-nav a {
    min-height: 48px;
    width: 100%;
    color: #c3cad1;
    border-bottom: 1px solid var(--graphite-line);
  }

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

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

  .hero h1 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); line-height: 1.02; }

  .hero-lede { font-size: 0.98rem; }

  .hero-call { gap: 12px; }

  .hero-call::before { display: none; }

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

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

  .hero-schematic { margin-top: 34px; padding-top: 22px; }

  .schematic-caption { gap: 12px; margin-top: 12px; }

  .legend { gap: 20px; }

  .services {
    --index-spine: 7px;
    padding: 58px 0 78px;
  }

  .section-head h2 { margin-top: 14px; }

  .index {
    --spine-x: 7px;
    --pad: 40px;
    --row-pad: 34px;
    --node-top: 42px;
    margin-top: 40px;
  }

  .index-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .index-tag h3 { font-size: 1.22rem; }

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

  .label-run li { padding: 7px 0; min-height: 38px; font-size: 0.98rem; }

  .label-run li + li { border-top: 1px solid var(--line-soft); }

  .contact { padding: 48px 0 56px; }

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

  .contact h2 { margin: 14px 0 14px; }

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

  .site-footer { padding: 36px 0 22px; }

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

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

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

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

  .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(--copper);
    color: #fff;
    border-radius: 3px;
    box-shadow: 0 10px 26px rgba(10, 12, 14, 0.4);
  }

  .mobile-call-label {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.9;
  }

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

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

  .hero h1 { letter-spacing: -0.035em; }
}