/* Plumbers Leeds — static demo stylesheet (V0.3 polished pass)
   No external assets, no web fonts, no frameworks. Card chrome kept to a minimum:
   layout is built from typography, rules, pipe-joint motifs and grouped lists. */

:root {
  --ink: #101f2e;
  --ink-soft: #42566b;
  --ink-muted: #69798d;
  --navy: #0b2545;
  --navy-2: #123a5f;
  --navy-deep: #0c2745;
  --copper: #c1763a;
  --copper-light: #e2a066;
  --steel: #2f6f9e;
  --accent: #b8450a;
  --accent-dark: #963806;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --line: #dde5ee;
  --line-strong: #cbd8e6;
  --maxw: 1140px;
  --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;
  text-rendering: optimizeLegibility;
}

svg { max-width: 100%; }

h1, h2, h3 {
  margin: 0 0 .4em;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.45rem, 5.1vw, 4rem);
  font-weight: 800;
  letter-spacing: -.042em;
  line-height: 1.03;
}
h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.034em;
  line-height: 1.08;
}
h3 { font-size: 1.16rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

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

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

.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(--navy); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 10px; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Eyebrows carry a short copper rule: a section marker, not a badge. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .71rem;
  font-weight: 700;
  color: var(--copper);
  margin: 0 0 .85em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: currentColor;
  opacity: .8;
}

/* ---------- Buttons and links ---------- */

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

.btn-call {
  background: linear-gradient(180deg, #c64f13, var(--accent) 55%, #a63c06);
  color: #fff;
  box-shadow: 0 8px 20px rgba(120, 45, 6, .28);
}
.btn-call:hover, .btn-call:focus-visible {
  background: linear-gradient(180deg, #b8450a, #8f3505);
  box-shadow: 0 10px 24px rgba(120, 45, 6, .34);
}
.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: 40px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: "\2192"; font-weight: 700; }

/* Inline telephone links keep a comfortable tap height. */
.footer-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  color: #fff;
  flex: none;
}
.brand-mark svg { width: 25px; height: 25px; }
.brand-name { font-size: 1.16rem; font-weight: 800; letter-spacing: -.028em; }

.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(--navy); border-bottom-color: var(--copper); }

.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: 9px;
  cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  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;
  overflow: hidden;
  color: #fff;
  padding: 82px 0 92px;
  background-color: var(--navy);
  background-image:
    radial-gradient(880px 400px at 88% 4%, rgba(193, 118, 58, .27), transparent 66%),
    radial-gradient(620px 320px at 4% 102%, rgba(47, 111, 158, .26), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
/* A brass hairline seals the first screen: a fitted edge rather than a fade. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper) 0%, var(--copper) 22%, rgba(193, 118, 58, .18) 62%, transparent 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { color: #fff; max-width: 16ch; margin-bottom: .45em; }
.hero .eyebrow { color: #a8c6e4; }
.hero-lede {
  font-size: 1.16rem;
  line-height: 1.62;
  color: #cddff0;
  max-width: 40ch;
  margin-bottom: 1.9em;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero .link-arrow { color: #e4eefa; }

.hero-art { color: var(--copper); }
.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 38px rgba(4, 16, 30, .5));
}
.art-ghost { mix-blend-mode: screen; }

/* ---------- Trust band ---------- */

.trust-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 34px;
}
.trust-rating {
  margin: 0;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: .45em;
  flex-wrap: wrap;
}
.trust-rating strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.stars { color: var(--copper); letter-spacing: .12em; font-size: .95em; }
.trust-scope {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-muted);
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
@media (max-width: 780px) {
  .trust-scope { padding-left: 0; border-left: 0; }
}

/* ---------- Sections ---------- */

.section { padding: 82px 0; }
.section-services { background: var(--bg); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 44px; }
.section-head h2 { margin-bottom: 0; max-width: 22ch; }

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

.core-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
}
/* A single hairline runs between the two columns, like a pipe pair. */
.core-list::after {
  content: "";
  position: absolute;
  top: 4px; bottom: 4px; left: 50%;
  width: 1px;
  background: var(--line-strong);
}
.core-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}
.core-list h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.032em;
}
.svc-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(193, 118, 58, .5);
  color: var(--copper);
}
.svc-mark svg { width: 24px; height: 24px; }

/* ---------- Coupling rule (section divider motif) ---------- */

.coupling-rule {
  position: relative;
  height: 1px;
  background: #bed0e2;
  margin: 56px 0 46px;
}
/* A pipe coupling seen end-on: the divider reads as a run of pipework. */
.coupling-rule span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 2px solid var(--copper);
  background: var(--bg);
}
.coupling-rule span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--copper);
}

/* ---------- Secondary service groups ---------- */

.service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
}
.service-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-soft);
  margin: 0 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
/* A fitting rather than a checkbox: the group label marker is rotated. */
.service-group h3::before {
  content: "";
  width: 8px; height: 8px;
  flex: none;
  border: 2px solid var(--copper);
  border-radius: 2px;
  transform: rotate(45deg);
  margin: 0 2px;
}
.service-group ul { list-style: none; margin: 0; padding: 0; }
.service-group li {
  position: relative;
  padding: 13px 0 13px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 1.03rem;
}
.service-group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 9px; height: 2px;
  background: #b78455;
  transform: translateY(-50%);
}
.service-group li:last-child { border-bottom: 0; }

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

.section-contact { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { margin-bottom: .38em; }
.contact-copy p {
  color: var(--ink-soft);
  margin-bottom: 1.7em;
  font-size: 1.1rem;
  max-width: 32ch;
}

.contact-details { margin: 0; padding-top: 6px; }
.contact-details dt {
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--ink-muted);
  padding-top: 18px;
}
.contact-details dt:first-of-type { padding-top: 0; }
.contact-details dd {
  margin: 5px 0 0;
  padding-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
  font-style: normal;
}
.contact-details dd:last-of-type { border-bottom: 0; padding-bottom: 0; }

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

.site-footer {
  background: var(--navy);
  color: #c3d6e6;
  padding: 58px 0 0;
  border-top: 3px solid rgba(193, 118, 58, .75);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.footer-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.028em;
  margin: 0 0 10px;
}
.footer-address { font-style: normal; font-size: .97rem; line-height: 1.72; color: #b9cfe2; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #dbe9f5;
  text-decoration: none;
  font-size: .97rem;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: #fff; text-decoration: underline; }
.footer-phone { margin: 0; }
.footer-phone a {
  color: #ffd7bb;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.16rem;
  letter-spacing: .005em;
  font-variant-numeric: tabular-nums;
}
.footer-phone a:hover { text-decoration: underline; }

.footer-base {
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding-top: 20px;
  padding-bottom: 22px;
}
.footer-base p { margin: 0; font-size: .84rem; color: #9db6cd; letter-spacing: .01em; }

/* ---------- Mobile call bar ----------
   Hidden by default and only revealed once the hero has left the viewport;
   script.js drives the .is-visible state and retires the bar at the contact
   section, so it can never sit across the services heading or the footer. */

.mobile-call { display: none; }

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

@media (max-width: 1080px) {
  .core-list, .service-groups { gap: 0 44px; }
}

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

@media (max-width: 780px) {
  body { font-size: 16.5px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-name { font-size: 1.08rem; }
  /* Fixed bottom call bar carries the mobile call action, so the header
     keeps a single compact control (the menu) instead of a second call button. */
  .header-call { display: none; }

  .site-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding: 4px 0 8px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: flex;
    min-height: 50px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .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: 42px 0 48px; }
  .hero-copy h1 { max-width: none; }
  .hero-lede { font-size: 1.05rem; margin-bottom: 1.5em; }
  .cta-row { gap: 16px; }
  .cta-row .btn { width: 100%; }

  .trust-band { padding: 18px 0; }
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 6px; }

  .core-list { grid-template-columns: minmax(0, 1fr); }
  .core-list::after { display: none; }
  .core-list li { padding: 16px 0; gap: 15px; }
  .core-list h3 { font-size: 1.28rem; }
  .svc-mark { width: 36px; height: 36px; }
  .svc-mark svg { width: 21px; height: 21px; }
  .coupling-rule { margin: 40px 0 34px; }
  .service-groups { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .service-group li { padding: 11px 0 11px 22px; }

  .contact-copy p { max-width: none; }
  .contact-copy .btn { width: 100%; }
  /* Space the bar may occupy at the tail of the page is reserved on the
     services, contact and footer blocks, so nothing is trapped under the bar. */
  .section-services { padding-bottom: 68px; }
  .section-contact { padding-bottom: 76px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-nav ul { display: flex; gap: 24px; }
  .site-footer { padding-top: 40px; }

  /* Always applied to .site-footer rather than a .container child, so the
     narrower-mobile .container padding rule cannot strip the clearance. */
  .site-footer { padding-bottom: 88px; }

  .mobile-call {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 22px rgba(16, 31, 46, .14);
    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: .05em; }
}

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