/* ==========================================================================
   1. COLOR PALETTE & CSS VARIABLES (Burgundy & White Theme)
   ========================================================================== */
:root {
  --color-burgundy: #734F96;         /* Primary Deep Burgundy */
  --color-burgundy-hover: #462F5E;   /* Darker Burgundy for hover states */
  --color-burgundy-light: #967BB0;   /* Lighter Burgundy accent */
  --color-cream: #faf6f6;            /* Soft White / Off-white background */
  --color-dark: #2a1f22;             /* Deep rich dark tint */
  --color-whatsapp: #25d366;         /* WhatsApp Brand Green */
  --color-whatsapp-hover: #169c43;   /* Darker Green for hover */
}

/* ==========================================================================
   2. GLOBAL BASE STYLES
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ==========================================================================
   3. TYPOGRAPHY & HEADER STYLES
   ========================================================================== */
/* Cursive Great Vibes Font for Hero Names & Headings */
.font-header {
  font-family: 'Great Vibes', cursive !important;
}

/* Elegant Serif Font for Subheadings & Names */
.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Section Header Size & Color */
.section-header {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-burgundy) !important;
}

.tracking-wide {
  letter-spacing: 2px;
}

.tracking-widest {
  letter-spacing: 4px;
}

.fs-7 {
  font-size: 0.75rem;
}

/* ==========================================================================
   4. COLOR UTILITIES & DECORATIVE DIVIDERS
   ========================================================================== */
.bg-cream {
  background-color: var(--color-cream);
}

.text-burgundy {
  color: var(--color-burgundy) !important;
}

.bg-burgundy {
  background-color: var(--color-burgundy) !important;
}

/* Decorative Divider Line */
.burgundy-divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-burgundy);
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-ornament .line {
  width: 60px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   MINIMAL FULLSCREEN ENTRY OVERLAY (NO CARD)
   ========================================================================== */
.wedding-entry-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: #fffaf7; /* Soft cream background */
  z-index: 99999 !important;
  
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;
  
  margin: 0 !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.wedding-entry-overlay.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.overlay-content {
  max-width: 650px;
  width: 100%;
  margin: auto;
}

.btn-burgundy {
  background-color: var(--color-burgundy, #734F96) !important;
  color: #ffffff !important;
  letter-spacing: 1.5px;
  border: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-burgundy:hover {
  background-color: var(--color-burgundy-hover) !important;
  opacity: 0.9;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ==========================================================================
   SCROLL LOCK FOR WELCOME SCREEN
   ========================================================================== */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important; /* Prevents touch swipe scrolling on iOS & Android */
}

/* ==========================================================================
   5. HEADER BAR & TRANSLUCENT HALF-SCREEN NAVIGATION OVERLAY
   ========================================================================== */
.header-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 70px !important;
  z-index: 1050 !important;

  /* Force total transparency when at the top */
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;

  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* Scrolled state: turns white only after scrolling */
.header-bar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   P&M LOGO & HAMBURGER: Hidden & Transparent at Top
   ========================================================================== */
.brand-logo,
#menuToggleBtn,
.navbar-toggler,
.hamburger-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important; /* Prevents accidental clicks when invisible */
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* ==========================================================================
   P&M LOGO & HAMBURGER: Fade In When Scrolled
   ========================================================================== */
.header-bar.scrolled .brand-logo,
.header-bar.scrolled #menuToggleBtn,
.header-bar.scrolled .navbar-toggler,
.header-bar.scrolled .hamburger-btn {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Base styles for Brand Logo */
.brand-logo {
  font-size: 1.8rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: #1a1a1a !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Base styles for Hamburger Button */
#menuToggleBtn,
.navbar-toggler,
.hamburger-btn {
  border: none !important;
  background: transparent !important;
  color: #1a1a1a !important;
  font-size: 1.6rem;
  padding: 4px 8px;
  box-shadow: none !important;
  outline: none !important;
}

#menuToggleBtn:focus,
#menuToggleBtn:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Translucent Frosted-Glass Overlay Menu */
.half-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 52vh;
  min-height: 340px;
  background-color: rgba(174, 143, 235, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  padding-top: 70px;
  padding-bottom: 20px;
  overflow-y: auto;
}

.half-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Centered Menu Links */
.nav-link-custom {
  font-family: 'Cinzel', 'Montserrat', sans-serif;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 3px;
  text-indent: 3px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease, transform 0.3s ease;
  display: block;
  width: 100%;
  padding: 4px 0;
  margin: 0 auto;
}

.nav-link-custom:hover {
  color: #fce8e8;
  transform: translateY(-2px);
}

/* ==========================================================================
   6. HERO SECTION (Corner Floral Decoration & Mobile Optimized)
   ========================================================================== */
.hero-section {
  position: relative !important;
  top: 0 !important;
  margin-top: 0 !important;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 0 !important; /* Prevents pushing down the inner flow */
  padding-bottom: 0 !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: #faf6f6;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Eliminate dark dimming overlays */
.hero-overlay {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

.hero-section::before,
.hero-section::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   SHARED RESPONSIVE CORNER FLOWERS (HERO & WELCOME OVERLAY)
   ========================================================================== */
.hero-corner-flowers,
.overlay-corner-flowers {
  position: absolute !important;
  width: clamp(200px, 28vw, 320px) !important;
  height: auto !important;
  pointer-events: none;
  z-index: 1 !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.hero-corner-flowers img,
.hero-corner-flowers svg,
.overlay-corner-flowers img,
.overlay-corner-flowers svg {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Top Corners --- */
.hero-corner-flowers.top-left,
.overlay-corner-flowers.top-left {
  top: 0 !important;
  left: 0 !important;
}

.hero-corner-flowers.top-right,
.overlay-corner-flowers.top-right {
  top: 0 !important;
  right: 0 !important;
}

/* --- Bottom Corners --- */
.hero-corner-flowers.bottom-left,
.overlay-corner-flowers.bottom-left {
  bottom: 0 !important;
  left: 0 !important;
  transform: scaleY(-1); /* Flips asset vertically to hug bottom border */
}

.hero-corner-flowers.bottom-right,
.overlay-corner-flowers.bottom-right {
  bottom: 0 !important;
  right: 0 !important;
  transform: scaleY(-1); /* Flips asset vertically to hug bottom border */
}

/* Tablet & Standard Mobile Screens (≤ 768px) */
@media (max-width: 768px) {
  .hero-corner-flowers,
  .overlay-corner-flowers {
    width: 175px !important;
  }
}

/* Small Mobile Screens (≤ 480px) */
@media (max-width: 480px) {
  .hero-corner-flowers,
  .overlay-corner-flowers {
    width: 155px !important;
  }
}

/* ==========================================================================
   7. GOOGLE CALENDAR BUTTON (Burgundy Style - Uniform Text)
   ========================================================================== */
.btn-burgundy-gcal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-burgundy) !important;
  color: #ffffff !important;
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-burgundy-gcal:hover {
  background-color: var(--color-burgundy-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(128, 0, 32, 0.35) !important;
}

.btn-burgundy-gcal .g-icon {
  font-size: 1.8rem;
  line-height: 1;
  color: #ffffff !important;
}

.btn-burgundy-gcal .g-text-stacked {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
  color: #ffffff !important;
}

.btn-burgundy-gcal .g-line-top,
.btn-burgundy-gcal .g-line-bottom {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 1;
}

/* ==========================================================================
   8. MAP NAVIGATION BUTTONS (Google Maps & Waze)
   ========================================================================== */
.btn-map {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-google-maps {
  background-color: #4285f4;
  color: #ffffff;
}

.btn-google-maps:hover {
  background-color: #3367d6;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(66, 133, 244, 0.35) !important;
}

.btn-waze {
  background-color: #33ccff;
  color: #000000;
}

.btn-waze:hover {
  background-color: #1ab8eb;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(51, 204, 255, 0.35) !important;
}

.waze-icon {
  vertical-align: text-bottom;
}

/* ==========================================================================
   9. CONTACT ACTION BUTTONS (WhatsApp & Direct Phone Call)
   ========================================================================== */
.btn-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0;
}

@media (min-width: 768px) {
  .btn-action-icon {
    width: 55px;
    height: 55px;
  }
}

.btn-action-icon i {
  transition: transform 0.3s ease;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35) !important;
}

.btn-whatsapp:hover i {
  transform: scale(1.12);
}

.btn-call {
  background-color: var(--color-burgundy);
  color: #ffffff;
}

.btn-call:hover {
  background-color: var(--color-burgundy-hover);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(128, 0, 32, 0.35) !important;
}

.btn-call:hover i {
  transform: scale(1.12);
}

/* ==========================================================================
   10. CARDS & CONTAINERS (Countdown, Details, Location, Contacts)
   ========================================================================== */
.countdown-card {
  border: 1px solid rgba(128, 0, 32, 0.2);
  transition: transform 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
}

.detail-card, 
.contact-card {
  border-radius: 16px;
  border: 1px solid rgba(128, 0, 32, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover, 
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(128, 0, 32, 0.12) !important;
}

/*
SPLASH SCREEN CODE WAS HERE
*/

/* ==========================================================================
   12. COUNTDOWN BOXES MOBILE ALIGNMENT
   ========================================================================== */

/* Outer container for countdown items */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* Compact spacing between boxes on small screens */
  width: 100%;
}

/* Individual countdown box styling */
.countdown-box {
  flex: 1 1 0px; /* Forces all 4 boxes to be equal width */
  min-width: 0;   /* Allows flex items to shrink below content size */
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 2px; /* Slightly reduced padding for tighter fit */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(128, 0, 32, 0.1);
}

/* Big number styling */
.countdown-number {
  font-size: clamp(1.3rem, 4.5vw, 2rem) !important;
  font-weight: 700;
  color: var(--color-burgundy, #800020);
  line-height: 1;
  margin-bottom: 4px;
}

/* Text label styling (DAYS, HOURS, MINUTES, SECONDS) - Reduced Size */
.countdown-label {
  font-size: clamp(0.5rem, 1.8vw, 0.65rem) !important; /* Scaled down slightly */
  letter-spacing: 0.3px !important;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap; /* Prevents text from breaking into multiple lines */
  margin-bottom: 0;
  line-height: 1;
}

/* Desktop adjustment for larger screens */
@media (min-width: 576px) {
  .countdown-container {
    gap: 16px;
  }
  .countdown-box {
    padding: 18px 12px;
  }
  .countdown-label {
    font-size: 0.7rem !important;
    letter-spacing: 1px !important;
  }
}

/* ==========================================================================
   13. SCROLL FADE-IN-UP ANIMATION
   ========================================================================== */

/* Starting state (hidden, shifted 30px downwards) */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* Active state triggered when scrolled into view */
.reveal-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: Staggered delays for child elements (like parent info or dates) */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================================================
   TOP CENTER MOTIF / EMBLEM
   ========================================================================== */
.hero-motif-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-top-motif {
  /* Enlarged responsive size: minimum 90px, preferred 14vw, maximum 140px */
  width: clamp(90px, 14vw, 140px);
  height: auto;
  display: block;
  object-fit: contain;
  
  /* Soft shadow matching the floral theme */
  filter: drop-shadow(0 3px 8px rgba(115, 79, 150, 0.15));
  
  /* Shifts only the image upward */
  transform: translateY(-35px);
  
  /* Smooth scale transition if needed */
  transition: transform 0.3s ease;
}

/* Enlarged sizing for small screens */
@media (max-width: 480px) {
  .hero-top-motif {
    width: clamp(75px, 20vw, 105px);
    transform: translateY(-25px);
  }
}

/* Ensure the hero section acts as the boundary */
.hero-section {
  position: relative !important;
  overflow: hidden !important; /* Prevents petals from falling into sections below */
}

/* ==========================================================================
   HERO-ONLY FALLING PETAL CONTAINER
   ========================================================================== */
#petal-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  overflow: hidden;
  z-index: 2; /* Sits above the background, behind interactive text/buttons */
}

/* Individual Petal Styling */
.falling-petal {
  position: absolute;
  top: -40px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.85;
  will-change: transform, opacity;
  animation-name: fallPetal, swayPetal;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

/* Fall stops at the bottom edge of the hero section */
@keyframes fallPetal {
  0% {
    top: -40px;
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    top: 100%; /* Ends cleanly at the bottom boundary of the hero */
    opacity: 0;
  }
}

/* Sway animation remains the same */
@keyframes swayPetal {
  0% {
    transform: translateX(0px) rotate(0deg) rotateY(0deg);
  }
  50% {
    transform: translateX(50px) rotate(180deg) rotateY(180deg);
  }
  100% {
    transform: translateX(-25px) rotate(360deg) rotateY(360deg);
  }
}