/* =========================================================
   TWO LITTLE MIRACLES · Macaron Purple Digital Invitation
   style.css — main stylesheet (mobile-first)
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  --primary-purple: #B89AD9;
  --light-purple:   #DCC7F2;
  --soft-purple:    #EDE3F8;
  --lavender:       #CDB4E9;
  --deep-purple:    #76538F;
  --cream:          #FFF9F5;
  --white:          #FFFFFF;
  --text-dark:      #4A4052;
  --text-soft:      #6E6280;

  --gradient-main: linear-gradient(135deg, #EDE3F8 0%, #CDB4E9 50%, #B89AD9 100%);
  --gradient-soft: linear-gradient(135deg, #FFF9F5 0%, #EDE3F8 100%);
  --gradient-card: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(237,227,248,0.85));

  --shadow-sm: 0 4px 14px rgba(118, 83, 143, 0.08);
  --shadow-md: 0 12px 30px rgba(118, 83, 143, 0.12);
  --shadow-lg: 0 24px 60px rgba(118, 83, 143, 0.18);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --font-serif: 'Playfair Display', 'Cormorant Garamond', serif;
  --font-sans: 'Poppins', 'DM Sans', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--deep-purple);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--lavender), var(--deep-purple));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------- Music button ---------- */
.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  z-index: 9000;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}

.music-toggle:hover { transform: scale(1.08); }
.music-toggle.playing i { animation: spin 3s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--deep-purple);
    transition: transform 0.08s linear;
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1.5px solid var(--primary-purple);
    transition: transform 0.25s var(--ease-soft), width 0.3s, height 0.3s, background 0.3s;
    opacity: 0.7;
  }
  .cursor-ring.hover {
    width: 56px; height: 56px;
    background: rgba(184, 154, 217, 0.15);
    border-color: var(--deep-purple);
  }
}

/* ---------- Three.js canvas ---------- */
#threeCanvasContainer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#threeCanvasContainer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
  background: var(--gradient-main);
  overflow: hidden;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.55), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.35), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;

  width: 100%;
  max-width: 1000px;
  min-width: 0;

  padding: 0 4px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  flex: 1;
  padding-bottom: 8px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--deep-purple);
  font-weight: 500;
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 28px;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-line.accent {
  color: var(--deep-purple);
  font-style: italic;
  font-weight: 500;
}

.hero-babies {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  margin: 0 auto 40px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-baby {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-md);
  min-width: 280px;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.hero-baby:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.hero-baby1 { border-top: 4px solid var(--lavender); }
.hero-baby1 .hero-baby-photo-wrapper { border-color: var(--lavender); }

.hero-baby2 { border-top: 4px solid var(--primary-purple); }
.hero-baby2 .hero-baby-photo-wrapper { border-color: var(--primary-purple); }

.hero-baby-photo-wrapper {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--soft-purple);
  margin-bottom: 12px;
  position: relative;
}

.hero-baby-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}

.hero-baby:hover .hero-baby-photo { transform: scale(1.08); }

.hero-baby .baby-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--deep-purple);
  line-height: 1.25;
  word-break: break-word;
}

.hero-baby .baby-event {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--deep-purple);
  align-self: center;
}

/* ---------- Scroll Down Indicator ---------- */
.scroll-down-indicator {
  margin-top: auto;
  margin-bottom: 24px;
  padding-top: 12px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  color: var(--deep-purple);
  transition: opacity 0.3s var(--ease-soft);
  opacity: 0;
  animation: scrollDownFadeIn 1.2s var(--ease-soft) 1.2s forwards;
}

.scroll-down-indicator:hover { opacity: 0.75; }

.scroll-down-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--deep-purple);
}

.scroll-down-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--deep-purple);
  animation: scrollDownBounce 1.8s var(--ease-soft) infinite;
  will-change: transform, opacity;
}

@keyframes scrollDownFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDownBounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(10px); opacity: 1; }
}

/* Floating decorations */
.floating-deco {
  position: absolute;
  font-size: 22px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.heart1 { top: 12%; left: 8%; color: #E8B4C8; }
.heart2 { bottom: 18%; right: 10%; color: #B89AD9; font-size: 18px; }
.star1  { top: 20%; right: 12%; color: #FFF9F5; }
.star2  { bottom: 25%; left: 15%; color: #FFF9F5; font-size: 14px; }

.bubble1, .bubble2, .bubble3 {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(205,180,233,0.35));
  filter: blur(0.5px);
}
.bubble1 { width: 60px; height: 60px; top: 30%; left: 5%; }
.bubble2 { width: 34px; height: 34px; bottom: 15%; left: 12%; }
.bubble3 { width: 46px; height: 46px; top: 55%; right: 6%; }

/* =========================================================
   INVITATION WRAPPER
   ========================================================= */
.invitation-wrapper {
  position: relative;
  z-index: 3;
  background: var(--cream);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -30px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ---------- Floating Navigation ---------- */
.floating-nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin: 20px auto 0;
  max-width: max-content;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease-soft);
}

.nav-link:hover { color: var(--deep-purple); background: var(--soft-purple); }
.nav-link.active { color: var(--white); background: var(--deep-purple); }

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  text-align: center;
  color: var(--deep-purple);
  margin: 0 0 48px;
  letter-spacing: 0.02em;
}

/* ---------- Intro ---------- */
.intro-section { padding-top: 60px; }

.intro-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3.6vw, 1.65rem);
  line-height: 1.7;
  text-align: center;
  color: var(--text-dark);
  font-weight: 400;
  max-width: 620px;
  margin: 0 auto;
}

.intro-text .highlight {
  color: var(--deep-purple);
  font-style: italic;
  font-weight: 600;
  display: inline-block;
  padding: 2px 8px;
  border-bottom: 2px solid var(--primary-purple);
}

/* ---------- Babies ---------- */
.babies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.baby-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}

.baby-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,180,233,0.4), transparent 70%);
  pointer-events: none;
}

.baby-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.baby-photo-wrapper {
  width: 220px;
  height: 280px;
  margin: 0 auto 22px;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--soft-purple);
  position: relative;
}

.baby-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-soft);
}

.baby-card:hover .baby-photo { transform: scale(1.06); }

.baby-name-display {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-purple);
  margin: 0 0 6px;
  letter-spacing: 0.03em;
}

.baby-age {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 18px;
  font-weight: 500;
}

.baby-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0 12px;
}

.baby1-card { border-top: 4px solid var(--lavender); }
.baby2-card { border-top: 4px solid var(--primary-purple); }

/* ---------- Countdown ---------- */
.countdown-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 56px;
}

.countdown-item {
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  padding: 20px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}

.countdown-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 600;
  color: var(--deep-purple);
  line-height: 1;
  transition: transform 0.3s var(--ease-soft);
}

.countdown-number.tick { transform: scale(1.15); }

.countdown-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 8px;
}

/* ---------- Details ---------- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--soft-purple);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.detail-card i {
  font-size: 1.5rem;
  color: var(--primary-purple);
  margin-bottom: 12px;
}

.detail-card h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
  margin: 0 0 8px;
}

.detail-card p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 500;
}

.detail-card .address-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 4px;
  font-weight: 400;
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.location-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.location-icon {
  font-size: 2rem;
  color: var(--primary-purple);
  margin-bottom: 16px;
}

.location-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--deep-purple);
  margin: 0 0 8px;
  font-weight: 600;
}

.location-card p {
  color: var(--text-soft);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.btn-location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: var(--deep-purple);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.btn-location:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--lavender), var(--primary-purple), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 34px 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-purple);
  box-shadow: 0 0 0 4px rgba(205,180,233,0.25);
}

.timeline-time {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-purple);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 500;
}

/* ---------- Godparents ---------- */
.godparents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.godparent-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 38px 28px 42px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.godparent-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,180,233,0.4), transparent 70%);
  pointer-events: none;
}

.godparent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.godparent-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.godparent-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-purple);
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}

.godparent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.godparent-list li {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-dark);
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--primary-purple);
  display: inline-block;
  width: fit-content;
  margin: 0 auto;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}

.godparent-list li:hover {
  color: var(--deep-purple);
  border-bottom-color: var(--deep-purple);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  grid-auto-rows: 160px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--soft-purple);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-item.large { grid-column: span 2; grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(74, 64, 82, 0.92);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ---------- Message ---------- */
.message-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto;
}

.message-card p {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 2.8vw, 1.2rem);
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0 0 18px;
}

.message-card p:last-child { margin-bottom: 0; }

.message-highlight {
  color: var(--deep-purple) !important;
  font-style: italic;
  font-weight: 600;
}

/* =========================================================
   RSVP FORM
   ========================================================= */
.rsvp-form {
  max-width: 540px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--soft-purple);
}

.form-group { margin-bottom: 20px; }

.form-group label,
.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--soft-purple);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 4px rgba(205,180,233,0.25);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.error-message {
  display: block;
  color: #C0392B;
  font-size: 0.75rem;
  margin-top: 6px;
  min-height: 14px;
}

/* =========================================================
   ATTENDANCE — bulletproof centered selectable buttons
   ========================================================= */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  position: relative;
  display: block;                 /* no flex/grid quirks */
  min-height: 52px;
  padding: 0;                     /* padding moved to inner text layer */
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--soft-purple);
  background: var(--cream);
  transition: border-color 0.25s var(--ease-soft),
              background 0.25s var(--ease-soft),
              color 0.25s var(--ease-soft),
              box-shadow 0.25s var(--ease-soft),
              transform 0.25s var(--ease-soft);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.radio-label:hover {
  border-color: var(--lavender);
  background: var(--soft-purple);
}

.radio-label:active {
  transform: scale(0.99);
}

/* Hidden native radio — covers the whole label so clicks register anywhere */
.radio-label input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  border: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* The actual visible text — absolutely fills the button, flex-centered */
.radio-text {
  position: absolute;
  inset: 0;
  display: flex;                  /* flexbox INSIDE the text layer */
  align-items: center;            /* vertical center */
  justify-content: center;        /* horizontal center */
  width: 100%;
  height: 100%;
  padding: 0 18px;
  text-align: center;
  line-height: 1.2;
  color: inherit;
  pointer-events: none;           /* clicks fall through to the input */
}

/* CHECKED — deep purple button + white text */
.radio-label:has(input[type="radio"]:checked) {
  border-color: var(--deep-purple);
  background: var(--deep-purple);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(118, 83, 143, 0.35);
}

/* Keyboard focus ring on the button itself */
.radio-label:has(input[type="radio"]:focus-visible) {
  box-shadow: 0 0 0 4px rgba(184, 154, 217, 0.45);
}

.radio-label input[type="radio"]:focus {
  outline: none;
}

/* =========================================================
   SUBMIT BUTTON
   ========================================================= */
.btn-submit {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-pill);
  background: var(--deep-purple);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* RSVP success */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 44px 28px;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.9);
  max-width: 540px;
  margin: 0 auto;
}

.rsvp-success.show { display: block; }

.rsvp-success i {
  font-size: 3rem;
  color: var(--primary-purple);
  margin-bottom: 16px;
}

.rsvp-success h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--deep-purple);
  margin: 0 0 8px;
}

.rsvp-success p { color: var(--text-soft); margin: 0; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 60px 24px 0;
  background: var(--gradient-soft);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: auto;
  margin-bottom: 0;
}

.footer p {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer p:first-child {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--deep-purple);
}

.footer-copyright {
  font-size: 0.72rem !important;
  letter-spacing: 0.15em;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  padding-bottom: 24px;
}

/* ---------- Confetti ---------- */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9995;
  display: none;
}

.confetti-canvas.active { display: block; }

/* ---------- Reduced motion ---------- */
@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;
  }
  .floating-deco { display: none; }
  .scroll-down-arrow { animation: none; }
  .scroll-down-indicator { animation: none; opacity: 1; }
}

/* =========================================================
   HERO DATE & TIME
   ========================================================= */
.hero-details {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 620px;
}

.hero-detail {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}

.hero-detail:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-detail i {
  font-size: 1.05rem;
  color: var(--primary-purple);
  margin-bottom: 4px;
}

.hero-detail-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}

.hero-detail-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--deep-purple);
  line-height: 1.25;
  text-align: center;
}