/*
 * The guest-facing site.
 *
 * This is the stylesheet from heypulkits/wedding-site, taken as-is rather
 * than reinterpreted: it is a finished design that has been used for a real
 * wedding, and every attempt to approximate it from screenshots landed
 * somewhere worse. The markup in src/routes/tenant.ts emits the same class
 * names, driven by a couple's own data instead of hard-coded content.
 *
 * Deliberately separate from app.css. Nothing here should inherit the
 * product's chrome: this page belongs to the couple, not to us.
 *
 * Additions of ours live at the end of the file, under one marked heading,
 * so the ported block stays diffable against its source.
 */
:root {
  --ivory: #FBF6EA;
  --cream: #F5EEDC;
  --sand: #EEE5CB;
  --off-white: #FEFCF8;
  --burgundy: #5A1F2E;
  --deep-burgundy: #3F1520;
  --wine: #6B2C3D;
  --gold: #B8935A;
  --gold-light: #D4B888;
  --gold-deep: #8B6D3B;
  --blush: #E8C4B8;
  --charcoal: #2A2020;
  --charcoal-soft: #4A3C3C;
  --muted: #7A6D68;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-devanagari: 'Tiro Devanagari Sanskrit', serif;

  --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.9s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --shadow-soft: 0 20px 60px -20px rgba(58, 20, 30, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

/* Grain overlay for luxury feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.12 0 0 0 0 0.18 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: 100;
  mix-blend-mode: multiply;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(251, 246, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(184, 147, 90, 0.15);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--burgundy);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-menu a:hover { color: var(--burgundy); }
.nav-menu a:hover::after { width: 100%; }

.nav-menu .nav-admin {
  padding: 8px 18px;
  border: 1px solid rgba(184, 147, 90, 0.55);
  border-radius: 100px;
  color: var(--burgundy);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-menu .nav-admin::after { display: none; }

.nav-menu .nav-admin:hover {
  background: var(--burgundy);
  color: var(--ivory);
  border-color: var(--burgundy);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--burgundy);
  font-size: 24px;
  cursor: pointer;
}

/* Language toggle */
.lang-toggle { position: relative; display: inline-block; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(184, 147, 90, 0.4);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--charcoal-soft);
  transition: var(--transition);
  border-radius: 100px;
}
.lang-current:hover {
  border-color: var(--gold);
  color: var(--burgundy);
}
.lang-flag { font-size: 14px; line-height: 1; }
.lang-code { letter-spacing: 0.2em; }
.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--off-white);
  border: 1px solid var(--gold);
  padding: 6px;
  min-width: 160px;
  z-index: 60;
  box-shadow: 0 12px 32px -8px rgba(58, 20, 30, 0.2);
}
.lang-panel::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
  border-right: 0; border-bottom: 0;
}
.lang-panel::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
  border-left: 0; border-top: 0;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.lang-option:hover { background: var(--cream); color: var(--burgundy); }
.lang-option.active {
  background: linear-gradient(90deg, rgba(232, 196, 184, 0.3), transparent 60%);
  color: var(--burgundy);
  font-weight: 500;
}

/* Devanagari script gets a more elegant serif */
html[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', var(--font-body);
}
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3,
html[lang="hi"] .hero-names .name,
html[lang="hi"] .section-title,
html[lang="hi"] .event-name,
html[lang="hi"] .venue-info h3,
html[lang="hi"] .story-content h2,
html[lang="hi"] .hero-next-name {
  font-family: 'Noto Serif Devanagari', var(--font-display);
  font-style: normal;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 140px;
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(232, 196, 184, 0.25), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(184, 147, 90, 0.12), transparent 60%),
    var(--ivory);
  overflow: hidden;
}

.hero-ornament {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: 0.6;
  color: var(--gold);
}
.hero-ornament.tl { top: 40px; left: 40px; }
.hero-ornament.tr { top: 40px; right: 40px; transform: scaleX(-1); }
.hero-ornament.bl { bottom: 40px; left: 40px; transform: scaleY(-1); }
.hero-ornament.br { bottom: 40px; right: 40px; transform: scale(-1, -1); }

.hero-content {
  text-align: center;
  max-width: 1400px;
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.hero-mantra {
  font-family: var(--font-devanagari);
  color: var(--gold-deep);
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  opacity: 0.8;
}

.hero-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--burgundy);
  margin: 0 auto 28px;
  position: relative;
}

.hero-monogram::before,
.hero-monogram::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--gold));
}
.hero-monogram::before { right: 100%; margin-right: 24px; --dir: left; }
.hero-monogram::after { left: 100%; margin-left: 24px; --dir: right; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 24px;
}

.hero-names {
  font-family: var(--font-display);
  color: var(--burgundy);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(8px, 2vw, 24px);
  white-space: nowrap;
}

.hero-names .name {
  font-size: clamp(28px, 6.8vw, 116px);
  font-style: italic;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-names .amp {
  font-size: clamp(34px, 7.8vw, 132px);
  color: var(--gold);
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-display);
  transform: translateY(-8px);
  padding: 0 8px;
  white-space: nowrap;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--charcoal-soft);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px auto;
  max-width: 400px;
}

.hero-divider .line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  flex: 1;
}

.hero-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-next-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.hero-next-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 52px);
  color: var(--burgundy);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.1;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--deep-burgundy);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.hero-venue {
  display: block;
  width: fit-content;
  margin: 0 auto 60px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.hero-venue:hover {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--burgundy);
  line-height: 1;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-item + .countdown-item {
  border-left: 1px solid rgba(184, 147, 90, 0.25);
  padding-left: 24px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold-deep);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}
.scroll-indicator span {
  margin-top: 8px;
  font-size: 20px;
  letter-spacing: 0;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ============ SECTION BASE ============ */
section {
  padding: 120px 20px;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  color: var(--burgundy);
  text-align: center;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.1;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--charcoal-soft);
  text-align: center;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 60px;
  font-weight: 300;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 60px;
  max-width: 240px;
}
.section-divider .line {
  height: 1px;
  background: var(--gold);
  flex: 1;
  opacity: 0.6;
}
.section-divider .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ============ STORY ============ */
.story {
  background: var(--off-white);
  border-top: 1px solid rgba(184, 147, 90, 0.2);
  border-bottom: 1px solid rgba(184, 147, 90, 0.2);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.story-image {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(90, 31, 46, 0.15), rgba(184, 147, 90, 0.25)),
    var(--sand);
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.story-image::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(251, 246, 234, 0.4);
  pointer-events: none;
}

.story-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(251, 246, 234, 0.7);
  font-size: 20px;
  letter-spacing: 0.1em;
}

.story-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--burgundy);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.1;
}

.story-content p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal-soft);
  margin-bottom: 20px;
  line-height: 1.9;
  font-weight: 300;
}

.story-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-deep);
  margin-top: 32px;
}

/* ============ HASHTAG ============ */
.hashtag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 8px 20px;
  border: 1px solid rgba(184, 147, 90, 0.45);
  border-radius: 100px;
  background: rgba(232, 196, 184, 0.18);
  font-weight: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hashtag-hero {
  margin: 24px auto 0;
}

.hashtag-section {
  margin: 8px auto 40px;
}

.hashtag-footer {
  margin: 12px auto 24px;
  border-color: rgba(212, 184, 136, 0.4);
  background: rgba(212, 184, 136, 0.08);
  color: var(--gold-light);
}

@media (max-width: 640px) {
  .hashtag { font-size: 10px; letter-spacing: 0.28em; padding: 7px 16px; }
}

/* ============ PROFILES ============ */
.profiles {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--ivory) 100%);
  border-top: 1px solid rgba(184, 147, 90, 0.2);
  border-bottom: 1px solid rgba(184, 147, 90, 0.2);
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.profile-card {
  text-align: center;
  padding: 44px 40px 48px;
  background: var(--off-white);
  border: 1px solid rgba(184, 147, 90, 0.25);
  position: relative;
}

.profile-card::before,
.profile-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
}
.profile-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.profile-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.profile-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 50px -18px rgba(58, 20, 30, 0.35);
  border: 3px solid var(--off-white);
  outline: 1px solid rgba(184, 147, 90, 0.4);
  outline-offset: 4px;
  background: var(--sand);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.profile-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(38px, 5vw, 52px);
  color: var(--burgundy);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 10px;
}

.profile-location {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

.profile-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}
.profile-divider .line {
  height: 1px;
  background: var(--gold);
  flex: 1;
  opacity: 0.6;
}
.profile-divider .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.profile-bio {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal-soft);
  font-weight: 300;
  text-align: left;
}

/* ============ EVENTS ============ */
.events {
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.events-swipe-hint { display: none; }

@media (min-width: 640px) and (max-width: 899px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 16px);
    justify-self: center;
  }
}

@media (min-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .event-card {
    grid-column: span 2;
  }
  .event-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .event-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.event-card {
  background: var(--off-white);
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(184, 147, 90, 0.25);
  position: relative;
  transition: var(--transition);
}

.event-card::before,
.event-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  transition: var(--transition);
}
.event-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.event-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.event-card:hover::before,
.event-card:hover::after {
  width: 32px;
  height: 32px;
}

.event-date-line {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.event-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: var(--burgundy);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1;
}

.event-date {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.event-time {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--charcoal-soft);
  margin-bottom: 24px;
}

.event-mini-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto;
  opacity: 0.5;
}

.event-venue {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.event-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin-top: 12px;
}

.event-dress {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(184, 147, 90, 0.3);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ============ VENUE ============ */
.venue {
  background: var(--burgundy);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

.venue::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(184, 147, 90, 0.3);
  pointer-events: none;
}

.venue .section-eyebrow { color: var(--gold-light); }
.venue .section-title { color: var(--ivory); }

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.venue-info h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  color: var(--gold-light);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.1;
}

.venue-info .venue-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: rgba(251, 246, 234, 0.8);
  margin-bottom: 32px;
}

.venue-info p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: rgba(251, 246, 234, 0.85);
  margin-bottom: 20px;
  font-weight: 300;
}

.venue-details {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 147, 90, 0.3);
}

.venue-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 13px;
}

.venue-detail-row .label {
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.venue-detail-row .value {
  color: var(--ivory);
  font-weight: 400;
}

.venue-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 40px;
  background: transparent;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: var(--transition);
}

.venue-cta:hover {
  background: var(--gold-light);
  color: var(--burgundy);
}

.venue-map {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(184, 147, 90, 0.3);
  position: relative;
  overflow: hidden;
  background: rgba(251, 246, 234, 0.04);
}

.venue-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.18) saturate(0.9) hue-rotate(-8deg) brightness(0.98);
}

.venue-map::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(251, 246, 234, 0.18);
  pointer-events: none;
  z-index: 2;
}

.venue-map-open {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(63, 21, 32, 0.94);
  color: var(--gold-light);
  padding: 12px 22px;
  border: 1px solid var(--gold-light);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.venue-map-open:hover {
  background: var(--gold-light);
  color: var(--burgundy);
}

.venue-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0.9;
}

.venue-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 90px auto;
  max-width: 460px;
  padding: 0 20px;
}

.venue-separator .line {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 184, 136, 0.6), transparent);
  flex: 1;
}

.venue-separator .diamond {
  width: 10px;
  height: 10px;
  background: var(--gold-light);
  transform: rotate(45deg);
  opacity: 0.9;
}

.venue-grid.reversed .venue-info { order: 2; }
.venue-grid.reversed .venue-map { order: 1; }

/* ============ GALLERY ============ */
.gallery {
  background: var(--ivory);
}

/* Masonry gallery — natural aspect ratios, ZERO cropping */
.gallery-grid {
  column-count: 3;
  column-gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sand);
  display: block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 147, 90, 0);
  pointer-events: none;
  transition: border-color 0.4s ease, inset 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after {
  inset: 8px;
  border-color: rgba(212, 184, 136, 0.55);
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(42, 32, 32, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
  cursor: zoom-out;
  animation: lb-fade 0.28s ease-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: 1px solid rgba(212, 184, 136, 0.5);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover {
  background: var(--gold-light);
  color: var(--burgundy);
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ============ RSVP ============ */
.rsvp {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  position: relative;
}

.rsvp-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--off-white);
  padding: 64px 56px;
  border: 1px solid rgba(184, 147, 90, 0.3);
  position: relative;
  box-shadow: var(--shadow-soft);
}

.rsvp-container::before,
.rsvp-container::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--gold);
  border-style: solid;
}
.rsvp-container::before {
  top: -8px;
  left: -8px;
  border-width: 1px 0 0 1px;
}
.rsvp-container::after {
  bottom: -8px;
  right: -8px;
  border-width: 0 1px 1px 0;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.req {
  color: var(--burgundy);
  font-size: 13px;
  letter-spacing: 0;
  margin-left: 2px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(184, 147, 90, 0.4);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  transition: border-color var(--transition);
  font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--off-white);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--font-body);
}

.rsvp-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.rsvp-radio {
  flex: 1;
  padding: 16px;
  border: 1px solid rgba(184, 147, 90, 0.4);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--charcoal-soft);
  background: var(--ivory);
}

.rsvp-radio input { display: none; }

.rsvp-radio.selected {
  background: var(--burgundy);
  color: var(--ivory);
  border-color: var(--burgundy);
}

.multi-select { position: relative; }

.multi-select-trigger {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(184, 147, 90, 0.4);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: border-color var(--transition);
  font-weight: 300;
}

.multi-select-trigger:hover,
.multi-select-trigger:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--off-white);
}

.multi-select-trigger svg {
  color: var(--gold-deep);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.multi-select.open .multi-select-trigger svg { transform: rotate(180deg); }

.multi-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--off-white);
  border: 1px solid var(--gold);
  padding: 0;
  z-index: 20;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 14px 40px -10px rgba(58, 20, 30, 0.25);
}
.multi-select-panel::before,
.multi-select-panel::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
}
.multi-select-panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.multi-select-panel::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.multi-select-panel .event-option {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 22px !important;
  cursor: pointer;
  align-items: center;
  transition: background var(--transition);
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  color: var(--charcoal) !important;
  font-weight: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(184, 147, 90, 0.18) !important;
  text-align: left !important;
}
.multi-select-panel .event-option:last-child { border-bottom: 0 !important; }
.multi-select-panel .event-option:hover { background: var(--cream); }
.multi-select-panel .event-option.checked { background: rgba(232, 196, 184, 0.22); }

/* Elegant circular indicator instead of a boxy checkbox */
.multi-select-panel .event-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
  margin: 0;
  border-radius: 50%;
  outline: none;
}
.multi-select-panel .event-option input[type="checkbox"]:hover {
  border-color: var(--burgundy);
  background: rgba(232, 196, 184, 0.2);
}
.multi-select-panel .event-option input[type="checkbox"]:checked {
  background: var(--burgundy);
  border-color: var(--burgundy);
  box-shadow:
    inset 0 0 0 3px var(--off-white),
    inset 0 0 0 4px var(--gold-light);
}

/* Whole row lifts subtly when selected */
.multi-select-panel .event-option.checked {
  background: linear-gradient(90deg, rgba(232, 196, 184, 0.28), rgba(232, 196, 184, 0.04));
}
.multi-select-panel .event-option.checked .event-name {
  color: var(--deep-burgundy);
}
.multi-select-panel .event-option.checked .event-date {
  color: var(--gold-deep);
}

.multi-select-panel .event-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.multi-select-panel .event-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--burgundy);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}
.multi-select-panel .event-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-weight: 300;
  text-transform: none;
}

/* Event chips — modern wedding-site style */
.event-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.event-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 12px;
  background: var(--off-white);
  border: 1px solid rgba(184, 147, 90, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body) !important;
  font-weight: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 !important;
  color: var(--charcoal) !important;
  font-size: 14px !important;
  text-align: left !important;
}

.event-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-chip:hover {
  border-color: var(--gold);
  background: var(--cream);
}

.event-chip.checked {
  border-color: var(--burgundy);
  background: linear-gradient(135deg, rgba(232, 196, 184, 0.3), rgba(232, 196, 184, 0.08));
  box-shadow: 0 2px 8px -2px rgba(90, 31, 46, 0.15);
}

.event-chip.checked::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--burgundy);
}

.event-chip-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--burgundy);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.event-chip.checked .event-chip-name {
  color: var(--deep-burgundy);
}

.event-chip-date {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 300;
  text-transform: uppercase;
}

.event-chip.checked .event-chip-date {
  color: var(--gold-deep);
}

@media (max-width: 640px) {
  .event-chips {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .event-chip { padding: 12px 12px 10px; }
  .event-chip-name { font-size: 16px; }
  .event-chip-date { font-size: 10px; }
}

@media (max-width: 380px) {
  .event-chips { grid-template-columns: 1fr; }
}

/* Guest slider */
.guest-slider {
  padding: 20px 12px 8px;
  background: var(--off-white);
  border: 1px solid rgba(184, 147, 90, 0.35);
}

.guest-slider-track {
  position: relative;
  height: 36px;
  margin: 34px 6px 0;
}

.guest-slider-fill {
  position: absolute;
  top: 15px;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  width: 0%;
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.1s ease-out;
}

.guest-slider-track input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(184, 147, 90, 0.22);
  height: 6px;
  margin: 15px 0 0 0;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
}
.guest-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--burgundy);
  box-shadow: 0 2px 10px -1px rgba(90, 31, 46, 0.4);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guest-slider-track input[type="range"]::-webkit-slider-thumb:hover,
.guest-slider-track input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.12);
  box-shadow: 0 4px 16px -2px rgba(90, 31, 46, 0.5);
}
.guest-slider-track input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--burgundy);
  box-shadow: 0 2px 10px -1px rgba(90, 31, 46, 0.4);
  cursor: grab;
}

.guest-slider-bubble {
  position: absolute;
  top: -32px;
  transform: translateX(-50%);
  min-width: 40px;
  padding: 4px 12px;
  background: var(--burgundy);
  color: var(--off-white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  pointer-events: none;
  transition: left 0.1s ease-out;
  letter-spacing: 0;
}
.guest-slider-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--burgundy);
}

.guest-slider-scale {
  display: flex;
  justify-content: space-between;
  padding: 12px 6px 0;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 400;
}

.guest-slider-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 147, 90, 0.18);
}
.guest-slider-input-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.guest-slider-input {
  width: 60px;
  padding: 6px 10px;
  border: 1px solid rgba(184, 147, 90, 0.5);
  background: var(--off-white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--burgundy);
  text-align: center;
  outline: none;
  border-radius: 4px;
}
.guest-slider-input:focus { border-color: var(--burgundy); }
.guest-slider-input::-webkit-inner-spin-button,
.guest-slider-input::-webkit-outer-spin-button {
  opacity: 1;
}
.guest-slider-input-suffix {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--charcoal-soft);
  font-style: italic;
}

@media (max-width: 640px) {
  .guest-slider-scale { font-size: 9px; }
  .guest-slider-track { margin: 30px 4px 0; }
  .guest-slider-bubble { font-size: 18px; }
  .guest-slider-input-row { flex-wrap: wrap; }
}

/* Single-select variant (Number of Guests) */
.single-option {
  display: block;
  width: 100%;
  padding: 16px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--burgundy);
  text-align: left;
  border-bottom: 1px solid rgba(184, 147, 90, 0.18);
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  letter-spacing: 0;
}
.single-option:last-child { border-bottom: none; }
.single-option:hover {
  background: var(--cream);
  color: var(--deep-burgundy);
}
.single-option.selected {
  background: linear-gradient(90deg, rgba(232, 196, 184, 0.28), rgba(232, 196, 184, 0.04));
  color: var(--deep-burgundy);
}
.single-option.selected::before {
  content: '·';
  margin-right: 12px;
  color: var(--gold);
  font-size: 26px;
  line-height: 0;
  vertical-align: middle;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--burgundy);
  color: var(--ivory);
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 20px;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--deep-burgundy);
  letter-spacing: 0.4em;
}

.form-note {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--deep-burgundy);
  color: var(--ivory);
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.footer-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(251, 246, 234, 0.7);
  margin-bottom: 32px;
  font-size: 18px;
}

.footer-date {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 32px;
}

.footer-count-label {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(251, 246, 234, 0.75);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-countdown {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.footer-count-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  color: var(--gold-light);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.footer-count-label-small {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(251, 246, 234, 0.55);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 300;
}

@media (max-width: 640px) {
  .footer-countdown { gap: 16px; }
  .footer-count-value { font-size: 34px; }
  .footer-count-label-small { font-size: 9px; letter-spacing: 0.2em; }
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(251, 246, 234, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(251, 246, 234, 0.4);
  letter-spacing: 0.15em;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 147, 90, 0.15);
}

/* ============ REVEAL ANIMATION ============ */
/* Scoped to .js, which an inline script in <head> sets. Unscoped, a page
   whose JavaScript fails to load renders entirely blank — and this page gets
   opened from a WhatsApp link on patchy mobile data, which is exactly when
   it fails. Without JS everything is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 246, 234, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }

  .hero-ornament { width: 100px; height: 100px; }
  .hero-ornament.tl, .hero-ornament.tr { top: 20px; }
  .hero-ornament.tl, .hero-ornament.bl { left: 20px; }
  .hero-ornament.tr, .hero-ornament.br { right: 20px; }
  .hero-ornament.bl, .hero-ornament.br { bottom: 20px; }

  .countdown-item + .countdown-item {
    border-left: none;
    padding-left: 0;
  }
  .countdown { gap: 16px; }
  .countdown-item { min-width: 70px; }

  section { padding: 80px 20px; }

  .story-grid,
  .venue-grid,
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-card { padding: 36px 28px 40px; }
  .profile-image { width: 170px; height: 170px; }

  .venue-grid.reversed .venue-info,
  .venue-grid.reversed .venue-map { order: 0; }

  .venue-separator { margin: 60px auto; }

  .gallery-grid { column-count: 2; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }

  .rsvp-container { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .rsvp-radio-group { flex-direction: column; gap: 10px; }
  .rsvp-radio { font-size: 16px; padding: 14px; }

  .venue-info h3 { font-size: 36px; }
}

@media (max-width: 640px) {
  .hero-names {
    flex-direction: column;
    gap: 4px;
    line-height: 1;
  }
  .hero-names .name {
    font-size: clamp(52px, 14vw, 96px);
  }
  .hero-names .amp {
    font-size: clamp(40px, 10vw, 68px);
    transform: none;
    padding: 8px 0;
  }

  /* Horizontal carousel for the ceremony cards */
  .events-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    gap: 18px;
    padding: 12px 20px 30px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .events-grid::-webkit-scrollbar { display: none; }

  .event-card {
    flex: 0 0 84%;
    max-width: 340px;
    min-width: 258px;
    scroll-snap-align: center;
    padding: 40px 26px;
  }
  .event-card:nth-child(5) {
    max-width: 340px;
    grid-column: auto;
    justify-self: auto;
    max-width: 340px;
  }

  /* Little swipe hint below the cards */
  .events-swipe-hint {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    animation: swipeHint 2.4s ease-in-out infinite;
  }
  .events-swipe-hint span {
    color: var(--gold-deep);
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
  }
  @keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(6px); opacity: 1; }
  }

  /* Compact RSVP form on mobile — 2-col rows, tight vertical rhythm */
  .rsvp-container {
    padding: 30px 18px 36px;
  }
  .rsvp-container::before,
  .rsvp-container::after {
    width: 20px;
    height: 20px;
  }
  .form-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    margin-bottom: 12px;
  }
  .form-group {
    margin-bottom: 14px;
  }
  .form-group label {
    font-size: 9px;
    letter-spacing: 0.24em;
    margin-bottom: 6px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea,
  .multi-select-trigger {
    padding: 12px 13px;
    font-size: 16px; /* keep 16px to prevent iOS auto-zoom */
    min-height: 44px;
  }
  .form-group textarea { min-height: 72px; }
  .rsvp-radio-group {
    flex-direction: row !important;
    gap: 8px;
  }
  .rsvp-radio {
    font-size: 12px;
    padding: 12px 6px;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.3;
  }
  .multi-select-panel .event-option { padding: 14px 16px !important; }
  .multi-select-panel .event-name { font-size: 18px; }
  .multi-select-panel .event-date { font-size: 11px; }
  .btn-primary {
    padding: 16px;
    font-size: 10.5px;
    letter-spacing: 0.28em;
    margin-top: 14px;
  }
  .form-note {
    font-size: 12px;
    margin-top: 14px;
  }

  /* Tighter section headers on mobile */
  section { padding: 60px 20px; }
  .section-title { font-size: 34px !important; margin-bottom: 12px; }
  .section-subtitle { font-size: 15px !important; margin-bottom: 32px; }
  .section-eyebrow { font-size: 10px; margin-bottom: 12px; }
  .section-divider { margin-bottom: 40px; max-width: 200px; }
}

@media (max-width: 380px) {
  .rsvp-container { padding: 26px 16px; }
  .form-row { gap: 8px; }
  .event-card { flex-basis: 88%; }
}

/* ============================================================
   OURS — everything below this line is Toran's, not the port.
   The ported design had a single hard-coded RSVP; this product's whole
   point is one answer per ceremony, so that part is built here.
   ============================================================ */

.rsvp-ceremonies { display: block; }

.chip-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgba(58, 20, 30, .1);
}
.chip-row:last-child { border-bottom: 0; }
.chip-name {
  font-family: var(--font-display); font-size: 21px; color: var(--charcoal);
}
.chip-name em {
  display: block; font-style: normal; font-family: var(--font-body);
  font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-top: 2px;
}
.chip-btns { display: flex; gap: 8px; flex-shrink: 0; }
.chip {
  padding: 8px 20px; font-family: var(--font-body); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  color: var(--charcoal-soft); background: transparent;
  border: 1px solid rgba(58, 20, 30, .22); border-radius: 2px;
  transition: var(--transition);
}
.chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
.chip.is-on { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }

.gallery-note {
  margin: 28px 0 0; text-align: center; font-family: var(--font-body);
  font-size: 12px; color: var(--muted);
}

/* The bar a couple sees over their own draft, before it is published. */
.ts-preview-bar {
  position: sticky; top: 0; z-index: 200; padding: 10px 16px; text-align: center;
  background: var(--deep-burgundy); color: var(--ivory);
  font-family: var(--font-body); font-size: 13px;
}
.ts-preview-bar a { color: var(--gold-light); }

@media (max-width: 600px) {
  .rsvp-ceremonies { display: block; }

.chip-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* The sample bar is stuck above a fixed nav, so the nav needs to start below
   it — 58px wide, 107px once the bar's text wraps on a phone. Measured, not
   guessed; a fixed element cannot read a sibling's height without script. */
body[data-sample] .nav { top: 58px; }
@media (max-width: 900px) { body[data-sample] .nav { top: 107px; } }
@media (max-width: 900px) { body[data-sample] .nav-menu.open { top: 107px; } }
