/* Gas & Plumbing Services Leeds — three-lane service manifold
   Palette: deep navy, warm white, signal red, steel-blue secondary lane. */

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

:root {
  --navy: #0d2140;
  --navy-2: #16305a;
  --steel: #4a719e;
  --slate: #8b96a8;
  --red: #cc1f2f;
  --paper: #faf7f2;
  --paper-2: #f2ece1;
  --paper-3: #e9e2d6;
  --ink: #141c28;
  --ink-2: #4c5666;
  --line: #ded7ca;
  --line-2: #c8bfae;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --gut: 20px;
}

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

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: 0.004em; }

.micro {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

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

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

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

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 2px 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark svg { display: block; width: 27px; height: 27px; }
.bm-lane { fill: none; stroke-width: 2.6; }
.bm-lane--a { stroke: var(--navy); }
.bm-lane--b { stroke: var(--steel); }
.bm-lane--c { stroke: var(--slate); }
.bm-out { fill: none; stroke: var(--navy); stroke-width: 2.6; }
.bm-node { fill: var(--red); }

.brand-text { display: flex; flex-direction: column; line-height: 1.16; letter-spacing: 0.012em; }
.brand-line { font-size: 13px; font-weight: 800; }
.brand-line--rest { font-size: 10.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--red); }

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
}
.header-call:hover { background: #b01726; }

.menu-toggle { display: none; }

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

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

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 34px;
  align-items: center;
}

.hero-copy { grid-column: 1 / span 7; }
.hero-micro { margin-bottom: 16px; color: var(--steel); }

.hero-title { font-size: clamp(25px, 2.7vw, 36px); line-height: 1.07; }
.ht-id { display: block; letter-spacing: 0.014em; }
.ht-rest {
  display: block;
  margin-top: 0.34em;
  font-size: 0.5em;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.hero-key { margin: 20px 0 0; font-size: 18px; color: var(--ink-2); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.btn-call:hover { background: #b01726; }
.btn-call-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.86; }
.btn-call-number { font-size: 17px; letter-spacing: 0.05em; }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.btn-quiet:hover { border-color: var(--navy); color: var(--navy); }

.hero-figure { grid-column: 8 / span 5; margin: 0; }
.hero-figure svg { display: block; width: 100%; height: auto; }
.hero-figure figcaption { margin-top: 10px; }

.manifold .m-body { fill: none; stroke: var(--navy-2); stroke-width: 9; stroke-linecap: round; }
.manifold .lane { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.manifold .lane--gas { stroke: var(--navy); }
.manifold .lane--plumbing { stroke: var(--steel); }
.manifold .lane--boiler { stroke: var(--slate); }
.manifold .lane--out { stroke: var(--navy); }
.manifold .valve { stroke: none; }
.manifold .valve--gas { fill: var(--navy); }
.manifold .valve--plumbing { fill: var(--steel); }
.manifold .valve--boiler { fill: var(--slate); }
.manifold .stem { fill: none; stroke: var(--line-2); stroke-width: 2; }
.manifold .wheel { fill: var(--paper); stroke: var(--navy); stroke-width: 2; }
.manifold .g-outer { fill: var(--paper); stroke: var(--navy); stroke-width: 3; }
.manifold .g-inner { fill: none; stroke: var(--line-2); stroke-width: 1; }
.manifold .g-ticks { fill: none; stroke: var(--navy-2); stroke-width: 1.6; }
.manifold .g-needle { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.manifold .g-hub { fill: var(--navy); }
.manifold .node { fill: var(--navy); }
.manifold .p-plate { fill: var(--red); }
.manifold .p-glyph rect { fill: #fff; }
.manifold .m-label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  fill: var(--ink-2);
}
.manifold .m-label--call { fill: var(--red); font-weight: 700; }

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

.services { padding: 50px 0 54px; border-bottom: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}
.section-head .micro { grid-column: 1 / span 4; padding-bottom: 4px; }
.section-head h2 { grid-column: 5 / span 8; font-size: clamp(24px, 2.5vw, 32px); }

.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.lane { position: relative; padding: 26px 26px 30px 0; border-right: 1px solid var(--line); }
.lane:last-child { border-right: 0; padding-right: 0; }
.lane::before { content: ""; position: absolute; left: 0; top: -1px; width: 68px; height: 4px; background: var(--lane); }
.lane--gas { --lane: var(--navy); }
.lane--plumbing { --lane: var(--steel); }
.lane--boiler { --lane: var(--slate); }

.lane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lane-code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lane);
}
.lane-glyph svg { display: block; width: 22px; height: 22px; fill: none; stroke: var(--lane); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lane-glyph .glyph-cut { stroke: var(--line-2); }
.lane-glyph .glyph-dot { fill: none; }

.lane-title { font-size: 19px; font-weight: 700; letter-spacing: 0.012em; }

.lane-labels { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lane-labels li { position: relative; padding-left: 18px; font-size: 16px; font-weight: 600; }
.lane-labels li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 10px; height: 1px; background: var(--line-2); }

.index { margin-top: 34px; }
.index-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.index-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.index-rows { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.index-rows li { display: flex; align-items: baseline; gap: 16px; padding: 18px 22px 18px 0; border-bottom: 1px solid var(--line); }
.index-rows li:nth-child(odd) { border-right: 1px solid var(--line); }
.index-rows li:nth-child(even) { padding-left: 22px; }
.idx-no { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--steel); }
.idx-label { font-size: 16px; font-weight: 600; }

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

.address { padding: 44px 0; background: var(--paper-2); border-bottom: 1px solid var(--line); }

.address-inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: center; }
.address-micro { grid-column: 1 / span 2; }
.address-line { grid-column: 3 / span 8; font-size: clamp(20px, 2.7vw, 34px); line-height: 1.18; }
.address-pin { grid-column: 11 / span 2; justify-self: end; }
.address-pin svg { display: block; width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.address-pin .pin-core { fill: var(--red); stroke: none; }

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

.contact { padding: 52px 0; }

.contact-inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px; align-items: center; }
.contact-lede { grid-column: 1 / span 6; }
.contact-lede h2 { margin-top: 8px; font-size: clamp(26px, 3vw, 38px); }
.contact-note { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); }
.contact-action { grid-column: 8 / span 5; display: flex; justify-content: flex-end; }

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

.site-footer { background: var(--navy); color: #e9e4db; padding: 38px 0 32px; }

.footer-inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.footer-id { grid-column: 1 / span 7; }
.footer-name { margin: 0; max-width: 40ch; font-size: 13.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0.012em; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 8px;
  color: #fff;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.footer-phone:hover { color: #ffd9dc; }
.footer-nav { grid-column: 9 / span 4; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 34px; font-size: 14px; font-weight: 600; color: #dfe4ec; text-decoration: none; }
.footer-nav a:hover { color: #fff; }

.footer-base { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.footer-base p { margin: 0; font-size: 12px; color: #a9b3c4; }

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

.mobile-call { display: none; }

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

@media (max-width: 899px) {
  .header-call { display: none; }
  .site-nav { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: flex; min-height: 46px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .site-header.nav-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gut) 16px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 2px solid var(--navy);
    box-shadow: 0 14px 24px rgba(13, 33, 64, 0.16);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    min-width: 46px;
    margin-left: auto;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-bars { position: relative; display: block; width: 18px; height: 2px; background: var(--navy); }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); }
  .menu-bars::before { top: -6px; }
  .menu-bars::after { top: 6px; }

  .hero { padding: 24px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { grid-column: auto; }
  .hero-figure { display: none; }
  .brand-line { font-size: 11.5px; }
  .brand-line--rest { font-size: 9.5px; }
  .hero-title { font-size: clamp(25px, 7.4vw, 31px); }
  .hero-key { margin-top: 16px; font-size: 17px; }
  .hero-actions { margin-top: 20px; }
  .btn-call { min-height: 54px; padding: 0 18px; }
  .btn-quiet { min-height: 54px; }

  .services { padding: 40px 0 44px; }
  .section-head { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .section-head .micro { grid-column: auto; }
  .section-head h2 { grid-column: auto; }

  .lanes { grid-template-columns: 1fr; margin-top: 24px; }
  .lane { padding: 22px 0 22px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .lane:last-child { padding-right: 0; }
  .lane::before { left: 0; top: 22px; width: 4px; height: calc(100% - 44px); }
  .lane-head { margin-bottom: 12px; }
  .lane-title { font-size: 18px; }

  .index { margin-top: 26px; }
  .index-rows { grid-template-columns: 1fr; }
  .index-rows li { padding: 20px 0; }
  .index-rows li:nth-child(odd) { border-right: 0; }
  .index-rows li:nth-child(even) { padding-left: 0; }

  .address { padding: 34px 0; }
  .address-inner { grid-template-columns: 1fr; gap: 10px; }
  .address-micro, .address-line, .address-pin { grid-column: auto; }
  .address-pin { display: none; }
  .address-line { font-size: clamp(21px, 6.6vw, 26px); }

  .contact { padding: 40px 0 44px; }
  .contact-inner { grid-template-columns: 1fr; gap: 20px; }
  .contact-lede, .contact-action { grid-column: auto; }
  .contact-action { justify-content: flex-start; }
  .contact-note { margin-top: 12px; }

  .site-footer { padding-bottom: 100px; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-id, .footer-nav { grid-column: auto; }

  .mobile-call {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    height: 58px;
    background: var(--red);
    visibility: hidden;
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.26s ease, visibility 0.26s;
  }
  .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;
    gap: 12px;
    height: 58px;
    color: #fff;
    font-family: var(--mono);
    text-decoration: none;
  }
  .mobile-call-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.86; }
  .mobile-call-number { font-size: 16px; letter-spacing: 0.06em; font-weight: 600; }
}
