/* ==========================================================================
   CHRISTMAS 2026 (temporary)
   Used by index.html (Christmas hero, festive hours bar, Festive at
   Northwood cards, Santa's sleigh) and christmas-hours.html.
   To switch Christmas off in January: put index.html back to its
   pre-Christmas version, then delete christmas.css, christmas.js and
   christmas-hours.html (and its line in crumbs.js).
   ========================================================================== */
:root {
  --xm-gold: #F4C542;
  --xm-gold-soft: #FFE08A;
  --xm-green: #1F3A2B;
  --xm-green-deep: #142A1E;
  --xm-red: #E8322B;
  --xm-night: #0F1418;
  --xm-card: #231E1F;
}

/* ── Festive hours bar (under the header) ─────────────────────── */
.xm-bar {
  position: absolute; left: 0; right: 0; top: var(--header-h); z-index: 6;
  background: var(--xm-green-deep); border-bottom: 1px solid rgba(244,197,66,0.55);
  color: #fff; font-size: 14px;
}
.xm-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 12px calc(var(--pad) + 36px) 12px var(--pad);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center;
}
.xm-bar-tag { color: var(--xm-gold); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.xm-bar-tag span { margin-right: 8px; }
.xm-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.xm-bar a:hover { color: var(--xm-gold); }
.xm-bar-close {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: none; color: rgba(255,255,255,0.75); cursor: pointer;
  font-size: 22px; line-height: 1; border-radius: 50%;
}
.xm-bar-close:hover, .xm-bar-close:focus-visible { color: #fff; background: rgba(255,255,255,0.1); outline: none; }
.xm-bar-short { display: none; }
@media (max-width: 700px) {
  .xm-bar { font-size: 13px; }
  .xm-bar-inner { gap: 4px 10px; padding-top: 10px; padding-bottom: 10px; }
  .xm-bar-long { display: none; }
  .xm-bar-short { display: inline; }
}

/* ── String of lights ─────────────────────────────────────────── */
.xm-lights {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 46px); z-index: 4; height: 46px;
  pointer-events: none; overflow: hidden;
}
.xm-bar-hidden .xm-lights { top: var(--header-h); }
@media (max-width: 700px) { .xm-lights { top: calc(var(--header-h) + 58px); } }
.xm-lights svg.xm-wire { position: absolute; left: 0; top: 0; width: 100%; height: 30px; }
.xm-bulb {
  position: absolute; top: var(--y, 8px); width: 10px; height: 15px; margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c); box-shadow: 0 0 10px 2px var(--c), 0 0 22px 4px color-mix(in srgb, var(--c) 45%, transparent);
  animation: xmTwinkle 2.6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.xm-bulb::before { /* cap */
  content: ""; position: absolute; left: 2px; top: -4px; width: 6px; height: 5px; border-radius: 2px; background: #3B3B3B;
}
/* Lights along the bottom edge of the header, on every page. They sit
   inside the header's bottom strip, so they never cover page content. */
.xm-has-lights { position: relative; }
.site-header.xm-has-lights { position: fixed; }
.xm-header-lights { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; pointer-events: none; overflow: hidden; z-index: 1; }
.xm-header-lights svg.xm-wire { height: 20px; }
.xm-header-lights .xm-bulb { width: 7px; height: 11px; margin-left: -3.5px; box-shadow: 0 0 7px 1px var(--c), 0 0 14px 2px color-mix(in srgb, var(--c) 40%, transparent); }
.xm-header-lights .xm-bulb::before { left: 1.5px; top: -3px; width: 4px; height: 4px; }
@keyframes xmTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; filter: brightness(0.8); } }

/* ── Christmas hero (homepage) ────────────────────────────────── */
.hero--xmas { background: var(--xm-night); }
.hero--xmas .hero-img { opacity: 0.85; filter: saturate(0.9) brightness(0.8) contrast(1.05); }
.hero--xmas .hero-scrim {
  background:
    linear-gradient(90deg, rgba(10,16,30,0.78) 0%, rgba(10,16,30,0.45) 45%, rgba(10,16,30,0.1) 100%),
    linear-gradient(180deg, rgba(10,18,34,0.55) 0%, rgba(10,18,34,0.15) 45%, rgba(15,20,24,0.92) 100%);
}
.hero--xmas .hero-track { display: none; }
.hero--xmas .hero-content { padding-top: 250px; }
@media (max-width: 700px) { .hero--xmas .hero-content { padding-top: 230px; } }
.hero--xmas .hero-eyebrow { color: var(--xm-gold); }
.hero--xmas .hero-eyebrow::before { background: var(--xm-gold); }
.hero--xmas .hero-title { line-height: 0.98; }
.hero--xmas .hero-title .xm-gold { color: var(--xm-gold); }
.hero--xmas .hero-sub { max-width: 580px; }

.xm-holly { position: absolute; right: 6%; bottom: 14%; width: 170px; z-index: 2; pointer-events: none; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45)); }
@media (max-width: 900px) { .xm-holly { width: 92px; right: 18px; bottom: 9%; } }

/* Santa hat on the header logo (homepage only) */
.logo.xm-has-hat { position: relative; }
.xm-hat { position: absolute; left: -6px; top: -16px; width: 30px; transform: rotate(-14deg); pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }

/* ── Santa's sleigh: crosses the hero left to right now and then ── */
.xm-sleigh {
  position: absolute; left: 0; top: 0; z-index: 1; width: 320px; pointer-events: none;
  transform: translateX(-320px); animation: xmFly 26s linear 2.5s infinite;
}
.xm-sleigh > div { animation: xmArc 26s ease-in-out 2.5s infinite; }
.xm-sleigh svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 10px rgba(255,224,138,0.35)); animation: xmBob 0.9s ease-in-out infinite alternate; }
.xm-sleigh .xm-legs-a { animation: xmGallopA 0.45s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0%; }
.xm-sleigh .xm-legs-b { animation: xmGallopB 0.45s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0%; }
/* Over the first ~30% of each loop it crosses the screen; the rest of the
   time it waits off the right-hand edge, so it appears every ~26s. */
@keyframes xmFly {
  0%   { transform: translateX(-320px); }
  30%  { transform: translateX(calc(100vw + 40px)); }
  100% { transform: translateX(calc(100vw + 40px)); }
}
/* Takes off from the empty lower-left of the hero and climbs into the
   sky on the right, passing behind the headline (the text stays on top). */
@keyframes xmArc {
  0%   { transform: translateY(78vh) rotate(-12deg); }
  15%  { transform: translateY(52vh) rotate(-16deg); }
  30%  { transform: translateY(16vh) rotate(-8deg); }
  100% { transform: translateY(16vh) rotate(-8deg); }
}
@keyframes xmBob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes xmGallopA { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes xmGallopB { from { transform: rotate(16deg); } to { transform: rotate(-14deg); } }
@media (max-width: 700px) { .xm-sleigh { width: 200px; animation-duration: 22s; } .xm-sleigh > div { animation-duration: 22s; } }

/* ── Falling snow (whole page) ────────────────────────────────── */
.xm-snow { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.xm-snow i {
  position: absolute; top: -12px; border-radius: 50%; background: #fff;
  animation: xmFall linear infinite;
}
@keyframes xmFall {
  0%   { transform: translate3d(0, -12px, 0); }
  100% { transform: translate3d(var(--dx, 20px), 105vh, 0); }
}

/* ── Festive at Northwood (homepage cards) ────────────────────── */
.xm-festive { background: #1A1617; color: #fff; border-bottom: 0; }
.xm-festive .section-eyebrow { color: var(--xm-gold); }
.xm-festive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.xm-festive-head .section-title { color: #fff; margin-bottom: 0; }
.xm-link { color: var(--xm-gold); font-weight: 700; font-size: 15px; text-decoration: none; }
.xm-link:hover { color: var(--xm-gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.xm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .xm-cards { grid-template-columns: 1fr; } }
.xm-card { display: flex; flex-direction: column; background: var(--xm-card); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.xm-card:hover, .xm-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.45); outline: none; }
.xm-card img { width: 100%; aspect-ratio: 16 / 7.5; object-fit: cover; display: block; }
.xm-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.xm-card .xm-card-kicker { color: var(--xm-gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.xm-card h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; margin-bottom: 12px; }
.xm-card p { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.55; margin-bottom: 18px; flex: 1; }
.xm-card .xm-link { font-size: 15px; }
.xm-card:hover .xm-link { text-decoration: underline; text-underline-offset: 3px; }

/* ── Christmas opening hours page ─────────────────────────────── */
.xm-page-hero { background: var(--xm-green-deep); }
.xm-page-hero .page-hero-media img { opacity: 0.5; filter: saturate(0.9) brightness(0.85); }
.xm-page-hero .page-hero-media::after { background: linear-gradient(180deg, rgba(20,42,30,0.55) 0%, rgba(20,42,30,0.75) 55%, var(--xm-green-deep) 100%) !important; }
.xm-page-hero .xm-eyebrow { color: var(--xm-gold); font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.xm-page-hero .page-hero-title .xm-gold { color: var(--xm-gold); }
.xm-page-hero .xm-lights { top: auto; bottom: 6px; }

.xm-hours-section { background: var(--xm-green-deep); padding: 20px var(--pad) 100px; color: #fff; }
.xm-hours { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; }
.xm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255,255,255,0.07); border-radius: 10px; padding: 16px 22px 16px 24px; border-left: 5px solid rgba(255,255,255,0.25);
}
.xm-row.is-reduced { border-left-color: var(--xm-gold); }
.xm-row.is-closed { border-left-color: var(--xm-red); }
.xm-day { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); text-transform: uppercase; line-height: 1.05; }
.xm-day small { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--xm-gold); margin-top: 4px; }
.xm-time { font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px); text-transform: uppercase; white-space: nowrap; text-align: right; }
.xm-row.is-normal .xm-time { font-family: var(--f-body); font-weight: 600; font-size: 16px; text-transform: none; color: rgba(255,255,255,0.75); }
.xm-closed { display: inline-block; background: var(--xm-red); color: #fff; border-radius: 999px; padding: 6px 18px; font-size: clamp(16px, 2.2vw, 22px); letter-spacing: 0.5px; }
.xm-key { max-width: 860px; margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: rgba(255,255,255,0.75); }
.xm-key span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; background: var(--k); }
.xm-sign { max-width: 860px; margin: 34px auto 0; text-align: center; font-weight: 600; font-size: 17px; }
.xm-sign .heart { color: var(--xm-red); }
.xm-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  .xm-snow, .xm-sleigh { display: none; }
  .xm-bulb { animation: none; }
}
