@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Marcellus&family=Noto+Serif+Telugu:wght@400;600&display=swap');

:root {
  --gold: #d4af37;
  --gold-soft: #f0d878;
  --maroon: #8a1416;
  --maroon-deep: #4a0a0c;
  --cream: #fff8ec;
  --teal: #0e6e6e;
  --saffron: #ff7a1a;
  --saffron-deep: #e85d04;
  --turmeric: #ffc914;
  --turmeric-deep: #e1a700;
  --mehendi: #52b243;
  --mehendi-deep: #2d6a4f;
  --bg-base-1: #7a4008;
  --bg-base-2: #8a2f0e;
  --bg-base-3: #3a0f0a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 201, 20, 0.4) 0%, rgba(255, 201, 20, 0) 62%),
    radial-gradient(ellipse 55% 40% at 88% 22%, rgba(255, 122, 26, 0.3) 0%, rgba(255, 122, 26, 0) 65%),
    radial-gradient(ellipse 50% 35% at 8% 60%, rgba(82, 178, 67, 0.14) 0%, rgba(82, 178, 67, 0) 65%),
    linear-gradient(165deg, var(--bg-base-1) 0%, var(--bg-base-2) 45%, var(--bg-base-3) 100%);
  color: var(--cream);
  font-family: 'Marcellus', serif;
  overflow-x: hidden;
  position: relative;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

#glowOrb1 {
  width: 280px;
  height: 280px;
  top: -60px;
  left: -60px;
  background: radial-gradient(circle, var(--saffron) 0%, transparent 70%);
}

#glowOrb2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, var(--mehendi) 0%, transparent 70%);
}

#glowOrb3 {
  width: 240px;
  height: 240px;
  top: 40%;
  left: -80px;
  background: radial-gradient(circle, var(--turmeric) 0%, transparent 70%);
}

h1, h2, h3, .display {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.03em;
}

.telugu {
  font-family: 'Noto Serif Telugu', serif;
}

a {
  color: var(--gold-soft);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* ---------- Deity icons ---------- */
.deity-icon-wrap {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0.25rem;
}

.deity-icon {
  filter: drop-shadow(0 2px 16px rgba(255, 201, 20, 0.35)) brightness(1);
}

.rama-emblem-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.rama-emblem {
  width: auto;
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45)) brightness(1);
}

/* ---------- Thoranam (top toran) ---------- */
.thoranam {
  width: 100%;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 1;
}

.thoranam-leaf {
  transform-origin: top center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 0.5rem 0 3rem;
  text-align: center;
}

.invocation {
  margin-top: 1.25rem;
  font-size: 1.6rem;
  color: var(--turmeric);
  text-shadow: 0 0 18px rgba(255, 201, 20, 0.5);
}

.invocation-sub {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.85;
}

.lotus-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
  filter: drop-shadow(0 4px 14px rgba(255, 122, 26, 0.3));
}

.title-wrap {
  position: relative;
  margin-top: 1rem;
  overflow: hidden;
}

.occasion-title {
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  margin: 0;
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.occasion-title .letter {
  display: inline-block;
  will-change: transform, opacity;
}

.occasion-title .letter.space {
  width: 0.35em;
}

.occasion-title-telugu {
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  color: var(--gold-soft);
  margin: 0.3rem 0 0;
}

.shimmer-sweep {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 224, 130, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.host-names {
  margin-top: 1.4rem;
  font-size: 1.4rem;
  color: var(--cream);
}

.children-names {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: var(--turmeric);
  opacity: 0.9;
}

.invite-line {
  max-width: 480px;
  margin: 1.75rem auto 0;
  line-height: 1.7;
  font-size: 1.02rem;
  color: var(--cream);
  opacity: 0.9;
}

/* ---------- Sections ---------- */
section {
  padding: 2.5rem 0;
}

.section-divider {
  width: 100%;
  height: 28px;
  display: block;
  opacity: 0.9;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
}

.card {
  background: linear-gradient(160deg, rgba(255, 248, 236, 0.06), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  backdrop-filter: blur(2px);
}

.card--details {
  border-color: rgba(82, 178, 67, 0.4);
}

.card--rsvp {
  border-color: rgba(255, 122, 26, 0.4);
}

.section-title {
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.card--details .section-title {
  color: var(--mehendi);
}

.card--rsvp .section-title {
  color: var(--cream);
}

.detail-grid {
  display: grid;
  gap: 1.1rem;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mehendi);
  opacity: 0.95;
}

.detail-value {
  font-size: 1.15rem;
  color: var(--cream);
}

.map-link-btn {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--mehendi);
  border-radius: 999px;
  color: var(--mehendi);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease;
}

.map-link-btn:hover {
  background: var(--mehendi);
  color: var(--bg-base-3);
}

/* ---------- RSVP Form ---------- */
.rsvp-form {
  display: grid;
  gap: 1.1rem;
  text-align: left;
  margin-top: 0.5rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.field input[type='text'],
.field input[type='tel'],
.field input[type='email'],
.field input[type='number'],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 122, 26, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-family: 'Marcellus', serif;
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--turmeric);
  box-shadow: 0 0 0 3px rgba(255, 201, 20, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field select option {
  color: #000;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  color: var(--cream);
}

.submit-btn {
  justify-self: center;
  margin-top: 0.5rem;
  padding: 0.85rem 2.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--saffron), var(--turmeric));
  color: var(--maroon-deep);
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-error {
  color: #ff8a8a;
  font-size: 0.85rem;
  min-height: 1.1rem;
}

.confirmation {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
  position: relative;
}

.confirmation.show {
  display: block;
}

.confirm-lotus-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.confirmation h3 {
  color: var(--saffron);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.burst-particle {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2.5rem 0 3rem;
  opacity: 0.85;
  font-size: 0.9rem;
}

footer .contact {
  margin-top: 0.5rem;
  color: var(--turmeric);
}

/* ---------- Petals ---------- */
.petal {
  position: fixed;
  top: -5vh;
  pointer-events: none;
  z-index: 5;
  opacity: 0.9;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .glow-orb {
    display: none;
  }
}
