/* ==========================================================================
   Dean Plumbing & Repair — client brand system
   Derived (not sourced) per client-demo-site §1's fallback clause: no
   review text, no business photos, no existing website to extract from.
   Seeded by: the trade itself (pipe, fittings, brass, gauges), the hero
   photo's own tones (navy workwear, cool tool-handle blue, white fixture,
   dark worktop, a small red fabric tag), and the one genuinely repeated
   real fact — 30+ years in service (MapQuest). See README for full sourcing.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* navy — the uniform in the hero photo; ink, nav, hero band, footer */
  --navy: #1c2d3f;
  --navy-deep: #101c29;
  --navy-soft: #2b3f55;
  --navy-line: #3a5068;

  /* fixture white — the radiator/fixture being installed; page base */
  --fixture: #f3f6f7;
  --fixture-panel: #ffffff;
  --fixture-deep: #e4eaed;

  /* tool-handle blue — the blue-handled tools on the dark worktop; links, CTAs */
  --pipe-blue: #2f74a6;
  --pipe-blue-deep: #1f567e;
  --pipe-blue-soft: #cfe1ee;

  /* brass — a real plumbing fitting material, not photo-sourced; stands in
     for "30+ years" trust/tenure, used on tags and dividers only */
  --brass: #a9822f;
  --brass-deep: #7c5f20;
  --brass-bright: #c9a24a;

  /* slate — the dark worktop / galvanized tool metal; muted text */
  --slate: #5b6470;
  --slate-soft: #97a1ab;

  /* the small red fabric tag on the uniform pocket in the hero photo —
     used once or twice, never as a primary color */
  --tag-red: #ab392d;

  --ink: #182430;
  --ink-soft: #4c5766;
  --white: #ffffff;

  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1160px;
  --radius: 6px;
  --shadow: 0 18px 40px -24px rgba(16, 28, 41, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--fixture);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pipe-blue-deep); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 0 0 0.9em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.section { padding: 4.4rem 0; }
.section__title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.section__head { max-width: 44em; margin-bottom: 2.4rem; }
.section__lede { color: var(--ink-soft); font-size: 1.02rem; max-width: 46em; margin-top: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn--brass { background: var(--brass); color: var(--navy-deep); }
.btn--brass:hover { background: var(--brass-bright); transform: translateY(-1px); }
.btn--line { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); transform: translateY(-1px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--brass);
}
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 24px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--white); letter-spacing: 0.01em; }
.brand__trade { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pipe-blue-soft); display: none; }

.nav__tags { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tag-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--brass);
  padding: 0.28rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag-chip--outline {
  background: transparent;
  color: var(--pipe-blue-soft);
  border: 1px solid var(--navy-line);
}

.nav__cta { display: flex; align-items: center; gap: 0.8rem; }
.nav__phone {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav__phone:hover { border-color: var(--brass); background: var(--navy-soft); }

/* ---------- seam: pipe-union divider — the signature element ---------- */
.seam {
  display: flex; align-items: center; justify-content: center;
  height: 40px;
  background: var(--fixture);
}
.seam--dark { background: var(--navy-deep); }
.seam svg { display: block; }

/* ---------- hero: flat navy band + full-width photo bleeding below ---------- */
.hero { background: var(--navy); }
.hero__band { padding: 3.6rem 0 3rem; }
.hero__eyebrow { color: var(--brass-bright); }
.hero__band-inner { max-width: 40em; }
.hero__title {
  color: var(--white);
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  margin-bottom: 0.9rem;
}
.hero__tagline { color: var(--pipe-blue-soft); font-size: 1.12rem; max-width: 34em; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }
.hero__address { color: var(--slate-soft); font-size: 0.92rem; font-family: var(--font-mono); }
.hero__address a { color: var(--pipe-blue-soft); }

.hero__photo-wrap { position: relative; }
.hero__photo {
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
}
.hero__photo img { width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.hero__credit {
  position: absolute; left: 0; right: 0; bottom: 0.6rem;
  text-align: center; font-size: 0.72rem; color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  padding: 0 1rem;
}

.valve-tag {
  position: absolute;
  top: -22px; left: 28px;
  background: var(--brass);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.7rem 0.9rem 0.65rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--brass-deep);
}
.valve-tag__hole {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--navy-deep);
  border: 2px solid var(--brass-deep);
  flex: none;
}
.valve-tag small { display: block; font-weight: 500; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; margin-top: 0.1rem; }

/* ---------- about ---------- */
.about { background: var(--fixture); }
.about__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.about__copy p { color: var(--ink-soft); font-size: 1.02rem; }
.about__copy strong { color: var(--navy); }

.spec-rail { display: flex; flex-direction: column; gap: 0.9rem; }
.spec-rail__item {
  background: var(--fixture-panel);
  border: 1px solid var(--fixture-deep);
  border-left: 5px solid var(--brass);
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
}
.spec-rail__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.spec-rail__label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-top: 0.2rem; }
.spec-rail__source { font-size: 0.72rem; color: var(--slate-soft); margin-top: 0.35rem; }

/* ---------- services ---------- */
.services { background: var(--fixture-panel); }
.services__note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brass-deep);
  background: color-mix(in srgb, var(--brass) 12%, transparent);
  border: 1px dashed var(--brass);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  margin-bottom: 2.2rem;
  display: inline-block;
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  background: var(--fixture);
  border: 1px solid var(--fixture-deep);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute; top: 14px; right: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pipe-blue-soft);
  border: 2px solid var(--pipe-blue);
}
.service-card h3 { font-size: 1.06rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- hours & area ---------- */
.visit { background: var(--fixture); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; }
.visit__block h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); color: var(--slate); margin-bottom: 0.7rem; }
.visit__block p { color: var(--ink-soft); }
.visit__block a.btn { margin-top: 0.6rem; }
.visit address { font-style: normal; color: var(--ink-soft); margin-bottom: 0.5rem; }

/* ---------- reviews: real number, honest gap ---------- */
.reviews { background: var(--navy-deep); }
.reviews .eyebrow { color: var(--brass-bright); }
.reviews h2 { color: var(--white); }
.reviews__grid { display: grid; grid-template-columns: 260px 1fr; gap: 2.6rem; align-items: center; margin-top: 2rem; }

.gauge-tag {
  background: var(--fixture-panel);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.gauge-tag::before {
  content: "";
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 6px; border-radius: 3px;
  background: var(--fixture-deep);
}
.gauge-tag__num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--navy); line-height: 1; margin-top: 0.6rem; }
.gauge-tag__stars { color: var(--brass); font-size: 1.1rem; letter-spacing: 0.12em; margin-top: 0.4rem; }
.gauge-tag__count { font-family: var(--font-mono); font-size: 0.76rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }

.reviews__copy p { color: rgba(255,255,255,0.82); font-size: 1rem; }
.reviews__copy a { color: var(--brass-bright); }
.reviews__source { font-family: var(--font-mono); font-size: 0.76rem; color: var(--pipe-blue-soft); margin-top: 0.8rem; }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: var(--white); text-align: center; }
.contact .eyebrow { color: var(--pipe-blue-soft); }
.contact h2 { color: var(--white); }
.contact__lede { color: var(--pipe-blue-soft); max-width: 34em; margin: 0.8rem auto 1.8rem; }
.contact__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.contact__meta { font-family: var(--font-mono); font-size: 0.88rem; color: var(--slate-soft); }
.contact__meta a { color: var(--pipe-blue-soft); }

/* ---------- footer ---------- */
.footer {
  background: var(--navy-deep);
  color: var(--slate-soft);
  text-align: center;
  padding: 1.6rem 0;
  font-size: 0.86rem;
}
.footer a { color: var(--pipe-blue-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .brand__trade { display: block; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .visit__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 620px) {
  .site-nav { flex-wrap: wrap; }
  .nav__tags { order: 3; width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__photo { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%); }
  .valve-tag { left: 16px; top: -18px; font-size: 0.7rem; padding: 0.55rem 0.7rem; }
  .reviews__grid { gap: 1.6rem; }
}
