/* Leeds Plumber UK — static demo stylesheet.
   Municipal-service direction: ink navy type on warm off-white, steel-blue pipework,
   one safety-red accent reserved for the call action. No framework, no web fonts. */

:root {
  --ink: #0f2743;
  --ink-soft: #40566f;
  --ink-muted: #6b7d92;
  --steel: #2f6f9e;
  --steel-light: #c9dcec;
  --red: #c8341c;
  --red-dark: #a92712;
  --paper: #f6f4ee;
  --paper-2: #efebe0;
  --surface: #ffffff;
  --line: #dcd8ca;
  --line-cool: #d3dee8;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.66;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 .4em;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 4.9vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.038em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section[id] { scroll-margin-top: 92px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -70px; z-index: 100;
  min-height: 44px; display: inline-flex; align-items: center;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 8px; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Section marker: a short rule struck through with a junction notch, not a badge. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: .7rem;
  font-weight: 700;
  color: var(--steel);
  margin: 0 0 .9em;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  flex: none;
  background: currentColor;
  box-shadow: 30px 0 0 -0.5px currentColor;
}

/* ---------- Controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.008em;
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn-lg { min-height: 60px; padding: 17px 30px; font-size: 1.08rem; }

.btn-call { background: var(--red); color: #fff; }
.btn-call:hover, .btn-call:focus-visible { background: var(--red-dark); transform: translateY(-1px); }
.btn-call-icon { display: inline-flex; width: 18px; height: 18px; }
.btn-call-icon svg { width: 100%; height: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--steel);
  padding-bottom: 2px;
}
.link-arrow::after { content: "\2192"; font-weight: 700; color: var(--steel); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 0 var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-name { font-size: 1.14rem; font-weight: 800; letter-spacing: -.03em; }

.site-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--red); }

.header-call { min-height: 48px; padding: 12px 20px; font-size: .95rem; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink); position: relative;
}
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-color: var(--paper);
  /* Faint drain-grid geometry behind the type. */
  background-image:
    linear-gradient(rgba(15, 39, 67, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 39, 67, .045) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
  border-bottom: 1px solid var(--line);
  padding: 78px 0 86px;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
  background: linear-gradient(180deg, var(--ink) 0 62%, var(--red) 62% 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}
.hero-brand {
  display: inline-block;
  margin: 0 0 1.1em;
  padding: 7px 14px;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy h1 { color: var(--ink); max-width: 15ch; margin-bottom: .42em; }
.hero-lede {
  font-size: 1.14rem;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 1.9em;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Service scope ---------- */

.section-service-scope {
  background: var(--surface);
  padding: 78px 0 76px;
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 42px; }
.section-head h2 { margin-bottom: .5em; max-width: 24ch; }
.section-lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 46ch;
  margin: 0;
}

/* One continuous typographic run: numbered stations along a pipe, not six cards. */
.scope-run {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.scope-run li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.scope-index {
  flex: none;
  width: 42px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}
.scope-run h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -.032em;
  line-height: 1.15;
}
/* The fourth station is the captured emergency topic; it keeps the same rank
   as the other service labels but carries the red marker. */
.scope-run li:last-child .scope-index { color: var(--red); }

.scope-note {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1rem;
  padding-left: 64px;
  border-left: 1px solid var(--line);
}

/* ---------- Rating and location strip ---------- */

.trust-band {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 34px;
}
.trust-rating {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45em;
  font-size: 1.05rem;
}
.trust-rating strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.stars { color: var(--red); letter-spacing: .1em; font-size: .95em; }
.trust-address {
  margin: 0;
  font-style: normal;
  font-size: .97rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

/* ---------- Contact ---------- */

.section-contact {
  background: var(--ink);
  color: #dbe6f0;
  padding: 74px 0 78px;
}
.section-contact .eyebrow { color: var(--steel-light); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas:
    "copy    details"
    "actions details";
  gap: 0 64px;
  align-items: start;
}
.contact-copy { grid-area: copy; }
.contact-actions { grid-area: actions; padding-top: 4px; }
.contact-details { grid-area: details; margin: 0; }
.contact-copy h2 { color: #fff; margin-bottom: .42em; max-width: 16ch; }
.contact-lede {
  color: #b9cbdd;
  font-size: 1.08rem;
  max-width: 34ch;
  margin-bottom: 1.7em;
}

.contact-details dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  color: #8fa9c2;
  padding-top: 20px;
}
.contact-details dt:first-of-type { padding-top: 4px; }
.contact-details dd {
  margin: 6px 0 0;
  padding-bottom: 20px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.contact-details dd:last-of-type { border-bottom: 0; padding-bottom: 0; }
.contact-tel {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #ffd9cf;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.contact-tel:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: #0a1c30;
  color: #b9cbdd;
  padding: 52px 0 0;
  border-top: 3px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.footer-name {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.footer-address { font-style: normal; font-size: .96rem; line-height: 1.72; color: #aabdcd; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #d7e5f1;
  font-size: .97rem;
  text-decoration: none;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: #fff; text-decoration: underline; }
.footer-phone { margin: 0; }
.footer-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #ffd9cf;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .005em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.footer-phone a:hover { text-decoration: underline; }

.footer-base {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-top: 20px;
  padding-bottom: 22px;
}
.footer-base p { margin: 0; font-size: .84rem; color: #90a7be; }

/* ---------- Mobile call bar ----------
   Parked by default; script.js reveals it only once the hero has left the
   viewport and retires it when the contact section's own call action arrives. */

.mobile-call { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .contact-grid { gap: 44px; }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 30px; }
  /* The pipe illustration is desktop-only: it costs mobile height and adds nothing. */
  .hero-art { display: none; }
  .section-service-scope { padding: 56px 0; }
  .section-contact { padding: 56px 0 60px; }
  .contact-grid { gap: 34px; }
  .section-head { margin-bottom: 30px; }
}

@media (max-width: 780px) {
  body { font-size: 16.5px; }
  .header-inner { min-height: 62px; gap: 12px; }
  .brand-name { font-size: 1.05rem; }
  /* The fixed bottom bar carries the mobile call action, so the header keeps
     one control only. */
  .header-call { display: none; }

  .site-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    margin-top: 10px;
    padding: 4px 0 8px;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: flex;
    min-height: 50px;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    border-bottom-color: var(--line);
  }
  .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .brand { order: 1; }
  .menu-toggle { order: 2; display: inline-flex; margin-left: auto; }

  .hero { padding: 38px 0 44px; }
  .hero::before { width: 5px; }
  .hero-brand { font-size: .74rem; padding: 6px 11px; }
  .hero-copy h1 { max-width: none; }
  .hero-lede { font-size: 1.02rem; margin-bottom: 1.4em; }
  .cta-row { gap: 14px; }
  .cta-row .btn { width: 100%; }

  .section-lede { font-size: 1.02rem; }
  .scope-run li { padding: 15px 0; gap: 16px; }
  .scope-index { width: 32px; font-size: .76rem; }
  .scope-run h3 { font-size: 1.24rem; }
  .scope-note { padding-left: 0; border-left: 0; font-size: .97rem; }

  .trust-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .trust-address { padding-left: 0; border-left: 0; font-size: .93rem; }

  .contact-copy .btn,
  .contact-actions .btn { width: 100%; }
  .contact-lede { max-width: none; }
  /* Mobile order puts the contact details before the call action, so the fixed
     call bar keeps a clear band to occupy until the page's own call action
     arrives, and the two can never sit over the contact heading together. */
  .contact-grid {
    grid-template-areas:
      "copy"
      "details"
      "actions";
    gap: 26px;
  }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-nav ul { display: flex; gap: 24px; }
  .site-footer { padding-top: 38px; }
  /* Clearance lives on .site-footer so the narrower-mobile .container padding
     rule cannot strip it and let the bar cover the copyright line. */
  .site-footer { padding-bottom: 86px; }

  .mobile-call {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(15, 39, 67, .16);
    transform: translateY(118%);
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    transition: transform .28s ease, visibility .28s ease;
  }
  .mobile-call.is-visible {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-call-btn { width: 100%; }
}

@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .stars { letter-spacing: .04em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .mobile-call { transition: none; }
}
