:root {
  --maroon-deep: #4A0B16;
  --maroon: #6B1322;
  --maroon-soft: #8A1E30;
  --gold: #D4AF37;
  --gold-light: #F3D98B;
  --gold-dark: #9B7421;
  --ivory: #FBF6EC;
  --ivory-warm: #F4E9D5;
  --sand: #E9D9BC;
  --ink: #2C181B;
  --ink-muted: #664C50;
  --haldi: #D98A0C;
  --mehendi: #1C6B4B;
  --sangeet: #4A246D;
  --vivah: #9E1B2B;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-royal: 0 20px 50px rgba(74, 11, 22, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(107, 19, 34, 0.06) 0%, transparent 45%);
  line-height: 1.65;
  overflow-x: hidden;
}

body.cover-open {
  overflow: hidden;
}

#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ---------- Royal Cover Overlay ---------- */
.cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at center, #781726 0%, #4A0B16 68%, #2E050C 100%);
  transition: opacity 0.75s ease, transform 0.75s ease, visibility 0.75s ease;
}

.cover-overlay.hidden {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.cover-card {
  width: 100%;
  max-width: 440px;
  padding: 14px;
  border-radius: 220px 220px 24px 24px;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, rgba(107, 19, 34, 0.85), rgba(58, 8, 17, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(212, 175, 55, 0.12);
}

.jharokha-frame {
  border-radius: 208px 208px 16px 16px;
  border: 1px solid rgba(243, 217, 139, 0.4);
  padding: 40px 26px 32px;
  text-align: center;
  color: var(--ivory);
}

.cover-top-mantra {
  font-family: "Noto Serif Devanagari", serif;
  color: var(--gold-light);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.ganesha-emblem {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: block;
}

.cover-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold-light);
  opacity: 0.9;
  margin: 0 0 8px;
}

.cover-monogram {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  margin: 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFF1BF 0%, #D4AF37 52%, #F6E299 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-monogram span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.78em;
}

.cover-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  margin: 8px 0 4px;
  color: #FFF8EB;
}

.cover-date {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--gold-light);
  margin: 0 0 26px;
}

.wax-seal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1.5px solid var(--gold-light);
  border-radius: 999px;
  background: linear-gradient(135deg, #E8C975 0%, #C6982B 55%, #A67C2E 100%);
  color: #360710;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wax-seal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.5);
}

.cover-hint {
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: rgba(251, 246, 236, 0.65);
}

/* ---------- Toran Banner ---------- */
.toran-banner {
  position: relative;
  z-index: 3;
  width: 100%;
  line-height: 0;
}

.toran-banner svg {
  width: 100%;
  height: 46px;
  display: block;
}

/* ---------- Hero Section ---------- */
.invite-main {
  position: relative;
  z-index: 3;
}

.hero-section {
  padding: 28px 18px 56px;
  display: flex;
  justify-content: center;
}

.hero-arch-card {
  width: 100%;
  max-width: 740px;
  padding: 52px 28px 46px;
  text-align: center;
  color: var(--ivory);
  border-radius: 260px 260px 28px 28px;
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.16), transparent 46%),
    linear-gradient(180deg, #6B1322 0%, #4A0B16 100%);
  border: 2px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 28px 70px rgba(74, 11, 22, 0.28);
  position: relative;
}

.hero-arch-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 250px 250px 20px 20px;
  border: 1px solid rgba(243, 217, 139, 0.35);
  pointer-events: none;
}

.shloka-block {
  font-family: "Noto Serif Devanagari", serif;
  color: var(--gold-light);
}

.shloka-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.shloka-verse {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.88;
  line-height: 1.7;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto;
  max-width: 240px;
  color: var(--gold-light);
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-divider.dark {
  color: var(--gold-dark);
}

.invite-eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  color: var(--gold-light);
}

.couple-heading {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.name-line {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.15;
  background: linear-gradient(135deg, #FFF5D1 0%, #DFBA52 55%, #FFF1BF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.weds-script {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 400;
  color: var(--gold-light);
}

.placeholder-note {
  margin: 10px 0 22px;
  font-size: 0.76rem;
  color: rgba(251, 246, 236, 0.62);
}

.placeholder-note code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--gold-light);
}

.hero-date-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(243, 217, 139, 0.5);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: #FFF8EB;
}

.hero-date-pill .dot {
  color: var(--gold-light);
}

.wedding-highlight {
  margin: 14px 0 26px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: var(--gold-light);
}

/* ---------- Countdown ---------- */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 92px));
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.countdown-box {
  padding: 14px 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(243, 217, 139, 0.35);
}

.countdown-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #FFF5D1;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.hero-actions,
.venue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #E8C975, #C6982B);
  color: #360710;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: rgba(243, 217, 139, 0.65);
}

.btn-outline:hover {
  background: rgba(243, 217, 139, 0.12);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF8EB;
}

.btn-outline-dark {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}

.btn-outline-dark:hover {
  background: rgba(107, 19, 34, 0.06);
}

.btn-gold-full {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #E8C975, #C6982B);
  color: #360710;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.3);
}

/* ---------- Shared Sections ---------- */
.section {
  padding: 58px 20px;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 720px;
}

.section-kicker {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  color: var(--gold-dark);
  margin: 0 0 8px;
  font-weight: 600;
}

.section-title {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--maroon-deep);
  margin: 0;
}

.section-title.light {
  color: #FFF5D1;
}

/* ---------- Blessings ---------- */
.blessings-card {
  background: #FFFDF8;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-royal);
}

.elders-line {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--ink-muted);
  margin-top: 0;
}

.parents-line {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 14px 0;
}

.couple-inline {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.65rem;
  color: var(--maroon);
  margin: 18px 0;
}

.couple-inline span {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-dark);
  margin: 0 8px;
}

/* ---------- Events ---------- */
.day-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 36px;
}

.day-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--sand);
  background: #FFFDF8;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-tab.active {
  background: var(--maroon);
  color: #FFF5D1;
  border-color: var(--maroon);
  box-shadow: 0 8px 20px rgba(107, 19, 34, 0.2);
}

.day-group {
  margin-bottom: 44px;
}

.day-group.hidden-group {
  display: none;
}

.day-header {
  text-align: center;
  margin-bottom: 24px;
}

.day-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ivory-warm);
  border: 1px solid var(--gold);
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.wedding-badge {
  background: var(--maroon);
  color: var(--gold-light);
}

.day-header h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  margin: 10px 0 4px;
  color: var(--maroon-deep);
}

.day-header p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.event-card {
  background: #FFFDF8;
  border: 1.5px solid var(--sand);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-royal);
  display: flex;
  flex-direction: column;
}

.event-card.theme-haldi { border-top-color: var(--haldi); }
.event-card.theme-mehendi { border-top-color: var(--mehendi); }
.event-card.theme-sangeet { border-top-color: var(--sangeet); }
.event-card.theme-baraat { border-top-color: var(--gold-dark); }
.event-card.theme-vivah {
  border-top-color: var(--vivah);
  background: linear-gradient(180deg, #FFFDF8 0%, #FDF2E6 100%);
  border-color: rgba(212, 175, 55, 0.7);
}
.event-card.theme-feast { border-top-color: var(--maroon); }

.event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.event-pill {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ivory-warm);
  color: var(--maroon);
}

.event-time {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--gold-dark);
}

.event-card h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--maroon-deep);
}

.event-desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  flex: 1;
}

.event-meta {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px dashed var(--sand);
  font-size: 0.85rem;
  display: grid;
  gap: 6px;
}

/* ---------- Venue ---------- */
.venue-card {
  background: #FFFDF8;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-royal);
}

.venue-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  color: var(--maroon);
  margin: 0 0 8px;
}

.venue-address {
  margin: 0 0 24px;
  color: var(--ink-muted);
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.venue-info-box {
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 16px;
}

.venue-info-box h5 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}

.venue-info-box p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ---------- RSVP Section ---------- */
.rsvp-section {
  background: linear-gradient(180deg, #5A0F1B 0%, #3E0711 100%);
  color: var(--ivory);
}

.rsvp-section .section-kicker {
  color: var(--gold-light);
}

.rsvp-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 30px;
  color: rgba(251, 246, 236, 0.85);
}

.rsvp-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 217, 139, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label,
.events-fieldset legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(243, 217, 139, 0.4);
  background: rgba(251, 246, 236, 0.96);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
}

.events-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 18px;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 217, 139, 0.45);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  cursor: pointer;
}

.checkbox-pill input {
  accent-color: var(--gold);
}

.rsvp-status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.92rem;
  min-height: 24px;
}

.rsvp-status.success {
  color: #B7F5C8;
}

.rsvp-status.error {
  color: #FFB4B4;
}

/* ---------- Footer ---------- */
.invite-footer {
  background: #2C040B;
  color: var(--ivory);
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-mantra {
  font-family: "Noto Serif Devanagari", serif;
  color: var(--gold-light);
  margin: 0 0 8px;
}

.footer-names {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.5rem;
  color: #FFF5D1;
  margin: 0 0 6px;
}

.footer-sub {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: rgba(251, 246, 236, 0.7);
}

.replay-link {
  background: none;
  border: none;
  color: var(--gold-light);
  text-decoration: underline;
  font-size: 0.82rem;
  cursor: pointer;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 540px) {
  .hero-arch-card {
    border-radius: 170px 170px 22px 22px;
    padding: 40px 18px 34px;
  }

  .hero-arch-card::after {
    border-radius: 162px 162px 16px 16px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .rsvp-form {
    padding: 22px 16px;
  }
}
