/* Festive overlay v4: interwoven red + green metallic tinsel, brighter fairy lights,
   light snowfall, baubles. Decoration only: pointer-events none, aria-hidden markup. */
.festive{pointer-events:none}

/* ---------- Tinsel garland (photographic asset, seamless mirror tile) ---------- */
.festive-tinsel{position:absolute;left:0;right:0;top:100%;height:34px;display:block;
  transform:translateY(-50%);
  background:url(/img/festive-tinsel.webp) repeat-x left center/auto 100%;
  filter:drop-shadow(0 4px 6px #0000008c)}
.tspark{animation:sparkle 5.2s ease-in-out infinite;animation-delay:var(--sd,0s);transform-box:fill-box;transform-origin:center}
@keyframes sparkle{0%,100%{opacity:.1}42%{opacity:1}58%{opacity:.3}}

/* ---------- Header layer ---------- */
.festive-header{position:absolute;inset:0;z-index:2}

/* ---------- Fairy lights ---------- */
.festive-lights{position:absolute;left:0;right:0;top:50%;height:0;margin:-6px 0 0;
  display:flex;align-items:center;justify-content:space-around;padding:0 14px}
.festive-lights::before{content:"";position:absolute;left:0;right:0;top:8px;height:12px;
  border-top:1.5px solid rgba(210,232,246,.45);border-radius:50%/100%}
.bulb{position:relative;margin-top:0;width:8px;height:12px;border-radius:50% 50% 45% 45%;
  background:currentColor;color:#ff6b6b;
  box-shadow:0 0 8px 2px currentColor,0 0 20px 6px #ff6b6b59;
  animation:bulbTwinkle 3.6s ease-in-out infinite;animation-delay:var(--d,0s);opacity:.9}
.bulb::after{content:"";position:absolute;left:50%;top:-3px;width:3px;height:3px;margin-left:-1.5px;
  border-radius:1px;background:#8fa4b5;opacity:.8}
.bulb.red{color:#ff5a5a;--glow:#ff5a5a}
.bulb.gold{color:#ffd166;--glow:#ffd166}
.bulb.green{color:#74e8a0;--glow:#74e8a0}
.bulb.white{color:#f4fcff;--glow:#e8f6ff}
@keyframes bulbTwinkle{
  0%,100%{opacity:.3;box-shadow:0 0 3px 0 currentColor}
  16%{opacity:1;box-shadow:0 0 14px 4px currentColor,0 0 30px 10px var(--glow)}
  32%{opacity:.5;box-shadow:0 0 6px 1px currentColor}
  50%{opacity:1;box-shadow:0 0 16px 5px currentColor,0 0 36px 12px var(--glow)}
  66%{opacity:.42;box-shadow:0 0 5px 1px currentColor}
  82%{opacity:.96;box-shadow:0 0 10px 2px currentColor,0 0 20px 6px var(--glow)}
}

/* ---------- Baubles ---------- */
.festive .bauble{position:absolute;width:18px;height:18px;border-radius:50%;
  background:radial-gradient(circle at 32% 26%,#ffffff 0 2.6px,#e04a4a 3.6px,#a51f2c 66%,#6b0f18 100%);
  box-shadow:0 0 12px #00000073,inset -2px -3px 5px #0000004d,inset 2px 2px 4px #ffffff45;
  animation:sway 9s ease-in-out infinite;transform-origin:top center}
.festive .bauble::before{content:"";position:absolute;left:50%;bottom:100%;width:1px;height:26px;
  background:linear-gradient(#ffffffd9,#ffffff26);transform:translateX(-50%)}
.festive .bauble::after{content:"";position:absolute;left:50%;top:-3px;width:5px;height:4px;margin-left:-2.5px;
  border-radius:1px;background:#d9c48a;box-shadow:0 0 3px #ffffff66}
.festive .bauble.f1{right:64px;top:30px}
.festive .bauble.f2{right:104px;top:22px;width:14px;height:14px;animation-delay:-3.4s;
  background:radial-gradient(circle at 32% 26%,#fff 0 2px,#ffd36b 3px,#c9a13a 66%,#7d5f18 100%)}
.festive .bauble.f3{right:142px;top:34px;width:15px;height:15px;animation-delay:-6.1s;
  background:radial-gradient(circle at 32% 26%,#fff 0 2px,#74e8a0 3px,#2f8f5b 66%,#195536 100%)}
.festive .bauble.c1{right:52px;top:26px;width:15px;height:15px}
.festive .bauble.c2{right:96px;top:34px;width:13px;height:13px;animation-delay:-4.8s;
  background:radial-gradient(circle at 32% 26%,#fff 0 2px,#ffd36b 3px,#c9a13a 66%,#7d5f18 100%)}
@keyframes sway{0%,100%{transform:rotate(-2.4deg)}50%{transform:rotate(2.4deg)}}

/* ---------- Footer garland + lights ---------- */
.festive-footer{position:absolute;inset:0 0 auto 0;height:0;z-index:1}
.festive-tinsel.swag{top:0;transform:translateY(-4px);height:38px}
.festive-lights.swag-lights{top:0;margin-top:15px;height:30px;padding:0 44px}
.festive-lights.swag-lights .bulb{margin-top:8px;width:6px;height:9px}
.festive-lights.swag-lights::before{top:2px;height:10px;opacity:.7}
.festive-lights.woven::before{display:none}
.festive-lights.woven .bulb:nth-child(3n){margin-top:5px}
.festive-lights.woven .bulb:nth-child(3n+2){margin-top:-4px}

/* ---------- CTA band garland ---------- */
.festive-band{position:absolute;inset:0 0 auto 0;height:0;z-index:1}
.festive-band .festive-tinsel{transform:translateY(-6px);height:34px}

/* ---------- Standalone (404) ---------- */
.festive-standalone{position:absolute;left:0;right:0;top:0;height:40px;z-index:3}
.festive-standalone .festive-tinsel{top:8px;transform:none;height:32px}

/* ---------- Snowfall ---------- */
.festive-snow{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:75}
.festive-snow i{position:absolute;top:-8vh;left:var(--x);width:var(--s);height:var(--s);border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#ffffff,#e8f3fb 68%,#ffffff00 74%);
  opacity:.7;filter:blur(.2px);
  animation:snowfall var(--d) linear infinite;animation-delay:var(--t)}
@keyframes snowfall{
  0%{transform:translate3d(0,-10vh,0) rotate(0)}
  100%{transform:translate3d(var(--drift),112vh,0) rotate(200deg)}
}

/* Positioning contexts for the absolute layers. */
.site-header,.site-footer,footer,section.contact,.cta-band,section.cta{position:relative}
.site-header{overflow:visible}

/* ---------- Small screens ---------- */
@media(max-width:1099px){
  .festive .bauble.f1,.festive .bauble.c2{display:none}
}
@media(max-width:899px){
  .festive .bauble{display:none}
  .festive-tinsel{height:24px;transform:translateY(-50%)}
  .festive-lights{margin:-5px 0 0;height:0}
  .festive-lights .bulb:nth-child(n+13){display:none}
  .festive-lights .bulb{width:6px;height:9px;box-shadow:0 0 5px 1px currentColor,0 0 11px 3px #ff6b6b47}
  .festive-lights .bulb{width:6px;height:9px;margin-top:11px}
  .festive-footer,.festive-band{display:none}
  .festive-snow i:nth-child(3n){display:none}
}
@media(max-width:600px){
  .festive-tinsel{height:26px}
  .festive-snow i{opacity:.58}
}

/* ---------- Reduced motion: static, no snow, no pulsing ---------- */
@media(prefers-reduced-motion:reduce){
  .festive *,.festive-snow i{animation:none!important}
  .festive-snow{display:none}
  .bulb{opacity:.9;box-shadow:0 0 8px 2px currentColor}
  .tspark{opacity:.6}
}
