/* =====================================================
   WEDDING INVITATION — Priya & Sachin
   Garden Palace · Mughal Arch Theme
   ===================================================== */

:root {
  --teal:       #4a8c8c;
  --teal-dark:  #2e6868;
  --teal-light: #6cb8b8;
  --teal-pale:  #b8d8d8;
  --rose:       #c4a0b4;
  --rose-light: #ead4e0;
  --sage:       #7a9a68;
  --sage-light: #a8c490;
  --sky:        #c4deec;
  --sky-light:  #e8f4f8;
  --cream:      #fdf8f2;
  --ivory:      #f8f0e4;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark:  #a07830;
  --charcoal:   #2c3e3f;
  --text-muted: #6b8a8b;
  --white:      #ffffff;
  --pinkish:    #bd0642;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-script:  'Great Vibes', cursive;
  --font-body:    'Lato', sans-serif;

  --transition: 0.4s ease;
  --shadow:     0 8px 40px rgba(74, 140, 140, 0.14);
  --shadow-gold:0 4px 20px rgba(201, 168, 76, 0.22);
}

/* =====================================================
   FALLING PINK LEAVES
   ===================================================== */
.leaves-bg,
.leaves-fg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Behind all page content */
.leaves-bg { z-index: 0; }
/* In front of all page content */
.leaves-fg { z-index: 100; }

.leaf {
  position: absolute;
  top: -50px;
  border-radius: 50% 0 50% 50%;
  will-change: transform, opacity;
  animation: leafFall linear infinite;
}

@keyframes leafFall {
  0% {
    transform: translateY(-50px) translateX(0) rotateZ(0deg) rotateY(0deg);
    opacity: 0;
  }
  8%  { opacity: var(--leaf-opacity, 0.5); }
  92% { opacity: var(--leaf-opacity, 0.5); }
  100% {
    transform: translateY(110vh) translateX(var(--drift, 60px)) rotateZ(var(--spin, 360deg)) rotateY(540deg);
    opacity: 0;
  }
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}
img, svg { display: block; }

/* =====================================================
   FLOATING PETALS
   ===================================================== */
.petals {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -30px;
  width: 11px;
  height: 16px;
  border-radius: 50% 50% 50% 10% / 50% 50% 10% 50%;
  opacity: 0;
  animation: fall linear infinite;
  will-change: transform, opacity;
}

.p-pink   { background: radial-gradient(ellipse at 40% 40%, #f7c5d5 0%, #e898b8 60%, #d07898 100%); }
.p-yellow { background: radial-gradient(ellipse at 40% 40%, #f8e898 0%, #f0c840 60%, #d8a828 100%); }
.p-white  { background: radial-gradient(ellipse at 40% 40%, #ffffff 0%, #f0e8e0 60%, #e0d0c8 100%); }
.p-peach  { background: radial-gradient(ellipse at 40% 40%, #fce0c8 0%, #f0b888 60%, #d89060 100%); }

.petal:nth-child(1)  { left: 8%;  animation-duration: 9s;  animation-delay: 0s;   width: 10px; height: 14px; }
.petal:nth-child(2)  { left: 18%; animation-duration: 12s; animation-delay: 1.5s; }
.petal:nth-child(3)  { left: 28%; animation-duration: 10s; animation-delay: 0.8s; width: 8px;  height: 12px; }
.petal:nth-child(4)  { left: 40%; animation-duration: 14s; animation-delay: 2.2s; }
.petal:nth-child(5)  { left: 52%; animation-duration: 11s; animation-delay: 0.4s; width: 14px; height: 20px; }
.petal:nth-child(6)  { left: 63%; animation-duration: 13s; animation-delay: 3s;   }
.petal:nth-child(7)  { left: 74%; animation-duration: 9.5s;animation-delay: 1s;   width: 9px;  height: 13px; }
.petal:nth-child(8)  { left: 82%; animation-duration: 11s; animation-delay: 2.8s; }
.petal:nth-child(9)  { left: 90%; animation-duration: 15s; animation-delay: 0.2s; width: 11px; height: 16px; }
.petal:nth-child(10) { left: 96%; animation-duration: 10s; animation-delay: 1.8s; }

@keyframes fall {
  0%   { transform: translateY(-30px) rotateZ(0deg) rotateX(0deg);   opacity: 0; }
  10%  { opacity: 0.75; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(105vh) rotateZ(380deg) rotateX(180deg); opacity: 0; }
}

/* ---- Container ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg,
    #a8cce4 0%,
    #bcd8ee 18%,
    #cce4f4 35%,
    #d8ecf0 55%,
    #cce4d4 78%,
    #b8d8b8 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Gazebo image — right side */
.hero-scene {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.gazebo-img {
  height: 400px;
  opacity: 0.8;
  width: auto;
  position: absolute;
  left: calc(35vw * 2 + 100px);
  bottom: 10px;
  display: block;
  object-fit: contain;
  object-position: right bottom;
}

/* Floral corners */
.floral-corner {
  position: absolute;
  top: -8px;
  z-index: 3;
  width: clamp(120px, 15vw, 200px);
  height: clamp(120px, 15vw, 200px);
  pointer-events: none;
}
.floral-tl { left: -8px; }
.floral-tr { right: -8px; }
.floral-corner svg { width: 100%; height: 100%; }

/* Arch wrapper — centered, full-height */
.arch-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 88vw);
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.arch-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 10vh 2rem 6rem;
  max-width: min(480px, 80vw);
}

.hero-symbol {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--teal);
  opacity: 0.75;
  margin-bottom: 0.6rem;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-blessing {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  letter-spacing: 0.25em;
  color: var(--teal-dark);
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
  margin-bottom: 1.8rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: var(--charcoal);
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}
.hero-event {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--charcoal);
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
  margin-bottom: 1.2rem;
}

/* Names in Great Vibes script */
.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.65s forwards;
}

.name {
  font-family: var(--font-script);
  font-size: clamp(3.8rem, 5vw, 7rem);
  color: var(--pinkish);
  line-height: 1.05;
}

.name-and {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--text-muted);
  line-height: 1;
  margin: -0.1rem 0;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.8rem auto;
  opacity: 0;
  animation: fadeUp 1s ease 0.85s forwards;
}
.divider-ornament .line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
}
.divider-ornament .diamond {
  color: var(--gold);
  font-size: 0.55rem;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: var(--charcoal);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeUp 1s ease 0.95s forwards;
}
.hero-year {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.3vw, 0.85rem);
  letter-spacing: 0.38em;
  color: var(--text-muted);
  margin-top: 0.4rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.05s forwards;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2.2rem;
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}
.cta-button:hover {
  background: var(--teal);
  color: var(--white);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Peacock wrap — absolute bottom-center */
.peacock-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-32%);
  opacity: 0.7;
  z-index: 1;
  width: min(320px, 55vw);
  pointer-events: none;
}
.peacock-svg { width: 100%; height: auto; }

/* Ground strip */
.hero-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-ground svg { width: 100%; display: block; }

/* =====================================================
   AUSPICIOUS
   ===================================================== */
.auspicious {
  background: var(--ivory);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--teal-pale);
}
.devanagari {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--teal-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.auspicious-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 400;
  color: var(--teal-dark);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-title.light { color: var(--gold-light); }

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
}
.ornament-line.light {
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
}

/* =====================================================
   COUPLE
   ===================================================== */
.couple {
  background: var(--cream);
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.couple-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.person-card {
  background: var(--white);
  border: 1px solid var(--teal-pale);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.person-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow var(--transition);
}
.person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(74, 140, 140, 0.2);
}

.person-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}
.person-icon svg { width: 100%; height: 100%; }

.person-name {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.person-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.person-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.7;
  border-top: 1px solid var(--teal-pale);
  padding-top: 1rem;
}

.couple-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lotus { width: 60px; height: 60px; }
.lotus svg { width: 100%; height: 100%; }

/* =====================================================
   EVENTS
   ===================================================== */
.events {
  background: linear-gradient(160deg, var(--teal-dark) 0%, #2d7878 50%, var(--teal) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.events-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(201,168,76,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(201,168,76,0.06) 0%, transparent 45%);
  z-index: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.28);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition), background var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.event-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease, background var(--transition);
}
.event-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.event-card.featured {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.15);
}

.event-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
}

.event-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: block;
}
.event-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.event-detail {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}
.event-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.event-detail span:last-child {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.event-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,168,76,0.2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* =====================================================
   COUNTDOWN
   ===================================================== */
.countdown-section {
  background: var(--sky-light);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  border-top: 2px solid var(--teal-pale);
  border-bottom: 2px solid var(--teal-pale);
}

.countdown-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--teal-dark);
  line-height: 1;
}

.countdown-word {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0.5;
}

/* =====================================================
   RSVP
   ===================================================== */
.rsvp {
  background: var(--cream);
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.rsvp-intro {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}
.rsvp-intro strong { color: var(--teal-dark); font-weight: 600; }

.rsvp-btn-wrap {
  text-align: center;
  margin-top: 2rem;
}

.rsvp-link-btn {
  display: inline-block;
  padding: 1.2rem 3.5rem;
  border: 1.5px solid var(--gold);
  outline: 1px solid var(--gold-light);
  outline-offset: 5px;
  color: var(--gold-dark);
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.rsvp-link-btn:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 28px rgba(201,168,76,0.35);
}

.rsvp-password {
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}


/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: linear-gradient(160deg, var(--teal-dark) 0%, #2d7878 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-lotus {
  width: 65px;
  height: 65px;
  margin: 0 auto 1.5rem;
  opacity: 0.55;
  animation: slowSpin 40s linear infinite;
}
.footer-lotus svg { width: 100%; height: 100%; }

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.footer-names {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}
.footer-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.footer-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}
.footer-divider {
  color: var(--gold);
  font-size: 0.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}
.footer-small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-small a {
  color: rgba(201,168,76,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-small a:hover { color: var(--gold); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .couple-cards {
    grid-template-columns: 1fr;
  }
  .couple-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .rsvp-form { padding: 2rem 1.5rem; }
  .hero-content { padding: 12vh 1.5rem 5rem; }
  .peacock-wrap { width: min(260px, 70vw); bottom: 85px; }
  .countdown { gap: 0.25rem; }
  .countdown-unit { min-width: 70px; }
  .floral-corner { width: clamp(90px, 18vw, 140px); height: clamp(90px, 18vw, 140px); }
}

@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .ornament-line { display: none; }
  .arch-wrapper { width: 95vw; }
  .hero-content { max-width: 85vw; }
}
