/* SUPREME DRAINAGE&PLUMBING LTD — demo stylesheet (Wave 3, V0.4).
   Art direction: a subsurface cutaway. The page is divided into an above-ground
   surface field (chalk, heavy uppercase display type) and a broad below-ground
   drainage field (near-black earth carrying concentric drain apertures and cropped
   channel paths drawn as texture only). A deliberately narrow pale "concrete" band
   interrupts the dark ground for the bounded plumbing repair set, followed by a
   compact exact-context band and a decisive surface close at the contact block.
   Palette: chalk, near-black earth, signal lime, concrete grey.
   Hierarchy comes from field proportion, type scale and hairline strata rules —
   there are no cards, no ledger and no technical schematic. */

:root {
  --chalk: #f3f2ec;
  --chalk-2: #faf9f5;
  --ink: #14181a;
  --ink-soft: #3a4145;
  --earth: #0f1412;
  --earth-2: #171e19;
  --earth-3: #0a0e0c;
  --signal: #c9ee4d;
  --signal-deep: #a8c92f;
  --concrete: #dadfda;
  --concrete-line: #aab2ab;
  --mute: #6d7671;
  --rule: rgba(20, 24, 26, 0.16);
  --rule-faint: rgba(20, 24, 26, 0.07);
  --rule-dark: rgba(243, 242, 236, 0.16);
  --display: "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(--chalk);
  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: 800;
  text-transform: uppercase;
  letter-spacing: -0.016em;
  line-height: 0.98;
}

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: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--chalk);
  border-bottom: 1px solid var(--rule);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 1.15;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
}

.brand-mark .mark-ring-2 { stroke: var(--signal-deep); }
.brand-mark .mark-core { fill: var(--signal-deep); stroke: none; }

.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: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

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

.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--chalk-2);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -4px 0 var(--signal);
}

.header-call:hover { background: #22292c; }

.menu-toggle { display: none; }

/* ---------- hero: above-ground identity ---------- */

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

.hero-surface { padding: 78px 0 66px; }

.hero-micro { color: var(--signal-deep); margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 3.9rem);
  max-width: 19ch;
  margin-bottom: 24px;
}

.hero-line {
  max-width: 46ch;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 34px;
}

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

.btn-call {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--chalk-2);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -5px 0 var(--signal);
}

.btn-call:hover { background: #22292c; }

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

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

/* ---------- hero: below-ground cutaway band ---------- */

.cutaway {
  position: relative;
  background: var(--earth);
  overflow: clip;
}

.cutaway-svg {
  width: 100%;
  height: 320px;
}

.cutaway-caption {
  color: rgba(243, 242, 236, 0.42);
  padding-top: 2px;
  padding-bottom: 18px;
}

.layer-a { fill: rgba(243, 242, 236, 0.022); }
.layer-b { fill: rgba(243, 242, 236, 0.034); }
.layer-c { fill: rgba(243, 242, 236, 0.016); }
.layer-d { fill: rgba(0, 0, 0, 0.28); }

.strata path {
  fill: none;
  stroke: rgba(243, 242, 236, 0.13);
  stroke-width: 2;
}

.strata .dashed { stroke-dasharray: 14 10; stroke: rgba(243, 242, 236, 0.09); }

.surface path { fill: none; stroke: rgba(201, 238, 77, 0.55); stroke-width: 3; }
.surface path + path { stroke: rgba(243, 242, 236, 0.22); stroke-width: 2; }

.riser path { fill: none; stroke: rgba(243, 242, 236, 0.24); stroke-width: 2; }

.channels path { fill: none; }

.channel-signal {
  stroke: rgba(168, 201, 47, 0.6);
  stroke-width: 3;
  stroke-dasharray: 20 14;
}

.channel-quiet { stroke: rgba(243, 242, 236, 0.16); stroke-width: 2; }

.channel-crop {
  stroke: rgba(243, 242, 236, 0.12);
  stroke-width: 2;
  stroke-dasharray: 10 12;
}

.ap .ring-outer,
.ap .ring-mid,
.ap .ring-inner { fill: none; }

.ap .ring-outer { stroke: var(--signal); stroke-width: 2.6; opacity: 0.9; }
.ap .ring-mid { stroke: rgba(243, 242, 236, 0.3); stroke-width: 2.4; }
.ap .ring-inner { stroke: rgba(201, 238, 77, 0.42); stroke-width: 2; }
.ap .core { fill: #05080600; stroke: rgba(201, 238, 77, 0.85); stroke-width: 3; }

.ap-a .core { fill: rgba(201, 238, 77, 0.12); }
.ap-b .core { fill: rgba(243, 242, 236, 0.08); }
.ap-c .core { fill: rgba(201, 238, 77, 0.1); }

.section-marks path { fill: none; stroke: rgba(243, 242, 236, 0.2); stroke-width: 2; }

/* ---------- services: section head ---------- */

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

.section-head {
  padding: 66px 0 30px;
}

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

.section-head h2 {
  margin-top: 16px;
  color: var(--chalk-2);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  max-width: 22ch;
}

/* ---------- large drainage field ---------- */

.field-drainage {
  position: relative;
  background: var(--earth);
  border-top: 3px solid var(--signal);
  padding: 46px 0 52px;
  overflow: clip;
}

.strata-motif {
  position: absolute;
  top: 0;
  right: -60px;
  width: 700px;
  height: 420px;
  opacity: 0.5;
  pointer-events: none;
}

.motif-lines path { fill: none; stroke: rgba(243, 242, 236, 0.08); stroke-width: 2; }
.motif-rings circle { fill: none; stroke: rgba(201, 238, 77, 0.14); stroke-width: 2; }
.motif-channels path {
  fill: none;
  stroke: rgba(243, 242, 236, 0.08);
  stroke-width: 2;
  stroke-dasharray: 16 12;
}
.motif-channels .crop { stroke-dasharray: 8 14; }

.field-inner { position: relative; z-index: 1; }

.field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(243, 242, 236, 0.3);
}

.field-title {
  color: var(--chalk-2);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  letter-spacing: -0.03em;
}

.field-note {
  color: rgba(243, 242, 236, 0.6);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.drainage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 34px;
}

.drainage-list li {
  display: flex;
  align-items: center;
  min-height: 66px;
  color: var(--chalk-2);
  font-size: 1.16rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(243, 242, 236, 0.14);
}

.drainage-list li:nth-child(-n+3) { border-top: 0; }

/* ---------- narrow bounded plumbing strip ---------- */

.strip-plumbing {
  background: var(--concrete);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 26px 0 28px;
}

.strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: 8px 34px;
  align-items: start;
}

.strip-title {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
}

.strip-note {
  margin-top: 8px;
  color: #4d554f;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plumbing-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.plumbing-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--concrete-line);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.plumbing-list li:last-child { border-right: 0; padding-right: 0; margin-right: 0; }

.plumbing-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--ink);
}

/* ---------- compact exact-context band ---------- */

.band-context {
  background: var(--earth-2);
  padding: 24px 0 28px;
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
}

.band-title {
  color: var(--signal);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.context-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.context-list li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid rgba(243, 242, 236, 0.2);
  color: var(--chalk-2);
  font-size: 0.99rem;
  font-weight: 600;
}

.context-list li:last-child { border-right: 0; padding-right: 0; margin-right: 0; }

/* ---------- contact: surface close ---------- */

.contact {
  position: relative;
  background: var(--chalk-2);
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(
    to right,
    var(--signal-deep) 0 2px,
    transparent 2px 24px
  );
  opacity: 0.85;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 12px 44px;
  align-items: center;
  padding-top: 62px;
  padding-bottom: 66px;
}

.contact-lede .micro { color: var(--signal-deep); }

.contact h2 {
  margin: 16px 0 16px;
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  max-width: 24ch;
}

.contact-note { color: var(--ink-soft); font-size: 1rem; max-width: 38ch; }

.contact-loc {
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 3px solid var(--signal-deep);
  padding-left: 12px;
}

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

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

.site-footer {
  background: var(--earth-3);
  color: rgba(243, 242, 236, 0.78);
  padding: 44px 0 26px;
}

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

.footer-name {
  color: var(--chalk-2);
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 6px;
  color: var(--chalk-2);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid var(--signal-deep);
}

.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: rgba(243, 242, 236, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
}

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

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

.footer-base p { color: rgba(243, 242, 236, 0.5); font-size: 0.78rem; }

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

.mobile-call { display: none; }

/* ---------- narrow viewports: vertical depth sequence ---------- */

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

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

  .brand { gap: 8px; min-height: 40px; font-size: 0.72rem; letter-spacing: -0.008em; }

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

  .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(--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(--chalk-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 20px 14px; }

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

  .hero-surface { padding: 36px 0 30px; }

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

  .hero h1 { font-size: clamp(1.62rem, 7.1vw, 2.2rem); max-width: none; margin-bottom: 18px; }

  .hero-line { padding-top: 15px; font-size: 0.95rem; margin-bottom: 24px; }

  .hero-actions { gap: 12px; }

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

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

  .cutaway-svg { height: 214px; }

  .cutaway-caption { padding-bottom: 14px; }

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

  .section-head h2 { margin-top: 12px; font-size: clamp(1.42rem, 6vw, 1.85rem); max-width: none; }

  .strata-motif { right: -180px; width: 560px; height: 336px; opacity: 0.4; }

  .field-drainage { padding: 34px 0 46px; }

  .field-head { padding-bottom: 18px; gap: 6px 16px; }

  .field-title { font-size: clamp(2.1rem, 11vw, 2.9rem); }

  /* drainage labels stay together as one field, in two compact strata rows */
  .drainage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }

  .drainage-list li {
    min-height: 62px;
    font-size: 0.97rem;
    border-bottom: 1px solid rgba(243, 242, 236, 0.14);
  }

  .strip-plumbing { padding: 24px 0 26px; }

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

  .strip-title { font-size: 1.12rem; }

  .strip-note { margin-top: 6px; }

  .plumbing-list { flex-direction: column; align-items: flex-start; gap: 0; }

  .plumbing-list li {
    width: 100%;
    min-height: 38px;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 24, 26, 0.12);
    font-size: 0.96rem;
  }

  .plumbing-list li:last-child { border-bottom: 0; }

  .band-context { padding: 22px 0 28px; }

  .band-inner { gap: 8px 18px; }

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

  .context-list li { min-height: 34px; font-size: 0.94rem; padding-right: 16px; margin-right: 16px; }

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

  .contact h2 { margin: 12px 0 12px; font-size: clamp(1.38rem, 6vw, 1.78rem); max-width: none; }

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

  .contact-loc { margin-top: 12px; font-size: 0.74rem; }

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

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

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

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

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

  .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(--ink);
    color: var(--chalk-2);
    font-family: var(--display);
    font-size: 0.98rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 -5px 0 var(--signal), 0 -10px 26px rgba(10, 14, 12, 0.42);
  }
}
