/* =========================================================
   Signature Plumbing & Drain — site styles
   Change brand colors and fonts here; everything else uses them.
   ========================================================= */
:root {
  --red: #D7261E;          /* main brand red (match your logo) */
  --red-hover: #A81B14;
  --red-on-dark: #FF5A4F;  /* lighter red, readable on black */
  --ink: #111111;
  --ink-2: #333333;
  --muted: #555555;
  --line: #E4E4E4;
  --line-soft: #ECECEC;
  --gray: #F2F2F2;
  --gray-bg: #F5F5F5;
  --dark: #1A1A1A;
  --on-dark: #CFCFCF;
  --on-dark-muted: #8C8C8C;
  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --radius: 18px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
h1, h2, h3 { margin: 0; }
h2 {
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.red { color: var(--red); font-weight: 700; }
.red-on-dark { color: var(--red-on-dark); }
.muted { color: var(--muted); font-size: 17px; line-height: 1.6; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #333333; color: #FFFFFF; }
.btn-red { background: var(--red); color: #FFFFFF; }
.btn-red:hover { background: var(--red-hover); color: #FFFFFF; }
.btn-outline-light { border: 1px solid #5A5A5A; color: #FFFFFF; }
.btn-outline-light:hover { border-color: #FFFFFF; color: #FFFFFF; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.link-row { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line-soft); background: #FFFFFF; }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-bar { width: 6px; height: 36px; border-radius: 3px; background: var(--red); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.logo-sub { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; }
.hero-eyebrow { margin: 0 0 14px; font-size: 17px; font-weight: 500; }
.hero-headline { position: relative; }
.hero-headline h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 11.6vw, 172px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.tape {
  position: absolute;
  left: -14%;
  width: 128%;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.tape span { padding-left: 24px; }
.tape-back {
  z-index: 2;
  top: 50%;
  height: clamp(26px, 3vw, 44px);
  background: var(--ink);
  transform: rotate(3deg);
  font-size: clamp(10px, 1vw, 14px);
}
.tape-front {
  z-index: 3;
  top: 44%;
  height: clamp(30px, 3.4vw, 50px);
  background: var(--red);
  transform: rotate(-5deg);
  font-size: clamp(11px, 1.1vw, 15px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.hero-row {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero-lede { margin: 0; max-width: 440px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.phone-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 320px;
  max-width: 100%;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
  text-decoration: none;
}
.phone-card:hover { color: #FFFFFF; background: #222222; }
.phone-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #BDBDBD;
}
.phone-card-top svg { color: #FFFFFF; flex: none; }
.phone-card-number { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; }

/* Proof cards */
.proof { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.proof-main { flex: 2 1 520px; display: flex; flex-direction: column; gap: 16px; }
.proof-pair { display: flex; flex-wrap: wrap; gap: 16px; }
.card { border-radius: var(--radius); border: 1px solid var(--line); }
.card-small { font-size: 13px; color: var(--muted); }
.card-license { flex: 1 1 220px; overflow: hidden; display: flex; flex-direction: column; }
.card-license-top {
  flex: 1;
  background: var(--ink);
  color: #FFFFFF;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-license-top span { font-size: 13px; line-height: 1.4; color: var(--on-dark); }
.card-license-number {
  background: var(--red);
  color: #FFFFFF;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.card-bonded {
  flex: 1 1 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--red);
}
.card-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.card-experience { padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.card-huge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.proof-photo { flex: 1 1 260px; min-width: 0; min-height: 340px; border-radius: var(--radius); }
.proof-figure { position: relative; margin: 0; overflow: hidden; background: var(--gray); }
.proof-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof-figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* Photo placeholders: swap for <img> tags once you have photos */
.photo-placeholder {
  background: repeating-linear-gradient(135deg, #E9E9E9 0 12px, #F3F3F3 12px 24px);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.photo-placeholder span {
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Black band ---------- */
.band-black { background: var(--ink); color: #FFFFFF; padding: clamp(64px, 8vw, 104px) 0; }
.band-black-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.badges { flex: 0 1 260px; display: flex; flex-direction: column; gap: 18px; }
.badges li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--on-dark); }
.badge {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: #262626;
  border: 1px solid #3A3A3A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.badge-red { background: var(--red); border-color: var(--red); }
.band-black-copy { flex: 1 1 480px; max-width: 640px; }
.band-black-copy h2 { margin-bottom: 20px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.band-black-copy p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; color: var(--on-dark); }
.band-black-copy .red-on-dark { font-weight: 600; }
.band-black-copy p.white { color: #FFFFFF; margin-bottom: 0; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-gray { background: var(--gray-bg); }
.section-tight-top { padding-top: 0; }
.section-intro { max-width: 640px; margin: 0 auto; }
.section-intro h2 { margin-bottom: 16px; }
.section-intro .muted { margin: 0 0 18px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.section-sub { margin: 14px 0 36px; }

/* What we build tiles */
.tiles {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Process accordion ---------- */
.process-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.process-intro { flex: 1 1 360px; }
.process-intro h2 { margin-bottom: 18px; }
.process-intro .muted { margin: 0 0 24px; max-width: 460px; }
.steps {
  flex: 1.3 1 460px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.steps details { border-bottom: 1px solid var(--line-soft); }
.steps details:last-child { border-bottom: 0; }
.steps summary {
  list-style: none;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
}
.steps summary::-webkit-details-marker { display: none; }
.steps summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.steps details[open] summary::after { content: "\2212"; }
.step-num { width: 22px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--red); }
.step-title { flex: 1; font-size: 16px; font-weight: 600; }
.steps details p { margin: 0; padding: 0 22px 20px 60px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.project-card { display: flex; flex-direction: column; gap: 14px; }
.project-card-featured { grid-column: span 2; }
.project-photo {
  width: 100%;
  height: clamp(240px, 24vw, 320px);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--gray);
}
.tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.project-card h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.project-card p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.quote {
  margin: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--red);
}
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink); }
.quote figcaption { font-size: 14px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); }

/* ---------- Dark split band ---------- */
.band-split { background: var(--dark); color: #FFFFFF; padding: clamp(80px, 10vw, 128px) 0; }
.band-split h2,
.band-split-right {
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.band-split-right { margin: clamp(40px, 6vw, 80px) 0 0; text-align: right; }

/* ---------- Service area tabs ---------- */
.pin { color: var(--red); }
.zones-title { margin: 12px 0 28px; }
.zone-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.zone-tabs button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  background: var(--gray);
  color: var(--ink);
}
.zone-tabs button[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.zone-panel {
  margin: 36px auto 0;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  text-align: left;
}
.zone-panel[hidden] { display: none; }
.zone-panel li { font-size: 16px; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }

/* ---------- Equipment ---------- */
.equipment-title { margin-bottom: 32px; text-align: center; font-size: clamp(24px, 2.6vw, 34px); }
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brands li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #FFFFFF; padding: clamp(72px, 9vw, 104px) 0 32px; overflow: hidden; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.footer-cta h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.025em; }
.footer-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cols {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #2E2E2E;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #E6E6E6; }
.footer-cols a { color: #E6E6E6; text-decoration: none; }
.footer-cols a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-head { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--on-dark-muted); }
.wordmark {
  margin: 72px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 16.5vw, 232px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.footer-bottom {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--on-dark-muted);
}

/* ---------- Tablets ---------- */
@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card-featured { grid-column: auto; }
  .main-nav { display: none; }
  .header-phone { display: none; }
  .hero { padding-top: 36px; }
  /* On phones the tape sits under the headline so "PLUMBING." stays readable */
  .hero-headline { padding-bottom: 64px; }
  .tape-front { top: auto; bottom: 18px; }
  .tape-back { top: auto; bottom: 14px; }
  .phone-card { width: 100%; }
  .proof-photo { min-height: 240px; }
  .band-split-right { text-align: left; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands li { font-size: 17px; padding: 22px 12px; }
}
