/* NBA Plumber — site.css (one stylesheet for the whole site) */

/* 1. Tokens */
:root {
  --navy: #0a2139;
  --navy-deep: #071a2e;
  --blue: #025ac5;
  --blue-dark: #014aa3;
  --blue-light: #8fb6ea;
  --slate: #4a5b6d;
  --paper: #f4f2ed;
  --rule: #d6d8db;
  --rule-dark: rgba(255, 255, 255, .2);
  --on-navy: #c3cdd9;
  --on-blue: #dbe7f7;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: .875rem;
  --fs-label: .75rem;
  --fs-lead: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --fs-h1: clamp(2.375rem, 1.3rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 1.9vw, 2.625rem);
  --fs-h3: 1.3125rem;
  --gut: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --sec: clamp(64px, 8vw, 120px);
  --track: .18em;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--navy); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue); }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 12px 16px; background: var(--navy); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; outline-color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout */
.wrap { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }
.sec { padding: var(--sec) 0; }
.sec--paper { background: var(--paper); }
.sec--flush { padding-top: 0; }
.sec__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); padding-top: 28px; border-top: 2px solid var(--navy); }
.sec__head h2 { max-width: 13em; margin: 16px 0 20px; font-size: var(--fs-h2); }
.sec__head > p:not(.label) { max-width: 30em; color: var(--slate); }
.sec__head > p + p { margin-top: 1em; }
.sec__head .more, .sec__head .actions { margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }

/* 4. Type helpers */
.label { font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--blue); }
.lead { max-width: 36em; color: var(--slate); font-size: var(--fs-lead); line-height: 1.5; }
.tag { display: inline-block; padding: 3px 8px; border: 1px solid currentColor; font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }

/* 5. Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--blue); border-radius: 2px; background: var(--blue); color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--navy); }
.btn--white:hover { background: var(--paper); border-color: var(--paper); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.more { position: relative; display: inline-flex; padding-right: 1.5em; align-items: center; min-height: 44px; font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.more::after { content: "\2192"; position: absolute; right: 0; transition: transform .15s; }
.more:hover::after { transform: translateX(3px); }
.on-dark .more { color: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* 6. Top bar */
.topbar { background: var(--navy); color: var(--on-navy); font-size: .8125rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar__states { color: #fff; font-weight: 700; letter-spacing: var(--track); }
.topbar__hq { margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .25); }

/* 7. Header and nav (mobile nav is a no-JS <details>) */
.head { position: relative; z-index: 10; background: #fff; border-bottom: 1px solid var(--rule); }
.head__in { display: flex; align-items: center; gap: 16px; min-height: 96px; }
.brand { flex: none; margin-right: auto; }
.brand img { width: 153px; height: 64px; }
.nav ul { display: flex; }
.nav a { position: relative; display: block; padding: 12px 14px; color: var(--navy); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--blue); }
.head__cta { display: flex; align-items: center; gap: 24px; margin-left: 12px; padding-left: 28px; border-left: 1px solid var(--rule); }
.head__phone { display: flex; flex-direction: column; justify-content: center; min-height: 48px; color: var(--navy); font-size: 1.0625rem; font-weight: 700; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.head__phone span { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.head__phone:hover { color: var(--blue); }
.head__call, .mnav { display: none; }
.mnav summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 2px solid var(--navy); border-radius: 2px; font-weight: 600; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav__icon, .mnav__icon::before, .mnav__icon::after { display: block; width: 18px; height: 2px; background: var(--navy); }
.mnav__icon { position: relative; }
.mnav__icon::before, .mnav__icon::after { content: ""; position: absolute; left: 0; }
.mnav__icon::before { top: -6px; }
.mnav__icon::after { top: 6px; }
.mnav__close, .mnav[open] .mnav__open { display: none; }
.mnav[open] .mnav__close { display: inline; }
.mnav[open] .mnav__icon { background: transparent; }
.mnav[open] .mnav__icon::before { top: 0; transform: rotate(45deg); }
.mnav[open] .mnav__icon::after { top: 0; transform: rotate(-45deg); }
.mnav__panel { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gut) 28px; background: #fff; border-top: 1px solid var(--rule); border-bottom: 3px solid var(--navy); }
.mnav__panel li a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule); color: var(--navy); font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.mnav__panel a[aria-current="page"] { color: var(--blue); box-shadow: inset 4px 0 var(--blue); padding-left: 14px; }
.mnav__panel .btn { width: 100%; margin-top: 24px; }
.mnav__tel { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 8px; font-weight: 700; color: var(--navy); }

/* 8. Home hero + title block */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.hero h1 { margin: 20px 0 28px; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.028em; }
.hero .lead { margin-bottom: 36px; }
.tblock { border: 2px solid var(--navy); background: #fff; }
.tblock__top { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--navy); color: #fff; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
.tblock__top span + span { color: var(--blue-light); letter-spacing: .06em; text-transform: none; font-weight: 600; font-size: var(--fs-sm); }
.tblock dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 4px 16px; padding: 14px 18px; border-top: 1px solid var(--rule); }
.tblock dl > div:first-child { border-top: 0; }
.tblock dt { padding-top: 3px; font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.tblock dd { font-weight: 600; line-height: 1.45; }
.tblock dd a { display: flex; align-items: center; min-height: 44px; margin: -6px 0; color: var(--blue); font-weight: 700; }
.tblock dd a + a { margin-top: 0; }
.tblock__hq { font-weight: 700; }

/* 9. Pipe-run schematic (decorative; crops from the right on narrow screens) */
.piperun { width: 100%; height: 88px; }

/* 10. Inner-page hero */
.phero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.phero h1 { max-width: 16em; margin: 16px 0 24px; font-size: clamp(2.25rem, 1.3rem + 3vw, 3.75rem); line-height: 1.04; letter-spacing: -.025em; }
.phero + .sec { padding-top: clamp(40px, 5vw, 72px); }

/* 11. Lists, definition lists, tables */
.ruled li { padding: 12px 0; border-top: 1px solid var(--rule); font-weight: 500; }
.ruled li:last-child { border-bottom: 1px solid var(--rule); }
.checklist { counter-reset: n; }
.checklist li { counter-increment: n; display: grid; grid-template-columns: 2.5rem 1fr; padding: 12px 0; border-top: 1px solid var(--rule); }
.checklist li::before { content: counter(n, decimal-leading-zero); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .1em; color: var(--blue); line-height: 1.9; }
.on-dark .checklist li { border-color: var(--rule-dark); }
.on-dark .checklist li::before { color: #fff; }
.disc { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 48px; }
.disc__col { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.disc h3 { font-size: 1.5rem; }
.disc__col > p { margin: 10px 0 24px; color: var(--slate); }
.spec { border-bottom: 1px solid var(--rule); }
.spec > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--rule); }
.spec dt { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.spec dd { color: var(--slate); }
.spec dt a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; text-underline-offset: 4px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 14px 16px 14px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tbl thead th { border-top: 2px solid var(--navy); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; }
.tbl td { color: var(--slate); }
.steps { border-bottom: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 3.5rem minmax(0, 14rem) minmax(0, 1fr); gap: 8px 24px; padding: 24px 0; border-top: 1px solid var(--rule); }
.steps__n { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .14em; color: var(--blue); line-height: 1.7; }
.steps h3 { font-size: var(--fs-h3); line-height: 1.3; }
.steps p { color: var(--slate); }

/* 12. States band (navy) + map tiles */
.band { padding: clamp(72px, 9vw, 136px) 0; background: var(--navy); color: #fff; }
.band .label { color: var(--blue-light); }
.band h2 { margin: 16px 0 24px; font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem); line-height: 1.02; letter-spacing: -.025em; }
.band p:not(.label) { color: var(--on-navy); }
.band .more { margin-top: 24px; }
.band__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 7vw, 112px); align-items: center; }
.states { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-dark); border-left: 1px solid var(--rule-dark); }
.st { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: clamp(150px, 16vw, 220px); padding: clamp(16px, 2vw, 28px); border-right: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.st b { font-size: clamp(3.25rem, 1.6rem + 4.6vw, 6rem); font-weight: 700; line-height: .82; letter-spacing: -.04em; }
.st span { font-size: clamp(1.125rem, .9rem + .7vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.st em { display: block; margin-bottom: 6px; font-size: var(--fs-label); font-style: normal; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--on-blue); }
.st:not(.st--hq) b { color: var(--blue-light); }
.st--hq { background: var(--blue); border-color: var(--blue); }

/* 13. Careers roster */
.roles__cap { padding-bottom: 12px; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
.roles ul { border-bottom: 1px solid var(--rule); }
.roles a { display: grid; grid-template-columns: minmax(0, 1fr) auto 1.5rem; align-items: center; gap: 4px 20px; padding: 20px 0; border-top: 1px solid var(--rule); color: var(--navy); text-decoration: none; }
.roles a::after { content: "\2192"; color: var(--blue); font-size: 1.25rem; transition: transform .15s; }
.roles a:hover strong { color: var(--blue); }
.roles a:hover::after { transform: translateX(4px); }
.roles strong { display: block; font-size: 1.25rem; line-height: 1.3; }
.roles__t span { display: block; margin-top: 2px; color: var(--slate); }
.roles .tag { color: var(--slate); }

/* 14. Prose (long-form copy on inner pages) */
.prose { max-width: 40em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 1.75rem; }
.prose h3 { margin-top: 1.6em; font-size: var(--fs-h3); }
.prose ul { padding-left: 1.2em; list-style: square; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* 15. CTA band (blue) */
.cta { padding: clamp(56px, 7vw, 96px) 0; background: var(--blue); color: #fff; }
.cta__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.cta h2 { max-width: 16ch; font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem); }
.cta p { max-width: 34em; margin: 16px 0 32px; color: var(--on-blue); }
.cta .checklist li::before { color: #fff; }
.cta .cta__cap { margin: 0; color: #fff; padding-bottom: 12px; font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
.cta .checklist { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.cta .checklist li { border-color: rgba(255, 255, 255, .3); }

/* 16. Footer */
.foot { padding: clamp(56px, 6vw, 80px) 0 28px; background: var(--navy-deep); border-top: 5px solid var(--blue); color: #b8c3cf; font-size: .9375rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); gap: 40px; }
.foot__brand img { width: 172px; height: 72px; margin-bottom: 20px; }
.foot__brand p { max-width: 30em; }
.foot__h { margin-bottom: 12px; font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; color: #fff; }
.foot li { padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__states li { padding: 4px 0; }
.foot address { padding-top: 10px; font-style: normal; line-height: 1.6; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__states span { margin-left: 6px; font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--fs-sm); }

/* 17. Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .mnav { display: block; }
}
@media (max-width: 900px) {
  .hero__grid, .phero__grid, .sec__grid, .band__grid, .cta__in { grid-template-columns: minmax(0, 1fr); }
  .tblock, .states { max-width: 560px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .topbar__in > p:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .head__in { min-height: 76px; gap: 8px; }
  .brand img { width: 124px; height: 52px; }
  .head__cta { display: none; }
  .head__call { display: inline-flex; padding: 0 16px; }
  .disc, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .disc { grid-template-rows: none; row-gap: 48px; }
  .disc__col { grid-row: auto; grid-template-rows: none; }
  .spec > div, .steps li { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .steps p { grid-column: 2; }
  .tblock dl > div { grid-template-columns: minmax(0, 1fr); }
  .roles a { grid-template-columns: minmax(0, 1fr) 1.5rem; }
  .roles .tag { grid-row: 2; justify-self: start; margin-top: 8px; }
  .actions .btn, .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .head__call { padding: 0 12px; }
  .mnav summary { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Page: shared inner-page hero spacing ---------- */
.phero .lead + .actions { margin-top: 32px; }

/* ---------- Page: service area ---------- */
.sa-list { margin-top: 32px; max-width: 24rem; }
.sa-list li { display: flex; align-items: center; gap: 16px; font-size: 1.125rem; font-weight: 600; }
.sa-list b { width: 2.25rem; font-size: var(--fs-sm); letter-spacing: .14em; color: var(--blue); }
.sa-list .tag { margin-left: auto; color: var(--blue); }
.sa-map { align-self: start; }
.sa-map img { width: 100%; }
.sa-map figcaption { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--slate); }
.sa-key { width: 14px; height: 14px; background: var(--blue); }

/* ---------- Page: contact ---------- */
.checklist--detail li { padding: 18px 0; }
.checklist--detail li:last-child { border-bottom: 1px solid var(--rule); }
.checklist--detail strong { display: block; font-size: 1.125rem; line-height: 1.4; }
.checklist--detail strong + span { display: block; margin-top: 4px; color: var(--slate); }
.checklist--detail li::before { line-height: 2.2; }
.mailnote { margin-top: 12px; color: var(--slate); font-size: var(--fs-sm); }
.cta p a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Page: careers ---------- */
.job { margin-top: clamp(56px, 7vw, 96px); scroll-margin-top: 24px; }
.job h3 { margin: 16px 0 16px; font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.125rem); }
.job h4, .apply__h { margin: 0; }
.job .grid-2 { align-items: start; }
.apply__h + .checklist { border-bottom: 1px solid var(--rule); }
.apply__next { margin-top: 48px; }
.eeo { margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--navy); color: var(--slate); font-size: var(--fs-sm); }
.eeo strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: var(--fs-label); letter-spacing: var(--track); text-transform: uppercase; }
.steps__h { margin: 0; font-size: var(--fs-h3); line-height: 1.3; }
@media (min-width: 901px) { .job > .sec__head { position: sticky; top: 24px; align-self: start; } }
@media (min-width: 681px) { .apply__next .steps li { grid-template-columns: 2.5rem minmax(0, 13rem) minmax(0, 1fr); column-gap: 0; } .apply__next .steps__h { padding-right: 24px; } }
.sa-states > div { padding-top: 20px; border-top: 1px solid var(--rule); }
.sa-code { display: flex; align-items: center; gap: 12px; min-height: 26px; margin-bottom: 12px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.sa-states h3 { font-size: 1.375rem; line-height: 1.2; }
.sa-states h3 + p { margin: 12px 0 8px; color: var(--slate); }
