/* ============================================
   Woven in Glory — Wedding Website Styles
   Theme: Olive Green, Gold, Ivory, Beige
   ============================================ */

:root {
  --olive: #556B2F;
  --olive-dark: #3d4f22;
  --olive-light: #6B7F3B;
  --gold: #C9A961;
  --gold-light: #D4AF37;
  --gold-dark: #A68B4B;
  --ivory: #FFFFF0;
  --white: #FFFFFF;
  --beige: #F5F0E8;
  --beige-dark: #E8E0D4;
  --text: #2C2C2C;
  --text-light: #5a5a5a;

  --font-script: 'Great Vibes', cursive;
  --font-display: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, sans-serif;

  --shadow: 0 8px 32px rgba(85, 107, 47, 0.12);
  --shadow-gold: 0 4px 20px rgba(201, 169, 97, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--beige);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-align: center;
  color: var(--olive);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.script {
  font-family: var(--font-script);
}

.hidden {
  display: none !important;
}

/* ---- Loading Screen ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--olive-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  color: var(--ivory);
}

.loader-script {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 4rem);
  animation: fadeInUp 1s ease;
}

.loader-theme {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.5rem 0 2rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: loadProgress 2s ease forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

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

/* ---- Particles ---- */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---- Music Toggle ---- */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--olive);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.music-toggle:hover {
  background: var(--gold);
  color: var(--white);
}

.music-toggle.playing {
  background: var(--olive);
  color: var(--gold);
  border-color: var(--gold);
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.nav-brand {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold);
}

.navbar.scrolled .nav-brand {
  color: var(--olive);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ivory);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.navbar.scrolled .nav-links a {
  color: var(--olive);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--olive);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory);
}

.btn-outline:hover {
  background: var(--ivory);
  color: var(--olive);
}

.navbar.scrolled ~ * .btn-outline,
.section .btn-outline {
  color: var(--olive);
  border-color: var(--olive);
}

.section .btn-outline:hover {
  background: var(--olive);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

/* ---- Glass Cards ---- */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease, transform 8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61, 79, 34, 0.5) 0%,
    rgba(61, 79, 34, 0.7) 50%,
    rgba(61, 79, 34, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ivory);
  padding: 2rem;
}

.hero-names {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--gold);
  line-height: 1.1;
  animation: heroReveal 1.2s ease 0.5s both;
}

.hero-theme {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 1rem 0;
  animation: heroReveal 1.2s ease 0.8s both;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  animation: heroReveal 1.2s ease 1.1s both;
}

.hero-quote {
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  animation: heroReveal 1.2s ease 1.4s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: heroReveal 1.2s ease 1.7s both;
}

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

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

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ---- Countdown ---- */
.countdown-section {
  background: var(--olive);
  color: var(--ivory);
}

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

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  min-width: 100px;
}

.countdown-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.3s ease;
}

.countdown-number.tick {
  animation: countTick 0.4s ease;
}

@keyframes countTick {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: var(--gold-light); }
  100% { transform: scale(1); }
}

.countdown-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* ---- Featured Collage ---- */
.collage-section {
  background: #1a1a1a;
  padding: 3rem 0;
}

.collage-feature {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ---- Wedding Video ---- */
.video-section {
  background: var(--ivory);
}

.video-wrap {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--gold), #e8d5a8);
  border-radius: calc(var(--radius-sm) + 4px);
  box-shadow: 0 24px 60px rgba(85, 107, 47, 0.15);
}

.wedding-video {
  display: block;
  width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  background: #111;
}

/* ---- Timeline / Story ---- */
.story-section {
  background: var(--ivory);
}

.timeline {
  max-width: 700px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--olive));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-icon {
  font-size: 2rem;
  background: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  z-index: 1;
  margin-bottom: 1rem;
}

.timeline-content {
  width: 100%;
  text-align: center;
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--olive);
  margin-bottom: 0.75rem;
}

.timeline-image {
  height: 200px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.timeline-content:hover .timeline-image {
  transform: scale(1.03);
}

/* ---- Gallery ---- */
.gallery-section {
  background: var(--beige);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--olive);
  background: transparent;
  color: var(--olive);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--olive);
  color: var(--white);
}

.gallery-masonry {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(85,107,47,0.4));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.3s;
}

.lightbox-close { top: 1rem; right: 1.5rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold);
}

/* ---- Schedule ---- */
.schedule-section {
  background: var(--ivory);
}

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

.schedule-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--olive);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}

.schedule-details {
  list-style: none;
  margin-bottom: 1.5rem;
}

.schedule-details li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--beige-dark);
  font-size: 0.95rem;
}

.schedule-details strong {
  color: var(--olive);
}

/* ---- Order of Program ---- */
.program-section {
  background: var(--beige);
}

.program-list {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 0;
  overflow: hidden;
}

.program-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  transition: background 0.3s ease;
}

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

.program-item:hover {
  background: rgba(201, 169, 97, 0.08);
}

.program-item-highlight {
  background: rgba(85, 107, 47, 0.06);
}

.program-item-highlight .program-event {
  color: var(--olive);
  font-weight: 600;
}

.program-time {
  font-family: 'Cinzel', var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.program-event {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.4;
}

/* ---- Map ---- */
.map-section {
  background: var(--beige);
}

.map-wrapper {
  overflow: hidden;
  padding: 0;
}

.map-wrapper iframe {
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.map-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem;
  justify-content: center;
}

/* ---- RSVP ---- */
.rsvp-section {
  background: var(--olive);
  color: var(--ivory);
}

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

.rsvp-section .section-subtitle {
  color: rgba(255,255,240,0.8);
}

.rsvp-form {
  max-width: 700px;
  margin: 0 auto;
}

.rsvp-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--olive);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.rsvp-success {
  text-align: center;
  max-width: 500px;
  margin: 2rem auto 0;
  padding: 3rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  border: 1px solid var(--gold);
}

.rsvp-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.rsvp-success h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.schedule-grid-single {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-contacts {
  text-align: center;
  margin-bottom: 2rem;
  color: rgba(255,255,240,0.9);
}

.rsvp-contacts > p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.rsvp-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.rsvp-contact {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 50px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.rsvp-contact:hover {
  background: var(--gold);
  color: var(--olive-dark);
}

/* ---- Digital Invitation ---- */
.invitation-section {
  background:
    radial-gradient(ellipse at 0% 30%, rgba(201, 169, 97, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 70%, rgba(201, 169, 97, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #0f2418 0%, #1a3d2e 50%, #0f2418 100%);
  position: relative;
  overflow: hidden;
}

.invitation-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.invitation-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.invitation-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.invitation-header-divider {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.invitation-lead {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-style: italic;
  color: rgba(255, 255, 240, 0.8);
  line-height: 1.7;
}

.invitation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.invitation-card-wrapper {
  position: relative;
  justify-self: center;
  width: 100%;
}

.invitation-card-border {
  position: relative;
  padding: 0.75rem;
  border: 1px solid rgba(201, 169, 97, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.invitation-card-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse, rgba(201, 169, 97, 0.3) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.invitation-card-image {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-sm) - 2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.invitation-card-image:hover {
  transform: scale(1.015);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 32px rgba(201, 169, 97, 0.25);
}

.invitation-tap-hint {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 240, 0.5);
  text-align: center;
}

.invitation-details {
  text-align: center;
}

.invitation-couple {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.invitation-full-names {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 240, 0.85);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.invitation-full-names .invitation-ampersand {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--gold-light);
  display: inline-block;
  margin: 0.15rem 0;
}

.invitation-theme-tag {
  font-family: 'Cinzel', var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.invitation-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.invitation-meta-item {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.invitation-meta-full {
  grid-column: 1 / -1;
}

.invitation-meta-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 240, 0.55);
  margin-bottom: 0.35rem;
}

.invitation-meta-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ivory);
  line-height: 1.4;
}

.invitation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.invitation-section .btn-outline {
  color: var(--gold);
  border-color: var(--gold);
}

.invitation-section .btn-outline:hover {
  background: var(--gold);
  color: var(--olive-dark);
}

.invitation-actions .btn {
  min-width: 160px;
}

.invitation-rsvp-link {
  text-align: center;
}

/* Invitation Modal */
.invitation-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.invitation-modal.active {
  opacity: 1;
  visibility: visible;
}

.invitation-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 24, 0.95);
}

.invitation-modal-content {
  position: relative;
  background: #0f2418;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.85);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.invitation-modal.active .invitation-modal-content {
  transform: scale(1);
}

.invitation-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--gold);
  z-index: 2;
}

.invitation-greeting {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,240,0.8);
  margin-bottom: 1rem;
}

.invitation-modal-image {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.invitation-modal-caption {
  font-family: var(--font-serif);
  color: var(--gold);
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.invitation-modal-rsvp {
  width: 100%;
}

/* ---- Wedding Party ---- */
.party-section {
  background: var(--beige);
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.party-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.party-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold);
}

.party-photo {
  height: 220px;
  background-size: cover;
  background-position: center top;
}

.party-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--olive);
  margin: 1rem 0 0.25rem;
}

.party-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  padding-bottom: 1.25rem;
}

/* ---- Dress Code ---- */
.dresscode-section {
  background: var(--ivory);
}

.dresscode-colors {
  text-align: center;
  margin-top: 1.5rem;
}

.dresscode-colors-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--olive);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.color-palette-main {
  justify-content: center;
  margin-top: 0;
}

.color-palette-main span {
  width: 52px;
  height: 52px;
}

.color-palette-labels {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

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

.dresscode-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--olive);
  margin-bottom: 1rem;
}

.color-palette {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.color-palette span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--beige-dark);
  box-shadow: var(--shadow);
}

.dresscode-note {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
  color: var(--text-light);
}

/* ---- Gifts ---- */
.gifts-section {
  background: var(--beige);
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gift-card {
  text-align: center;
}

.gift-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.gift-card h3 {
  font-family: var(--font-serif);
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.payment-options {
  margin-top: 2.5rem;
  text-align: center;
}

.payment-options h3 {
  font-family: var(--font-serif);
  color: var(--olive);
  margin-bottom: 1.5rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.payment-item strong {
  display: block;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 0.5rem auto 0;
  background: var(--beige);
  border: 2px dashed var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- Live Stream ---- */
.live-section {
  background: var(--olive);
  color: var(--ivory);
}

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

.live-section .section-subtitle {
  color: rgba(255,255,240,0.8);
}

.live-placeholder {
  text-align: center;
  padding: 3rem;
}

.live-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* ---- Guest Book ---- */
.guestbook-section {
  background: var(--ivory);
}

.guestbook-form {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.guestbook-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--olive);
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.guestbook-success {
  text-align: center;
  max-width: 500px;
  margin: 2rem auto 0;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: var(--radius);
  animation: guestbookSuccessIn 0.5s ease;
}

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

.guestbook-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.guestbook-success h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.guestbook-success p {
  color: var(--text-light);
}

.guestbook-messages {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guestbook-entry {
  text-align: center;
}

.guestbook-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.guestbook-author {
  color: var(--gold-dark);
  font-size: 0.9rem;
}

/* ---- FAQ ---- */
.faq-section {
  background: var(--beige);
}

.faq-list {
  max-width: 700px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--olive);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---- Accommodation ---- */
.accommodation-section {
  background: var(--ivory);
}

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

.accommodation-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

.accommodation-distance {
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.accommodation-card .btn {
  margin-top: 1rem;
  margin-right: 0.5rem;
}

/* ---- Memories Wall ---- */
.memories-section {
  background: var(--beige);
}

.memories-upload {
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.memories-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.3s;
}

.memories-grid img:hover {
  transform: scale(1.05);
}

/* ---- Social Share ---- */
.share-section {
  background: var(--olive);
}

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

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.share-btn {
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-btn.twitter { background: #000; }

/* ---- Hashtag ---- */
.hashtag-section {
  background: linear-gradient(135deg, var(--ivory), var(--beige));
  text-align: center;
}

.hashtag {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--olive);
  margin: 0.5rem 0;
}

.hashtag-note {
  color: var(--text-light);
  margin-top: 1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--olive-dark);
  color: var(--ivory);
  text-align: center;
  padding: 4rem 2rem;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.footer-names {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer-date {
  font-family: var(--font-serif);
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---- Confetti Canvas ---- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(61, 79, 34, 0.98);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(201,169,97,0.2);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    color: var(--ivory);
  }

  .gallery-masonry {
    columns: 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .program-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .countdown-item {
    min-width: 70px;
  }

  .invitation-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 380px;
  }

  .invitation-details {
    order: 2;
  }

  .invitation-card-wrapper {
    order: 1;
  }

  .invitation-actions {
    flex-direction: column;
  }

  .invitation-actions .btn {
    width: 100%;
  }

  .invitation-card-image {
    max-width: 100%;
  }

  .music-toggle {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
  }

  .music-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    columns: 1;
  }

  .section {
    padding: 3.5rem 0;
  }
}
