:root {
  --wine: #6d2436;
  --wine-dark: #4a1826;
  --gold: #c9a86a;
  --gold-light: #e4d3ab;
  --ivory: #faf5ee;
  --ivory-dark: #f2e9db;
  --text: #3a2a2a;
  --text-soft: #7a6a63;

  --font-script: 'Mrs Saint Delafield', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section eyebrow / title ---------- */
.section-eyebrow {
  text-align: center;
  font-family: var(--font-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold);
  margin-bottom: .6rem;
}
.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--wine-dark);
  margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: .65rem 1.6rem;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .2s ease;
}
.btn--ghost {
  border: 1px solid var(--wine);
  color: var(--wine);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--wine);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* ---------- Falling petals ---------- */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -5%;
  width: 10px;
  height: 10px;
  background: var(--gold-light);
  border-radius: 0 100% 0 100%;
  opacity: .55;
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(201,168,106,.15), transparent 55%),
    linear-gradient(160deg, rgba(109,36,54,.55) 0%, rgba(74,24,38,.65) 100%),
    url('../img/hero-bg.jpg') center 30%/cover no-repeat;
  color: var(--ivory);
  padding: 2rem;
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
  font-family: var(--font-sans);
  letter-spacing: .4em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}
.hero__names {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  flex-wrap: wrap;
}
.hero__amp {
  font-family: var(--font-script);
  font-size: 0.7em;
  color: var(--gold);
}
.hero__date {
  margin-top: 1.4rem;
  font-family: var(--font-sans);
  letter-spacing: .35em;
  font-size: 1rem;
  color: var(--gold-light);
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--gold-light);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Countdown ---------- */
.countdown {
  padding: 5rem 1.5rem;
  text-align: center;
}
.countdown__grid {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
  margin-top: 1rem;
}
.countdown__item {
  min-width: 90px;
}
.countdown__number {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--wine);
  line-height: 1;
}
.countdown__label {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- Quote ---------- */
.quote {
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  max-width: 760px;
  margin: 0 auto;
}
.quote p {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  line-height: 1.65;
  color: var(--wine);
}
.quote p + p {
  margin-top: 1.2rem;
}

/* ---------- Details ---------- */
.details {
  padding: 2rem 1.5rem 5rem;
  background: var(--ivory-dark);
}
.details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.detail-card {
  background: var(--ivory);
  border: 1px solid rgba(109,36,54,.12);
  border-radius: 12px;
  padding: 2.2rem 1.6rem;
  text-align: center;
}
.detail-card__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 1rem;
  color: var(--gold);
}
.detail-card__icon svg { width: 100%; height: 100%; }
.detail-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--wine-dark);
  margin-bottom: .4rem;
}
.detail-card p {
  font-family: var(--font-sans);
  font-size: .88rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.detail-card__note {
  margin-top: .6rem;
  font-style: italic;
  font-size: .8rem;
}

/* ---------- Map ---------- */
.map-section {
  padding: 5rem 1.5rem;
}
.map-wrap {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(74,24,38,.35);
}
.map-wrap #map {
  width: 100%;
  height: 380px;
  background: var(--ivory-dark);
}
.map-wrap .leaflet-tile-pane {
  filter: sepia(55%) saturate(280%) hue-rotate(295deg) brightness(92%) contrast(92%);
}
.map-wrap .leaflet-popup-content-wrapper {
  background: var(--wine-dark);
  color: var(--ivory);
  border-radius: 8px;
}
.map-wrap .leaflet-popup-content {
  font-family: var(--font-sans);
  font-size: .85rem;
  margin: .7rem .9rem;
}
.map-wrap .leaflet-popup-tip {
  background: var(--wine-dark);
}
.map-wrap .leaflet-control-attribution {
  font-size: .65rem;
}
.map-marker {
  width: 30px;
  height: 30px;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 2rem 1.5rem 6rem;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  max-width: 1000px;
  margin: 0 auto;
}
.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img {
  transform: scale(1.08);
}
@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(58,42,42,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(250,245,238,.15);
  color: var(--ivory);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(250,245,238,.3); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--wine-dark);
  color: var(--gold-light);
}
.footer__names {
  font-family: var(--font-serif);
  font-size: 1.6rem;
}
.footer__names span { font-family: var(--font-script); color: var(--gold); margin: 0 .2rem; }
.footer__credit {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: .65rem;
  opacity: .5;
}
.footer__date {
  margin-top: .4rem;
  font-family: var(--font-sans);
  letter-spacing: .2em;
  font-size: .75rem;
  text-transform: uppercase;
  opacity: .8;
}
