/* Radiant Plumbing. Deep blue with an orange reserved for calls to action. */
:root {
  --ink: #0F2233;
  --lake: #0E3A5C;
  --ground: #F6F9FC;
  --panel: #E4EEF7;
  --line: #CBD8E3;
  --muted: #45586A;
  --patina: #8FD3F4;
  --blue: #0B6AA2;
  --accent: #C2500F;
  --accent-hover: #A34209;
  --alert: #B3261E;
  --head: 'Public Sans', Arial, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Public Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--patina); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
.wrap-narrow { max-width: 1120px; }
.strong { font-weight: 700; }
.muted { color: var(--muted); }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.h1 { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -.025em; font-size: clamp(38px, 4.8vw, 60px); line-height: 1.06; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -.02em; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -.01em; font-size: 21px; line-height: 1.25; }
.lede { max-width: 62ch; color: var(--muted); }
.intro { max-width: 36em; font-size: 20px; line-height: 1.5; }
.ph { font-family: var(--mono); font-size: .86em; background: #FFE7A0; color: #3D2F00; padding: .05em .3em; border-radius: 3px; }

.section { padding-block: 64px; }
.section-tight { padding-block: 44px; }
.bg-panel { background: var(--panel); }
.bg-white { background: #fff; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 56px; align-items: center; }
.split-top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 26px; border: 2px solid transparent; border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.1; letter-spacing: .015em; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-lg { min-height: 64px; font-size: 28px; }
.btn-sm { min-height: 48px; padding-inline: 18px; }
.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-hover); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--patina); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.chip { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; background: var(--alert); color: #fff; font-size: 14px; font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; background: var(--panel); border-radius: 999px; font-size: 15px; font-weight: 600; }

.topbar { background: var(--ink); color: #fff; font-size: 15px; }
.topbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; padding-block: 8px; }
.header { position: sticky; top: 0; z-index: 30; background: var(--ground); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-pipe { fill: none; stroke: var(--accent); stroke-width: 8; }
.logo-flange { fill: none; stroke: var(--ink); stroke-width: 3; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: .01em; }
.logo-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; }
.nav { display: flex; gap: 28px; }
.nav a, .mobile-nav a { font-weight: 600; font-size: 16px; text-decoration: none; }
.nav a { padding: 10px 2px; }
.nav a:hover, .nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--accent); }
.menu-button { display: none; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: transparent; color: var(--ink); font: 600 16px var(--body); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; padding: 4px max(18px, env(safe-area-inset-left, 0px)) 12px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

.breadcrumb { font-size: 15px; color: var(--muted); }
.dark .breadcrumb { color: #fff; }

.hero { background-color: var(--ground); background-image: linear-gradient(90deg, rgba(246,249,252,.98) 0%, rgba(246,249,252,.95) 52%, rgba(246,249,252,.3) 76%, rgba(246,249,252,0) 100%), url(/images/water-heater.jpg); background-size: cover; background-position: right center; }
.hero-inner { padding-block: 84px 92px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; max-width: 640px; min-width: 0; }
.hero-title { margin: 0; font-family: var(--head); font-weight: 800; letter-spacing: -.025em; font-size: clamp(42px, 5.2vw, 66px); line-height: 1.04; text-wrap: balance; }
.hero-text { max-width: 34em; font-size: 20px; line-height: 1.5; }
.hero-dark { color: #fff; background-color: var(--lake); background-image: linear-gradient(90deg, rgba(14,58,92,.98) 0%, rgba(14,58,92,.92) 52%, rgba(14,58,92,.55) 100%), url(/images/bathroom.jpg); background-size: cover; background-position: right center; }
.hero-dark .stack-lg { padding-block: 28px 76px; }
.hero-dark .eyebrow { color: var(--patina); }
.hero-dark .h1 { max-width: 13em; }

.trust { display: flex; align-items: center; gap: 14px; min-width: 0; }
.trust-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--panel); color: var(--lake); }
.trust-title { font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1.25; }
.trust-note { color: var(--muted); font-size: 15px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px 28px; padding-block: 26px; }

.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; min-width: 0; }
a.card:hover { border-color: var(--lake); box-shadow: 0 8px 20px rgba(15,34,51,.08); }
.card-title { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -.01em; font-size: 24px; line-height: 1.2; }
.badge { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px; background: var(--panel); color: var(--lake); }
.card-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--lake); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 4px 20px; }
.jobs li { display: flex; gap: 8px; font-size: 16px; }
.jobs li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }

.emergency { background: var(--lake); color: #fff; }
.emergency .eyebrow { color: var(--patina); }
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.tab { min-height: 50px; padding: 10px 18px; border: 2px solid var(--patina); border-radius: 10px; background: transparent; color: #fff; font: 600 16px var(--body); text-align: left; cursor: pointer; }
.tab:hover { background: rgba(143,211,244,.16); }
.tab[aria-pressed="true"] { background: var(--patina); color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 16px; padding-block: 14px; border-top: 1px solid rgba(143,211,244,.4); }
.steps li::before { content: counter(step); min-width: 20px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--patina); }
.steps-title { margin: 0 0 6px; font-family: var(--head); font-weight: 700; font-size: 19px; }
.js .steps-title { display: none; }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 32px; }
.process li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 5px solid var(--accent); }

.review { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 20px; line-height: 1.45; }
.review figcaption { color: var(--muted); }

.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-bottom: 1px solid var(--line); }
.towns li { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 500; }
.town-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.town-cards a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 700; text-decoration: none; }
.town-cards a::after { content: "→"; color: var(--lake); }
.town-cards a:hover { border-color: var(--lake); box-shadow: 0 8px 20px rgba(15,34,51,.08); }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.places li { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.places li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.area-photo { position: relative; min-width: 0; }
.area-photo img, .rounded-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.photo-badge { position: absolute; left: 14px; bottom: 14px; padding: 10px 14px; background: #fff; border-radius: 10px; font-size: 15px; line-height: 1.3; }
.blue { color: var(--blue); }

.map { position: relative; aspect-ratio: 720 / 690; max-width: 100%; overflow: hidden; background: #F8FAF9; border: 1px solid var(--line); border-radius: 10px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m-area { fill: #DCEAF6; stroke: #DCEAF6; stroke-width: 24; stroke-linejoin: round; }
.m-water { fill: #B4D6EC; }
.m-river { fill: none; stroke: #B4D6EC; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.m-lake { font-family: var(--body); font-size: 21px; font-style: italic; fill: var(--lake); }
.pin { position: absolute; display: flex; align-items: center; gap: 5px; min-height: 24px; transform: translate(-5px, -50%); font-size: 14px; font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.pin:hover { color: var(--accent); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 1.5px solid #fff; }
.pin-left { flex-direction: row-reverse; transform: translate(calc(-100% + 5px), -50%); }
.pin-top { flex-direction: column-reverse; gap: 1px; transform: translate(-50%, calc(-100% + 5px)); }
.pin-main { font-size: 17px; font-weight: 700; }
.pin-main .dot { width: 14px; height: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 12px; border: 1.5px solid var(--muted); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.field-full { grid-column: 1 / -1; }
.request-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.form-note { color: var(--muted); font-size: 15px; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; background: #fff; border: 2px solid var(--lake); border-radius: 10px; font-weight: 600; }
.form-status[hidden], .trap-field { display: none; }
.alert-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #FCE7E5; color: #7A130C; border-radius: 14px; }
.alert-phone { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1.15; text-decoration: none; }

.faq { border-top: 1px solid var(--line); padding: 16px 0; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 32px; font-weight: 700; cursor: pointer; }
.faq p { margin-top: 10px; max-width: 68ch; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.list li { padding: 10px 0; border-top: 1px solid var(--line); }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 44px; }
.band-lake { background: var(--lake); color: #fff; }
.band-ink { background: var(--ink); color: #fff; }
.placeholder-photo { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 340px; aspect-ratio: 1 / 1; padding: 20px; background: var(--panel); border: 2px dashed var(--muted); border-radius: 14px; text-align: center; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: 12px; }

.footer { background: var(--ink); color: #fff; font-size: 16px; }
.footer .eyebrow { padding-bottom: 6px; color: var(--patina); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; padding-block: 52px 32px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 16px 24px; font-size: 15px; }
.footer-links { display: flex; gap: 20px; }
.callbar { display: none; }

@media (max-width: 1100px) {
  .hero { background-image: linear-gradient(90deg, rgba(246,249,252,.98) 0%, rgba(246,249,252,.95) 58%, rgba(246,249,252,.55) 82%, rgba(246,249,252,.2) 100%), url(/images/water-heater.jpg); }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-button { display: inline-flex; align-items: center; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .wrap { padding-inline: max(18px, env(safe-area-inset-left, 0px)); }
  .section { padding-block: 48px; }
  .card { padding: 22px; }
  .photo-card { padding: 0; }
  .hero { background: none; }
  .hero::before { content: ""; display: block; height: 200px; background: url(/images/water-heater.jpg) center 35% / cover no-repeat; }
  .hero-inner { padding-block: 24px 32px; }
  .hero-text, .intro { font-size: 18px; }
  .pin { font-size: 12px; }
  .pin-main { font-size: 14px; }
  .callbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: sticky; bottom: 0; z-index: 20; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--ink); }
  .callbar .btn { padding: 8px; min-height: 52px; font-size: 20px; }
}

@media (max-width: 480px) {
  .header-row { gap: 10px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-name { font-size: 24px; }
  .header-actions .btn-call { display: none; }
  .btn-lg { width: 100%; padding-inline: 12px; font-size: 26px; }
}
