/* =========================================
   FONTS & ROOT
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@200;300;400;500&display=swap');

:root {
  --burgundy: #6B1929;
  --burgundy-dark: #4A1018;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #FDF8F2;
  --cream-dark: #F5EDE0;
  --dark: #1C1008;
  --muted: #7A6A5E;
  --border: rgba(201,168,76,0.25);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;
}

/* =========================================
   RESET
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-weight: 300; color: var(--dark); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* =========================================
   NAV
========================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s;
}
.site-nav.scrolled {
  background: rgba(253,248,242,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
  letter-spacing: 0.1em;
  transition: color 0.4s;
}
.site-nav.scrolled .nav-brand { color: var(--burgundy); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: all 0.3s;
}
.site-nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--gold) !important; }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .site-nav { padding: 14px 20px; }
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28,16,8,0.45) 0%,
    rgba(107,25,41,0.3) 50%,
    rgba(28,16,8,0.6) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: 700px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-monogram {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: white;
  padding: 12px;
  margin: 0 auto 28px;
  border: 2px solid rgba(201,168,76,0.5);
  box-shadow: 0 0 0 8px rgba(201,168,76,0.12), 0 20px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: scale(0.8);
  animation: fadeScale 0.8s 0.5s forwards;
}
.hero-monogram img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.hero-names {
  font-family: var(--font-serif);
  font-weight: 300;
  color: white;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.7s forwards;
}
.hero-name1, .hero-name2 {
  display: block;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: 0.05em;
}
.hero-amp {
  display: block;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-style: italic;
  color: var(--gold-light);
  line-height: 1;
  margin: 4px 0;
}
.hero-deco {
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 20px auto;
  opacity: 0;
  animation: fadeIn 0.8s 1s forwards;
}
.hero-date {
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  animation: fadeIn 0.8s 1.1s forwards;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}
.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* =========================================
   COUNTDOWN
========================================= */
.countdown-strip {
  background: var(--burgundy);
  padding: 28px 20px;
  text-align: center;
}
.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: white;
  line-height: 1;
}
.countdown-unit {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.countdown-sep {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  align-self: flex-start;
  padding-top: 4px;
}

/* =========================================
   SECTION BASE
========================================= */
.section { padding: 80px 20px; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  text-align: center;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--dark);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-deco {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
  opacity: 0.6;
}

/* =========================================
   SCROLL ANIMATIONS
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }

/* =========================================
   STORY SECTION
========================================= */
.story-section { background: var(--cream-dark); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 640px) { .story-grid { grid-template-columns: 1fr; } }
.story-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 30px 60px rgba(107,25,41,0.2);
}
.story-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.story-img-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--gold);
  border-radius: 22px;
  opacity: 0.4;
  z-index: 1;
}
.story-text-block { text-align: left; }
.story-text-block p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 16px;
}
.story-quote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--burgundy);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 28px 0;
  line-height: 1.5;
}

/* =========================================
   GALLERY SECTION
========================================= */
.gallery-section { background: var(--dark); padding: 80px 20px; }
.gallery-section .section-title { color: white; }
.gallery-section .section-eyebrow { color: var(--gold-light); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(107,25,41,0.4);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.featured { grid-column: span 2; aspect-ratio: 2/1; }

/* =========================================
   DETAILS SECTION
========================================= */
.details-section { background: var(--cream); }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.detail-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(107,25,41,0.1); }
.detail-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.detail-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
}
.detail-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--burgundy);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(107,25,41,0.25);
}
.map-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(107,25,41,0.35); }

/* =========================================
   DRESS CODE SECTION
========================================= */
.dress-section {
  background: var(--burgundy);
  padding: 80px 20px;
  text-align: center;
}
.dress-section .section-title { color: white; }
.dress-section .section-eyebrow { color: var(--gold-light); }
.color-palettes {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.swatch-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
}
.swatch-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}
.dress-note {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================
   PROGRAM SECTION
========================================= */
.program-section { background: var(--cream-dark); }
.timeline {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}
.timeline-time {
  min-width: 72px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
  text-align: right;
  padding-top: 2px;
}
.timeline-dot {
  position: relative;
  margin-top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}
.timeline-content { padding-top: 0; }
.timeline-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 2px;
}
.timeline-sub { font-size: 0.82rem; color: var(--muted); }

/* =========================================
   GUEST LOOKUP SECTION
========================================= */
.lookup-section { background: white; }
.lookup-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.lookup-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.lookup-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 500px) { .lookup-form { flex-direction: column; } }
.lookup-input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}
.lookup-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.lookup-btn {
  padding: 14px 24px;
  background: var(--burgundy);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(107,25,41,0.25);
}
.lookup-btn:hover { transform: translateY(-2px); }
.lookup-result {
  display: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.lookup-result.found {
  border: 1px solid rgba(46,125,50,0.2);
  background: rgba(46,125,50,0.04);
}
.lookup-result.not-found {
  border: 1px solid rgba(198,40,40,0.15);
  background: rgba(198,40,40,0.04);
}
.lookup-result-inner { padding: 28px; text-align: center; }
.lookup-result-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
}
.lookup-result-pax {
  display: inline-block;
  background: var(--burgundy);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.lookup-result-status { font-size: 0.9rem; color: var(--muted); }
.lookup-rsvp-prompt {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.lookup-not-found-msg { font-size: 0.95rem; color: #c62828; }

/* =========================================
   RSVP SECTION
========================================= */
.rsvp-section { background: var(--cream-dark); }
.rsvp-box {
  max-width: 520px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(107,25,41,0.1);
  border: 1px solid var(--border);
}
@media (max-width: 480px) { .rsvp-box { padding: 28px 20px; } }
.rsvp-steps > div { display: none; }
.rsvp-steps > div.active { display: block; }

/* Steps indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.step-dot.active { background: var(--burgundy); }

/* RSVP Form Fields */
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  background: var(--cream);
  color: var(--dark);
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-option input { display: none; }
.radio-option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
  background: white;
  text-align: center;
}
.radio-option input:checked + .radio-option-label {
  border-color: var(--burgundy);
  background: rgba(107,25,41,0.04);
  color: var(--burgundy);
  font-weight: 500;
}
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--burgundy), #9B2535);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 6px 20px rgba(107,25,41,0.3);
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(107,25,41,0.4); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-back {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  margin-top: 12px;
  display: block;
  width: 100%;
  text-align: center;
}
.btn-back:hover { color: var(--burgundy); }
#rsvp-feedback {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  display: none;
}
.guest-match-btn {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.25s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guest-match-btn:hover { border-color: var(--burgundy); background: rgba(107,25,41,0.03); }
.guest-match-name { font-weight: 400; color: var(--dark); }
.guest-match-pax {
  font-size: 0.72rem;
  background: var(--burgundy);
  color: white;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background: var(--dark);
  padding: 60px 20px;
  text-align: center;
}
.footer-monogram {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 10px;
  margin: 0 auto 20px;
}
.footer-monogram img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.footer-names {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: white;
  font-weight: 300;
  margin-bottom: 8px;
}
.footer-names span { color: var(--gold); font-style: italic; }
.footer-date { font-size: 0.75rem; letter-spacing: 0.25em; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.footer-verse {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}

/* =========================================
   FLOATING RSVP BUTTON
========================================= */
.fab-rsvp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--burgundy), #9B2535);
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(107,25,41,0.4);
  z-index: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.fab-rsvp.visible { opacity: 1; transform: translateY(0); }
.fab-rsvp:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(107,25,41,0.5); }

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes fadeScale {
  to { opacity: 1; transform: scale(1); }
}

/* =========================================
   UTILITIES
========================================= */
.hidden { display: none !important; }
.text-center { text-align: center; }
