/* holiday.css — seasonal (Christmas) decorations for SunEez.
   Everything is scoped under html.xmas, which /assets/js/holiday.js only adds
   while the season window in that file is open. Out of season this file does nothing.
   To change or extend the season, edit SEASON_START / SEASON_END in holiday.js. */

/* ---------- falling snow ---------- */
.xmas-snow {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 700;
}

/* ---------- Santa hats ---------- */
html.xmas .site-header .logo,
html.xmas .footer-logo,
html.xmas .hero-slide.is-active .hero-badge strong { position: relative; }

html.xmas .site-header .logo::after,
html.xmas .footer-logo::after,
html.xmas .hero-slide.is-active .hero-badge strong::after {
  content: "";
  position: absolute;
  background: url("/_files/santa-hat.svg") no-repeat center / contain;
  pointer-events: none;
}

/* header logo */
html.xmas .site-header .logo::after {
  width: 40px; height: 30px;
  left: -10px; top: 2px;
  transform: rotate(-15deg);
}
/* footer logo */
html.xmas .footer-logo::after {
  width: 38px; height: 29px;
  left: -11px; top: -6px;
  transform: rotate(-16deg);
}
/* the "30+ years" badge on the hero */
html.xmas .hero-slide.is-active .hero-badge strong::after {
  width: 34px; height: 26px;
  left: -10px; top: -17px;
  transform: rotate(-18deg);
}

@media (max-width: 991px) {
  html.xmas .site-header .logo::after { width: 32px; height: 24px; left: -6px; top: 2px; }
  html.xmas .hero-slide.is-active .hero-badge strong::after { display: none; }
}

/* ---------- festive trim under the header ---------- */
html.xmas .site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  height: 5px; bottom: -5px;
  background: repeating-linear-gradient(135deg,
    #c62828 0 9px, #ffffff 9px 18px);
  opacity: .85;
}

/* ---------- holiday greeting in the top bar ---------- */
html.xmas .xmas-greet { color: #ffe9e9; }
html.xmas .xmas-greet i { color: #e35d5d; }

/* ---------- a little snow on top of the section cards ---------- */
html.xmas .to-top { box-shadow: 0 8px 20px rgba(198, 40, 40, .35); }

@media (prefers-reduced-motion: reduce) {
  .xmas-snow { display: none; }
}
