/* =====================================================================
   FoodieTables — seasonal festive theme (Diwali)
   Every rule is scoped to html.fx-diwali, which js/festive.js adds only
   while festive mode is on. With it off, this file has no effect.
   ===================================================================== */
.fx-diwali{
  --fx-gold:#d4a017;
  --fx-gold-warm:#f4c95d;
  --fx-maroon:#650d1b;
  --fx-cream:#fff8eb;
  --fx-bh:0px;               /* height reserved for the greeting banner */
}
.fx-diwali.fx-banner{--fx-bh:50px}

/* ---------- Diya ---------- */
.fx-diwali .fx-diya{display:inline-block;position:relative;width:var(--s,40px);height:var(--s,40px);flex:none;pointer-events:none}
.fx-diwali .fx-diya svg{display:block;width:100%;height:100%;overflow:visible}
.fx-diwali .fx-diya::after{content:"";position:absolute;left:-30%;right:-30%;bottom:-12%;height:38%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,176,60,.38),rgba(255,176,60,0));z-index:-1}
.fx-diwali .fx-flame{transform-box:fill-box;transform-origin:50% 100%}
.fx-diwali .fx-diya-glow{transform-box:fill-box;transform-origin:50% 50%}
.fx-diwali .fx-diya-group{position:absolute;z-index:2;display:flex;align-items:flex-end;gap:6px;pointer-events:none}

/* ---------- Sparkles ---------- */
.fx-diwali .fx-sparkle{position:absolute;z-index:0;width:var(--s,12px);height:var(--s,12px);background:var(--fx-sparkle) center/contain no-repeat;opacity:.8;pointer-events:none;filter:drop-shadow(0 0 4px rgba(244,201,93,.7))}

/* ---------- Garlands ---------- */
.fx-diwali .fx-toran{position:absolute;left:28px;right:28px;top:100%;height:30px;background:var(--fx-garland) center top/96px 30px repeat-x;pointer-events:none;transition:opacity .3s ease}
.fx-diwali .fx-toran-edge{left:0;right:0;top:0;z-index:1}
.fx-diwali .fx-ladi{position:absolute;top:0;z-index:1;width:22px;height:240px;background:var(--fx-ladi) center top/22px 40px repeat-y;pointer-events:none}
.fx-diwali .fx-ladi::after{content:"";position:absolute;left:5px;bottom:-14px;width:12px;height:16px;background:radial-gradient(circle at 50% 30%,#ffe08a,#d4a017 60%,#a87b12);border-radius:50% 50% 45% 45%/40% 40% 60% 60%}
.fx-diwali .fx-ladi-left{left:14px}
.fx-diwali .fx-ladi-right{right:14px;height:200px}

/* ---------- Animations (motion-safe only) ---------- */
@media (prefers-reduced-motion:no-preference){
  .fx-diwali .fx-flame{animation:fxFlicker 1.8s ease-in-out infinite;animation-delay:var(--d,0s)}
  .fx-diwali .fx-diya-glow{animation:fxGlow 2.6s ease-in-out infinite alternate;animation-delay:var(--d,0s)}
  .fx-diwali .fx-sparkle{animation:fxTwinkle 4s ease-in-out infinite;animation-delay:var(--d,0s)}
  .fx-diwali .fx-ladi{animation:fxSway 6s ease-in-out infinite;transform-origin:50% 0}
  .fx-diwali .fx-ladi-right{animation-delay:-3s}
  .fx-diwali .fx-banner-bar::after{animation:fxShimmer 7s ease-in-out infinite}
}
@keyframes fxFlicker{
  0%,100%{transform:scale(1,1) skewX(0)}
  20%{transform:scale(.95,1.06) skewX(2deg)}
  45%{transform:scale(1.03,.96) skewX(-1.5deg)}
  70%{transform:scale(.97,1.04) skewX(1deg)}
}
@keyframes fxGlow{from{opacity:.65;transform:scale(.94)}to{opacity:1;transform:scale(1.05)}}
@keyframes fxTwinkle{0%,100%{opacity:.25;transform:scale(.6) rotate(0)}50%{opacity:.95;transform:scale(1) rotate(45deg)}}
@keyframes fxSway{0%,100%{transform:rotate(1.2deg)}50%{transform:rotate(-1.2deg)}}
@keyframes fxShimmer{0%,62%{transform:translateX(-120%)}100%{transform:translateX(320%)}}

/* ---------- Greeting banner (inside the fixed header) ---------- */
.fx-diwali .fx-banner-bar{position:relative;overflow:hidden;width:100%;display:flex;align-items:center;gap:10px;min-height:42px;max-height:60px;margin-bottom:8px;padding:5px 6px 5px 12px;border-radius:14px;background:linear-gradient(100deg,var(--fx-maroon) 0%,#9a1427 48%,var(--red-dark) 100%);border:1px solid rgba(244,201,93,.55);box-shadow:0 8px 24px rgba(101,13,27,.22);color:var(--fx-cream);transition:max-height .3s ease,opacity .25s ease,margin .3s ease,padding .3s ease}
.fx-diwali .fx-banner-bar::after{content:"";position:absolute;top:0;bottom:0;left:0;width:30%;background:linear-gradient(100deg,transparent,rgba(244,201,93,.18),transparent);transform:translateX(-120%);pointer-events:none}
.fx-diwali .fx-banner-bar p{flex:1;min-width:0;margin:0;font-size:.88rem;line-height:1.35;text-align:center}
.fx-diwali .fx-banner-bar strong{color:var(--fx-gold-warm);font-weight:700}
.fx-diwali .fx-banner-sub{color:rgba(255,248,235,.92)}
.fx-diwali .fx-short{display:none}
.fx-diwali .fx-banner-close{flex:none;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--fx-cream);font-size:.85rem;transition:background-color .2s ease}
.fx-diwali .fx-banner-close:hover{background:rgba(255,255,255,.14)}
.fx-diwali .fx-banner-close:focus-visible{outline:2px solid var(--fx-gold-warm);outline-offset:2px}
/* Collapse banner and header garland once the page scrolls, to keep the header slim. */
.fx-diwali .ft-nav.is-scrolled .fx-banner-bar{min-height:0;max-height:0;opacity:0;margin:0;padding-top:0;padding-bottom:0;border-width:0}
.fx-diwali .ft-nav.is-scrolled .fx-toran{opacity:0}

/* Reserve banner height so page content never sits under it. */
.fx-diwali .ft-hero{padding-top:calc(8.75rem + var(--fx-bh))}
.fx-diwali .page-hero{padding-top:calc(9rem + var(--fx-bh))}
@media (max-width:1199.98px){.fx-diwali .ft-hero{padding-top:calc(8rem + var(--fx-bh))}}
@media (max-width:991.98px){.fx-diwali .ft-hero{padding-top:calc(7.5rem + var(--fx-bh))}}
@media (max-width:767.98px){.fx-diwali .fx-banner-sub{display:none}}
@media (max-width:575.98px){
  .fx-diwali.fx-banner{--fx-bh:48px}
  .fx-diwali .ft-hero{padding-top:calc(6.5rem + var(--fx-bh))}
  .fx-diwali .page-hero{padding-top:calc(8rem + var(--fx-bh))}
  .fx-diwali .fx-long{display:none}
  .fx-diwali .fx-short{display:inline}
  .fx-diwali .fx-banner-bar p{font-size:.82rem}
}

/* ---------- Navbar ---------- */
.fx-diwali .ft-nav > .container{flex-wrap:wrap}
.fx-diwali .ft-nav-shell{position:relative;border-color:rgba(212,160,23,.32)}
.fx-diwali .ft-nav .navbar-brand{display:inline-flex;align-items:center;gap:4px}
.fx-diwali .fx-nav-diya{margin-top:-10px}
@media (max-width:991.98px){.fx-diwali .fx-toran{left:18px;right:18px;height:24px;background-size:77px 24px}}

/* ---------- Home hero ---------- */
.fx-diwali .fx-hero-glow{position:absolute;left:-10%;bottom:-20%;width:55%;height:60%;z-index:0;pointer-events:none;background:radial-gradient(closest-side,rgba(244,201,93,.22),rgba(255,176,60,.08) 55%,transparent)}
.fx-diwali .ft-hero .fx-corner-left{left:clamp(10px,2.4vw,48px);bottom:18px}
.fx-diwali .ft-hero .fx-corner-right{right:clamp(16px,8vw,150px);bottom:26px}
.fx-diwali .ft-hero .fx-corner-right .fx-diya::after{background:radial-gradient(closest-side,rgba(255,214,130,.5),rgba(255,214,130,0))}
.fx-diwali .fx-fireworks{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.fx-diwali .fx-fireworks.fx-fw-panel{inset:24px 0;height:auto;border-radius:32px}
.fx-diwali .ft-hero-visual .fx-sparkle{z-index:1}
@media (max-width:1199.98px){.fx-diwali .fx-ladi{display:none}}
@media (max-width:991.98px){
  .fx-diwali .ft-hero .fx-corner-right{right:16px;bottom:14px}
  .fx-diwali .ft-hero .fx-corner-left{bottom:12px}
}
@media (max-width:575.98px){
  .fx-diwali .fx-fireworks.fx-fw-panel{inset:20px 0;border-radius:24px}
  .fx-diwali .ft-hero .fx-diya{--s:28px!important}
  .fx-diwali .ft-hero .fx-diya.fx-sm{--s:22px!important}
}

/* ---------- Inner page heroes ---------- */
.fx-diwali .page-hero{position:relative;overflow:hidden;isolation:isolate}
.fx-diwali .page-hero .fx-hero-glow{left:auto;right:-8%;bottom:auto;top:-10%;width:50%;height:90%;z-index:-1}
.fx-diwali .page-hero .fx-sparkle{z-index:-1}
.fx-diwali .page-hero .fx-corner-right{right:clamp(16px,6vw,120px);bottom:18px}
.fx-diwali .page-hero .fx-ladi-right{height:160px}
@media (max-width:575.98px){
  .fx-diwali .page-hero .fx-corner-right{right:12px;bottom:10px}
  .fx-diwali .page-hero .fx-diya{--s:26px!important}
  .fx-diwali .page-hero .fx-diya.fx-sm{--s:20px!important}
}

/* ---------- Section accents ---------- */
/* Feature cards (Home, Features, Solutions, About, Pricing) */
.fx-diwali .feature-card{position:relative}
.fx-diwali .feature-card::after{content:"";position:absolute;top:18px;right:18px;width:16px;height:16px;background:var(--fx-sparkle) center/contain no-repeat;opacity:.55;transition:opacity .3s ease,transform .5s ease;pointer-events:none}
.fx-diwali .feature-card:hover{border-color:rgba(212,160,23,.45)}
.fx-diwali .feature-card:hover::after{opacity:1;transform:rotate(45deg) scale(1.2)}
/* Pricing: golden top edge and warm glow */
.fx-diwali .fx-page-pricing .feature-card{overflow:hidden}
.fx-diwali .fx-page-pricing .feature-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--fx-gold),var(--fx-gold-warm),var(--fx-gold))}
.fx-diwali .fx-page-pricing .feature-card:hover{box-shadow:0 22px 45px rgba(212,160,23,.18)}
/* How it works: gold ring on step numbers */
.fx-diwali .step-num{box-shadow:0 0 0 4px rgba(244,201,93,.35)}
/* Coloured bands (Home, About, Solutions, Contact): rangoli watermark + garland */
.fx-diwali .section-red,.fx-diwali .section-green,.fx-diwali .promo-card{position:relative;overflow:hidden;isolation:isolate}
.fx-diwali .section-red::before,.fx-diwali .section-green::before,.fx-diwali .promo-card::before{content:"";position:absolute;right:-110px;bottom:-120px;width:360px;height:360px;background:var(--fx-rangoli) center/contain no-repeat;opacity:.16;z-index:-1;pointer-events:none}
.fx-diwali .section-red::after,.fx-diwali .section-green::after{content:"";position:absolute;left:-70px;top:40px;width:200px;height:200px;background:var(--fx-rangoli) center/contain no-repeat;opacity:.1;z-index:-1;pointer-events:none}
.fx-diwali .promo-card::before{width:280px;height:280px;right:-90px;bottom:-90px}
/* Closing call-to-action */
.fx-diwali .cta{position:relative;overflow:hidden}
.fx-diwali .cta .fx-cta-left{left:clamp(12px,8vw,160px);bottom:28px}
.fx-diwali .cta .fx-cta-right{right:clamp(12px,8vw,160px);bottom:28px}
@media (max-width:575.98px){
  .fx-diwali .cta .fx-diya{--s:26px!important}
  .fx-diwali .cta .fx-diya.fx-sm{--s:20px!important}
  .fx-diwali .cta .fx-cta-left,.fx-diwali .cta .fx-cta-right{bottom:12px}
}

/* ---------- Footer ---------- */
.fx-diwali .footer{position:relative}
.fx-diwali .footer .fx-toran-edge{height:30px}
.fx-diwali .footer .fx-inline{vertical-align:-6px;margin-right:6px}
.fx-diwali .footer .fx-inline::after{display:none}
