/* Christmas 2026 – soft, muted decorations for Hypnotherapy with Sin.
   Only active with <body class="xmas">. REMOVE ON 31 DEC 2026: see NOTES.md. */

/* Layering: never intercept clicks, never shift layout, stay below the sticky header content. */
body.xmas .xmas-lights,
body.xmas .xmas-sky,
body.xmas .xmas-santa,
body.xmas .xmas-snow,
body.xmas .xmas-tinsel{pointer-events:none}

/* Seasonal hero: Christmas portrait is shown; hide the default woodland hero until 31 Dec removal. */
body.xmas .hero-standard{display:none!important}


/* Steve's / Banbury light string (exact bulb colours, halos and twinkle),
   kept on the very top edge of the page so it stays clear of nav and language switch. */
body.xmas header{overflow:visible;padding-top:36px}
body.xmas .xmas-lights{position:absolute;left:0;right:0;top:0;width:100%;height:36px;margin:0;overflow:hidden;display:block;opacity:1;z-index:6}
body.xmas .xl-bulbs use{animation:xl-tw var(--d,2.4s) ease-in-out var(--l,0s) infinite alternate}
@keyframes xl-tw{0%{opacity:1}60%{opacity:.92}100%{opacity:.5}}
@media(max-width:760px){body.xmas header{padding-top:27px}body.xmas .xmas-lights{height:27px}}

/* Banbury Santa (exact markup): flies in the unused 56px hero top padding — not over the heading. */
body.xmas .hero{position:relative}
body.xmas .xmas-sky{position:absolute;left:0;right:0;top:0;height:56px;overflow:hidden;z-index:2}
body.xmas .xmas-santa{position:absolute;left:0;top:2px;width:200px;transform:translateX(-290px);animation:xs-fly 22s linear 2.5s infinite;will-change:transform}
body.xmas .xmas-santa svg{display:block;width:100%;height:auto;overflow:visible;animation:xs-bob 1.3s ease-in-out infinite alternate}
@keyframes xs-fly{0%{transform:translateX(-290px)}32%{transform:translateX(calc(100vw + 30px))}100%{transform:translateX(calc(100vw + 30px))}}
@keyframes xs-bob{from{transform:translateY(-3px) rotate(-1.5deg)}to{transform:translateY(3px) rotate(1deg)}}
body.xmas .xs-sp{transform-box:fill-box;transform-origin:center;animation:xs-sp .7s ease-in-out infinite alternate}
body.xmas .xs-sp.s2{animation-delay:-.2s}body.xmas .xs-sp.s3{animation-delay:-.45s}body.xmas .xs-sp.s4{animation-delay:-.3s;animation-duration:.55s}body.xmas .xs-sp.s5{animation-delay:-.6s}
@keyframes xs-sp{from{opacity:.15;transform:scale(.4) rotate(0)}to{opacity:1;transform:scale(1.15) rotate(45deg)}}
body.xmas .xs-glow{animation:xs-glow .9s ease-in-out infinite alternate}
@keyframes xs-glow{from{opacity:.55}to{opacity:1}}
body.xmas .xs-bolt{animation:xs-bolt 1.6s steps(1) infinite}
@keyframes xs-bolt{0%,62%,100%{opacity:0}66%,74%{opacity:1}70%{opacity:.3}}
body.xmas .xs-run{animation:xs-glow 1.1s ease-in-out infinite alternate}
@media(max-width:760px){
  body.xmas .xmas-sky{top:2px;height:48px}
  body.xmas .xmas-santa{width:150px;top:2px}
}

/* Footer tinsel garland: thin, clearly visible gold + soft silver scallops. No flow space. */
body.xmas footer{position:relative}
body.xmas .xmas-tinsel{position:absolute;left:0;right:0;top:0;height:14px;opacity:1;z-index:2;overflow:visible}
body.xmas .xmas-tinsel svg{display:block;width:100%;height:14px;overflow:visible}
body.xmas .xmas-tinsel .xt-shimmer{animation:xt-sheen 3.6s ease-in-out infinite alternate}
@keyframes xt-sheen{from{opacity:.72}to{opacity:1}}
@media(max-width:760px){body.xmas .xmas-tinsel,body.xmas .xmas-tinsel svg{height:12px}}

/* Neon electric snowflakes — slow fall, glow so they read on cream, clicks pass through. */
body.xmas .xmas-snow{position:fixed;inset:0;overflow:hidden;z-index:1;pointer-events:none}
body.xmas .xs-fall{position:absolute;top:-60px;width:var(--w,36px);height:var(--w,36px);opacity:.62;animation:xs-falldrift var(--t,26s) linear var(--l,0s) infinite;will-change:transform}
body.xmas .xs-fall.c-blue{filter:drop-shadow(0 0 5px #00b7ff) drop-shadow(0 0 12px rgba(0,183,255,.8))}
body.xmas .xs-fall.c-pink{filter:drop-shadow(0 0 5px #ff2fb4) drop-shadow(0 0 12px rgba(255,47,180,.8))}
body.xmas .xs-fall.c-green{filter:drop-shadow(0 0 5px #39ff6a) drop-shadow(0 0 12px rgba(57,255,106,.8))}
@keyframes xs-falldrift{
  0%{transform:translate3d(0,0,0) rotate(0)}
  25%{transform:translate3d(var(--sx,16px),27.5vh,0) rotate(30deg)}
  50%{transform:translate3d(calc(var(--sx,16px) * -0.7),55vh,0) rotate(70deg)}
  75%{transform:translate3d(var(--sx,16px),82.5vh,0) rotate(110deg)}
  100%{transform:translate3d(calc(var(--sx,16px) * -0.4),110vh,0) rotate(160deg)}
}
@media(max-width:760px){
  body.xmas .xs-fall{width:clamp(24px, calc(var(--w) * .72), 40px);height:clamp(24px, calc(var(--w) * .72), 40px)}
  body.xmas .xs-fall:nth-child(n+11){display:none}
}

/* Accessibility & print */
@media(prefers-reduced-motion:reduce){
  body.xmas .xmas-sky,
  body.xmas .xmas-snow{display:none}
  body.xmas .xl-bulbs use,
  body.xmas .xmas-tinsel,
  body.xmas .xmas-tinsel .xt-shimmer,
  body.xmas .xmas-santa,
  body.xmas .xmas-santa *,
  body.xmas .xs-run,
  body.xmas .xs-glow,
  body.xmas .xs-sp,
  body.xmas .xs-bolt{animation:none!important}
}
@media print{
  body.xmas .xmas-lights,
  body.xmas .xmas-sky,
  body.xmas .xmas-snow,
  body.xmas .xmas-tinsel{display:none!important}
}
