/* ==========================================================================
   SAVE THE DATE — JÚLIA & JORGE
   Design System & Premium CSS Stylesheet (Desktop & Mobile Optimized)
   ========================================================================== */

:root {
  /* Color Palette - Moodboard Inspired */
  --bg-offwhite: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F2EB;
  
  --serenity-primary: #8EAEC4;
  --serenity-dark: #5C7B99;
  --serenity-deep: #435E76;
  --serenity-light: #D4E3ED;
  --serenity-soft: #EEF4F8;
  
  --sage-green: #8A9A86;
  --sage-green-light: #E8EFE7;
  
  --gold-accent: #C5A059;
  --gold-soft: #F9F5EC;
  
  --text-dark: #2A333A;
  --text-muted: #647380;
  --text-light: #8E9CA8;
  
  --border-subtle: rgba(142, 174, 196, 0.22);
  --border-glass: rgba(255, 255, 255, 0.6);
  
  /* Elevation & Shadows */
  --shadow-subtle: 0 10px 30px -10px rgba(92, 123, 153, 0.08);
  --shadow-card: 0 20px 40px -15px rgba(42, 51, 58, 0.05), 0 0 1px rgba(142, 174, 196, 0.25);
  --shadow-hover: 0 30px 60px -15px rgba(92, 123, 153, 0.16);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-offwhite);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-image: radial-gradient(rgba(142, 174, 196, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Canvas Floating Petals */
#petalsCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Touch Friendly Buttons & Interactive Elements */
button, a {
  touch-action: manipulation;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid var(--border-subtle);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-monogram {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

.header-monogram .ampersand-script {
  font-family: var(--font-script);
  color: var(--serenity-dark);
  font-size: 1.8rem;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  position: relative;
  padding: 4px 0;
  transition: all 0.3s ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--serenity-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-nav a:hover {
  opacity: 1;
  color: var(--serenity-dark);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-secondary-sm {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--serenity-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  min-height: 40px;
}

.btn-secondary-sm:hover,
.btn-secondary-sm:active {
  background: var(--serenity-soft);
  border-color: var(--serenity-primary);
  transform: translateY(-1px);
}

/* Mobile Hamburger Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--serenity-dark);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
  background: var(--serenity-soft);
  color: var(--serenity-deep);
  transform: scale(1.05);
}

/* Mobile Nav Drawer Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(250, 249, 246, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px 40px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-nav-header {
  text-align: center;
  margin-top: 20px;
}

.mobile-nav-monogram {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-dark);
  display: block;
}

.mobile-nav-monogram .ampersand-script {
  font-family: var(--font-script);
  color: var(--serenity-dark);
  font-size: 2.4rem;
}

.mobile-nav-sub {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--serenity-dark);
  text-transform: uppercase;
  font-weight: 600;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.mobile-nav-link i {
  font-size: 1.1rem;
  color: var(--serenity-dark);
  width: 24px;
}

.mobile-nav-link:active {
  background: var(--serenity-soft);
  color: var(--serenity-dark);
  transform: translateX(4px);
}

.mobile-nav-footer {
  text-align: center;
}

/* ==========================================================================
   Hero Section (100vh / 100dvh)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 0 60px 0;
}

/* Guarantee initial visibility for hero content on first render */
.hero-section .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 12s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(250, 249, 246, 0.45) 0%,
    rgba(42, 51, 58, 0.35) 40%,
    rgba(42, 51, 58, 0.78) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 5;
  color: #FFFFFF;
  padding: 0 24px;
  margin-top: 20px;
  width: 100%;
}

.delicate-crest {
  margin-bottom: 16px;
  animation: fadeInDown 1.2s ease;
}

.hero-subtitle {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #F0F5F9;
  font-weight: 500;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-title .ampersand {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--serenity-light);
  font-size: 1.2em;
  margin: 0 6px;
  vertical-align: middle;
}

.hero-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #F8F7F4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-detail-item i {
  color: var(--serenity-light);
  font-size: 1rem;
}

.hero-divider {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-accent);
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.btn-primary {
  background: var(--serenity-soft);
  color: var(--serenity-deep);
  border: 1px solid var(--serenity-light);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s var(--transition-smooth);
  min-height: 50px;
}

.btn-primary:hover,
.btn-primary:active {
  background: #FFFFFF;
  color: var(--serenity-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: #FFFFFF;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-icon .wheel {
  width: 3px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 2px;
  animation: scrollWheel 2s infinite ease-in-out;
}

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

/* ==========================================================================
   Section Components
   ========================================================================== */

section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--serenity-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto 40px auto;
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */

.countdown-section {
  background-color: var(--bg-offwhite);
  text-align: center;
  padding: 80px 0 90px 0;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  margin: 36px auto 0 auto;
}

.countdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  min-width: 130px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--serenity-primary);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--serenity-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 500;
}

.countdown-divider {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--serenity-primary);
  opacity: 0.5;
  margin-top: -20px;
}

/* ==========================================================================
   Nossa História Section
   ========================================================================== */

.story-section {
  background: linear-gradient(180deg, var(--bg-offwhite) 0%, var(--serenity-soft) 100%);
  padding: 100px 0;
  text-align: center;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 60px 44px;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.story-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--serenity-soft);
  color: var(--serenity-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px auto;
  font-size: 1.2rem;
  border: 1px solid var(--border-subtle);
}

.story-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 32px;
}

.story-signature {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--serenity-dark);
}

/* ==========================================================================
   Informações Section
   ========================================================================== */

.info-section {
  background-color: var(--bg-offwhite);
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--serenity-primary);
}

.info-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--serenity-soft);
  color: var(--serenity-dark);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 1px solid var(--border-subtle);
}

.info-card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--serenity-dark);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.info-card-value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--serenity-dark);
  margin-bottom: 10px;
}

.info-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Galeria Section
   ========================================================================== */

.gallery-section {
  background: var(--bg-subtle);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  grid-column: span 6;
  height: 320px;
}

.gallery-item.item-large {
  grid-column: span 8;
  height: 420px;
}

.gallery-item.item-tall {
  grid-column: span 4;
  height: 420px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
}

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 51, 58, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:active img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-hover-overlay,
.gallery-item:active .gallery-hover-overlay {
  opacity: 1;
}

/* ==========================================================================
   Versículo Section
   ========================================================================== */

.verse-section {
  background-color: var(--bg-offwhite);
  padding: 120px 0;
  text-align: center;
}

.verse-content {
  max-width: 760px;
  margin: 0 auto;
}

.verse-flourish {
  font-size: 1.2rem;
  color: var(--gold-accent);
  margin-bottom: 20px;
}

.verse-text {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 20px;
}

.verse-reference {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--serenity-dark);
  font-weight: 600;
  font-style: normal;
  display: inline-block;
  padding: 6px 20px;
  background: var(--serenity-soft);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Convite Section
   ========================================================================== */

.invitation-section {
  background: linear-gradient(180deg, var(--bg-offwhite) 0%, var(--bg-subtle) 100%);
  padding: 90px 0 110px 0;
  text-align: center;
}

.invitation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.invitation-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--serenity-dark);
  margin-bottom: 14px;
}

.invitation-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
}

.invitation-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.invitation-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px auto;
  line-height: 1.7;
}

.btn-disabled {
  background: var(--bg-subtle);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.75;
  min-height: 48px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--text-dark);
  color: #FFFFFF;
  padding: 70px 0 50px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-crest {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--serenity-light);
  margin-bottom: 10px;
  letter-spacing: 0.15em;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.footer-date {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--serenity-light);
  margin-bottom: 20px;
}

.footer-love {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--gold-accent);
}

/* ==========================================================================
   Modals & Lightbox
   ========================================================================== */

.modal-backdrop, .lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(42, 51, 58, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.modal-backdrop.active, .lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-close, .lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-subtle);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

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

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--serenity-soft);
  color: var(--serenity-dark);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-event-preview {
  background: var(--serenity-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.preview-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--serenity-dark);
  margin-bottom: 6px;
}

.preview-item {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

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

.calendar-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 48px;
}

.calendar-option-btn i {
  font-size: 1.2rem;
  color: var(--serenity-dark);
}

.calendar-option-btn:active {
  background: var(--serenity-soft);
  border-color: var(--serenity-primary);
}

/* Lightbox Specifics */
.lightbox-container {
  max-width: 92vw;
  max-height: 85vh;
  text-align: center;
  position: relative;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  font-family: var(--font-serif);
  color: #FFFFFF;
  font-size: 1.25rem;
  margin-top: 14px;
}

/* ==========================================================================
   Animations & Scroll Reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Adjustments (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .gallery-item,
  .gallery-item.item-large,
  .gallery-item.item-tall {
    grid-column: span 6;
    height: 320px;
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .header-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }

  .site-header {
    padding: 12px 0;
  }

  .header-content {
    padding: 0 16px;
  }

  .btn-secondary-sm span {
    display: none;
  }

  .btn-secondary-sm {
    padding: 8px 12px;
    min-height: 40px;
  }
  
  /* Hero Mobile */
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 90px 16px 50px 16px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .hero-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    padding: 5px 14px;
  }

  .hero-details {
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-divider {
    display: none;
  }

  .btn-primary {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    font-size: 0.85rem;
    justify-content: center;
  }

  /* Countdown mobile grid: 4 cards taking equal 25% width */
  .countdown-section {
    padding: 60px 0 70px 0;
  }

  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
    margin-top: 24px;
  }
  
  .countdown-card {
    min-width: 0;
    padding: 16px 4px;
    border-radius: var(--radius-sm);
  }
  
  .countdown-number {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  }

  .countdown-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
  
  .countdown-divider {
    display: none;
  }

  /* Story Mobile */
  .story-section {
    padding: 70px 0;
  }

  .story-card {
    padding: 40px 20px;
    border-radius: var(--radius-md);
  }

  .story-quote {
    font-size: 1.2rem;
    line-height: 1.65;
  }

  .story-signature {
    font-size: 2.2rem;
  }

  /* Info Mobile */
  .info-section {
    padding: 70px 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-card {
    padding: 32px 20px;
  }
  
  /* Gallery Mobile */
  .gallery-section {
    padding: 70px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .gallery-item,
  .gallery-item.item-large,
  .gallery-item.item-tall {
    grid-column: span 1;
    height: 250px;
  }

  /* Verse Mobile */
  .verse-section {
    padding: 80px 20px;
  }

  .verse-text {
    font-size: 1.7rem;
  }

  /* Invitation Mobile */
  .invitation-section {
    padding: 70px 0 90px 0;
  }

  .invitation-card {
    padding: 36px 20px;
  }

  .btn-disabled {
    width: 100%;
    justify-content: center;
  }
}
