/*
Theme Name: Diwali Celebration 2026
Theme URI: https://example.com/
Author: OpenAI
Description: A festive one-page WordPress theme for a Diwali Save the Date and RSVP event.
Version: 1.1.0
Text Domain: diwali-celebration
*/

:root {
  --ink: #210b2c;
  --plum: #4a104f;
  --magenta: #8f1d5a;
  --saffron: #f4a62a;
  --gold: #ffd36a;
  --cream: #fff8e8;
  --rose: #f8d8d8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(33, 11, 44, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,211,106,.22), transparent 25%),
    radial-gradient(circle at bottom right, rgba(143,29,90,.10), transparent 20%),
    var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }

.site-shell { overflow: hidden; position: relative; }
.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: .18;
  z-index: 0;
  background:
    radial-gradient(circle at center, rgba(244,166,42,.75) 0 4px, transparent 5px),
    radial-gradient(circle at center, transparent 0 34px, rgba(143,29,90,.65) 35px 36px, transparent 37px),
    radial-gradient(circle at center, transparent 0 62px, rgba(244,166,42,.55) 63px 64px, transparent 65px),
    radial-gradient(circle at 50% 12%, rgba(143,29,90,.7) 0 8px, transparent 9px),
    radial-gradient(circle at 88% 50%, rgba(143,29,90,.7) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 88%, rgba(143,29,90,.7) 0 8px, transparent 9px),
    radial-gradient(circle at 12% 50%, rgba(143,29,90,.7) 0 8px, transparent 9px),
    radial-gradient(circle at 77% 23%, rgba(244,166,42,.7) 0 6px, transparent 7px),
    radial-gradient(circle at 77% 77%, rgba(244,166,42,.7) 0 6px, transparent 7px),
    radial-gradient(circle at 23% 77%, rgba(244,166,42,.7) 0 6px, transparent 7px),
    radial-gradient(circle at 23% 23%, rgba(244,166,42,.7) 0 6px, transparent 7px);
}
.site-shell::before { top: 110px; left: -90px; }
.site-shell::after { bottom: 80px; right: -90px; }
.site-shell > * { position: relative; z-index: 1; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 94vh;
  display: grid;
  place-items: center;
  position: relative;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 22%, rgba(255,211,106,.20) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 28%, rgba(255,211,106,.16) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 78%, rgba(255,211,106,.12) 0 2px, transparent 3px),
    linear-gradient(135deg, #2b0d3b 0%, #6b164f 48%, #b84455 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255,211,106,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,211,106,.035), 0 0 0 46px rgba(255,211,106,.025);
}
.hero::before { left: -180px; top: -170px; }
.hero::after { right: -190px; bottom: -190px; }

.hero .container { position: relative; z-index: 2; }
.hero .container::before,
.hero .container::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  opacity: .22;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255,211,106,.95) 0 4px, transparent 5px),
    radial-gradient(circle at center, transparent 0 24px, rgba(255,211,106,.85) 25px 26px, transparent 27px),
    radial-gradient(circle at center, transparent 0 48px, rgba(255,211,106,.65) 49px 50px, transparent 51px),
    radial-gradient(circle at 50% 5%, rgba(255,211,106,.85) 0 7px, transparent 8px),
    radial-gradient(circle at 82% 18%, rgba(255,211,106,.8) 0 7px, transparent 8px),
    radial-gradient(circle at 95% 50%, rgba(255,211,106,.8) 0 7px, transparent 8px),
    radial-gradient(circle at 82% 82%, rgba(255,211,106,.8) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 95%, rgba(255,211,106,.85) 0 7px, transparent 8px),
    radial-gradient(circle at 18% 82%, rgba(255,211,106,.8) 0 7px, transparent 8px),
    radial-gradient(circle at 5% 50%, rgba(255,211,106,.8) 0 7px, transparent 8px),
    radial-gradient(circle at 18% 18%, rgba(255,211,106,.8) 0 7px, transparent 8px);
}
.hero .container::before { left: -30px; top: 10px; }
.hero .container::after { right: -30px; bottom: 10px; }

.diya-row { font-size: 26px; letter-spacing: 16px; color: var(--gold); margin-bottom: 18px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 800;
  font-size: 12px;
  color: var(--gold);
}
.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(56px, 10vw, 118px);
  line-height: .95;
  margin: 14px 0;
  font-weight: 500;
}
.hero .subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3vw, 34px);
  margin: 0 auto 26px;
}
.hero-date {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255,211,106,.65);
  border-bottom: 1px solid rgba(255,211,106,.65);
  font-weight: 700;
}

.hero-location {
  margin: 20px auto 0;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,211,106,.32);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(15, 4, 21, .18);
}
.hero-location strong {
  font-size: 22px;
  color: var(--gold);
  letter-spacing: .02em;
}
.hero-location span {
  font-size: 15px;
  color: rgba(255,255,255,.92);
}
.hero-note {
  margin-top: 16px;
  color: #ffe8ad;
  font-weight: 700;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: #3a1630; }
.btn-secondary { border-color: rgba(255,255,255,.65); color: white; background: rgba(255,255,255,.08); }
.btn:hover { transform: translateY(-2px); }


.hero-diyas {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.diya {
  position: relative;
  width: 72px;
  height: 74px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.18));
}
.diya-flame {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 18px;
  height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 30%, #fff7d1 0%, #ffd36a 35%, #ff9d1e 72%, rgba(255,157,30,.1) 100%);
  border-radius: 50% 50% 55% 55% / 58% 58% 42% 42%;
  box-shadow: 0 0 18px rgba(255,211,106,.85), 0 0 34px rgba(255,157,30,.45);
  animation: flameFlicker 2s ease-in-out infinite;
  transform-origin: center bottom;
}
.diya-flame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 8px;
  height: 13px;
  transform: translateX(-50%);
  background: rgba(255,250,230,.9);
  border-radius: 50%;
}
.diya-bowl {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 72px;
  height: 34px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffcb6b 0%, #f19d22 46%, #af4d12 100%);
  border-radius: 0 0 46px 46px / 0 0 28px 28px;
  border-top: 4px solid #ffd979;
}
.diya-bowl::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 44px;
  height: 12px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,244,206,.95) 0%, rgba(255,223,130,.8) 100%);
  border-radius: 999px;
}
.diya-bowl::after {
  content: "✦";
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: rgba(255,248,225,.85);
  font-size: 15px;
}
.hero-diyas .diya:nth-child(2) { transform: scale(1.12); }
.hero-diyas .diya:nth-child(1) { animation: diyaGlow 2.8s ease-in-out infinite; }
.hero-diyas .diya:nth-child(2) { animation: diyaGlow 3.1s ease-in-out infinite .3s; }
.hero-diyas .diya:nth-child(3) { animation: diyaGlow 2.9s ease-in-out infinite .6s; }

@keyframes flameFlicker {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  25% { transform: translateX(-50%) scale(1.05, .96) rotate(2deg); }
  50% { transform: translateX(-50%) scale(.96, 1.06) rotate(-1deg); }
  75% { transform: translateX(-50%) scale(1.03, .98) rotate(3deg); }
}

@keyframes diyaGlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes sparkleFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(.6) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: .95; }
  80% { opacity: .8; }
  100% {
    transform: translate3d(var(--sparkle-drift, 30px), -120vh, 0) scale(1.15) rotate(180deg);
    opacity: 0;
  }
}

.section { padding: 86px 0; }
.section-title { text-align: center; margin-bottom: 42px; }
.section-title .eyebrow { color: var(--magenta); }
.section-title h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 5vw, 58px);
  margin: 6px 0 10px;
  font-weight: 500;
}
.section-title p { max-width: 680px; margin: 0 auto; color: #63445e; }

.save-card {
  background: white;
  border: 1px solid rgba(74,16,79,.09);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 52px 28px;
  text-align: center;
  position: relative;
}
.save-card::before {
  content: "✦";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--saffron);
  font-size: 22px;
}
.save-card::after {
  content: "✺   ✺   ✺";
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(143,29,90,.35);
  letter-spacing: 10px;
  font-size: 16px;
}
.save-date-big { font-family: Georgia, serif; font-size: clamp(34px, 6vw, 62px); margin: 8px 0; color: var(--plum); }
.save-time { font-size: 24px; font-weight: 800; color: var(--magenta); }
.save-venue {
  margin: 18px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.save-venue strong {
  font-size: 24px;
  color: var(--plum);
  font-weight: 800;
}
.save-venue span {
  color: #63445e;
  font-size: 16px;
}
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 640px; margin: 30px auto 0; }
.countdown div { background: #fff6e7; border-radius: 18px; padding: 18px 10px; }
.countdown strong { display: block; font-size: 30px; color: var(--plum); }
.countdown span { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #7a5a73; }

.details-section { background: #3a103e; color: white; position: relative; overflow: hidden; }
.details-section::before,
.details-section::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  opacity: .14;
  background:
    radial-gradient(circle at center, rgba(255,211,106,.9) 0 4px, transparent 5px),
    radial-gradient(circle at center, transparent 0 30px, rgba(255,211,106,.7) 31px 32px, transparent 33px),
    radial-gradient(circle at center, transparent 0 58px, rgba(255,211,106,.5) 59px 60px, transparent 61px),
    radial-gradient(circle at 50% 6%, rgba(255,211,106,.85) 0 7px, transparent 8px),
    radial-gradient(circle at 85% 22%, rgba(255,211,106,.75) 0 7px, transparent 8px),
    radial-gradient(circle at 95% 50%, rgba(255,211,106,.75) 0 7px, transparent 8px),
    radial-gradient(circle at 85% 78%, rgba(255,211,106,.75) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 94%, rgba(255,211,106,.85) 0 7px, transparent 8px),
    radial-gradient(circle at 15% 78%, rgba(255,211,106,.75) 0 7px, transparent 8px),
    radial-gradient(circle at 5% 50%, rgba(255,211,106,.75) 0 7px, transparent 8px),
    radial-gradient(circle at 15% 22%, rgba(255,211,106,.75) 0 7px, transparent 8px);
}
.details-section::before { left: -70px; top: 30px; }
.details-section::after { right: -70px; bottom: 30px; }
.details-section .section-title .eyebrow { color: var(--gold); }
.details-section .section-title p { color: #ead8e7; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,211,106,.18); border-radius: 22px; padding: 28px; text-align: center; }
.detail-icon { font-size: 30px; margin-bottom: 12px; }
.detail-card h3 { margin: 0 0 8px; color: var(--gold); }
.detail-card p { margin: 0; color: #f5eaf3; }
.detail-card a { color: var(--gold); }

.rsvp-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.rsvp-copy {
  background: linear-gradient(145deg, #6b164f, #3a103e);
  color: white;
  padding: 38px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.rsvp-copy h2 { font-family: Georgia, serif; font-size: 48px; margin: 0 0 14px; }
.rsvp-copy p { color: #f2deed; }
.rsvp-form { background: white; border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 800; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #dbcbd8;
  background: #fffdf8;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.rsvp-form .btn { border: 0; margin-top: 18px; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 700; }
.notice-success { background: #e8f7ed; color: #176232; }
.notice-error { background: #fff0ef; color: #9d2a23; }

.footer { background: #210b2c; color: #e8d8e5; padding: 34px 0; text-align: center; }
.footer strong { color: var(--gold); }

@media (max-width: 800px) {
  .detail-grid, .rsvp-wrap { grid-template-columns: 1fr; }
  .hero .container::before, .hero .container::after, .site-shell::before, .site-shell::after { opacity: .12; }
  .hero-location { width: 100%; max-width: 540px; }
  .hero-diyas { gap: 20px; }
  .diya { transform: scale(.92); }
  .hero-diyas .diya:nth-child(2) { transform: scale(1); }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .section { padding: 64px 0; }
  .hero { min-height: 86vh; }
}

/* Elegant background refresh — v1.1 */
:root {
  --ink: #241621;
  --plum: #4a203f;
  --magenta: #7b2e4f;
  --saffron: #c98f45;
  --gold: #e1be78;
  --cream: #fbf7ef;
  --rose: #f2e7e3;
  --shadow: 0 22px 70px rgba(34, 16, 29, .14);
}

body {
  background:
    linear-gradient(rgba(251,247,239,.97), rgba(251,247,239,.97)),
    url('assets/ivory-diwali-pattern.svg') center top / 520px 520px repeat;
}

.site-shell::before,
.site-shell::after {
  width: 420px;
  height: 420px;
  opacity: .06;
  filter: blur(.1px);
  background: url('assets/ivory-diwali-pattern.svg') center / contain no-repeat;
}
.site-shell::before { top: 170px; left: -190px; }
.site-shell::after { bottom: 160px; right: -190px; }

.hero {
  min-height: 96vh;
  background-image:
    linear-gradient(180deg, rgba(12,5,18,.08), rgba(12,5,18,.28)),
    radial-gradient(circle at 50% 34%, rgba(188,118,126,.28) 0%, rgba(82,31,64,.16) 26%, transparent 55%),
    radial-gradient(circle at 15% 10%, rgba(225,190,120,.12), transparent 32%),
    radial-gradient(circle at 86% 86%, rgba(225,190,120,.10), transparent 30%),
    url('assets/elegant-diwali-pattern.svg'),
    linear-gradient(145deg, #160b1d 0%, #341329 42%, #5a203e 72%, #27101f 100%);
  background-size: auto, auto, auto, auto, cover, auto;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 -1px 0 rgba(225,190,120,.18);
}

.hero::before,
.hero::after {
  width: 560px;
  height: 560px;
  border-color: rgba(225,190,120,.10);
  box-shadow: 0 0 0 34px rgba(225,190,120,.018), 0 0 0 70px rgba(225,190,120,.012);
}
.hero::before { left: -330px; top: -300px; }
.hero::after { right: -330px; bottom: -330px; }

.hero .container::before,
.hero .container::after {
  width: 220px;
  height: 220px;
  opacity: .07;
  background: url('assets/ivory-diwali-pattern.svg') center / contain no-repeat;
}
.hero .container::before { left: -70px; top: -20px; }
.hero .container::after { right: -70px; bottom: -10px; }

.diya-row {
  color: #e7c987;
  opacity: .9;
}

.hero h1 {
  color: #fffaf0;
  letter-spacing: -.02em;
  text-shadow: 0 8px 34px rgba(0,0,0,.22);
}
.hero .subtitle { color: rgba(255,250,240,.88); }
.hero-date {
  border-color: rgba(225,190,120,.42);
  color: #fff8e9;
}
.hero-location {
  background: rgba(255,250,240,.055);
  border-color: rgba(225,190,120,.22);
  box-shadow: 0 14px 50px rgba(7,3,10,.20);
  backdrop-filter: blur(10px);
}
.hero-location strong { color: #e7c987; }
.hero-note { color: rgba(255,238,196,.86); font-weight: 600; }
.btn-primary { background: linear-gradient(180deg, #ead193, #d7ae65); color: #33172b; box-shadow: 0 8px 26px rgba(225,190,120,.18); }
.btn-secondary { border-color: rgba(255,248,232,.38); background: rgba(255,255,255,.035); }

.sparkle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.sparkle {
  position: absolute;
  bottom: -8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,248,218,.96) 0%, rgba(225,190,120,.62) 42%, rgba(225,190,120,0) 72%);
  box-shadow: 0 0 12px rgba(225,190,120,.42);
  opacity: .48;
  animation: sparkleFloat var(--sparkle-duration, 11s) linear infinite;
  animation-delay: var(--sparkle-delay, 0s);
}
.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,247,215,.52);
}
.sparkle::before { width: 1px; height: 12px; }
.sparkle::after { width: 12px; height: 1px; }

.hero-diyas { margin-top: 30px; gap: 42px; opacity: .9; }
.diya { transform: scale(.88); filter: drop-shadow(0 12px 26px rgba(0,0,0,.25)); }
.hero-diyas .diya:nth-child(2) { transform: scale(.98); }
.diya-bowl {
  background: linear-gradient(180deg, #dcb56c 0%, #b87834 48%, #6f351d 100%);
  border-top-color: #e6c77f;
}
.diya-flame {
  box-shadow: 0 0 18px rgba(225,190,120,.58), 0 0 36px rgba(201,143,69,.28);
}

.section {
  position: relative;
  background-image: linear-gradient(rgba(251,247,239,.94), rgba(251,247,239,.94)), url('assets/ivory-diwali-pattern.svg');
  background-size: auto, 520px 520px;
}
.section-title h2 { color: #3b2135; }
.section-title p { color: #705866; }
.section-title .eyebrow { color: #8d5e6d; }

.save-card {
  background: rgba(255,253,248,.88);
  border: 1px solid rgba(123,46,79,.10);
  box-shadow: 0 28px 80px rgba(55,28,45,.10);
  backdrop-filter: blur(7px);
}
.save-card::before { color: #bd8b50; }
.save-card::after { color: rgba(123,46,79,.20); }
.countdown div {
  background: rgba(247,239,225,.78);
  border: 1px solid rgba(151,104,95,.08);
}

.details-section {
  background-image:
    linear-gradient(rgba(27,10,26,.92), rgba(42,15,35,.94)),
    url('assets/elegant-diwali-pattern.svg');
  background-size: auto, cover;
  background-position: center;
}
.details-section::before,
.details-section::after {
  opacity: .05;
  background: url('assets/ivory-diwali-pattern.svg') center / contain no-repeat;
}
.detail-card {
  background: rgba(255,250,240,.045);
  border-color: rgba(225,190,120,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

#rsvp {
  background-image:
    linear-gradient(rgba(251,247,239,.96), rgba(251,247,239,.96)),
    url('assets/ivory-diwali-pattern.svg');
}
.rsvp-copy {
  background-image:
    linear-gradient(145deg, rgba(57,19,45,.94), rgba(29,10,29,.97)),
    url('assets/elegant-diwali-pattern.svg');
  background-size: auto, cover;
  background-position: center;
  border: 1px solid rgba(225,190,120,.15);
}
.rsvp-form {
  background: rgba(255,253,248,.92);
  border: 1px solid rgba(123,46,79,.09);
  box-shadow: 0 28px 80px rgba(55,28,45,.10);
}
.footer {
  background: #160b1d;
  border-top: 1px solid rgba(225,190,120,.12);
}

@media (prefers-reduced-motion: reduce) {
  .sparkle, .diya-flame, .hero-diyas .diya { animation: none !important; }
}
