/* JDC Plumbing and Gas — Nedlands WA */
:root {
  --blue: #1b7ab5;
  --blue-d: #0b2e44;
  --blue-m: #155f8c;
  --flame: #e85c24;
  --flame-d: #c44816;
  --gold: #c99212;
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #e2ddd4;
  --paper: #f6f3ee;
  --white: #fff;
  --max: 1140px;
  --header: 72px;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, .btn { font-family: inherit; }

.skip {
  position: absolute;
  left: 12px; top: -40px;
  background: var(--blue-d); color: #fff;
  padding: 8px 12px; z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--blue);
  min-width: 0;
}
.brand svg { width: 36px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-jdc {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: .02em;
  color: var(--blue);
}
.brand-sub {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #3a3a3a;
  margin-top: 3px;
}
.nav {
  display: none;
  gap: 22px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--flame); color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 16px;
  border-radius: 4px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--flame-d); }
.header-cta svg { width: 16px; height: 16px; }
@media (max-width: 420px) {
  .header-cta { padding: 10px 12px; font-size: .88rem; }
  .brand-jdc { font-size: 1.6rem; }
}

@media (min-width: 820px) {
  .nav { display: flex; }
}

/* Hero */
.hero {
  display: grid;
  background: var(--paper);
}
.hero-copy {
  padding: 36px 0 40px;
}
.hero-copy .wrap { width: min(var(--max), calc(100% - 40px)); }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .04em;
  color: var(--blue-m);
  margin: 0 0 14px;
}
.stars { color: var(--gold); letter-spacing: 1px; font-size: .95rem; }
.hero h1 {
  font-size: clamp(2.15rem, 6.4vw, 3.55rem);
  line-height: 1.04;
  letter-spacing: -.032em;
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 14ch;
}
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  padding: 13px 18px;
}
.btn-primary { background: var(--flame); color: #fff; }
.btn-primary:hover { background: var(--flame-d); }
.btn-ghost {
  background: transparent;
  color: var(--blue-d);
  border: 1px solid var(--blue-d);
}
.btn-ghost:hover { background: var(--blue-d); color: #fff; }
.hero-photo {
  position: relative;
  min-height: 240px; height: 240px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  position: absolute; inset: 0;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    height: min(640px, calc(100vh - var(--header)));
    min-height: 520px;
  }
  .hero-copy {
    display: flex; align-items: center;
    padding: 48px 0;
  }
  .hero-copy .wrap {
    width: 100%;
    padding-left: max(20px, calc((100vw - var(--max)) / 2));
    padding-right: 48px;
    max-width: none;
  }
  .hero-photo { min-height: 100%; height: auto; }
}

/* Services */
.services { padding: 72px 0 80px; background: #fff; }
.section-kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 46ch; }
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  padding: 22px 18px 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}
.service:nth-child(even) { padding-left: 18px; }
.service svg {
  width: 28px; height: 28px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}
.service h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.service p { margin: 0; font-size: .9rem; color: var(--muted); }

@media (min-width: 760px) {
  .service-grid { grid-template-columns: 1fr 1fr 1fr; }
  .service { padding: 26px 24px 26px 0; }
  .service:nth-child(even) { padding-left: 0; }
  .service:nth-child(3n+2) { padding-left: 24px; padding-right: 24px; }
  .service:nth-child(3n) { padding-left: 24px; padding-right: 0; }
}

/* About */
.about { background: var(--paper); padding: 0; }
.about-grid {
  display: grid;
}
.about-photo {
  position: relative;
  height: clamp(210px, 52vw, 320px);
}
.about-photo img.van {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 22% 48%;
  position: absolute; inset: 0;
}
.about-copy { padding: 48px 0; }
.about-copy .wrap { width: min(var(--max), calc(100% - 40px)); }
.who {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
}
.who img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.who span { font-size: .9rem; color: var(--muted); }
.who strong { display: block; color: var(--ink); font-size: 1rem; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.02em; margin: 0 0 14px; }
.about p { color: #3f3f3f; margin: 0 0 14px; max-width: 44ch; }
.hours {
  margin-top: 22px;
  padding: 16px 18px;
  background: #fff;
  border-left: 3px solid var(--flame);
  max-width: 42ch;
}
.hours strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.hours p { margin: 0; font-size: .92rem; color: var(--muted); }

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
  .about-photo {
    height: 340px;
    margin: 40px 0;
  }
  .about-copy {
    display: flex; align-items: center;
    padding: 56px 0;
  }
  .about-copy .wrap {
    width: 100%;
    max-width: none;
    padding-left: 48px;
    padding-right: max(20px, calc((100vw - var(--max)) / 2));
  }
}

/* Proof */
.proof { padding: 80px 0; background: var(--blue-d); color: #fff; }
.proof .section-kicker { color: #f0a070; }
.proof-top {
  display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 12px 22px;
  margin-bottom: 28px;
}
.rating-num {
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 5.2rem);
  line-height: .85;
  letter-spacing: -.02em;
}
.rating-meta { font-size: 1.05rem; color: #d5e4ee; }
.rating-meta a { color: #fff; font-weight: 600; }
.rating-meta a:hover { color: #f4c38a; }
.quote {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -.015em;
  max-width: 28ch;
  font-weight: 500;
}
.quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #9bb6c6;
}

/* Closer */
.closer {
  padding: 64px 0;
  text-align: center;
  background: var(--paper);
}
.closer h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.closer p { color: var(--muted); margin: 0 0 22px; }
.phone-xl {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  letter-spacing: .02em;
  color: var(--blue);
  text-decoration: none;
  line-height: 1;
}
.phone-xl:hover { color: var(--flame); }

/* Footer */
.site-footer {
  background: #081e2d;
  color: #c5d3dc;
  padding: 36px 0 28px;
  font-size: .92rem;
}
.foot-grid {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
  align-items: flex-start;
}
.foot-brand .brand-jdc { font-size: 1.5rem; color: #7ec3e8; }
.foot-brand .brand-sub { color: #9aa8b0; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col a { color: #e8eef2; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #1a3a4e;
  color: #7d8e98;
  font-size: .8rem;
}

/* Focus */
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
}
