/* Speedy Plumbing Baltimore — single stylesheet, mobile first.
   Breakpoints: md 768px, lg 1024px. Max content width 1160px. */

:root {
  --navy: #0c2340;
  --navy-2: #173a66;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --amber: #ffc845;
  --ink: #16202c;
  --muted: #4a5868;
  --line: #dbe2ea;
  --bg: #ffffff;
  --bg-soft: #f2f5f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(12, 35, 64, .06), 0 4px 14px rgba(12, 35, 64, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; height: auto; }

a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2.6vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.measure > *, p.measure { max-width: 72ch; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--navy); font-weight: 800; font-size: 1.05rem; line-height: 1.1; margin-right: auto;
  min-height: 44px;
}
.brand img { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.nav-toggle {
  min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer;
}
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; width: 100%; }
.primary-menu a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--navy); }
.primary-menu a:hover { color: var(--red); }
html:not(.js) .nav-toggle { display: none; }
.js .primary-menu { display: none; }
.js .primary-menu.is-open { display: flex; flex-direction: column; padding-bottom: 10px; }
.btn.header-call { display: none; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .js .primary-menu, .primary-menu { display: flex; flex-direction: row; width: auto; padding: 0; }
  .primary-nav { order: 2; }
  .btn.header-call { display: inline-flex; order: 3; margin-left: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-call { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .28); }
.btn-call:hover { background: var(--red-dark); color: #fff; }
.btn-lg { font-size: 1.2rem; min-height: 58px; padding: 14px 28px; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6); }
.btn-outline:hover { color: #fff; border-color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--navy); color: #c9d6e6; font-size: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 10px 0 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: #8ea5c2; }
.breadcrumb a { color: #fff; }
.breadcrumb [aria-current] { color: #c9d6e6; }

/* ---------- Hero (first section in main) ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding-block: 28px 40px; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero .centerpiece { font-size: 1.14rem; max-width: 62ch; color: #eaf0f7; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 8px; }
.hero-actions .btn { width: 100%; }
.hero-note { font-size: .95rem; color: #c9d6e6; margin: 0 0 18px; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.trust li {
  display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 10px 14px; font-weight: 600;
}
.trust svg { width: 22px; height: 22px; flex: none; color: var(--amber); margin-top: 2px; }

@media (min-width: 768px) {
  .hero { padding-block: 36px 56px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .hero-side .trust { grid-template-columns: 1fr; margin-top: 0; }
  .hero-side .trust li { padding: 14px 16px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 44px; }
.section.alt { background: var(--bg-soft); }
.section-intro { color: var(--muted); max-width: 70ch; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; color: var(--red); margin-bottom: .4rem; }
.answer { font-size: 1.1rem; max-width: 72ch; }
.source { font-size: .88rem; color: var(--muted); }

@media (min-width: 768px) { .section { padding-block: 60px; } }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; max-width: 76ch; }
.steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 62px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.steps strong { color: var(--navy); }

/* ---------- Cards ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  position: relative; height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); }
.card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:has(a.stretch:hover) { border-color: var(--navy-2); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Fact list (attribute verbalizer) ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.facts dt { font-size: .9rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Two column ---------- */
.split { display: grid; gap: 28px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel.navy { background: var(--navy); color: #eaf0f7; border-color: var(--navy); }
.panel.navy h2, .panel.navy h3 { color: #fff; }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: .97rem; }
caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--navy); }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
thead th { background: var(--bg-soft); color: var(--navy); font-size: .9rem; }
tbody th { position: sticky; left: 0; background: #fff; color: var(--navy); }

/* ---------- ZIP directory ---------- */
.zip-finder { margin: 8px 0 18px; max-width: 460px; }
.zip-finder label { display: block; font-weight: 700; margin-bottom: 6px; }
.zip-finder input {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 8px; background: #fff;
}
.zip-finder input:focus { border-color: var(--navy-2); outline: none; }
.finder-row { display: flex; gap: 8px; }
.finder-row input { flex: 1; min-width: 0; }
.finder-row .btn { min-height: 48px; border-radius: 8px; box-shadow: none; }
.zip-finder p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.zip-group + .zip-group { margin-top: 26px; }
.zip-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.zip-grid a {
  display: block; min-height: 44px; padding: 10px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; color: var(--ink);
}
.zip-grid a:hover { border-color: var(--navy-2); }
.zip-grid b { color: var(--navy); margin-right: 6px; }
.zip-grid span { color: var(--muted); font-size: .93rem; }
@media (min-width: 560px) { .zip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .zip-grid { grid-template-columns: repeat(3, 1fr); } }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }

.zip-table { min-width: 980px; }
.small-table { min-width: 520px; margin-top: 14px; }
.small-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.small-table tr.is-current th, .small-table tr.is-current td { background: #eef3f9; font-weight: 700; }
.zip-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zip-table tbody th a { font-weight: 800; }
#service-areas .table-scroll { max-height: 70vh; }
#service-areas thead th { position: sticky; top: 0; z-index: 1; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 80ch; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.5rem; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq details > p { padding: 0 18px 16px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding-block: 36px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe3e8; max-width: 60ch; }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #081a30; color: #b9c7d8; padding-block: 36px 96px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 22px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer li a { display: inline-block; padding-block: 6px; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; font-size: .85rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer { padding-block: 44px 36px; }
}

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 60px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
}
.callbar:hover { color: #fff; background: var(--red-dark); }
.callbar svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .callbar { display: none; } }

/* ---------- Guides ---------- */
.hero-guide h1 { max-width: 26ch; }
.quick { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 18px 20px; }
.quick-h { color: #fff; font-size: 1.1rem; margin-bottom: .7em; }
.quick ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: #eaf0f7; }
.quick li::marker { color: var(--amber); font-weight: 800; }
.step-section .kicker { margin-bottom: .2rem; }
.step-section p, .step-section ul { max-width: 72ch; }
.callout-warn { border-left: 4px solid var(--red); background: #fdeef0; padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 72ch; }
.callout-warn strong { color: var(--red-dark); }
.source-list { padding-left: 1.2em; display: grid; gap: 6px; font-size: .95rem; }
.plain-list { padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- Pricing ---------- */
.price-table td.price { font-weight: 800; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-local, .price-geo { font-size: .85rem; font-weight: 600; color: var(--muted); }
#pricing .table-scroll { margin: 22px 0 10px; }
#pricing h3 { margin-top: 26px; }
.price-quick { display: grid; gap: 10px; margin: 0; }
.price-quick div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .15); padding-bottom: 8px; }
.price-quick dt { color: #c9d6e6; }
.price-quick dd { margin: 0; color: #fff; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quick-note { margin: 10px 0 0; font-size: .85rem; color: #c9d6e6; }

/* ---------- Placeholder warning ---------- */
.dev-banner { background: var(--amber); color: #3a2a00; text-align: center; font-weight: 700; font-size: .9rem; padding: 6px 12px; }
