/* Leeds Emergency Plumbers — demo stylesheet (Wave 3, V0.4).
   Art direction: a calm typographic noticeboard. A tall poster hero sets the formal
   identity in condensed uppercase type beside one narrow side rail carrying stable
   vertical rules, concentric pressure rings and cropped waterline arcs; a row of
   cropped pressure arcs rises from the hero's lower edge. Below it three compact
   horizontal issue bands index the supported labels against persistent group names,
   then a grounded address-and-contact field and one decisive call close.
   Deliberately no clock, countdown, alarm beacon, speed line or flashing surface.
   Palette: graphite, cool bone paper and one muted pressure teal.
   Hierarchy comes from type scale, rules and whitespace — no cards, no badges. */

:root {
  --graphite: #171b1e;
  --graphite-2: #242b2f;
  --graphite-3: #0f1214;
  --paper: #f1f0eb;
  --paper-2: #fbfaf7;
  --bone: #eceae3;
  --teal: #2f6d7a;
  --teal-deep: #1c4650;
  --teal-soft: rgba(47, 109, 122, 0.14);
  --body: #46525a;
  --mute: #7c878e;
  --rule: rgba(23, 27, 31, 0.17);
  --rule-faint: rgba(23, 27, 31, 0.08);
  --rule-inv: rgba(236, 234, 227, 0.22);
  --display: "DejaVu Sans Condensed", "Arial Narrow", "Helvetica Neue Condensed",
    "Liberation Sans Narrow", Arial, sans-serif;
  --text: "DejaVu Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  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(--graphite);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.05;
}

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

.micro {
  margin: 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- masthead ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(241, 240, 235, 0.97);
  border-bottom: 1px solid var(--rule);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: var(--graphite);
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.008em;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
}

.brand-mark .mark-ring:first-child { stroke-width: 2.2; }
.brand-mark .mark-rule { stroke: var(--graphite); stroke-width: 2.4; }

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

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #4d5a62;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { color: var(--graphite); border-bottom-color: var(--teal); }

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 2px;
}

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

.menu-toggle { display: none; }

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

.hero {
  position: relative;
  overflow: clip;
  background: var(--graphite);
  color: #c7d0d2;
  padding: 74px 0 96px;
}

.hero-rings {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 620px;
  max-width: 74%;
  opacity: 0.42;
  pointer-events: none;
}

.hero-rings svg { width: 100%; height: auto; }

.ring-set circle {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.1;
}

.ring-set circle:nth-child(2) { stroke: rgba(47, 109, 122, 0.72); }
.ring-set circle:nth-child(4) { stroke: rgba(47, 109, 122, 0.6); }

.ring-mark {
  fill: none;
  stroke: rgba(236, 234, 227, 0.34);
  stroke-width: 1.4;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0 62px;
  align-items: start;
}

.hero-rail { padding-top: 6px; }

.hero-rail svg { width: 132px; height: auto; }

.rail-rule,
.rail-tick {
  fill: none;
  stroke: rgba(236, 234, 227, 0.42);
  stroke-width: 1.6;
}

.rail-ring {
  fill: none;
  stroke: rgba(47, 109, 122, 0.9);
  stroke-width: 1.2;
}

.rail-ring:first-of-type { stroke: rgba(236, 234, 227, 0.6); }

.rail-arc {
  fill: none;
  stroke: rgba(236, 234, 227, 0.26);
  stroke-width: 1.3;
}

.hero-micro {
  color: #86a0a8;
  margin-bottom: 22px;
}

.hero h1 {
  color: #f7f6f1;
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  max-width: 15ch;
  margin-bottom: 26px;
}

.hero-cat {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-left: 20px;
  position: relative;
  color: #f2f1ec;
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  bottom: 0.34em;
  width: 3px;
  border-radius: 2px;
  background: var(--teal);
}

.hero-line {
  max-width: 42ch;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-inv);
  color: #a9b8bc;
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 34px;
}

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

.btn-call {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 30px;
  background: var(--teal);
  color: #f6fbfa;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.006em;
  border-radius: 2px;
}

.btn-call:hover { background: #3d8695; }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: #e9eeec;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid rgba(47, 109, 122, 0.65);
}

.btn-quiet:hover { border-bottom-color: var(--teal); }

.hero-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 104px;
  pointer-events: none;
  opacity: 0.6;
}

.hero-water svg { width: 100%; height: 104px; }

.water-arcs path {
  fill: none;
  stroke: rgba(47, 109, 122, 0.55);
  stroke-width: 1.3;
}

.water-arcs path:nth-child(2),
.water-arcs path:nth-child(4) { stroke: rgba(236, 234, 227, 0.2); }

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

.services {
  padding: 78px 0 86px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.section-head h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.4rem);
  margin-top: 16px;
  letter-spacing: -0.02em;
  max-width: 26ch;
}

.section-note {
  margin-top: 14px;
  color: var(--mute);
  font-size: 0.95rem;
}

.band-index { margin-top: 48px; }

.band {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 0 40px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}

.band:last-child { border-bottom: 1px solid var(--rule); }

.band-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 3px;
}

.band-title {
  color: var(--graphite);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.band-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  display: none;
}

.band-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.band-labels li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #2c363c;
  font-size: 1.04rem;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: -0.008em;
}

.band-labels li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 22px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

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

.contact {
  padding: 68px 0 72px;
  background: var(--teal-deep);
  color: #cfe0e2;
}

.contact-micro { color: #8fb6bd; }

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

.contact h2 {
  color: #f7f6f1;
  font-size: clamp(1.75rem, 2.7vw, 2.45rem);
  margin: 16px 0 16px;
  max-width: 22ch;
}

.contact-note {
  color: #b7d0d3;
  font-size: 1rem;
  max-width: 34ch;
}

.contact-field {
  margin-top: 34px;
  padding-left: 22px;
  border-left: 3px solid var(--teal);
  position: relative;
}

.field-micro { color: #8fb6bd; margin-bottom: 10px; }

.field-address {
  color: #f2f1ec;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.006em;
}

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

.contact .btn-call {
  background: var(--bone);
  color: var(--teal-deep);
}

.contact .btn-call:hover { background: #ffffff; }

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

.site-footer {
  background: var(--graphite-3);
  color: #b3c0c3;
  padding: 46px 0 26px;
}

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

.footer-name {
  color: #f3f2ec;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.006em;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 4px;
  color: #f3f2ec;
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid rgba(47, 109, 122, 0.8);
}

.footer-phone:hover { border-bottom-color: #63aff0; }

.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: 34px;
  color: #a8bcbf;
  font-size: 0.85rem;
}

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

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

.footer-base p { color: #7e9295; font-size: 0.78rem; }

/* ---------- fixed mobile call bar (parked by default) ---------- */

.mobile-call { display: none; }

/* ---------- narrow viewports ---------- */

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

  .wrap { padding: 0 18px; }

  /* compact masthead; the identity wraps onto two lines */
  .header-inner { gap: 10px; min-height: 58px; }

  .brand { gap: 9px; min-height: 44px; font-size: 0.88rem; }

  .brand-text { max-width: 15ch; line-height: 1.1; }

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

  .header-call { display: none; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-left: auto;
    padding: 0 12px;
    background: transparent;
    color: var(--graphite);
    border: 1px solid var(--rule);
    border-radius: 2px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

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

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

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

  .site-nav ul { flex-direction: column; gap: 0; padding: 6px 18px 16px; }

  .site-nav a {
    min-height: 46px;
    width: 100%;
    border-bottom: 1px solid var(--rule-faint);
  }

  /* hero: the side rail is retired, the rings motif is carried by the deco layer */
  .hero { padding: 30px 0 44px; }

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

  .hero-rail { display: none; }

  .hero-rings {
    top: -90px;
    right: -130px;
    width: 360px;
    opacity: 0.32;
  }

  .hero-micro { margin-bottom: 14px; }

  .hero h1 {
    font-size: clamp(2rem, 8.8vw, 2.5rem);
    max-width: none;
    margin-bottom: 18px;
  }

  .hero-cat { font-size: 1.16rem; }

  .hero-line {
    margin-top: 14px;
    padding-top: 16px;
    font-size: 0.95rem;
    max-width: none;
    margin-bottom: 26px;
  }

  .hero-actions { gap: 12px; }

  .btn-call {
    min-height: 58px;
    padding: 0 22px;
    width: 100%;
    justify-content: center;
    font-size: 1.08rem;
  }

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

  .hero-water { height: 78px; opacity: 0.5; }

  .hero-water svg { height: 78px; }

  /* services: three compact horizontal bands become short paired rows under a
     persistent group label — not a stack of desktop panels */
  .services { padding: 54px 0 64px; }

  .section-head h2 { font-size: 1.62rem; max-width: none; margin-top: 14px; }

  .section-note { margin-top: 16px; font-size: 0.9rem; }

  .band-index { margin-top: 34px; }

  .band {
    display: block;
    padding: 40px 0 44px;
  }

  .band-head { gap: 14px; padding-top: 0; margin-bottom: 18px; }

  .band-title { font-size: 0.92rem; }

  .band-rule { display: block; }

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

  .band-labels li {
    min-height: 52px;
    padding: 8px 0;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.24;
    border-top: 1px solid var(--rule-faint);
  }

  .band-labels li + li::before { content: none; }

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

  /* mobile order: heading, then details, then the call action — this keeps the
     fixed bar's reveal window open instead of collapsing it behind the CTA */
  .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }

  .contact h2 { font-size: 1.56rem; max-width: none; margin: 14px 0 14px; }

  .contact-note { font-size: 0.95rem; }

  .contact-field { margin-top: 28px; }

  .field-address { font-size: 1.04rem; }

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

  .site-footer { padding: 34px 0 20px; }

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

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

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

  /* clearance for the fixed call bar — applied to the footer element itself so no
     .wrap padding rule can override it and let the bar cover the copyright line */
  .site-footer { padding-bottom: 110px; }

  .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: center;
    min-height: 58px;
    padding: 0 18px;
    background: var(--teal);
    color: #f6fbfa;
    font-family: var(--display);
    font-size: 1.08rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -10px 26px rgba(15, 18, 20, 0.42);
  }
}
