/* ==========================================================================
   Holiday theme — active only while <html> has the "holiday" class.
   holiday.js adds that class automatically from Dec 1 to Jan 6, so the site
   returns to its normal look on its own. Preview any time with ?holiday=1,
   or switch it off with ?holiday=0.
   ========================================================================== */

html.holiday {
  --hol-red: #e5383b;
  --hol-red-deep: #b51f2a;
  --hol-gold: #f2c14e;
  --hol-green: #2f8f5b;
  --hol-ribbon-h: 34px;
}

/* ---- Accent swap: purple → holly red (gold for glows) -------------------- */
html.holiday ::selection { background: var(--hol-red); color: #fff; }
html.holiday .text-blue { color: var(--hol-red); }
html.holiday .bg-blue { background-color: var(--hol-red); }
html.holiday .hover\:text-blue:hover { color: var(--hol-red); }
html.holiday .hover\:decoration-blue:hover { text-decoration-color: var(--hol-red); }
html.holiday .btn-blue { background: var(--hol-red); }
html.holiday .btn-blue:hover { background: #fff; color: #000; }
html.holiday .mega-link:hover { color: var(--hol-red); }
html.holiday #cursor { background: var(--hol-gold); box-shadow: 0 0 14px 2px rgba(242, 193, 78, 0.55); }
html.holiday #preloader .preloader-bar-fill { background: linear-gradient(90deg, var(--hol-red), var(--hol-gold)); }
html.holiday .bento-tile:hover .bento-arrow,
html.holiday .bento-tile:focus-visible .bento-arrow { background: var(--hol-red); border-color: var(--hol-red); }
html.holiday .bento-tile:focus-visible { outline-color: var(--hol-red); }
html.holiday .faq-row.open h3 { color: var(--hol-red); }
html.holiday .legal a:hover { color: var(--hol-red); text-decoration-color: var(--hol-red); }
html.holiday .cta-eyebrow { color: var(--hol-gold) !important; }

/* The wordmark full stop becomes a softly glowing ornament */
html.holiday .megamark .text-blue,
html.holiday .preloader-mark .text-blue,
html.holiday #film-logo .text-blue {
  animation: hol-ornament 3.2s ease-in-out infinite;
}
@keyframes hol-ornament {
  0%, 100% { color: var(--hol-red); text-shadow: 0 0 0.12em rgba(229, 56, 59, 0.45); }
  50%      { color: var(--hol-gold); text-shadow: 0 0 0.3em rgba(242, 193, 78, 0.75); }
}

/* Preloader greeting */
html.holiday #preloader::after {
  content: "Season\2019s greetings";
  position: absolute; left: 0; right: 0; bottom: 14%;
  text-align: center; font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--hol-gold);
  opacity: 0.85;
}

/* ---- Greeting ribbon (top of the header) -------------------------------- */
.hol-ribbon {
  display: grid; grid-template-rows: 1fr; overflow: hidden;
  background: linear-gradient(90deg, var(--hol-red-deep), var(--hol-red) 50%, var(--hol-red-deep));
  transition: grid-template-rows 0.45s cubic-bezier(0.25, 1, 0.4, 1);
}
.hol-ribbon > a {
  min-height: 0; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  height: var(--hol-ribbon-h); padding: 0 1rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em; color: #fff;
  white-space: nowrap; text-overflow: ellipsis; text-decoration: none;
}
.hol-ribbon > a u { text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.5); }
.hol-ribbon > a:hover u { text-decoration-color: #fff; }
.hol-ribbon .hol-star { color: var(--hol-gold); font-size: 0.85rem; line-height: 1; }
.hol-ribbon .hol-long { display: none; }
@media (min-width: 640px) { .hol-ribbon .hol-long { display: inline; } }
#nav.hol-collapsed .hol-ribbon { grid-template-rows: 0fr; }

/* The homepage hero sits close under the header: give it room for the ribbon */
html.holiday main > #hero { padding-top: calc(6rem + var(--hol-ribbon-h)); }
@media (min-width: 768px) { html.holiday main > #hero { padding-top: calc(7rem + var(--hol-ribbon-h)); } }

/* Countdown number in the ribbon */
.hol-ribbon .hol-count { display: inline-block; min-width: 1.3em; padding: 0 0.3em; margin-right: 0.1em; border-radius: 4px; background: rgba(0,0,0,0.25); color: var(--hol-gold); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

/* ---- Footer sign-off ------------------------------------------------------ */
.hol-signoff { color: var(--hol-gold); }

@media (prefers-reduced-motion: reduce) {
  html.holiday .megamark .text-blue,
  html.holiday .preloader-mark .text-blue,
  html.holiday #film-logo .text-blue,
  html.holiday .hol-count { animation: none; }
}

html.holiday .svc:focus-visible { outline-color: var(--hol-red); }
