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

/* CSS VARIABLES */
:root {
  --bg-primary: #FBF8F1;
  --bg-secondary: #FFFDF8;
  --bg-dark: #2F4137;
  --bg-dark-light: #4A6151;
  --text-primary: #3A4039;
  --text-secondary: #79817A;
  --text-light: #F6EFDD;
  --gold-primary: #C7A24B;
  --gold-light: #D8BE84;
  --gold-gradient: linear-gradient(135deg, #e6d5ae 0%, #D8BE84 42%, #C7A24B 100%);
  --green-accent: #8FA58B;
  --green-hover: #3E5341;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-title: 'Cinzel Decorative', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-cursive: 'Pinyon Script', cursive;
  --font-serif-display: 'Playfair Display', serif;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  /* Botanical ambient background gradients */
  background-image: 
    radial-gradient(1200px 600px at 82% -6%, rgba(199, 162, 75, 0.08), transparent 60%), 
    radial-gradient(900px 520px at -12% 26%, rgba(143, 165, 139, 0.1), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100%;
}

/* FLOATING LEAVES ANIMATION */
.leaves-container {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: -50px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #8FA58B);
  border-radius: 50% 0 50% 50%;
  opacity: 0.45;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transform-origin: center;
}

@keyframes leafFall {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.55;
  }
  90% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes leafSway {
  0% {
    margin-left: 0px;
  }
  50% {
    margin-left: 25px;
  }
  100% {
    margin-left: -25px;
  }
}

/* COVER SCREEN (FOLD-AWAY DOORS) */
#cover-screen {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#cover-screen.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #6b7d70, #2F4137);
  z-index: -2;
}

.door {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 10;
}

.door-left {
  left: 0;
  background: repeating-linear-gradient(90deg, #4A6151 0px, #677a6d 18px, #4A6151 36px, #2F4137 56px, #4A6151 72px);
  box-shadow: inset -20px 0 40px rgba(0,0,0,0.32), 10px 0 30px rgba(0,0,0,0.2);
}

.door-right {
  right: 0;
  background: repeating-linear-gradient(90deg, #4A6151 0px, #2F4137 16px, #4A6151 36px, #677a6d 54px, #4A6151 72px);
  box-shadow: inset 20px 0 40px rgba(0,0,0,0.32), -10px 0 30px rgba(0,0,0,0.2);
}

#cover-screen.opened .door-left {
  transform: translateX(-100%);
}

#cover-screen.opened .door-right {
  transform: translateX(100%);
}

/* Door handles / Gold trims */
.door-left::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 16px;
  height: 110px;
  background: var(--gold-gradient);
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.door-right::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 16px;
  height: 110px;
  background: var(--gold-gradient);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.door-gold-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--gold-gradient);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  z-index: 15;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

#cover-screen.opened .door-gold-top {
  transform: translateY(-100%);
}

/* Cover Content Card */
.cover-content {
  position: relative;
  z-index: 20;
  text-align: center;
  max-width: 400px;
  padding: 30px;
  transition: opacity 0.8s, transform 0.8s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cover-screen.opened .cover-content {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
}

.cover-heart-icon {
  color: var(--gold-primary);
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
  margin-bottom: 20px;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.cover-invited {
  font-family: var(--font-sans);
  color: var(--gold-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.cover-title {
  font-family: var(--font-title);
  color: var(--bg-primary);
  font-size: clamp(2rem, 8vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.06em;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.cover-title span {
  display: block;
}

.cover-title .ampersand {
  font-family: var(--font-cursive);
  color: var(--gold-primary);
  text-transform: none;
  font-size: 0.75em;
  margin: 5px 0;
}

.cover-request {
  color: var(--bg-primary);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 35px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn-open-invitation {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--bg-dark);
  background: var(--gold-gradient);
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 
    0 16px 38px rgba(47, 65, 55, 0.45), 
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(199, 162, 75, 0.8);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-open-invitation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -50%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

.btn-open-invitation:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 20px 42px rgba(47, 65, 55, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(199, 162, 75, 0.9);
}

.btn-open-invitation:active {
  transform: translateY(1px);
}

.cover-tap-prompt {
  margin-top: 20px;
  font-family: var(--font-sans);
  color: var(--bg-primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.75;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* STICKY HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 40px;
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(199, 162, 75, 0.2);
}

.logo-monogram {
  font-family: var(--font-title);
  color: var(--bg-dark-light);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  justify-self: start;
}

.logo-monogram span {
  font-family: var(--font-cursive);
  color: var(--gold-primary);
  font-size: 1.1em;
  margin: 0 0.08em;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  justify-self: center;
}

.desktop-nav a {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--bg-dark-light);
  border-color: var(--gold-primary);
}

/* MUSIC FLOATING CONTROL */
.music-control {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid rgba(199, 162, 75, 0.4);
  color: var(--bg-dark-light);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, background-color 0.3s;
}

.music-control:hover {
  transform: scale(1.08);
  background-color: #ffffff;
}

.music-control svg {
  width: 20px;
  height: 20px;
}

.music-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.music-waves span {
  display: block;
  width: 2px;
  background-color: var(--bg-dark-light);
  animation: wave 1.2s ease-in-out infinite;
  transform-origin: bottom;
}

.music-waves span:nth-child(1) { height: 100%; animation-delay: -0.4s; }
.music-waves span:nth-child(2) { height: 60%; animation-delay: -0.2s; }
.music-waves span:nth-child(3) { height: 80%; animation-delay: 0s; }
.music-waves span:nth-child(4) { height: 40%; animation-delay: -0.6s; }

.music-control.muted .music-waves span {
  animation: none;
  height: 2px;
}

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

/* MAIN LAYOUT WRAPPER */
main {
  margin-top: 70px;
}

/* SECTION GLOBAL DESIGN */
section {
  padding: 90px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-sans);
  color: var(--gold-primary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  color: var(--bg-dark-light);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
}

.section-title span {
  color: var(--gold-primary);
}

.header-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.header-divider span.line {
  height: 1px;
  width: 52px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.header-divider span.diamond {
  color: var(--gold-primary);
  font-size: 11px;
}

/* HERO SECTION */
#hero {
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 50px;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
  }
}

.hero-content {
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 40px 20px;
  border-radius: 36px;
  background: radial-gradient(ellipse 115% 92% at 50% 49%, rgba(251,248,241,0.96) 0%, rgba(251,248,241,0.88) 54%, rgba(251,248,241,0) 95%);
  backdrop-filter: blur(2px);
}

.hero-together {
  font-family: var(--font-sans);
  color: var(--gold-primary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  margin-bottom: 15px;
}

.hero-names {
  font-family: var(--font-title);
  color: var(--bg-dark-light);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-names span.name {
  display: block;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  letter-spacing: 0.04em;
}

.hero-names span.and {
  font-family: var(--font-cursive);
  color: var(--green-accent);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-transform: none;
  display: block;
  margin: 10px 0;
}

.hero-req {
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 25px;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bg-dark-light);
  margin-top: 15px;
}

/* Arch Photo Styling */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.arch-image-container {
  position: relative;
  width: min(88%, 380px);
  aspect-ratio: 4 / 5;
  border-radius: 260px 260px 18px 18px;
  border: 1px solid rgba(199, 162, 75, 0.4);
  box-shadow: 0 30px 60px -34px rgba(70,40,30,0.45);
  background: var(--bg-secondary);
  overflow: hidden;
  padding: 10px;
}

.arch-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 248px 248px 12px 12px;
}

.arch-inner-border {
  position: absolute;
  inset: 13px;
  border-radius: 245px 245px 10px 10px;
  border: 1px solid rgba(199, 162, 75, 0.35);
  pointer-events: none;
}

@media (min-width: 768px) {
  .arch-image-container {
    width: min(100%, 420px);
  }
}

/* COUNTDOWN SECTION */
#countdown-section {
  max-width: 100%;
  padding: 0;
  position: relative;
}

.countdown-banner {
  padding: 70px 20px;
  text-align: center;
  color: var(--text-light);
  background: radial-gradient(130% 95% at 50% 0%, rgba(143,165,139,0.28) 0%, transparent 58%), 
              radial-gradient(95% 75% at 50% 122%, rgba(199,162,75,0.18) 0%, transparent 60%), 
              linear-gradient(135deg, var(--bg-dark-light) 0%, var(--bg-dark) 100%);
  border-top: 1px solid rgba(216,190,132,0.4);
  border-bottom: 1px solid rgba(216,190,132,0.4);
  position: relative;
  overflow: hidden;
}

.countdown-banner::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(216,190,132,0.25);
  border-radius: 6px;
  pointer-events: none;
}

.countdown-flower-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(116%, 850px);
  opacity: 0.15;
  pointer-events: none;
}

.countdown-content {
  position: relative;
  z-index: 5;
  max-width: 800px;
  margin: 0 auto;
}

.countdown-intro {
  font-family: var(--font-cursive);
  color: var(--gold-light);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 5px;
}

.countdown-title {
  font-family: var(--font-serif-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  margin-bottom: 15px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 25px auto;
}

@media (min-width: 576px) {
  .countdown-grid {
    gap: 16px;
  }
}

.countdown-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, rgba(255,253,248,0.15) 0%, rgba(255,253,248,0.04) 100%);
  border: 1px solid rgba(216,190,132,0.4);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 16px 34px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.countdown-val {
  font-family: var(--font-serif-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 6vw, 2.8rem);
  color: #ffffff;
  line-height: 1;
}

.countdown-card span.divider-line {
  width: 25px;
  height: 1px;
  background: rgba(216,190,132,0.6);
  margin: 8px 0;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: clamp(0.5rem, 2vw, 0.65rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

.countdown-target {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(246, 239, 221, 0.85);
  margin-top: 25px;
}

/* OUR STORY SECTION */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 70px;
  }
}

.story-image-container {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 260px 260px 18px 18px;
  border: 1px solid rgba(199, 162, 75, 0.35);
  box-shadow: 0 30px 60px -34px rgba(70,40,30,0.4);
  overflow: hidden;
  padding: 10px;
  background: var(--bg-secondary);
}

.story-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 248px 248px 12px 12px;
}

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.timeline-year {
  font-family: var(--font-serif-display);
  font-size: 1.45rem;
  color: var(--gold-primary);
  font-weight: 500;
  min-width: 65px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.timeline-info h4 {
  font-family: var(--font-serif-display);
  font-size: 1.25rem;
  color: var(--bg-dark-light);
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-info p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* THE DETAILS (EVENTS) SECTION */
.events-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(199, 162, 75, 0.28);
  border-radius: 999px 999px 20px 20px;
  padding: 55px 35px 45px 35px;
  text-align: center;
  flex: 1 1 350px;
  max-width: 420px;
  box-shadow: 0 16px 36px -26px rgba(70,40,30,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background-color: var(--bg-primary);
  color: var(--bg-dark-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.4s;
}

.event-card:hover .event-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.event-icon-box svg {
  width: 26px;
  height: 26px;
}

.event-card h3 {
  font-family: 'Marcellus', Georgia, serif;
  color: var(--bg-dark-light);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.event-time {
  font-family: 'Marcellus', Georgia, serif;
  color: var(--text-primary);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.event-divider {
  width: 40px;
  height: 1px;
  background-color: var(--gold-light);
  margin: 15px 0;
}

.event-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Save our Date Calendar Integration Button */
.calendar-btn-container {
  max-width: 400px;
  margin: 45px auto 0 auto;
  position: relative;
}

.btn-calendar {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(199, 162, 75, 0.4);
  border-radius: 16px;
  box-shadow: 0 12px 28px -18px rgba(74, 97, 81, 0.25);
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.btn-calendar:hover {
  background-color: rgba(255,255,255,0.5);
}

.btn-calendar .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-dark-light), #3E5341);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.btn-calendar .btn-text-content {
  flex: 1;
}

.btn-calendar .btn-title {
  font-family: 'Marcellus', Georgia, serif;
  color: var(--bg-dark-light);
  font-size: 1.1rem;
  display: block;
}

.btn-calendar .btn-subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

.btn-calendar .chevron-icon {
  color: var(--bg-dark-light);
  transition: transform 0.2s;
}

.btn-calendar.active .chevron-icon {
  transform: rotate(180deg);
}

/* Calendar Dropdown */
.calendar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid rgba(199, 162, 75, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  z-index: 50;
  overflow: hidden;
}

.calendar-dropdown.show {
  display: flex;
}

.calendar-option {
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 162, 75, 0.15);
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-option:last-child {
  border-bottom: none;
}

.calendar-option:hover {
  background-color: var(--bg-primary);
}

/* PHOTO GALLERY SECTION */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(199, 162, 75, 0.25);
  border-radius: 12px;
  background: var(--bg-secondary);
  aspect-ratio: 1 / 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(70,40,30,0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.tall {
  grid-row: span 2;
  border-radius: 120px 120px 12px 12px;
  aspect-ratio: 1 / 2;
}

@media (max-width: 576px) {
  .gallery-item.tall {
    aspect-ratio: 1 / 1.7;
  }
}

.gallery-empty-note {
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* LOCATION SECTION */
.location-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.location-card-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(199, 162, 75, 0.3);
  border-radius: 90px 90px 18px 18px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 16px 36px -26px rgba(70,40,30,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 576px) {
  .location-info-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 25px;
    padding: 35px 40px;
  }
}

.location-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  color: var(--bg-dark-light);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 15px;
}

@media (min-width: 576px) {
  .location-icon-box {
    margin-bottom: 0;
  }
}

.location-icon-box svg {
  width: 24px;
  height: 24px;
}

.location-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-venue-label {
  font-family: var(--font-cursive);
  color: var(--green-accent);
  font-size: 1.5rem;
  line-height: 0.9;
}

.location-venue-name {
  font-family: 'Marcellus', Georgia, serif;
  color: var(--bg-dark-light);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.location-address {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .map-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
  }
}

.map-media-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-iframe-container {
  position: relative;
  min-height: 320px;
  flex: 1;
  border-radius: 18px;
  border: 1px solid rgba(199, 162, 75, 0.35);
  box-shadow: 0 30px 60px -34px rgba(70,40,30,0.45);
  overflow: hidden;
}

.map-iframe-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.1) saturate(0.9);
}

.btn-open-maps {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--bg-dark-light), var(--green-hover));
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 14px 26px -14px rgba(47, 65, 55, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-open-maps:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -10px rgba(47, 65, 55, 0.8);
}

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

/* RSVP SECTION */
#rsvp-section {
  background: rgba(241, 231, 207, 0.45);
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.rsvp-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-wrapper p.deadline {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold-primary);
  margin-top: 10px;
  margin-bottom: 40px;
}

.rsvp-form-container {
  background: var(--bg-secondary);
  border: 1px solid rgba(199, 162, 75, 0.35);
  border-radius: 120px 120px 20px 20px;
  padding: 85px 25px 45px 25px;
  box-shadow: 0 30px 60px -40px rgba(70,40,30,0.4);
  text-align: left;
}

@media (min-width: 576px) {
  .rsvp-form-container {
    border-radius: 200px 200px 22px 22px;
    padding: 110px 50px 50px 50px;
  }
}

.form-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label, .form-group .label-text {
  font-family: var(--font-sans);
  color: var(--gold-primary);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.rsvp-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid rgba(199, 162, 75, 0.45);
  border-radius: 10px;
  padding: 12px 18px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.rsvp-input:focus {
  border-color: var(--bg-dark-light);
  box-shadow: 0 0 0 3px rgba(74, 97, 81, 0.12);
}

.attendance-buttons {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.btn-attendance {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 10px;
  text-align: center;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(199, 162, 75, 0.45);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-attendance.active {
  background-color: var(--bg-dark-light);
  color: var(--text-light);
  border-color: var(--bg-dark-light);
  box-shadow: 0 4px 12px rgba(74, 97, 81, 0.18);
}

.guest-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
}

.btn-counter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(74, 97, 81, 0.1);
  color: var(--bg-dark-light);
  border: 1px solid rgba(199, 162, 75, 0.5);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
}

.btn-counter:hover:not(:disabled) {
  background-color: rgba(74, 97, 81, 0.18);
}

.btn-counter:active:not(:disabled) {
  transform: scale(0.9);
}

.btn-counter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.guest-count-val {
  font-family: var(--font-serif-display);
  color: var(--bg-dark-light);
  font-size: 2.5rem;
  min-width: 45px;
  text-align: center;
  line-height: 1;
}

.btn-submit-rsvp {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-dark-light), var(--green-hover));
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: none;
  padding: 16px 20px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 30px -12px rgba(47, 65, 55, 0.55);
  margin-top: 35px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-rsvp:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -10px rgba(47, 65, 55, 0.65);
}

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

.btn-submit-rsvp svg {
  width: 15px;
  height: 15px;
}

/* Modal Popup styling */
.rsvp-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(47, 65, 55, 0.6);
  backdrop-filter: blur(4px);
  z-index: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.rsvp-modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(199, 162, 75, 0.4);
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 450px;
  width: min(90%, 450px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.rsvp-modal.show .rsvp-modal-card {
  transform: translateY(0);
}

.rsvp-modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(143, 165, 139, 0.2);
  color: var(--bg-dark-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}

.rsvp-modal-card h3 {
  font-family: var(--font-serif-display);
  font-size: 1.5rem;
  color: var(--bg-dark-light);
  margin-bottom: 10px;
}

.rsvp-modal-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 25px;
}

.btn-modal-close {
  background: var(--gold-gradient);
  border: none;
  color: var(--bg-dark);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(199, 162, 75, 0.25);
  transition: background-color 0.2s;
}

.btn-modal-close:hover {
  box-shadow: 0 10px 20px rgba(199, 162, 75, 0.35);
}

/* FOOTER SECTION */
#footer-section {
  max-width: 100%;
  padding: 0;
  position: relative;
}

.footer-banner {
  padding: 80px 20px 60px 20px;
  text-align: center;
  color: var(--text-light);
  background: radial-gradient(120% 80% at 50% 0%, rgba(143,165,139,0.26) 0%, transparent 55%), 
              radial-gradient(100% 78% at 50% 120%, rgba(199,162,75,0.2) 0%, transparent 60%), 
              linear-gradient(165deg, var(--bg-dark-light) 0%, var(--bg-dark) 100%);
  border-top: 1px solid rgba(216,190,132,0.45);
  position: relative;
  overflow: hidden;
  border-radius: 60px 60px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .footer-banner {
    border-radius: 90px 90px 0 0;
    padding: 100px 20px 80px 20px;
  }
}

.footer-banner::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(216,190,132,0.22);
  border-radius: 50px 50px 0 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .footer-banner::before {
    inset: 20px;
    border-radius: 78px 78px 0 0;
  }
}

.footer-flower-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120%, 600px);
  opacity: 0.15;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
  margin: 0 auto;
}

.footer-save-date {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.9;
}

.footer-date-digits {
  font-family: var(--font-serif-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 15px 0;
}

.footer-sealed {
  font-family: var(--font-cursive);
  color: var(--gold-light);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 25px;
}

.footer-monogram {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.footer-monogram span {
  font-family: var(--font-cursive);
  color: var(--gold-light);
  font-size: 1.1em;
  margin: 0 0.08em;
}

.footer-names {
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: rgba(246, 239, 221, 0.92);
  margin-bottom: 30px;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(216,190,132,0.55);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-contact:hover {
  transform: translateY(-1px);
  background-color: rgba(255, 253, 248, 0.2);
}

.btn-contact svg {
  width: 14px;
  height: 14px;
  color: var(--gold-light);
}

.footer-bottom-bar {
  background-color: var(--bg-dark);
  padding: 24px 20px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(246, 239, 221, 0.55);
}

.footer-bottom-bar a {
  color: rgba(246, 239, 221, 0.85);
  text-decoration: none;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-left: 4px;
}

.footer-bottom-bar a:hover {
  text-decoration: underline;
}

.footer-bottom-bar svg {
  width: 11px;
  height: 11px;
  color: var(--gold-light);
  fill: var(--gold-light);
  vertical-align: middle;
  margin: -2px 2px 0 2px;
}

/* MOBILE BOTTOM NAVIGATION */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px)) 6px;
  background: rgba(241, 231, 207, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(199, 162, 75, 0.4);
  box-shadow: 0 -10px 30px -15px rgba(70,40,30,0.3);
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.mobile-nav a.active {
  color: var(--bg-dark-light);
}

.mobile-nav a svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-rsvp-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav-rsvp-btn span.rsvp-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--bg-dark-light), var(--green-hover));
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px -8px rgba(47,65,55,0.8);
  border: 3px solid var(--bg-primary);
  margin-top: -26px;
  transition: transform 0.2s;
}

.mobile-nav-rsvp-btn:hover span.rsvp-circle {
  transform: scale(1.05);
}

.mobile-nav-rsvp-btn span.rsvp-circle svg {
  width: 22px;
  height: 22px;
}

/* Hide mobile elements on desktop, hide desktop elements on mobile */
@media (min-width: 577px) {
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 576px) {
  header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 15px 20px;
  }
  .desktop-nav {
    display: none;
  }
  .logo-monogram {
    justify-self: center;
  }
  main {
    margin-bottom: 60px; /* Space for mobile bottom bar */
  }
  section {
    padding: 60px 15px;
  }
}

.cover-guest-greeting {
  font-family: var(--font-cursive);
  color: var(--gold-light);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 8px;
  display: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
