:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1rem + 5vw, 5.25rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* ALL Plumbing brand navy + red, steel neutrals */
  --navy: #0a2451;
  --navy-2: #0e2c5d;
  --red: #d2323f;
  --red-hover: #b52733;
  --steel-50: #f3f5f7;
  --steel-100: #e6eaee;
  --steel-300: #b9c2cc;
  --steel-500: #6b7785;
  --ink: #12192a;
  --ink-2: #3d4757;
  --white: #ffffff;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --radius: 6px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-4); }
section[id] { scroll-margin-top: 72px; }

.wrap { width: min(100% - 2 * clamp(var(--space-5), 4vw, var(--space-12)), var(--wrap)); margin-inline: auto; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: var(--space-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font: 700 var(--text-sm)/1 var(--font-body); text-decoration: none; padding: var(--space-3) var(--space-5); border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; white-space: nowrap; }
.btn-lg { padding: var(--space-4) var(--space-6); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--steel-100); }
.header-inner { display: flex; align-items: center; gap: var(--space-8); min-height: 72px; }
.wordmark { display: inline-flex; align-items: baseline; gap: var(--space-2); text-decoration: none; font-family: var(--font-display); line-height: 1; }
.wm-all { font-weight: 800; font-size: 1.6rem; color: var(--navy); letter-spacing: .02em; }
.wm-ins { font-weight: 700; font-size: 1.35rem; color: var(--red); }
.wordmark-light .wm-all { color: var(--white); }
.nav { display: flex; gap: var(--space-6); margin-left: auto; }
.nav a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: var(--space-5); }
.phone { font-weight: 700; font-size: var(--text-sm); text-decoration: none; color: var(--navy); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
.mobile-nav { border-top: 1px solid var(--steel-100); background: var(--white); padding: var(--space-2) 0 var(--space-4); }
.mobile-nav a { display: block; padding: var(--space-3) clamp(var(--space-5), 4vw, var(--space-12)); text-decoration: none; font-weight: 500; color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: min(86vh, 780px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; background: url('hero.webp') center 40% / cover no-repeat; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,36,81,.94) 0%, rgba(10,36,81,.80) 42%, rgba(10,36,81,.25) 100%), linear-gradient(0deg, rgba(10,36,81,.55), rgba(10,36,81,0) 45%); }
.hero-inner { position: relative; padding-block: clamp(var(--space-16), 12vh, var(--space-32)); }
.hero .eyebrow { color: #ff8a93; }
.hero h1 { font-size: var(--text-hero); font-weight: 800; max-width: 13ch; }
.lede { font-size: var(--text-lg); line-height: 1.5; max-width: 46ch; margin-top: var(--space-6); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-10); }

/* Proof strip */
.proof { background: var(--navy-2); color: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { padding: var(--space-6) var(--space-6) var(--space-6) 0; border-right: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: var(--space-1); }
.proof-grid > div + div { padding-left: var(--space-6); }
.proof-grid > div:last-child { border-right: 0; }
.proof strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.proof span { font-size: var(--text-xs); color: rgba(255,255,255,.75); }

/* Sections */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-alt { background: var(--steel-50); }
.section-head { max-width: 680px; margin-bottom: var(--space-12); }
.section h2 { font-size: var(--text-2xl); font-weight: 800; color: var(--navy); }
.section-sub { margin-top: var(--space-4); color: var(--ink-2); }

/* Services */
.services { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: var(--space-6); }
.service { background: var(--white); border: 1px solid var(--steel-100); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-feature { grid-row: span 2; }
.service-feature img { aspect-ratio: auto; flex: 1; min-height: 320px; }
.service:not(.service-feature) { flex-direction: row; }
.service:not(.service-feature) img { width: 42%; aspect-ratio: auto; }
.service-body { padding: var(--space-6); }
.service h3 { font-size: var(--text-lg); font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); }
.service p { color: var(--ink-2); font-size: var(--text-sm); }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-10); border-top: 2px solid var(--navy); padding-top: var(--space-8); }
.service-list h3 { font-size: var(--text-base); font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); }
.service-list p { font-size: var(--text-sm); color: var(--ink-2); }

/* Band */
.band { background: var(--navy); color: var(--white); padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.band-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); align-items: center; }
.band-quote { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.25; }
.band-list li { padding: var(--space-3) 0 var(--space-3) var(--space-8); border-bottom: 1px solid rgba(255,255,255,.15); position: relative; font-size: var(--text-sm); }
.band-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; background: var(--red); }

/* Two col */
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.two-col > div > p:not(.eyebrow) { margin-top: var(--space-5); color: var(--ink-2); max-width: 52ch; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.who { padding: var(--space-6); border: 1px solid var(--steel-100); border-top: 3px solid var(--navy); border-radius: var(--radius); }
.who h3 { font-size: var(--text-base); font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); }
.who p { font-size: var(--text-sm); color: var(--ink-2); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: s; }
.steps li { background: var(--white); padding: var(--space-6); border-radius: var(--radius); border: 1px solid var(--steel-100); }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--red); display: block; margin-bottom: var(--space-4); }
.steps h3 { font-size: var(--text-base); font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); }
.steps p { font-size: var(--text-sm); color: var(--ink-2); }

/* Area */
.area-towns { font-size: var(--text-sm); line-height: 1.9; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.offices li { padding: var(--space-6); background: var(--steel-50); border-radius: var(--radius); }
.offices h3 { font-size: var(--text-base); font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); }
.offices p { font-size: var(--text-sm); color: var(--ink-2); }

/* Bid */
.bid { background: var(--steel-50); border-top: 1px solid var(--steel-100); }
.bid-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: start; }
.bid-copy p:not(.eyebrow) { margin-top: var(--space-5); color: var(--ink-2); }
.bid-phone { display: inline-block; margin-top: var(--space-6); font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--navy); text-decoration: none; }
.bid-form { background: var(--white); padding: clamp(var(--space-6), 4vw, var(--space-10)); border-radius: var(--radius); border: 1px solid var(--steel-100); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field-full, .bid-form .btn, .form-note, .form-error { grid-column: 1 / -1; }
.field label { font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); }
.field input, .field textarea { font: inherit; font-size: var(--text-sm); padding: var(--space-3); border: 1px solid var(--steel-300); border-radius: var(--radius); background: var(--white); color: var(--ink); min-height: 44px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.bid-form .btn { justify-self: start; }
.form-note { font-size: var(--text-xs); color: var(--steel-500); }
.form-error { font-size: var(--text-sm); color: var(--red); font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-top: var(--space-16); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--space-10); flex-wrap: wrap; padding-bottom: var(--space-10); }
.footer-parent { margin-top: var(--space-4); font-size: var(--text-sm); max-width: 40ch; }
.footer-parent a { color: var(--white); font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-sm); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--space-6); font-size: var(--text-xs); color: rgba(255,255,255,.55); }

/* Responsive */
@media (max-width: 1020px) {
  .nav, .header-cta .phone { display: none; }
  .header-cta { margin-left: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-cta { display: none; }
  .menu-btn { display: flex; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div { padding: var(--space-5) var(--space-4) var(--space-5) 0 !important; border-right: 0; }
  .proof-grid > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.14); }
  .proof-grid > div:nth-child(even) { padding-left: var(--space-4) !important; }
  .services { grid-template-columns: 1fr; }
  .service-feature { grid-row: auto; }
  .service-feature img { min-height: 0; aspect-ratio: 4 / 3; }
  .service:not(.service-feature) { flex-direction: column; }
  .service:not(.service-feature) img { width: 100%; aspect-ratio: 16 / 9; }
  .service-list, .band-inner, .two-col, .bid-inner { grid-template-columns: 1fr; }
  .band-inner { gap: var(--space-8); }
}
@media (max-width: 560px) {
  .who-grid, .offices, .steps, .bid-form { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
