/* ===== Closed Cell Removal — theme additions (kept separate from the design system in site.css) ===== */

/* ===== Rich navy page heroes (replaces the washed-out light gradient) ===== */
.page-hero {
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(185, 148, 71, 0.18), transparent 60%),
    linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-3) 100%);
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: var(--paper); }
.page-hero p, .page-hero .lede { color: #c9d1e2; }
.page-hero .eye { color: var(--gold); }
.page-hero .legal-updated { color: #8c97ad; }
.page-hero .btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.page-hero .btn-primary:hover { background: var(--gold-2); color: var(--navy); }
.page-hero .btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.5); }
.page-hero .btn-ghost:hover { background: var(--paper); color: var(--navy); }
.page-hero .video-caption { color: #c9d1e2; }

/* Stats grids fit their count (stops a 4th card orphan-wrapping under a 3-col grid) */
.stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Cool-tinted band so white cards/forms sit on a surface, not white-on-white */
.band-tint {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 8px 0;
  font-family: var(--ff-head); font-weight: 700;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* Footer logo is the white-knockout PNG — remove the old white-box brightness hack */
.site-footer .f-brand img { filter: none; width: auto; }

/* Footer legal row */
.f-legal {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 22px 0 0; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.f-legal a { color: #c9d1e2; font-size: 0.9rem; }
.f-legal a:hover { color: var(--gold); }

/* ===== Cookie consent banner ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 760px; margin: 0 auto;
  background: var(--navy); color: #e9edf6;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: none;
  gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 0.92rem; color: #c9d1e2; }
.cookie-banner p a { color: var(--gold); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner .cookie-actions .btn { flex: 1; }
}

/* ===== Long-form legal pages ===== */
.legal-doc { max-width: 820px; }
.legal-doc h2 { margin-top: 38px; font-size: 1.5rem; }
.legal-doc h3 { margin-top: 24px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); }
.legal-doc ul { padding-left: 20px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.legal-note {
  background: var(--cream-2); border: 1px solid var(--cream-line);
  border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; color: var(--ink-2);
  margin: 18px 0 8px;
}

/* ===== Thank-you page ===== */
.ty-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}

/* ===== Form states (Sheet submission) ===== */
.form-card.is-sending { opacity: 0.7; pointer-events: none; }
.form-error {
  display: none; margin-top: 12px; padding: 10px 14px;
  background: #fcebe9; border: 1px solid #f3c6c1; color: var(--danger);
  border-radius: var(--radius); font-size: 0.92rem;
}
.form-error.show { display: block; }

/* ===== Locations grid ===== */
.loc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 24px; margin-top: 24px;
}
.loc-grid a { display: block; padding: 6px 0; font-weight: 600; }

/* Honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* ===== Real photos dropped in via ccr_image() ===== */
img.tall {
  width: 100%; min-height: 420px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: block;
}
.cs-ba img {
  width: 100%; height: 100%; min-height: 240px;
  object-fit: cover; display: block;
}

/* Interactive coverage map (Leaflet) */
#areas-map {
  height: 520px; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  z-index: 1; /* keep below sticky header / mobile nav */
}
#areas-map .leaflet-popup-content { font-family: var(--ff-body); line-height: 1.5; }
#areas-map .leaflet-popup-content a { color: var(--navy); font-weight: 600; }
@media (max-width: 720px) { #areas-map { height: 380px; } }
