/* -------------------------------------------------------------------------------
	Christmas 2026 — the full-width box above the header, and the Santa hat on
	the header logo. Shown only while <html> has the christmas-on class (see the
	script in the <head> of index.html and /assets/js/site/site-christmas.js).
------------------------------------------------------------------------------- */


/* ---------- Section: full width, above the header ---------- */
section.xmas-section {padding: 0; background: none; overflow-x: clip;}


/* ---------- Frame: holds the box and the lights round its edges ---------- */
.xmas-frame {position: relative;}
.xmas-frame.xmas-paused *, .xmas-frame.xmas-paused *::before, .xmas-frame.xmas-paused *::after {animation-play-state: paused!important;}


/* ---------- The box ---------- */
/* Night sky in the header's deep teal (#0B4047): darker at the top, lighter
   towards the hills, with a warm glow behind the headline. Content sits in the site's own
   .wrap.largest, so it lines up with the header below. */
.xmas-banner {position: relative; overflow: hidden; isolation: isolate; padding: 50px 0 95px 0; color: #FFFFFF; text-align: center;
	background:
		radial-gradient(ellipse 55% 45% at 50% 30%, rgba(255, 214, 120, 0.14), transparent 70%),
		radial-gradient(ellipse 90% 35% at 50% 100%, rgba(95, 163, 168, 0.40), transparent 75%),
		linear-gradient(180deg, #06292E 0%, #0B4047 45%, #15606A 78%, #2A7F86 100%);}
.xmas-content {position: relative; z-index: 4;}

.xmas-banner h2 {max-width: 100%; margin: 0 auto 5px auto; text-wrap: balance; font-size: 34px; color: #FFFFFF; text-shadow: 0 2px 18px rgba(10, 25, 60, 0.55);}
/* Gold text with a slow shimmer sweeping across it */
.xmas-gold {background: linear-gradient(110deg, #FFE599 0%, #FFD966 38%, #FFF6D6 50%, #FFD966 62%, #FFE599 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: xmas-shimmer 5s ease-in-out infinite; text-shadow: none;}
@keyframes xmas-shimmer {0% {background-position: 100% 0;} 60%, 100% {background-position: 0% 0;}}
.xmas-from {margin: 0 auto 25px auto; font-size: 18px; color: rgba(255, 255, 255, 0.85);}

/* Dates and countdown side by side */
.xmas-details {display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: 20px 35px;}

/* Frosted gold glass: snow falling behind it is softly blurred */
.xmas-closure {display: inline-flex; align-items: stretch; text-align: center; border: 1px solid rgba(255, 229, 153, 0.6); border-radius: 15px; background: rgba(255, 229, 153, 0.16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);}
.xmas-closure > div {padding: 14px 22px;}
.xmas-closure small {display: block; margin: 0 0 4px 0; font-size: 12px; line-height: 150%; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FFE599;}
.xmas-closure strong {font-size: 17px; white-space: nowrap;}
.xmas-closure .xmas-arrow {display: flex; align-items: flex-end; padding: 0 4px 14px 4px; font-size: 22px; line-height: 25px; color: #FFE599;}

.xmas-note {max-width: 900px; margin: 20px auto 0 auto; font-size: 14px; line-height: 145%; color: rgba(255, 255, 255, 0.85);}
.xmas-note strong {color: #FFFFFF;}


/* ---------- Countdown ---------- */
.xmas-countdown-label {margin: 0 0 8px 0; font-size: 12px; line-height: 150%; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #FFE599;}
.xmas-countdown-tiles {display: inline-flex; gap: 8px;}
.xmas-countdown-tile {min-width: 60px; padding: 9px 8px; border-radius: 12px; border: 1px solid rgba(255, 229, 153, 0.35); background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);}
.xmas-countdown-tile strong {display: block; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums;}
.xmas-countdown-tile small {display: block; margin: 4px 0 0 0; font-size: 10px; line-height: 1.2; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);}
.xmas-sr-only {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;}


/* ---------- Twinkling stars ---------- */
.xmas-stars {position: absolute; inset: 0; z-index: 1; pointer-events: none;}
.xmas-stars span {position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); animation: xmas-star var(--speed) ease-in-out var(--delay) infinite;}
@keyframes xmas-star {0%, 100% {opacity: 0.25;} 50% {opacity: 1;}}


/* ---------- Snowy hills and trees along the bottom ---------- */
.xmas-scene {position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 2; pointer-events: none;}
.xmas-hill {position: absolute; left: 0; bottom: 0; width: 100%; height: 75px;}
.xmas-hill-back {opacity: 0.07;}
.xmas-hill-back path {fill: #C9DAEE;}
.xmas-hill-front {z-index: 1;}
.xmas-hill-front path {fill: #0B4047;} /* same deep teal as the header, so the hills run straight into it */
.xmas-tree {position: absolute; bottom: 12px; width: auto; overflow: visible;}
.xmas-tree-body {fill: #1C5A45;}
.xmas-tree-trunk {fill: #3B2A1E;}
.xmas-tree-snow {fill: #F2F7FC;}
.xmas-tree-star {fill: #F6C453; filter: drop-shadow(0 0 4px #F6C453); transform-box: fill-box; transform-origin: center; animation: xmas-star-glow 2.4s ease-in-out infinite;}
@keyframes xmas-star-glow {50% {filter: drop-shadow(0 0 9px #FFE599); transform: scale(1.15);}}


/* ---------- Falling snow ---------- */
.xmas-snow {position: absolute; inset: 0; z-index: 3; pointer-events: none;}
.xmas-snow > span {position: absolute; top: -12px; left: var(--x); animation: xmas-fall var(--fall) linear var(--delay) infinite;}
.xmas-snow > span > span {display: block; width: var(--s); height: var(--s); border-radius: 50%; background: #FFFFFF; opacity: var(--o); box-shadow: 0 0 4px rgba(255, 255, 255, 0.6); animation: xmas-sway var(--sway) ease-in-out var(--delay) infinite alternate;}
@keyframes xmas-fall {from {transform: translateY(0);} to {transform: translateY(calc(var(--xmas-h, 400px) + 24px));}}
@keyframes xmas-sway {from {transform: translateX(calc(var(--drift) * -1));} to {transform: translateX(var(--drift));}}


/* ---------- Fairy lights round the top and sides ---------- */
.xmas-banner-lights {position: absolute; top: 0; left: 0; overflow: visible; z-index: 5; pointer-events: none;}
.xmas-wire {stroke: #000000; stroke-width: 2; stroke-linecap: round;}
.xmas-socket {fill: #000000;}
.xmas-glass {fill: url(#xmas-glass-grad); stroke: rgba(150, 110, 30, 0.35); stroke-width: 0.6; filter: drop-shadow(0 0 2.5px rgba(255, 196, 80, 0.95)); animation: xmas-twinkle-glass var(--twinkle, 4s) ease-in-out var(--delay, 0s) infinite;}
.xmas-filament {fill: #FFD36E;}
.xmas-glow {fill: url(#xmas-glow-grad); transform-box: fill-box; transform-origin: center; animation: xmas-twinkle-glow var(--twinkle, 4s) ease-in-out var(--delay, 0s) infinite;}
@keyframes xmas-twinkle-glow {
	0%, 100% {opacity: 0.5; transform: scale(0.85);}
	30% {opacity: 1; transform: scale(1.7);}
	45% {opacity: 1; transform: scale(1.4);}
	70% {opacity: 0.45; transform: scale(0.8);}
}
@keyframes xmas-twinkle-glass {
	0%, 100% {opacity: 0.85;}
	30% {opacity: 1;}
	70% {opacity: 0.8;}
}


/* ---------- Santa hat on the header logo ---------- */
/* Perched on the top of the "S", tipped at an angle and mirrored (bobble on the left); sized against the logo so
   it scales with it. Wobbles when the logo is hovered. */
header .logo .xmas-hat {position: absolute; z-index: 2; top: -48%; left: -2.5%; width: 15%; height: auto; transform: rotate(-26deg) scaleX(-1); transform-origin: 40% 80%; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(5, 20, 35, 0.3));}
header .logo:hover .xmas-hat {animation: xmas-hat-wobble 0.7s ease-in-out;}
@keyframes xmas-hat-wobble {
	0%, 100% {transform: rotate(-26deg) scaleX(-1);}
	30% {transform: rotate(-34deg) scaleX(-1);}
	60% {transform: rotate(-19deg) scaleX(-1);}
	80% {transform: rotate(-28deg) scaleX(-1);}
}


/* ---------- Tablet ---------- */
@media only screen and (max-width: 960px) {
.xmas-banner h2 {font-size: 30px;}
}


/* ---------- Phones ---------- */
@media only screen and (max-width: 768px) {
.xmas-banner {padding: 40px 0 75px 0;}
.xmas-banner h2 {font-size: 24px;}
.xmas-from {margin: 0 auto 20px auto; font-size: 15px;}
.xmas-details {flex-direction: column; align-items: center; gap: 18px;}
.xmas-closure > div {padding: 10px 12px;}
.xmas-closure small {font-size: 11px;}
.xmas-closure strong {font-size: 15px; line-height: 135%;}
.xmas-closure .xmas-comma {display: none;}
.xmas-closure .xmas-day {display: block;}
.xmas-closure .xmas-arrow {padding: 0 0 10px 0; font-size: 18px;}
.xmas-countdown-tiles {gap: 6px;}
.xmas-countdown-tile {min-width: 54px; padding: 8px 4px;}
.xmas-countdown-tile strong {font-size: 20px;}
.xmas-note {margin: 15px auto 0 auto; font-size: 13px;}
.xmas-scene {height: 70px;}
.xmas-hill {height: 60px;}
.xmas-tree {bottom: 8px; transform: scale(0.7); transform-origin: bottom center;}
}


@media (prefers-reduced-motion: reduce) {
.xmas-snow {display: none;}
.xmas-stars span, .xmas-gold, .xmas-tree-star, .xmas-glow, .xmas-glass, header .logo:hover .xmas-hat {animation: none;}
}
