/* ==========================================================================
   ANANYA & KABIR - ROYAL INDIAN WEDDING CELEBRATION
   Design System & Styling
   ========================================================================== */

:root {
  /* Royal Color Palette */
  --crimson-deep: #470b19;
  --crimson: #6e1327;
  --crimson-light: #91203b;
  --crimson-subtle: #fbf2f4;
  
  --gold-primary: #d4af37;
  --gold-bright: #f3d46d;
  --gold-dark: #996515;
  --gold-light: #fbf5df;
  --gold-gradient: linear-gradient(135deg, #f7df94 0%, #d4af37 50%, #aa771c 100%);
  --gold-gradient-soft: linear-gradient(135deg, #fdf8eb 0%, #faecd0 100%);

  --emerald: #0f5132;
  --emerald-light: #e8f5ec;
  --haldi-saffron: #f59e0b;
  --haldi-light: #fffbeb;
  --sangeet-purple: #581c87;
  --sangeet-light: #f5f3ff;

  --cream-base: #fcfaf7;
  --cream-surface: #f7f2ea;
  --cream-card: rgba(255, 255, 255, 0.92);
  --text-dark: #2c1a1d;
  --text-muted: #6b5c5f;
  --text-light: #ffffff;
  
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-strong: rgba(212, 175, 55, 0.7);
  --shadow-subtle: 0 10px 30px -8px rgba(71, 11, 25, 0.08);
  --shadow-elevated: 0 20px 45px -12px rgba(71, 11, 25, 0.16);
  --shadow-gold: 0 12px 35px -8px rgba(212, 175, 55, 0.3);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel Decorative', 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-base);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(110, 19, 39, 0.04) 0%, transparent 40%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream-base);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 5px;
  border: 2px solid var(--cream-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--crimson);
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

header[id],
section[id],
#attire,
#itinerary,
#couple,
#venue,
#faq,
#gallery,
#guestbook,
#rsvp {
  scroll-margin-top: 85px;
}

/* Petal Shower Canvas */
#petal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* Floating Utility Controls (Audio & Petal Shower) */
.floating-controls {
  position: fixed;
  bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  left: calc(1.75rem + env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-strong);
  color: var(--crimson);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  background: #ffffff;
  color: var(--gold-dark);
}

.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}
.music-equalizer span {
  width: 3px;
  height: 100%;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: 0.2s;
}
.music-equalizer.playing span:nth-child(1) { animation: eqBounce 1s infinite ease-in-out; }
.music-equalizer.playing span:nth-child(2) { animation: eqBounce 0.8s infinite ease-in-out 0.2s; }
.music-equalizer.playing span:nth-child(3) { animation: eqBounce 1.2s infinite ease-in-out 0.4s; }

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.75rem + env(safe-area-inset-right, 0px));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  border: 1px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--crimson-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* Section Header Styling */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--crimson);
  margin-bottom: 0.75rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto;
  color: var(--gold-primary);
}

.divider-line {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 950;
  padding: 1.25rem 0;
  transition: var(--transition);
  background: transparent;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-gold);
  box-shadow: var(--shadow-subtle);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.08em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.site-nav.scrolled .nav-brand {
  color: var(--crimson);
}

.nav-brand span {
  color: var(--gold-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-bottom: 4px;
}

.site-nav.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}
.site-nav.scrolled .nav-links a:hover,
.site-nav.scrolled .nav-links a.active {
  color: var(--crimson);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold-gradient);
  color: var(--crimson-deep) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}
.nav-cta::after {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}
.site-nav.scrolled .mobile-menu-btn {
  color: var(--crimson);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 8rem 1.5rem 5rem;
  background: linear-gradient(180deg, rgba(31, 12, 18, 0.45) 0%, rgba(31, 12, 18, 0.75) 100%),
              url('../assets/images/hero-couple.jpg') center center / cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(110, 19, 39, 0.2) 0%, rgba(15, 7, 10, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-invocation {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.hero-names .ampersand {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--gold-bright);
  margin: 0 0.5rem;
  font-size: 0.9em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(243, 212, 109, 0.5);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Countdown Timer */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(243, 212, 109, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  min-width: 95px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}
.countdown-box:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.22);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--crimson-deep);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.65);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-3px);
}

/* Hashtag Pill */
.hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px dashed rgba(243, 212, 109, 0.6);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--gold-bright);
  cursor: pointer;
  transition: var(--transition);
}
.hashtag-pill:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: #fff;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--crimson-deep);
  color: #fff;
  border: 1px solid var(--gold-primary);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-elevated);
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}
.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   BLESSINGS / INVOCATION BANNER
   ========================================================================== */
.blessings-banner {
  background: var(--cream-surface);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 3.5rem 0;
  position: relative;
  text-align: center;
}

.blessings-banner::before,
.blessings-banner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  background-repeat: repeat-y;
  opacity: 0.15;
}

.shloka-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--crimson);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.shloka-trans {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   OUR STORY / THE COUPLE
   ========================================================================== */
.story-section {
  padding: 6.5rem 0;
  position: relative;
}

.couple-profiles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: 5rem;
}

.profile-card {
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-gold);
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-gold-strong);
}

.profile-avatar-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 5px;
  background: var(--gold-gradient);
  box-shadow: var(--shadow-gold);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.profile-name {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.profile-role {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: block;
}

.profile-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.fun-facts-list {
  list-style: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1.2rem;
  text-align: left;
  font-size: 0.88rem;
}
.fun-facts-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fun-facts-list strong {
  color: var(--crimson);
}

.couple-heart-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  text-align: center;
  padding: 1rem 0;
}
.couple-heart-divider .heart-icon {
  font-size: 2.2rem;
  color: var(--crimson);
  animation: pulse 2s infinite ease-in-out;
}
.couple-heart-divider .emblem-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  color: var(--gold-dark);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Timeline Milestones */
.timeline-wrap {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  padding: 2rem 0;
}
.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-primary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
  padding: 0 2.5rem;
}
.timeline-item.left {
  left: 0;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--crimson);
  border: 3px solid var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  z-index: 2;
}
.timeline-item.left .timeline-dot {
  right: -9px;
}
.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-card {
  background: var(--cream-card);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-strong);
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: block;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   EVENTS & MULTI-DAY ITINERARY
   ========================================================================== */
.itinerary-section {
  padding: 6.5rem 0;
  background: var(--cream-surface);
  position: relative;
}

.agenda-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
}

.tab-btn:hover {
  border-color: var(--gold-dark);
  color: var(--crimson);
}

.tab-btn.active {
  background: var(--crimson);
  color: #fff;
  border-color: var(--crimson);
  box-shadow: var(--shadow-elevated);
}

.event-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.event-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-gold-strong);
}

.event-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.event-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.event-card:hover .event-image-wrap img {
  transform: scale(1.05);
}

.event-day-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--crimson);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold-bright);
}

.event-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.event-name {
  font-size: 1.85rem;
  margin-bottom: 0.4rem;
}

.event-sanskrit-tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--crimson-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: block;
}

.event-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.dress-code-box {
  background: var(--cream-surface);
  border-left: 3px solid var(--gold-primary);
  padding: 0.85rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
}

.dress-code-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--crimson);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dress-palette {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-sm-cal {
  background: transparent;
  border: 1px solid var(--border-gold-strong);
  color: var(--crimson);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.btn-sm-cal:hover {
  background: var(--gold-gradient);
  color: var(--crimson-deep);
  border-color: transparent;
}

/* Attire Inspiration Guide Banner */
.attire-guide-banner {
  max-width: 1000px;
  margin: 3.5rem auto 0;
  background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gold-bright);
  box-shadow: var(--shadow-elevated);
}

.attire-banner-text h4 {
  color: var(--gold-bright);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.attire-banner-text p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  max-width: 600px;
}

/* ==========================================================================
   VENUE & TRAVEL GUIDE
   ========================================================================== */
.venue-section {
  padding: 6.5rem 0;
  position: relative;
}

.venue-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.venue-showcase-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 2px solid var(--border-gold);
  position: relative;
}
.venue-showcase-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.venue-badge-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(31, 12, 18, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-strong);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  color: #fff;
}
.venue-badge-overlay h4 {
  color: var(--gold-bright);
  font-size: 1.35rem;
}
.venue-badge-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  margin: 0;
}

.venue-details h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.venue-address {
  font-size: 1.05rem;
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.travel-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.travel-card {
  background: var(--cream-card);
  border: 1px solid var(--border-gold);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
.travel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-gold-strong);
}

.travel-icon {
  width: 54px;
  height: 54px;
  background: var(--crimson-subtle);
  color: var(--crimson);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.travel-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.stay-booking-code {
  display: inline-block;
  background: var(--gold-light);
  border: 1px dashed var(--gold-dark);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-weight: 700;
  color: var(--crimson-deep);
  margin-top: 0.5rem;
}

/* ==========================================================================
   TRADITIONS & GUEST FAQ
   ========================================================================== */
.faq-section {
  padding: 6.5rem 0;
  background: var(--cream-surface);
}

.faq-grid {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
.faq-item.active {
  border-color: var(--gold-dark);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--crimson);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--crimson-subtle);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--crimson);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 1.8rem;
}
.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.8rem 1.5rem 1.8rem;
}
.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   PHOTO GALLERY & LIGHTBOX
   ========================================================================== */
.gallery-section {
  padding: 6.5rem 0;
}

.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-gold);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(31, 12, 18, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.gallery-sub {
  color: var(--gold-bright);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 7, 10, 0.94);
  backdrop-filter: blur(12px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  border: 2px solid var(--border-gold);
}

.lightbox-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: 1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--gold-bright);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold-gradient);
  color: var(--crimson-deep);
}

.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   INTERACTIVE RSVP SECTION
   ========================================================================== */
.rsvp-section {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--cream-surface) 0%, var(--cream-base) 100%);
  position: relative;
}

.rsvp-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.rsvp-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gold-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--crimson);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream-base);
  transition: var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

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

.event-check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--cream-surface);
  border: 1px solid var(--border-gold);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.event-check-card:hover {
  background: #fff;
  border-color: var(--gold-dark);
}
.event-check-card input[type="checkbox"] {
  accent-color: var(--crimson);
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.event-check-card span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.event-check-card small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

/* Success Card Modal / View */
.rsvp-success-card {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.rsvp-success-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.rsvp-pass {
  background: linear-gradient(135deg, #fefbf3 0%, #f7ecd2 100%);
  border: 2px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 500px;
  margin: 1.5rem auto 2rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
}
.rsvp-pass-header {
  border-bottom: 1px solid var(--border-gold-strong);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
}
.rsvp-pass-header h4 {
  font-size: 1.4rem;
  color: var(--crimson);
}
.pass-guest-name {
  font-size: 1.6rem;
  font-family: var(--font-serif);
  color: var(--crimson-deep);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   DIGITAL GUESTBOOK / WISHES WALL
   ========================================================================== */
.guestbook-section {
  padding: 6.5rem 0;
  background: var(--cream-base);
}

.wishes-input-box {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-subtle);
}

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

.wish-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wish-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-gold-strong);
}

.wish-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--crimson);
}
.wish-relation {
  font-size: 0.78rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.wish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 0.8rem;
  margin-top: 1rem;
}

.like-btn {
  background: none;
  border: none;
  color: var(--crimson);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.like-btn:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   REGISTRY & BLESSINGS
   ========================================================================== */
.registry-section {
  padding: 6.5rem 0;
  background: var(--cream-surface);
  text-align: center;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.registry-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.8rem 2rem;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
.registry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--border-gold-strong);
}

.registry-card-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 1.2rem;
}

.registry-card h4 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--crimson-deep);
  color: #fff;
  padding: 5rem 0 2.5rem;
  text-align: center;
  position: relative;
  border-top: 3px solid var(--gold-primary);
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}
.footer-names .ampersand {
  font-family: var(--font-script);
  font-weight: 400;
  color: #fff;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   PRINT STYLESHEET (For guests printing itinerary)
   ========================================================================== */
@media print {
  .site-nav,
  .floating-controls,
  .back-to-top,
  #petal-canvas,
  .rsvp-section,
  .gallery-section,
  .guestbook-section,
  .hero-actions,
  .agenda-tabs {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .event-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets, iPad, Android & Mobile)
   ========================================================================== */

/* Tablets, iPad Portrait & Landscape (769px - 1024px) */
@media (max-width: 1024px) {
  .event-card {
    grid-template-columns: 280px 1fr;
  }
  .wishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .travel-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .registry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Medium Tablets & Small Desktops (<=992px) */
@media (max-width: 992px) {
  .hero-section {
    background-attachment: scroll;
    padding: 7rem 1.25rem 6.5rem;
  }
  .couple-profiles {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .couple-heart-divider {
    transform: none;
    margin: 0.5rem auto;
    padding: 0.5rem 0;
  }
  .venue-hero-grid {
    grid-template-columns: 1fr;
  }
  .attire-guide-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Mobile & iPad Portrait (<768px) */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(47, 11, 25, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    border-bottom: 2px solid var(--gold-primary);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  
  .timeline-wrap::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 55px;
    padding-right: 0;
    text-align: left !important;
  }
  .timeline-item .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }

  .event-card {
    grid-template-columns: 1fr;
  }
  .event-image-wrap {
    min-height: 230px;
    max-height: 280px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .events-checkbox-grid {
    grid-template-columns: 1fr;
  }
  .travel-cards-grid {
    grid-template-columns: 1fr;
  }
  .registry-grid {
    grid-template-columns: 1fr;
  }
  .wishes-grid {
    grid-template-columns: 1fr;
  }
}

/* Standard Mobile Phones & Small Androids (<=600px) */
@media (max-width: 600px) {
  .container {
    padding-inline: 1.1rem;
  }

  .hero-section {
    min-height: 100svh;
    padding: 5.5rem 1rem 7.5rem;
  }

  /* Robust 4-column countdown alignment */
  .countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 2.5rem;
    padding: 0 0.5rem;
  }
  .countdown-box {
    min-width: 0;
    padding: 0.65rem 0.25rem;
    text-align: center;
  }
  .countdown-num {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }
  .countdown-label {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  /* Stack Hero Actions cleanly */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem;
    gap: 0.85rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
  }

  /* Smooth horizontally scrollable Agenda & Gallery tabs */
  .agenda-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.4rem 0.25rem 0.8rem;
    scrollbar-width: none;
  }
  .agenda-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.6rem 1.1rem;
  }

  .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .gallery-filters::-webkit-scrollbar {
    display: none;
  }
  .gallery-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Forms & Cards Padding adjustments for phone viewports */
  .rsvp-wrapper {
    padding: 2.2rem 1.25rem;
    border-radius: var(--radius-md);
  }
  .wishes-input-box {
    padding: 1.6rem 1.15rem;
    border-radius: var(--radius-md);
  }
  .rsvp-pass {
    padding: 1.5rem 1rem;
  }
  .pass-guest-name {
    font-size: 1.35rem;
  }

  /* Compact Floating Controls above iOS Home Bar */
  .floating-controls {
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    left: calc(0.85rem + env(safe-area-inset-left, 0px));
    gap: 0.5rem;
  }
  .float-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
    gap: 0.45rem;
  }
  .back-to-top {
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    right: calc(0.85rem + env(safe-area-inset-right, 0px));
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Compact Mobile (<=480px, e.g. iPhone 13 mini, 390px, 414px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.1rem, 9vw, 2.75rem);
  }
  .hero-names .ampersand {
    font-size: 0.9em;
  }
  .hero-invocation {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }
  .hero-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }
  .hero-date-badge {
    font-size: 0.82rem;
    padding: 0.5rem 1.1rem;
    gap: 0.5rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-subtitle {
    font-size: 0.88rem;
  }
  .event-body {
    padding: 1.5rem 1.2rem;
  }
  .event-title {
    font-size: 1.3rem;
  }
  .footer-names {
    font-size: 2.2rem;
  }
  .footer-nav {
    gap: 1.2rem;
    font-size: 0.82rem;
  }
}

/* Ultra Compact (<=380px, e.g. iPhone SE, 360px Android) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2rem;
  }
  .countdown-box {
    padding: 0.5rem 0.15rem;
  }
  .countdown-num {
    font-size: 1.25rem;
  }
  .countdown-label {
    font-size: 0.58rem;
  }
  .float-btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.7rem;
  }
  .back-to-top {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}
