/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  background-color: var(--cream);
  transition: background-color 1.5s cubic-bezier(0.5, 0, 0.2, 1) 0.3s;
}

/* Base exit transition for the wrapper */
.preloader.exit {
  background-color: transparent;
  pointer-events: none;
}

/* Ao clicar, os textos somem muito rapidamente */
.preloader.exit .preloader-names,
.preloader.exit .preloader-date,
.preloader.exit .open-invite-btn {
  opacity: 0 !important;
  transform: translateY(15px) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

/* O Monograma fica como herói: keyframe garante que tudo rode sem conflito */
@keyframes monogramPlunge {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    transform: scale(4.5) translateY(-10px);
    opacity: 0;
    filter: blur(8px);
  }
}

.preloader.exit .preloader-monogram {
  animation: monogramPlunge 1.8s cubic-bezier(0.5, 0, 0.2, 1) forwards !important;
}

/* After transition completes */
.preloader.done {
  pointer-events: none;
  visibility: hidden;
}

body.preloader-active {
  overflow: hidden;
}

/* ===== PERSONALIZAÇÃO DO CONVITE (PRELOADER) ===== */
.personalized-welcome {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s ease-in-out, transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-greeting {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0;
}

.guest-name-text {
  font-family: var(--font-script);
  font-size: 4.2rem;
  color: var(--sage);
  font-weight: 400;
  margin: 10px 0 20px 0;
  line-height: 1.2;
  opacity: 0;
}

.welcome-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--sage-light);
  opacity: 0;
}

/* Animações Premium para a mensagem personalizada */
.anim-stagger-in .welcome-greeting {
  animation: textSlideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.anim-stagger-in .guest-name-text {
  animation: textSlideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}
.anim-stagger-in .welcome-subtitle {
  animation: textSlideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
}

/* Transição de Saída mais limpa */
.welcome-slide-out {
  opacity: 0 !important;
  transform: translate(-50%, -65%) !important;
  pointer-events: none;
}

/* Oculta inicial se personalizado */
.preloader-hidden-start {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.preloader-hidden-start .preloader-monogram,
.preloader-hidden-start .preloader-names,
.preloader-hidden-start .preloader-date,
.preloader-hidden-start .open-invite-btn {
  animation: none !important; /* impede animações antes da hora */
  opacity: 0;
}

/* Restaura animações do preloader original ao entrar */
.preloader-fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}
.preloader-fade-in .preloader-monogram { animation: monogramReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0s both !important; }
.preloader-fade-in .preloader-names { animation: textSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both !important; }
.preloader-fade-in .preloader-date { animation: textSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both !important; }
.preloader-fade-in .open-invite-btn { animation: textSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both !important; }

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Monogram entrance */
.preloader-monogram {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  animation: monogramReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  position: relative;
}

.preloader-monogram img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Soft glow behind monogram */
.preloader-monogram::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(95, 125, 109, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes monogramReveal {
  0% {
    opacity: 0;
    transform: scale(0.7);
    filter: blur(8px);
  }
  50% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Names text */
.preloader-names {
  font-family: 'Pinyon Script', cursive;
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--sage);
  letter-spacing: 2px;
  opacity: 0;
  animation: textSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.preloader-amp {
  font-family: 'Great Vibes', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.1em;
  margin: 0 0.2em;
}

/* Date text */
.preloader-date {
  font-family: 'Montserrat', sans-serif;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--sage-light);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0;
  animation: textSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

@keyframes textSlideUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interactive Open Button */
.open-invite-btn {
  margin-top: 35px;
  padding: 12px 30px;
  background-color: transparent;
  color: var(--sage);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(95, 125, 109, 0.4);
  border-radius: 30px;
  cursor: pointer;
  opacity: 0;
  animation: textSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.open-invite-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(95, 125, 109, 0.1), transparent);
  transition: all 0.5s ease;
}

.open-invite-btn:hover {
  background-color: rgba(95, 125, 109, 0.05);
  border-color: rgba(95, 125, 109, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.open-invite-btn:hover::before {
  left: 100%;
  transition: all 0.8s ease;
}

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


:root {
  --cream: #f6f4f1; /* Solicitado pelo usuário */
  --sage: #5f7d6d; /* Solicitado pelo usuário */
  
  /* As cores secundárias agora são rigorosamente forçadas para as cores primárias a pedido do usuário */
  --sage-light: #5f7d6d; 
  --sage-dark: #5f7d6d; 
  
  /* Textos Escuros viram Verde Sage */
  --dark: #5f7d6d;
  
  /* Textos/fundo brancos viram Creme */
  --white: #f6f4f1;
  
  --font-script: 'Pinyon Script', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-serif);
  color: var(--dark);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

/* ===== ACCESSIBILITY UTILITIES ===== */
/* Visually hidden content, accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: visible only when focused via keyboard */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 14px 28px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Visible focus ring for keyboard navigation — does not affect mouse users */
*:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove default outline for mouse clicks */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion: disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in, .slide-left, .slide-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .countdown-number.tick {
    animation: none !important;
  }
  .music-waves span {
    animation: none !important;
  }
  .divider-leaf {
    animation: none !important;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible,
.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ===== SECTION TRANSITION ELEMENTS ===== */
.transition-gradient {
  height: 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.transition-cream-to-sage {
  background: linear-gradient(to bottom, var(--cream) 0%, var(--sage) 100%);
}

.transition-sage-to-cream {
  background: linear-gradient(to bottom, var(--sage) 0%, var(--cream) 100%);
}

/* Wave dividers between sections */
.wave-divider {
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  width: 100%;
  height: 50px;
  display: block;
}

.wave-sage-to-cream {
  background-color: var(--cream);
}

.wave-dark-to-cream {
  background-color: var(--cream);
}

/* Decorative section divider (✦) */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px auto;
  width: 100%;
  max-width: 200px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(95, 125, 109, 0.3), transparent);
}

.divider-leaf {
  font-size: 0.7rem;
  color: var(--sage);
  opacity: 0.6;
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); filter: drop-shadow(0 0 4px rgba(229, 193, 88, 0.6)); }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  overflow: hidden;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Transparent couple photo overlay */
.hero-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-photo-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.2) 100%
  );
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 92%;
}

.hero-names {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--white);
  font-weight: 400;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.5);
  letter-spacing: 1px;
  line-height: 1.2;
  -webkit-text-stroke: 0.3px rgba(255,255,255,0.15);
}

.hero-name-left,
.hero-name-right {
  display: inline;
}

.hero-amp {
  font-family: 'Great Vibes', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 1.1em;
  margin: 0 0.2em;
}

/* Hero entrance animation */
.hero-content .animate-hero {
  animation: none;
}

.hero-content {
  animation: heroContentIn 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

@keyframes heroContentIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.wave-separator {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 4;
  line-height: 0;
}

.wave-separator svg {
  width: 100%;
  height: 60px;
}

/* ===== WELCOME + MESSAGE SECTION (unified) ===== */
.welcome-section {
  background-color: var(--cream);
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome-content {
  max-width: 700px;
  margin: 0 auto;
}

.wedding-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.monogram {
  width: 70px;
  height: auto;
  margin: 0 auto 24px;
}

.monogram img {
  width: 100%;
}

.welcome-title {
  font-family: var(--font-script);
  font-size: 3rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
}

.message-content {
  margin-top: 10px;
}

.message-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.9;
  margin-bottom: 24px;
  color: var(--dark);
}

.message-sign {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--dark);
}

.botanical-leaf {
  position: absolute;
  right: -10px;
  bottom: 80px;
  width: 100px;
  opacity: 0.65;
  pointer-events: none;
}

.botanical-leaf img {
  width: 100%;
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(7px); opacity: 0.2; }
}

/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
  background-color: var(--sage);
  padding: 85px 20px 75px;
  text-align: center;
}

.countdown-title {
  font-family: var(--font-script);
  font-size: 3.8rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 40px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
}

.countdown-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  flex: 1;
  max-width: 120px;
  height: 130px;
  position: relative;
  background: rgba(246, 244, 241, 0.06);
  border: 1px solid rgba(246, 244, 241, 0.3);
  border-radius: 60px 60px 12px 12px; /* Arch shape */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.countdown-group:hover {
  background: rgba(246, 244, 241, 0.09);
  transform: translateY(-3px);
  transition: all 0.4s ease;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 300;
  color: var(--white);
  font-style: normal;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

/* Number change animation */
.countdown-number.tick {
  animation: countTick 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes countTick {
  0% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(-8px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(246, 244, 241, 0.85);
  letter-spacing: 5px;
  margin-top: 16px;
  text-transform: uppercase;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  background-color: var(--cream);
  padding: 40px 20px 0;
  position: relative;
}

/* Soft fade at bottom into the ceremony bg */
.gallery-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08));
  pointer-events: none;
  z-index: 1;
}

.gallery-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.gallery-ornament-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(95, 125, 109, 0.35), transparent);
}

.gallery-ornament-icon {
  font-size: 0.7rem;
  color: var(--sage);
  opacity: 0.5;
  animation: sparkle 3s ease-in-out infinite;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: auto;
  max-width: 900px;
  margin: 0 auto;
  gap: 16px;
  padding-bottom: 40px;
}

.gallery-photo {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-tall {
  height: 400px;
}

.gallery-square {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: transparent;
  height: 350px;
}

.gallery-square img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== CEREMONY SECTION ===== */
.ceremony-section {
  position: relative;
  padding: 80px 20px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ceremony-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  /* Dark overlay applied directly to the image so they move together */
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('assets/IMG_9449.jpg') center/cover no-repeat;
  z-index: 0;
  will-change: transform;
}

.ceremony-overlay {
  /* Overlay is now integrated into .ceremony-bg */
  display: none;
}

.ceremony-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}

.ceremony-title {
  font-family: var(--font-script);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 30px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.2);
}

.ceremony-card {
  padding: 40px 24px;
  border-radius: 4px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  /* Realistic premium off-white cotton paper texture */
  background-color: #faf9f6; /* Off-white base */
  background-image: 
    /* Extremely subtle vignette mask */
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.03) 120%),
    /* Photographic seamless paper pattern */
    url('assets/cream-paper.png');
}

.ceremony-divider {
  width: 80%;
  height: 2px;
  background: var(--dark);
  margin: 0 auto;
}

.ceremony-date {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 24px 0 8px;
  color: var(--dark);
}

.ceremony-time {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--dark);
}

.ceremony-location {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--dark);
}

.pin-icon {
  font-size: 1.1em;
}

/* ===== DIRECTIONS SECTION ===== */
.directions-section {
  background-color: var(--cream);
  padding: 50px 20px; /* Reduzido padding no mobile */
  color: var(--sage-dark);
}

@media (min-width: 900px) {
  .directions-section {
    padding: 80px 20px;
  }
}

.directions-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px; /* Gap ajustado */
  align-items: center;
}

@media (min-width: 900px) {
  .directions-container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    justify-content: center;
  }
}

.directions-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-right: 0;
}

.directions-title {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--sage-dark);
  margin: 0 0 8px 0; /* Reduzido no mobile */
}

@media (min-width: 768px) {
  .directions-title { font-size: 3.5rem; margin-bottom: 16px; }
}

.directions-divider {
  width: 60px;
  height: 2px;
  background-color: var(--sage-light);
  margin-bottom: 16px; /* Reduzido */
}

.directions-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--sage);
  line-height: 1.7;
  margin-bottom: 20px; /* Reduzido */
}

.directions-address {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .directions-address {
    padding: 24px;
    margin-bottom: 24px;
  }
}

.address-icon {
  font-size: 1.6rem;
  margin-top: 2px;
}

.address-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin: 0 0 4px 0;
}

.address-detail {
  font-size: 0.95rem;
  color: var(--sage);
  margin: 0 0 2px 0;
  line-height: 1.4;
}

.directions-visual-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  position: relative;
  margin-top: -10px; /* Reduz espaço entre nota de Uber e a foto no mobile */
}

@media (min-width: 900px) {
  .directions-visual-col {
    margin-top: 0;
  }
}

.venue-image-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.venue-image-wrapper img {
  width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
  border-radius: 4px;
  mix-blend-mode: multiply;
  display: block;
}

.map-container {
  width: 95%;
  max-width: 380px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  background: var(--cream);
  padding: 6px;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  z-index: 2;
  margin-top: -80px;
}

@media (min-width: 900px) {
  .directions-visual-col {
    align-items: center; /* Mantém centralizado para grudar no texto */
  }
  .map-container {
    margin-top: -120px;
    margin-right: 0; 
    margin-left: -60px; /* Puxa o mapa em direção ao texto para amarrar o design */
  }
}

.map-container iframe {
  border-radius: 4px;
  width: 100%;
  height: 250px;
  display: block;
  /* Suaviza as cores do Google Maps para combinar com o tom de casamento elegante */
  filter: grayscale(30%) sepia(20%) contrast(105%);
}

.transport-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  padding: 20px 24px;
  border-radius: 12px;
  width: 100%;
  margin-top: 8px;
}

.transport-icon {
  margin-top: 2px;
}

.transport-text h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin: 0 0 6px 0;
}

.transport-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sage);
  margin: 0;
}

/* ===== ARCH TRANSITION ===== */
.arch-transition {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.arch-transition svg {
  display: block;
}

/* ===== DRESS CODE SECTION ===== */
.dresscode-section {
  background-color: #5f7d6d !important; /* Forçado para evitar qualquer distorção visual de variável ou sobreposição */
  padding: 100px 20px 80px;
  text-align: center;
  color: var(--white);
  position: relative;
}

.dresscode-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.dresscode-decor-top {
  margin-bottom: 16px;
}

.decor-diamond {
  color: #e5c158; /* Elegant Champagne Gold */
  font-size: 1.8rem;
}

.dresscode-title {
  font-family: var(--font-script);
  font-size: 4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dresscode-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.8;
  margin-bottom: 50px;
}

.highlight-gold {
  color: #e5c158;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.5px;
}

.dresscode-illustration-wrapper {
  margin: 0 auto 50px;
  max-width: 300px;
}

.dresscode-image {
  width: 100%;
  display: block;
  /* Imagem em seu estado original, sem inversoes ou filtros bizarros */
}

.weather-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.weather-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.weather-card p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

/* ===== MERGED RSVP SECTION ===== */
.rsvp-merged-section {
  overflow: hidden;
}

/* Top: cream area with gift + RSVP */
.rsvp-top {
  background-color: var(--cream);
  padding: 90px 20px 80px; /* Mais espaço pro selo flutuante */
}

.rsvp-top-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: #faf9f6; /* Tom leve de "papel" */
  padding: 60px 40px 50px;
  border-radius: 6px;
  position: relative;
  z-index: 10;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05); /* Sombra elegante */
  border: 1px solid rgba(95, 125, 109, 0.2); /* Borda fina cor verde sage */
}

.rsvp-top-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.rsvp-giftbox {
  width: 95px !important;
  height: 95px !important;
  box-sizing: border-box;
  background-color: var(--sage);
  border: 6px solid #faf9f6;
  border-radius: 50%;
  position: absolute;
  top: -45px;
  left: 50%;
  margin-left: -47.5px; /* exactly half of width for perfect centering */
  z-index: 11;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  overflow: hidden;
  display: block;
}

.rsvp-giftbox img {
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  margin: 18px auto;
  object-fit: contain;
  display: block;
}

.rsvp-title {
  font-family: var(--font-script);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 10px;
}

.rsvp-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 24px;
}

.rsvp-subtitle strong {
  font-weight: 600;
  color: var(--sage);
}

.btn-white {
  display: inline-block;
  background-color: var(--white);
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-white::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(93,114,102,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-white:hover::after {
  opacity: 1;
}

.btn-white:active {
  transform: translateY(0);
}

/* Bottom: hands photo with biblical text overlay + monogram */
.rsvp-bottom {
  position: relative;
  width: 100%;
  padding-bottom: 35%; /* Fixed aspect ratio to prevent excessive height on desktop */
  min-height: 340px; /* Minimum height for mobile */
  overflow: hidden;
}

.rsvp-hands-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.rsvp-hands-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rsvp-bottom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 25px 24px 30px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 35%,
    rgba(0,0,0,0.4) 100%
  );
}

@media (min-width: 900px) {
  .rsvp-bottom-overlay {
    padding: 60px 80px;
  }
}

.rsvp-bible-text {
  max-width: 450px;
}

.bible-verse {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.7;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8), 0 0 24px rgba(0,0,0,0.7);
  margin-bottom: 6px;
}

@media (min-width: 900px) {
  .bible-verse {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  .bible-reference {
    font-size: 0.9rem !important;
  }
}

.bible-reference {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.6);
}

.rsvp-bottom-monogram {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 120px;
  opacity: 0.7;
}

@media (min-width: 900px) {
  .rsvp-bottom-monogram {
    width: 180px;
    right: 40px;
    bottom: 40px;
  }
}

.rsvp-bottom-monogram img {
  width: 100%;
}

/* ===== RSVP MODAL ===== */
.rsvp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
  padding: 20px;
}

.rsvp-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.rsvp-modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.1);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.rsvp-modal-backdrop.active .rsvp-modal {
  transform: scale(1) translateY(0);
}

.rsvp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  line-height: 1;
}

.rsvp-modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: rotate(90deg);
}

.rsvp-modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.rsvp-modal-monogram {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.rsvp-modal-title {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 400;
  color: var(--sage);
  margin-bottom: 6px;
}

.rsvp-modal-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--sage);
}

/* Form fields */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rsvp-field label:first-child {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}

.rsvp-field input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(95, 125, 109, 0.15);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark);
  background: rgba(244, 244, 242, 0.5);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.rsvp-field input[type="text"]:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95, 125, 109, 0.12);
}

.rsvp-field input[type="text"]::placeholder {
  color: var(--sage);
  opacity: 0.5;
}

/* Radio buttons */
.rsvp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rsvp-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid rgba(95, 125, 109, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  background: rgba(244, 244, 242, 0.3);
}

.rsvp-radio:hover {
  border-color: rgba(95, 125, 109, 0.3);
  background: rgba(244, 244, 242, 0.6);
}

.rsvp-radio:active {
  transform: scale(0.98);
}

.rsvp-radio input[type="radio"] {
  display: none;
}

.rsvp-radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(95, 125, 109, 0.35);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.rsvp-radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--sage);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-radio input[type="radio"]:checked ~ .rsvp-radio-custom {
  border-color: var(--sage);
}

.rsvp-radio input[type="radio"]:checked ~ .rsvp-radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.rsvp-radio input[type="radio"]:checked ~ .rsvp-radio-text {
  color: var(--dark);
  font-weight: 500;
}

.rsvp-radio-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--sage);
  transition: color 0.3s, font-weight 0.3s;
}

/* Submit button */
.rsvp-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(95, 125, 109, 0.25);
}

.rsvp-submit-btn:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 125, 109, 0.3);
}

.rsvp-submit-btn:active {
  transform: translateY(0);
}

.rsvp-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.rsvp-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spinRsvp 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spinRsvp {
  to { transform: rotate(360deg); }
}

.rsvp-submit-loading {
  display: inline-flex;
  align-items: center;
}

/* Success state */
.rsvp-success {
  text-align: center;
  padding: 20px 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-success-icon {
  width: 64px;
  height: 64px;
  background: var(--sage);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

.rsvp-success h3 {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--sage);
  margin-bottom: 10px;
}

.rsvp-success p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--sage);
  line-height: 1.6;
}

/* Error state */
.rsvp-error {
  text-align: center;
  padding: 20px 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-error-icon {
  width: 64px;
  height: 64px;
  background: #c0392b;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.rsvp-error h3 {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #c0392b;
  margin-bottom: 10px;
}

.rsvp-error p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.rsvp-retry-btn {
  padding: 12px 28px;
  background: transparent;
  border: 2px solid var(--sage);
  color: var(--sage);
  border-radius: 50px;
  font-family: var(--font-serif);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.rsvp-retry-btn:hover {
  background: var(--sage);
  color: var(--white);
}

/* ===== GIFTS SECTION ===== */
.gifts-section {
  background-color: var(--cream);
  padding: 60px 24px;
  position: relative;
}

/* Soft gradient top */
.gifts-section::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12), var(--cream));
  pointer-events: none;
}

.gifts-content {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--white);
  border: 1px solid rgba(95, 125, 109, 0.15);
  padding: 40px 24px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

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

.gifts-illustration {
  max-width: 140px;
  margin: 0 auto 20px;
}

.gifts-illustration img {
  width: 100%;
}

.gifts-title {
  font-family: var(--font-script);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--sage);
  margin-bottom: 16px;
}

.gifts-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 28px;
}

.btn-green {
  display: inline-block;
  background-color: var(--sage);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(95, 125, 109, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-green::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-green:hover {
  background-color: var(--sage-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(95, 125, 109, 0.3);
}

.btn-green:hover::after {
  opacity: 1;
}

.btn-green:active {
  transform: translateY(0);
}

/* ===== FOOTER GALLERY SECTION ===== */
.footer-section {
  background-color: var(--cream);
  padding: 0 0 50px;
}

.footer-gallery-title {
  text-align: center;
  padding: 20px 20px 24px;
}

.footer-gallery-title h2 {
  font-family: var(--font-script);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--sage);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 3px;
}

/* On mobile, all photos are equal size */
@media (max-width: 599px) {
  .footer-wide {
    grid-column: span 1;
  }
  .footer-tall {
    grid-row: span 1;
  }
}

.footer-photo {
  overflow: hidden;
  aspect-ratio: 1;
}

.footer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.footer-wide {
  grid-column: span 2;
}

.footer-tall {
  grid-row: span 2;
}

.footer-message {
  text-align: center;
  padding: 40px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-monogram {
  width: 55px;
  height: auto;
  opacity: 0.8;
}

.footer-message p {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--dark);
}

/* ========================================
   TABLET (min-width: 600px)
   ======================================== */
@media (min-width: 600px) {
  .hero-names {
    font-size: 5rem;
  }

  .wave-separator svg {
    height: 75px;
  }

  .transition-gradient {
    height: 100px;
  }

  .wave-divider svg {
    height: 60px;
  }

  .welcome-section {
    padding: 70px 30px 50px;
  }

  .wedding-date {
    font-size: 1.3rem;
    letter-spacing: 4px;
  }

  .monogram {
    width: 80px;
  }

  .welcome-title {
    font-size: 4rem;
  }

  .message-text,
  .message-sign {
    font-size: 1.3rem;
  }

  .botanical-leaf {
    right: -30px;
    width: 140px;
  }

  .countdown-title {
    font-size: 4rem;
  }

  .countdown-number {
    font-size: 4.5rem;
  }

  .countdown-group {
    min-width: 90px;
  }

  .countdown-timer {
    gap: 15px;
  }

  .countdown-label {
    font-size: 0.8rem;
    letter-spacing: 4px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    gap: 20px;
  }

  .gallery-tall {
    height: 380px;
  }

  .gallery-square {
    height: 380px;
  }

  .gallery-square img {
    width: 100%;
    max-height: none;
  }

  .ceremony-title {
    font-size: 3.5rem;
  }

  .ceremony-card {
    padding: 45px 35px;
  }

  .ceremony-date,
  .ceremony-time,
  .ceremony-location {
    font-size: 1.7rem;
  }

  .directions-title {
    font-size: 3.5rem;
  }

  .venue-hero {
    max-width: 400px;
  }

  .map-container iframe {
    height: 320px;
  }

  .transport-note {
    flex-direction: row;
    text-align: left;
    border-radius: 30px;
    padding: 16px 28px;
    gap: 12px;
  }

  .dresscode-title {
    font-size: 3.5rem;
  }

  .dresscode-illustration {
    max-width: 500px;
  }

  .rsvp-top {
    padding: 60px 30px;
  }

  .rsvp-top-layout {
    flex-direction: row;
    text-align: left;
    gap: 30px;
  }

  .rsvp-giftbox {
    width: 100px;
  }

  .rsvp-title {
    font-size: 3rem;
  }

  .rsvp-bottom {
    min-height: 400px;
  }

  .rsvp-bottom-overlay {
    min-height: 400px;
    padding: 40px 30px;
  }

  .rsvp-bottom-monogram {
    right: 30px;
    bottom: 30px;
    width: 150px;
  }

  .footer-gallery-title h2 {
    font-size: 3.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .footer-monogram {
    width: 65px;
  }

  .footer-message p {
    font-size: 2.5rem;
  }

  /* Gifts side-by-side on tablet */
  .gifts-layout {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
  }

  .gifts-illustration {
    max-width: 120px;
    margin: 0;
    flex-shrink: 0;
  }
}

/* ========================================
   DESKTOP (min-width: 960px)
   ======================================== */
@media (min-width: 960px) {
  .hero-names {
    font-size: 6.5rem;
    letter-spacing: 2px;
  }

  .wave-separator svg {
    height: 90px;
  }

  .transition-gradient {
    height: 120px;
  }

  .wave-divider svg {
    height: 80px;
  }

  .welcome-section {
    padding: 80px 40px 60px;
  }

  .wedding-date {
    font-size: 1.5rem;
  }

  .monogram {
    width: 85px;
  }

  .welcome-title {
    font-size: 5rem;
  }

  .message-text,
  .message-sign {
    font-size: 1.4rem;
  }

  .botanical-leaf {
    right: -60px;
    width: 180px;
    bottom: 100px;
  }

  .countdown-section {
    padding: 80px 20px;
  }

  .countdown-title {
    font-size: 5rem;
    margin-bottom: 30px;
  }

  .countdown-number {
    font-size: 6rem;
  }

  .countdown-separator {
    font-size: 5rem;
  }

  .countdown-group {
    min-width: 100px;
  }

  .countdown-timer {
    gap: 20px;
  }

  .countdown-label {
    font-size: 0.85rem;
    margin-top: 10px;
  }

  .gallery-section {
    padding: 60px 40px 0;
  }

  .gallery-title {
    font-size: 4rem;
  }

  .gallery-grid {
    min-height: auto;
    max-width: 800px;
    gap: 24px;
  }

  .gallery-tall {
    height: 380px;
  }

  .gallery-square {
    height: 380px;
  }

  .gallery-photo:hover img {
    transform: scale(1.03);
  }

  .gallery-square img {
    max-height: none;
  }

  .ceremony-section {
    padding: 100px 20px;
    min-height: 500px;
  }

  .ceremony-title {
    font-size: 4.5rem;
  }

  .ceremony-card {
    padding: 50px 40px;
    max-width: 600px;
  }

  .ceremony-date,
  .ceremony-time,
  .ceremony-location {
    font-size: 2rem;
  }

  /* Directions: better use of desktop space */
  .directions-section {
    padding: 80px 40px;
  }

  .directions-content {
    max-width: 1000px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    text-align: left;
  }

  .venue-hero {
    max-width: 400px;
    flex: 0 0 auto;
  }

  .directions-title {
    font-size: 4.5rem;
    width: 100%;
    text-align: center;
  }

  .directions-info {
    flex: 1;
  }

  .map-container iframe {
    height: 350px;
  }

  .directions-text {
    font-size: 1.45rem;
    line-height: 1.8;
  }

  /* Dresscode desktop */
  .dresscode-section {
    padding: 80px 40px;
  }

  .dresscode-content {
    max-width: 700px;
  }

  .dresscode-text {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  .weather-card {
    padding: 30px 40px;
  }

  .weather-card p {
    font-size: 1.25rem;
  }

  .dresscode-title {
    font-size: 4.5rem;
  }

  .dresscode-illustration {
    max-width: 600px;
  }

  /* RSVP desktop */
  .rsvp-top {
    padding: 70px 40px;
  }

  .rsvp-top-layout {
    gap: 40px;
  }

  .rsvp-giftbox {
    width: 120px;
  }

  .rsvp-title {
    font-size: 3.8rem;
  }

  .rsvp-subtitle {
    font-size: 1.4rem;
  }

  .rsvp-bottom {
    min-height: 450px;
  }

  .rsvp-bottom-overlay {
    min-height: 450px;
    padding: 30px 40px 50px;
  }

  .bible-verse {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .bible-reference {
    font-size: 1.1rem;
  }

  .rsvp-bottom-monogram {
    right: 40px;
    bottom: 40px;
    width: 190px;
  }

  /* Gifts: bigger layout on desktop */
  .gifts-section {
    padding: 80px 40px 100px;
  }

  .gifts-content {
    padding: 60px 50px;
    max-width: 850px;
  }

  .gifts-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
  }

  .gifts-illustration {
    max-width: 160px;
    margin: 0;
    flex-shrink: 0;
  }

  .gifts-title {
    font-size: 3.5rem;
  }

  .gifts-text {
    font-size: 1.45rem;
    line-height: 1.8;
  }

  .footer-section {
    padding: 0 0 60px;
  }

  .footer-gallery-title {
    padding: 30px 20px 30px;
  }

  .footer-gallery-title h2 {
    font-size: 4.5rem;
  }

  .footer-grid {
    gap: 5px;
  }

  .footer-photo:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
  }

  .footer-monogram {
    width: 70px;
  }

  .footer-message {
    padding: 50px 20px 0;
  }

  .footer-message p {
    font-size: 3rem;
  }
}

/* ===== MUSIC TOGGLE ===== */
.music-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  background-color: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10005;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.music-toggle:hover {
  transform: scale(1.1);
  background-color: var(--sage-dark);
}

/* Music wave animation bars */
.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-waves span {
  display: block;
  width: 3px;
  background: var(--white);
  border-radius: 2px;
  animation: musicWave 1.2s ease-in-out infinite;
}

.music-waves span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-waves span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.music-waves span:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.music-waves span:nth-child(4) { height: 6px; animation-delay: 0.6s; }

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

/* When playing: show waves, hide play icon */
.music-toggle .music-waves { display: flex; }
.music-toggle #music-icon-play { display: none; }

/* When paused: hide waves, show play icon */
.music-toggle.paused .music-waves { display: none; }
.music-toggle.paused #music-icon-play { display: block; }

/* ===== DOT NAVIGATION ===== */
.dot-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.dot-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.dot-nav-item {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(95, 125, 109, 0.25);
  border: 1.5px solid rgba(95, 125, 109, 0.4);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  text-decoration: none;
}

.dot-nav-item:hover {
  background: rgba(95, 125, 109, 0.5);
  transform: scale(1.3);
}

.dot-nav-item.active {
  background: var(--sage);
  border-color: var(--sage);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(95, 125, 109, 0.4);
}

/* Hide dots on very small screens */
@media (max-width: 480px) {
  .dot-nav { right: 8px; gap: 10px; }
  .dot-nav-item { width: 8px; height: 8px; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s, transform 0.3s;
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ===== SAVE THE DATE BUTTON ===== */
.btn-save-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 28px;
  background: transparent;
  color: var(--sage);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1.5px solid rgba(95, 125, 109, 0.35);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-save-date:hover {
  background: rgba(95, 125, 109, 0.08);
  border-color: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ===== DIRECTION BUTTONS ===== */
.directions-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 14px rgba(95, 125, 109, 0.2);
}

.btn-directions:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 125, 109, 0.3);
  background: var(--sage-dark);
}

.btn-directions:active {
  transform: translateY(0);
}

/* ===== GIFT ILLUSTRATION HOVER ===== */
.gifts-illustration img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.gifts-illustration:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(95, 125, 109, 0.2));
}

/* ===== FOOTER MONOGRAM SPIN ===== */
.footer-monogram {
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.footer-message.visible .footer-monogram {
  animation: monogramSpin 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes monogramSpin {
  0% { transform: rotate(-15deg) scale(0.8); opacity: 0; }
  100% { transform: rotate(0deg) scale(1); opacity: 0.8; }
}

/* ===== FOOTER PHOTO CURSOR ===== */
.footer-photo {
  cursor: pointer;
}

/* ===== CALENDAR MODAL ===== */
.calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.calendar-modal.active {
  opacity: 1;
  visibility: visible;
}

.calendar-modal-content {
  background: var(--cream);
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.calendar-modal.active .calendar-modal-content {
  transform: translateY(0);
}

.calendar-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--sage);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.calendar-close:hover {
  background: rgba(95, 125, 109, 0.1);
}

.calendar-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.calendar-icon-large {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.calendar-modal h3 {
  font-family: var(--font-serif);
  color: var(--sage-dark);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.calendar-modal p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.calendar-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.calendar-btn:active {
  transform: scale(0.98);
}

.google-btn {
  background-color: #fff;
  color: #3c4043;
  border-color: #dadce0;
}
.google-btn:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}



.apple-btn {
  background-color: #000;
  color: #fff;
}
.apple-btn:hover {
  background-color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
