/* ==========================================================================
   STYLE.CSS - Royal Wedding Invitation: Neha & Gaurav
   Reference-Matched Flow & Fully Functional Interactive Carousels
   ========================================================================== */

/* 1. GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');
/* Devanagari companions: only downloaded when Hindi characters are on the page */
@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&family=Yatra+One&family=Hind:wght@400;500;600&display=swap');

/* 2. ROOT CSS VARIABLES */
:root {
  --background: #F9F6F0;
  --foreground: #32241C;
  --card: #F3EDE4;
  --card-foreground: #32241C;
  --muted: #EBE3D8;
  --muted-foreground: #8C7D73;
  --border: #E5DDD1;
  
  --gold: #D4A03C;
  --gold-light: #E7CCA0;
  --gold-dark: #A97A22;
  --gold-gradient: linear-gradient(135deg, #F3E2C4 0%, #D4A03C 50%, #A97A22 100%);
  
  /* Latin fonts first; the browser falls back to the Devanagari font per character for Hindi text */
  --font-script: 'Great Vibes', 'Yatra One', cursive;
  --font-serif: 'Playfair Display', 'Tiro Devanagari Hindi', Georgia, serif;
  --font-sans: 'Montserrat', 'Hind', sans-serif;

  --shadow-sm: 0 4px 15px rgba(50, 36, 28, 0.05);
  --shadow-md: 0 10px 30px rgba(50, 36, 28, 0.08);
  --shadow-lg: 0 20px 50px rgba(50, 36, 28, 0.14);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
}

body {
  font-family: var(--font-serif);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

html.locked-scroll,
body.locked-scroll {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.locked-scroll {
  position: fixed;
  inset: 0;
  width: 100%;
}

/* Typography Classes */
.font-script { font-family: var(--font-script); }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.bg-background { background-color: var(--background) !important; }
.bg-card { background-color: var(--card) !important; }

/* Section Headings */
.section-head {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  display: block;
  margin-bottom: 12px;
}

.section-script-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 8px;
}

.section-serif-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--foreground);
}

.gold-divider-line {
  width: 96px;
  height: 1px;
  background-color: var(--gold);
  margin: 16px auto 0;
}

.gold-divider-line-light {
  width: 64px;
  height: 1px;
  background-color: var(--gold-light);
  margin: 16px auto 0;
}

/* ==========================================================================
   1. CURTAIN INTRO & "OPEN THE INVITATION"
   ========================================================================== */
#curtain-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  z-index: 99999;
  background-color: #1A1412;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s ease;
}

#curtain-intro.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.curtain-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 1;
}

.curtain-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
  pointer-events: none;
}

.open-invitation-btn {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  animation: pulseButton 2.5s infinite ease-in-out;
}

.open-invitation-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(231, 204, 160, 0.6);
  transition: var(--transition-smooth);
}

.open-invitation-circle svg {
  width: 28px;
  height: 28px;
  fill: #E63956;
}

.open-invitation-text {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.curtain-skip-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(231, 204, 160, 0.4);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.curtain-skip-btn:hover {
  background: var(--gold);
  color: #FFFFFF;
}

/* ==========================================================================
   2. HERO NAME REVEAL SCREEN
   ========================================================================== */
.hero-reveal-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--background);
  padding: 80px 20px;
  overflow: hidden;
}

.hero-card-frame {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 36px 42px;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid var(--gold);
  border-radius: 32px;
  box-shadow: 0 15px 45px rgba(50, 36, 28, 0.08), 0 0 30px rgba(212, 160, 60, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-card-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 160, 60, 0.45);
  border-radius: 24px;
  pointer-events: none;
}

.hero-reveal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 740px;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
}

.hero-auspicious-symbol,
.hero-grandparents-title,
.hero-invite-lead,
.hero-groom-highlight,
.gold-divider-line,
.hero-blessing-text,
.hero-presence-text,
.hero-scroll-indicator {
  opacity: 0;
}

.hero-auspicious-symbol {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.hero-grandparents-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: 0.05em;
  margin: 0 0 6px;
  line-height: 1.3;
}

.hero-grandparents-title .hero-amp {
  font-family: var(--font-script);
  font-size: 1.45em;
  color: var(--gold);
  font-weight: 400;
  vertical-align: -2px;
}

.hero-invite-lead {
  font-family: var(--font-serif);
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  font-style: italic;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 12px;
}

.hero-groom-highlight {
  margin: 8px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-groom-name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5.5vw, 3.1rem);
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  text-shadow: 0 2px 14px rgba(212, 160, 60, 0.25);
  line-height: 1.15;
}

.hero-parents-line {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2.4vw, 1.15rem);
  color: var(--foreground);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}

.hero-blessing-text {
  font-family: var(--font-serif);
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
  font-style: italic;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 6px;
}

.hero-presence-text {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2.3vw, 1.1rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto 10px;
  text-align: center;
}

.hero-scroll-indicator {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.hero-scroll-text {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.hero-scroll-arrow {
  animation: scrollBounce 1.6s infinite ease-in-out;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 768px) {
  .hero-card-frame {
    padding: 36px 20px 30px;
    border-radius: 24px;
  }
  .hero-card-frame::before {
    inset: 6px;
    border-radius: 18px;
  }
}

/* ==========================================================================
   2B. COUPLE REVEAL SECTION ("Dipen & Shreya")
   ========================================================================== */
.couple-reveal-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--background);
  padding: 90px 20px 70px;
  overflow: hidden;
}

.couple-reveal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.couple-names-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-name-script {
  font-family: var(--font-script);
  font-size: clamp(4.8rem, 12.5vw, 8.5rem);
  color: var(--gold);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 0 35px rgba(212, 160, 60, 0.22);
}

.couple-ampersand-sign {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--muted-foreground);
  font-style: italic;
  margin: 4px 0;
}

.couple-families-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  margin: 8px 0 0;
}

.couple-scroll-indicator {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

/* ==========================================================================
   3. SAVE THE DATE — FULLBLEED SCRATCH REVEAL
   ========================================================================== */
.save-date-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
}

.save-date-bg-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.save-date-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.save-date-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 26, 18, 0.35);
  z-index: 2;
}

.save-date-inner-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  max-width: 600px;
}

.save-date-title-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
}

.save-date-couple-script {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--gold-light);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 24px;
}

/* Floating Flower Petals Canvas */
.floating-petals-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  opacity: 0.9;
}

.scratch-wrapper-box {
  position: relative;
  width: min(92vw, 440px);
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 160, 60, 0.25);
  user-select: none;
  touch-action: none;
  cursor: crosshair;
}

.scratch-under-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(42, 28, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 0 15px;
}

.scratch-revealed-date {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5.2vw, 2.2rem);
  color: var(--gold-light);
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 2px 15px rgba(212, 160, 60, 0.4);
}

#scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 2;
  border-radius: var(--radius-md);
  touch-action: none;
}

.scratch-hint-text {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  animation: pulseHint 2s infinite ease-in-out;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.scratch-passed-msg {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   4. BRIDE & GROOM FAMILY DETAILS SECTION
   ========================================================================== */
.family-section {
  width: 100%;
  background-color: var(--card);
  padding: 100px 20px 90px;
  position: relative;
}

.family-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--gold);
  border-radius: 130px 130px 24px 24px;
  padding: 44px 30px 38px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.family-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 160, 60, 0.45);
  border-radius: 122px 122px 16px 16px;
  pointer-events: none;
}

.family-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 160, 60, 0.15);
}

.family-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.family-crest-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFDF8, #F7EDE0);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(212, 160, 60, 0.15);
}

.family-role-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.family-member-title {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 7vw, 4.4rem);
  color: var(--foreground);
  line-height: 1.05;
  margin-bottom: 6px;
}

.family-member-fullname {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.family-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 20px;
  width: 75%;
}

.family-card-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.family-card-divider .symbol {
  color: var(--gold);
  font-size: 0.85rem;
}

.family-relation-tag {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  font-weight: 600;
  margin-bottom: 12px;
}

.family-parent-names {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--foreground);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.family-parent-names .parent-name {
  margin: 2px 0;
}

.family-parent-names .parent-connector {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
  margin: 4px 0;
}

.family-grandparents-block {
  background: linear-gradient(135deg, rgba(243, 237, 228, 0.65), rgba(249, 246, 240, 0.95));
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: auto;
  width: 100%;
  border: 1px solid rgba(212, 160, 60, 0.35);
}

.family-grandparents-tag {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 5px;
}

.family-grandparents-names {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--foreground);
}

.family-grandparents-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--muted-foreground);
  margin-top: 3px;
}

@media (max-width: 768px) {
  .family-section {
    padding: 70px 15px 60px;
  }
  .family-card {
    border-radius: 90px 90px 20px 20px;
    padding: 36px 20px 30px;
  }
  .family-card::before {
    border-radius: 82px 82px 14px 14px;
  }
  .family-member-title {
    font-size: 3.2rem;
  }
}

/* ==========================================================================
   2C. OUR PARENTS
   ========================================================================== */
.parents-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 45% at 50% 100%, rgba(212, 160, 60, 0.10), transparent 70%),
    var(--card);
}

.parents-intro-text {
  max-width: 540px;
  margin: 14px auto 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.parents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  max-width: 1020px;
  margin: 40px auto 0;
}

.parents-card {
  margin: 0;
  text-align: center;
}

/* Soft arched frame with an offset gold outline, echoing the story photos */
.parents-photo {
  position: relative;
  isolation: isolate;
  padding: 10px;
  background: #FFFDF8;
  border: 1px solid rgba(212, 160, 60, 0.45);
  border-radius: 180px 180px 18px 18px / 120px 120px 18px 18px;
  box-shadow: var(--shadow-lg);
}

.parents-photo::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  z-index: -1;
  border: 1px solid var(--gold);
  border-radius: inherit;
  opacity: 0.55;
}

.parents-card:nth-child(2) .parents-photo::before {
  inset: -14px -14px 14px 14px;
}

.parents-photo::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 248, 230, 0.75);
  border-radius: 165px 165px 8px 8px / 108px 108px 8px 8px;
  pointer-events: none;
}

.parents-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 172px 172px 10px 10px / 112px 112px 10px 10px;
}

.parents-card figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}

.parents-ornament {
  font-size: 0.85rem;
  line-height: 1;
  color: var(--gold);
}

.parents-label {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.2;
  color: var(--gold-dark);
}

html[lang="hi"] .parents-label {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .parents-section {
    padding: 80px 16px 90px;
  }

  .parents-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 480px;
  }

  .parents-photo::before,
  .parents-card:nth-child(2) .parents-photo::before {
    inset: -10px 10px 10px -10px;
  }

  .parents-card figcaption {
    margin-top: 24px;
  }
}

/* ==========================================================================
   3B. OUR STORY — TEN CHAPTERS
   ========================================================================== */
.story-section {
  position: relative;
  width: 100%;
  padding: 100px 20px 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(212, 160, 60, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(212, 160, 60, 0.08), transparent 70%),
    var(--background);
}

.story-intro-text {
  max-width: 560px;
  margin: 14px auto 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.story-chapters {
  position: relative;
  max-width: 1080px;
  margin: 30px auto 0;
}

/* Gold thread running through every chapter */
.story-chapters::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 120px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(212, 160, 60, 0.55) 4%, rgba(212, 160, 60, 0.55) 96%, transparent);
}

.story-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 104px 1fr;
  grid-template-areas: "photo medal text";
  align-items: center;
  margin-bottom: 110px;
}

.story-chapter.is-reverse {
  grid-template-areas: "text medal photo";
}

/* Arched jharokha photo frame with offset gold outline */
.story-photo {
  grid-area: photo;
  justify-self: end;
  position: relative;
  isolation: isolate;
  width: min(100%, 390px);
  margin: 0;
  padding: 10px;
  background: #FFFDF8;
  border: 1px solid rgba(212, 160, 60, 0.45);
  border-radius: 220px 220px 18px 18px;
  box-shadow: var(--shadow-lg);
}

.story-chapter.is-reverse .story-photo {
  justify-self: start;
}

.story-photo::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  z-index: -1;
  border: 1px solid var(--gold);
  border-radius: 220px 220px 18px 18px;
  opacity: 0.55;
}

.story-chapter.is-reverse .story-photo::before {
  inset: -16px -16px 16px 16px;
}

.story-photo::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 248, 230, 0.75);
  border-radius: 200px 200px 8px 8px;
  pointer-events: none;
}

.story-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 210px 210px 10px 10px;
}

/* Roman numeral medallion on the gold thread */
.story-medallion {
  grid-area: medal;
  justify-self: center;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px var(--background), 0 0 0 6px rgba(212, 160, 60, 0.4), var(--shadow-sm);
}

.story-medallion span {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
}

.story-text {
  grid-area: text;
  justify-self: start;
  max-width: 420px;
  text-align: left;
}

.story-chapter.is-reverse .story-text {
  justify-self: end;
  text-align: right;
}

.story-chapter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-dark);
}

.story-chapter-label::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.story-chapter.is-reverse .story-chapter-label {
  flex-direction: row-reverse;
}

.story-chapter-title {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--foreground);
}

.story-chapter-lead {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--gold-dark);
}

.story-chapter-body {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.85;
  color: #5E5048;
}

.story-chapter-close {
  display: inline-block;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 160, 60, 0.35);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--foreground);
}

/* Chapter X — closing card */
.story-finale {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 48px 52px;
  text-align: center;
  background: #FFFDF8;
  border: 1px solid rgba(212, 160, 60, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.story-finale::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 160, 60, 0.22);
  border-radius: 18px;
  pointer-events: none;
}

.story-finale .story-medallion {
  margin: -88px auto 22px;
}

.story-finale .story-chapter-label {
  justify-content: center;
}

.story-finale .story-chapter-label::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.story-finale .story-chapter-body {
  max-width: 640px;
  margin-inline: auto;
}

.story-finale-photo {
  margin: 28px auto 30px;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(212, 160, 60, 0.4);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.story-finale-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}

.story-quote {
  position: relative;
  max-width: 640px;
  margin: 34px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 160, 60, 0.35);
}

.story-quote::before {
  content: "❖";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  font-size: 0.9rem;
  line-height: 24px;
  color: var(--gold);
  background: #FFFDF8;
}

.story-quote p {
  margin-bottom: 14px;
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.35;
  color: var(--gold);
}

.story-quote cite {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

@media (max-width: 768px) {
  .story-section {
    padding: 80px 16px 90px;
  }

  .story-chapters::before {
    display: none;
  }

  .story-chapter,
  .story-chapter.is-reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "medal" "text";
    margin-bottom: 76px;
  }

  .story-photo,
  .story-chapter.is-reverse .story-photo {
    justify-self: center;
    width: min(84%, 340px);
  }

  .story-photo::before,
  .story-chapter.is-reverse .story-photo::before {
    inset: -10px 10px 10px -10px;
  }

  .story-medallion {
    margin-top: -32px;
  }

  .story-text,
  .story-chapter.is-reverse .story-text {
    justify-self: center;
    max-width: 520px;
    margin-top: 18px;
    text-align: center;
  }

  .story-chapter-label,
  .story-chapter.is-reverse .story-chapter-label {
    flex-direction: row;
    justify-content: center;
  }

  .story-chapter-label::before,
  .story-chapter-label::after,
  .story-finale .story-chapter-label::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--gold);
  }

  .story-finale {
    padding: 48px 20px 40px;
  }

  .story-finale .story-medallion {
    margin: -80px auto 20px;
  }
}

/* ==========================================================================
   5. WEDDING TIMELINE
   ========================================================================== */
.timeline-section {
  min-height: 100vh;
  width: 100%;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 90px 20px;
}

.timeline-outer-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-top: 40px;
}

.timeline-vertical-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(50, 36, 28, 0.2);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline-vertical-line {
    left: 24px;
  }
}

.timeline-event-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

.timeline-event-row.row-left {
  flex-direction: row;
}

.timeline-event-row.row-right {
  flex-direction: row-reverse;
}

.timeline-content-box {
  width: calc(50% - 2rem);
}

.timeline-event-row.row-left .timeline-content-box {
  text-align: right;
  padding-right: 16px;
}

.timeline-event-row.row-right .timeline-content-box {
  text-align: left;
  padding-left: 16px;
}

@media (max-width: 768px) {
  .timeline-event-row,
  .timeline-event-row.row-left,
  .timeline-event-row.row-right {
    flex-direction: row !important;
  }
  .timeline-content-box,
  .timeline-event-row.row-left .timeline-content-box,
  .timeline-event-row.row-right .timeline-content-box {
    width: calc(100% - 56px);
    margin-left: 56px;
    text-align: left !important;
    padding-left: 12px !important;
    padding-right: 0 !important;
  }
}

.timeline-event-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.25;
}

.timeline-event-time {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.timeline-event-venue {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-dark);
  font-weight: bold;
}

.timeline-event-theme {
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.timeline-center-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .timeline-center-node {
    left: 24px;
  }
}

.timeline-connector-bar {
  width: calc(50% - 2rem);
}

.timeline-event-row.row-left .timeline-connector-bar {
  padding-left: 16px;
}

.timeline-event-row.row-right .timeline-connector-bar {
  padding-right: 16px;
}

.timeline-bar-inner {
  height: 1px;
  background: rgba(50, 36, 28, 0.2);
  width: 32px;
}

.timeline-event-row.row-right .timeline-bar-inner {
  margin-left: auto;
}

@media (max-width: 768px) {
  .timeline-connector-bar {
    display: none;
  }
}

/* ==========================================================================
   5. CAPTURED MOMENTS — OUR GALLERY (INTERACTIVE 5-CARD CAROUSEL)
   ========================================================================== */
.gallery-section {
  position: relative;
  width: 100%;
  padding: 90px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--background) 0%, #E8F0F7 50%, var(--background) 100%);
}

.gallery-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  height: 480px;
  margin: 0 auto;
  perspective: 1200px;
  user-select: none;
  touch-action: pan-y;
}

.gallery-cards-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.gallery-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 430px;
  margin-left: -150px;
  margin-top: -215px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.55s ease,
              border 0.3s ease;
  will-change: transform, opacity;
  background-color: #1A1412;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Navigation Arrow Controls */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--gold);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.carousel-nav-btn:hover {
  background: var(--gold);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 28px rgba(212, 160, 60, 0.45);
}

.carousel-nav-btn.btn-prev { left: 15px; }
.carousel-nav-btn.btn-next { right: 15px; }

.carousel-dots-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 160, 60, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  width: 24px;
  border-radius: var(--radius-pill);
  background: var(--gold);
}

@media (max-width: 768px) {
  .gallery-carousel-wrapper {
    height: 380px;
  }

  .gallery-card {
    width: 240px;
    height: 340px;
    margin-left: -120px;
    margin-top: -170px;
  }

  .carousel-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .carousel-nav-btn.btn-prev { left: 8px; }
  .carousel-nav-btn.btn-next { right: 8px; }
}

/* ==========================================================================
   6. WEDDING VENUE — WE ARE UNITING AT
   ========================================================================== */
.venue-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--background) 0%, #DCE8F3 30%, #C9DDF0 50%, #DCE8F3 70%, var(--background) 100%);
}

.venue-card-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.travel-details {
  width: min(860px, 100%);
  margin: 30px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  grid-template-rows: repeat(3, auto);
  border: 1px solid rgba(212, 160, 60, 0.42);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 45px rgba(48, 64, 82, 0.09);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.travel-detail {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 25px 24px;
  text-align: left;
}

.travel-detail:nth-child(odd) {
  border-right: 1px solid rgba(212, 160, 60, 0.25);
}

.travel-detail:nth-child(1),
.travel-detail:nth-child(2) {
  border-bottom: 1px solid rgba(212, 160, 60, 0.25);
}

.travel-detail:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.travel-detail:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid rgba(212, 160, 60, 0.25);
}

.travel-detail:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
  border-right: 1px solid rgba(212, 160, 60, 0.25);
}

.travel-detail:nth-child(4) {
  grid-column: 2;
  grid-row: 1 / 4;
  align-content: center;
  border-right: 0;
}

.travel-detail > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 160, 60, 0.5);
  border-radius: 50%;
  color: var(--gold-dark);
  background: rgba(255, 252, 245, 0.88);
  font-size: 1rem;
}

.travel-detail h3 {
  margin: 0 0 7px;
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  font-weight: 600;
  line-height: 1.2;
}

.travel-detail p {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.52;
}

.travel-detail p span {
  display: inline-block;
  margin-inline: 0.25rem;
  color: var(--gold);
}

.travel-contacts {
  display: grid;
  gap: 12px;
}

.travel-contact {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 160, 60, .25);
  border-radius: 10px;
  background: rgba(255, 253, 247, .84);
}

.travel-contact strong {
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.3;
}

.travel-contact-event {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: #302821;
}

.travel-contact a {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 8px;
  color: #302821;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color .25s ease;
}

.travel-contact a::before {
  content: "\260E";
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-size: .86rem;
}

.travel-contact a span {
  min-width: 54px;
  color: #66574c;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.travel-contact a:hover,
.travel-contact a:focus-visible {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.venue-map-box {
  width: 100%;
  max-width: 800px;
  height: 340px;
  margin: 30px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-light);
  box-shadow: var(--shadow-lg);
  background-color: #FFFFFF;
}

@media (max-width: 640px) {
  .venue-section {
    padding: 72px 15px;
  }

  .travel-details {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    margin-block: 24px;
  }

  .travel-detail {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 17px;
    text-align: left;
  }

  .travel-detail:nth-child(odd) {
    border-right: 0;
  }

  .travel-detail:nth-child(1),
  .travel-detail:nth-child(2),
  .travel-detail:nth-child(3),
  .travel-detail:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    align-content: initial;
    border-right: 0;
  }

  .travel-detail:not(:last-child) {
    border-bottom: 1px solid rgba(212, 160, 60, 0.25);
  }

  .travel-detail > i {
    width: 38px;
    height: 38px;
  }

  .travel-detail h3 {
    font-size: 1.15rem;
  }

  .travel-detail p {
    font-size: 1rem;
  }

  .travel-contact {
    padding: 13px 14px;
  }

  .travel-contact strong {
    font-size: 1.18rem;
  }

  .travel-contact a {
    font-size: 1.05rem;
  }
}

.venue-map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.btn-get-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-get-directions:hover {
  background: var(--gold);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(212, 160, 60, 0.4);
}

/* ==========================================================================
   7. CHERISHED MEMORIES — MOMENTS TOGETHER (INTERACTIVE TRIO CAROUSEL)
   ========================================================================== */
.moments-section {
  position: relative;
  width: 100%;
  padding: 90px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--background) 0%, #E8F0F7 50%, var(--background) 100%);
}

.moments-carousel-wrapper {
  position: relative;
  max-width: 1100px;
  height: 480px;
  margin: 0 auto;
  perspective: 1200px;
  user-select: none;
  touch-action: pan-y;
}

.moments-trio-flex {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.moment-card-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 430px;
  margin-left: -150px;
  margin-top: -215px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.55s ease,
              border 0.3s ease;
  will-change: transform, opacity;
  background-color: #1A1412;
}

.moment-card-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (max-width: 768px) {
  .moments-carousel-wrapper {
    height: 380px;
  }

  .moment-card-box {
    width: 240px;
    height: 340px;
    margin-left: -120px;
    margin-top: -170px;
  }
}

/* ==========================================================================
   8. WEDDING FUNCTIONS (THE FUNCTIONS)
   ========================================================================== */
.functions-section {
  width: 100%;
  background-color: var(--background);
  padding-bottom: 60px;
}

.functions-scroll-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 4vw 40px;
  scrollbar-width: none;
}

.functions-scroll-row::-webkit-scrollbar {
  display: none;
}

.function-card-item {
  position: relative;
  flex: 0 0 340px;
  width: 340px;
  max-width: min(90vw, 380px);
  height: auto;
  min-height: unset;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  background-color: #1A1412;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.function-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .functions-scroll-row {
    flex-direction: column;
    align-items: center;
    padding: 0 20px 40px;
    gap: 28px;
  }
  .function-card-item {
    flex: none;
    width: 100%;
    max-width: 400px;
    height: auto;
  }
}

.function-bg-video,
.function-bg-img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.function-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
  border-radius: var(--radius-md);
}

.function-bottom-title {
    display: none;
  position: absolute;
  bottom: 35px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
}

.function-title-script {
  font-family: var(--font-script);
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--gold);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

/* ========================================================================== 
   9. FAREWELL BRUNCH
   ========================================================================== */
.farewell-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(70px, 9vw, 110px) 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(212, 160, 60, .11), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(66, 104, 137, .1), transparent 26%),
    linear-gradient(180deg, #fdfaf5 0%, #f7f0e6 52%, #fdfaf5 100%);
}
.farewell-section::before,
.farewell-section::after {
  content: "";
  position: absolute;
  width: clamp(180px, 26vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(212, 160, 60, .2);
  border-radius: 50%;
  pointer-events: none;
}
.farewell-section::before { left: clamp(-220px, -12vw, -90px); top: 8%; }
.farewell-section::after { right: clamp(-220px, -12vw, -90px); bottom: 7%; }
.farewell-frame {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding: clamp(48px, 7vw, 78px) clamp(22px, 7vw, 72px);
  border: 1px solid rgba(212, 160, 60, .48);
  border-radius: 150px 150px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .9), rgba(255, 253, 248, .84)),
    url("../images/bhanwar.webp") center / cover no-repeat;
  box-shadow: 0 30px 85px rgba(30, 28, 24, .2), inset 0 0 0 9px rgba(212, 160, 60, .045);
  text-align: center;
  backdrop-filter: blur(10px);
}
.farewell-frame::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(212, 160, 60, .18);
  border-radius: 135px 135px 15px 15px;
  pointer-events: none;
}
/* .farewell-heading h2 {
  margin: .35rem 0 .8rem;
  color: #34261f;
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
} */
.farewell-heading > p:last-child {
  width: min(590px, 100%);
  margin: 0 auto;
  color: #65564c;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-style: italic;
  line-height: 1.6;
}
.farewell-couple {
  margin: clamp(30px, 5vw, 46px) auto 22px;
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.farewell-couple span { color: var(--gold-dark); margin-inline: .35rem; }
.farewell-schedule {
  width: min(610px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  border-top: 1px solid rgba(212, 160, 60, .4);
  border-bottom: 1px solid rgba(212, 160, 60, .4);
}
.farewell-meta,
.farewell-date {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 20px 10px;
}
.farewell-date { border-inline: 1px solid rgba(212, 160, 60, .28); }
.farewell-meta span {
  color: var(--muted-foreground);
  font-family: var(--font-serif);
  font-size: .92rem;
}
.farewell-meta strong {
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: clamp(.92rem, 1.5vw, 1.08rem);
  font-weight: 500;
}
.farewell-date strong {
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: .9;
}
.farewell-date sup { font-size: .35em; vertical-align: top; }
.farewell-date span,
.farewell-venue > span {
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.farewell-venue {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: clamp(26px, 4vw, 38px) auto 0;
}
.farewell-venue > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 160, 60, .48);
  border-radius: 50%;
  color: var(--gold-dark);
  font-size: 1rem;
}
.farewell-venue strong {
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  font-style: italic;
  font-weight: 500;
}
.farewell-venue small {
  color: var(--foreground);
  font-family: var(--font-serif);
  font-size: 1.02rem;
}
.farewell-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 28px auto 20px;
  color: var(--gold-dark);
}
.farewell-divider::before,
.farewell-divider::after {
  content: "";
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.farewell-divider::after { transform: scaleX(-1); }
.farewell-note {
  margin: 0;
  color: #65564c;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-style: italic;
  line-height: 1.55;
}

/* Premium farewell treatment */
.farewell-frame {
  border-color: rgba(235, 192, 103, .86);
  background:
    linear-gradient(180deg, rgba(17, 27, 39, .72), rgba(26, 31, 38, .61) 48%, rgba(21, 22, 26, .8)),
    url("../images/bhanwar.webp") center / cover no-repeat;
  box-shadow:
    0 34px 90px rgba(29, 35, 43, .3),
    0 0 0 8px rgba(255, 250, 238, .76),
    0 0 0 9px rgba(212, 160, 60, .34),
    inset 0 0 76px rgba(4, 12, 20, .4);
}
.farewell-frame::before {
  border-color: rgba(235, 192, 103, .58);
}
.farewell-frame::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 27px;
  z-index: 1;
  width: 64px;
  height: 30px;
  transform: translateX(-50%);
  color: #efcf8d;
  background: rgba(25, 31, 38, .76);
  font-size: .9rem;
  line-height: 30px;
  text-align: center;
}
.farewell-frame > * {
  position: relative;
  z-index: 2;
}
.farewell-heading .section-eyebrow {
  color: #efcf8d;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.farewell-heading h2 {
  margin: .35rem 0 .8rem;
  color: #fff8eb;
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  text-shadow: 0 5px 24px rgba(0, 0, 0, .55);
}
.farewell-heading > p:last-child {
  color: rgba(255, 248, 235, .9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
}
.farewell-couple {
  color: #fff8eb;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .52);
}
.farewell-couple span { color: #efcf8d; }
.farewell-schedule {
  border: 1px solid rgba(235, 192, 103, .52);
  border-radius: 14px;
  background: rgba(7, 18, 29, .54);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .025), 0 16px 38px rgba(0, 0, 0, .16);
  backdrop-filter: blur(5px);
  overflow: hidden;
}
.farewell-date { border-color: rgba(235, 192, 103, .4); }
.farewell-meta span,
.farewell-date span,
.farewell-venue > span { color: rgba(255, 248, 235, .74); }
.farewell-meta strong,
.farewell-venue small { color: #fff8eb; }
.farewell-date strong,
.farewell-venue strong,
.farewell-divider { color: #efcf8d; }
.farewell-venue > i {
  border-color: rgba(235, 192, 103, .74);
  color: #efcf8d;
  background: rgba(7, 18, 29, .52);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.farewell-note {
  color: rgba(255, 248, 235, .92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .58);
}
@media (max-width: 640px) {
  .farewell-section {
    min-height: auto;
    padding: 64px 14px;
    background:
      radial-gradient(circle at 12% 16%, rgba(212, 160, 60, .11), transparent 24%),
      radial-gradient(circle at 88% 82%, rgba(66, 104, 137, .1), transparent 26%),
      linear-gradient(180deg, #fdfaf5 0%, #f7f0e6 52%, #fdfaf5 100%);
  }
  .farewell-frame { padding: 52px 18px 44px; border-radius: 76px 76px 18px 18px; }
  .farewell-frame::before { inset: 9px; border-radius: 68px 68px 12px 12px; }
  .farewell-frame::after { top: 16px; }
  /* .farewell-heading h2 { font-size: clamp(2.45rem, 12.5vw, 3.5rem); } */
  .farewell-couple { letter-spacing: .11em; }
  .farewell-schedule { grid-template-columns: 1fr 1.05fr 1fr; }
  .farewell-meta, .farewell-date { padding: 17px 5px; }
  .farewell-meta span { font-size: .8rem; }
  .farewell-meta strong { font-size: .82rem; line-height: 1.35; }
  .farewell-date strong { font-size: 3rem; }
  .farewell-date span { font-size: .56rem; letter-spacing: .12em; }
  .farewell-venue strong { font-size: 1.8rem; }
}

/* ========================================================================== 
   10. RSVP SECTION
   ========================================================================== */
.rsvp-section {
  padding: 80px 20px;
  background-color: var(--card);
}

.rsvp-form-container {
  max-width: 460px;
  margin: 0 auto;
}

.rsvp-form-group {
  margin-bottom: 20px;
}

.rsvp-form-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--muted-foreground);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.rsvp-form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  color: var(--foreground);
  transition: var(--transition-smooth);
}

.rsvp-form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 60, 0.25);
  outline: none;
}

select.rsvp-form-input {
  cursor: pointer;
}

select.rsvp-form-input option {
  background-color: #FAF6F0;
  color: #2D231E;
  font-family: var(--font-serif);
  padding: 8px 12px;
}

.btn-send-rsvp {
  width: 100%;
  padding: 14px 20px;
  background-color: var(--gold);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-send-rsvp:hover {
  background-color: #FFFFFF;
  color: var(--gold-dark);
}

/* ==========================================================================
   11. WEDDING FOOTER
   ========================================================================== */
.wedding-footer {
  position: relative;
  overflow: hidden;
  padding: 90px 20px 44px;
  text-align: center;
  color: #EFE3CF;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(212, 160, 60, 0.18), transparent 70%),
    linear-gradient(180deg, #2B1E17 0%, #1F1511 100%);
}

/* Fine gold border along the top edge */
.wedding-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0.85;
}

.wedding-footer-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

/* Monogram seal with a double gold ring */
.footer-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px #271B15, 0 0 0 7px rgba(212, 160, 60, 0.45), 0 12px 30px rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at 35% 30%, rgba(243, 226, 196, 0.12), transparent 65%);
}

.footer-monogram span {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-light);
}

.footer-monogram em {
  font-family: var(--font-script);
  font-size: 1.6rem;
  font-style: normal;
  line-height: 1;
  color: var(--gold);
  margin-top: 6px;
}

.footer-invocation {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(231, 204, 160, 0.75);
}

.footer-couple {
  margin-bottom: 6px;
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--gold);
}

.footer-couple span {
  font-size: 0.7em;
  color: var(--gold-light);
}

.footer-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(239, 227, 207, 0.8);
}

.footer-date span {
  margin-inline: 0.4em;
  color: var(--gold);
}

.footer-ornament {
  position: relative;
  width: min(280px, 70%);
  margin: 28px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 60, 0.7), transparent);
}

.footer-ornament span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 12px;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--gold);
  background: #251A14;
}

.footer-note {
  max-width: 520px;
  margin: 0 auto 34px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-style: italic;
  line-height: 1.7;
  color: #F3E8D6;
}

.footer-families {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 620px;
  margin: 0 auto 36px;
  padding: 22px 26px;
  border: 1px solid rgba(212, 160, 60, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.footer-family {
  display: grid;
  gap: 6px;
}

.footer-family-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-family strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: #F3E8D6;
}

.footer-family-divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(212, 160, 60, 0.6), transparent);
}

.footer-signoff {
  margin-bottom: 30px;
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.3;
  color: var(--gold-light);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid rgba(212, 160, 60, 0.45);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-top-link:hover,
.footer-top-link:focus-visible {
  background-color: rgba(212, 160, 60, 0.15);
  color: #FFF4DF;
}

@media (max-width: 576px) {
  .wedding-footer {
    padding: 72px 16px 40px;
  }

  .footer-families {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px;
  }

  .footer-family-divider {
    width: 56px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(212, 160, 60, 0.6), transparent);
  }

  .footer-date {
    letter-spacing: 0.2em;
  }
}

/* ==========================================================================
   12. LANGUAGE TOGGLE (ENGLISH ⇄ HINDI)
   ========================================================================== */
.lang-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 100000; /* above the curtain intro so guests can pick a language first */
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(231, 204, 160, 0.5);
  border-radius: var(--radius-pill);
  background: rgba(26, 20, 18, 0.62);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-toggle-btn {
  min-width: 46px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-toggle-btn[lang="hi"] {
  font-size: 0.8rem;
  letter-spacing: normal;
}

.lang-toggle-btn:hover {
  color: #FFF4DF;
}

.lang-toggle-btn.is-active {
  background: var(--gold-gradient);
  color: #2A1D12;
}

.lang-toggle-btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

@media (max-width: 576px) {
  .lang-toggle {
    top: 12px;
    left: 12px;
  }
}

/* ==========================================================================
   13. HINDI TYPOGRAPHY ADJUSTMENTS
   Devanagari letters join together, so wide letter-spacing breaks words,
   and the script/serif fonts need a little more line height for matras.
   ========================================================================== */
html[lang="hi"] [data-i18n] {
  letter-spacing: normal;
}

html[lang="hi"] .section-script-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.45;
}

html[lang="hi"] .save-date-couple-script {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.45;
}

html[lang="hi"] .scratch-revealed-date {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  line-height: 1.5;
}

html[lang="hi"] .hero-groom-name,
html[lang="hi"] .story-chapter-title,
html[lang="hi"] .timeline-event-title,
html[lang="hi"] .hero-grandparents-title {
  line-height: 1.45;
}

html[lang="hi"] .story-quote p {
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  line-height: 1.75;
}

html[lang="hi"] .footer-couple {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.4;
}

html[lang="hi"] .footer-signoff {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.5;
}

html[lang="hi"] .font-script.fs-2,
html[lang="hi"] .font-script.fs-3 {
  line-height: 1.5;
}

/* ==========================================================================
   14. MUSIC ON / OFF TOGGLE
   ========================================================================== */
.music-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000; /* above petals, below the curtain intro */
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(231, 204, 160, 0.6);
  border-radius: 50%;
  background: rgba(26, 20, 18, 0.7);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-light);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.music-toggle:hover {
  transform: scale(1.06);
}

.music-toggle:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Soft gold pulse ring while music plays */
.music-toggle.is-playing::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: musicPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes musicPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Equalizer bars (shown while playing) */
.music-toggle-bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-toggle-bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--gold-gradient);
  transform-origin: bottom;
  animation: musicBar 1s ease-in-out infinite;
}

.music-toggle-bars i:nth-child(2) { animation-delay: -0.35s; }
.music-toggle-bars i:nth-child(3) { animation-delay: -0.7s; }
.music-toggle-bars i:nth-child(4) { animation-delay: -0.15s; }

@keyframes musicBar {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.music-toggle.is-playing .music-toggle-bars {
  display: flex;
}

/* Music note with a strike-through (shown while paused) */
.music-toggle-note {
  position: relative;
  font-size: 1.25rem;
  line-height: 1;
}

.music-toggle-note::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  right: -3px;
  height: 1.5px;
  background: var(--gold-light);
  transform: rotate(-45deg);
}

.music-toggle.is-playing .music-toggle-note {
  display: none;
}

@media (max-width: 576px) {
  .music-toggle {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing::before,
  .music-toggle-bars i {
    animation: none;
  }
}
