/* Oakgrove Test Plumbing — Bold & Industrial (v1)
   No brand colours exist yet (no logo, no prior site), so the palette is a
   category-fit plumbing blue on a blue-biased charcoal. Contrast checked:
   on-dark/dark 16.8:1 · white/accent 5.36:1 · white/accent-strong 7.39:1
   text/surface 14.2:1 · muted/surface 6.7:1 · accent-light/dark 6.96:1
   accent/surface 4.94:1 · on-dark-muted/dark 10.3:1 */
:root {
  --color-dark: #0e1822;
  --color-dark-2: #16232f;
  --color-accent: #1a66d6;
  --color-accent-strong: #1452ad;
  --color-accent-light: #5ea3ff;   /* accent hue for text/focus on dark */
  --color-surface: #f3f6f9;
  --color-surface-strong: #e2e8ef;
  --color-text: #1b2631;
  --color-muted: #4a5866;
  --color-on-dark: #f5f8fb;
  --color-on-dark-muted: #b9c6d3;
  --color-on-accent: #ffffff;
  --color-line: #9aa8b6;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", Arial, sans-serif;

  --text-xs: 14px;
  --text-sm: 16px;
  --text-body: 18px;
  --text-lead: clamp(20px, 2vw, 24px);
  --text-h3: clamp(24px, 3vw, 32px);
  --text-h2: clamp(34px, 5vw, 54px);
  --text-h1: clamp(48px, 8vw, 88px);

  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(48px, 8vw, 96px);
  --maxw: 1200px;
  --radius-card: 3px;
  --radius-btn: 5px;
  --shadow-card: 0 6px 0 color-mix(in srgb, var(--color-dark) 18%, transparent);
  --shadow-nav: 0 8px 24px rgb(0 0 0 / 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--color-dark); }
:focus-visible { outline: 3px solid var(--color-accent-strong); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible {
  outline-color: var(--color-accent-light);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
h1 { font-size: var(--text-h1); line-height: 0.95; font-weight: 800; }
h2 { font-size: var(--text-h2); line-height: 1.05; }
h3 { font-size: var(--text-h3); line-height: 1.2; }
p { margin: 0 0 16px; max-width: 68ch; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--color-accent); color: var(--color-on-accent);
  padding: 12px 16px; font-weight: 700; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 16px; color: var(--color-on-accent); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-surface-strong); }
.section--dark { background: var(--color-dark); color: var(--color-on-dark); }
.section--dark p { color: var(--color-on-dark-muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: 16px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--color-accent-light); }
.contact-grid .eyebrow { display: block; }
.lead { font-size: var(--text-lead); font-weight: 500; line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius-btn);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-cta { background: #1a66d6; color: #ffffff; box-shadow: 0 4px 0 var(--color-accent-strong); }
.btn-cta:hover { background: #1452ad; color: #ffffff; }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--color-accent-strong); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: var(--color-surface); }
.on-dark .btn-outline, .hero .btn-outline, .section--dark .btn-outline {
  color: var(--color-on-dark); border-color: var(--color-on-dark);
}
.on-dark .btn-outline:hover, .hero .btn-outline:hover, .section--dark .btn-outline:hover {
  background: var(--color-on-dark); color: var(--color-dark);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-dark); color: var(--color-on-dark);
  box-shadow: var(--shadow-nav);
  border-bottom: 4px solid var(--color-accent);
}
.nav-bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.wordmark {
  display: inline-flex; flex-direction: column; line-height: 0.9;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.03em; text-decoration: none; color: var(--color-on-dark);
  font-size: 24px; margin-right: auto;
}
.wordmark span { color: var(--color-accent-light); font-size: 18px; letter-spacing: 0.18em; }
.wordmark:hover { color: var(--color-on-dark); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 12px 14px; font-size: var(--text-sm); font-weight: 600;
  line-height: 1.45; color: var(--color-on-dark); text-decoration: none; border-radius: 3px;
}
.site-nav a:hover { background: var(--color-dark-2); color: var(--color-on-dark); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-accent-light); }
.nav-call { min-height: 48px; padding: 10px 18px; font-size: 16px; }
.nav-call .num { white-space: nowrap; }
.nav-toggle {
  display: none; min-height: 48px; min-width: 48px; padding: 8px 12px;
  background: transparent; color: var(--color-on-dark);
  border: 2px solid var(--color-on-dark-muted); border-radius: var(--radius-btn);
  font: 600 16px var(--font-body); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; order: 3; }
  .nav-call { order: 2; padding: 10px 14px; }
  .site-nav {
    order: 4; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-dark); border-bottom: 4px solid var(--color-accent);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--color-dark-2); }
}
@media (max-width: 520px) {
  .nav-call .num { display: none; }
  .wordmark { font-size: 20px; }
  .wordmark span { font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--color-dark); color: var(--color-on-dark);
  padding: clamp(56px, 10vw, 128px) 0;
}
.hero::before { /* fine blueprint grid texture — CSS only */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(94 163 255 / 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(94 163 255 / 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero h1 .hl { color: var(--color-accent-light); display: block; }
.hero .lead { color: var(--color-on-dark-muted); max-width: 36ch; margin-bottom: 32px; }
.hero-proof {
  margin-top: 24px; font-size: var(--text-sm); color: var(--color-on-dark-muted);
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.hero-proof strong { color: var(--color-on-dark); }
.hero-art { display: none; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.25fr 1fr; }
  .hero-art { display: block; }
}
.pipe-svg { width: 100%; max-width: 440px; margin-left: auto; }

.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(44px, 7vw, 76px); }

/* ---------- Accent band ---------- */
.band {
  background: var(--color-accent); color: var(--color-on-accent);
  padding: 32px 0;
}
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.band p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-h3); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; color: var(--color-on-accent); }
.band a.band-link {
  color: var(--color-on-accent); font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4vw, 44px); text-decoration: none; letter-spacing: 0.02em; line-height: 1;
  border-bottom: 3px solid currentColor;
}
.band a.band-link:hover { color: var(--color-on-accent); border-bottom-color: transparent; }
.band :focus-visible { outline-color: var(--color-on-accent); }

/* ---------- Cards ---------- */
.section-head { margin-bottom: 40px; max-width: 760px; }
.grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #ffffff; border: 2px solid var(--color-text); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 32px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-muted); margin-bottom: 0; }
.card .num-tag {
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.06em;
  color: var(--color-accent-strong); margin-bottom: 16px;
}
.card--todo { border-style: dashed; background: var(--color-surface); box-shadow: none; }
a.card { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 color-mix(in srgb, var(--color-dark) 22%, transparent); color: inherit; }
a.card .card-go { margin-top: auto; padding-top: 24px; font-weight: 700; color: var(--color-accent-strong); }

.todo-note {
  display: inline-block; font-size: var(--text-xs); font-weight: 600; line-height: 1.35;
  background: #fff4d6; color: #5c4200; border: 1px dashed #8a6500;
  padding: 4px 8px; border-radius: 3px; margin-top: 12px;
}

/* ---------- Image placeholder ---------- */
.img-ph {
  position: relative; aspect-ratio: 4 / 3; width: 100%;
  border: 2px dashed var(--color-line); border-radius: var(--radius-card);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(26 102 214 / 0.06) 14px 15px),
    var(--color-surface-strong);
  display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--color-muted);
}
.img-ph strong { display: block; color: var(--color-text); font-size: 16px; }
.img-ph span { font-size: 16px; }

/* ---------- Customer photos ---------- */
.photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-card); background: var(--color-surface-strong);
}

/* ---------- Split / steps ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split > :only-child { grid-column: 1 / -1; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--color-text); }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.facts .k { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); padding-top: 3px; }
.section--dark .facts { border-top-color: var(--color-on-dark-muted); }
.section--dark .facts li { border-bottom-color: #2c3b49; }
.section--dark .facts .k { color: var(--color-on-dark-muted); }
.section--dark a { color: var(--color-accent-light); }
.section--dark a:hover { color: var(--color-on-dark); }
.section--dark a.btn-cta, .section--dark a.btn-cta:hover { color: #ffffff; }

.steps { counter-reset: s; display: grid; gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; border-top: 4px solid var(--color-accent-light); padding-top: 24px; }
.steps li::before {
  content: "0" counter(s); display: block;
  font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1;
  color: var(--color-accent-light); margin-bottom: 8px;
}
.steps h3 { color: var(--color-on-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.big-phone {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: 0.01em;
  color: var(--color-on-dark); text-decoration: none; margin: 8px 0 24px;
  border-bottom: 4px solid var(--color-accent-light);
}
.section--dark a.big-phone:hover { color: var(--color-accent-light); }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid #2c3b49; font-weight: 500; }
.hours td { color: var(--color-on-dark-muted); }
.map-wrap { border: 2px solid var(--color-text); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); background: var(--color-surface-strong); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

.form-card { background: #ffffff; color: var(--color-text); border: 2px solid var(--color-text); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-card); }
.form-card h2 { font-size: clamp(32px, 4vw, 44px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 16px; font-weight: 700; }
.field .opt { font-weight: 400; color: var(--color-muted); }
.field input, .field textarea, .field select {
  font: 400 18px/1.4 var(--font-body); color: var(--color-text);
  background: var(--color-surface); border: 2px solid var(--color-muted); border-radius: var(--radius-card);
  padding: 12px 14px; min-height: 52px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--color-accent-strong); outline: 3px solid var(--color-accent-strong); outline-offset: 1px; }
.form-help { font-size: 16px; color: var(--color-muted); }
.form-status { margin-top: 16px; font-weight: 600; font-size: 16px; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a3221a; }
.section--dark .form-card p { color: var(--color-muted); }
.section--dark .form-card .form-status.ok { color: #1d6b3a; }
.section--dark .form-card .form-status.err { color: #a3221a; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: var(--color-on-dark); padding: 64px 0 32px; border-top: 4px solid var(--color-accent); }
.site-footer a { color: var(--color-on-dark); }
.site-footer a:hover { color: var(--color-accent-light); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 22px; margin-bottom: 16px; color: var(--color-on-dark-muted); letter-spacing: 0.08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: 16px; }
.site-footer p { font-size: 16px; color: var(--color-on-dark-muted); }
.footer-brand .wordmark { font-size: 32px; margin-bottom: 16px; }
.footer-brand .wordmark span { font-size: 22px; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2c3b49; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.legal small { font-size: 14px; color: var(--color-on-dark-muted); }

/* Mobile sticky call bar */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px; background: var(--color-dark); border-top: 3px solid var(--color-accent);
  }
  .callbar .btn { width: 100%; }
  body { padding-bottom: 76px; }
}
