/* =====================================================================
   AquaPure — Trusted Local Water Quality Experts
   Global stylesheet. Theme: Deep Blue / White / Aqua accents.
   Plain CSS, no build step. Mobile-first.
   ===================================================================== */

:root {
  /* Brand palette */
  --navy-900: #061a30;
  --navy-800: #0a2540;
  --navy-700: #0d345c;
  --blue-600: #1259c3;
  --blue-500: #1f74e0;
  --aqua-500: #00b4d8;
  --aqua-400: #2cc6e6;
  --aqua-300: #6fe0f2;
  --aqua-050: #e6f7fb;

  --ink: #0a2540;
  --body: #41546b;
  --muted: #6b7d93;
  --line: #e3ebf3;
  --bg: #ffffff;
  --bg-soft: #f5f9fd;
  --bg-tint: #eef6fc;

  --success: #16a34a;
  --warn: #e0a106;
  --danger: #dc2626;

  --white: #ffffff;

  /* Effects */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
  --shadow: 0 10px 30px rgba(10, 37, 64, .08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .14);
  --ring: 0 0 0 4px rgba(0, 180, 216, .18);

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img, svg, video { max-width: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--aqua-500); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
strong { color: var(--ink); }

/* ------------------------------ Layout ------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), #ffffff); }
.section--navy { background: radial-gradient(1200px 600px at 80% -10%, #11365f 0%, var(--navy-800) 45%, var(--navy-900) 100%); color: #cfe0f0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--aqua-500); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--aqua-300); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--navy .section-head p { color: #aac4dc; }
.lede { font-size: 1.15rem; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(135deg, var(--aqua-500), var(--blue-500));
  color: #fff; box-shadow: 0 10px 24px rgba(0, 180, 216, .35);
}
.btn--primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 180, 216, .45); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); }
.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { color: var(--blue-600); border-color: var(--aqua-400); transform: translateY(-2px); }
.btn--lg { padding: 19px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 38px; height: 38px; flex: none; }
.brand small { display:block; font-size:.62rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--aqua-500); margin-top:2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: nowrap; }
.nav-links a { color: var(--navy-700); font-weight: 600; font-size: .96rem; padding: 10px 14px; border-radius: 10px; white-space: nowrap; }
.nav-links a:hover { color: var(--blue-600); background: var(--bg-tint); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy-800); }
.nav-phone:hover { color: var(--aqua-500); }
.nav-phone svg { width: 18px; height: 18px; color: var(--aqua-500); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy-800); border-radius: 3px; margin: 5px 0; transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 14px var(--gutter) 26px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; z-index: 55;
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-desktop-phone { display: none !important; }
}

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #dcebf9; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(6,26,48,.93) 0%, rgba(8,40,72,.78) 42%, rgba(8,40,72,.30) 100%),
    url("https://images.unsplash.com/photo-1556909212-d5b604d0c90d?auto=format&fit=crop&w=1600&q=80");
  background-size: cover; background-position: center; z-index: 0;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: clamp(60px, 8vw, 104px) 0; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--aqua-300); }
.hero p.sub { font-size: 1.22rem; color: #cfe0f0; max-width: 560px; margin-bottom: 28px; }
.hero .btn-row { margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: #e7f3fb; }
.hero-badge svg { width: 17px; height: 17px; color: var(--aqua-300); flex: none; }
@media (max-width: 920px) { .hero__inner { grid-template-columns: 1fr; gap: 30px; } .hero-card { max-width: 520px; } }

/* Inline lead card on hero */
.hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
  color: var(--body);
}
.hero-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.hero-card .micro { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }

/* ------------------------------ Forms ------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--navy-700); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua-400); box-shadow: var(--ring); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { font-size: .76rem; color: var(--danger); display: none; }
.field.invalid .err { display: block; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 12px; }
.form-success {
  display: none; text-align: center; padding: 26px; background: #ecfdf3; border: 1.5px solid #bbf7d0;
  border-radius: var(--radius); color: #14532d;
}
.form-success.show { display: block; }
.form-success svg { width: 46px; height: 46px; color: var(--success); margin: 0 auto 10px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ------------------------------ Cards ------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--aqua-300); }
.card .ico {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--aqua-050), #d7f0fa); color: var(--blue-600);
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--body); margin-bottom: 14px; }
.card .meta { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--aqua-500); margin: 14px 0 4px; }
.card .meta:first-of-type { margin-top: 0; }
.card .tag-line { font-size: .95rem; color: var(--muted); margin: 0 0 10px; }
.card-link { font-weight: 700; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Photo-topped card (homepage solutions). Swap the background image to your own photo. */
.card.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card .card-photo { height: 190px; background-size: cover; background-position: center; background-color: var(--bg-tint); }
.card.has-photo .card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card.has-photo h3 { margin-top: 0; }
.card.has-photo .check { margin-top: auto; }

/* Hero free-test highlight */
.hero-flag { display: inline-flex; align-items: center; gap: 9px; background: rgba(0,180,216,.16); border: 1px solid rgba(111,224,242,.4); color: #d6f3fb; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; }
.hero-flag svg { width: 17px; height: 17px; color: var(--aqua-300); }

/* Problem card detail list */
.detail { margin: 12px 0; }
.detail dt { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.detail dd { margin: 2px 0 10px; color: var(--body); font-size: .95rem; }

/* checklist */
.check { list-style: none; display: grid; gap: 10px; }
.check li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.check li svg { width: 20px; height: 20px; color: var(--aqua-500); flex: none; margin-top: 2px; }
.section--navy .check li { color: #d6e6f4; }
.section--navy .check li svg { color: var(--aqua-300); }

/* ------------------------------ Steps ------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--aqua-500), var(--blue-500)); margin-bottom: 16px; font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(0,180,216,.35);
}
.step h3 { font-size: 1.18rem; }
.step p { font-size: .96rem; margin: 0; }

/* ------------------------------ Comparison table ------------------------------ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.compare-col { padding: 12px; }
.compare-col--us { background: linear-gradient(180deg, #08294a, var(--navy-800)); color: #fff; }
.compare-col--them { background: #fff; }
.compare-col h3 { padding: 18px 18px 6px; color: inherit; }
.compare-col--us h3 { color: #fff; }
.compare-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 16px; font-weight: 800; }
.compare-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px 18px; font-size: .98rem; }
.compare-col--us .compare-row { border-top: 1px solid rgba(255,255,255,.12); color: #e7f1fb; }
.compare-col--them .compare-row { border-top: 1px solid var(--line); color: var(--body); }
.compare-row svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.compare-col--us .compare-row svg { color: var(--aqua-300); }
.compare-col--them .compare-row svg { color: #c2ccd8; }
@media (max-width: 620px) { .compare { grid-template-columns: 1fr; } }

/* ------------------------------ Testimonials ------------------------------ */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.quote p { font-size: 1.02rem; color: var(--ink); flex: 1; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--aqua-400), var(--blue-500)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.quote .who b { color: var(--ink); display: block; font-size: .96rem; }
.quote .who span { font-size: .85rem; color: var(--muted); }

/* ------------------------------ Stats ------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 620px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat { text-align: center; padding: 10px; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: #9fc0dc; font-size: .92rem; font-weight: 600; }

/* ------------------------------ FAQ ------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 20px 22px; font-size: 1.06rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q .chev { width: 22px; height: 22px; flex: none; transition: transform .25s; color: var(--aqua-500); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--body); }

/* ------------------------------ Financing ------------------------------ */
.finance-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 820px){ .finance-cards { grid-template-columns: 1fr; } }
.finance-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.finance-card.feature { border-color: var(--aqua-400); box-shadow: var(--shadow); position: relative; }
.finance-card.feature::after { content: "Most Popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,var(--aqua-500),var(--blue-500)); color:#fff; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:5px 14px; border-radius:999px; }
.finance-card .price { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 6px 0; }
.finance-card .price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.finance-card .term { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }

/* ------------------------------ Banner CTA ------------------------------ */
.cta-band { background: linear-gradient(135deg, var(--blue-600), var(--aqua-500)); color: #fff; border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 64px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eaf7fc; font-size: 1.12rem; max-width: 620px; margin: 0 auto 26px; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--navy-900); color: #9fb6cd; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: .94rem; color: #93acC4; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #9fb6cd; font-size: .95rem; }
.footer-col a:hover { color: var(--aqua-300); }
.footer-contact a { display: flex; align-items: center; gap: 9px; color: #cfe0f0; font-weight: 600; margin-bottom: 10px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--aqua-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #7e97b0; }

/* ------------------------------ Sticky / persistent CTAs ------------------------------ */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; display: none;
  grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(10,37,64,.12);
}
.mobile-bar .btn { padding: 14px 10px; font-size: .95rem; }
.mobile-bar .btn--call { background: #fff; color: var(--navy-800); border-color: var(--line); }
@media (max-width: 760px){ .mobile-bar { display: grid; } body { padding-bottom: 78px; } }

.float-call {
  position: fixed; right: 20px; bottom: 24px; z-index: 65; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua-500), var(--blue-500)); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(0,180,216,.5); animation: pulse 2.4s infinite;
}
.float-call svg { width: 26px; height: 26px; }
.float-call:hover { color:#fff; transform: scale(1.06); }
@media (max-width: 760px){ .float-call { display: none; } }
@keyframes pulse { 0%{box-shadow:0 12px 28px rgba(0,180,216,.5),0 0 0 0 rgba(0,180,216,.45);} 70%{box-shadow:0 12px 28px rgba(0,180,216,.5),0 0 0 16px rgba(0,180,216,0);} 100%{box-shadow:0 12px 28px rgba(0,180,216,.5),0 0 0 0 rgba(0,180,216,0);} }

/* Live chat bubble */
.chat-bubble {
  position: fixed; right: 20px; bottom: 92px; z-index: 65; background:#fff; border:1px solid var(--line);
  border-radius: 999px; padding: 10px 18px 10px 12px; display:flex; align-items:center; gap:9px; box-shadow: var(--shadow);
  font-weight:700; color: var(--navy-800); cursor:pointer;
}
.chat-bubble svg { width: 22px; height: 22px; color: var(--aqua-500); }
.chat-bubble:hover { box-shadow: var(--shadow-lg); }
@media (max-width: 760px){ .chat-bubble { bottom: 86px; right: 14px; padding: 9px 14px 9px 10px; font-size:.9rem; } }

/* ------------------------------ Exit intent modal ------------------------------ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,26,48,.6); backdrop-filter: blur(4px); z-index: 90;
  display: none; place-items: center; padding: 20px;
}
.modal-backdrop.show { display: grid; animation: fade .25s ease; }
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: 36px 30px 30px;
  position: relative; box-shadow: var(--shadow-lg); text-align: center; animation: pop .3s ease;
}
.modal .ico-lg { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--aqua-050), #d7f0fa); color: var(--blue-600); }
.modal .ico-lg svg { width: 34px; height: 34px; }
.modal h3 { font-size: 1.5rem; }
.modal p { color: var(--muted); }
.modal .close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.modal .close:hover { color: var(--ink); }
@keyframes fade { from{opacity:0;} to{opacity:1;} }
@keyframes pop { from{opacity:0; transform: translateY(16px) scale(.97);} to{opacity:1; transform:none;} }

/* ------------------------------ Reveal animation ------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-call { animation: none; } html { scroll-behavior: auto; } }

/* ------------------------------ Misc / page header ------------------------------ */
.page-hero { background: radial-gradient(900px 400px at 85% -20%, #11365f, var(--navy-800) 60%, var(--navy-900)); color: #cfe0f0; padding: clamp(54px, 7vw, 92px) 0; text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { font-size: 1.18rem; color: #bfd6ec; max-width: 660px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: #8fb0cf; margin-bottom: 16px; }
.breadcrumb a { color: #bfd6ec; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose ul li { margin-bottom: .5em; list-style: disc; }
.pill-row { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.callout { background: var(--bg-tint); border-left: 4px solid var(--aqua-500); border-radius: 12px; padding: 18px 22px; margin: 22px 0; }
.callout strong { color: var(--navy-800); }

/* Blog list */
.post-card { display:flex; flex-direction:column; overflow:hidden; padding:0; }
.post-card .thumb { height: 168px; background-size: cover; background-position:center; }
.post-card .body { padding: 22px 24px 26px; display:flex; flex-direction:column; flex:1; }
.post-card .cat { font-size:.74rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--aqua-500); margin-bottom:8px; }
.post-card h3 { font-size:1.16rem; }
.post-card p { font-size:.95rem; flex:1; }

/* Utilities */
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;} .mt-32{margin-top:32px;} .text-muted{color:var(--muted);}
.divider { height:1px; background:var(--line); border:0; margin:0; }
.skip-link { position:absolute; left:-999px; top:0; background:#fff; padding:10px 16px; z-index:200; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; }

/* =====================================================================
   MOBILE REFINEMENTS — comfortable spacing, tap targets, no overflow
   ===================================================================== */

/* Tablet & down */
@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }
  .btn { padding: 15px 22px; }
  .btn--lg { padding: 16px 24px; }
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .reveal[style*="order"] { order: 0 !important; }
}

/* Phones */
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .hero__inner { padding: 44px 0 40px; }
  .hero p.sub { font-size: 1.08rem; }
  .hero-card { padding: 22px 18px; }
  .hero .btn-row .btn,
  .cta-band .btn-row .btn { width: 100%; }
  .btn-row { gap: 10px; }
  .section-head p, .lede { font-size: 1rem; }
  .stat b { font-size: 2rem; }
  .cta-band { padding: 32px 22px; }
  .compare-row, .faq-q { font-size: .98rem; }
  .quote p { font-size: .98rem; }
  .card { padding: 22px; }
  .card.has-photo { padding: 0; }
  [id] { scroll-margin-top: 84px; }
}

/* Keep floating chat above the sticky mobile action bar */
@media (max-width: 760px) {
  .chat-bubble { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand small { display: none; }
  .nav { height: 64px; }
  .hero-flag { font-size: .82rem; padding: 7px 12px; }
}
/* end of stylesheet */
