:root {
  --gold: #b8923f;
  --gold-light: #d4af6a;
  --gold-dark: #8f6f2e;
  --black: #15130f;
  --cream: #faf7f0;
  --white: #ffffff;
  --blue: #1f3a5f;
  --text: #2a2620;
  --text-muted: #6b6459;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(21, 19, 15, 0.55);
  backdrop-filter: blur(6px);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}

.nav__links a:hover {
  opacity: 1;
  color: var(--gold-light);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.03);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,13,10,0.55) 0%, rgba(15,13,10,0.45) 40%, rgba(15,13,10,0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 140px 20px 80px;
  max-width: 720px;
}

.hero__eyebrow {
  font-family: var(--sans);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero__name {
  font-family: var(--script);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 10px;
  margin-bottom: 44px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.countdown__unit {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, 0.55);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown__number {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
}

.countdown__label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.btn {
  display: inline-block;
  padding: 14px 44px;
  border: 1px solid var(--gold-light);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

.btn:hover {
  background: var(--gold-light);
  color: var(--black);
}

/* ---------- Shared section styles ---------- */
section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--script);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 20px;
}

/* ---------- Details ---------- */
.details__intro {
  max-width: 680px;
  margin: 0 auto 56px;
  color: var(--text-muted);
  font-size: 1rem;
}

.details__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.detail-card {
  flex: 0 1 240px;
  background: var(--white);
  border: 1px solid rgba(184, 146, 63, 0.25);
  border-radius: 6px;
  padding: 36px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(21, 19, 15, 0.08);
}

.detail-card__icon {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 14px;
}

.detail-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.detail-card p {
  color: var(--text);
  font-size: 0.95rem;
}

.detail-card--accent {
  background: var(--black);
  border-color: var(--black);
}

.detail-card--accent h3 { color: var(--gold-light); }
.detail-card--accent p { color: var(--white); }

.detail-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}

.swatches {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
}

.swatch--white { background: #ffffff; }
.swatch--blue { background: var(--blue); }
.swatch--gold { background: var(--gold-light); }

/* ---------- Gallery ---------- */
.gallery {
  background: var(--white);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.gallery__intro {
  color: var(--text-muted);
  margin-bottom: 50px;
}

.gallery__grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.gallery__item {
  position: relative;
  flex: 0 1 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 3 / 4;
  background: var(--black);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  text-align: left;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
}

/* ---------- RSVP ---------- */
.rsvp__intro {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--text-muted);
}

.rsvp__form-wrap {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(184, 146, 63, 0.3);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.rsvp__iframe {
  width: 100%;
  height: 1302px;
  border: none;
  display: block;
}

.rsvp__fallback {
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rsvp__fallback a {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 64px 24px;
}

.footer__script {
  font-family: var(--script);
  font-size: 2.4rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.footer p {
  font-size: 0.9rem;
  margin-top: 6px;
}

.footer__contact a {
  color: var(--gold-light);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 7, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--black);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 90;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 0.72rem; }
  section { padding: 72px 20px; }
  .countdown__unit { width: 68px; height: 68px; }
  .rsvp__iframe { height: 1100px; }
}
