/* Versão de Natal da página inicial (js/natal.js). Tudo depende da classe .natal no <html>:
   fora do período (season em js/config.js) nada daqui se aplica. */

/* Cordão de luzes no pé do cabeçalho: duas camadas de bolinhas que piscam alternadas */
.natal .header { position: sticky; }
.xmas-lights { position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; pointer-events: none; overflow: hidden; }
.xmas-lights::before, .xmas-lights::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12px 8px, #ff4d4d 0 3px, rgba(255, 77, 77, .35) 4px, transparent 7px) 0 0 / 96px 14px repeat-x,
    radial-gradient(circle at 36px 8px, #ffd34d 0 3px, rgba(255, 211, 77, .35) 4px, transparent 7px) 0 0 / 96px 14px repeat-x,
    radial-gradient(circle at 60px 8px, #4dd88a 0 3px, rgba(77, 216, 138, .35) 4px, transparent 7px) 0 0 / 96px 14px repeat-x,
    radial-gradient(circle at 84px 8px, #f37421 0 3px, rgba(243, 116, 33, .35) 4px, transparent 7px) 0 0 / 96px 14px repeat-x;
  animation: xmas-blink 1.6s steps(1) infinite;
}
.xmas-lights::after { background-position: 48px 0, 48px 0, 48px 0, 48px 0; animation-delay: -.8s; }
/* o fio */
.xmas-lights { background: linear-gradient(#2a2a2a, #2a2a2a) 0 4px / 100% 1px no-repeat; }
@keyframes xmas-blink { 0% { opacity: 1; } 50% { opacity: .25; } }

/* Gorro no símbolo do logo */
.natal .header .brand { position: relative; }
.xmas-hat { position: absolute; left: -9px; top: -13px; width: 30px; height: 25px; transform: rotate(-20deg); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }

/* Destaque principal */
.natal .hero { position: relative; }
.xmas-pill {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(214, 42, 42, .14); border: 1px solid rgba(214, 42, 42, .55); color: #f6d6d6; font-size: .92rem;
  transition: background .2s, border-color .2s;
}
.xmas-pill:hover { background: rgba(214, 42, 42, .24); border-color: #e04848; }
.xmas-pill strong { color: #fff; font-weight: 600; }
.xmas-pill .ico { width: 18px; height: 18px; color: #ff6b6b; }
.xmas-pill .ico:last-child { width: 14px; height: 14px; color: #f6d6d6; }

.xmas-balls { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 0; pointer-events: none; }
.xmas-ball { position: absolute; top: 0; width: 2px; height: var(--len); background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .35)); transform-origin: top center; animation: xmas-swing 4.5s ease-in-out infinite alternate; }
.xmas-ball i {
  position: absolute; left: 50%; top: 100%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin-left: calc(var(--r) * -1);
  border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .85) 0 8%, var(--c) 30%, color-mix(in srgb, var(--c), #000 45%) 100%);
  box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--c), transparent 40%);
}
.xmas-ball i::before { content: ''; position: absolute; left: 50%; top: -5px; width: 9px; height: 7px; margin-left: -4.5px; border-radius: 2px; background: linear-gradient(#e9d58a, #a8892f); }
@keyframes xmas-swing { from { transform: rotate(4deg); } to { transform: rotate(-4deg); } }

/* Banner do vale-presente */
.xmas-gift { padding: 8px 0 24px; }
.xmas-gift-card {
  position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); overflow: hidden;
  border-radius: calc(var(--radius) + 6px); border: 1px solid rgba(243, 116, 33, .35);
  background: radial-gradient(120% 140% at 100% 0%, rgba(214, 42, 42, .16), transparent 55%), linear-gradient(135deg, #1a0f08, var(--surface) 60%);
  box-shadow: 0 30px 80px -40px rgba(243, 116, 33, .55);
}
.xmas-gift-art { position: relative; min-height: 300px; }
.xmas-gift-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.xmas-gift-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #1a0f08 100%); }
.xmas-gift-copy { padding: clamp(26px, 4vw, 48px); }
.xmas-gift-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.xmas-gift-copy h2 .accent { display: block; }
.xmas-gift-copy > p { color: #d8d2ca; margin: 0 0 18px; }
.xmas-gift-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.xmas-gift-facts li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--muted); font-size: .9rem; }
.xmas-gift-facts strong { color: var(--text); font-weight: 600; }
.xmas-gift .hero-cta { margin-bottom: 0; }
.xmas-gift .btn .ico { width: 18px; height: 18px; }

/* Neve */
.xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

@media (max-width: 900px) {
  .xmas-balls { display: none; }
  .xmas-gift-card { grid-template-columns: minmax(0, 1fr); }
  .xmas-gift-copy { padding: 24px 20px 26px; }
  .xmas-gift-copy .btn { white-space: normal; text-align: center; }
  .xmas-gift-art { min-height: 0; aspect-ratio: 16 / 8; }
  .xmas-gift-art::after { background: linear-gradient(0deg, #1a0f08 0%, transparent 45%); }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-lights::before, .xmas-lights::after, .xmas-ball { animation: none; }
}
