/* Beta-only 4th of July theme — atmosphere only; layout unchanged */

:root {
  --navy: #0a1630;
  --navy-soft: #13284a;
  --ink: #121826;
  --muted: #556070;
  --paper: #f4f6fb;
  --white: #ffffff;
  --gold: #e8c547;
  --gold-soft: #f3d96a;
  --blue: #c8102e;
  --blue-deep: #9e0c24;
  --line: rgba(10, 22, 48, 0.12);
  --shadow: 0 18px 50px rgba(10, 22, 48, 0.16);
  --patriot-red: #c8102e;
  --patriot-blue: #0a3161;
  --patriot-blue-soft: #1a4f8c;
  --star: #f5f7ff;
}

html,
body {
  background: #0a1630 !important;
}

body {
  position: relative;
}

/* Waving flag sits under page content — full color, no white page bleed */
.wol-theme-flag-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  pointer-events: none;
}

.wol-theme-flag-bg video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: cover;
  object-position: center 40%;
  opacity: 1;
  filter: saturate(1.15) contrast(1.05);
}

/* Soft white wash so the flag stays in the background */
.wol-theme-flag-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.84);
}

body::before,
body::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Keep content above the flag */
.site-header,
#main,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

/* Let the faded flag show through home/content bands (not solid paper slabs) */
main,
#main,
.events,
.mission,
.study,
.invite,
.prayer,
.page-contact,
.page-announcement,
.section.events,
.section.mission,
.section.study,
.section.invite {
  background: transparent !important;
  background-color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  .wol-theme-flag-bg {
    display: none;
  }
}

.site-header {
  overflow: visible;
  background: rgba(10, 22, 48, 0.97);
  border-bottom: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.nav-shell {
  overflow: visible;
}

.site-header::after {
  content: none !important;
  display: none !important;
}

.nav-link {
  color: rgba(245, 247, 255, 0.92);
}

.nav-link.accent-gold,
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--gold-soft);
}

.nav-link.accent-blue {
  color: #9ec5ff;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
}

.btn-primary {
  background: var(--patriot-red);
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.35);
}

.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-dark {
  background: linear-gradient(135deg, #1a4f8c 0%, #0a1630 100%);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #2a68b0 0%, #13284a 100%);
}

.btn-ghost {
  background: rgba(200, 16, 46, 0.28);
  border-color: rgba(245, 247, 255, 0.7);
}

.service-countdown {
  background:
    linear-gradient(90deg, rgba(200, 16, 46, 0.45), rgba(255, 255, 255, 0.18) 50%, rgba(26, 79, 140, 0.4));
}

a.btn.btn-nav[data-watch-cta]::before,
.btn-nav[data-watch-cta]::before {
  background: linear-gradient(135deg, #c8102e 0%, #ffffff 45%, #1a4f8c 100%);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 22, 48, 0.45) 0%, rgba(10, 22, 48, 0.14) 42%, transparent 72%),
    linear-gradient(0deg, rgba(26, 79, 140, 0.28), transparent 48%),
    linear-gradient(180deg, rgba(200, 16, 46, 0.16), transparent 38%);
}

.pill {
  background: rgba(10, 22, 48, 0.72);
  border: 1px solid rgba(232, 197, 71, 0.4);
  color: var(--star);
}

.pill-live {
  border-color: rgba(200, 16, 46, 0.55);
  color: #fff;
}

.section-title,
.eyebrow {
  color: var(--navy);
}

.eyebrow {
  color: var(--patriot-blue-soft);
}

.events,
.page-contact,
.page-announcement {
  background: transparent !important;
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(26, 79, 140, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.88) !important;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #c8102e, #ffffff, #1a4f8c, #ffffff, #c8102e) 1;
}

/* Keep cards readable on top of the flag */
.event,
.event-card {
  background: rgba(255, 255, 255, 0.95);
}

.site-footer a:hover {
  color: var(--patriot-red);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--patriot-blue-soft);
  box-shadow: 0 0 0 3px rgba(26, 79, 140, 0.18);
}

.event:hover {
  box-shadow: 0 20px 48px rgba(200, 16, 46, 0.14);
}

.page-wolbi {
  --wolbi-navy: #0a1630;
  --wolbi-yellow: #e8c547;
  --wolbi-yellow-deep: #d4a82a;
  --wolbi-paper: #f4f6fb;
  background:
    radial-gradient(900px 400px at 10% -5%, rgba(200, 16, 46, 0.08), transparent 55%),
    radial-gradient(800px 360px at 90% 0%, rgba(26, 79, 140, 0.1), transparent 50%),
    rgba(255, 255, 255, 0.92);
}
