/* Diwali 2026 theme — only applies while html.diwali is set by js/diwali.js (self-expiring). */

/* ── Banner ── */
.diwali-banner { position: relative; z-index: 1001; color: #fff6dc; background: linear-gradient(90deg, #5a0f1a 0%, #a3261b 28%, #d9561a 50%, #a3261b 72%, #5a0f1a 100%); background-size: 200% 100%; animation: dwShimmer 14s linear infinite; padding: 10px 44px 16px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.35; overflow: hidden; }
.diwali-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(255,211,77,.28), transparent 60%); pointer-events: none; }
.dw-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.dw-text strong { color: #ffd34d; font-family: var(--font-heading, inherit); letter-spacing: -.01em; }
.dw-off { display: inline-block; background: linear-gradient(180deg, #ffe08a, #f0b429); color: #4a0e12; padding: 1px 9px; border-radius: 100px; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.dw-text b { color: #ffd34d; letter-spacing: .06em; }
.dw-cta { background: #ffd34d; color: #4a0e12; padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; text-decoration: none; box-shadow: 0 0 0 0 rgba(255,211,77,.6); animation: dwPulse 2.4s ease-out infinite; }
.dw-cta:hover { background: #fff; }
.dw-diya { flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(255,211,77,.8)); animation: dwFlicker 2.2s ease-in-out infinite; }
.dw-close { position: absolute; top: 6px; right: 10px; z-index: 2; background: none; border: 0; color: #fff6dc; font-size: 22px; line-height: 1; cursor: pointer; opacity: .75; padding: 4px 8px; }
.dw-close:hover { opacity: 1; }

/* String of festival lights along the banner bottom */
.dw-lights { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background:
  radial-gradient(circle at 10px 4px, #ffd34d 0 3px, transparent 4px) 0 0 / 40px 8px repeat-x,
  radial-gradient(circle at 30px 4px, #ff7a3d 0 3px, transparent 4px) 0 0 / 40px 8px repeat-x;
  animation: dwTwinkle 1.8s ease-in-out infinite alternate; filter: drop-shadow(0 0 4px rgba(255,211,77,.9)); }

/* ── Site theme: warm festive palette while the campaign is live ── */
html.diwali { --gold: #ffc83d; }
html.diwali .topbar { background: linear-gradient(90deg, #d9561a, #f0892a, #d9561a); }
html.diwali .site-aurora { opacity: .3; }
html.diwali .sa2 { background: radial-gradient(circle, #f0b429 0%, transparent 70%); }
html.diwali .sa3 { background: radial-gradient(circle, #c2185b 0%, transparent 70%); }
html.diwali nav { border-bottom: 1px solid rgba(255,200,61,.28); box-shadow: 0 1px 18px rgba(255,170,40,.12); }
html.diwali footer { border-top: 1px solid rgba(255,200,61,.3); box-shadow: 0 -8px 30px rgba(255,170,40,.06); }
html.diwali .whatsapp-float { box-shadow: 0 4px 18px rgba(0,0,0,.35), 0 0 22px rgba(255,200,61,.35); }

@keyframes dwShimmer { to { background-position: -200% 0; } }
@keyframes dwTwinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes dwFlicker { 0%,100% { transform: scale(1); } 45% { transform: scale(1.1) rotate(-3deg); } 70% { transform: scale(.96) rotate(2deg); } }
@keyframes dwPulse { 0% { box-shadow: 0 0 0 0 rgba(255,211,77,.55); } 70%,100% { box-shadow: 0 0 0 10px rgba(255,211,77,0); } }

/* ── Mobile ── */
@media (max-width: 640px) {
  .diwali-banner { padding: 8px 34px 14px 12px; font-size: 12px; }
  .dw-full { display: none; }
  .dw-inner { gap: 8px; }
  .dw-inner .dw-diya:last-child { display: none; }
  .dw-cta { padding: 4px 10px; font-size: 11px; }
  .dw-off { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .diwali-banner, .dw-cta, .dw-diya, .dw-lights { animation: none; }
}
