/* ─── VARIABLES ────────────────────────────────────────────────── */
:root {
  --ivory: #F8F5F1;
  --black: #1F1F1F;
  --gold: #B08D57;
  --gold-light: #C9A96E;
  --white: #FFFFFF;
  --gray-light: #E8E4DE;
  --text-muted: #666;
  --font-cinzel: 'Cinzel', serif;
  --font-cormorant: 'Cormorant Garamond', serif;
  --font-vibes: 'Great Vibes', cursive;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 40px rgba(0,0,0,0.08);
}

/* ─── RESET ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-cormorant); background: var(--ivory); color: var(--black); overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 40px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(31, 31, 31, 0.96);
  backdrop-filter: blur(12px);
  padding: 14px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-monogram {
  color: var(--white);
  opacity: 0.9;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* ─── HERO ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(1.02);
  transition: transform 8s ease;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.05) 35%,
    rgba(0,0,0,0.45) 65%,
    rgba(0,0,0,0.78) 85%,
    rgba(0,0,0,0.88) 100%
  );
}
.hero:hover .hero-img { transform: scale(1.03); }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.monogram { margin-bottom: 12px; display: flex; justify-content: center; }
.monogram-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: invert(1) brightness(2);
  filter: brightness(0) invert(1);
  opacity: 0.95;
  drop-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-names {
  font-family: var(--font-cinzel);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: 8px;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.amp { font-weight: 300; opacity: 0.9; margin: 0 8px; }
.hero-date {
  font-family: var(--font-cinzel);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.divider-line {
  display: block;
  width: 60px; height: 1px;
  background: rgba(255,255,255,0.4);
}
.hero-content .divider-line { background: rgba(255,255,255,0.5); }
.divider-diamond { font-size: 6px; color: var(--gold); opacity: 0.8; }

/* ─── COUNTDOWN ─────────────────────────────────────────────────── */
.countdown-section {
  background: var(--ivory);
  padding: 48px 24px;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
}
.countdown-label {
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--black);
  opacity: 0.5;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.countdown-sep {
  font-size: 28px;
  color: var(--gray-light);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 16px;
}
.countdown-num {
  font-family: var(--font-cormorant);
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 300;
  color: var(--black);
  line-height: 1;
  letter-spacing: -1px;
}
.countdown-unit {
  font-family: var(--font-cinzel);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--black);
  opacity: 0.4;
  margin-top: 6px;
}

/* ─── INVITATION ────────────────────────────────────────────────── */
.invitation-section {
  background: var(--ivory);
  padding: 72px 24px;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
}
.invitation-inner { max-width: 560px; margin: 0 auto; }
.inv-ornament { display: flex; justify-content: center; margin-bottom: 28px; }
.inv-greeting {
  font-family: var(--font-vibes);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--black);
  margin-bottom: 16px;
}
.inv-text {
  font-family: var(--font-cormorant);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 400;
  line-height: 1.9;
  color: var(--black);
  opacity: 0.75;
  margin-bottom: 56px;
}
.families-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-light);
}
.family { text-align: center; }
.family-role {
  font-family: var(--font-vibes);
  font-size: 22px;
  color: var(--black);
  opacity: 0.6;
  margin-bottom: 8px;
}
.family-names {
  font-family: var(--font-cinzel);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--black);
}
.family-monogram svg { width: 64px; height: 52px; }

/* ─── CEREMONY ──────────────────────────────────────────────────── */
.ceremony-section {
  background: var(--ivory);
  padding: 72px 24px;
}
.section-label {
  font-family: var(--font-cinzel);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 5px;
  text-align: center;
  color: var(--black);
  opacity: 0.55;
  margin-bottom: 48px;
  text-transform: uppercase;
}
.ceremony-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  background: var(--white);
  box-shadow: var(--shadow);
}
.ceremony-img-wrap {
  height: 380px;
  overflow: hidden;
}
.ceremony-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
  transition: transform 0.6s ease;
}
.ceremony-img-wrap:hover .ceremony-img { transform: scale(1.04); }
.ceremony-info {
  padding: 60px 52px;
  background: var(--white);
}
.venue-name {
  font-family: var(--font-cinzel);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--black);
  margin-bottom: 32px;
}
.venue-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.venue-icon { flex-shrink: 0; margin-top: 2px; }
.venue-detail p {
  font-family: var(--font-cormorant);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  opacity: 0.75;
  line-height: 1.6;
}

/* ─── GALLERY ───────────────────────────────────────────────────── */
.gallery-section {
  background: var(--ivory);
  padding: 72px 24px;
  border-top: 1px solid var(--gray-light);
}
.gallery-grid {
  max-width: 1000px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.6s ease;
  filter: grayscale(20%);
}
.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(176, 141, 87, 0);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-hover::after {
  content: '⊕';
  color: var(--white);
  font-size: 28px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.06); filter: grayscale(0%); }
.gallery-item:hover .gallery-hover { background: rgba(176, 141, 87, 0.25); }
.gallery-item:hover .gallery-hover::after { opacity: 1; }
.gallery-btn-wrap { text-align: center; }

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn-outline {
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 14px 48px;
  text-transform: uppercase;
  transition: var(--transition);
  background: transparent;
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}
.btn-primary {
  font-family: var(--font-cinzel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--white);
  background: var(--black);
  padding: 16px 64px;
  text-transform: uppercase;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--gold); }

/* ─── RSVP ──────────────────────────────────────────────────────── */
.rsvp-section {
  background: var(--ivory);
  padding: 72px 24px 80px;
  border-top: 1px solid var(--gray-light);
}
.rsvp-form {
  max-width: 720px;
  margin: 0 auto;
}
.rsvp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-cinzel);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--black);
  opacity: 0.5;
  text-transform: uppercase;
}
.form-input {
  font-family: var(--font-cormorant);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--gold); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.rsvp-submit-wrap { text-align: center; margin-top: 28px; }

/* ─── CONTACT NOTE ──────────────────────────────────────────────── */
.contact-note {
  max-width: 580px;
  margin: 64px auto 0;
  text-align: center;
}
.note-border {
  border: 1px solid var(--gray-light);
  padding: 40px 48px;
  position: relative;
}
.note-ornament { display: flex; justify-content: center; margin-bottom: 20px; }
.note-heading {
  font-family: var(--font-vibes);
  font-size: 26px;
  color: var(--black);
  margin-bottom: 16px;
}
.note-body {
  font-family: var(--font-cormorant);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  color: var(--black);
  opacity: 0.7;
  margin-bottom: 20px;
}
.note-sig {
  font-family: var(--font-vibes);
  font-size: 20px;
  color: var(--gold);
  line-height: 1.8;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  padding: 56px 24px 40px;
  text-align: center;
}
.footer-monogram { display: flex; justify-content: center; margin-bottom: 12px; }
.footer-monogram svg { width: 64px; height: 48px; }
.footer-names {
  font-family: var(--font-cinzel);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-date {
  font-family: var(--font-cinzel);
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer .divider-line { background: rgba(255,255,255,0.1); width: 80px; }
.footer .divider-diamond { color: var(--gold); }
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-copy {
  font-family: var(--font-cormorant);
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1px;
}

/* ─── LIGHTBOX ──────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 12px;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 20px; right: 24px; font-size: 22px; }
.lightbox-prev { left: 20px; font-size: 48px; }
.lightbox-next { right: 20px; font-size: 48px; }

/* ─── REVEAL ANIMATION ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SUCCESS MESSAGE ───────────────────────────────────────────── */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--gold);
  font-family: var(--font-cormorant);
  font-size: 18px;
  color: var(--gold);
  max-width: 720px;
  margin: 0 auto;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ceremony-grid { grid-template-columns: 1fr; }
  .ceremony-img-wrap { height: 260px; }
  .ceremony-info { padding: 36px 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { height: 160px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(20,20,20,0.98);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 16px; letter-spacing: 4px; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-monogram { display: none; }
  .rsvp-row { grid-template-columns: 1fr; }
  .families-row { grid-template-columns: 1fr; gap: 20px; }
  .family-monogram { order: -1; }
  .countdown-item { padding: 0 16px; }
  .countdown-num { font-size: 36px; }
  .navbar { padding: 20px 24px; }
  .navbar.scrolled { padding: 12px 24px; }
  .note-border { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { height: 130px; }
  .hero-names { letter-spacing: 4px; }
  .countdown-sep { display: none; }
  .countdown-grid { gap: 8px; }
  .countdown-item { padding: 12px 20px; }
}
