/* ==========================================================================
   Water-damage statewide site — single stylesheet.
   Mobile-first, system fonts (zero network fonts), minimal, fast.
   ========================================================================== */
:root {
  --navy: #0d2a4a;
  --blue: #1667c9;
  --blue-dark: #0f4f9e;
  --accent: #e8442b;      /* emergency CTA */
  --accent-dark: #c5361f;
  --ink: #1b2430;
  --muted: #45505f;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 19px;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; max-width: 72ch; }
a { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 44px 0; }
.section-soft { background: var(--bg-soft); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 14px 22px; border-radius: var(--radius); color: var(--white);
  background: var(--accent); transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue-dark); border: 2px solid var(--blue); padding: 12px 22px; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy); color: var(--white);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.brand { color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand span { color: #7fb2f0; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: #e8eef7; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--white); }
.nav .call { background: var(--accent); padding: 9px 16px; border-radius: 8px; font-weight: 700; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy), var(--blue-dark)); color: var(--white); }
.hero .wrap { padding: 54px 16px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero p { color: #d6e3f4; font-size: 1.1rem; max-width: 60ch; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: #7fb2f0; margin-bottom: 10px; }

/* Split (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.media img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.hero .media img { box-shadow: 0 10px 30px rgba(0,0,0,.28); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Grids + cards */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: .6em; font-size: .97rem; }
.card a { font-weight: 600; text-decoration: none; }

/* Lists */
.list { margin: 0; padding-left: 20px; }
.list li { margin-bottom: 8px; color: var(--muted); }
.list li strong { color: var(--ink); }
.steps-list { max-width: 760px; }
.steps-list li { padding-left: 4px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--navy); }
.faq p { color: var(--muted); }

/* Chips (nearby cities / zips) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 9px 16px; text-decoration: none; color: var(--blue-dark); font-size: .95rem; }
.chips a:hover { background: #e7eef8; }

/* Call band */
.callband { background: var(--accent); color: #fff; text-align: center; padding: 30px 16px; }
.callband a { color: #fff; }
.callband p { max-width: none; margin-left: auto; margin-right: auto; }
.callband .num { font-size: 1.7rem; font-weight: 800; text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: #c6d3e4; padding: 34px 0 20px; font-size: .93rem; }
.site-footer a { color: #c6d3e4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-bottom { border-top: 1px solid #1e3f66; margin-top: 22px; padding-top: 16px; color: #8ea6c2; }

/* Sticky mobile call bar */
.callbar { display: none; }

/* Responsive */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 38px 0; }
  .hero .wrap { padding: 44px 16px; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.55rem; }
  body { font-size: 18px; }
  .section { padding: 32px 0; }
  .hero .wrap { padding: 34px 16px; }
  .hero p { font-size: 1.05rem; }
  /* Mobile nav */
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 8px 16px 16px; gap: 4px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .nav.open a { padding: 13px 6px; font-size: 1.08rem; border-bottom: 1px solid #1e3f66; }
  .nav.open a:last-child { border-bottom: 0; }
  .nav.open .call { text-align: center; margin-top: 8px; border-bottom: 0; }
  .nav-toggle { display: block; padding: 8px; line-height: 1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 20px; }
  /* Sticky bottom call bar */
  .callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--accent); color: #fff; text-align: center;
    box-shadow: 0 -4px 16px rgba(0,0,0,.2);
  }
  .callbar a { flex: 1; color: #fff; text-decoration: none; font-weight: 800; padding: 16px; font-size: 1.05rem; }
  body { padding-bottom: 56px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .brand { font-size: 1rem; }
  /* Full-width, easy-tap buttons */
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; text-align: center; padding: 15px 18px; }
  .card { padding: 16px; }
}

/* Pricing section (ranges only, snippet-friendly) */
.price-lead { font-size: 1.18rem; line-height: 1.6; margin-bottom: .6em; }
.price-lead strong { color: var(--navy); }
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 26px rgba(13, 42, 74, .08);
}
.price-table th, .price-table td { padding: 17px 22px; font-size: 1.05rem; text-align: left; vertical-align: middle; }
.price-table thead th {
  background: linear-gradient(180deg, #12365c, var(--navy)); color: #fff;
  font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
}
.price-table thead th:last-child, .price-table td:last-child { text-align: right; }
.price-table tbody tr + tr td { border-top: 1px solid var(--line); }
.price-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.price-table td:first-child { font-weight: 600; color: var(--ink); }
.price-table td:last-child {
  font-weight: 800; color: var(--blue-dark); white-space: nowrap; font-size: 1.12rem;
}
.price-note { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.lead { font-size: 1.15rem; }
@media (max-width: 560px) {
  .price-table th, .price-table td { padding: 13px 14px; font-size: .96rem; }
  .price-table td:last-child { font-size: 1.02rem; }
  .price-lead { font-size: 1.08rem; }
}

/* Interactive tool calculators */
.calc { max-width: 580px; }
.calc-row { margin-bottom: 16px; }
.calc-row label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.calc-row input, .calc-row select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1.05rem; background: #fff; color: var(--ink); font-family: inherit;
}
.calc-row input:focus, .calc-row select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.calc-result {
  margin-top: 10px; background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 18px 20px;
}
.calc-num { display: block; font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.15; }
.calc-note { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }
