/* Gildersome Gas Plumbing and Heating Ltd — rooms-and-systems technical plan.
   Deep cobalt, mineral white, charcoal, one burnt-orange datum accent. */

:root {
  --cobalt: #173f7d;
  --cobalt-deep: #0f2c5c;
  --cobalt-line: #2f5fa8;
  --charcoal: #1c242b;
  --ink: #2f3941;
  --muted: #5d6873;
  --mineral: #f4f1e8;
  --paper: #fbfaf6;
  --grout: #ded9cc;
  --orange: #bf4f18;
  --display: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --label: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bar-height: 58px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 30px; }

.micro {
  font-family: var(--label);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--mineral);
  border-bottom: 1px solid var(--grout);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--charcoal);
  flex: 0 1 auto;
}

.brand-mark { display: inline-flex; width: 34px; height: 34px; flex: none; }
.brand-mark svg { width: 34px; height: 34px; }
.bm-frame { fill: none; stroke: var(--cobalt); stroke-width: 1.6; }
.bm-run { fill: none; stroke: var(--cobalt); stroke-width: 1.8; }
.bm-hub { fill: var(--orange); }
.bm-tile { fill: none; stroke: var(--cobalt-line); stroke-width: 1.6; }

.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible { border-bottom-color: var(--orange); color: var(--cobalt); }

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.01em;
  flex: none;
}

.header-call:hover,
.header-call:focus-visible { background: #a4420f; }

/* header keeps a compact call control even though it shares the .btn-call hook */
.site-header .header-call {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  gap: 0;
}

.menu-toggle { display: none; }

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

.hero { background: var(--paper); border-bottom: 1px solid var(--grout); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 46px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
}

.hero-micro { color: var(--orange); }

.hero h1 {
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.06;
  margin-top: 14px;
  max-width: 15ch;
}

.hero-key {
  margin-top: 18px;
  max-width: 44ch;
  font-size: 18px;
  color: var(--ink);
}

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

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}

.btn-call:hover,
.btn-call:focus-visible { background: #a4420f; }

.btn-call-label {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  color: var(--cobalt);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--cobalt-line);
}

.btn-quiet:hover,
.btn-quiet:focus-visible { border-bottom-color: var(--orange); }

.hero-figure { margin: 0; }

.plan-panel {
  background: var(--cobalt-deep);
  padding: 20px 22px 14px;
  border: 1px solid var(--cobalt-deep);
}

.plan { display: block; width: 100%; height: auto; }

.plan .tip { fill: var(--mineral); }
.plan .divider { fill: none; stroke: rgba(244, 241, 232, 0.34); stroke-width: 1; stroke-dasharray: 5 6; }
.plan .sys-run { fill: none; stroke: rgba(244, 241, 232, 0.62); stroke-width: 1.6; }
.plan .sys-flow { fill: none; stroke: var(--mineral); stroke-width: 2; }
.plan .rads rect { fill: none; stroke: rgba(244, 241, 232, 0.72); stroke-width: 1.5; }
.plan .rads path { stroke: rgba(244, 241, 232, 0.34); stroke-width: 1; }
.plan .dim path { fill: none; stroke: rgba(244, 241, 232, 0.32); stroke-width: 1; }
.plan .cylinder circle { fill: none; stroke: rgba(244, 241, 232, 0.72); stroke-width: 1.6; }
.plan .cylinder .coil { stroke: rgba(244, 241, 232, 0.38); stroke-width: 1.1; }
.plan .valve path { fill: rgba(244, 241, 232, 0.72); stroke: none; }
.plan .pump circle { fill: none; stroke: rgba(244, 241, 232, 0.72); stroke-width: 1.6; }
.plan .pump path { fill: rgba(244, 241, 232, 0.72); }
.plan .nodes circle { fill: var(--mineral); }
.plan .tiles rect { fill: none; stroke: rgba(244, 241, 232, 0.55); stroke-width: 1.3; }
.plan .tile-marks path { fill: none; stroke: rgba(244, 241, 232, 0.42); stroke-width: 1.2; }
.plan .tile-solid rect { fill: rgba(244, 241, 232, 0.14); }
.plan .datum path { fill: none; stroke: var(--orange); stroke-width: 2; }

.plan-caption { margin-top: 10px; color: var(--muted); }

/* ---------- schedules ---------- */

.schedule { background: var(--paper); padding: 56px 0 58px; }

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grout);
}

.section-head h2 { font-size: clamp(24px, 2.4vw, 34px); }

.section-head .micro { color: var(--cobalt); }

.schedule--systems .section-head { border-bottom: 0; padding-bottom: 4px; }
.schedule--systems { border-top: 0; }

.plan-list { border-top: 1px solid var(--charcoal); }

.plan-group {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 6px 30px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--grout);
}

.plan-group-title {
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 6px;
}

.labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 34px;
}

.labels li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-family: var(--label);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(222, 217, 204, 0.7);
}

.labels li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 9px;
  height: 9px;
  background: var(--cobalt);
}

.labels li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 26px;
  height: 2px;
  background: var(--orange);
}

/* tile-registration schedule */

.schedule--rooms { background: var(--mineral); border-top: 1px solid var(--grout); border-bottom: 1px solid var(--grout); }

.labels--rooms {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border: 1px solid var(--grout);
  background: var(--paper);
}

.labels--rooms li {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 12px 16px 12px 30px;
  border-bottom: 1px solid var(--grout);
  border-right: 1px solid var(--grout);
}

.labels--rooms li::before { top: 50%; margin-top: -5px; left: 16px; background: var(--orange); }

.labels--rooms li::after { display: none; }

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

.address { background: var(--charcoal); color: var(--mineral); padding: 52px 0; }

.address-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
}

.address-key .micro { color: #b9bfc6; }

.address-key h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 10px; }

.address-line {
  margin-top: 16px;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  padding-top: 16px;
  border-top: 2px solid var(--orange);
  max-width: 24ch;
}

.address-mark svg { display: block; width: 100%; height: auto; }
.address-mark .am-datum { fill: none; stroke: var(--orange); stroke-width: 2.4; }
.address-mark .am-tick { fill: none; stroke: rgba(244, 241, 232, 0.5); stroke-width: 1.6; }
.address-mark .am-pin { fill: none; stroke: var(--mineral); stroke-width: 2; }
.address-mark .am-pin-core { fill: var(--mineral); }

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

.contact { background: var(--cobalt-deep); color: var(--mineral); padding: 54px 0 58px; }

.contact-inner { display: grid; gap: 18px; }

.contact-lede .micro { color: #a9b8d4; }

.contact-lede h2 { font-size: clamp(24px, 2.6vw, 38px); margin-top: 10px; max-width: 26ch; }

.contact-line {
  font-family: var(--label);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 232, 0.82);
}

.contact-action { margin-top: 6px; }

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

.site-footer { background: var(--charcoal); color: var(--mineral); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 30px;
}

.footer-name { font-size: 18px; font-weight: 700; max-width: 22ch; line-height: 1.3; }

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 6px;
  color: var(--mineral);
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}

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

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--label);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9ced3;
  text-decoration: none;
}

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

.footer-base {
  padding-top: 16px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(244, 241, 232, 0.16);
}

.footer-base p { font-size: 13px; color: #a8aeb4; }

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

.mobile-call {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: 58px;
  background: var(--orange);
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.mobile-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}

.mobile-call-label {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.92;
}

/* ---------- mobile ---------- */

@media (max-width: 880px) {
  body { font-size: 16px; }

  .wrap { padding: 0 18px; }

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

  .brand-text { font-size: 15px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-height: 44px;
    padding: 0 14px;
    background: var(--cobalt);
    color: #fff;
    border: 0;
    font-family: var(--label);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-bars {
    display: block;
    width: 16px;
    height: 12px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: relative;
  }

  .menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    height: 2px;
    background: #fff;
  }

  .site-nav { display: none; margin-left: 0; width: 100%; }

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

  .site-header.nav-open .header-inner { flex-wrap: wrap; }

  .site-nav ul { display: block; padding-bottom: 12px; }

  .site-nav a { min-height: 44px; padding: 0 2px; border-bottom: 1px solid var(--grout); }

  .header-call { display: none; }

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

  .hero h1 { font-size: 30px; max-width: none; }

  .hero-key { margin-top: 12px; font-size: 16px; }

  .hero-actions { margin-top: 18px; gap: 12px; }

  .btn-call { min-height: 50px; }
  .btn-quiet { min-height: 44px; }

  .plan-panel { padding: 12px 12px 8px; }

  .schedule { padding: 34px 0 36px; }

  .section-head { gap: 6px 18px; padding-bottom: 10px; }

  .plan-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 0 16px;
  }

  .plan-group-title { padding-top: 0; }

  .labels { gap: 2px 18px; }

  .labels li { font-size: 12px; letter-spacing: 0.04em; padding: 6px 0 6px 16px; }

  .labels li::before { width: 7px; height: 7px; top: 12px; }

  .labels li::after { width: 18px; }

  .labels--rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }

  .labels--rooms li { min-height: 52px; padding: 10px 10px 10px 26px; }

  .labels--rooms li::before { left: 12px; }

  .address { padding: 34px 0; }

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

  .address-mark { display: none; }

  .address-line { margin-top: 12px; padding-top: 12px; font-size: 21px; }

  .contact { padding: 36px 0 40px; }

  .contact-inner { gap: 14px; }

  .contact-line { font-size: 15px; }

  .footer-inner { gap: 18px; padding-top: 30px; padding-bottom: 22px; }

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

  /* bottom clearance for the parked call bar lives on the footer element */
  .site-footer { padding-bottom: 78px; }

  .mobile-call {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

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