/* ==========================================================================
   NAVIN & LEKSHMY — ROYAL WEDDING INVITATION
   Stylesheet
   --------------------------------------------------------------------------
   Table of contents:
     1.  Fonts & Reset
     2.  Design Tokens
     3.  Base Typography
     4.  Utility / Gold Text / Ornaments
     5.  Intro Splash
     6.  Bottom Navigation
     7.  Hero Section
     8.  Page Sections (shared)
     9.  Invitation / Save the Date
    10.  Events & Schedule
    11.  Families
    12.  Footer
    13.  Music Toggle
    14.  Responsive
    15.  Reduced Motion / Accessibility
   ========================================================================== */


/* ==========================================================================
   1. FONTS & RESET
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}


/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */

:root {
  /* --- Palette --- */
  --royal-navy: #081B3A;
  --dark-navy: #051224;
  --mid-navy: #0c2148;
  --gold: #D4AF37;
  --champagne-gold: #E7C873;
  --gold-deep: #9c7a26;
  --gold-pale: #f6e9bd;
  --ivory: #F9F8F4;
  --ivory-dim: #ece6d6;

  /* --- Derived / supporting --- */
  --navy-light: #12294f;
  --navy-glass: rgba(12, 30, 61, 0.65);
  --navy-card: rgba(8, 27, 58, 0.75);
  --line-hairline: rgba(212, 175, 55, 0.3);
  --shadow-soft: rgba(0, 0, 0, 0.45);

  /* --- Gradients --- */
  --gradient-gold: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold) 22%, var(--gold-pale) 50%, var(--gold) 78%, var(--gold-deep) 100%);
  --gradient-navy: radial-gradient(ellipse at 50% 0%, var(--navy-light) 0%, var(--royal-navy) 45%, var(--dark-navy) 100%);
  --gradient-velvet: linear-gradient(180deg, var(--dark-navy) 0%, var(--royal-navy) 50%, var(--dark-navy) 100%);

  /* --- Typography --- */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Libre Baskerville', 'Georgia', serif;
  --font-quintessential: 'Quintessential', cursive;

  /* --- Motion --- */
  --ease-royal: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-silk: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-slow: 1.4s;
  --dur-med: 0.9s;
  --dur-fast: 0.45s;

  /* --- Layout --- */
  --content-max: 820px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --bnav-height: 72px;
}


/* ==========================================================================
   3. BASE TYPOGRAPHY
   ========================================================================== */

body {
  background: var(--dark-navy);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  padding-bottom: var(--bnav-height);
}

body.splash-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
}

.super-font {
  font-family: var(--font-script) !important;
  font-weight: 400;
  line-height: 1;
}

.super-size {
  font-size: clamp(3.5rem, min(8vw, 9vh), 5.2rem) !important;
}

.quintessential {
  font-family: 'Papyrus', 'Uncial Antiqua', 'Palatino Linotype', 'Georgia', serif !important;
  font-weight: 400;
}


/* ==========================================================================
   4. UTILITY / GOLD TEXT / ORNAMENTS
   ========================================================================== */

.gold-text {
  background-image: var(--gradient-gold);
  background-size: 220% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.gold-icon {
  color: var(--gold);
}

@keyframes shimmer {
  to {
    background-position: -220% center;
  }
}

.amp {
  display: inline-block;
  font-family: var(--font-script);
  font-style: normal;
  color: var(--champagne-gold);
  font-size: 1.1em;
}

.text-center {
  text-align: center;
}

/* --- Ornament divider: line + icon + line --- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;


  width: min(300px, 80%);
  margin-top: 0.6rem;

  margin-left: auto;
  margin-right: 1.6rem;
}



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

.section-heading .gold-icon,
.section-heading i {
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* --- Container --- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

/* --- Section titles --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--champagne-gold);
  margin-bottom: 0rem;
  letter-spacing: 0.02em;
}

.sub-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--champagne-gold);
  margin: 2.8rem 0 0.5rem;
  letter-spacing: 0.02em;
}

/* --- Star field background --- */
.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star-field::before,
.star-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(212, 175, 55, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 55%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 75%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1.2px 1.2px at 70% 35%, rgba(212, 175, 55, 0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 60%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 80%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 60% 50%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 15%, rgba(212, 175, 55, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 33% 92%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 88%, rgba(212, 175, 55, 0.35) 0%, transparent 100%),
    radial-gradient(1.2px 1.2px at 5% 45%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 47% 30%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 64% 68%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
    radial-gradient(1.4px 1.4px at 88% 40%, rgba(212, 175, 55, 0.5) 0%, transparent 100%);
}

.star-field::after {
  transform: translate(30px, 20px);
  background-image:
    radial-gradient(1px 1px at 18% 12%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1.2px 1.2px at 35% 65%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 85%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 67% 22%, rgba(212, 175, 55, 0.45) 0%, transparent 100%),
    radial-gradient(1.3px 1.3px at 80% 72%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 48%, rgba(212, 175, 55, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 38%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 43% 55%, rgba(212, 175, 55, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 8%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 95%, rgba(212, 175, 55, 0.3) 0%, transparent 100%);
  animation: star-twinkle 8s ease-in-out infinite alternate;
}

@keyframes star-twinkle {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

.star-field.small {
  opacity: 0.4;
}

/* --- CTA Buttons --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-royal);
}

.cta-primary {
  background: var(--gradient-gold);
  background-size: 200% auto;
  color: var(--dark-navy);
  border: none;
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.35);
}

.cta-primary:hover {
  background-position: right center;
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.cta-outline {
  background: transparent;
  color: var(--champagne-gold);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
}

.cta-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}


/* ==========================================================================
   5. INTRO SPLASH
   ========================================================================== */

#intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, #060f21 0%, #020509 78%);
  transition: opacity 1.4s var(--ease-royal), visibility 1.4s var(--ease-royal);
}

#intro-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.4rem;
  max-width: 480px;
}

.splash-crest {
  width: clamp(80px, 18vw, 120px);
  height: clamp(80px, 18vw, 120px);
  margin-bottom: 1.6rem;
  animation: crest-breathe 4s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.5));
}

@keyframes crest-breathe {

  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
  }

  50% {
    filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.65));
  }
}

.splash-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(231, 200, 115, 0.7);
  margin-bottom: 0.6rem;
}

.splash-names {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  margin-bottom: 0.3rem;
}

.splash-names .amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.6em;
  color: var(--champagne-gold);
}

.splash-invite {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ivory-dim);
  margin-bottom: 2.4rem;
}

.splash-progress-wrap {
  width: min(280px, 80%);
  height: 2px;
  background: rgba(212, 175, 55, 0.18);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: width 0.08s linear;
}

.splash-hint {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(231, 200, 115, 0.45);
}


/* ==========================================================================
   6. BOTTOM NAVIGATION
   ========================================================================== */

#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  height: var(--bnav-height);
  background: rgba(5, 18, 36, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-hairline);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.8s var(--ease-royal), transform 0.8s var(--ease-royal);
}

#bottom-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.5rem 0;
  cursor: pointer;
  color: rgba(231, 200, 115, 0.5);
  font-family: var(--font-display);
  transition: color 0.3s ease;
  position: relative;
}

.bnav-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-royal);
}

.bnav-item.active,
.bnav-item:hover {
  color: var(--champagne-gold);
}

.bnav-item.active::after {
  transform: scaleX(1);
}

.bnav-icon {
  font-size: 1.15rem;
  transition: transform 0.3s var(--ease-royal);
}

.bnav-item.active .bnav-icon {
  transform: translateY(-2px);
  color: var(--gold);
}

.bnav-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

#home {
  position: relative;
  /* 100dvh accounts for mobile browser address bar hide/show */
  height: 100dvh;
  min-height: 500px;
  /* absolute minimum for very small devices */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* top pad = bottom nav height so content isn't under nav bar */
  padding: clamp(1rem, 3vh, 2.5rem) 1.4rem clamp(4rem, 10vh, 6rem);
  /* background: var(--gradient-navy); */
  background: var(--navy-light);
  overflow: hidden;
}

/* --- Couple image background --- */
.hero-couple-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-couple-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  /* Nicely targets the upper-bodies/faces */
  opacity: 0.18;
  /* Keeps it subtle so text remains highly readable */
  filter: saturate(0.85);
}

/* Radial fade that makes it blend seamlessly to the dark navy background on all edges */
.hero-couple-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(5, 18, 36, 0.2) 0%, #051224 75%);
}

/* Particle canvas inside hero */
#home #particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  /* distribute space so content never overflows */
  width: 100%;
  max-width: 680px;
  /* fill available height between top/bottom padding */
  height: 100%;
  max-height: 700px;
  /* cap on very tall screens to avoid too much spread */
}

/* Sanskrit row: श्री + Ganesha + श्री */
.hero-sanskrit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap: clamp(0.6rem, 2vw, 1.4rem); */
  flex-shrink: 0;
}

.hero-sanskrit {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.2vw + 0.3vh, 1.4rem);
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* Ganesha SVG inline */
.hero-ganesha-svg {
  width: clamp(55px, 10vh, 110px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.5));
  animation: crest-breathe 5s ease-in-out infinite;
}

/* Ganesha PNG (transparent background version) */
.hero-ganesha {
  width: clamp(55px, 10vh, 110px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.55));
  animation: crest-breathe 5s ease-in-out infinite;
}

.hero-symbol {
  font-size: clamp(1.2rem, 3vh, 2rem);
  opacity: 0.92;
  animation: crest-breathe 5s ease-in-out infinite;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.75rem, 1.8vh, 1rem);
  color: var(--ivory-dim);
  letter-spacing: 0.05em;
}

.hero-names {
  font-family: var(--font-display);
  /* scales from 2rem (tiny) up to 5.5rem (large desktop), clamped by viewport height */
  font-size: clamp(2rem, min(8vw, 9vh), 5.2rem);
  font-weight: 400;
  color: var(--champagne-gold);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-with {
  font-family: var(--font-script);
  font-size: 0.52em;
  color: var(--ivory-dim);
  display: block;
  margin: 0.15rem 0;
  line-height: 1;
}

.hero-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.3rem, 1vh, 0.55rem) clamp(1rem, 3vw, 1.6rem);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.8vh, 0.95rem);
  color: var(--ivory);
  letter-spacing: 0.06em;
}

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

.hero-ornament {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  width: min(200px, 60%);
}

.hero-ornament .ornament-line {
  flex: 1;
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.72rem, 1.8vh, 1rem);
  color: var(--ivory-dim);
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Scroll cue */
.gold-arrow {
  color: var(--gold);
  animation: shimmer 7s linear infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 4vw, 2.2rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--champagne-gold);
  opacity: 0.6;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-cue .stem {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--gold), transparent);
  overflow: hidden;
  position: relative;
  margin-left: -3px;
  margin-bottom: -5px;
  animation: cue-drop 2.4s var(--ease-royal) infinite;
}

.scroll-cue .stem::after {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
  background: var(--champagne-gold);
  animation: cue-drop 2.4s var(--ease-royal) infinite;
}

@keyframes cue-drop {
  0% {
    top: -16px;
  }

  70%,
  100% {
    top: 38px;
  }
}


/* ==========================================================================
   8. PAGE SECTIONS (shared)
   ========================================================================== */

.page-section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--gradient-velvet);
}

.section-bg-1 {
  background: linear-gradient(180deg, #07152e 0%, #0a1e40 55%, #07152e 100%);
}

.section-line-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  width: min(300px, 80%);
  justify-self: center;
  padding: .5rem;

}

.section-line-wrap .section-line {
  flex: 1;
  height: 1px;
  width: min(200px, 60%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-line-wrap .section-icon {
  color: var(--champagne-gold);
}


/* Section 2 (invitation) — deep midnight blue */
#invitation {
  background: linear-gradient(180deg, #07152e 0%, #0a1e40 55%, #07152e 100%);
}

/* Section 3 (events) — rich dark maroon-navy */
#events-old {
  background: linear-gradient(180deg, #0e0d22 0%, #160c2a 50%, #0e0d22 100%);
}

/* Section 4 (families) — deep teal-navy */
#families2 {
  background: linear-gradient(180deg, #071a2e 0%, #0b2335 50%, #071a2e 100%);
}

#gallery {
  background: linear-gradient(180deg, #071a2e 0%, #0b2335 50%, #071a2e 100%);
}

/* thin gold top border on each section */
.page-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hairline), transparent);
}


/* ==========================================================================
   9. INVITATION / SAVE THE DATE
   ========================================================================== */

.digital-card {
  background: var(--navy-card);
  border: 1px solid var(--line-hairline);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 5vw, 3rem);
  text-align: center;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(8px);
}

.card-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ivory-dim);
  max-width: 460px;
  margin: 0 auto 1rem;
}

.card-couple {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--champagne-gold);
  margin-bottom: 0.5rem;
}

.card-couple .amp {
  font-size: 0.8em;
}

.card-date {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--ivory);
  margin-bottom: 1.6rem;
}

.card-blessing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ivory-dim);
  max-width: 520px;
  margin: 0 auto 0.5rem;
  line-height: 1.8;
}

.card-blessing-attr {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne-gold);
}

/* Countdown */
.countdown-wrap {
  padding-top: 1rem;
}

.countdown-label-top {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(231, 200, 115, 0.6);
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(60px, 15vw, 90px);
  font-size: clamp(0.72rem, 1.8vh, 0.95rem);
  color: var(--champagne-gold);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 5px;
  letter-spacing: 0.06em;
}

.cd-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cd-unit-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-gold);
  margin-top: 0.35rem;
}

.cd-sep {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold);
  font-weight: 600;
  padding-bottom: 1.2rem;
  opacity: 0.7;
}


/* ==========================================================================
   10. EVENTS & SCHEDULE
   ========================================================================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.event-card {
  background: var(--navy-card);
  border: 1px solid var(--line-hairline);
  border-radius: 18px;

  padding: 2.2rem 1.8rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform var(--dur-med) var(--ease-royal), box-shadow var(--dur-med) var(--ease-royal);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.event-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.4rem;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.event-card-title {
  font-size: 1.5rem;
  color: var(--champagne-gold);
  margin-bottom: 0.9rem;
}

.event-card-date,
.event-card-time,
.event-card-venue {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.6rem 0 0.2rem;
  color: var(--ivory);
}

.event-card-date i,
.event-card-time i,
.event-card-venue i {
  margin-right: 0.6rem;
  color: #a7acb1;
  opacity: 0.6;
}

.event-card-venue em {
  font-weight: 500;
  font-style: italic;
  font-size: 0.75rem;
}

.event-card-venue {
  margin-bottom: 1.4rem;
}

.event-card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem .8rem;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--champagne-gold);
  cursor: pointer;
  transition: all 0.3s var(--ease-royal);
  letter-spacing: 0.04em;
}

.event-link:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Schedule */
.schedule-wrap {
  margin-top: 2rem;
  padding-top: 0rem;
  border-top: 1px solid var(--line-hairline);
}

.schedule-list {
  max-width: 560px;
  margin: 1.4rem auto 0;
}

.schedule-row {
  display: grid;
  grid-template-columns: 90px 24px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 0;
}

.schedule-row:last-child .schedule-line {
  display: none;
}

.schedule-time {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--champagne-gold);
  font-size: 0.92rem;
  text-align: right;
  padding-top: 0.2rem;
  padding-right: 0.8rem;
}

.schedule-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}

.schedule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-navy);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
  flex-shrink: 0;
}

.schedule-line {
  flex: 1;
  width: 1px;
  min-height: 3rem;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(212, 175, 55, 0.2) 100%);
  margin-top: 3px;
}

.schedule-event {
  padding: 0 0 2.6rem 0.8rem;
  text-align: left;
}

.schedule-event h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}

.schedule-event p {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ivory-dim);
  font-style: italic;
}


/* ==========================================================================
   11. FAMILIES
   ========================================================================== */

.families-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1rem 0 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.family-card {
  background: var(--navy-card);
  border: 1px solid var(--line-hairline);
  border-radius: 16px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  backdrop-filter: blur(6px);
}

.family-card-header {
  margin-bottom: 1rem;
}

.family-card-header i {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.family-card-header h3 {
  font-size: 1.4rem;
  color: var(--champagne-gold);
}

.family-names p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ivory);
  margin-bottom: 0.3rem;
}

.family-parent {
  font-family: var(--font-display);
  font-size: 1rem !important;
  font-weight: bold;
  color: var(--ivory-dim) !important;
}

.family-parent em {
  color: var(--ivory-dim) !important;
  font-size: 0.8rem !important;
  font-weight: normal;
}

.family-card-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-top: 3rem;
}

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

/* Compliments */
.compliments-wrap {
  margin-top: 1.8rem;
  text-align: center;
}

.compliment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1rem;
}

.cpill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.3rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.9rem;

  color: var(--champagne-gold);
  background: rgba(212, 175, 55, 0.05);
  transition: all 0.3s ease;
}

.cpill:hover {
  border-color: var(--gold);
  color: var(--champagne-gold);
  background: rgba(212, 175, 55, 0.1);
}


/* ==========================================================================
   12. FOOTER
   ========================================================================== */

#site-footer {
  position: relative;
  text-align: center;
  padding: 4rem 1.4rem 3rem;
  background: var(--gradient-velvet);
  overflow: hidden;
}

#site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hairline), transparent);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.4;
  padding: 0.3rem 0.5rem;
  margin-bottom: 0.4rem;
}

.footer-date {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--ivory);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ivory-dim);
}

.footer-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(231, 200, 115, 0.5);
  max-width: 440px;
  margin: 0.6rem auto 0;
  line-height: 1.8;
}

.section-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(231, 200, 115, 0.5);
  max-width: 440px;
  margin: 0.6rem auto 0;
  line-height: 1.8;
  text-align: center;
}

.footer-credit {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 200, 115, 0.35);
  margin-top: 1rem;
}


/* ==========================================================================
   13. MUSIC TOGGLE
   ========================================================================== */

#music-toggle {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 300;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(5, 18, 36, 0.82);
  backdrop-filter: blur(8px);
  color: var(--champagne-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s var(--ease-royal), transform 0.8s var(--ease-royal), box-shadow 0.3s ease;
}

#music-toggle.is-active {
  opacity: 1;
  transform: scale(1);
}

#music-toggle:hover {
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
  border-color: var(--gold);
}

.icon-playing {
  display: none;
}

#music-toggle.is-playing .icon-muted {
  display: none;
}

#music-toggle.is-playing .icon-playing {
  display: block;
}


/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
  .families-grid {
    grid-template-columns: 1fr;
  }

  .family-card-divider {
    flex-direction: row;
    padding-top: 0;
    padding: 0.2rem 0;
  }

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

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .cta-btn {
    justify-content: center;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 80px 20px 1fr;
  }

  .schedule-time {
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .countdown-grid {
    gap: 0.2rem;
  }

  .cd-value {
    font-size: 1.6rem;
  }

  .cd-sep {
    font-size: 1rem;
  }
}


/* ==========================================================================
   15. REDUCED MOTION / ACCESSIBILITY
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--champagne-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   14. GALLERY + LIGHTBOX
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line-hairline);
  background: linear-gradient(160deg, var(--navy-light), var(--dark-navy));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 1.1s var(--ease-royal), filter 1.1s var(--ease-royal);
  filter: saturate(0.92) brightness(0.92);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1) brightness(1);
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212, 175, 55, 0.4);
  pointer-events: none;
  /* purely decorative — let clicks reach the <img> beneath */
}

.gallery-placeholder svg {
  width: 30%;
  height: 30%;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 4px rgba(8, 27, 58, 0.4);
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 14, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-royal), visibility 0.5s var(--ease-royal);
}

#lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  max-width: min(90vw, 900px);
  max-height: 82vh;
  border: 1px solid var(--line-hairline);
  outline: 8px solid rgba(212, 175, 55, 0.08);
}

.lightbox-close {
  position: absolute;
  top: 1.8rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--dark-navy);
}