/* ================================================================
   SEASONAL HERO BANNERS — Halloween, Thanksgiving, Christmas, New Year's.

   The markup for each one lives in a <template id="season-…"> in index.html.
   js/main.js checks today's date, and if a season is running it copies that
   template in as the first hero slide and sets .hero[data-season="…"].
   Outside every window nothing is added and the normal slides run.

   Every picture is the shop's own photo recoloured with CSS filters; every
   decoration (bats, leaves, garland, ornaments, confetti) is inline SVG/CSS.
   No AI art.

   No mix-blend-mode anywhere in here: .season-layer fades with opacity, which
   makes it a stacking context, so a blended child would blend against the
   layer instead of the photo underneath.
   ================================================================ */

/* ---------- shared: overlay stack ---------- */
.season-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease-in-out;
}
.season-layer.is-active { opacity: 1; }

.season-layer > .s-fill { position: absolute; inset: 0; }

/* .hero-media::after draws the charcoal seam into the copy panel, but this
   layer sits above it, so the seam is redrawn here or the join goes hard. */
.s-seam {
  background: linear-gradient(90deg,
    var(--charcoal-950) 0%, rgba(20, 16, 13, 0.55) 12%, rgba(20, 16, 13, 0) 34%);
}
@media (max-width: 860px) {
  .s-seam { background: linear-gradient(0deg, var(--charcoal-950) 0%, rgba(20, 16, 13, 0) 45%); }
}

/* ---------- shared: poster type over the photo ---------- */
.s-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-4);
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.92;
}
.s-poster .l1 {
  max-width: 100%;
  font-size: clamp(0.95rem, 1.75vw, 1.45rem);
  letter-spacing: 0.26em;
  /* letter-spacing adds a trailing gap after the last glyph; the indent pushes
     the line back by the same amount so it stays optically centred */
  text-indent: 0.26em;
}
.s-poster .l2 {
  position: relative;
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* the gradient fill kills normal text-shadow, so the glow goes behind it */
.s-poster .l2::before {
  content: attr(data-word);
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(18px);
  opacity: 0.75;
}
.s-poster .rule {
  flex: none;            /* a 1px flex item in a column will otherwise shrink away */
  width: min(62%, 320px);
  height: 1px;
  margin: 10px 0 8px;
}
.s-poster .kicker {
  font-family: var(--font-accent);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

/* the seasonal headline is longer than the regular ones, and all messages
   share one grid cell sized to the tallest — on a phone it would run to three
   lines and leave dead space above the buttons on every other slide */
@media (max-width: 860px) {
  .hero-message--season h1 { font-size: clamp(1.6rem, 6.1vw, 2.4rem); }
  .s-poster .l2 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .s-poster .l1 { font-size: 0.92rem; }
}

/* shared falling-things animation (leaves, snow, confetti) */
@keyframes sFall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.95; }
  50%  { transform: translate3d(-24px, 55vh, 0) rotate(160deg); }
  92%  { opacity: 0.9; }
  100% { transform: translate3d(14px, 110vh, 0) rotate(320deg); opacity: 0; }
}
.s-fall > * { position: absolute; top: -8%; display: block; animation: sFall linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .season-layer { transition: none; }
  .season-layer * { animation: none !important; }
  .s-fall > * { top: auto; }
}


/* ================================================================
   HALLOWEEN  (Oct 1 – Oct 31)   photo: hero-5
   ================================================================ */
.hero-slide--halloween {
  filter: grayscale(1) sepia(0.62) saturate(2.3) hue-rotate(-18deg)
          brightness(0.6) contrast(1.28);
}
.hw-wash {
  opacity: 0.94;
  background: linear-gradient(155deg,
    rgba(22, 8, 42, 0.93) 0%, rgba(72, 28, 124, 0.80) 26%,
    rgba(124, 36, 120, 0.58) 50%, rgba(196, 60, 40, 0.40) 72%,
    rgba(255, 150, 45, 0.38) 100%);
}
/* the ring light in the photo sits upper-right — this turns it into a moon */
.hw-moon {
  opacity: 0.75;
  background: radial-gradient(circle at 78% 30%,
    rgba(255, 201, 103, 0.72) 0%, rgba(255, 138, 30, 0.30) 24%, rgba(255, 138, 30, 0) 50%);
}
.hw-web {
  position: absolute;
  width: clamp(110px, 16vw, 190px);
  height: auto;
  color: rgba(255, 207, 143, 0.5);
  filter: drop-shadow(0 1px 3px rgba(26, 10, 46, 0.8));
}
.hw-web--tl { top: 0; left: 0; }
.hw-web--br { bottom: 0; right: 0; transform: rotate(180deg); }
.hw-bat {
  position: absolute;
  color: #190a2b;
  /* a bright rim, or they vanish into the mid-tones of the photo */
  filter: drop-shadow(0 0 1px rgba(255, 201, 103, 0.9))
          drop-shadow(0 3px 10px rgba(255, 138, 30, 0.45));
  animation: hwFlit 7s ease-in-out infinite;
}
.hw-bat--1 { width: 66px; top: 11%; left: 20%; }
.hw-bat--2 { width: 44px; top: 22%; left: 40%; animation-delay: -2.4s; }
.hw-bat--3 { width: 30px; top: 8%;  left: 55%; animation-delay: -4.8s; }
@keyframes hwFlit {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50%      { transform: translate3d(10px, -12px, 0) rotate(4deg); }
}
[data-season="halloween"] .s-poster { filter: drop-shadow(0 4px 18px rgba(26, 10, 46, 0.85)); }
[data-season="halloween"] .s-poster .l1 { color: #ffe2bd; }
[data-season="halloween"] .s-poster .l2 { background-image: linear-gradient(180deg, #ffd27a 0%, #ff7a18 55%, #e2560f 100%); }
[data-season="halloween"] .s-poster .l2::before { color: #ff7a18; }
[data-season="halloween"] .s-poster .rule { background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.9), transparent); }
[data-season="halloween"] .s-poster .kicker { color: #ffd9a8; }
[data-season="halloween"] .s-hot { color: #ff7a18; text-shadow: 0 0 22px rgba(255, 122, 24, 0.55); }
[data-season="halloween"] .hero-message .s-sub { color: #ffc98a; }
@media (max-width: 860px) {
  .hw-web { width: clamp(84px, 24vw, 130px); }
  .hw-bat--1 { width: 46px; }
  .hw-bat--2 { width: 30px; }
}


/* ================================================================
   THANKSGIVING  (Nov 1 – Thanksgiving Day)   photo: hero-1
   ================================================================ */
.hero-slide--thanksgiving {
  filter: grayscale(1) sepia(0.7) saturate(1.9) hue-rotate(-8deg)
          brightness(0.74) contrast(1.2);
}
.tg-wash {
  background: linear-gradient(160deg,
    rgba(36, 16, 6, 0.92) 0%, rgba(92, 34, 12, 0.78) 28%,
    rgba(122, 30, 44, 0.52) 52%, rgba(186, 92, 24, 0.40) 76%,
    rgba(232, 168, 62, 0.36) 100%);
}
/* the overhead lights become a low harvest sun */
.tg-sun {
  background: radial-gradient(circle at 74% 26%,
    rgba(255, 206, 120, 0.62) 0%, rgba(230, 128, 40, 0.26) 24%, rgba(230, 128, 40, 0) 52%);
}
.tg-leaf { filter: drop-shadow(0 2px 6px rgba(36, 16, 6, 0.6)); }
.tg-leaf:nth-child(1) { left: 18%; width: 52px; color: #d9641c; animation-duration: 11s; animation-delay: -1s; }
.tg-leaf:nth-child(2) { left: 46%; width: 38px; color: #e8a83e; animation-duration: 13s; animation-delay: -6s; }
.tg-leaf:nth-child(3) { left: 70%; width: 46px; color: #b8341f; animation-duration: 10s; animation-delay: -3.5s; }
.tg-leaf:nth-child(4) { left: 86%; width: 32px; color: #c9861f; animation-duration: 14s; animation-delay: -9s; }
.tg-leaf:nth-child(5) { left: 32%; width: 36px; color: #b8441a; animation-duration: 12s; animation-delay: -4s; }
[data-season="thanksgiving"] .s-poster { filter: drop-shadow(0 4px 18px rgba(36, 16, 6, 0.9)); }
[data-season="thanksgiving"] .s-poster .l1 { color: #ffe6c4; }
[data-season="thanksgiving"] .s-poster .l2 { background-image: linear-gradient(180deg, #ffe1a0 0%, #e8a83e 50%, #c8561b 100%); }
[data-season="thanksgiving"] .s-poster .l2::before { color: #e07a22; }
[data-season="thanksgiving"] .s-poster .rule { background: linear-gradient(90deg, transparent, rgba(232, 168, 62, 0.9), transparent); }
[data-season="thanksgiving"] .s-poster .kicker { color: #ffdcae; }
[data-season="thanksgiving"] .s-hot { color: #e8a83e; text-shadow: 0 0 22px rgba(232, 140, 40, 0.5); }
[data-season="thanksgiving"] .hero-message .s-sub { color: #f3c58e; }


/* ================================================================
   CHRISTMAS  (day after Thanksgiving – Dec 25)   photo: hero-8
   ================================================================ */
.hero-slide--christmas { filter: grayscale(1) brightness(0.78) contrast(1.15); }
.xm-wash {
  background: linear-gradient(175deg,
    rgba(8, 26, 18, 0.78) 0%, rgba(12, 38, 27, 0.55) 35%,
    rgba(20, 16, 13, 0.55) 70%, rgba(60, 12, 20, 0.55) 100%);
}
.xm-glow { background: radial-gradient(ellipse at 50% 48%, rgba(255, 211, 138, 0.22), transparent 55%); }

/* pine garland swagged across the top */
.xm-garland {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(84px, 17%, 124px);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55));
}
.xm-bulb {
  fill: #ffd38a;
  filter: drop-shadow(0 0 4px #ffb347);
  animation: xmGlow 3s ease-in-out infinite;
}
@keyframes xmGlow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ornaments hang on gold thread and sway from the top of the thread */
.xm-orn {
  position: absolute;
  width: var(--sz);
  margin-top: var(--thread);
  transform-origin: 50% calc(-1 * var(--thread));
  animation: xmSway 5s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
}
.xm-orn::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: var(--thread);
  background: linear-gradient(#c9a24a, #f1d58a);
  transform: translateX(-0.5px);
}
.xm-orn svg { display: block; width: 100%; height: auto; }
.xm-orn--1 { left: 17%; top: 7%; --thread: 34px; --sz: 34px; animation-delay: -0.4s; }
.xm-orn--2 { left: 27%; top: 9%; --thread: 62px; --sz: 26px; animation-delay: -1.6s; }
.xm-orn--3 { left: 50%; top: 2%; --thread: 58px; --sz: 40px; animation-delay: -0.9s; }
.xm-orn--4 { left: 69%; top: 9%; --thread: 40px; --sz: 30px; animation-delay: -2.2s; }
.xm-orn--5 { left: 82%; top: 7%; --thread: 70px; --sz: 34px; animation-delay: -1.1s; }
@keyframes xmSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* six-point snowflakes, few and slow */
.xm-flake { color: #f4f7f5; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5)); }
.xm-flake:nth-child(1) { left: 8%;  width: 18px; animation-duration: 16s; animation-delay: -2s;  opacity: .8; }
.xm-flake:nth-child(2) { left: 22%; width: 12px; animation-duration: 19s; animation-delay: -9s;  opacity: .6; }
.xm-flake:nth-child(3) { left: 37%; width: 24px; animation-duration: 17s; animation-delay: -5s;  opacity: .85; }
.xm-flake:nth-child(4) { left: 55%; width: 14px; animation-duration: 21s; animation-delay: -13s; opacity: .65; }
.xm-flake:nth-child(5) { left: 66%; width: 20px; animation-duration: 15s; animation-delay: -7s;  opacity: .8; }
.xm-flake:nth-child(6) { left: 79%; width: 11px; animation-duration: 20s; animation-delay: -3s;  opacity: .55; }
.xm-flake:nth-child(7) { left: 90%; width: 22px; animation-duration: 18s; animation-delay: -11s; opacity: .8; }
.xm-flake:nth-child(8) { left: 46%; width: 10px; animation-duration: 22s; animation-delay: -16s; opacity: .5; }

/* the Santa hat tipped on the N */
.xm-word { position: relative; display: inline-block; font-size: clamp(3.4rem, 9vw, 6.8rem); }
.xm-word .l2 { font-size: inherit; }
.xm-hat {
  position: absolute;
  z-index: 2;
  width: 0.55em;
  left: -0.12em;
  top: -0.1em;
  transform: rotate(-20deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
@media (max-width: 860px) {
  .xm-word { font-size: clamp(3rem, 15vw, 4.4rem); }
}
[data-season="christmas"] .s-poster { padding-top: 18%; filter: drop-shadow(0 4px 18px rgba(4, 18, 12, 0.9)); }
[data-season="christmas"] .s-poster .l1 { color: #eaf4ee; }
[data-season="christmas"] .s-poster .l2 { background-image: linear-gradient(180deg, #fff4dc 0%, #f0c66a 50%, #c9303a 100%); }
[data-season="christmas"] .s-poster .l2::before { color: #e8b04a; }
[data-season="christmas"] .s-poster .rule { background: linear-gradient(90deg, transparent, rgba(240, 198, 106, 0.9), transparent); }
[data-season="christmas"] .s-poster .kicker { color: #f6e3bf; }
[data-season="christmas"] .s-hot { color: #e04a4f; text-shadow: 0 0 22px rgba(224, 74, 79, 0.45); }
[data-season="christmas"] .hero-message .s-sub { color: #cfe6d6; }


/* ================================================================
   NEW YEAR'S  (Dec 26 – Jan 1)   photo: images/work/david-4
   ================================================================ */
.hero-slide--newyear {
  object-position: 50% 30%;
  filter: grayscale(1) sepia(0.35) saturate(1.3) brightness(0.9) contrast(1.15);
}
.ny-wash {
  background: linear-gradient(170deg,
    rgba(8, 7, 6, 0.82) 0%, rgba(30, 22, 10, 0.45) 45%, rgba(90, 66, 24, 0.35) 100%);
}
.ny-glow {
  background:
    radial-gradient(circle at 82% 40%, rgba(255, 236, 190, 0.55) 0%, rgba(243, 200, 110, 0.22) 18%, transparent 40%),
    radial-gradient(circle at 50% 45%, rgba(243, 217, 164, 0.30) 0%, transparent 55%);
}
.ny-confetti > i { width: 6px; height: 14px; border-radius: 1px; }
.ny-confetti > i:nth-child(3n)   { background: #f3d9a4; }
.ny-confetti > i:nth-child(3n+1) { background: #d4a64a; }
.ny-confetti > i:nth-child(3n+2) { background: #fff6e0; width: 7px; height: 7px; border-radius: 50%; }
.ny-confetti > i:nth-child(4n)   { background: #ffffff; }
.ny-confetti > i:nth-child(1)  { left: 5%;  animation-duration: 8s;    animation-delay: -1s; }
.ny-confetti > i:nth-child(2)  { left: 12%; animation-duration: 10s;   animation-delay: -4s; }
.ny-confetti > i:nth-child(3)  { left: 19%; animation-duration: 9s;    animation-delay: -7s; }
.ny-confetti > i:nth-child(4)  { left: 26%; animation-duration: 11s;   animation-delay: -2s; }
.ny-confetti > i:nth-child(5)  { left: 33%; animation-duration: 8.5s;  animation-delay: -5s; }
.ny-confetti > i:nth-child(6)  { left: 40%; animation-duration: 10s;   animation-delay: -8s; }
.ny-confetti > i:nth-child(7)  { left: 47%; animation-duration: 9s;    animation-delay: -3s; }
.ny-confetti > i:nth-child(8)  { left: 54%; animation-duration: 12s;   animation-delay: -6s; }
.ny-confetti > i:nth-child(9)  { left: 61%; animation-duration: 8s;    animation-delay: -1.5s; }
.ny-confetti > i:nth-child(10) { left: 68%; animation-duration: 10.5s; animation-delay: -9s; }
.ny-confetti > i:nth-child(11) { left: 75%; animation-duration: 9.5s;  animation-delay: -4.5s; }
.ny-confetti > i:nth-child(12) { left: 82%; animation-duration: 11s;   animation-delay: -7.5s; }
.ny-confetti > i:nth-child(13) { left: 89%; animation-duration: 8.5s;  animation-delay: -2.5s; }
.ny-confetti > i:nth-child(14) { left: 95%; animation-duration: 12s;   animation-delay: -5.5s; }
.ny-confetti > i:nth-child(15) { left: 9%;  animation-duration: 7s;    animation-delay: -6.3s; }
.ny-confetti > i:nth-child(16) { left: 23%; animation-duration: 9s;    animation-delay: -0.8s; }
.ny-confetti > i:nth-child(17) { left: 37%; animation-duration: 8s;    animation-delay: -3.9s; }
.ny-confetti > i:nth-child(18) { left: 51%; animation-duration: 10s;   animation-delay: -7.1s; }
.ny-confetti > i:nth-child(19) { left: 65%; animation-duration: 7.5s;  animation-delay: -2.2s; }
.ny-confetti > i:nth-child(20) { left: 79%; animation-duration: 9.5s;  animation-delay: -5.8s; }
.ny-confetti > i:nth-child(21) { left: 93%; animation-duration: 8s;    animation-delay: -1.2s; }
.ny-confetti > i:nth-child(22) { left: 16%; animation-duration: 11s;   animation-delay: -8.6s; }
.ny-confetti > i:nth-child(23) { left: 44%; animation-duration: 7s;    animation-delay: -4.4s; }
.ny-confetti > i:nth-child(24) { left: 72%; animation-duration: 10s;   animation-delay: -0.4s; }

.ny-spark b {
  position: absolute;
  width: 22px;
  height: 22px;
  background:
    radial-gradient(circle, #fff 0 1.5px, transparent 2px),
    linear-gradient(0deg,  transparent 45%, rgba(255, 240, 200, 0.95) 50%, transparent 55%),
    linear-gradient(90deg, transparent 45%, rgba(255, 240, 200, 0.95) 50%, transparent 55%);
  filter: drop-shadow(0 0 6px rgba(255, 220, 150, 0.9));
  animation: nyTwinkle 2.4s ease-in-out infinite;
}
.ny-spark b:nth-child(1) { top: 14%; left: 16%; }
.ny-spark b:nth-child(2) { top: 22%; left: 72%; animation-delay: -0.6s; }
.ny-spark b:nth-child(3) { top: 62%; left: 10%; animation-delay: -1.2s; }
.ny-spark b:nth-child(4) { top: 70%; left: 84%; animation-delay: -1.8s; }
.ny-spark b:nth-child(5) { top: 30%; left: 38%; animation-delay: -0.9s; }
.ny-spark b:nth-child(6) { top: 80%; left: 46%; animation-delay: -1.5s; }
.ny-spark b:nth-child(7) { top: 8%;  left: 56%; animation-delay: -0.3s; }
@keyframes nyTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.2) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) { .ny-spark b { opacity: 0.7; } }

[data-season="newyear"] .s-poster { filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.85)); }
[data-season="newyear"] .s-poster .l1 { color: #f6ead0; font-size: clamp(1rem, 2vw, 1.6rem); }
[data-season="newyear"] .s-poster .l2 {
  font-size: clamp(6rem, 15vw, 11rem);
  line-height: 0.9;
  background-image: linear-gradient(180deg, #fff8e6 0%, #f3d9a4 45%, #b8862e 100%);
}
[data-season="newyear"] .s-poster .l2::before { color: #e0b862; filter: blur(26px); opacity: 0.9; }
[data-season="newyear"] .s-poster .rule { background: linear-gradient(90deg, transparent, rgba(243, 217, 164, 0.9), transparent); }
[data-season="newyear"] .s-poster .kicker { color: #f3d9a4; }
[data-season="newyear"] .s-hot { color: #f3d9a4; text-shadow: 0 0 22px rgba(243, 217, 164, 0.45); }
[data-season="newyear"] .hero-message .s-sub { color: #e9d6ae; }
@media (max-width: 860px) {
  [data-season="newyear"] .s-poster .l2 { font-size: clamp(5.5rem, 28vw, 8rem); }
}
