/* River Valley Daycare — seasonal themes (auto-applied by date) */

/* ── Fall: Sep 1 – Nov 30 ───────────────────────────────────────── */
html[data-season="fall"] {
  --g: #5c6b35;
  --gl: #738545;
  --gp: #f2f0e6;
  --gm: #d9d5c0;
  --cr: #faf8f2;
  --cd: #efe9db;
  --td: #1f2a18;
  --tm: #3f4a32;
  --tu: #6a7358;
  --sh: 0 4px 24px rgba(92, 107, 53, 0.12);
  --shh: 0 8px 40px rgba(92, 107, 53, 0.2);
}

html[data-season="fall"] nav {
  background: rgba(250, 248, 242, 0.97) !important;
  border-bottom-color: var(--gm) !important;
}

html[data-season="fall"] .mmenu {
  background: rgba(250, 248, 242, 0.98) !important;
}

html[data-season="fall"] #rv-topbar {
  background: linear-gradient(90deg, #5c6b35, #a65c2a, #5c6b35) !important;
}

html[data-season="fall"] #rv-chat-btn {
  background: #5c6b35 !important;
  box-shadow: 0 4px 20px rgba(92, 107, 53, 0.45) !important;
}

html[data-season="fall"] #rv-chat-btn:hover {
  box-shadow: 0 6px 28px rgba(92, 107, 53, 0.55) !important;
}

html[data-season="fall"] .rch,
html[data-season="fall"] .rvav,
html[data-season="fall"] .rvm.usr .rvb,
html[data-season="fall"] #rv-snd {
  background: #5c6b35 !important;
}

html[data-season="fall"] .rvqr {
  background: #f2f0e6 !important;
  border-color: #d9d5c0 !important;
  color: #5c6b35 !important;
}

html[data-season="fall"] .bp {
  box-shadow: 0 4px 16px rgba(92, 107, 53, 0.28) !important;
}

html[data-season="fall"] .hero-blob {
  background: #ebe4d2 !important;
}

/* ── Holiday: Dec 1 – Dec 31 ────────────────────────────────────── */
html[data-season="holiday"] {
  --g: #2f5c45;
  --gl: #3d7358;
  --gp: #eef5f0;
  --gm: #c5d9cc;
  --cr: #f7faf8;
  --cd: #e8f0eb;
  --td: #14241c;
  --tm: #2f463a;
  --tu: #5a7366;
  --sh: 0 4px 24px rgba(47, 92, 69, 0.12);
  --shh: 0 8px 40px rgba(47, 92, 69, 0.2);
}

html[data-season="holiday"] nav {
  background: rgba(247, 250, 248, 0.97) !important;
  border-bottom-color: var(--gm) !important;
}

html[data-season="holiday"] .mmenu {
  background: rgba(247, 250, 248, 0.98) !important;
}

html[data-season="holiday"] #rv-topbar {
  background: linear-gradient(90deg, #2f5c45, #1e4634 45%, #7a2f2f, #2f5c45) !important;
}

html[data-season="holiday"] #rv-chat-btn {
  background: #2f5c45 !important;
  box-shadow: 0 4px 20px rgba(47, 92, 69, 0.45) !important;
}

html[data-season="holiday"] #rv-chat-btn:hover {
  box-shadow: 0 6px 28px rgba(47, 92, 69, 0.55) !important;
}

html[data-season="holiday"] .rch,
html[data-season="holiday"] .rvav,
html[data-season="holiday"] .rvm.usr .rvb,
html[data-season="holiday"] #rv-snd {
  background: #2f5c45 !important;
}

html[data-season="holiday"] .rvqr {
  background: #eef5f0 !important;
  border-color: #c5d9cc !important;
  color: #2f5c45 !important;
}

html[data-season="holiday"] .bp {
  box-shadow: 0 4px 16px rgba(47, 92, 69, 0.28) !important;
}

html[data-season="holiday"] .hero-blob {
  background: #d8ebe0 !important;
}

/* ── Shared seasonal FX layer ───────────────────────────────────── */
#rv-season-fx {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  overflow: hidden;
}

#rv-season-fx .rv-leaf,
#rv-season-fx .rv-flake {
  position: absolute;
  top: -40px;
  will-change: transform, opacity;
}

#rv-season-fx .rv-leaf {
  width: 22px;
  height: 22px;
  opacity: 0.9;
  background: currentColor;
  border-radius: 0 70% 40% 70%;
  box-shadow: inset -3px -2px 0 rgba(0, 0, 0, 0.12);
  transform-origin: center center;
  animation: rv-leaf-fall linear infinite;
}

#rv-season-fx .rv-leaf::after {
  content: '';
  position: absolute;
  left: 48%;
  top: 8%;
  width: 2px;
  height: 70%;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 1px;
  transform: rotate(12deg);
}

#rv-season-fx .rv-flake {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 3px rgba(200, 220, 255, 0.45);
  animation: rv-snow-fall linear infinite;
}

@keyframes rv-leaf-fall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg) scale(1);
    opacity: 0;
  }
  5% {
    opacity: 0.95;
  }
  50% {
    transform: translate3d(calc(var(--drift, 40px) * 0.55), 50vh, 0) rotate(360deg) scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--drift, 40px), 108vh, 0) rotate(720deg) scale(0.9);
    opacity: 0.2;
  }
}

@keyframes rv-snow-fall {
  0% {
    transform: translate3d(0, -10vh, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(var(--drift, 20px), 110vh, 0);
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rv-season-fx .rv-leaf,
  #rv-season-fx .rv-flake {
    animation: none !important;
    display: none !important;
  }
}

@media (max-width: 900px) {
  .rv-season-msg {
    display: none;
  }
}

@media (max-width: 768px) {
  #rv-season-fx .rv-leaf:nth-child(n+12),
  #rv-season-fx .rv-flake:nth-child(n+10) {
    display: none;
  }
}
