/* BODMIN PLUMBING SERVICES — "modern utility service manual" concept.
   Charcoal ink, warm paper, controlled safety yellow index marks and a single
   turquoise drafting line. No frameworks, no webfonts, no raster images. */

:root {
  --ink: #1b1d1e;
  --ink-soft: #26292b;
  --ink-line: #3d4245;
  --paper: #f7f4ed;
  --paper-deep: #ece6d9;
  --rule: #cdc6b6;
  --muted: #5c5f60;
  --yellow: #f5c318;
  --turq: #26a9a5;
  --bar-h: 58px;
  --wrap: 1180px;
  --font-display: "Arial Narrow", "Liberation Sans Narrow", "DejaVu Sans Condensed",
    "Helvetica Neue", Impact, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

h1, h2, h3 { margin: 0; font-weight: 700; }

p { margin: 0; }

ul, ol, dl, dd, figure, figcaption { margin: 0; padding: 0; }

li { list-style: none; }

a { color: inherit; }

svg { display: block; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

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

/* ---------- shared label type ---------- */

.micro {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- fixed left edge index (desktop canvas) ---------- */

.edge-index {
  display: none;
}

@media (min-width: 1180px) {
  .edge-index {
    position: fixed;
    top: 50%;
    left: 26px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 5;
    pointer-events: none;
  }
  .edge-tick {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--muted);
    background: rgba(245, 195, 24, .85);
    color: var(--ink);
    padding: 2px 5px;
  }
  .edge-rule {
    width: 1px;
    height: 26px;
    background: var(--rule);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-right: auto;
  color: var(--paper);
  text-decoration: none;
}

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

.bm-frame { stroke: var(--yellow); stroke-width: 1.6; fill: none; opacity: .55; }
.bm-pipe { stroke: var(--paper); stroke-width: 2.6; fill: none; }
.bm-valve { fill: var(--turq); }
.bm-joint { fill: var(--yellow); }

.brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
  line-height: 1.1;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

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

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  border: 1px solid var(--yellow);
}

.header-call:hover { background: var(--paper); border-color: var(--paper); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-bars {
  width: 18px;
  height: 2px;
  background: var(--paper);
  box-shadow: 0 -6px 0 var(--paper), 0 6px 0 var(--paper);
}

/* ---------- hero: the service-manual cover ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 0 0 52px;
  border-bottom: 1px solid var(--ink-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 46px minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: start;
  padding-top: 58px;
}

.hero-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-index span {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.hero-index span:not(.hero-index-rule) {
  background: rgba(245, 195, 24, .9);
  color: var(--ink);
  padding: 2px 5px;
}

.hero-index-rule {
  width: 1px;
  height: 30px;
  background: var(--ink-line);
}

.hero-micro { color: var(--yellow); }

.hero h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 6.1vw, 88px);
  line-height: .94;
  letter-spacing: -.005em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-key {
  margin-top: 20px;
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.5;
  color: #ded9cd;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--yellow);
}

.btn-call-label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  border-right: 1px solid rgba(27, 29, 30, .3);
  padding-right: 10px;
}

.btn-call-number {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .03em;
  font-weight: 700;
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--ink-line);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

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

.hero-plate {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 20px 20px 12px;
}

.plate { width: 100%; height: auto; }

.plate-grid path { stroke: #ddd6c6; stroke-width: 1; fill: none; }
.plate-center path { stroke: var(--turq); stroke-width: 1; stroke-dasharray: 7 5; fill: none; opacity: .8; }
.plate-pipe path { stroke: var(--ink); stroke-width: 7; fill: none; stroke-linecap: square; }
.plate-flange path { stroke: var(--ink); stroke-width: 3; fill: none; }
.plate-valve path { fill: var(--turq); }
.plate-joint circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.plate-tick path { stroke: var(--rule); stroke-width: 2; fill: none; }

.reg-mark {
  position: absolute;
  width: 15px;
  height: 15px;
}

.reg-mark::before,
.reg-mark::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.reg-mark::before { left: 0; top: 7px; width: 15px; height: 1px; }
.reg-mark::after { top: 0; left: 7px; height: 15px; width: 1px; }

.reg-mark--tl { top: 7px; left: 7px; }
.reg-mark--tr { top: 7px; right: 7px; }
.reg-mark--bl { bottom: 7px; left: 7px; }
.reg-mark--br { bottom: 7px; right: 7px; }

.plate-tab {
  position: absolute;
  top: 20px;
  left: -1px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 3px 6px;
}

.hero-plate figcaption {
  margin-top: 10px;
  border-top: 1px solid var(--rule);
  padding-top: 8px;
}

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

.services {
  background: var(--paper);
  padding: 62px 0 66px;
}

.section-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}

.section-head h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.zone {
  padding: 26px 24px 34px;
  border-right: 1px solid var(--rule);
}

.zone:first-child { padding-left: 0; }
.zone:last-child { border-right: 0; padding-right: 0; }

.zone-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

.zone-no {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .1em;
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 5px;
}

.zone-head h3 {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: .01em;
}

.zone-labels {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.zone-labels li {
  position: relative;
  padding-left: 15px;
  font-size: 16px;
  line-height: 1.35;
}

.zone-labels li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 7px;
  height: 2px;
  background: var(--turq);
}

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

.address {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 46px 0;
}

.address-inner {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 26px 40px;
  align-items: center;
}

.address-id h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.address-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  line-height: 1.45;
  border-left: 3px solid var(--turq);
  padding-left: 18px;
}

.address-pin svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.6;
}

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

.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 58px 0 62px;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px 40px;
}

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

.contact-main h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.contact-details {
  margin-top: 24px;
  border-top: 1px solid var(--ink-line);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
}

.detail { display: flex; align-items: baseline; gap: 12px; }

.detail dt {
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.detail dd {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .03em;
}

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

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

.site-footer {
  background: var(--ink-soft);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding-top: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-line);
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--paper);
}

.footer-phone:hover { color: var(--yellow); }

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

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: #cfcabd;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

.footer-base p {
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 16px 0 18px;
}

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

.mobile-call { display: none; }

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

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

  .wrap { padding: 0 18px; }

  .site-header { position: sticky; }

  .header-inner { min-height: 56px; gap: 12px; }

  .brand-text { font-size: 15px; }

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

  .header-call { display: none; }

  .menu-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid var(--ink-line);
    border-bottom: 3px solid var(--yellow);
    padding: 8px 18px 12px;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--ink-line);
  }

  .hero { padding-bottom: 34px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 26px;
  }

  .hero-index {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .hero-index-rule { width: 22px; height: 1px; }

  .hero h1 { font-size: 40px; line-height: 1; margin-top: 10px; }

  .hero-key { font-size: 16px; margin-top: 14px; max-width: none; }

  .hero-actions { margin-top: 20px; gap: 10px; }

  .btn-call { min-height: 52px; padding: 0 18px; }

  .btn-quiet { min-height: 48px; padding: 0 18px; flex: 1 1 auto; justify-content: center; }

  .hero-actions .btn-call { flex: 1 1 100%; justify-content: center; }

  .hero-plate { padding: 14px 14px 10px; }

  .services { padding: 52px 0 58px; }

  .section-head h2 { font-size: 32px; }

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

  .zone {
    padding: 30px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .zone:last-child { border-bottom: 0; padding-bottom: 10px; }

  .zone-labels { margin-top: 16px; gap: 10px 18px; }

  .zone-labels li { font-size: 17px; line-height: 1.45; }

  .address { padding: 48px 0; }

  .address-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .address-line { font-size: 18px; line-height: 1.5; padding-left: 14px; }

  .contact { padding: 46px 0 34px; }

  .contact-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .contact-main h2 { font-size: 34px; }

  .contact-details { margin-top: 20px; padding-top: 14px; }

  .contact-action { width: 100%; }

  .contact-action .btn-call { width: 100%; justify-content: center; }

  .site-footer { padding-bottom: 132px; }

  .footer-inner { padding-top: 18px; padding-bottom: 14px; }

  .mobile-call {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    min-height: var(--bar-h);
    background: var(--yellow);
    border-top: 2px solid var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }

  .mobile-call.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .mobile-call a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: var(--bar-h);
    color: var(--ink);
    text-decoration: none;
  }

  .mobile-call-label {
    font-size: 11px;
    letter-spacing: .17em;
    text-transform: uppercase;
    font-weight: 700;
  }

  .mobile-call-number {
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: .03em;
    font-weight: 700;
  }
}
