/* ==========================================================
   HOLIDAY THEME — Thanksgiving
   Turned on by class="theme-thanksgiving" on the <html> tag in
   index.html and thank-you.html. Remove that class (or this file's
   <link>) to go back to the normal yellow look. Anything marked
   class="holiday" in the HTML only shows while the theme is on.
   ========================================================== */

.holiday { display: none !important; }

.theme-thanksgiving {
  --yellow: #e8772e;          /* pumpkin orange */
  --yellow-soft: #f2b66d;     /* warm gold */
  --yellow-rgb: 232, 119, 46;
  --black: #1f140d;           /* deep brown */
  --graphite: #2a1b12;
  --graphite-2: #36241a;
  --ink: #2b1d14;
  --gray: #6b5446;
  --gray-light: #c2ab98;
  --paper: #fbf5ec;           /* cream */
  --paper-2: #f5e9d8;
  --card: #fffdf9;
  --line: #eadfce;
  --green: #7a9a4f;           /* sage */
  --green-rgb: 122, 154, 79;
  --amber: #a8322d;           /* cranberry */
  --shadow-rgb: 43, 29, 20;
  --tint: #fde6d2;
  --tint-ink: #a34a12;
  --on-yellow-muted: #4a1f08;
  --text-on-dark: #dcc9b8;
  --text-on-dark-2: #ecdccd;
  --field-line: #dfcfba;
  --field-bg: #fffbf5;
  --cranberry: #a8322d;
}
.theme-thanksgiving .btn-dark:hover { background: #3a2619; }

/* Show holiday-only elements */
.theme-thanksgiving .holiday { display: revert !important; }
.theme-thanksgiving .holiday-banner,
.theme-thanksgiving .holiday-special { display: block !important; }
.theme-thanksgiving .holiday-leaves { display: block !important; }

/* ---------- Banner ---------- */
.holiday-banner {
  background: linear-gradient(90deg, var(--cranberry), #c4542a 50%, var(--cranberry));
  color: #fff; font-size: .9rem; line-height: 1.4;
}
.holiday-banner-inner {
  display: flex; align-items: center; justify-content: center; gap: .4rem 1rem;
  flex-wrap: wrap; padding: .6rem 0; text-align: center;
}
.holiday-banner strong { font-weight: 700; margin-right: .25rem; }
.holiday-leaf { font-size: 1.05rem; }
.holiday-hours {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px; padding: .15rem .75rem; font-weight: 600; font-size: .82rem; white-space: nowrap;
}

/* ---------- Falling leaves in the hero ---------- */
.holiday-leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.holiday-leaves span {
  position: absolute; top: -10%; font-size: 1.6rem; opacity: 0;
  animation: leafFall 14s linear infinite;
  filter: saturate(.9);
}
.holiday-leaves span:nth-child(1) { left: 6%;  animation-delay: 0s;   font-size: 1.4rem; }
.holiday-leaves span:nth-child(2) { left: 18%; animation-delay: 5s;   animation-duration: 17s; }
.holiday-leaves span:nth-child(3) { left: 32%; animation-delay: 9s;   font-size: 1.1rem; }
.holiday-leaves span:nth-child(4) { left: 47%; animation-delay: 2.5s; animation-duration: 16s; font-size: 1.3rem; }
.holiday-leaves span:nth-child(5) { left: 61%; animation-delay: 7s;   font-size: 1.8rem; }
.holiday-leaves span:nth-child(6) { left: 73%; animation-delay: 11s;  animation-duration: 18s; }
.holiday-leaves span:nth-child(7) { left: 84%; animation-delay: 4s;   font-size: 1.2rem; }
.holiday-leaves span:nth-child(8) { left: 94%; animation-delay: 8.5s; animation-duration: 15s; }
@keyframes leafFall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .55; }
  50%  { transform: translate(40px, 55vh) rotate(180deg); }
  90%  { opacity: .45; }
  100% { transform: translate(-20px, 110vh) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-leaves { display: none !important; }
}

/* ---------- Road trip check-up special ---------- */
.holiday-special {
  background: linear-gradient(135deg, var(--tint), var(--paper-2));
  border-bottom: 1px solid var(--line);
}
.holiday-special-inner { display: flex; align-items: center; gap: 2rem; padding: 2.4rem 0; flex-wrap: wrap; }
.holiday-special-icons { font-size: 2.4rem; letter-spacing: .1em; flex: none; }
.holiday-special-copy { flex: 1 1 420px; }
.holiday-special-tag {
  margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cranberry);
}
.holiday-special h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); text-transform: uppercase; margin-bottom: .4rem; color: var(--ink); }
.holiday-special h2 em { font-style: normal; color: var(--cranberry); }
.holiday-special-copy > p:last-child { margin: 0; color: var(--gray); max-width: 620px; }
.holiday-special .btn { flex: none; }

@media (max-width: 720px) {
  .holiday-banner-inner { font-size: .82rem; }
  .holiday-special-inner { gap: 1.2rem; padding: 2rem 0; }
  .holiday-special .btn { width: 100%; justify-content: center; }
}

/* ---------- Extra leaves (9–16) ---------- */
.holiday-leaves span:nth-child(9)  { left: 12%; animation-delay: 1.5s;  animation-duration: 19s; font-size: 1.2rem; }
.holiday-leaves span:nth-child(10) { left: 25%; animation-delay: 12s;   font-size: 1.5rem; }
.holiday-leaves span:nth-child(11) { left: 39%; animation-delay: 6s;    animation-duration: 13s; font-size: 1rem; }
.holiday-leaves span:nth-child(12) { left: 54%; animation-delay: 10s;   animation-duration: 20s; }
.holiday-leaves span:nth-child(13) { left: 67%; animation-delay: 3s;    font-size: 1.1rem; }
.holiday-leaves span:nth-child(14) { left: 78%; animation-delay: 13s;   animation-duration: 16s; font-size: 1.7rem; }
.holiday-leaves span:nth-child(15) { left: 89%; animation-delay: 0.8s;  animation-duration: 18s; font-size: 1.3rem; }
.holiday-leaves span:nth-child(16) { left: 2%;  animation-delay: 9.5s;  animation-duration: 15s; font-size: 1.15rem; }
.holiday-leaves span:nth-child(even) { animation-name: leafFallAlt; }
@keyframes leafFallAlt {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .5; }
  50%  { transform: translate(-45px, 55vh) rotate(-200deg); }
  90%  { opacity: .4; }
  100% { transform: translate(25px, 110vh) rotate(-380deg); opacity: 0; }
}

/* ---------- Animated turkeys ---------- */
/* Turkey next to the tagline: bobs and gobbles */
.theme-thanksgiving .holiday-turkey { display: inline-block !important; transform-origin: 50% 90%; animation: gobble 2.4s ease-in-out infinite; }
@keyframes gobble {
  0%, 60%, 100% { transform: rotate(0) translateY(0); }
  68% { transform: rotate(-14deg) translateY(-3px); }
  76% { transform: rotate(10deg) translateY(0); }
  84% { transform: rotate(-8deg) translateY(-2px); }
  92% { transform: rotate(4deg); }
}

/* Turkey strolling across the bottom of the hero every 10 seconds (7s walk + 3s pause) */
.holiday-walker {
  position: absolute; left: 0; right: 0; bottom: .6rem; height: 3rem;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.theme-thanksgiving .holiday-walker { display: block !important; }
.holiday-walker span {
  position: absolute; bottom: 0; left: 100%; font-size: 2.2rem; line-height: 1;
  animation: turkeyStroll 10s linear infinite 1s;
}
@keyframes turkeyStroll {
  0%   { left: 100%; transform: translateY(0) rotate(0); }
  /* waddle while crossing during the first ~70% of the loop, then wait off-screen */
  5%   { transform: translateY(-4px) rotate(-6deg); }
  10%  { transform: translateY(0) rotate(5deg); }
  15%  { transform: translateY(-4px) rotate(-6deg); }
  20%  { transform: translateY(0) rotate(5deg); }
  25%  { transform: translateY(-4px) rotate(-6deg); }
  30%  { transform: translateY(0) rotate(5deg); }
  35%  { transform: translateY(-4px) rotate(-6deg); }
  40%  { transform: translateY(0) rotate(5deg); }
  45%  { transform: translateY(-4px) rotate(-6deg); }
  50%  { transform: translateY(0) rotate(5deg); }
  55%  { transform: translateY(-4px) rotate(-6deg); }
  60%  { transform: translateY(0) rotate(5deg); }
  65%  { transform: translateY(-4px) rotate(-6deg); }
  70%  { left: -3rem; transform: translateY(0) rotate(0); }
  100% { left: -3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-turkey { animation: none; }
  .holiday-walker { display: none !important; }
}
