/* Thanksgiving overlay 3 — Playful turkey and gentle falling leaves
 *
 * This stylesheet only layers decorations on the current site.
 * It does not recolor nav, buttons, sections, fonts, or backgrounds.
 * The existing phone-line notice stays in the page markup and sits
 * directly below the greeting bar (margin only).
 *
 * After the holiday, remove this theme cleanly:
 *   1. Delete the <link> to /assets/thanksgiving/theme.css on each page
 *   2. Delete the .tg-banner and .tg-decor blocks from each page
 *   3. Delete the y/assets/thanksgiving/ folder
 */

.tg-banner {
  margin-top: 4.75rem;
  position: relative;
  z-index: 1020;
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: #4a1e12;
  color: #f0e6d2;
  border-bottom: 2px solid #c45c1c;
}

.tg-banner p {
  margin: 0;
  font-family: Oswald, "Oswald Fallback", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.35;
  color: #f0e6d2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tg-banner p::before,
.tg-banner p::after {
  content: "";
  width: 1.6rem;
  height: 1.35rem;
  flex: 0 0 1.6rem;
  background: url("/assets/thanksgiving/turkey.svg") center / contain no-repeat;
}

/* The live phone-line notice keeps its production styles; only drop the
   nav-offset margin so it sits directly under the greeting bar. */
.message-banner {
  margin-top: 0;
}

.hero,
.hero-404 {
  position: relative;
  min-height: calc(100svh - 10.5rem);
}

/* Index and lunch & dinner also show the phone-line notice under the greeting. */
body:has(.message-banner) .hero,
body:has(.message-banner) .hero-404 {
  min-height: calc(100svh - 15.5rem);
}

.hero > *,
.hero-404 > * {
  position: relative;
  z-index: 2;
}

.tg-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1 !important;
}

.tg-leaf {
  position: absolute;
  top: -12%;
  width: 22px;
  height: 26px;
  background: url("/assets/thanksgiving/leaf.svg") center / contain no-repeat;
  opacity: 0.65;
  animation: tg-fall 18s linear infinite;
  will-change: transform;
}

.tg-leaf-2,
.tg-leaf-5 {
  width: 20px;
  height: 18px;
  background-image: url("/assets/thanksgiving/pumpkin.svg");
}

.tg-leaf-1 { left: 4%;  animation-duration: 16s; }
.tg-leaf-2 { left: 12%; animation-duration: 20s; animation-delay: -5s; }
.tg-leaf-3 { left: 20%; animation-duration: 18s; animation-delay: -9s; }
.tg-leaf-4 { left: 78%; animation-duration: 17s; animation-delay: -3s; }
.tg-leaf-5 { left: 86%; animation-duration: 21s; animation-delay: -12s; }
.tg-leaf-6 { left: 94%; animation-duration: 15s; animation-delay: -7s; }
.tg-leaf-1, .tg-leaf-4 { --tg-drift: 36px; }
.tg-leaf-2, .tg-leaf-5 { --tg-drift: -28px; }
.tg-leaf-3, .tg-leaf-6 { --tg-drift: 16px; }

@keyframes tg-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.65; }
  100% { transform: translate3d(var(--tg-drift, 30px), 110vh, 0) rotate(300deg); opacity: 0.4; }
}

.tg-mark {
  position: absolute;
  opacity: 0.95;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.tg-mark-1 {
  top: 0.9rem;
  left: 0.9rem;
  width: 58px;
  height: 52px;
  background: url("/assets/thanksgiving/turkey.svg") center / contain no-repeat;
}
.tg-mark-2 {
  top: 0.9rem;
  right: 0.9rem;
  width: 44px;
  height: 38px;
  background: url("/assets/thanksgiving/pumpkin.svg") center / contain no-repeat;
}
.tg-mark-3 {
  bottom: 0.9rem;
  left: 0.9rem;
  width: 40px;
  height: 46px;
  background: url("/assets/thanksgiving/leaf.svg") center / contain no-repeat;
}
.tg-mark-4 {
  bottom: 0.9rem;
  right: 0.9rem;
  width: 58px;
  height: 52px;
  background: url("/assets/thanksgiving/turkey.svg") center / contain no-repeat;
  transform: scaleX(-1);
}

h2.display-4 {
  position: relative;
  padding-bottom: 0.35rem;
}

h2.display-4::after {
  content: "";
  display: block;
  width: min(14rem, 75%);
  height: 24px;
  margin: 0.45rem auto 0;
  background: url("/assets/thanksgiving/divider.svg") center / contain no-repeat;
}

footer { position: relative; }

footer::before,
footer::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  width: 44px;
  height: 40px;
  pointer-events: none;
  opacity: 0.9;
}

footer::before {
  left: 0.85rem;
  background: url("/assets/thanksgiving/turkey.svg") center / contain no-repeat;
}
footer::after {
  right: 0.85rem;
  background: url("/assets/thanksgiving/pumpkin.svg") center / contain no-repeat;
}

@media (max-width: 767px) {
  /* Keep falling leaves in the side margins so they do not cross buttons or titles. */
  .tg-leaf-3,
  .tg-leaf-4 { display: none; }
  .tg-leaf-1 { left: 3%; }
  .tg-leaf-2 { left: 10%; }
  .tg-leaf-5 { left: 90%; }
  .tg-leaf-6 { left: 97%; }
}

@media (max-width: 575.98px) {
  .tg-banner p { font-size: 0.9rem; letter-spacing: 0.08em; gap: 0.35rem; }
  .tg-banner p::before,
  .tg-banner p::after { width: 1.3rem; height: 1.1rem; flex-basis: 1.3rem; }
  .tg-mark { transform: scale(0.8); transform-origin: top left; }
  .tg-mark-2 { transform-origin: top right; }
  .tg-mark-3 { transform-origin: bottom left; }
  .tg-mark-4 { transform: scaleX(-1) scale(0.8); transform-origin: bottom right; }
  footer::before,
  footer::after { width: 32px; height: 28px; top: 0.65rem; }
}

@media (max-width: 767px), (max-height: 850px) {
  .hero,
  .hero-404 {
    min-height: calc(100svh - 10.5rem);
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }
  body:has(.message-banner) .hero,
  body:has(.message-banner) .hero-404 {
    min-height: calc(100svh - 15.5rem);
  }
  .hero .lead,
  .hero-404 .lead { min-height: 0; margin-bottom: 1.25rem; }
  .hero .fs-4.mb-5,
  .hero-404 .fs-4.mb-5 { margin-bottom: 1.75rem; }
  .four-oh-four { font-size: clamp(4.5rem, 22vw, 7rem); }
  .hero-404 .subtitle { font-size: clamp(1.45rem, 6vw, 2.15rem); }
  .hero-404 .lead { font-size: 1.15rem; margin-bottom: 1rem; }
  .hero-404 .btn,
  .hero-404 .btn-lg { font-size: 1.05rem; padding: 0.7rem 1.4rem; }
  .hero-404 .mt-5 { margin-top: 1.15rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .four-oh-four { animation: none; }
  .tg-leaf { animation: none; opacity: 0; }
  .tg-leaf-1,
  .tg-leaf-3,
  .tg-leaf-6 { opacity: 0.8; top: auto; }
  .tg-leaf-1 { left: 1rem; bottom: 3.2rem; }
  .tg-leaf-3 { left: auto; right: 3.2rem; bottom: 1.1rem; }
  .tg-leaf-6 { left: auto; right: 1rem; bottom: 3.2rem; }
}
