/* ==========================================================================
   NUTRIVA — festive.css
   Seasonal layer on top of style.css. season.js sets <html data-season>;
   everything festive is scoped to [data-season="festive"], so the regular
   (post-Diwali) store is exactly style.css + responsive.css.
   ========================================================================== */

/* ------------------------------------------------ season-only markup toggle */
html:not([data-season="festive"]) [data-season-only="festive"],
html[data-season="festive"] [data-season-only="regular"]{display:none!important}

/* ------------------------------------------------------------ festive tokens */
html[data-season="festive"]{
  --primary:#4A1621;          /* deep maroon */
  --accent:#D98A1F;           /* marigold */
  --gold:#E8B04B;
  --background:#FBF5EA;
  --sand:#F6E8D3;
  --primary-soft:#F4E4DF;
  --accent-soft:#FCEBCF;
  --border:#EBDAC4;
  --ring:0 0 0 3px rgba(217,138,31,.34);
  --shadow-3:0 18px 50px rgba(74,22,33,.2);
}

/* marigold garland: a strip of flowers with leaves, repeated horizontally */
html[data-season="festive"]{
  --toran:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='26' viewBox='0 0 56 26'%3E%3Cpath d='M0 3 Q14 12 28 3 T56 3' fill='none' stroke='%237A2E1E' stroke-width='1.4'/%3E%3Cpath d='M20 9 q-6 7 0 13 q6-6 0-13z' fill='%234F7A3A'/%3E%3Ccircle cx='8' cy='8' r='6' fill='%23F29A1F'/%3E%3Ccircle cx='8' cy='8' r='3.2' fill='%23F7C04A'/%3E%3Ccircle cx='36' cy='8' r='6' fill='%23E5541F'/%3E%3Ccircle cx='36' cy='8' r='3.2' fill='%23F29A1F'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- chrome */
html[data-season="festive"] .announce{background:linear-gradient(90deg,#3A0F18,#5A1B28 50%,#3A0F18)}
html[data-season="festive"] .announce__item b{color:var(--gold)}
html[data-season="festive"] .header{box-shadow:inset 0 -1px 0 var(--border)}
html[data-season="festive"] .logo__mark{background:linear-gradient(135deg,#5A1B28,#3A0F18);box-shadow:inset 0 0 0 1.5px var(--gold)}
html[data-season="festive"] .footer{background:linear-gradient(180deg,#3F121C,#2E0B13)}
.badge--festive{background:linear-gradient(135deg,#D98A1F,#B8561B);color:#fff}

/* ------------------------------------------------------------------ hero */
.hero__toran{display:none}
html[data-season="festive"] .hero{background:
  radial-gradient(900px 520px at 78% 30%,rgba(255,196,92,.26) 0%,rgba(255,196,92,0) 60%),
  radial-gradient(1200px 620px at 12% -10%,#FFF8EC 0%,rgba(255,248,236,0) 62%),
  linear-gradient(180deg,#FCF3E4 0%,var(--background) 55%,var(--sand) 100%)}
html[data-season="festive"] .hero__toran{
  display:block;position:absolute;inset:0 0 auto;height:26px;z-index:2;pointer-events:none;
  background:var(--toran) repeat-x 0 0/56px 26px;
}
html[data-season="festive"] .hero__grid{padding-top:96px}
html[data-season="festive"] .hero h1{font-size:clamp(2.5rem,5vw,4.4rem)}
html[data-season="festive"] .hero h1 em{color:#B8561B}
html[data-season="festive"] .hero__media-frame{box-shadow:0 0 0 6px #FCEBCF,0 0 0 7px var(--gold),var(--shadow-3)}
html[data-season="festive"] .hero__pill{background:linear-gradient(135deg,#5A1B28,#3A0F18);color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold),var(--shadow-2)}
.hero__diyas{display:none}
html[data-season="festive"] .hero__diyas{
  display:block;position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);z-index:3;
  width:78%;height:auto;filter:drop-shadow(0 8px 14px rgba(74,22,33,.25));
}
html[data-season="festive"] .hero__diyas{animation:diyaGlow 3.2s ease-in-out infinite}
@keyframes diyaGlow{0%,100%{filter:drop-shadow(0 8px 14px rgba(74,22,33,.25)) brightness(1)}50%{filter:drop-shadow(0 8px 20px rgba(242,154,31,.45)) brightness(1.06)}}

/* ----------------------------------------------------------------- strip */
html[data-season="festive"] .strip{background:linear-gradient(90deg,#3A0F18,#5A1B28 50%,#3A0F18);color:#F6E3C4}
html[data-season="festive"] .strip span::after{width:7px;height:7px;border-radius:1px;background:var(--gold);transform:rotate(45deg)}

/* ------------------------------------------------------- the Diwali edit */
.diwali-edit{position:relative}
html[data-season="festive"] .diwali-edit::before{
  content:"";position:absolute;inset:0 0 auto;height:26px;pointer-events:none;opacity:.9;
  background:var(--toran) repeat-x 0 0/56px 26px;
}

.cutoffs{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:34px}
.cutoff{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:var(--r-md);
  background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-1)}
.cutoff__date{flex:none;width:62px;height:66px;border-radius:12px;display:grid;place-content:center;text-align:center;
  background:linear-gradient(160deg,#5A1B28,#3A0F18);color:#F6E3C4;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;
  box-shadow:inset 0 0 0 1px rgba(232,176,75,.55)}
.cutoff__date b{display:block;font-family:var(--serif);font-size:1.6rem;line-height:1;color:var(--gold);letter-spacing:0;margin-bottom:3px}
.cutoff__body{display:flex;flex-direction:column;gap:3px;min-width:0}
.cutoff__body strong{color:var(--primary);font-size:.95rem}
.cutoff__body span{font-size:.8rem;color:var(--muted);line-height:1.45}
.cutoff.is-past{opacity:.55}
.cutoff.is-past .cutoff__date{background:var(--muted);box-shadow:none}
.cutoff.is-past .cutoff__date b{color:#fff}

.diwali-corp{margin-top:36px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  padding:28px 32px;border-radius:var(--r-lg);color:#F6E3C4;position:relative;overflow:hidden;
  background:radial-gradient(420px 220px at 92% 0%,rgba(232,176,75,.35),transparent 70%),linear-gradient(120deg,#3A0F18,#5A1B28)}
.diwali-corp h3{color:#FFF6E6;font-size:1.4rem;margin-bottom:6px}
.diwali-corp p{color:rgba(246,227,196,.8);font-size:.92rem}

/* ------------------------------------------------------ sale + offers */
html[data-season="festive"] .flash{background:
  radial-gradient(520px 300px at 88% 110%,rgba(242,154,31,.32),transparent 70%),
  linear-gradient(120deg,#3A0F18 0%,#5A1B28 55%,#7A2E1E 100%)}
html[data-season="festive"] .flash::before{background:radial-gradient(circle,rgba(232,176,75,.4),transparent 68%)}
html[data-season="festive"] .flash::after{
  content:"";position:absolute;inset:0 0 auto;height:26px;background:var(--toran) repeat-x 0 0/56px 26px;opacity:.95;pointer-events:none
}
html[data-season="festive"] .flash .eyebrow{color:var(--gold)!important}
html[data-season="festive"] .count-box{border-color:rgba(232,176,75,.4)}
html[data-season="festive"] .count-box b{color:var(--gold)}
.offer-card--festive{border-style:solid;border-color:var(--gold);background:linear-gradient(160deg,#FFF8EC,#FCEBCF)}
.offer-card--festive code{background:linear-gradient(135deg,#5A1B28,#3A0F18);color:var(--gold)}

/* ------------------------------------------------------ section accents */
html[data-season="festive"] .section--ink{background:linear-gradient(180deg,#4A1621,#3A0F18)}
html[data-season="festive"] .newsletter{box-shadow:inset 0 0 0 1px var(--gold)}

/* -------------------------------------------------------------- responsive */
@media (max-width:1024px){
  .cutoffs{grid-template-columns:1fr}
  html[data-season="festive"] .hero__grid{padding-top:72px}
}
@media (max-width:640px){
  .diwali-corp{padding:24px 22px}
  html[data-season="festive"] .hero__diyas{width:92%}
}
