/* ==========================================================================
   MS INTERIOR & DECOR'S — CHIDAMBARAM
   Diwali Festive Luxury Theme (Shubh Deepavali Celebration Edition)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DIWALI THEME DESIGN TOKENS
   -------------------------------------------------------------------------- */
[data-theme="diwali"],
body[data-theme="diwali"],
html[data-theme="diwali"] {
  --bg-primary: #090312;
  --bg-secondary: #130722;
  --bg-tertiary: #1c0c32;
  --bg-card: rgba(22, 9, 38, 0.88);
  --bg-card-hover: rgba(32, 14, 54, 0.96);
  --bg-glass: rgba(12, 4, 23, 0.94);

  --text-primary: #fff9ee;
  --text-secondary: #ebd9c0;
  --text-muted: #ab95b8;
  --text-inverse: #090312;

  /* Festive Warm Gold, Saffron & Radiant Amber */
  --accent-gold: #ffbe3b;
  --accent-gold-light: #ffe599;
  --accent-gold-dark: #b87d14;
  --accent-diya-amber: #ff7b00;
  --accent-diya-flame: #ff4800;
  --accent-diya-glow: rgba(255, 140, 0, 0.5);
  --accent-marigold: #ff9e00;
  --accent-crimson: #d90429;
  --accent-plum-deep: #0e051a;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 190, 59, 0.32);
  --border-focus: rgba(255, 190, 59, 0.85);
  --border-hairline: rgba(235, 217, 192, 0.16);

  /* Elevation & Festive Diya Glow Shadows */
  --shadow-sm: 0 4px 18px rgba(9, 3, 18, 0.65);
  --shadow-md: 0 8px 34px rgba(9, 3, 18, 0.85);
  --shadow-lg: 0 16px 52px rgba(6, 2, 12, 0.95);
  --shadow-glow: 0 0 28px rgba(255, 170, 40, 0.45);
  --shadow-navy-glow: 0 10px 42px rgba(255, 107, 8, 0.35);
  --shadow-diya: 0 0 35px rgba(255, 140, 0, 0.6), 0 0 70px rgba(255, 90, 0, 0.3);
}

/* --------------------------------------------------------------------------
   2. TOP FESTIVE ANNOUNCEMENT BANNER
   -------------------------------------------------------------------------- */
.site-header:has(.diwali-banner) {
  height: auto !important;
}

.site-header .header-container {
  height: var(--header-height);
}

.diwali-banner {
  background: linear-gradient(90deg, #3d000f 0%, #7b1113 25%, #a44200 50%, #7b1113 75%, #3d000f 100%);
  background-size: 200% auto;
  animation: diwaliBannerShimmer 8s linear infinite;
  color: #fff9ee;
  border-bottom: 1px solid rgba(255, 215, 0, 0.45);
  position: relative;
  z-index: 1005;
  font-size: 0.82rem;
  box-shadow: 0 2px 14px rgba(255, 120, 0, 0.28);
}

@keyframes diwaliBannerShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.diwali-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1.25rem;
  max-width: var(--container-max);
  margin-inline: auto;
}

.diwali-banner-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.diwali-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #0d0416;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.diwali-banner-text {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.diwali-banner-text strong {
  color: #ffd700;
  font-weight: 700;
}

.diwali-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.diwali-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.5);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.diwali-banner-btn:hover {
  background: #ffd700;
  color: #12041e;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   3. DECORATIVE MARIGOLD & MANGO LEAF TORAN (FESTIVE GARLAND)
   -------------------------------------------------------------------------- */
.diwali-toran-garland {
  display: none;
  width: 100%;
  height: 18px;
  background-image: radial-gradient(circle at 10px 4px, #ff9e00 6px, transparent 7px),
                    radial-gradient(circle at 24px 6px, #ffd700 4px, transparent 5px),
                    radial-gradient(circle at 38px 4px, #ff4800 6px, transparent 7px),
                    radial-gradient(circle at 52px 6px, #ffd700 4px, transparent 5px);
  background-size: 56px 18px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 2px 6px rgba(255, 120, 0, 0.4));
  opacity: 0.9;
  pointer-events: none;
}

[data-theme="diwali"] .diwali-toran-garland {
  display: block;
}

/* --------------------------------------------------------------------------
   4. FESTIVE THEME TOGGLE BUTTON IN HEADER
   -------------------------------------------------------------------------- */
.btn-diwali-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.22), rgba(255, 215, 0, 0.18));
  border: 1px solid rgba(255, 190, 59, 0.5);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  color: #fff4d9;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.btn-diwali-toggle:hover {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.4), rgba(255, 215, 0, 0.3));
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 180, 0, 0.45);
  transform: translateY(-1px);
}

.diwali-toggle-diya {
  display: inline-block;
  font-size: 1rem;
  animation: diyaFlameFlicker 1.8s ease-in-out infinite alternate;
}

@keyframes diyaFlameFlicker {
  0% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 4px rgba(255, 160, 0, 0.7)); }
  50% { transform: scale(1.12) rotate(3deg); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)); }
  100% { transform: scale(0.96) rotate(-1deg); filter: drop-shadow(0 0 6px rgba(255, 100, 0, 0.8)); }
}

/* --------------------------------------------------------------------------
   5. DIWALI SPECIAL MAKEOVER SECTION
   -------------------------------------------------------------------------- */
.diwali-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 20%, rgba(138, 30, 60, 0.22) 0%, rgba(9, 3, 18, 0.98) 75%),
              linear-gradient(180deg, var(--bg-primary) 0%, #150824 50%, var(--bg-primary) 100%);
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.diwali-rangoli-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  max-width: 90vw;
  max-height: 90vw;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%23ffd700' stroke-width='1.5'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23ffd700' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='%23ffd700' stroke-width='1.5'/%3E%3Ccircle cx='100' cy='100' r='20' fill='none' stroke='%23ffd700' stroke-width='1'/%3E%3Cpath d='M100 0 L100 200 M0 100 L200 100 M29.29 29.29 L170.71 170.71 M29.29 170.71 L170.71 29.29' stroke='%23ffd700' stroke-width='0.8'/%3E%3Cpolygon points='100,20 120,60 160,60 130,90 145,130 100,105 55,130 70,90 40,60 80,60' fill='none' stroke='%23ffd700' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  animation: rangoliSlowSpin 90s linear infinite;
}

@keyframes rangoliSlowSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.diwali-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
}

.diwali-festive-crest {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 140, 0, 0.12);
  border: 1px solid rgba(255, 190, 59, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold-light);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

.diwali-title {
  font-family: var(--font-serif-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.diwali-title span {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff4800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.diwali-subtitle {
  font-family: var(--font-serif-editorial);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* Diwali 3-Card Grid */
.diwali-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.diwali-offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease-editorial);
  box-shadow: var(--shadow-md);
}

.diwali-offer-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-diya);
}

.diwali-card-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ff4800, #d90429);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.45);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.diwali-card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.diwali-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-editorial);
}

.diwali-offer-card:hover .diwali-card-img {
  transform: scale(1.07);
}

.diwali-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 4, 25, 0.95) 100%);
}

.diwali-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.diwali-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold-light);
  margin-bottom: 0.45rem;
}

.diwali-card-title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.diwali-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.diwali-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.diwali-benefits-list li {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.diwali-benefit-bullet {
  color: var(--accent-gold);
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.diwali-card-festive-perk {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.14), rgba(255, 215, 0, 0.1));
  border: 1px dashed rgba(255, 190, 59, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: #ffe6aa;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.diwali-card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-diwali-claim {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff8c00 0%, #ff5400 100%);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.4);
}

.btn-diwali-claim:hover {
  background: linear-gradient(135deg, #ffa01c 0%, #ff6818 100%);
  box-shadow: 0 6px 24px rgba(255, 140, 0, 0.65);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-diwali-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #25d366;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-diwali-wa:hover {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE DIYA LIGHTING CEREMONY WIDGET
   -------------------------------------------------------------------------- */
.diwali-interactive-box {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, rgba(35, 12, 58, 0.85), rgba(18, 5, 32, 0.95));
  border: 1px solid rgba(255, 190, 59, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin-inline: auto;
}

.diwali-lamp-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 190, 59, 0.3);
  border-radius: var(--radius-lg);
  transition: all 0.35s ease;
  user-select: none;
}

.diwali-lamp-wrap:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 180, 0, 0.35);
  transform: scale(1.03);
}

.diwali-lamp-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.4));
  transition: all 0.4s ease;
  margin-bottom: 0.5rem;
}

.diwali-lamp-wrap.lit .diwali-lamp-icon {
  animation: diyaFlameFlicker 1.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 25px rgba(255, 180, 0, 0.95)) drop-shadow(0 0 50px rgba(255, 100, 0, 0.7));
}

.diwali-lamp-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold-light);
  margin-bottom: 0.25rem;
}

.diwali-lamp-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.diwali-wish-message {
  display: none;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid #ffd700;
  border-radius: var(--radius-md);
  color: #fff8e1;
  font-family: var(--font-serif-editorial);
  font-size: 1.3rem;
  line-height: 1.5;
  animation: modalScaleIn 0.5s var(--ease-editorial);
}

.diwali-wish-message.visible {
  display: block;
}

/* Floating Diya particle canvas */
#diwaliCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* --------------------------------------------------------------------------
   7. DECORATIVE CORNER DIYAS FOR HERO & FOOTER
   -------------------------------------------------------------------------- */
.corner-diya {
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
  opacity: 0.85;
  filter: drop-shadow(0 0 14px rgba(255, 140, 0, 0.6));
  animation: diyaFlameFlicker 2s ease-in-out infinite alternate;
  z-index: 3;
}

.corner-diya.bottom-left {
  bottom: 24px;
  left: 24px;
}

.corner-diya.bottom-right {
  bottom: 24px;
  right: 24px;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .diwali-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
  }

  .diwali-banner-content {
    justify-content: center;
  }

  .diwali-cards-grid {
    grid-template-columns: 1fr;
  }

  .btn-diwali-toggle span.toggle-label {
    display: none;
  }
}
