/* SoCal Dry Pro — emergency call-intent design system */

:root {
  --bg: #ffffff;
  --bg-blue: #0ea5e9;
  --bg-blue-mid: #0284c7;
  --bg-blue-deep: #0369a1;
  --bg-blue-light: #38bdf8;
  --bg-soft: #f0f9ff;
  --bg-soft2: #e0f2fe;
  --bg-slate: #1e293b;
  --bg-slate-deep: #0f172a;
  --text: #0a0f1a;
  --muted: #475569;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #334155;
  --primary: #ef4444;
  --primary-hover: #dc2626;
  --primary-deep: #b91c1c;
  --primary-soft: #fef2f2;
  --primary-glow: rgba(239, 68, 68, 0.45);
  --accent: #fbbf24;
  --accent-bright: #fde047;
  --live: #22c55e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 14px rgba(2, 132, 199, .1);
  --shadow-lg: 0 20px 40px rgba(2, 132, 199, .15);
  --shadow-cta: 0 10px 30px rgba(239, 68, 68, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 72px; /* room for mobile sticky bottom CTA */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* ============================================ */
/* EMERGENCY TOP BAR — sticky, never hides      */
/* ============================================ */
.emergency-bar {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  box-shadow: 0 2px 10px rgba(220, 38, 38, .3);
}
.emergency-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px;
  text-align: center;
}
.emergency-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.emergency-bar a:hover { text-decoration: underline; }
.emergency-bar .pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  margin-right: 4px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.3); }
}
.emergency-bar .sep { opacity: .55; margin: 0 6px; }
.emergency-bar .hide-mobile { display: none; }
@media (min-width: 640px) {
  .emergency-bar .hide-mobile { display: inline; }
}

/* ============================================ */
/* MAIN HEADER — logo + minimal nav             */
/* ============================================ */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 39px; /* below emergency bar */
  z-index: 90;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(220, 38, 38, .3);
}
.logo-mark::before { content: "💧"; font-size: 18px; }
.topbar-cta {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-cta);
  transition: transform .12s, box-shadow .12s;
}
.topbar-cta:hover { background: var(--primary-hover); transform: translateY(-1px); }
.topbar-cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .9;
  font-weight: 600;
}
.topbar-cta-num {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .04em;
  line-height: 1;
}
@media (min-width: 768px) {
  .topbar-cta { display: inline-flex; }
}

/* ============================================ */
/* BREADCRUMBS                                  */
/* ============================================ */
.breadcrumbs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs > div { padding: 10px 20px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, var(--bg-blue-light) 0%, var(--bg-blue-mid) 55%, var(--bg-blue-deep) 100%);
  color: #fff;
  padding: 50px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(239, 68, 68, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(253, 224, 71, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.06) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.hero-eyebrow .pulse-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 10px #fff;
}
.hero h1 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(38px, 7vw, 64px);
  line-height: .95;
  margin: 0 0 18px;
  letter-spacing: .005em;
  font-weight: 400;
}
.hero h1 .accent {
  color: var(--accent-bright);
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 14px rgba(253, 224, 71, 0.5);
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 6px;
  background: var(--accent-bright);
  border-radius: 3px;
  opacity: .85;
  box-shadow: 0 2px 12px rgba(253, 224, 71, 0.6);
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.55;
  color: #e0f2fe;
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-sub strong { color: #fff; font-weight: 700; }

/* MEGA CTA — the centerpiece */
.mega-cta {
  display: block;
  background: var(--primary);
  color: #fff !important;
  padding: 22px 28px;
  border-radius: 14px;
  text-decoration: none !important;
  text-align: center;
  font-weight: 800;
  box-shadow: var(--shadow-cta);
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform .15s, box-shadow .15s, background .15s;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.mega-cta::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: var(--primary);
  opacity: .25;
  filter: blur(20px);
  z-index: -1;
  animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: .2; }
  50% { opacity: .5; }
}
.mega-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(220, 38, 38, .5);
}
.mega-cta-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .92;
  font-weight: 700;
  margin-bottom: 6px;
}
.mega-cta-num {
  display: block;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(32px, 5vw, 42px);
  letter-spacing: .03em;
  line-height: 1;
}
.hero-hint {
  margin-top: 20px;
  font-size: 14px;
  color: #e0f2fe;
}
.hero-hint .live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 10px var(--live);
  animation: pulse 1.6s ease-in-out infinite;
}
.hero-hint strong { color: #fff; }
.hero-hint .sep { opacity: .4; margin: 0 8px; }

/* ============================================ */
/* TRUST STRIP                                  */
/* ============================================ */
.trust-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: center;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}
.trust-item strong { color: var(--text); font-weight: 700; font-size: 15px; }
.trust-item .icon {
  font-size: 22px;
  margin-bottom: 4px;
}

/* ============================================ */
/* SECTIONS                                     */
/* ============================================ */
section { padding: 56px 0; }
section.tight { padding: 36px 0; }
section.dark {
  background: linear-gradient(135deg, var(--bg-blue-mid) 0%, var(--bg-blue-deep) 100%);
  color: #e0f2fe;
}
section.dark h2 { color: #fff; }
section.soft {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-soft2) 100%);
}

h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: .01em;
  font-weight: 400;
}
h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
  line-height: 1.55;
}
.prose p { margin: 0 0 16px; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 24px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose ul li { margin-bottom: 8px; }

/* ============================================ */
/* "WHAT TO DO RIGHT NOW" — numbered steps      */
/* ============================================ */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 28px 0;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  display: flex;
  gap: 16px;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.step-body h3 { margin-bottom: 6px; }
.step-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ============================================ */
/* SERVICE CARDS                                */
/* ============================================ */
.services-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.svc-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.svc-icon {
  font-size: 26px;
  margin-bottom: 10px;
}
.svc-card h3 { margin: 0 0 6px; font-size: 17px; }
.svc-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ============================================ */
/* INLINE CTA REPEATERS                         */
/* ============================================ */
.cta-block {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 50%, var(--primary-deep) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.25);
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .22) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block::after {
  content: "";
  position: absolute;
  bottom: -30%; right: -10%;
  width: 50%; height: 160%;
  background: radial-gradient(ellipse, rgba(253, 224, 71, .18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block-inner { position: relative; z-index: 1; }
.cta-block h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 8px;
  letter-spacing: .015em;
  line-height: 1.05;
  font-weight: 400;
  color: #fff;
}
.cta-block p {
  margin: 0 0 22px;
  color: #fee2e2;
  font-size: 15px;
}
.cta-block .mega-cta {
  background: #fff;
  color: var(--primary-hover) !important;
  border-color: rgba(255,255,255,0.4);
}
.cta-block .mega-cta:hover {
  background: #fff;
  color: var(--primary-deep) !important;
}
.cta-block .mega-cta::before {
  background: #fff;
  opacity: .35;
}

/* ============================================ */
/* CALLOUT (urgency, info)                      */
/* ============================================ */
.callout {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p { margin: 0; }
.callout strong { color: var(--primary); }
.callout.warn {
  background: #fffbeb;
  border-left-color: #d97706;
}
.callout.warn strong { color: #d97706; }

/* ============================================ */
/* INSURANCE BLOCK                              */
/* ============================================ */
.insurance-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin: 24px 0;
}
.insurance-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.insurance-card-icon {
  width: 48px; height: 48px;
  background: #ecfdf5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.insurance-card-head h3 { margin: 0; font-size: 19px; }

/* ============================================ */
/* PRICE / RANGE                                */
/* ============================================ */
.price-range {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0;
}
@media (min-width: 700px) { .price-range { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.price-card-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
}
.price-card-value {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 38px;
  letter-spacing: .02em;
  color: var(--text);
  margin: 6px 0 4px;
  line-height: 1;
}
.price-card-note {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================ */
/* FAQ                                          */
/* ============================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 18px 22px;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================ */
/* COVERAGE TABLE / ZIP LIST                    */
/* ============================================ */
.zip-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.zip-coverage span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.zip-coverage a {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.zip-coverage a:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================ */
/* FINAL MEGA CTA SECTION                       */
/* ============================================ */
.final-cta {
  background: linear-gradient(135deg, #f87171 0%, var(--primary) 35%, var(--primary-hover) 70%, var(--primary-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.22) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(253, 224, 71, .15) 0%, transparent 45%);
  pointer-events: none;
}
.final-cta-inner { position: relative; }
.final-cta h2 {
  color: #fff;
  font-size: clamp(34px, 6vw, 52px);
  margin-bottom: 12px;
}
.final-cta p {
  font-size: 18px;
  opacity: .95;
  margin: 0 0 28px;
}
.final-cta .mega-cta {
  background: #fff;
  color: var(--primary) !important;
  border-color: rgba(255,255,255,.3);
}
.final-cta .mega-cta:hover {
  background: #fff;
  color: var(--primary-hover) !important;
  transform: translateY(-2px) scale(1.02);
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
footer {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  padding: 40px 0 100px; /* extra bottom for sticky mobile bar */
  font-size: 14px;
  border-top: 4px solid var(--bg-blue-mid);
}
@media (min-width: 768px) {
  footer { padding-bottom: 40px; }
}
footer .container {
  display: grid;
  gap: 20px;
}
footer h4 { color: #0f172a; margin: 0 0 10px; font-size: 15px; font-weight: 800; }
footer a { color: #475569; text-decoration: none; }
footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-disclaimer {
  border-top: 1px solid #cbd5e1;
  padding-top: 20px;
  margin-top: 30px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

/* ============================================ */
/* MOBILE STICKY BOTTOM CTA                     */
/* ============================================ */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 20px;
  text-align: center;
  font-weight: 800;
  text-decoration: none !important;
  font-size: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mobile-sticky-cta:active { background: var(--primary-hover); }
.mobile-sticky-cta .icon {
  font-size: 20px;
  animation: shake 2.4s ease-in-out infinite;
}
@keyframes shake {
  0%, 90%, 100% { transform: rotate(0); }
  92% { transform: rotate(-12deg); }
  94% { transform: rotate(12deg); }
  96% { transform: rotate(-12deg); }
  98% { transform: rotate(12deg); }
}
.mobile-sticky-cta .num {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: .03em;
}
@media (min-width: 768px) {
  .mobile-sticky-cta { display: none; }
}

/* ============================================ */
/* UTILITIES                                    */
/* ============================================ */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
