/* Chris Ward Plumbing and Heating — demo stylesheet (Wave 4, V0.4).
   Art direction: "enamel trade-sign register". The page is built as a run of
   hand-painted British trade signage: a warm enamel cream field, deep bottle
   green enamel panels, oxblood only where a call action lives, and muted brass
   hairlines acting as the sign-painter's rules. Identity leads as oversized
   painted lettering next to one enamel sign plate carrying an original abstract
   maker's mark (a gauge arc, tile joints, a cropped ring, right-angle linework).
   The four supported service labels are set as full-bleed register bands whose
   type scale and field colour change band to band, so the set reads as a sign
   register rather than a card grid or a service catalogue.
   Palette: enamel cream, bottle green, near-black, oxblood red, brass. */

:root {
  --cream: #f4ead6;
  --cream-2: #fbf5e8;
  --cream-3: #ece0c7;
  --green: #123c2c;
  --green-2: #18503a;
  --green-3: #0e3225;
  --green-deep: #08211a;
  --ink: #102019;
  --ink-soft: #33423a;
  --oxblood: #8f2b1c;
  --oxblood-2: #a5371f;
  --brass: #b98f4e;
  --brass-soft: rgba(185, 143, 78, 0.42);
  --mute: #6d6552;
  --rule: rgba(16, 32, 25, 0.18);
  --rule-faint: rgba(16, 32, 25, 0.08);
  --rule-light: rgba(244, 234, 214, 0.24);
  --display: "Arial Narrow", "Helvetica Neue", "Liberation Sans", Arial, "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.02;
}

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.24em;
  text-transform: uppercase;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 34px;
}

/* ---------- header: the sign bracket ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 3px solid var(--green);
  box-shadow: inset 0 -1px 0 var(--brass-soft);
}

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

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

.brand-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
}

.brand-mark .mark-plate { fill: var(--green); stroke: none; }
.brand-mark .mark-arc { stroke: var(--cream); stroke-width: 2.2; stroke-linecap: round; }
.brand-mark .mark-needle { stroke: var(--oxblood-2); stroke-width: 2.2; stroke-linecap: round; }
.brand-mark .mark-joint { stroke: var(--brass); stroke-width: 2.2; stroke-linecap: round; }

.brand-text { max-width: 22ch; }

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

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
}

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

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  background: var(--oxblood);
  color: var(--cream-2);
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -4px 0 rgba(8, 33, 26, 0.55);
}

.header-call:hover { background: var(--oxblood-2); }

.menu-toggle { display: none; }

/* ---------- hero: the painted identity panel ---------- */

.hero {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--rule-faint);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  gap: 40px 56px;
  align-items: center;
  padding-top: 78px;
  padding-bottom: 82px;
}

.hero-micro { color: var(--oxblood); margin-bottom: 26px; }

.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  max-width: 15ch;
  margin-bottom: 26px;
  letter-spacing: -0.012em;
}

.hero-line {
  max-width: 44ch;
  padding-top: 20px;
  border-top: 2px solid var(--green);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 36px;
}

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

.btn-call {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  padding: 0 28px;
  background: var(--oxblood);
  color: var(--cream-2);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -5px 0 rgba(8, 33, 26, 0.55);
}

.btn-call:hover { background: var(--oxblood-2); }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--brass);
}

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

.hero-mark { position: relative; }

.signplate {
  position: relative;
  padding: 22px;
  background: var(--green);
  border-radius: 26px;
  box-shadow: inset 0 0 0 3px var(--brass-soft), 0 14px 34px rgba(16, 32, 25, 0.16);
}

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

.plate-outer { fill: none; stroke: var(--brass); stroke-width: 2.4; opacity: 0.7; }
.plate-inner { fill: none; stroke: rgba(244, 234, 214, 0.3); stroke-width: 1.6; stroke-dasharray: 10 8; }

.plate-rule path { fill: none; stroke: var(--brass); stroke-width: 3; stroke-linecap: round; opacity: 0.85; }

.plate-gauge .gauge-arc { fill: none; stroke: var(--cream); stroke-width: 3.4; stroke-linecap: round; }
.plate-gauge .gauge-tick { fill: none; stroke: rgba(244, 234, 214, 0.6); stroke-width: 2.4; stroke-linecap: round; }
.plate-gauge .gauge-needle { fill: none; stroke: var(--oxblood-2); stroke-width: 3.4; stroke-linecap: round; }
.plate-gauge .gauge-hub { fill: var(--brass); stroke: none; }

.plate-tile path { fill: none; stroke: rgba(244, 234, 214, 0.42); stroke-width: 2; }

.plate-angle path { fill: none; stroke: var(--brass); stroke-width: 3; stroke-linecap: square; }

.plate-ring path { fill: none; stroke: var(--cream); stroke-width: 2.6; opacity: 0.7; }

.hero-caption { color: var(--mute); margin-top: 14px; text-align: right; }

/* ---------- services: the register ---------- */

.services { background: var(--green); }

.section-head {
  padding: 74px 0 34px;
  border-bottom: 3px solid var(--brass);
}

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

.section-head h2 {
  margin-top: 18px;
  color: var(--cream-2);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 24ch;
}

.register { display: block; }

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

.band-inner {
  display: flex;
  align-items: baseline;
  gap: 16px 44px;
  min-height: 156px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.band-tag {
  flex: none;
  width: 132px;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.band-title {
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  letter-spacing: -0.01em;
}

.band-inner-flip { flex-direction: row-reverse; }
.band-inner-flip .band-tag { text-align: left; }

/* band A — deepest field, largest type: the register's headline entry */
.band-a { background: var(--green-deep); border-bottom-color: transparent; }
.band-a .band-inner { min-height: 220px; padding-top: 56px; padding-bottom: 56px; }
.band-a .band-tag { color: rgba(185, 143, 78, 0.85); }
.band-a .band-title {
  color: var(--cream-2);
  font-size: clamp(2.3rem, 6.2vw, 5rem);
  max-width: 17ch;
}

/* band B — cream enamel field */
.band-b { background: var(--cream-2); }
.band-b .band-tag { color: var(--oxblood); }
.band-b .band-title { color: var(--ink); font-size: clamp(1.9rem, 4.4vw, 3.4rem); }

/* band C — mid green field, mirrored alignment */
.band-c { background: var(--green-3); }
.band-c .band-title { color: var(--cream); font-size: clamp(1.7rem, 3.8vw, 2.9rem); }

/* band D — cream-3 field with a brass cap rule, smallest of the register */
.band-d {
  background: var(--cream-3);
  border-top: 6px solid var(--brass);
  border-bottom: 3px solid var(--green);
}
.band-d .band-tag { color: var(--green-2); }
.band-d .band-title { color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- locality: narrow address plate ---------- */

.locality {
  background: var(--cream);
  border-bottom: 3px solid var(--green);
}

.locality-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 30px;
  padding-top: 46px;
  padding-bottom: 46px;
}

.locality-micro { color: var(--oxblood); flex: none; }

.locality-address {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.locality-rule {
  width: 100%;
  height: 12px;
  margin-top: 6px;
  fill: none;
}

.locality-rule path { stroke: var(--brass); stroke-width: 2; }

/* ---------- contact: the enamel call band ---------- */

.contact {
  position: relative;
  background: var(--green);
  border-top: 6px solid var(--green-deep);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 22px 46px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 76px;
}

.contact-micro { color: var(--brass); }

.contact h2 {
  margin-top: 18px;
  color: var(--cream-2);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  max-width: 20ch;
}

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

/* ---------- footer: sign-out plate ---------- */

.site-footer {
  background: var(--green-deep);
  color: rgba(244, 234, 214, 0.78);
  padding: 48px 0 28px;
  box-shadow: inset 0 4px 0 var(--brass-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule-light);
}

.footer-name {
  color: var(--cream-2);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 8px;
  color: var(--cream-2);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid var(--brass);
}

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

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

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: rgba(244, 234, 214, 0.74);
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-nav a:hover { color: var(--cream-2); }

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

.footer-base p { color: rgba(244, 234, 214, 0.52); font-size: 0.78rem; }

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

.mobile-call { display: none; }

/* ---------- narrow viewports: the register stacks ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }

  .header-inner { gap: 10px; min-height: 62px; }

  .brand { gap: 9px; min-height: 42px; font-size: 0.76rem; }

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

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

  .header-call { display: none; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-left: auto;
    padding: 0 12px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
    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(--ink);
    box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
  }

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

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

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

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

  /* the sign plate is cropped behind the painted identity */
  .hero { overflow: clip; }

  .hero-grid {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero-copy { position: relative; z-index: 1; }

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

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
    max-width: 12ch;
    margin-bottom: 20px;
  }

  .hero-line {
    padding-top: 16px;
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 30ch;
  }

  .hero-actions { gap: 14px; }

  .btn-call {
    width: 100%;
    justify-content: center;
    min-height: 60px;
    padding: 0 20px;
    font-size: 1.05rem;
  }

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

  .hero-mark {
    position: absolute;
    top: -10px;
    right: -44px;
    width: 290px;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
  }

  .signplate { padding: 0; background: none; box-shadow: none; border-radius: 0; }

  .hero-caption { display: none; }

  .section-head { padding: 52px 0 26px; }

  .section-head h2 { margin-top: 14px; font-size: clamp(1.5rem, 6.4vw, 1.95rem); }

  /* the register becomes a continuous vertical run of enamel plates */
  .band-inner,
  .band-inner-flip {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .band-tag { width: auto; }

  .band-a .band-inner { min-height: 0; padding-top: 44px; padding-bottom: 48px; }

  .band-a .band-title { font-size: clamp(2.1rem, 12vw, 3rem); }

  .band-b .band-inner,
  .band-c .band-inner,
  .band-d .band-inner {
    min-height: 151px;
    justify-content: center;
    padding-top: 26px;
    padding-bottom: 30px;
  }

  .band-b .band-title { font-size: clamp(1.7rem, 8.4vw, 2.3rem); }

  .band-c .band-title { font-size: clamp(1.6rem, 7.8vw, 2.15rem); }

  .band-d .band-title { font-size: clamp(1.5rem, 7.2vw, 2rem); }

  .locality-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 204px;
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .locality-address { font-size: clamp(1.12rem, 5.6vw, 1.42rem); }

  .locality-rule { margin-top: 4px; }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .contact h2 {
    margin-top: 14px;
    margin-bottom: 26px;
    font-size: clamp(1.5rem, 6.6vw, 1.95rem);
    max-width: 18ch;
  }

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

  .contact .btn-call { min-height: 62px; }

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

  .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: 112px; }

  .mobile-call {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    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(--oxblood);
    color: var(--cream-2);
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 -5px 0 rgba(8, 33, 26, 0.55), 0 -12px 28px rgba(8, 33, 26, 0.34);
  }
}
