/* ==========================================================================
   Seasonal skin — Thanksgiving (November 1 – December 1).
   Activated by assets/js/season.js via <html data-season="thanksgiving">
   (?season=thanksgiving / ?season=off override).
   Carries harvest amber & hearth ember across the heritage design system
   while preserving WCAG AA contrast and visual restraint.
   ========================================================================== */
html[data-season="thanksgiving"] {
  --season-amber:       #D98E2B;
  --season-amber-light: #EEA94F;
  --season-amber-text:  #8F4A12; /* WCAG AA on cream/wheat */
  --season-ember:       #873114;
  --season-ember-deep:  #4D1A09;
  --season-wheat:       #F4E6CF;
  --season-wheat-edge:  #DFC49B;
  --color-accent:       var(--season-amber);
  --color-accent-light: var(--season-amber-light);
  --color-accent-text:  var(--season-amber-text);
}

/* ---- Seasonal Announcement Ribbon (prepended to body by season.js) ---- */
.season-ribbon {
  position: relative;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, var(--season-ember-deep) 0%, var(--season-ember) 50%, var(--season-ember-deep) 100%);
  color: var(--season-wheat);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
  border-bottom: 1px solid rgba(238, 169, 79, 0.48);
}
.season-ribbon p { margin: 0; }
.season-ribbon strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.08em;
  color: #FFF7E8;
  margin-right: 0.2rem;
}
.season-ribbon a {
  flex-shrink: 0;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  background: var(--season-amber);
  color: #241005;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(255, 247, 232, 0.38);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.season-ribbon a:hover,
.season-ribbon a:focus-visible {
  background: var(--season-amber-light);
  color: #1F0D04;
  transform: translateY(-1px);
}
.season-ribbon a:focus-visible { outline: 2px solid #FFF7E8; outline-offset: 2px; }
.season-ribbon .season-leaf {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--season-amber-light);
}

/* ---- Header & Primary CTAs pick up harvest amber ---- */
html[data-season="thanksgiving"] .site-header {
  border-bottom: 2px solid rgba(217, 142, 43, 0.75);
}
html[data-season="thanksgiving"] .site-header__progress {
  background: linear-gradient(90deg, var(--season-ember), var(--season-amber-light));
}
html[data-season="thanksgiving"] .nav__cta,
html[data-season="thanksgiving"] .nav-cta,
html[data-season="thanksgiving"] .btn--gold,
html[data-season="thanksgiving"] .mobile-order-bar__primary {
  background: var(--season-amber) !important;
  border-color: var(--season-amber) !important;
  color: #241005 !important;
}
html[data-season="thanksgiving"] .nav__cta:hover,
html[data-season="thanksgiving"] .nav-cta:hover,
html[data-season="thanksgiving"] .btn--gold:hover {
  background: var(--season-amber-light) !important;
  border-color: var(--season-amber-light) !important;
  color: #1F0D04 !important;
}

/* ---- Home Hero: Hearth Ember Veil & Harvest Medallion ---- */
html[data-season="thanksgiving"] .hero { background: #221006; }
html[data-season="thanksgiving"] .hero::after { border-color: rgba(238, 169, 79, 0.18); }
html[data-season="thanksgiving"] .hero__bg {
  filter: saturate(1.04) sepia(0.24) contrast(1.06) brightness(0.54);
}
html[data-season="thanksgiving"] .hero__veil {
  background:
    radial-gradient(ellipse 65% 55% at 50% 42%, rgba(34, 16, 6, 0.34) 0%, rgba(34, 16, 6, 0.74) 100%),
    radial-gradient(ellipse at 74% 22%, rgba(217, 142, 43, 0.32) 0%, transparent 52%),
    radial-gradient(ellipse at 18% 78%, rgba(135, 49, 20, 0.5) 0%, transparent 58%),
    linear-gradient(180deg, rgba(34, 16, 6, 0.58) 0%, rgba(34, 16, 6, 0.24) 38%, rgba(34, 16, 6, 0.88) 100%);
}
html[data-season="thanksgiving"] .hero__eyebrow {
  background: rgba(34, 16, 6, 0.58);
  color: var(--season-amber-light);
  border-color: rgba(217, 142, 43, 0.52);
}
html[data-season="thanksgiving"] .hero__seal {
  border-color: rgba(217, 142, 43, 0.92);
  box-shadow:
    inset 0 0 0 3px rgba(255, 253, 248, 0.88),
    inset 0 2px 8px rgba(77, 26, 9, 0.16),
    0 0 0 5px rgba(34, 16, 6, 0.6),
    0 0 0 6px rgba(217, 142, 43, 0.52),
    0 20px 44px rgba(0, 0, 0, 0.58),
    0 0 64px rgba(217, 142, 43, 0.28);
}
html[data-season="thanksgiving"] .hero h1 .accent { color: var(--season-amber-light); }
html[data-season="thanksgiving"] .hero__trust .item svg { color: var(--season-amber-light); }

/* ---- Follow the Herd Hero harmony ---- */
html[data-season="thanksgiving"] .fth-hero {
  background: linear-gradient(155deg, #221006 0%, #4A1C0C 58%, #221006 100%);
  border-bottom-color: rgba(217, 142, 43, 0.42);
}

/* ---- Subtle Drifting Autumn Leaves (injected into .hero by season.js) ---- */
.season-leaves {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.season-leaves svg {
  position: absolute;
  width: clamp(64px, 8.5vw, 132px);
  height: auto;
  opacity: 0.34;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}
.season-leaves .leaf-a { top: 7%; right: 4.5%; transform: rotate(-18deg); color: #D98E2B; }
.season-leaves .leaf-b { top: 15%; right: 11.5%; width: clamp(40px, 5vw, 76px); transform: rotate(28deg); color: #B5361E; opacity: 0.28; }
.season-leaves .leaf-c { bottom: 10%; left: 3.5%; transform: rotate(142deg); color: #C9742A; opacity: 0.26; }

@media (max-width: 720px) {
  .season-leaves .leaf-b,
  .season-leaves .leaf-c { display: none; }
  .season-ribbon {
    font-size: 0.8125rem;
    padding: 0.55rem 0.9rem;
    gap: 0.45rem 0.75rem;
  }
  .season-ribbon .season-leaf { display: none; }
}

/* ---- Store Band & Scripture Interlude Warm Up ---- */
html[data-season="thanksgiving"] .store-band {
  background: var(--season-wheat);
  border-color: var(--season-wheat-edge);
}
html[data-season="thanksgiving"] .store-band .eyebrow { color: var(--season-ember); }
html[data-season="thanksgiving"] .scripture {
  border-top-color: rgba(217, 142, 43, 0.42);
  border-bottom-color: rgba(217, 142, 43, 0.32);
}
html[data-season="thanksgiving"] .scripture__mark,
html[data-season="thanksgiving"] .scripture__attr { color: var(--season-amber-light); }
