/* =============================================================
   Alpha-Beta Plumbing Service — design system
   Lightweight, zero-JS-framework CSS for fast Core Web Vitals.
   ============================================================= */

:root {
  --navy: #0d2b4a;
  --navy-2: #10395f;
  --blue: #1272c4;
  --blue-dark: #0d5da3;
  --blue-light: #e8f2fb;
  --orange: #f26a1b;
  --orange-dark: #d95a10;
  --ink: #1b2733;
  --muted: #52657a;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --border: #d9e4ee;
  --gold: #f5a623;
  --green: #1d8a4e;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(13, 43, 74, 0.08);
  --shadow-lg: 0 10px 30px rgba(13, 43, 74, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1160px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 0.6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(242, 106, 27, 0.35); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-lg { font-size: 1.15rem; padding: 1rem 2rem; }
.btn svg { flex: 0 0 auto; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: #dbe7f3; font-size: 0.85rem;
  padding: 0.4rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-badges { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.topbar-badges span { display: inline-flex; align-items: center; gap: 0.35rem; }
.topbar svg { width: 14px; height: 14px; fill: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { line-height: 1.15; }
.brand-name { display: block; font-weight: 800; color: var(--navy); font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-tag { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.header-phone-text { text-align: right; line-height: 1.2; display: none; }
.header-phone-label { font-size: 0.72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.header-phone-number { font-weight: 800; color: var(--navy); font-size: 1.15rem; white-space: nowrap; display: block; }
.header-phone-number:hover { color: var(--blue); text-decoration: none; }
.call-mini {
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.call-mini svg { fill: #fff; width: 20px; height: 20px; }
.call-mini:hover { background: var(--orange-dark); }

/* ---------- Nav (CSS-only mobile menu) ---------- */
.nav-toggle-input { position: absolute; opacity: 0; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 10px; border-radius: 8px; border: 1px solid var(--border);
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle-input:checked + .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle-input:checked + .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked + .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-toggle-input:focus-visible + .nav-toggle { outline: 2px solid var(--blue); }

.site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 80px); overflow-y: auto;
}
.site-header:has(.nav-toggle-input:checked) .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.site-nav li { margin: 0; }
.site-nav > ul > li { border-bottom: 1px solid var(--bg-soft); }
.site-nav a {
  display: block; padding: 0.8rem 1.5rem; color: var(--navy);
  font-weight: 600; text-decoration: none;
}
.site-nav a:hover { background: var(--blue-light); text-decoration: none; }
.nav-sub { padding-left: 0; }
.nav-sub a { padding-left: 2.6rem; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.nav-cta { display: none; }

@media (min-width: 980px) {
  .header-phone-text { display: block; }
  .nav-toggle { display: none; }
  .site-header { position: static; }
  .header-wrap { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--border); }
  .site-nav {
    display: block; position: static; box-shadow: none; border-top: 1px solid var(--border);
    overflow: visible; max-height: none;
  }
  .site-nav > ul {
    display: flex; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
    align-items: center;
  }
  .site-nav > ul > li { border: 0; position: relative; }
  .site-nav > ul > li > a { padding: 0.85rem 1rem; font-size: 0.98rem; }
  .nav-sub {
    display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); padding: 0.4rem 0; z-index: 90;
  }
  .site-nav li:hover > .nav-sub, .site-nav li:focus-within > .nav-sub { display: block; }
  .nav-sub a { padding: 0.55rem 1.2rem; }
  .nav-caret { font-size: 0.65em; margin-left: 0.25em; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(18, 114, 196, 0.55), transparent 60%),
    linear-gradient(150deg, var(--navy) 20%, var(--navy-2) 65%, #14507e 100%);
  color: #e8f1fa; padding: 3.5rem 0 3rem;
}
.hero h1 { color: #fff; max-width: 21ch; }
.hero-sub { font-size: 1.2rem; max-width: 56ch; color: #c9dcee; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.hero-points li { display: flex; gap: 0.55rem; align-items: baseline; font-weight: 600; color: #dcebf8; }
.hero-points svg { width: 16px; height: 16px; flex: 0 0 auto; fill: var(--gold); transform: translateY(2px); }
.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.6rem; max-width: 420px;
}
.hero-card h2 { font-size: 1.25rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #d7e6f4; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.section-navy .lead { color: #b9cfe3; }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--border); }
.trustbar-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  padding: 1.1rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.trust-item { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.trust-item svg { width: 30px; height: 30px; flex: 0 0 auto; }
@media (min-width: 900px) { .trustbar-inner { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 a { color: var(--navy); }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-link { margin-top: auto; font-weight: 700; }
.card-link::after { content: " →"; }

/* ---------- Checklist / feature lists ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: baseline; }
.checklist svg { width: 17px; height: 17px; fill: var(--green); flex: 0 0 auto; transform: translateY(2px); }
.checklist-2col { grid-template-columns: 1fr; }
@media (min-width: 720px) { .checklist-2col { grid-template-columns: 1fr 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(var(--steps, 4), 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ---------- Reviews ---------- */
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.review-card blockquote { margin: 0.6rem 0 0.9rem; font-style: italic; color: var(--ink); }
.review-meta { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.review-meta strong { color: var(--navy); }

/* ---------- FAQ (CSS-only accordion) ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0; overflow: hidden; }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 1.05rem 1.3rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--bg-soft); }
.faq-body { padding: 1rem 1.3rem 1.2rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, #f8822f 100%);
  color: #fff; padding: 2.8rem 0;
}
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.cta-band h2 { color: #fff; margin: 0 0 0.3rem; }
.cta-band p { margin: 0; font-size: 1.1rem; color: #ffe8d6; }
.cta-band .btn { background: #fff; color: var(--orange-dark); font-size: 1.2rem; box-shadow: var(--shadow-lg); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* ---------- Content pages ---------- */
.page-hero { background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #d9e8f5; padding: 2.6rem 0; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c2d7e9; max-width: 62ch; }
.page-hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }

.breadcrumbs { font-size: 0.85rem; margin-bottom: 1rem; color: #9db8d0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.35rem; color: #6d8db0; }
.breadcrumbs a { color: #bcd4e8; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.article-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .article-aside { position: sticky; top: 1.5rem; }
}

.aside-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.aside-card h3 { font-size: 1.05rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.aside-card li { margin: 0; }
.aside-card a { font-weight: 600; }
.aside-cta { background: var(--navy); color: #cfe1f1; border: 0; }
.aside-cta h3 { color: #fff; }
.aside-cta .btn { margin-top: 0.8rem; width: 100%; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
table.data { border-collapse: collapse; width: 100%; min-width: 480px; background: #fff; }
table.data th, table.data td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; }
table.data th { background: var(--blue-light); color: var(--navy); }

/* ---------- Areas / chips ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.chip-list li { margin: 0; }
.chip {
  display: inline-block; background: var(--blue-light); color: var(--navy);
  border: 1px solid #cadff2; border-radius: 999px; padding: 0.3rem 0.85rem;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
a.chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); text-decoration: none; }

/* ---------- Map embed ---------- */
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0; }
.contact-info dt { font-weight: 800; color: var(--navy); }
.contact-info dd { margin: 0; }

.form-grid { display: grid; gap: 1rem; }
.form-field label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.3rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--blue); border-color: var(--blue);
}
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b7cde1; font-size: 0.95rem; }
.footer-main {
  display: grid; gap: 2rem; padding: 3rem 1.25rem 2rem;
  max-width: var(--maxw); margin: 0 auto;
}
@media (min-width: 860px) { .footer-main { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: #b7cde1; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand p { margin-top: 0.7rem; }
.footer-phone { font-size: 1.35rem; font-weight: 800; color: #fff !important; }
.footer-nap { margin-top: 0.9rem; font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.1rem 1.25rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; padding: 0; font-size: 0.85rem; color: #8aa6c0; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: flex; background: var(--navy); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}
.sticky-call a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 0.5rem; color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none;
}
.sticky-call a:first-child { background: var(--orange); }
.sticky-call svg { width: 18px; height: 18px; fill: currentColor; }
body { padding-bottom: 58px; }
@media (min-width: 980px) {
  .sticky-call { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- 404 ---------- */
.error-hero { text-align: center; padding: 5rem 1.25rem; }
.error-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.text-muted { color: var(--muted); }

@media print {
  .topbar, .site-nav, .sticky-call, .cta-band, .nav-toggle { display: none !important; }
}
