/* =====================================================
   BEST PLUMBING — style.css
   Design language: cast iron & copper (the plumber's own materials)
   Display: Barlow Condensed (utilitarian signage)
   Body:    Barlow
   Signature: a copper pipe run along the left edge that
   fills as you scroll — the only animation on the page.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500;600;700&display=swap');

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ──────────────────────────────────────── */
:root {
  /* Palette: cast iron, galvanized steel, copper */
  --iron:      #171B1F;   /* near-black cast iron */
  --iron-2:    #202A33;   /* dark slate-blue steel */
  --steel:     #ECEDEA;   /* galvanized light gray  */
  --steel-2:   #E2E4DF;   /* deeper galvanized      */
  --white:     #FFFFFF;
  --copper:    #B87333;   /* the metal itself       */
  --copper-dk: #8A5119;   /* copper for text on light bg (contrast-safe) */
  --copper-lt: #DDA163;   /* copper for text on dark bg  */
  --muted:     #40474E;
  --line:      rgba(23, 27, 31, 0.16);
  --line-dark: rgba(255, 255, 255, 0.14);

  --fd: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --fb: 'Barlow', system-ui, sans-serif;

  --r: 6px;                 /* one radius everywhere */
  --s1: 0 2px 6px rgba(23, 27, 31, 0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.25s;

  --wrap: 1160px;
  --hh: 76px;
}

/* ── Base ────────────────────────────────────────── */
html { scroll-behavior: smooth; }
section { scroll-margin-top: var(--hh); }
body {
  font-family: var(--fb);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--iron);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Section headers: title bolted onto a pipe run ── */
.sec-hd {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.9rem;
}
.sec-hd::before {
  content: '';
  width: 34px;
  height: 4px;
  background: var(--copper);
  flex-shrink: 0;
}
.sec-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--iron);
}
.sec-hd::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--line);
  margin-left: 0.5rem;
}
.sec-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 3rem;
}

/* Dark-section variant */
.sec-hd-dark .sec-title { color: var(--white); }
.sec-hd-dark::after     { background: var(--line-dark); }
.process .sec-desc      { color: rgba(255,255,255,0.8); }

/* ══════════════════════════════════════════════════
   PIPE RAIL — scroll gauge (signature element)
══════════════════════════════════════════════════ */
.pipe-rail {
  display: none;
  position: fixed;
  left: 14px;
  top: calc(var(--hh) + 18px);
  bottom: 18px;
  width: 4px;
  background: rgba(23, 27, 31, 0.12);
  border-radius: 2px;
  z-index: 800;
}
.pipe-rail-fill {
  position: absolute;
  inset: 0;
  background: var(--copper);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
/* the union nut travelling at the fill front */
.pipe-rail-nut {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 12px;
  height: 18px;
  transform: translateX(-50%);
  background: var(--copper);
  border: 2px solid var(--steel);
  border-radius: 3px;
  box-shadow: var(--s1);
}
.pipe-rail-nut::before,
.pipe-rail-nut::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1.5px;
  background: rgba(23, 27, 31, 0.35);
}
.pipe-rail-nut::before { top: 4.5px; }
.pipe-rail-nut::after  { bottom: 4.5px; }

@media (min-width: 1024px) {
  .pipe-rail { display: block; }
}

/* ══════════════════════════════════════════════════
   HEADER — solid, like the side of the truck
══════════════════════════════════════════════════ */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--hh);
  z-index: 900;
  background: var(--iron);
  border-bottom: 2px solid var(--copper);
}

.hd-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.logo-mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--copper);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; fill: var(--copper); }
.logo-txt  { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: var(--fd);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}
.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}

/* Nav */
.hd-nav { display: flex; align-items: center; gap: 2.2rem; }
.nav-a {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-a:hover { color: var(--copper-lt); border-color: var(--copper); }

/* Header phone: label + number, like on the truck door */
.hd-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  flex-shrink: 0;
}
.hd-phone-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hd-phone-num {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper-lt);
  transition: color var(--dur) var(--ease);
}
.hd-phone:hover .hd-phone-num { color: var(--white); }

/* Hamburger */
.hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.hbg span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.hbg.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mob-nav {
  display: none;
  position: absolute;
  top: var(--hh);
  left: 0;
  right: 0;
  background: var(--iron);
  border-bottom: 2px solid var(--copper);
  padding: 0.5rem 2rem 1.5rem;
  flex-direction: column;
}
.mob-nav.open { display: flex; }
.mob-nav .nav-a {
  font-size: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.mob-call {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  text-align: center;
  background: var(--copper);
  color: var(--iron);
  border-radius: var(--r);
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--iron);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(23, 27, 31, 0.96) 0%,
    rgba(23, 27, 31, 0.82) 48%,
    rgba(23, 27, 31, 0.35) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--hh) + 4.5rem) 2rem 8rem;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-lt);
  margin-bottom: 1.25rem;
}
.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--copper);
  vertical-align: middle;
  margin-right: 0.75rem;
}

.hero-h1 {
  font-family: var(--fd);
  font-size: clamp(3.1rem, 8vw, 5.8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}
.hero-h1 em { font-style: normal; color: var(--copper-lt); }

.hero-sub {
  font-size: 1.16rem;
  color: rgba(255,255,255,0.87);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.75rem;
}

/* The phone IS the CTA — set like the number on a van door */
.hero-phone {
  display: inline-flex;
  flex-direction: column;
  border-left: 4px solid var(--copper);
  padding: 0.35rem 0 0.35rem 1.25rem;
  transition: border-color var(--dur) var(--ease);
}
.hero-phone-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
}
.hero-phone-num {
  font-family: var(--fd);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}
.hero-phone:hover { border-color: var(--copper-lt); }
.hero-phone:hover .hero-phone-num { color: var(--copper-lt); }

.hero-more {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hero-more:hover { color: var(--copper-lt); border-color: var(--copper); }

/* License line: the one trust claim that can be verified */
.hero-lic {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line-dark);
  background: rgba(23, 27, 31, 0.85);
  padding: 0.85rem 2rem;
  z-index: 1;
}
.hero-lic-in {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
}

/* ══════════════════════════════════════════════════
   SERVICES — spec-sheet cards with schematic fittings
══════════════════════════════════════════════════ */
.services { padding: 5.5rem 0 6rem; background: var(--steel); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.svc-card:hover {
  border-color: var(--copper);
  box-shadow: var(--s1);
}

.svc-img {
  height: 210px;
  background: center / cover no-repeat var(--iron-2);
  border-bottom: 1px solid var(--line);
  filter: saturate(0.85);
  transition: filter var(--dur) var(--ease);
}
.svc-card:hover .svc-img { filter: saturate(1); }

.svc-body {
  position: relative;
  padding: 1.75rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-title {
  font-family: var(--fd);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
  color: var(--iron);
}
.svc-text {
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.svc-note {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--copper-dk);
}

/* ══════════════════════════════════════════════════
   PROCESS — the one honest numbered sequence
══════════════════════════════════════════════════ */
.process { background: var(--iron-2); padding: 5.5rem 0 6rem; color: var(--white); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 1.25rem;
  border-top: 2px solid var(--line-dark);
}
/* copper segment marks how far along the pipe this step sits */
.step::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  height: 2px;
  background: var(--copper);
}
.step:nth-child(1)::before { width: 33%; }
.step:nth-child(2)::before { width: 66%; }
.step:nth-child(3)::before { width: 100%; }

.step-num {
  font-family: var(--fd);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--copper-lt);
  display: block;
  margin-bottom: 0.6rem;
}
.step-title {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.step-text {
  font-size: 1.06rem;
  color: rgba(255,255,255,0.84);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════ */
.about { background: var(--steel); padding: 5.5rem 0 6rem; }

.about-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.about-lede {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--iron);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

/* Facts as a spec table, not a checklist of vows */
.about-facts { display: flex; flex-direction: column; }
.fact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact dt {
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--copper-dk);
  padding-top: 0.1rem;
}
.fact dd { font-size: 1.05rem; color: var(--muted); line-height: 1.65; }

/* Emergency card */
.emrg-card {
  background: var(--iron);
  border-radius: var(--r);
  border-top: 4px solid var(--copper);
  padding: 2.5rem 2.25rem;
  color: var(--white);
  position: sticky;
  top: calc(var(--hh) + 1.5rem);
}
.emrg-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-lt);
  margin-bottom: 1rem;
}
.emrg-title {
  font-family: var(--fd);
  font-size: 2.1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.emrg-text {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.emrg-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 1rem;
  background: var(--copper);
  border-radius: var(--r);
  color: var(--iron);
  text-align: center;
  transition: background var(--dur) var(--ease);
}
.emrg-btn:hover { background: var(--copper-lt); }
.emrg-btn-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.15rem;
  opacity: 0.85;
}
.emrg-btn-num {
  font-family: var(--fd);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.05;
}

/* ══════════════════════════════════════════════════
   CONTACTS — one loud channel, the rest a ledger
══════════════════════════════════════════════════ */
.contacts { background: var(--steel-2); padding: 5.5rem 0 6rem; }

.con-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.con-call-lbl {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-dk);
  margin-bottom: 0.4rem;
}
.con-call-num {
  display: inline-block;
  font-family: var(--fd);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--iron);
  border-bottom: 4px solid var(--copper);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
  transition: color var(--dur) var(--ease);
}
.con-call-num:hover { color: var(--copper-dk); }
.con-call-note { font-size: 1rem; color: var(--muted); max-width: 340px; }

.con-ledger { display: flex; flex-direction: column; }
.con-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(23, 27, 31, 0.18);
}
.con-row:last-child { border-bottom: 1px solid rgba(23, 27, 31, 0.18); }
.con-row dt {
  font-family: var(--fd);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--copper-dk);
  padding-top: 0.1rem;
}
.con-row dd { font-size: 1.05rem; color: var(--muted); line-height: 1.65; }
.con-row dd a {
  color: var(--iron);
  font-weight: 600;
  border-bottom: 1px solid var(--copper);
  transition: color var(--dur) var(--ease);
}
.con-row dd a:hover { color: var(--copper-dk); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--iron);
  border-top: 2px solid var(--copper);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.68);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 2rem;
}

.foot-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.foot-mark {
  width: 32px;
  height: 32px;
  border: 2px solid var(--copper);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.foot-mark svg { width: 16px; height: 16px; fill: var(--copper); }
.foot-brand-name {
  font-family: var(--fd);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}
.foot-desc { font-size: 1.02rem; line-height: 1.7; }

.foot-col-head {
  font-family: var(--fd);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.foot-links { display: flex; flex-direction: column; gap: 0.55rem; }
.foot-link  { font-size: 0.98rem; transition: color var(--dur) var(--ease); }
.foot-link:hover { color: var(--copper-lt); }

.foot-btm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-lic { color: rgba(255,255,255,0.35); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .svc-grid   { grid-template-columns: 1fr; max-width: 640px; }
  .about-inner{ grid-template-columns: 1fr; gap: 3rem; }
  .emrg-card  { position: static; }
  .steps      { gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --hh: 64px; }

  .hd-nav, .hd-phone { display: none; }
  .hbg { display: flex; }

  .hero { min-height: auto; }
  .hero-inner { padding: calc(var(--hh) + 3.5rem) 1.25rem 7.5rem; }
  .hero-lic-in { flex-direction: column; gap: 0.25rem; }

  .steps { grid-template-columns: 1fr; }
  .step::before { width: 100% !important; opacity: 0.85; }

  .con-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .foot-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot-btm { flex-direction: column; text-align: center; }

  .wrap { padding: 0 1.25rem; }
  .hd-inner, .hero-lic { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 480px) {
  .svc-body { padding: 1.5rem 1.25rem 1.25rem; }
  .fact, .con-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
