/* Diwali offer — homepage feature section */

@property --diwali-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.diwali {
  --gold: #ffc94d;
  --gold-light: #fff1c2;
  --gold-deep: #e8930c;
  --marigold: var(--orange-2);
  --cream: #fff;
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 2.2rem;
  color: #fff;
  background:
    radial-gradient(55% 70% at 88% 10%, rgba(243, 112, 33, 0.3), transparent 60%),
    radial-gradient(45% 60% at 0% 100%, rgba(61, 220, 151, 0.22), transparent 60%),
    radial-gradient(35% 45% at 30% 30%, rgba(255, 201, 77, 0.08), transparent 70%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, var(--deep) 100%);
  isolation: isolate;
}
.diwali::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(120deg, #000 10%, transparent 75%);
}
.diwali::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-dark);
}

/* Marigold toran with mango leaves */
.diwali-toran {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, #ffe27a 0 4px, var(--marigold) 5px 10px, #e8590c 11px, transparent 12px) 0 0 / 26px 28px repeat-x,
    linear-gradient(180deg, var(--navy-2), var(--navy));
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.diwali-toran::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 22px;
  background:
    radial-gradient(ellipse 7px 18px at 50% 0, #2f8f3a 90%, transparent 100%) 13px 0 / 52px 22px repeat-x,
    radial-gradient(circle at 50% 4px, #ffe27a 0 3px, var(--marigold) 4px 7px, transparent 8px) 39px 0 / 52px 22px repeat-x;
}

/* Hanging akash kandil lanterns */
.kandil {
  display: none;
  position: absolute;
  top: 28px;
  z-index: 1;
  width: 2px;
  height: 70px;
  background: linear-gradient(var(--gold), rgba(245, 192, 74, 0.4));
  transform-origin: top center;
  animation: diwali-swing 4s ease-in-out infinite alternate;
}
.kandil-left { left: 2.4%; }
.kandil-right { right: 2.4%; height: 110px; animation-delay: -2s; }
@media (min-width: 1320px) { .kandil { display: block; } }
.kandil::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  clip-path: polygon(50% 0, 63% 30%, 100% 35%, 72% 58%, 82% 100%, 50% 78%, 18% 100%, 28% 58%, 0 35%, 37% 30%);
  background: radial-gradient(circle at 50% 55%, var(--gold-light) 0 12%, var(--gold) 40%, var(--orange) 85%);
  filter: drop-shadow(0 0 18px rgba(255, 159, 28, 0.75));
}
.kandil::after {
  content: "";
  position: absolute;
  top: calc(100% + 50px);
  left: 50%;
  width: 8px;
  height: 26px;
  margin-left: -4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 2px);
  border-radius: 0 0 4px 4px;
}

/* Rangoli mandala backdrop */
.diwali-mandala {
  position: absolute;
  z-index: -1;
  right: -180px;
  top: 50%;
  width: 720px;
  height: 720px;
  margin-top: -360px;
  opacity: 0.12;
  animation: diwali-spin 120s linear infinite;
  pointer-events: none;
}
.diwali-mandala svg { width: 100%; height: 100%; }

.diwali-sparkles i {
  position: absolute;
  z-index: 0;
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: diwali-twinkle 2.8s ease-in-out infinite;
  pointer-events: none;
}
.diwali-sparkles i:nth-child(1) { top: 18%; left: 14%; }
.diwali-sparkles i:nth-child(2) { top: 26%; left: 46%; width: 14px; height: 14px; animation-delay: -0.9s; }
.diwali-sparkles i:nth-child(3) { top: 70%; left: 40%; width: 7px; height: 7px; animation-delay: -1.7s; }
.diwali-sparkles i:nth-child(4) { top: 14%; right: 18%; animation-delay: -0.4s; }
.diwali-sparkles i:nth-child(5) { top: 84%; left: 8%; width: 12px; height: 12px; animation-delay: -2.2s; }
.diwali-sparkles i:nth-child(6) { top: 58%; right: 4%; width: 8px; height: 8px; animation-delay: -1.2s; }
.diwali-sparkles i:nth-child(7) { top: 40%; left: 3%; width: 6px; height: 6px; animation-delay: -0.6s; }
.diwali-sparkles i:nth-child(8) { top: 90%; right: 30%; width: 9px; height: 9px; animation-delay: -1.5s; }

.diwali-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.diwali-grid > * { min-width: 0; }
.diwali-card { width: 100%; max-width: 30rem; justify-self: center; }

/* Copy column */
.diwali-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.diwali-kicker::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange-2);
  box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.25);
  animation: diwali-pulse 1.8s ease-in-out infinite;
}
html:is([lang="hi"], [lang="mr"]) .diwali-kicker { letter-spacing: 0.02em; text-transform: none; font-size: 0.95rem; }

.diwali-greeting {
  margin: 0 0 0.2rem;
  font-family: "Yatra One", "Noto Sans Devanagari", serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1.15;
  background: linear-gradient(180deg, var(--gold-light) 10%, var(--gold) 55%, var(--gold-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 201, 77, 0.25));
}

.diwali h2 {
  max-width: 34rem;
  margin: 0.4rem 0 1.2rem;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}
.diwali-lede {
  max-width: 36rem;
  margin: 0;
  color: var(--on-dark);
  font-size: 1.12rem;
  line-height: 1.7;
}

.diwali-perks {
  display: grid;
  gap: 1rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}
.diwali-perks li {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.diwali-perks li:hover { border-color: rgba(243, 112, 33, 0.6); transform: translateY(-2px); }
.diwali-perks strong { display: block; color: #fff; font-size: 1.02rem; line-height: 1.3; }
.diwali-perks small { display: block; margin-top: 0.3rem; color: var(--on-dark); font-size: 0.88rem; line-height: 1.45; }
.diwali-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(243, 112, 33, 0.16);
  border: 1px solid rgba(243, 112, 33, 0.4);
}
.diwali-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--orange-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.diwali .btn-row { margin-top: 2.6rem; }
.diwali-btn {
  background: var(--orange);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(243, 112, 33, 0.32);
  position: relative;
  overflow: hidden;
}
.diwali-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: diwali-shine 3.5s ease-in-out infinite;
}
.diwali-btn { min-height: 56px; padding-inline: 2rem; font-size: 1.05rem; }
.diwali-btn:hover { background: #e2611a; }
/* Price card, in the same glass style as the hero subsidy panel */
.diwali-card {
  position: relative;
  padding: 1px;
  border-radius: 16px;
  background: conic-gradient(from var(--diwali-angle), rgba(255, 255, 255, 0.16) 0deg, var(--gold) 40deg, var(--orange) 80deg, rgba(255, 255, 255, 0.16) 140deg, rgba(255, 255, 255, 0.16) 360deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: diwali-border 8s linear infinite;
}
.diwali-card-inner {
  position: relative;
  overflow: hidden;
  padding: 2.6rem 2rem 2rem;
  border-radius: 15px;
  text-align: center;
  background:
    radial-gradient(80% 45% at 50% 0, rgba(243, 112, 33, 0.18), transparent 70%),
    rgba(18, 32, 26, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.diwali-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold) 50%, var(--orange));
}
.diwali-ribbon {
  margin: 0 0 1rem;
  color: var(--orange-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html:is([lang="hi"], [lang="mr"]) .diwali-ribbon { letter-spacing: 0.02em; text-transform: none; font-size: 0.9rem; }
.diwali-system { margin: 0; color: var(--on-dark); font-weight: 600; font-size: 1.05rem; }
.diwali-price {
  margin: 0.5rem 0 0.5rem;
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #fff 45%, var(--gold-light) 75%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.diwali-price-note { margin: 0 0 1.8rem; color: var(--on-dark); font-weight: 600; font-size: 0.95rem; }

.diwali-net {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 1.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 201, 77, 0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 201, 77, 0.14), rgba(243, 112, 33, 0.1));
}
.diwali-net span { color: var(--on-dark); font-size: 0.9rem; font-weight: 500; }
.diwali-net strong { color: var(--gold-light); font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.02em; }

.diwali-count p {
  margin: 0 0 0.7rem;
  color: var(--on-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
html:is([lang="hi"], [lang="mr"]) .diwali-count p { letter-spacing: 0.02em; text-transform: none; font-size: 0.9rem; }
.diwali-count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.diwali-count-grid span {
  padding: 0.55rem 0.2rem 0.45rem;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}
.diwali-count-grid b { display: block; color: #fff; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.diwali-count-grid small { display: block; color: var(--on-dark); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

.diwali-diyas { display: flex; justify-content: center; gap: 1.4rem; margin: 1.8rem 0 1rem; padding-top: 1.2rem; }
.diya {
  position: relative;
  width: 36px;
  height: 15px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #e0782a, #8b3a0f);
  box-shadow: inset 0 3px 0 var(--gold);
}
.diya::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: 10px;
  height: 20px;
  margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 75%, #fffbe0 0 20%, #ffd23f 40%, #ff7a00 75%, transparent 100%);
  box-shadow: 0 0 18px 6px rgba(255, 170, 40, 0.45);
  transform-origin: bottom center;
  animation: diwali-flicker 1.4s ease-in-out infinite alternate;
}
.diya:nth-child(2)::before { animation-delay: -0.4s; }
.diya:nth-child(3)::before { animation-delay: -0.9s; }
.diya:nth-child(4)::before { animation-delay: -0.2s; }
.diya:nth-child(5)::before { animation-delay: -1.1s; }

.diwali-blessing {
  margin: 0;
  font-family: "Yatra One", "Noto Sans Devanagari", serif;
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1.5;
  text-wrap: balance;
}

.diwali-fine {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  line-height: 1.5;
}

@keyframes diwali-swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes diwali-spin { to { transform: rotate(360deg); } }
@keyframes diwali-twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.6); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes diwali-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 140, 66, 0); } }
@keyframes diwali-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes diwali-border { to { --diwali-angle: 360deg; } }
@keyframes diwali-flicker {
  0% { transform: scale(1, 1) rotate(-2deg); opacity: 0.95; }
  100% { transform: scale(0.92, 1.12) rotate(2deg); opacity: 1; }
}

@media (min-width: 640px) {
  .diwali-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diwali-perks li { flex-direction: column; align-items: flex-start; padding: 1.4rem 1.3rem; }
}
@media (min-width: 980px) {
  .diwali { padding: 8rem 0 3.5rem; }
  .diwali-grid { grid-template-columns: 1.25fr 0.75fr; gap: 5rem; }
  .diwali-card { justify-self: end; width: 100%; max-width: 27rem; }
}
@media (max-width: 720px) {
  .diwali { padding-top: 4.5rem; }
  .diwali-mandala { width: 480px; height: 480px; margin-top: -240px; right: -240px; }
  .diwali-card-inner { padding: 1.7rem 1.1rem 1.2rem; }
  .diwali .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .diwali *, .diwali *::before, .diwali *::after, .diwali-card { animation: none !important; }
}
@media print {
  .diwali { display: none !important; }
}

.diwali-price .diwali-gst { font-size: 0.36em; font-weight: 600; letter-spacing: 0; margin-left: 0.35em; opacity: 0.85; vertical-align: 0.35em; }
