:root {
  --blue: #0264a7;
  --red: #cd2027;
  --green: #1f8a4c;
  --green-bright: #22c55e;
  --warm: #f2a53f;
  --warm-soft: #fdf1de;
  --text: #17212b;
  --muted: #5d6b78;
  --soft: #f2f7fb;
  --line: #dce8f1;
  --white: #fff;
  --shadow: 0 20px 50px rgba(2, 100, 167, .16);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px clamp(18px, 4vw, 46px); background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); transition: padding .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 10px 30px rgba(23, 33, 43, .08); }
.logo img { width: 150px; transition: width .25s ease; }
.site-header.is-scrolled .logo img { width: 128px; }
.site-header nav { display: flex; gap: 18px; }
.site-header a { text-decoration: none; font-weight: 700; }
.site-header nav a { position: relative; padding: 4px 0; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--red); transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.phone { color: var(--red); }

.hero { position: relative; overflow: hidden; padding: clamp(68px, 10vw, 120px) 0 clamp(90px, 11vw, 130px); background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, .22), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(34, 197, 94, .16), transparent 46%),
    linear-gradient(160deg, #071b33 0%, #0d3255 46%, #0a4a6b 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: float 10s ease-in-out infinite; }
.hero::before { top: -90px; right: 6%; width: 300px; height: 300px; background: rgba(56, 189, 248, .28); }
.hero::after { bottom: 40px; left: 2%; width: 240px; height: 240px; background: rgba(34, 197, 94, .22); animation-delay: -4s; }
.hero .hero-grid { position: relative; z-index: 2; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-18px) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after, .bubble { animation: none !important; } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: clamp(40px, 7vw, 90px); }

.bubble { position: absolute; z-index: 1; bottom: -40px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), rgba(160, 220, 255, .08) 70%); pointer-events: none; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 12% { opacity: .8; } 90% { opacity: .4; } 100% { transform: translateY(-620px) scale(1.15); opacity: 0; } }

.hero-grid, .split, .form-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; margin-bottom: 18px; color: var(--blue); font-weight: 800; font-size: 13px; background: #e8f3fb; border: 1px solid #cfe4f3; border-radius: 999px; }
.hero .badge-pill { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(40px, 6vw, 66px); line-height: 1.04; }
h1 .accent { color: var(--blue); }
.hero .hero-grid { align-items: start; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); }
.hero h1 .accent { color: var(--green-bright); }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.lead { max-width: 660px; color: var(--muted); font-size: 20px; }
.hero .lead { color: rgba(255, 255, 255, .85); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; flex: none; min-height: 50px; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: 999px; font-weight: 900; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { color: #fff; background: var(--red); box-shadow: var(--shadow); }
.btn-primary:hover { background: #ac161d; transform: translateY(-2px); box-shadow: 0 24px 40px rgba(2, 100, 167, .2); }
.btn-ghost { color: var(--blue); background: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: #e8f3fb; transform: translateY(-2px); }
.hero .btn-ghost { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.btn:active { transform: translateY(0); }
.proof { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.proof li { position: relative; padding: 8px 14px 8px 30px; color: var(--blue); font-weight: 800; background: #e8f3fb; border-radius: 999px; }
.proof li::before { content: "✓"; position: absolute; left: 12px; color: var(--green); font-weight: 900; }
.hero .proof li { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.hero .proof li::before { color: var(--green-bright); }

.hero-image { position: relative; z-index: 2; padding: 28px; background: radial-gradient(circle at 50% 38%, rgba(56, 189, 248, .35), rgba(255, 255, 255, .04) 65%); border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px; backdrop-filter: blur(4px); animation: float-soft 7s ease-in-out infinite; }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-image { animation: none; } }
.hero-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: radial-gradient(circle at 50% 32%, #fff, #f3f9ff 75%); border-radius: 18px; box-shadow: 0 26px 50px rgba(2, 10, 20, .45); }
.image-badge { position: absolute; left: 24px; right: 24px; bottom: -22px; padding: 12px 14px; color: #fff; font-weight: 900; text-align: center; background: rgba(2, 100, 167, .95); border-radius: var(--radius); box-shadow: 0 14px 30px rgba(2, 10, 20, .35); }

/* Trust / stats bar */
.trust-bar { padding: 30px 0; background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat-number { display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 900; color: var(--blue); line-height: 1; }
.stat-label { display: block; margin-top: 6px; color: var(--muted); font-weight: 700; font-size: 14px; }

/* Icon tiles */
.icon-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; font-size: 22px; background: #e8f3fb; border-radius: 12px; }
.icon-tile.green { background: #e3f7ea; }
.icon-tile.warm { background: var(--warm-soft); }

.section { padding: clamp(54px, 7vw, 90px) 0; }
.narrow { max-width: 780px; }
.damage-grid, .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.damage-grid article, .steps div, .callout, form { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(23, 33, 43, .06); }
.damage-grid article, .steps div, .issue-grid article, .type-grid article, .review-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.damage-grid article:hover, .steps div:hover, .issue-grid article:hover, .type-grid article:hover, .review-card:hover { transform: translateY(-5px); border-color: #c3d9e8; box-shadow: 0 18px 40px rgba(23, 33, 43, .12); }
.damage-grid span, .steps span { display: inline-grid; width: 48px; height: 48px; place-items: center; margin-bottom: 12px; font-size: 22px; background: #e8f3fb; border-radius: 12px; }
.split-section, .form-section, .checklist { background: var(--soft); }
.callout { border-left: 5px solid var(--red); }
.water-home-section, .cost-section, .water-types-section { background: #fff; }
.section-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; padding: 16px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(23, 33, 43, .06); }
.section-cta strong { flex: 1 1 260px; color: var(--blue); }
.image-panel { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.image-panel img { width: 100%; border-radius: 8px; }
.image-panel p { margin: 12px 0 0; color: var(--muted); font-weight: 700; }
.issue-grid, .type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.issue-grid article, .type-grid article { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(23, 33, 43, .06); }
.issue-grid article { border-top: 5px solid var(--red); }
.type-grid article { border-top: 5px solid var(--blue); }
.issue-grid a, .type-grid a { display: inline-flex; margin-top: 10px; color: var(--blue); font-weight: 900; text-decoration: none; }
.cost-list { display: grid; gap: 12px; }
.cost-list div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cost-list span { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; font-weight: 900; background: var(--red); border-radius: 50%; }
.cost-list p { margin: 0; color: var(--muted); font-weight: 700; }
.tick-list { padding: 24px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); list-style: none; }
.tick-list li { position: relative; padding-left: 28px; margin: 10px 0; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }

.realizations-section { overflow: hidden; background: #fff; }
.realization-marquee { width: 100%; margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.realization-track { display: flex; width: max-content; gap: 18px; animation: marquee 38s linear infinite; }
.realization-track:hover { animation-play-state: paused; }
.realization-track figure { width: 280px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(23, 33, 43, .08); overflow: hidden; }
.realization-track img { width: 100%; height: 168px; object-fit: cover; }
.realization-track figcaption { padding: 10px 12px; color: var(--blue); font-weight: 900; }
.source-note { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reviews { background: var(--soft); }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.review-card, .review-summary { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(23, 33, 43, .06); }
.review-summary { display: flex; flex-direction: column; justify-content: center; gap: 8px; box-shadow: none; }
.review-summary img { width: 96px; }
.review-summary strong { font-size: 18px; }
.review-summary span { color: var(--muted); }
.review-summary a { align-self: flex-start; margin-top: 6px; padding: 9px 14px; color: var(--text); font-weight: 900; text-decoration: none; border: 1px solid #9aa7b1; border-radius: 6px; }
.stars { color: #fbbc04; font-size: 22px; letter-spacing: 1px; line-height: 1; }
.review-card { background: #f5f5f5; border-color: transparent; box-shadow: none; }
.review-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.review-head strong { display: block; line-height: 1.2; }
.review-head small { display: block; margin-top: 2px; color: var(--muted); line-height: 1.2; }
.avatar { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; font-weight: 900; background: #f57c00; border-radius: 50%; }
.avatar.pink { background: #c2185b; }
.avatar.brown { background: #6d4c41; }
.google-mark { color: #4285f4; font-size: 22px; font-weight: 900; font-family: Arial, sans-serif; }
.review-card p { margin: 14px 0 16px; font-size: 17px; font-weight: 500; line-height: 1.45; }
.review-card a { color: var(--muted); font-size: 14px; text-decoration: none; }

form label { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 800; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; border: 1px solid #c9d8e4; border-radius: var(--radius); }
input:focus, select:focus { outline: 3px solid rgba(2, 100, 167, .16); border-color: var(--blue); }
.checkbox { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; }
.checkbox input { width: 18px; min-height: 18px; margin-top: 4px; }
.contact-line a { color: var(--blue); font-weight: 900; }

.site-footer { padding: 34px 18px 80px; text-align: center; color: #dbe7f0; background: #102235; }
.site-footer img { width: 150px; margin: 0 auto 12px; filter: brightness(0) invert(1); }
.thanks-page { min-height: 100vh; display: grid; place-items: center; background: var(--soft); }
.thanks-card { width: min(680px, calc(100% - 32px)); padding: 34px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.thanks-card img { width: 160px; margin: 0 auto 18px; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Custom FAQ accordion */
.faq-item { margin: 12px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(23, 33, 43, .05); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 20px; color: var(--text); font: inherit; font-weight: 900; text-align: left; background: none; border: 0; cursor: pointer; }
.faq-icon { flex: none; display: inline-grid; width: 26px; height: 26px; place-items: center; color: var(--blue); font-size: 20px; font-weight: 900; background: var(--soft); border-radius: 50%; transition: transform .25s ease; }
.faq-item.is-open .faq-icon { transform: rotate(135deg); color: #fff; background: var(--red); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Water-risk quiz */
.quiz-card { position: relative; max-width: 640px; margin: 0 auto; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.quiz-progress { height: 6px; margin-bottom: 26px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.quiz-progress-fill { width: 25%; height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s ease; }
.quiz-step, .quiz-result { transition: opacity .3s ease, transform .3s ease; }
.quiz-step[data-entering], .quiz-result[data-entering] { opacity: 0; transform: translateX(16px); }
.quiz-step h3 { margin-bottom: 16px; font-size: 22px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-options button { padding: 16px; font: inherit; font-weight: 800; text-align: left; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.quiz-options button:hover, .quiz-options button:focus-visible { background: #e8f3fb; border-color: var(--blue); }
.quiz-result { text-align: center; }
.quiz-result-card { padding: 28px; text-align: left; border-radius: calc(var(--radius) + 8px); }
.quiz-result-card.risk-low { background: linear-gradient(135deg, #0d3b26, var(--green)); }
.quiz-result-card.risk-medium { background: linear-gradient(135deg, #6b3b06, var(--warm)); }
.quiz-result-card.risk-high { background: linear-gradient(135deg, #4a0d10, var(--red)); }
.quiz-result-label { margin: 0; color: rgba(255, 255, 255, .7); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.quiz-result-level { margin: 6px 0 14px; font-size: clamp(28px, 5vw, 38px); font-weight: 900; color: #fff; }
.quiz-result-text { margin: 0; color: rgba(255, 255, 255, .9); }
.quiz-result .btn { margin-top: 18px; }
.quiz-back { position: absolute; top: 28px; right: 28px; padding: 0; color: var(--muted); font-weight: 800; background: none; border: 0; cursor: pointer; }

.sticky-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(23, 33, 43, .12); }
.sticky-mobile-bar .btn { width: 100%; }

@media (max-width: 980px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header nav { width: 100%; overflow: auto; }
  .hero-grid, .split, .form-grid, .damage-grid, .steps, .issue-grid, .type-grid, .review-grid { grid-template-columns: 1fr; }
  .sticky-mobile-bar { display: grid; }
  body { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  h1 { font-size: 40px; }
  .actions, .btn { width: 100%; }
  .btn { justify-content: center; }
  .section { padding: 48px 0; }
  .realization-track figure { width: 235px; }
  .realization-track img { height: 142px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-card { padding: 22px; }
  .quiz-back { top: 18px; right: 18px; }
}
