/* ==========================================================================
   Luxury Editorial Wedding Microsite - Master Stylesheet
   Faithful reproduction of Google Stitch Design & Motion Benchmark
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Great+Vibes&family=Montserrat:wght@200;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --color-gold: #8C6C38;
  --color-gold-light: #BFA169;
  --color-gold-dark: #674B23;
  --color-champagne: #DFD2C0;
  --color-ivory: #FAF7F2;
  --color-warm-cream: #F6F1EA;
  --color-rose-subtle: #F7E7E2;
  --color-charcoal: #2D2825;
  --color-stone: #736B63;
}

/* Base resets & ergonomics */
html {
  scroll-behavior: smooth;
  background-color: #EDE8E1;
  color: var(--color-charcoal);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #EDE8E1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Mobile-First Frame: Exactly 440px max width centered on desktop, 100% on mobile */
.mobile-viewport-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  position: relative;
  background-color: var(--color-ivory);
  box-shadow: 0 25px 70px rgba(44, 43, 41, 0.22);
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* Typography Classes */
.font-script-calligraphy {
  font-family: 'Great Vibes', cursive;
  letter-spacing: 0.02em;
}

.font-brush-calligraphy {
  font-family: 'Alex Brush', cursive;
}

.font-editorial-serif {
  font-family: 'Cormorant Garamond', serif;
}

.font-editorial-display {
  font-family: 'Playfair Display', serif;
}

.font-subtle-caps {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.font-meta-sans {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Petals Canvas Layer */
#petals-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

/* Glassmorphism Refinements */
.glass-pill {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(140, 108, 56, 0.35);
  box-shadow: 0 4px 15px rgba(103, 75, 35, 0.08);
  transition: all 0.25s ease;
}

.glass-pill:active {
  transform: scale(0.96);
}

.glass-pill:hover {
  background-color: rgba(255, 255, 255, 0.75);
  border-color: rgba(140, 108, 56, 0.55);
}

/* Hero Section Media Layer */
.hero-media-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media-wrapper video,
.hero-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.02);
}

/* Subtle editorial gradient vignettes */
.hero-vignette-top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(250, 247, 242, 0.75) 0%, rgba(250, 247, 242, 0.25) 60%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-vignette-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(250, 247, 242, 0.95) 0%, rgba(250, 247, 242, 0.45) 60%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Intro Unboxing Overlay & Dissolve */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1714;
  cursor: pointer;
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.85s ease;
}

#intro-overlay.fading-out-last-frames,
#intro-overlay.hidden-overlay {
  opacity: 0 !important;
  transform: scale(1.03);
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.intro-content-card {
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: #1a1714 url('assets/images/intro-cover.png') center/cover no-repeat;
  cursor: pointer;
}

#intro-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#intro-video-element.is-playing {
  opacity: 1;
}

.intro-ui-layer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0.05) 45%, rgba(20, 18, 16, 0.75) 100%);
  transition: opacity 0.4s ease;
}

.intro-ui-layer.fade-out-prompt {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   WHOLE SITE ANIMATION SUITE
   ========================================================================== */

/* 1. Hero Calligraphy Romantic Float */
@keyframes romanticFloat {
  0%, 100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
}

.hero-names-float {
  animation: romanticFloat 5s ease-in-out infinite;
  will-change: transform;
}

/* 2. Delicate Ampersand Soft Pulse */
@keyframes ampersandPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.hero-ampersand-pulse {
  display: inline-block;
  animation: ampersandPulse 4s ease-in-out infinite;
}

/* 3. Hero CTA Pill Button Gold Shimmer */
.hero-cta-pill {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-cta-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.hero-cta-pill:hover::before {
  left: 150%;
}

.hero-cta-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(140, 108, 56, 0.25);
}

/* 4. Scroll-Triggered Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 5. Expanding Decorative Hairline */
.expanding-hairline {
  width: 0 !important;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-revealed .expanding-hairline,
.expanding-hairline.is-expanded {
  width: 3.5rem !important;
}

/* 6. Itinerary Node Glow & Timeline Growth */
@keyframes timelineNodeGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(191, 161, 105, 0.45);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(191, 161, 105, 0);
  }
}

.itinerary-highlight-node {
  animation: timelineNodeGlow 2.5s infinite ease-in-out;
}

.itinerary-card {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.itinerary-card:hover {
  transform: translateX(4px);
}

/* 7. Countdown Digit Tick Effect */
.cd-digit-tick {
  animation: digitPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes digitPop {
  0% {
    transform: scale(1.18);
    color: var(--color-gold);
  }
  100% {
    transform: scale(1);
  }
}

/* 8. Tap Prompt Gentle Breathing */
@keyframes tapBreathe {
  0%, 100% {
    opacity: 0.7;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.tap-hint-breathe {
  animation: tapBreathe 2.8s ease-in-out infinite;
}

/* Custom scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Radio button customized states */
.custom-attendance-radio:checked + div {
  border-color: var(--color-gold);
  background-color: rgba(140, 108, 56, 0.08);
}
