/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:      #fafaf8;
  --cream:      #eef2ea;
  --blush:      #c4d4b8;
  --rose:       #c46f52;
  --gold:       #b5513a;
  --gold-light: #d4896a;
  --brown:      #6b3a2a;
  --text:       #2d1f14;
  --muted:      #7a6355;
  --sage:       #7a9068;
  --sage-light: #a8b89a;

  --serif:  Georgia, 'Times New Roman', serif;
  --script: Georgia, 'Times New Roman', serif;
  --sans:   system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  font-weight: 300;
  line-height: 1.8;
}

/* ── Monogram ── */
.mono-l,
.mono-j,
.mono-amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.mono-amp {
  font-size: 0.85em;
  vertical-align: baseline;
  margin: 0 0.02em;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 300px;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-light);
}
.divider span { font-size: 1.1rem; }

/* ════════════════════════════════════════
   CODE GATE
════════════════════════════════════════ */
#gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 2rem;
  text-align: center;
}

.gate-card {
  background: white;
  border: 1px solid var(--blush);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(180, 140, 100, 0.1);
}

.gate-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.gate-tagline {
  font-family: var(--script);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.gate-card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.gate-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.code-input-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

#codeInput {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--blush);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--text);
  background: var(--ivory);
  outline: none;
  transition: border-color 0.2s;
}
#codeInput:focus { border-color: var(--gold); }
#codeInput.error { border-color: #c0392b; animation: shake 0.3s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

#gateError {
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover  { background: var(--brown); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  margin-top: 1rem;
}
.btn-secondary:hover  { background: var(--gold); color: #fff; }
.btn-secondary:active { transform: scale(0.98); }

.rsvp-previous-card {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border, #e0d6cc);
  border-radius: 10px;
  text-align: left;
}
.rsvp-previous-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.rsvp-previous-card p { margin: 0.3rem 0; font-size: 0.95rem; }

/* ════════════════════════════════════════
   MAIN INVITATION (hidden until unlocked)
════════════════════════════════════════ */
#invitation { display: none; }
#invitation.visible { display: block; }


/* ── Section base ── */
section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-family: var(--script);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--brown);
  margin-bottom: 1rem;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--blush);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250, 248, 243, 0.98);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--blush);
    padding: 0.75rem 1.5rem 1rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--blush); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 0.65rem 0;
    font-size: 0.82rem;
  }
}

/* ── HERO ── */
#hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  #hero {
    min-height: auto;
    padding: 3.5rem 1.5rem 2.5rem;
  }
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(181, 81, 58, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(122, 144, 104, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-greeting {
  font-family: var(--script);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--rose);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-names {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 6rem);
  color: var(--brown);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-ampersand {
  font-style: italic;
  color: var(--gold);
  display: block;
  font-size: 0.6em;
  line-height: 1.4;
}

.hero-date {
  font-family: var(--script);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--muted);
  margin: 1.5rem 0 2rem;
  letter-spacing: 0.08em;
}

/* ── COUNTDOWN ── */
.countdown {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.countdown-item {
  text-align: center;
}

.countdown-item .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.countdown-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── DATE & COUNTDOWN SECTION ── */
#hero-date {
  background: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
#hero-date::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(181, 81, 58, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(122, 144, 104, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ── PHOTOS CAROUSEL ── */
#photos { padding: 0; background: var(--brown); }

.carousel { position: relative; overflow: hidden; line-height: 0; }

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide { min-width: 100%; }

.carousel-slide img {
  width: 100%;
  height: min(70vh, 90vw);
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

@media (min-width: 768px) {
  .carousel-slide img {
    height: min(65vh, 48vw);
  }
  .carousel-slide img.carousel-img-1 { object-position: center 65%; }
}

@media (max-width: 767px) {
  .carousel-slide img.carousel-img-1 { object-position: center 88%; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.65);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: rgba(255, 255, 255, 0.92); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}
.carousel-dot.active {
  background: white;
  transform: scale(1.25);
}

/* ── DETAILS ── */
#details { background: white; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
  text-align: center;
}

.detail-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--blush);
  border-radius: 3px;
}

.detail-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: block;
}

.detail-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.detail-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── MAP LINKS & BUTTONS ── */
.map-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--sage);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--sage-light);
  transition: color 0.2s, border-color 0.2s;
}
.map-link:hover { color: var(--brown); border-color: var(--brown); }

.map-buttons-wrap {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.btn-map {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--blush);
  border-radius: 3px;
  background: var(--cream);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-map:hover {
  border-color: var(--gold);
  background: white;
  transform: translateY(-2px);
}
.btn-map-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.btn-map span { display: flex; flex-direction: column; }
.btn-map-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.1rem;
}
.btn-map-sub {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--brown);
}

/* ── SCHEDULE ── */
#schedule { background: var(--cream); }

.timeline {
  position: relative;
  max-width: 480px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--blush);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-time {
  font-family: var(--script);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  width: 80px;
  flex-shrink: 0;
  padding-top: 0.1rem;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 84px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
}

.timeline-content {
  padding-left: 1.25rem;
}

.timeline-content h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 0.15rem;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── FAQ ── */
#faq { background: white; }

.faq-list {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--blush);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--brown);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── RSVP ── */
#rsvp { background: var(--cream); }

.rsvp-note {
  font-family: var(--script);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.field-required {
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--blush);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 90px; }

.attend-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.attend-btn {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid var(--blush);
  background: white;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.attend-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.attend-toggle--sm { margin-bottom: 0.75rem; }

.companion-block {
  border-top: 1px solid #e0d6cc;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}
.companion-block-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.companion-attend-group { margin-bottom: 0.5rem; }
.attend-btn--sm {
  font-size: 0.75rem;
  padding: 0.5rem;
}

.rsvp-submit {
  width: 100%;
  margin-top: 0.5rem;
}

#rsvpSuccess {
  display: none;
  text-align: center;
  padding: 2rem;
  background: white;
  border: 1px solid var(--blush);
  border-radius: 3px;
}
#rsvpSuccess h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
#rsvpSuccess p { color: var(--muted); font-size: 0.9rem; }

/* ── FOOTER ── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

footer .footer-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

footer .footer-date {
  font-family: var(--script);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 1rem;
}

/* ── CALENDAR BUTTON ── */
.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 1.25rem;
}
.btn-calendar:hover {
  background: var(--gold);
  color: white;
}

/* ── GIFTS ── */
#gifts { background: var(--ivory); }

.gifts-intro {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.gift-card {
  border: 1px solid #e0d6cc;
  border-radius: 8px;
  overflow: hidden;
}

.gift-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: var(--cream);
  border-bottom: 1px solid #e0d6cc;
}

.gift-icon { font-size: 1.1rem; }

.gift-method {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brown);
}

.gift-card-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gift-card-body p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.gift-label {
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.gift-value {
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

/* ── GIFT CTA ── */
.gifts-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── GIFT MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 31, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-box {
  background: var(--ivory);
  border-radius: 10px;
  padding: 2rem 2rem 2rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.modal-close:hover { color: var(--text); }

.gift-success-msg {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brown);
  padding: 1rem 0;
}

/* ── SHARE PHOTOS ── */
#share-photos { background: var(--cream); }

.share-photos-text {
  font-family: var(--script);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.75rem;
}

.btn-photos {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-photos:hover  { background: var(--sage-light); }
.btn-photos:active { transform: scale(0.98); }

.share-photos-soon {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ── DRESS CODE VISUAL ── */
.dresscode-visual {
  text-align: center;
  margin-top: 2rem;
}

.dresscode-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 640px;
  margin: 1.25rem auto 0;
}

.dresscode-figure {
  margin: 0;
}

.dresscode-figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--gold-light, #d4b483);
  display: block;
  object-fit: cover;
  max-height: 340px;
}

.dresscode-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.03em;
}

.dresscode-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .dresscode-images {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .dresscode-figure img {
    max-height: 220px;
  }
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── ENTRANCE ANIMATIONS ── */

/* Gate card: subtle rise on page load */
@keyframes gateIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.gate-card {
  animation: gateIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hero: staggered slide-up when invitation unlocks */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0);    }
}
#invitation.visible .hero-greeting {
  animation: heroFadeUp 0.7s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#invitation.visible .hero-names {
  animation: heroFadeUp 0.9s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#invitation.visible .hero-tagline {
  animation: heroFadeUp 0.7s 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Section titles: gold underline grows in when entering viewport */
h2.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold-light);
  margin: 0.55rem auto 0;
  transform: scaleX(0);
  transition: transform 0.65s 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
h2.section-title.visible::after {
  transform: scaleX(1);
}

/* Timeline dots: breathing pulse */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(181, 81, 58, 0.35); }
  55%       { box-shadow: 0 0 0 7px rgba(181, 81, 58, 0);    }
}
.timeline-dot { animation: dotPulse 2.8s ease-in-out infinite; }
.timeline-item:nth-child(2) .timeline-dot { animation-delay: 0.47s; }
.timeline-item:nth-child(3) .timeline-dot { animation-delay: 0.94s; }
.timeline-item:nth-child(4) .timeline-dot { animation-delay: 1.41s; }
.timeline-item:nth-child(5) .timeline-dot { animation-delay: 1.88s; }
.timeline-item:nth-child(6) .timeline-dot { animation-delay: 2.35s; }

/* Detail cards: hover lift */
.detail-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(107, 58, 42, 0.1);
}

/* ── TEXT WRAP — prevent orphaned words ── */
h2.section-title,
h3,
.section-label,
.hero-greeting,
.hero-date,
.gate-card h2,
.rsvp-note {
  text-wrap: balance;
}

.gate-card p,
.hero-tagline,
.detail-card p,
.faq-answer p,
#rsvpSuccess p,
.timeline-content p,
.share-photos-text,
.dresscode-note {
  text-wrap: pretty;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  nav { gap: 0.5rem; }
  .nav-links { gap: 0.75rem; }
  .countdown { gap: 1.25rem; }
  .timeline::before { left: 70px; }
  .timeline-dot { left: 64px; }
  .timeline-time { width: 60px; }
}
