/* ═══════════════════════════════════════════════════════════
   Elegant Botanical Wedding Template
   Green & Cream Color Palette
═══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ──────────────────────────────────────── */
:root {
  /* Colors */
  --sage-green: #8B9D83;
  --sage-dark: #6B7D63;
  --sage-light: #B5C4AD;
  --cream: #F5F3EF;
  --cream-dark: #E8E4DD;
  --terracotta: #C17B6F;
  --text-dark: #2C2C2C;
  --text-medium: #5A5A5A;
  --text-light: #8A8A8A;
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 2rem;
  --container-max: 1200px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-medium);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}


/* ─── SCROLL REVEAL ANIMATIONS ───────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.reveal-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── FADE-IN ANIMATIONS ─────────────────────────────────── */
/* Sections are visible by default - animations controlled by JavaScript */
section {
  /* No initial opacity/transform - Web Animations API handles this */
}

/* Show sections when visible */
section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Faster fade for hero section */
.hero {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Stagger children elements */
.fade-in .detail-card,
.fade-in .faq-item,
.fade-in .program-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in .detail-card:nth-child(1) { animation-delay: 0.1s; }
.fade-in .detail-card:nth-child(2) { animation-delay: 0.2s; }
.fade-in .detail-card:nth-child(3) { animation-delay: 0.3s; }

.fade-in .faq-item:nth-child(1) { animation-delay: 0.1s; }
.fade-in .faq-item:nth-child(2) { animation-delay: 0.2s; }
.fade-in .faq-item:nth-child(3) { animation-delay: 0.3s; }

.fade-in .program-item {
  animation-delay: 0.1s;
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .fade-in .detail-card,
  .fade-in .faq-item,
  .fade-in .program-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── LANGUAGE TOGGLE ────────────────────────────────────── */
.language-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid var(--sage-green);
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
}

.lang-btn:hover {
  color: var(--sage-green);
  transform: scale(1.05);
}

.lang-btn.active {
  color: var(--sage-green);
  font-weight: 700;
}

.lang-divider {
  color: var(--text-light);
  font-weight: 300;
}

@media (max-width: 768px) {
  .language-toggle {
    top: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
  }
  
  .lang-btn {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
  }
}
  }
  
  .lang-text {
    display: none;
  }
  
  .lang-flag {
    font-size: 1.5rem;
  }
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.3;
}

/* ─── CONTAINER ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── SECTION DECORATIONS ────────────────────────────────── */
.section-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  opacity: 0.15;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}

/* Default decoration positions per section */
.story-section .section-decoration {
  top: 5%;
  right: 5%;
}

.details-section .section-decoration {
  top: 10%;
  left: 5%;
}

.program-section .section-decoration {
  bottom: 5%;
  right: 5%;
}

.faq-section .section-decoration {
  top: 5%;
  left: 5%;
}

/* Ensure sections have relative positioning */
.story-section,
.details-section,
.program-section,
.faq-section {
  position: relative;
}

.story-section .container,
.details-section .container,
.program-section .container,
.faq-section .container {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 4rem 2rem;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  position: relative;
}

.floral-accent {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.6;
}

.floral-accent--top {
  top: -40px;
  right: -20px;
}

.hero-names {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 100;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--sage-green);
  margin: 1.5rem auto;
}

.hero-details {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-medium);
}

/* ═══════════════════════════════════════════════════════════
   ENGAGEMENT PHOTO SECTION
═══════════════════════════════════════════════════════════ */
.photo-hero {
  width: 100%;
  background: var(--cream-dark);
}

.photo-hero-image {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.photo-hero-image img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 400px;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   OUR STORY SECTION
═══════════════════════════════════════════════════════════ */
.story-section {
  padding: var(--section-padding);
  background: var(--cream);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-medium);
}

.story-text p {
  margin-bottom: 1rem;
}

.story-photo {
  display: flex;
  justify-content: center;
}

.story-photo-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid white;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.story-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder-circle {
  width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* ═══════════════════════════════════════════════════════════
   DETAILS SECTION
═══════════════════════════════════════════════════════════ */
.details-section {
  padding: var(--section-padding);
  background: white;
}

.section-title-center {
  font-size: 2.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 3rem;
}

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

.detail-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.detail-icon {
  margin-bottom: 1.5rem;
}

.detail-icon svg {
  width: 60px;
  height: 60px;
}

.detail-title {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-content {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.detail-content p {
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   PROGRAM SECTION
═══════════════════════════════════════════════════════════ */
.program-section {
  padding: var(--section-padding);
  background: var(--cream);
}

.program-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.program-floral {
  display: none;
}

.program-content {
  text-align: center;
}

.section-title-italic {
  font-size: 2.5rem;
  font-weight: 300;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.program-date {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.program-timeline {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.program-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.program-item:last-child {
  border-bottom: none;
}

.program-time {
  font-weight: 500;
  color: var(--text-dark);
  text-align: right;
}

.program-event {
  color: var(--text-medium);
}

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════════════ */
.faq-section {
  padding: var(--section-padding);
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.faq-item {
  padding: 2rem 1.5rem;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.faq-answer {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-medium);
}

/* ═══════════════════════════════════════════════════════════
   RSVP SECTION
═══════════════════════════════════════════════════════════ */
.rsvp-section {
  padding: var(--section-padding);
  background: var(--cream);
}

.rsvp-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rsvp-intro {
  font-size: 1rem;
  color: var(--text-medium);
  margin-top: 1rem;
}

.rsvp-container {
  max-width: 600px;
  margin: 0 auto 3rem;
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Form Styles */
.form-field {
  margin-bottom: 1.8rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sage-green);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.95rem;
  color: var(--text-medium);
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--sage-green);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s;
}

.form-submit:hover {
  background: var(--sage-dark);
}

.form-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.contact-info {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.contact-info strong {
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  padding: 3rem 2rem;
  background: white;
  text-align: center;
}

.footer-floral {
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - DESKTOP
═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --section-padding: 6rem 2rem;
  }
  
  .story-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
  
  .story-photo-circle {
    width: 350px;
    height: 350px;
  }
  
  .program-layout {
    grid-template-columns: 200px 1fr;
    gap: 3rem;
  }
  
  .program-floral {
    display: block;
  }
  
  .program-content {
    text-align: left;
  }
  
  .program-timeline {
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .faq-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Update root variables to use CSS custom properties */
:root {
  --bg-primary: #f5f3ef;
  --bg-secondary: #ffffff;
  --text-primary: #2c3e2c;
  --text-secondary: #5a6b5a;
}

/* Dark mode color overrides */
body.dark-mode {
  --bg-primary: #1a1f1a;
  --bg-secondary: #242b24;
  --text-primary: #e8e4dd;
  --text-secondary: #b8bfb8;
  --sage-green: #a8b5a0;
  --sage-dark: #8b9d83;
  --sage-light: #c5d0bd;
  --cream: #2c3329;
  --cream-dark: #1f241f;
  --terracotta: #d89a8f;
  --text-dark: #e8e4dd;
  --text-medium: #b8bfb8;
  --text-light: #8a9080;
}

body {
  background: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button (within container) */
.theme-toggle {
  background: var(--sage-green);
  color: var(--cream);
  border: 2px solid var(--sage-dark);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.theme-toggle.hidden {
  display: none;
}

/* Update existing elements to use new variables */
.hero {
  background: var(--bg-secondary);
}

section {
  background: var(--bg-secondary);
}

/* Mobile responsive */


/* Mobile responsive toggles */
@media (max-width: 768px) {
  .toggle-container {
    gap: 0.75rem;
  }
  
  .toggle-container.position-top-left,
  .toggle-container.position-top-right {
    top: 10px;
  }
  
  .toggle-container.position-top-left {
    left: 10px;
  }
  
  .toggle-container.position-top-right {
    right: 10px;
  }
  
  .toggle-container.position-top-center {
    top: 10px;
  }
  
  .toggle-container.theme-disabled .language-toggle {
    top: 10px;
  }
  
  .language-toggle {
    padding: 0.4rem 1rem;
    gap: 0.5rem;
  }
  
  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}


/* ═══════════════════════════════════════════════════════════
   UNIFIED TOGGLE CONTROLS (Language + Theme)
═══════════════════════════════════════════════════════════ */

/* Toggle Controls Container */
.toggle-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Position variants - controlled by data attribute */
.toggle-controls[data-position="top-left"] {
  top: 20px;
  left: 20px;
  right: auto;
}

.toggle-controls[data-position="top-center"] {
  top: 20px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.toggle-controls[data-position="top-right"] {
  top: 20px;
  right: 20px;
  left: auto;
}

.toggle-controls[data-position="bottom-left"] {
  top: auto;
  bottom: 20px;
  left: 20px;
  right: auto;
}

.toggle-controls[data-position="bottom-center"] {
  top: auto;
  bottom: 20px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.toggle-controls[data-position="bottom-right"] {
  top: auto;
  bottom: 20px;
  right: 20px;
  left: auto;
}

/* Language Toggle Styling (updated for vertical layout) */
.language-toggle {
  position: relative;
  background: var(--sage-green);
  border-radius: 25px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s;
  font-family: var(--font-sans);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.25);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-divider {
  color: var(--cream);
  opacity: 0.5;
  font-weight: 300;
}

/* Theme Toggle (updated for vertical layout) */
.theme-toggle {
  background: var(--sage-green);
  color: var(--cream);
  border: 2px solid var(--sage-dark);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.theme-toggle.hidden {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .toggle-controls {
    gap: 10px;
  }
  
  .toggle-controls[data-position="top-left"],
  .toggle-controls[data-position="top-center"],
  .toggle-controls[data-position="top-right"] {
    top: 10px;
  }
  
  .toggle-controls[data-position="bottom-left"],
  .toggle-controls[data-position="bottom-center"],
  .toggle-controls[data-position="bottom-right"] {
    bottom: 10px;
  }
  
  .toggle-controls[data-position="top-left"],
  .toggle-controls[data-position="bottom-left"] {
    left: 10px;
  }
  
  .toggle-controls[data-position="top-right"],
  .toggle-controls[data-position="bottom-right"] {
    right: 10px;
  }
  
  .language-toggle {
    padding: 6px 12px;
  }
  
  .lang-btn {
    font-size: 0.85rem;
    padding: 3px 6px;
  }
  
  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}


/* ═══════════════════════════════════════════════════════════
   DARK MODE VARIABLES
═══════════════════════════════════════════════════════════ */

body.dark-mode {
  --sage-green: #a8b5a0;
  --sage-dark: #8b9d83;
  --sage-light: #c5d0bd;
  --cream: #2c3329;
  --cream-dark: #1f241f;
  --terracotta: #d89a8f;
  --text-dark: #e8e4dd;
  --text-medium: #b8bfb8;
  --text-light: #8a9080;
  background: #1a1f1a;
  color: #e8e4dd;
}


/* === FINAL TOGGLE OVERRIDES === */
:root {
  --toggle-bg: rgba(255,255,255,0.96);
  --toggle-text: #8e8b8b;
  --toggle-active-bg: rgba(139, 157, 131, 0.10);
  --toggle-active-text: var(--sage-green);
  --toggle-border: rgba(139, 157, 131, 0.95);
  --toggle-shadow: rgba(87, 98, 84, 0.18);
  --toggle-radius: 999px;
}

.toggle-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  bottom: auto;
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  transform: none;
}
.toggle-controls[data-position="top-left"] { top: 20px; left: 20px; right: auto; bottom: auto; transform: none; justify-content: flex-start; }
.toggle-controls[data-position="top-center"] { top: 20px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); justify-content: center; }
.toggle-controls[data-position="top-right"] { top: 20px; right: 20px; left: auto; bottom: auto; transform: none; justify-content: flex-end; }
.toggle-controls[data-position="bottom-left"] { bottom: 20px; left: 20px; top: auto; right: auto; transform: none; justify-content: flex-start; }
.toggle-controls[data-position="bottom-center"] { bottom: 20px; left: 50%; top: auto; right: auto; transform: translateX(-50%); justify-content: center; }
.toggle-controls[data-position="bottom-right"] { bottom: 20px; right: 20px; top: auto; left: auto; transform: none; justify-content: flex-end; }

.language-toggle {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 160px;
  padding: 10px 14px;
  border: 2px solid var(--toggle-border);
  border-radius: var(--toggle-radius);
  background: var(--toggle-bg);
  box-shadow: 0 12px 24px var(--toggle-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.language-toggle.full-width { min-width: 160px; }
.lang-btn {
  position: relative;
  min-width: 52px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--toggle-text);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  transition: color .24s ease, background-color .24s ease, opacity .24s ease, transform .24s ease;
}
.lang-btn:hover { background: rgba(139,157,131,.08); color: var(--toggle-active-text); transform: none; }
.lang-btn.active { background: var(--toggle-active-bg); color: var(--toggle-active-text); }
.lang-divider { color: rgba(120,120,120,.55); margin: 0 6px; font-weight: 300; }
.theme-toggle {
  width: 58px;
  height: 58px;
  border-radius: var(--toggle-radius);
  border: 2px solid var(--toggle-border);
  background: var(--toggle-bg);
  color: var(--toggle-active-text);
  box-shadow: 0 12px 24px var(--toggle-shadow);
  font-size: 1.3rem;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle.hidden { display: none; }
.toggle-controls.theme-disabled { gap: 0; }

#heroSubtitle, #heroVenue, #heroDate, #storyTitle, #storyText, #detailsSectionTitle, #detailTitle1, #detailTitle2, #detailTitle3, #detailsVenue, #detailsDate, #detailsAttire, #detailsAccommodation, #programSectionTitle, #programDate, #programTimeline, #faqSectionTitle, #faqGrid, #recommendationsSectionTitle, #recommendationsContainer, #rsvpSectionTitle, .contact-info {
  transition: opacity .24s ease, transform .24s ease, filter .24s ease;
}
.lang-fade-out { opacity: 0; transform: translateY(6px); filter: blur(2px); }
.lang-fade-in { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (max-width: 768px) {
  .toggle-controls[data-position] { top: 20px; bottom: auto; }
  .toggle-controls[data-position="top-center"] { left: 50%; transform: translateX(-50%); }
  .toggle-controls[data-position="top-right"] { right: 18px; left: auto; transform: none; }
  .toggle-controls[data-position="top-left"] { left: 18px; right: auto; transform: none; }
  .language-toggle { min-width: 132px; padding: 8px 12px; }
  .lang-btn { min-width: 42px; padding: 8px 10px; font-size: .85rem; }
  .theme-toggle { width: 50px; height: 50px; font-size: 1.15rem; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE ANIMATIONS
═══════════════════════════════════════════════════════════ */

/* Animation keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes crossfade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Apply animations to sections */
section.animate-in {
  animation-fill-mode: both;
}

/* Hidden state for language switch */
.lang-switching {
  opacity: 0;
}


/* Responsive text polish */
.section-title,
.section-title-center,
.section-title-italic,
.detail-title,
.detail-content,
#recommendationsContainer h3,
#recommendationsContainer p,
#recommendationsContainer a,
#faqGrid,
.story-text,
.program-timeline {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.section-title,
.section-title-center,
.section-title-italic,
.detail-title {
  text-wrap: balance;
}

.detail-card,
#recommendationsContainer > div > div,
.faq-item {
  min-width: 0;
}

.detail-title,
.detail-content {
  margin-inline: auto;
}

#recommendationsContainer a {
  overflow-wrap: anywhere;
}

body.layout-transitioning .hero-overlay,
body.layout-transitioning section .container {
  opacity: 0.62;
  transform: translateY(4px) scale(0.997);
  filter: blur(2px);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.hero-overlay,
section .container {
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

@media (max-width: 767px) {
  .section-title,
  .section-title-center,
  .section-title-italic {
    max-inline-size: min(100%, 18ch);
    margin-inline: auto;
  }

  .detail-title {
    max-inline-size: min(100%, 14ch);
  }

  .detail-content {
    max-inline-size: min(100%, 30ch);
  }

  .details-grid,
  .faq-grid {
    gap: 1.6rem;
  }
}



.no-scroll-fade {
  opacity: 1 !important;
  transform: none !important;
}

.no-scroll-fade.scroll-reveal,
.no-scroll-fade.scroll-reveal.reveal-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
/* Recommendations stability + responsive wrapping */
#recommendationsSection .container {
  min-width: 0;
}

#recommendationsContainer {
  min-width: 0;
}

.recommendations-intro {
  text-align: center;
  margin: 0 auto 2rem;
  color: var(--text-medium);
  font-size: clamp(0.98rem, 0.92rem + 0.28vw, 1.05rem);
  max-inline-size: min(100%, 62ch);
  text-wrap: pretty;
}

.recommendations-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
}

.recommendation-card {
  background: var(--cream);
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 12px;
  border: 2px solid var(--sage-light);
  min-width: 0;
  overflow: clip;
}

.recommendation-card-title {
  font-size: clamp(1.02rem, 0.96rem + 0.5vw, 1.3rem);
  margin: 0 0 1rem;
  color: var(--sage-dark);
  border-bottom: 2px solid var(--sage-green);
  padding-bottom: 0.5rem;
  line-height: 1.12;
  letter-spacing: -0.014em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  max-inline-size: 100%;
}

.recommendation-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-dark);
  min-width: 0;
}

.recommendation-item.is-last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.recommendation-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: clamp(0.96rem, 0.92rem + 0.22vw, 1rem);
  min-width: 0;
  overflow-wrap: anywhere;
}

.recommendation-name,
.recommendation-link {
  color: var(--sage-green);
  text-decoration: none;
  transition: color 0.24s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.recommendation-name {
  color: var(--sage-dark);
}

.recommendation-description {
  font-size: clamp(0.9rem, 0.88rem + 0.16vw, 0.95rem);
  color: var(--text-medium);
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-card-title {
    max-inline-size: 100%;
  }
}

@media (min-width: 768px) and (orientation: landscape), (min-width: 1024px) {
  .recommendation-card-title {
    max-inline-size: 24ch;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RSVP SECTION - Bilingual Form Styles
   ═══════════════════════════════════════════════════════════════ */

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

.rsvp-title {
  font-size: 2rem;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}

.rsvp-intro {
  font-size: 1.1rem;
  color: var(--sage-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.rsvp-form-intro {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: center;
}

.dark-mode .rsvp-form-intro {
  color: var(--cream);
}

.contact-info {
  background: var(--cream-dark);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 3rem;
  text-align: center;
  border: 2px solid var(--sage-light);
}

.dark-mode .contact-info {
  background: rgba(139, 157, 131, 0.1);
  border-color: rgba(139, 157, 131, 0.3);
}

.coordinator-header {
  font-size: 1rem;
  color: var(--text-medium);
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

.dark-mode .coordinator-header {
  color: var(--cream);
}

.contact-role {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0.25rem 0 !important;
}

.dark-mode .contact-role {
  color: rgba(245, 243, 239, 0.7);
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: var(--sage-green);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: var(--sage-dark);
}

.rsvp-form {
  text-align: left;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.dark-mode .rsvp-form {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--sage-dark);
  font-size: 0.95rem;
}

.dark-mode .form-label {
  color: var(--cream);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sage-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  background: white;
  color: var(--text-dark);
}

.dark-mode .form-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 157, 131, 0.3);
  color: var(--cream);
}

.form-input:focus {
  outline: none;
  border-color: var(--sage-green);
  box-shadow: 0 0 0 3px rgba(139, 157, 131, 0.1);
}

.dark-mode .form-input:focus {
  box-shadow: 0 0 0 3px rgba(139, 157, 131, 0.2);
}

.form-input::placeholder {
  color: #999;
}

.dark-mode .form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-helper {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.dark-mode .form-helper {
  color: rgba(245, 243, 239, 0.6);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B9D83' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.dark-mode .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F5F3EF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
  color: var(--text-dark);
}

.dark-mode .radio-label {
  color: var(--cream);
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--sage-green);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-submit:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 157, 131, 0.3);
}

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

/* ═══════════════════════════════════════════════════════════════
   COUNTDOWN TIMER - Minimal & Elegant
   ═══════════════════════════════════════════════════════════════ */

.countdown-timer {
  margin: 2rem 0 1.5rem;
  padding: 1rem;
  text-align: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.countdown-timer:hover {
  opacity: 1;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.dark-mode .countdown-label {
  color: var(--cream);
}

.countdown-units {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.countdown-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sage-green);
  font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sage-dark);
  opacity: 0.8;
  margin-top: 0.25rem;
}

.dark-mode .countdown-unit-label {
  color: var(--cream);
}

@media (max-width: 640px) {
  .countdown-units {
    gap: 0.75rem;
  }
  
  .countdown-unit {
    min-width: 45px;
  }
  
  .countdown-value {
    font-size: 1.25rem;
  }
  
  .countdown-unit-label {
    font-size: 0.65rem;
  }
}

/* ═══════════════════════════════════════════════════════════ */
/* THANK YOU PAGE */
/* ═══════════════════════════════════════════════════════════ */

.thank-you-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.thank-you-container {
  position: relative;
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.thank-you-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  filter: blur(8px);
}

.thank-you-content {
  position: relative;
  background: white;
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.thank-you-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 1s ease-in-out;
}

.thank-you-title {
  font-size: 2.5rem;
  font-family: var(--heading-font, 'Cormorant Garamond'), serif;
  color: var(--sage-green, #6B8E6F);
  margin-bottom: 20px;
  line-height: 1.2;
}

.thank-you-message {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.thank-you-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.thank-you-close {
  background: var(--sage-green, #6B8E6F);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 142, 111, 0.3);
}

.thank-you-close:hover {
  background: #5a7a5e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 142, 111, 0.4);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

.zoom-in {
  animation: zoomIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .thank-you-content {
    padding: 40px 24px;
  }
  
  .thank-you-title {
    font-size: 2rem;
  }
  
  .thank-you-icon {
    font-size: 60px;
  }
  
  .thank-you-message {
    font-size: 1rem;
  }
  
  .thank-you-close {
    padding: 12px 32px;
    font-size: 0.95rem;
  }
}

/* Dark mode support */
body.dark-mode .thank-you-content {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .thank-you-title {
  color: #90b894;
}

body.dark-mode .thank-you-message {
  color: #d0d0d0;
}

body.dark-mode .thank-you-details {
  background: #2a2a2a;
  color: #b0b0b0;
}
