/* NorCal Water Damage Restoration — "Modern Service" design system (teal / Sora) */

:root {
  --bg: #ffffff;
  --bg-soft: #f6fafb;
  --bg-soft2: #eef6f8;
  --bg-tint: #e2f5f7;
  --bg-slate: #12324a;
  --bg-slate-deep: #0f1b2d;
  --text: #0f1b2d;
  --muted: #52657a;
  --muted-light: #8092a4;
  --border: #e6eef0;
  --border-strong: #d5e2e6;
  --primary: #0a97ab;
  --primary-hover: #0891a5;
  --primary-deep: #0e7c8c;
  --primary-soft: #e2f5f7;
  --primary-glow: rgba(10, 162, 184, 0.28);
  --accent: #0aa2b8;
  --accent-bright: #12c0d6;
  --live: #10b981;
  --shadow-sm: 0 1px 2px rgba(15,27,45,.05);
  --shadow: 0 6px 18px rgba(15,27,45,.06);
  --shadow-lg: 0 20px 44px rgba(15,27,45,.12);
  --shadow-cta: 0 12px 26px rgba(8, 125, 143, .28);
  --grad-teal: linear-gradient(140deg, #0aa2b8 0%, #087d8f 100%);
}

*, *::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-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Display type */
.logo, h2, .hero h1, .cta-block h3, .price-card-value, .mega-cta-num, .topbar-cta-num, .mobile-sticky-cta .num, .final-cta h2 {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
}

/* ============================================ */
/* EMERGENCY TOP BAR — slim, calm, informative  */
/* ============================================ */
.emergency-bar {
  background: var(--bg-slate-deep);
  color: #cfe0ea;
  position: sticky;
  top: 0;
  z-index: 100;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .01em;
}
.emergency-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 20px;
  text-align: center;
}
.emergency-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.emergency-bar a:hover { text-decoration: underline; }
.emergency-bar .pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--live);
  border-radius: 50%;
  margin-right: 4px;
}
.emergency-bar .sep { opacity: .4; 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: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 37px; /* below emergency bar */
  z-index: 90;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--grad-teal);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(8,125,143,.28);
}
.logo-mark::before { content: "💧"; font-size: 18px; }
.topbar-cta {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--bg-slate-deep);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
  transition: transform .12s, box-shadow .12s;
}
.topbar-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,27,45,.18); }
.topbar-cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
  font-weight: 600;
}
.topbar-cta-num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  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-deep); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }
.breadcrumbs .current { color: var(--text); font-weight: 600; }

/* ============================================ */
/* HERO — light, clean, centered                */
/* ============================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 50% -10%, #e2f5f7 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  color: var(--text);
  padding: 56px 0 54px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tint);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-eyebrow .pulse-dot {
  width: 7px; height: 7px;
  background: var(--live);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--text);
}
.hero h1 .accent {
  color: var(--primary-deep);
  position: relative;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

/* MEGA CTA — the centerpiece */
.mega-cta {
  display: block;
  background: var(--grad-teal);
  color: #fff !important;
  padding: 20px 28px;
  border-radius: 14px;
  text-decoration: none !important;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-cta);
  transition: transform .15s, box-shadow .15s;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.mega-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8,125,143,.34);
}
.mega-cta-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .9;
  font-weight: 600;
  margin-bottom: 6px;
}
.mega-cta-num {
  display: block;
  font-size: clamp(26px, 4.4vw, 36px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}
.hero-hint {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.hero-hint .live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 50%;
  margin-right: 6px;
}
.hero-hint strong { color: var(--text); }
.hero-hint .sep { opacity: .4; margin: 0 8px; }

/* ============================================ */
/* TRUST STRIP                                  */
/* ============================================ */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  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: var(--bg-slate-deep);
  color: #c6d6e2;
}
section.dark h2 { color: #fff; }
section.soft {
  background: var(--bg-soft);
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -.015em;
  font-weight: 700;
  color: var(--text);
}
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: 16px;
  padding: 22px;
  position: relative;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow);
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-tint);
  color: var(--primary-deep);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  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: 18px;
  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: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.svc-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-tint);
  font-size: 24px;
  margin-bottom: 14px;
}
.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: var(--grad-teal);
  color: #fff;
  border-radius: 20px;
  padding: 38px 24px;
  text-align: center;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(8,125,143,.22);
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .16) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block-inner { position: relative; z-index: 1; }
.cta-block h3 {
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 8px;
  letter-spacing: -.01em;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}
.cta-block p {
  margin: 0 0 22px;
  color: #d6f4f7;
  font-size: 15px;
}
.cta-block .mega-cta {
  background: #fff;
  color: var(--primary-deep) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}
.cta-block .mega-cta:hover {
  background: #fff;
  color: #0a5f6c !important;
}

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

/* ============================================ */
/* INSURANCE BLOCK                              */
/* ============================================ */
.insurance-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.insurance-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.insurance-card-icon {
  width: 48px; height: 48px;
  background: var(--bg-tint);
  border-radius: 12px;
  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: 14px;
  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: 16px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
}
.price-card-value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--primary-deep);
  margin: 8px 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: 14px;
  margin-bottom: 10px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.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-deep);
}

/* ============================================ */
/* INSURANCE CARRIERS GRID                      */
/* ============================================ */
.ins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 auto;
  max-width: 920px;
}
@media (min-width: 600px) { .ins-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ins-grid { grid-template-columns: repeat(5, 1fr); } }
.ins-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  font-size: 16px;
  letter-spacing: .01em;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ins-tile:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.ins-tile span { line-height: 1; }

/* ============================================ */
/* SERVICE AREA MAP (Leaflet)                   */
/* ============================================ */
.map-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .map-section-grid { grid-template-columns: 3fr 2fr; }
}
.map-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
#nc-map {
  width: 100%;
  height: 480px;
  background: var(--bg-soft);
}
@media (max-width: 768px) {
  #nc-map { height: 360px; }
}
.map-cities {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  max-height: 480px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .map-cities { max-height: 360px; }
}
.map-cities-county {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.map-cities-county:first-child { margin-top: 0; }
.map-cities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 18px;
}
.map-cities-list li {
  margin-bottom: 6px;
  break-inside: avoid;
  font-size: 14px;
}
.map-cities-list a {
  color: var(--text);
  text-decoration: none;
  padding: 2px 0;
  display: inline-block;
  transition: color .12s;
}
.map-cities-list a:hover { color: var(--primary-deep); }
.map-cities-list a strong { color: var(--text); font-weight: 700; }

/* Leaflet popup styling override */
.sd-popup { font-family: inherit; font-size: 14px; padding: 4px 2px; }
.sd-popup strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.sd-popup a {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}
.sd-popup a:hover { text-decoration: underline; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; }
.sd-pin svg { display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }

/* ============================================ */
/* FINAL MEGA CTA SECTION                       */
/* ============================================ */
.final-cta {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,.10) 0%, transparent 45%),
    var(--grad-teal);
  color: #fff;
  text-align: center;
  padding: 68px 0;
  position: relative;
  overflow: hidden;
}
.final-cta-inner { position: relative; }
.final-cta h2 {
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 12px;
  letter-spacing: -.015em;
}
.final-cta p {
  font-size: 18px;
  color: #d6f4f7;
  margin: 0 0 28px;
}
.final-cta .mega-cta {
  background: #fff;
  color: var(--primary-deep) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}
.final-cta .mega-cta:hover {
  background: #fff;
  color: #0a5f6c !important;
  transform: translateY(-2px) scale(1.02);
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
footer {
  background: var(--bg-slate-deep);
  color: #93a7b8;
  padding: 44px 0 100px; /* extra bottom for sticky mobile bar */
  font-size: 14px;
  border-top: 3px solid var(--primary);
}
@media (min-width: 768px) {
  footer { padding-bottom: 44px; }
}
footer .container {
  display: grid;
  gap: 20px;
}
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; font-weight: 700; }
footer a { color: #93a7b8; text-decoration: none; }
footer a:hover { color: #fff; 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-grid p { color: #93a7b8 !important; }
.footer-resources a { color: #a9d9e0; }
.footer-disclaimer {
  border-top: 1px solid #26333f;
  padding-top: 20px;
  margin-top: 30px;
  font-size: 12px;
  color: #6f8494;
  line-height: 1.6;
}

/* ============================================ */
/* MOBILE STICKY BOTTOM CTA                     */
/* ============================================ */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--grad-teal);
  color: #fff !important;
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 16px;
  box-shadow: 0 -4px 20px rgba(15,27,45,.2);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mobile-sticky-cta:active { filter: brightness(.95); }
.mobile-sticky-cta .icon {
  font-size: 20px;
}
.mobile-sticky-cta .num {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
}
@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; }
