/* ==========================================================================
   Christmas season, home page only (index-christmas.html loads this through
   $page_css). Everything Christmas lives here, so the fall page is untouched
   and the switch back is just the other index.html.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: the Christmas photos carry their own lettering (the Dusk one has its
   title at the top right and an "Opening November 28" badge at the foot), so
   the whole photo shows, framed at its own shape. No signboard: its eyebrow
   and headline lead the green bar below instead.
   -------------------------------------------------------------------------- */
.gradient-band .hero {
  display: block;
  min-height: 0;
  padding-top: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.gradient-band .hero-slides {
  position: relative;
  inset: auto;
  aspect-ratio: 1670 / 790;          /* the Dusk photo; Frontier Town is within 2% */
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(43, 35, 32, 0.28);
}
.hero-slide,
.hero-slide[style] { background-position: center; }
.quickbar { margin-top: 30px; }
/* The title sits top right on the Dusk photo; its top left is open sky. */
.hero-dots { right: auto; left: 18px; }

@media (max-width: 767px) {
  .gradient-band .hero-slides { border-radius: 16px; }
  .hero-dots { top: 10px; left: 10px; padding: 7px 10px; }
  .quickbar { margin-top: 20px; }
}

/* --------------------------------------------------------------------------
   The bar under the photo, in Christmas red: intro (eyebrow + the page's
   H1), hours, buttons. Gold piping inside the edge and a snow cap along the
   top, like the client's sign. Gold text on this red is 4.6:1 or better.
   -------------------------------------------------------------------------- */
.xmas-quickbar .quickbar-inner {
  position: relative;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 18px 30px;
  padding: 28px 30px 24px;
  background: linear-gradient(to bottom, #b3171c, #9e1419);
  border-color: #6e0c10;
  box-shadow: inset 0 0 0 3px rgba(254, 206, 20, 0.5), 0 14px 30px rgba(20, 16, 50, 0.35);
}
.xmas-quickbar .quickbar-inner::before {
  content: "";
  position: absolute; left: 12px; right: 12px; top: -10px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 9 C8 2 18 2 26 7 C34 1 46 1 54 6 C62 0 76 1 84 7 C92 2 104 2 112 6 C116 4 119 6 120 9 L120 12 C114 14 110 18 104 15 C98 19 92 13 86 15 C80 19 72 14 66 14 C60 18 52 13 46 15 C40 20 32 14 26 14 C20 19 12 13 6 15 C3 16 1 14 0 12 Z' fill='%23ffffff'/%3E%3Cpath d='M0 12 C1 14 3 16 6 15 C12 13 20 19 26 14 C32 14 40 20 46 15 C52 13 60 18 66 14 C72 14 80 19 86 15 C92 13 98 19 104 15 C110 18 114 14 120 12' fill='none' stroke='%23c9d3f0' stroke-width='1.4'/%3E%3C/svg%3E") left top / 110px 22px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(60, 10, 14, 0.35));
  pointer-events: none;
}
.xmas-quickbar .quick-eyebrow,
.xmas-quickbar .quick-next { color: #fece14; }
.xmas-quickbar .quick-title, .xmas-quickbar .quick-sub { color: #fff8ec; }
.xmas-quickbar .quick-title { font-size: clamp(1.25rem, 1.5vw, 1.45rem); text-wrap: balance; }
.xmas-quickbar .quick-sub,
.xmas-quickbar .quick-next { font-size: clamp(1.05rem, 1.2vw, 1.15rem); line-height: 1.45; }
.xmas-quickbar .quick-next { margin-top: 6px; text-wrap: pretty; }
.xmas-quickbar .quick-actions .btn { font-size: 1.1rem; padding-inline: 26px; }
.xmas-quickbar .btn-orange { --btn-bg: #fece14; --btn-fg: #5c0a0d; --btn-edge: #b88f00; }
.xmas-quickbar .btn-blue   { --btn-bg: #25703f; --btn-fg: #fff; --btn-edge: #174a29; }
.xmas-quickbar .quick-eyebrow {
  margin: 0 0 4px;
  font-family: var(--fun);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.xmas-quickbar h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1.12;
  color: #fff8ec;
  text-wrap: balance;
}
.xmas-quickbar .quick-hours {
  padding-left: 30px;
  border-left: 1px solid rgba(254, 206, 20, 0.45);
}
.xmas-quickbar .quick-actions { display: flex; flex-direction: column; gap: 10px; }
.xmas-quickbar .quick-actions .btn { text-align: center; }

@media (max-width: 1023px) {
  .xmas-quickbar .quickbar-inner { grid-template-columns: 1fr; padding: 26px 22px 22px; }
  .xmas-quickbar .quick-hours {
    padding: 16px 0 0; border-left: 0;
    border-top: 1px solid rgba(254, 206, 20, 0.45);
  }
  .xmas-quickbar .quick-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .xmas-quickbar .quick-actions { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Christmas Adventure Pass (where Glow Weekends was): the client's sign beside
   the same facts typed out, so screen readers and search get them too.
   -------------------------------------------------------------------------- */
.xmas-pass {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.xmas-pass-sign { display: block; }
.xmas-pass-sign img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 14px 22px rgba(43, 35, 32, 0.3));
}

.xmas-pass-info {
  padding: clamp(26px, 2.6vw, 40px);
  background: var(--paper) url("../img/paper.jpg") repeat;
  background-size: 320px 320px;
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(43, 35, 32, 0.28);
  text-align: center;
  color: var(--ink);
}
.xmas-pass-info h3 {
  font-family: var(--fun);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  line-height: 1.1;
  color: #b3171c;
  margin: 0 0 14px;
}
.xmas-pass-price {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 4px 14px;
  margin: 0 0 18px;
}
.xmas-pass-amount {
  font-family: var(--fun);
  font-size: clamp(2.8rem, 4.2vw, 3.6rem);
  line-height: 1;
  color: var(--forest);
}
.xmas-pass-ages { font-size: 1.15rem; font-weight: 700; color: var(--forest-dk); }

.xmas-pass-facts {
  margin: 0 0 24px;
  border-top: 1px solid rgba(43, 35, 32, 0.14);
}
.xmas-pass-facts > div {
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
  gap: 2px 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(43, 35, 32, 0.14);
}
.xmas-pass-facts dt {
  font-weight: 700; color: #b3171c;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
}
.xmas-pass-facts dd { margin: 0; font-size: 1.08rem; font-weight: 600; color: var(--ink); }

@media (max-width: 1023px) {
  .xmas-pass { grid-template-columns: 1fr; max-width: 760px; }
}
@media (max-width: 767px) {
  .xmas-pass-info { border-radius: 22px; }
}

/* --------------------------------------------------------------------------
   The band behind the hero: a dusk sky (in place of the fall pink-to-gold),
   strings of lights and a few stars drawn by christmas.js into .xmas-sky,
   and drifts of snow along the foot (assets/img/xmas-snowbank.svg, a tile
   that repeats sideways; its source script is noted in AGENTS.md).
   Evening at the top (a deep blue that still reads as blue), easing down
   to the glow above the snow.
   -------------------------------------------------------------------------- */
.gradient-band {
  --snow-h: 300px;
  position: relative;
  isolation: isolate;
  padding-top: 52px;
  background: linear-gradient(to bottom,
    #172456 0%,
    #24346f 18%,
    #3b4791 36%,
    #6a5fb2 56%,
    #9466ae calc(100% - 520px),
    #d9808f calc(100% - 250px),
    #f6b27d 100%);
}
.gradient-band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: var(--snow-h);
  background: url("../img/xmas-snowbank.svg") left bottom / auto 100% repeat-x;
  pointer-events: none;
}
.xmas-sky {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.xmas-sky svg { display: block; }
.xmas-sky .xmas-lights { position: absolute; top: 0; left: 0; }

/* Blinking bulbs: hard on/off like a real blinking set; each bulb has its own
   --blink length and offset (set by christmas.js). Off, the glass stays
   faintly visible. Steady for anyone who prefers reduced motion. */
.xmas-lights .bulb {
  animation: bulb-blink var(--blink, 2s) steps(1, end) infinite;
  animation-delay: var(--blink-delay, 0s);
}
@keyframes bulb-blink {
  0%   { opacity: 1; }
  55%  { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-lights .bulb { animation: none; }
}
.gradient-band > :not(.xmas-sky) { position: relative; z-index: 2; }

/* A snowman standing in the drifts at the right, in front of the snow and
   behind the content (he ducks behind the pass card where space is tight). */
.gradient-band::before {
  content: "";
  position: absolute; z-index: 1; bottom: 10px;
  right: clamp(8px, 4vw, 90px);
  width: calc(var(--snowman-h) * 0.8); height: var(--snowman-h);
  --snowman-h: clamp(170px, 14vw, 260px);
  background: url("../img/xmas-snowman.svg") center bottom / contain no-repeat;
  pointer-events: none;
}

/* Same space below the heading (baseline to the sign's bow) as above it
   (red bar to the capitals), measured in the rendered page. */
.xmas-promo .section-head { margin-bottom: 52px; }
@media (min-width: 768px) and (max-width: 1023px) { .xmas-promo .section-head { margin-bottom: 54px; } }
@media (max-width: 767px) { .xmas-promo .section-head { margin-bottom: 38px; } }

/* The pass sits down in the snow. */
.xmas-promo { padding-top: 60px; padding-bottom: calc(var(--snow-h) - 120px); }

/* Headings now sit on the evening sky. */
.gradient-band .section h2 {
  color: #fff8ec;
  text-shadow: 0 2px 0 rgba(36, 30, 84, 0.55), 0 0 18px rgba(36, 30, 84, 0.45);
}

/* No torn edge under the band: the snowbank runs straight on into the snowy
   "Play all day!" section below (.xmas-snowfield). */
.gradient-band + .edge-flip { display: none; }

@media (max-width: 767px) {
  .gradient-band { --snow-h: 170px; padding-top: 36px; }
  .gradient-band::before { --snowman-h: 120px; right: 10px; bottom: 6px; }
  .xmas-promo { padding-top: 44px; padding-bottom: calc(var(--snow-h) - 34px); }  /* clear snow for the snowman */
}

/* --------------------------------------------------------------------------
   "Play all day!" (down through Birthdays) carries on from the snowbank: it
   starts in the drifts' own bottom colour, so the torn edge above melts away,
   and eases to a snowy off-white with a faint glitter. The wavy edge into the
   green park-map section gets the same off-white behind it.
   -------------------------------------------------------------------------- */
.xmas-snowfield {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23c3cde9'%3E%3Ccircle cx='18' cy='26' r='1.3'/%3E%3Ccircle cx='96' cy='12' r='1'/%3E%3Ccircle cx='170' cy='44' r='1.4'/%3E%3Ccircle cx='226' cy='98' r='1'/%3E%3Ccircle cx='58' cy='92' r='1.1'/%3E%3Ccircle cx='132' cy='120' r='1.4'/%3E%3Ccircle cx='200' cy='170' r='1.2'/%3E%3Ccircle cx='30' cy='168' r='1.4'/%3E%3Ccircle cx='104' cy='206' r='1'/%3E%3Ccircle cx='160' cy='228' r='1.2'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='70' cy='40' r='1.6'/%3E%3Ccircle cx='190' cy='120' r='1.8'/%3E%3Ccircle cx='120' cy='176' r='1.6'/%3E%3Ccircle cx='12' cy='120' r='1.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 240px repeat,
    linear-gradient(to bottom, #e3e9f8 0, #ecf0fa 260px, #f4f6fb 640px, #f7f8fc 100%);
}
.xmas-snowfield + .edge { background: #f7f8fc; }

/* --------------------------------------------------------------------------
   Snowflakes instead of leaves. The leaves script still runs from app.js in
   the fall months; on this page they are simply never shown.
   -------------------------------------------------------------------------- */
.leaves { display: none !important; }
.snowflakes { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.snowflake {
  position: absolute; top: -8vh;
  animation: snow-fall var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.snowflake svg {
  display: block; width: var(--size, 24px); height: auto;
  opacity: 0.88;
  animation: snow-sway var(--spin, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes snow-fall {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--drift, 40px), 116vh, 0); }
}
@keyframes snow-sway {
  0%   { transform: translateX(-16px) rotate(0deg); }
  50%  { transform: translateX(16px) rotate(90deg); }
  100% { transform: translateX(-16px) rotate(180deg); }
}
@media print { .snowflakes, .xmas-sky { display: none !important; } }
