/* ============================================
   Hopeful Readings — Christmas theme (holidays)
   ============================================

   TEMPORARY SEASONAL LAYER. This file only overrides; it never edits the
   base design.

   Every seasonal rule is gated on html[data-season="christmas"], NOT on
   whether this file is loaded. That is what lets visitors switch the theme
   off at runtime (see christmas-toggle.js) while the stylesheet stays
   loaded, so the toggle button keeps its own styling in both states.

   To take the theme off for good after the holidays, remove the seasonal
   block from each of index.html, faq/index.html, thank-you/index.html and
   404.html — the comment, the <link> to this file and the <script> — and
   drop data-season="christmas" from the <html> tag on those four pages.
   Then christmas.css, christmas-toggle.js and assets/christmas-*.svg can
   be deleted. Nothing in style.css was touched.

   Loaded AFTER style.css, so plain specificity wins; no !important.

   Note on assets: the site's CSP sets img-src 'self' and forbids data:
   URIs, so the snow, lights and props are real files under assets/ rather
   than inlined into this stylesheet.
   ============================================ */

html[data-season="christmas"] {
  /* The azure accent becomes holly red for the season. Every component
     that referenced --azure* picks this up without being touched. */
  --azure: #e0414f;
  --azure-bright: #f2606b;
  --azure-light: #ffb3b8;
  --azure-deep: #4d0d1a;

  /* Gold goes brighter and warmer — tinsel and candlelight. */
  --gold: #e0b44c;
  --gold-light: #f5d98a;

  /* The base navy night already reads as a winter sky, so the grounds
     stay put. */
}

/* ---------- Seasonal light: red and gold where the blue wash was,
   with a touch of evergreen so it doesn't read as one red tint ---------- */

html[data-season="christmas"] .hero {
  background:
    radial-gradient(120% 80% at 50% 105%, rgba(224, 65, 79, 0.22) 0%, transparent 60%),
    radial-gradient(80% 55% at 88% 92%, rgba(40, 150, 95, 0.16) 0%, transparent 65%),
    radial-gradient(90% 60% at 12% 8%, rgba(30, 64, 140, 0.35) 0%, transparent 65%),
    var(--deep);
}

html[data-season="christmas"] .hero-glow {
  background:
    radial-gradient(circle, rgba(107, 63, 160, 0.28) 0%, rgba(107, 63, 160, 0.1) 36%, transparent 64%),
    radial-gradient(circle, rgba(245, 200, 110, 0.38) 0%, rgba(224, 65, 79, 0.14) 46%, transparent 74%);
}

/* The mark keeps its own colours; only the light around it goes warm. */
html[data-season="christmas"] .hero-logo {
  filter:
    drop-shadow(0 0 26px rgba(245, 200, 110, 0.55))
    drop-shadow(0 0 60px rgba(224, 65, 79, 0.35));
}

html[data-season="christmas"] .services {
  background:
    radial-gradient(70% 55% at 85% 12%, rgba(224, 65, 79, 0.18) 0%, transparent 62%),
    radial-gradient(60% 50% at 10% 95%, rgba(40, 150, 95, 0.14) 0%, transparent 62%),
    linear-gradient(175deg, var(--purple-dark) 0%, var(--deep) 100%);
}

html[data-season="christmas"] .group-readings {
  background:
    radial-gradient(70% 55% at 12% 80%, rgba(245, 200, 110, 0.14) 0%, transparent 62%),
    radial-gradient(60% 50% at 90% 15%, rgba(224, 65, 79, 0.14) 0%, transparent 62%),
    linear-gradient(185deg, var(--deep) 0%, var(--purple-dark) 100%);
}

html[data-season="christmas"] .booking {
  background:
    radial-gradient(65% 55% at 88% 18%, rgba(224, 65, 79, 0.2) 0%, transparent 60%),
    radial-gradient(55% 45% at 8% 90%, rgba(40, 150, 95, 0.14) 0%, transparent 60%),
    linear-gradient(170deg, var(--purple) 0%, var(--deep) 100%);
}

html[data-season="christmas"] .tiktok-live {
  background:
    radial-gradient(60% 70% at 8% 50%, rgba(224, 65, 79, 0.2) 0%, transparent 62%),
    var(--deep);
}

html[data-season="christmas"] .site-footer {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(245, 200, 110, 0.12) 0%, transparent 65%),
    var(--deep);
  border-top-color: rgba(224, 180, 76, 0.28);
}

html[data-season="christmas"] .section-bg-accent {
  background: radial-gradient(circle, rgba(224, 65, 79, 0.12), transparent 70%);
}

/* ---------- Sparkles turn gold, like tinsel catching the light ---------- */

html[data-season="christmas"] .sparkle path,
html[data-season="christmas"] .sparkle circle,
html[data-season="christmas"] .sparkle-f path,
html[data-season="christmas"] .sparkle-f circle {
  fill: #ffe7a0;
}

html[data-season="christmas"] .sparkle-f {
  filter: drop-shadow(0 0 4px rgba(255, 231, 160, 0.9)) drop-shadow(0 0 10px rgba(224, 180, 76, 0.55));
}

html[data-season="christmas"] .sparkle-f--2,
html[data-season="christmas"] .sparkle-f--4 {
  filter: drop-shadow(0 0 4px rgba(255, 190, 195, 0.9)) drop-shadow(0 0 10px rgba(224, 65, 79, 0.5));
}

html[data-season="christmas"] .sec-sparkle--2,
html[data-season="christmas"] .sec-sparkle--5 {
  filter: drop-shadow(0 0 5px rgba(245, 200, 110, 0.85));
}

/* ---------- Falling snow ----------
   One tall pseudo-element per section carrying a seamless 360px snow tile
   (plus the same tile at half size for the nearer, finer flakes). It
   starts one tile above the section and slides down exactly one tile, so
   the loop is seamless. Moving it with transform rather than animating
   background-position keeps it on the compositor: no repaint per frame,
   which matters on the phones most visitors arrive on. */

html[data-season="christmas"] .hero::before,
html[data-season="christmas"] .tiktok-live::before,
html[data-season="christmas"] .faq-hero::after,
html[data-season="christmas"] .ty-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -360px;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url('assets/christmas-snow.svg'),
    url('assets/christmas-snow.svg');
  background-size: 360px 360px, 180px 180px;
  background-position: 0 0, 90px 40px;
  background-repeat: repeat;
  opacity: 0.6;
  animation: xm-snow 22s linear infinite;
  will-change: transform;
}

/* The live section's card is translucent, so snow behind it shows through
   the copy: just the larger, sparser tile here, and fainter. */
html[data-season="christmas"] .tiktok-live::before {
  background-image: url('assets/christmas-snow.svg');
  background-size: 360px 360px;
  background-position: 0 0;
  opacity: 0.3;
  animation-duration: 30s;
}

@keyframes xm-snow {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, 360px, 0); }
}

/* ---------- String of lights hanging from the nav bar ----------
   Hung off the fixed nav itself rather than the hero. Attached to the
   hero, the string scrolled up behind the nav (which turns solid once you
   scroll) and looked cut off at the top; on the nav it stays fully in
   view, on every page. Nudged up a few px so the wire meets the bar's
   edge. The glow pulses unevenly so it twinkles rather than blinks. */

html[data-season="christmas"] .nav-header::after {
  content: '';
  position: absolute;
  top: calc(100% - 5px);
  left: 0;
  right: 0;
  height: 56px;
  background: url('assets/christmas-lights.svg') repeat-x 0 0 / 180px 56px;
  pointer-events: none;
  animation: xm-twinkle 4.2s ease-in-out infinite;
  transition: opacity 0.2s ease;
}

/* The mobile dropdown opens right where the string hangs; step it aside
   while the menu is open. */
html[data-season="christmas"] .nav-header:has(.nav-menu.open)::after {
  opacity: 0;
}

@keyframes xm-twinkle {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 220, 140, 0.55)) brightness(1); }
  22%      { filter: drop-shadow(0 0 9px rgba(255, 220, 140, 0.85)) brightness(1.15); }
  40%      { filter: drop-shadow(0 0 5px rgba(255, 220, 140, 0.6))  brightness(1); }
  63%      { filter: drop-shadow(0 0 11px rgba(255, 220, 140, 0.9)) brightness(1.2); }
  80%      { filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.65)) brightness(1.05); }
}

/* ---------- Holly in section corners ----------
   Flipped with scaleX where the sprig belongs on the right, so one asset
   serves both corners. */

html[data-season="christmas"] .services::before,
html[data-season="christmas"] .booking::before,
html[data-season="christmas"] .site-footer::before,
html[data-season="christmas"] .faq-hero::before,
html[data-season="christmas"] .ty-section::before {
  content: '';
  position: absolute;
  top: 0;
  width: 200px;
  height: 200px;
  background: url('assets/christmas-holly.svg') no-repeat top left / contain;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

html[data-season="christmas"] .booking::before,
html[data-season="christmas"] .faq-hero::before,
html[data-season="christmas"] .ty-section::before {
  left: 0;
}

html[data-season="christmas"] .services::before,
html[data-season="christmas"] .site-footer::before {
  right: 0;
  transform: scaleX(-1);
}

/* Keep the decorations behind the content they overlap. */
html[data-season="christmas"] .hero-content,
html[data-season="christmas"] .services .container,
html[data-season="christmas"] .booking .container,
html[data-season="christmas"] .group-readings .container,
html[data-season="christmas"] .tiktok-live .container,
html[data-season="christmas"] .site-footer .container,
html[data-season="christmas"] .faq-hero .container,
html[data-season="christmas"] .ty-section .container {
  position: relative;
  z-index: 1;
}

/* ---------- Components ---------- */

/* Badges go red-and-gold; the featured card's frame follows. */
html[data-season="christmas"] .s-card-badge,
html[data-season="christmas"] .live-badge {
  color: #fff;
  background: linear-gradient(90deg, #b81f33, #e0414f 60%, #d9a640);
}

html[data-season="christmas"] .s-card--featured {
  background: linear-gradient(160deg, rgba(224, 180, 76, 0.6), rgba(224, 65, 79, 0.35), rgba(40, 150, 95, 0.25));
}

/* Card edges catch a warm red rather than cold blue. */
html[data-season="christmas"] .s-card {
  background: linear-gradient(160deg, rgba(224, 65, 79, 0.28), rgba(255, 255, 255, 0.03));
}

html[data-season="christmas"] .s-card:hover {
  background: linear-gradient(160deg, rgba(224, 65, 79, 0.7), rgba(245, 217, 138, 0.2));
}

html[data-season="christmas"] .live-menu {
  border-color: rgba(224, 65, 79, 0.45);
  background: rgba(224, 65, 79, 0.08);
}

html[data-season="christmas"] .live-icon {
  background: rgba(224, 65, 79, 0.18);
  color: var(--azure-light);
}

/* Primary buttons sweep brand purple into holly red. */
html[data-season="christmas"] .hero-btn,
html[data-season="christmas"] .nav-cta,
html[data-season="christmas"] .btn-submit,
html[data-season="christmas"] .live-btn,
html[data-season="christmas"] .s-card--featured .s-card-btn {
  background: linear-gradient(135deg, #6b3fa0, #9b4d9e 50%, #d6334a);
}

html[data-season="christmas"] .hero-btn:hover,
html[data-season="christmas"] .hero-btn:focus {
  box-shadow: 0 8px 40px rgba(107, 63, 160, 0.45), 0 8px 44px rgba(224, 65, 79, 0.4);
}

/* ---------- Secondary pages ----------
   faq.css and thank-you.css are loaded before this file, so their page
   banners are overridden here rather than edited. Snow (::after) and a
   holly sprig (::before) are set up with the shared rules above. */

html[data-season="christmas"] .faq-hero,
html[data-season="christmas"] .ty-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 82% 15%, rgba(224, 65, 79, 0.2) 0%, transparent 62%),
    radial-gradient(50% 60% at 10% 95%, rgba(40, 150, 95, 0.14) 0%, transparent 62%),
    linear-gradient(160deg, var(--purple-dark) 0%, var(--deep) 100%);
}

html[data-season="christmas"] .faq-hero::after,
html[data-season="christmas"] .ty-section::after {
  opacity: 0.5;
}

/* These banners start under the fixed nav, so a sprig in the very corner
   sits behind the logo. Drop it below the bar and the lights hanging
   from it. */
html[data-season="christmas"] .faq-hero::before,
html[data-season="christmas"] .ty-section::before {
  top: calc(var(--nav-h) + 30px);
}

/* The base .section-label is dark purple, which is near-invisible on this
   dark banner (same fix the Halloween theme carried). */
html[data-season="christmas"] .faq-hero .section-label {
  color: var(--gold-light);
}

/* ---------- Snowflake on card hover ----------
   Hovering a session card sends a snowflake spinning up out of it. A
   pseudo-element, so no markup changes and it goes with the theme. */

html[data-season="christmas"] .s-card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 6px;
  width: 34px;
  height: 34px;
  background: url('assets/christmas-snowflake.svg') no-repeat center / contain;
  filter: drop-shadow(0 0 8px rgba(190, 220, 255, 0.85));
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, 0) scale(0.5);
}

html[data-season="christmas"] .s-card:hover::after,
html[data-season="christmas"] .s-card:focus-within::after {
  animation: xm-flake-rise 1.6s cubic-bezier(.32, .62, .4, 1) forwards;
}

@keyframes xm-flake-rise {
  0%   { opacity: 0;   transform: translate(-50%, 0)      scale(0.5)  rotate(0deg); }
  15%  { opacity: 1;   transform: translate(-58%, -30px)  scale(0.75) rotate(40deg); }
  45%  { opacity: 1;   transform: translate(-40%, -90px)  scale(0.95) rotate(120deg); }
  75%  { opacity: 0.7; transform: translate(-60%, -145px) scale(1)    rotate(200deg); }
  100% { opacity: 0;   transform: translate(-48%, -190px) scale(1.05) rotate(270deg); }
}

/* Stagger the cards so sweeping across the row doesn't fire identical
   flakes in lockstep. */
html[data-season="christmas"] .s-card:nth-child(2):hover::after { animation-duration: 1.8s; }
html[data-season="christmas"] .s-card:nth-child(3):hover::after { animation-duration: 1.45s; }
html[data-season="christmas"] .s-card:nth-child(4):hover::after { animation-duration: 1.7s; }
html[data-season="christmas"] .s-card:nth-child(5):hover::after { animation-duration: 1.52s; }

/* ---------- Extra props ----------
   One motif per section, each on a free pseudo-element. */

/* A bauble hanging into the services section on the left, where there is
   no copy. Transform-origin at the top so it sways from its ribbon. */
html[data-season="christmas"] .services::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 6%;
  width: 62px;
  height: 130px;
  background: url('assets/christmas-ornament.svg') no-repeat top center / contain;
  filter: drop-shadow(0 0 10px rgba(224, 65, 79, 0.45));
  transform-origin: 50% 0;
  animation: xm-sway 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes xm-sway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}

/* A star glowing over the group readings section. */
html[data-season="christmas"] .group-readings::before {
  content: '';
  position: absolute;
  top: 12%;
  right: 6%;
  width: 70px;
  height: 70px;
  background: url('assets/christmas-star.svg') no-repeat center / contain;
  filter: drop-shadow(0 0 14px rgba(255, 220, 140, 0.7));
  animation: xm-star 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes xm-star {
  0%, 100% { transform: scale(1)    rotate(0deg);  opacity: 0.85; }
  50%      { transform: scale(1.12) rotate(8deg);  opacity: 1; }
}

/* A little lit tree in the footer. Left, not right — the back-to-top
   button is fixed in the bottom-right corner. */
html[data-season="christmas"] .site-footer::after {
  content: '';
  position: absolute;
  left: 5%;
  bottom: 10px;
  width: 84px;
  height: 100px;
  background: url('assets/christmas-tree.svg') no-repeat center bottom / contain;
  animation: xm-glow 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes xm-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 220, 140, 0.35)); }
  30%      { filter: drop-shadow(0 0 18px rgba(255, 220, 140, 0.6)); }
  60%      { filter: drop-shadow(0 0 12px rgba(255, 220, 140, 0.42)); }
}

/* ---------- Motion and small screens ---------- */

@media (prefers-reduced-motion: reduce) {
  /* Snow stays as a still dusting; nothing moves. */
  html[data-season="christmas"] .hero::before,
  html[data-season="christmas"] .nav-header::after,
  html[data-season="christmas"] .tiktok-live::before,
  html[data-season="christmas"] .faq-hero::after,
  html[data-season="christmas"] .ty-section::after,
  html[data-season="christmas"] .services::after,
  html[data-season="christmas"] .group-readings::before,
  html[data-season="christmas"] .site-footer::after {
    animation: none;
  }

  html[data-season="christmas"] .s-card:hover::after,
  html[data-season="christmas"] .s-card:focus-within::after {
    animation: none;
    opacity: 0.9;
    transform: translate(-50%, -70px) scale(0.9);
    transition: opacity 0.3s ease;
  }
}

@media (max-width: 600px) {
  /* Smaller holly and lighter snow: at phone width the full-size
     decorations crowd the copy. */
  html[data-season="christmas"] .services::before,
  html[data-season="christmas"] .booking::before,
  html[data-season="christmas"] .site-footer::before,
  html[data-season="christmas"] .faq-hero::before,
  html[data-season="christmas"] .ty-section::before {
    width: 120px;
    height: 120px;
    opacity: 0.6;
  }

  html[data-season="christmas"] .hero::before {
    opacity: 0.45;
  }

  html[data-season="christmas"] .nav-header::after {
    background-size: 140px 44px;
    height: 44px;
  }
}

@media (max-width: 700px) {
  /* The bauble and star compete with the copy at phone width, so they
     step out and only the tree stays, smaller. */
  html[data-season="christmas"] .services::after,
  html[data-season="christmas"] .group-readings::before {
    display: none;
  }

  html[data-season="christmas"] .site-footer::after {
    width: 56px;
    height: 68px;
    left: 6%;
    opacity: 0.9;
  }
}

/* ============================================
   Seasonal toggle button
   ============================================
   Deliberately NOT scoped to html[data-season="christmas"]: the button has
   to stay styled while the theme is off, otherwise switching back would
   mean hunting for an unstyled control. Everything above this point is
   gated; this block is not. */

.season-toggle-item {
  display: flex;
  align-items: center;
}

.season-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(201, 177, 224, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--lavender);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, transform 0.25s var(--ease-out);
}

.season-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.season-toggle:hover,
.season-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(190, 220, 255, 0.6);
  color: #e6f2ff;
  background: rgba(190, 220, 255, 0.12);
}

/* Lit while the season is on, so the control reads as a state, not a link. */
html[data-season="christmas"] .season-toggle {
  color: #f5d98a;
  border-color: rgba(224, 180, 76, 0.55);
  background: rgba(224, 65, 79, 0.16);
}

html[data-season="christmas"] .season-toggle:hover,
html[data-season="christmas"] .season-toggle:focus-visible {
  color: #fff3cc;
  background: rgba(224, 65, 79, 0.28);
}

/* In the stacked mobile dropdown the button is a row of its own, so give it
   the same left alignment the links have rather than centring it. */
@media (max-width: 767px) {
  .season-toggle-item {
    justify-content: flex-start;
    padding: 10px 28px;
  }
}
