/* ============================================================
   Katy Water Damage Experts — design system
   Mobile-first. Vanilla CSS. Zero external requests.
   ============================================================ */
:root {
  --navy: #0f2a43;
  --navy-deep: #0a1e33;
  --navy-soft: #16405f;
  --red: #d92d20;
  --red-dark: #b42318;
  --white: #ffffff;
  --off: #f5f8fb;
  --line: #dfe7ef;
  --ink: #17222f;
  --muted: #5c6f84;
  --muted-light: #8ba0b5;
  --radius: 12px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(10, 30, 51, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: .45em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.25rem 0; }
.section.tint { background: var(--off); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
  margin-bottom: .7em;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1.2; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(217, 45, 32, .35); }
.btn-call:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--off); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.25rem; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.02rem; line-height: 1.15; }
.brand-name small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.main-nav { display: none; }
.nav-toggle {
  background: none; border: 2px solid rgba(255,255,255,.35); border-radius: 8px;
  color: #fff; padding: .45rem .6rem; cursor: pointer; line-height: 1;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.header-call { display: none; }
.mobile-nav {
  display: none; background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.12);
  padding: .5rem 1.25rem 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; color: #fff; text-decoration: none; font-weight: 600;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  padding: 3.5rem 0 4.5rem;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C240,90 480,10 720,45 C960,80 1200,20 1440,55 L1440,90 L0,90 Z' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E") bottom / cover no-repeat;
  pointer-events: none;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 .accent { color: #ffb4a8; }
.hero .lede { color: #c9d6e2; }
.hero-actions { display: flex; flex-direction: column; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero-note { font-size: .92rem; color: #aebfd1; }
.hero-note strong { color: #fff; }
.trust-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; font-weight: 600; color: #eaf1f7;
  margin: 0;
}
.trust-chips svg { width: 15px; height: 15px; flex: none; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding: 1.4rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.trust-item { display: flex; gap: .7rem; align-items: flex-start; }
.trust-item svg { width: 30px; height: 30px; flex: none; }
.trust-item strong { display: block; color: var(--navy); font-size: .95rem; }
.trust-item span { font-size: .85rem; color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(10,30,51,.14); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: linear-gradient(140deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; flex: 1; }
.card .more { font-weight: 700; color: var(--red); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow); margin: 0;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; flex: none;
}
.step.emergency .step-num { background: var(--red); }
.step h3 { margin: 0 0 .3em; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Commitment / callout boxes ---------- */
.callout {
  border-left: 5px solid var(--red); background: #fff5f4;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem; margin: 1.8rem 0;
}
.callout.navy { border-color: var(--navy); background: #eef3f8; }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Service area pills ---------- */
.area-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.area-pills li { margin: 0; }
.area-pills a {
  display: inline-block; padding: .55rem 1.1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  font-weight: 700; font-size: .95rem; text-decoration: none;
}
.area-pills a:hover { border-color: var(--navy); background: var(--off); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  padding: 1.05rem 1.25rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--red); flex: none;
  transition: transform .15s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq-list .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Quote form ---------- */
.quote-box {
  background: var(--navy); color: #fff; border-radius: 18px;
  padding: 2rem 1.5rem; box-shadow: var(--shadow);
}
.quote-box h2, .quote-box h3 { color: #fff; }
.quote-box p { color: #c9d6e2; }
.quote-form { display: grid; gap: .9rem; margin-top: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; color: #eaf1f7; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; font-family: inherit;
}
.field select option { color: #17222f; }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #93a7bb; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent;
}
.form-note { font-size: .85rem; color: #93a7bb; }
.form-success {
  display: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius); padding: 1.4rem; text-align: center;
}
.form-success.show { display: block; }
.form-success strong { display: block; font-size: 1.15rem; margin-bottom: .4rem; color: #fff; }
.form-success a { color: #ffb4a8; font-weight: 800; font-size: 1.25rem; }

/* ---------- Reviews placeholder ---------- */
.reviews-shell {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; color: var(--muted); background: var(--off);
}
.reviews-shell strong { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; text-align: center; border-radius: 18px;
  padding: 2.6rem 1.6rem; margin: 1rem 0 0;
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #ffd9d3; max-width: 38rem; margin: 0 auto 1.4rem; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.7); }
.cta-band .phone-big {
  display: inline-block; font-size: 1.7rem; font-weight: 800; color: #fff;
  text-decoration: none; margin-bottom: 1.1rem; letter-spacing: .01em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aebfd1; padding: 3rem 0 7.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9em; }
.site-footer a { color: #c9d6e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-brand .brand-name { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.4rem;
  display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; color: #7e93a8;
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: .6rem; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 30, 51, .97); border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.mobile-callbar .btn { flex: 1; padding: .85rem .5rem; font-size: 1rem; }
body { padding-bottom: 0; }
@media (max-width: 767px) { body { padding-bottom: 76px; } .site-footer { padding-bottom: 9rem; } }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  color: #fff; padding: 2.8rem 0;
}
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
.page-hero .lede { color: #c9d6e2; font-size: 1.05rem; }
.breadcrumbs { font-size: .85rem; color: #93a7bb; margin-bottom: 1rem; }
.breadcrumbs a { color: #c9d6e2; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero .hero-actions { flex-direction: column; }

/* ---------- Two-column content ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2em; }
.split { display: grid; gap: 2rem; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15em; height: 1.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d92d20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .hero-actions, .page-hero .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .trustbar-inner { grid-template-columns: repeat(4, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .main-nav { display: flex; align-items: center; gap: 1.35rem; }
  .main-nav a { color: #dbe5ee; text-decoration: none; font-weight: 600; font-size: .95rem; }
  .main-nav a:hover { color: #fff; }
  .nav-toggle { display: none; }
  .header-call { display: inline-flex; }
  .mobile-callbar { display: none; }
  .split { grid-template-columns: 1fr 340px; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .quote-box { padding: 2.6rem 2.4rem; }
}
@media (min-width: 1024px) {
  .section { padding: 4.25rem 0; }
  .hero { padding: 5rem 0 6rem; }
}
