/* Diwali look, switched on by festive.js only from 28 Oct to 13 Nov 2026 (html.fest); from 15 Nov to 14 Dec the same file switches on the plain wedding-season bar (html.wed). Colours extend theme.css. */
:root {
  --marigold: #F2A03D;      /* festive accent beside the gold */
  --marigold-soft: #FBE3B0;
  --diya-glow: rgba(242, 160, 61, .35);
}

/* string of lights along the very top */
.fest-lights { display: none; }
html.fest .fest-lights {
  display: block; height: 14px; position: relative; z-index: 5; pointer-events: none; overflow: hidden;
  background: var(--maroon);
}
html.fest .fest-lights::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10px 7px, #FFD27A 0 3px, transparent 4px) 0 0 / 44px 14px repeat-x,
    radial-gradient(circle at 32px 7px, #F2A03D 0 3px, transparent 4px) 0 0 / 44px 14px repeat-x,
    linear-gradient(var(--gold-deep), var(--gold-deep)) 0 2px / 100% 1px no-repeat;
  animation: fest-twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes fest-twinkle { from { opacity: .55; } to { opacity: 1; } }

/* countdown bar */
#fest-bar { display: none; }
html.wed #fest-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; text-align: center; padding: 9px 16px; font-weight: 500; color: var(--maroon); background: var(--gold); }
html.fest #fest-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; text-align: center;
  padding: 9px 16px; font-weight: 500; color: var(--maroon);
  background: linear-gradient(90deg, var(--gold) 0%, var(--marigold-soft) 50%, var(--gold) 100%);
}
#fest-bar a { color: var(--maroon); font-weight: 600; text-underline-offset: 3px; }
#fest-bar b { font-variant-numeric: tabular-nums; }
#fest-cd { white-space: nowrap; }

/* warm glow on the dark sections, brighter buttons, a diya on the thin rule */
html.fest .dark { background-image: radial-gradient(ellipse at 12% 0%, var(--diya-glow), transparent 45%), radial-gradient(ellipse at 90% 8%, rgba(231, 201, 127, .16), transparent 40%); }
html.fest .btn.solid { background: linear-gradient(135deg, #F6DC93, var(--marigold)); border-color: var(--marigold); }
html.fest .hero .arch { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 38px var(--diya-glow); }
html.fest .rule {
  width: 44px; height: 26px; background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26'%3E%3Cpath d='M22 1c3 4 4 6 1.6 9.5-.8 1.2-2.4 1.2-3.2 0C18 7 19 5 22 1Z' fill='%23F2A03D'/%3E%3Cpath d='M6 14h32c0 6-6 10-16 10S6 20 6 14Z' fill='%23B8893A'/%3E%3Cpath d='M9 14h26' stroke='%23E7C97F' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* pop-up asking for a pre-booking */
#fest-pop { display: none; }
html.fest #fest-pop.show {
  display: block; position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 380px; margin-left: auto;
  background: var(--maroon); color: var(--on-maroon); border: 1px solid var(--gold-deep); border-radius: 4px; padding: 20px 20px 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4), 0 0 30px var(--diya-glow);
}
#fest-pop h3 { color: var(--gold); font-size: 22px; margin-bottom: 6px; }
#fest-pop p { font-size: 15px; margin-bottom: 14px; color: var(--on-maroon-soft); }
#fest-pop .x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--on-maroon); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
#fest-pop .btn { padding: 10px 20px; }

@media (prefers-reduced-motion: reduce) { html.fest .fest-lights::before { animation: none; } }
