/* ═══════════════════════════════════════════════════════════════
   Stephan & Tanya de Wet — Trouwebwerf
   style.css  |  Mobile-first, performance-optimised
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Design Tokens ─────────────────────────────────────── */
:root {
  --wine:        #722F37;
  --wine-dark:   #5a2029;
  --blush:       #F5E1DA;
  --dusty-pink:  #DCAE96;
  --sage:        #9caf98;   /* Hoofkleur update */
  --sage-light:  rgba(156,175,152,0.15);
  --sage-mid:    rgba(156,175,152,0.35);
  --off-white:   #fafafa;
  --cream:       #FFFBF8;
  --dark-wine:   #2d1a1c;
  --text-body:   #4a3035;
  --text-muted:  #9a8070;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── 2. Andellia Font (vir die paarbanner) ────────────────── */
/*
 * Plaas die fontlêer in die /fonts/ vouer:
 *   fonts/Andellia.otf  OF  fonts/Andellia.ttf
 * Die webwerf gebruik dan outomaties Andellia.
 * Sonder die lêer val dit terug op Great Vibes (soortgelyk).
 */
@font-face {
  font-family: 'Andellia';
  src: url('fonts/Andellia.otf') format('opentype'),
       url('fonts/Andellia.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.font-andellia {
  font-family: 'Andellia', 'Great Vibes', cursive;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Prevent iOS overscroll on the root */
  overscroll-behavior-y: none;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--dark-wine);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Subtly more refined paragraph text — less "word document" */
  font-size: 15px;
  letter-spacing: 0.012em;
  line-height: 1.75;
}

h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; }
img { display: block; max-width: 100%; }

/* Touch-friendly tap handling — prevents 300ms delay and double-tap zoom */
button, a, [role="button"],
.mobile-nav-link, .meal-card, .attend-btn,
.faq-question, .gallery-dot, .gift-card {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ─── 4. Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--blush); }
::-webkit-scrollbar-thumb { background: var(--wine); border-radius: 2px; }

/* ─── 5. Alpine Cloak ──────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ─── 6. Keyframes ─────────────────────────────────────────── */
@keyframes fadeIn  { from{opacity:0}        to{opacity:1} }
@keyframes fadeUp  { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideUpSheet { from{transform:translateY(100%)} to{transform:translateY(0)} }
@keyframes bouncePx { 0%,100%{transform:translateY(0) translateX(-50%)} 50%{transform:translateY(9px) translateX(-50%)} }
@keyframes floatY  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes confettiFall { to{transform:translateY(110vh) rotate(720deg);opacity:0} }
@keyframes pulse   { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ─── 7. Animation helpers ─────────────────────────────────── */
.anim-fade-in { animation: fadeIn  2s ease forwards; }
.anim-fade-up { animation: fadeUp 1.6s ease forwards; }
.anim-float   { animation: floatY 7s ease-in-out infinite; }

.scroll-bounce {
  position: absolute;
  bottom: 2rem; left: 50%;
  animation: bouncePx 2.2s ease-in-out infinite;
}

/* ─── 8. Scroll-Reveal ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].is-visible { opacity:1; transform:translateY(0); }
[data-reveal][data-delay="100"] { transition-delay:0.1s; }
[data-reveal][data-delay="200"] { transition-delay:0.2s; }
[data-reveal][data-delay="300"] { transition-delay:0.3s; }
[data-reveal][data-delay="400"] { transition-delay:0.4s; }

/* ─── 9. Progress Bar ──────────────────────────────────────── */
#progress-bar {
  position: fixed; top:0; left:0;
  height: 2px; background: var(--sage);
  z-index: 999; width: 0%;
  transition: width 0.1s linear;
  will-change: width;
}

/* ─── 10. Custom Cursor (desktop) ──────────────────────────── */
@media (pointer: fine) {
  body, a, button, [role="button"] { cursor: none; }
  #custom-cursor {
    position: fixed; top:0; left:0;
    width: 12px; height: 12px;
    background: var(--sage);
    border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: width .25s ease, height .25s ease, background .25s ease;
    will-change: transform;
    mix-blend-mode: multiply;
  }
  #custom-cursor.hovering {
    width: 34px; height: 34px;
    background: rgba(156,175,152,0.2);
  }
}

/* ─── 11. Navigation ───────────────────────────────────────── */
#site-nav {
  transition: background 0.45s ease, box-shadow 0.45s ease, opacity 0.45s ease;
  /* Respect the notch / Dynamic Island on iPhone */
  padding-top: env(safe-area-inset-top, 0px);
}

/* At top of page: hide desktop links — hero handles the first impression */
@media (min-width: 768px) {
  #site-nav:not(.nav-solid) .nav-link,
  #site-nav:not(.nav-solid) .btn-magnetic {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  #site-nav:not(.nav-solid) .nav-logo {
    opacity: 0 !important;
    transition: opacity 0.4s ease;
  }
}

/* On scroll: clean white bar — clear contrast against cream page */
.nav-solid {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(114,47,55,0.1), 0 4px 24px rgba(0,0,0,0.06);
}
.nav-solid .nav-link  { color: var(--dark-wine) !important; text-shadow:none !important; opacity:0.7; }
.nav-solid .nav-link:hover { opacity:1; }
.nav-solid .nav-logo  { color: var(--wine) !important; text-shadow:none !important; opacity:1 !important; }
.nav-solid .btn-magnetic { opacity:1 !important; pointer-events:auto; }

.hamburger-line {
  display: block; width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(45,26,28,0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.38s ease;
  /* Prevent background scroll bleed on iOS */
  overscroll-behavior: contain;
  /* Ensure it covers the dynamic island / notch area */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.mobile-nav-overlay.is-open { opacity:1; pointer-events:all; }

.mobile-nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 300; font-style: italic;
  color: rgba(255,251,248,0.85);
  text-decoration: none;
  display: block; text-align: center;
  padding: 0.5rem 2rem;
  transition: color 0.25s ease;
  letter-spacing: 0.04em;
}
.mobile-nav-link:hover { color: var(--sage); }

/* ─── 12. Hero ─────────────────────────────────────────────── */
.hero-overlay {
  background: linear-gradient(
    170deg,
    rgba(0,0,0,0.06) 0%,
    rgba(114,47,55,0.03) 35%,
    rgba(45,26,28,0.62) 100%
  );
}

.hero-parallax-bg {
  position: absolute; inset: -15%;
  will-change: transform;
}
.hero-parallax-bg img { width:100%; height:100%; object-fit:cover; object-position:center; }

/* On mobile, disable the oversized inset (parallax disabled anyway) */
@media (max-width: 767px) {
  .hero-parallax-bg { inset: 0; }
}

/* Landscape phones: prevent hero from being too short */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-parallax-bg { inset: 0; }
}

.floral-corner { position:absolute; pointer-events:none; }

/* ─── 13. Date Strip ───────────────────────────────────────── */
.date-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.date-strip-item {
  padding: 1.4rem 1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.07);
}
@media (min-width: 768px) {
  .date-strip-grid { grid-template-columns: repeat(4,1fr); }
  .date-strip-item { padding: 1.6rem 1.5rem; }
}

/* ─── 14. Gallery ──────────────────────────────────────────── */
.gallery-track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display:none; }
.gallery-item {
  flex: 0 0 100%; height: 70vw;
  min-height: 280px; max-height: 480px;
  scroll-snap-align: start; overflow: hidden;
}
.gallery-item img { width:100%; height:100%; object-fit:cover; transition: transform 0.85s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-dots { display:flex; justify-content:center; gap:6px; padding:1rem 0; background:var(--cream); }
.gallery-dot {
  width:6px; height:6px; border-radius:50%;
  background: var(--sage); opacity:0.4;
  border:none; padding:0; transition: opacity 0.3s, width 0.3s;
}
.gallery-dot.active { opacity:1; width:20px; border-radius:3px; }

@media (min-width: 768px) {
  .gallery-track { overflow-x:visible; display:grid; grid-template-columns:repeat(3,1fr); height:min(400px,50vw); scroll-snap-type:none; }
  .gallery-item  { flex:none; height:100%; max-height:none; min-height:0; }
  .gallery-dots  { display:none; }
}

/* ─── 14b. Photo Gallery — Social scroll feed (mobile only) ── */
.galery-section { background: #1c1210; }

.galery-feed {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.galery-photo {
  width: 100%;
  overflow: hidden;
  background: #2a1f1a;
}

/* Portrait photos — 4:5 (Instagram portrait format) */
.gp-1, .gp-2, .gp-3, .gp-6, .gp-7, .gp-9, .gp-10 { aspect-ratio: 4 / 5; }

/* Landscape photos — natural 3:2 so full width is shown without cropping subjects */
.gp-4, .gp-5, .gp-8 { aspect-ratio: 3 / 2; }

.galery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* default: keeps faces in frame for portrait shots */
}

/* Per-photo fine-tuning */
.gp-5  img { object-position: center center; } /* walking away — centered */
.gp-7  img { object-position: center center; } /* hands detail — no faces */
.gp-8  img { object-position: center 20%; }    /* dancing — faces slightly upper */

@media (min-width: 768px) {
  .galery-section { display: none; }
}

/* ─── 15. Buttons — Outline Pill ───────────────────────────── */
.btn-hero {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.65);
  color: #fff;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.36em; text-transform: uppercase;
  padding: 1.1rem 2.6rem;
  text-decoration: none;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}
.btn-hero:active { transform: scale(0.97); }
@media (hover: hover) {
  .btn-hero:hover { background:#fff; color:var(--wine); border-color:#fff; transform:translateY(-2px); }
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  background: var(--wine); border: 2px solid var(--wine); color: #fff;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  text-decoration: none;
  transition: background 0.35s, border-color 0.35s, transform 0.2s, box-shadow 0.35s;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px; width: 100%; justify-content: center;
}
.btn-primary:active { transform: scale(0.97); }
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--wine-dark); border-color: var(--wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(114,47,55,0.25);
  }
}

.btn-outline-sage {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent;
  border: 1.5px solid var(--sage); color: var(--sage);
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 0.85rem 2rem; text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}
@media (hover: hover) {
  .btn-outline-sage:hover { background: var(--sage); color: #fff; transform: translateY(-1px); }
}

.btn-calendar {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid rgba(156,175,152,0.55); color: var(--sage);
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 0.8rem 1.6rem; background: transparent; text-decoration: none;
  transition: all 0.3s; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn-calendar:hover { background: var(--sage-light); border-color: var(--sage); }
}

.btn-magnetic { display: inline-block; transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }

/* ─── 16. Modal ────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(45,26,28,0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 0;
}
.modal-card {
  position: relative; background: var(--cream);
  width: 100%; max-height: 94svh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  /* Contain overscroll so page doesn't scroll behind modal on iOS */
  overscroll-behavior: contain;
  padding: 2.5rem 1.5rem calc(2.5rem + var(--safe-bottom));
  border-radius: 1.5rem 1.5rem 0 0;
  animation: slideUpSheet 0.42s cubic-bezier(0.22,1,0.36,1) forwards;
}
.modal-card::before {
  content: ''; position: absolute; top:0; left:0; right:0; height: 3px;
  background: linear-gradient(to right, var(--wine), var(--sage), var(--wine));
  border-radius: 1.5rem 1.5rem 0 0;
}
.modal-drag-handle {
  width:40px; height:4px; background:rgba(156,175,152,0.4);
  border-radius:2px; margin:0 auto 1.5rem;
}
.modal-close {
  position:absolute; top:1rem; right:1.25rem;
  background:none; border:none; font-size:1.4rem;
  line-height:1; color:var(--text-muted); padding:0.4rem;
  transition:color 0.25s;
}
.modal-close:hover { color: var(--wine); }

@media (min-width: 640px) {
  .modal-backdrop { align-items:center; padding:1.5rem; }
  .modal-card {
    max-width:520px; border-radius:1rem;
    padding:3.5rem 3rem;
    animation: slideUp 0.42s cubic-bezier(0.22,1,0.36,1) forwards;
  }
  .modal-card::before { border-radius: 1rem 1rem 0 0; }
  .modal-drag-handle { display:none; }
}

/* ─── 17. RSVP Form ────────────────────────────────────────── */
.rsvp-phone-input {
  display:block; border:none; border-bottom:1px solid var(--sage);
  background:transparent; width:100%;
  padding:0.9rem 2.5rem 0.9rem 0;
  font-family:'Cormorant Garamond',serif; font-size:1.4rem; font-weight:300;
  letter-spacing:0.1em; color:var(--dark-wine); text-align:center;
  transition:border-color 0.3s; outline:none; -webkit-appearance:none; appearance:none;
}
.rsvp-phone-input::placeholder { color:rgba(156,175,152,0.65); font-style:italic; }
.rsvp-phone-input:focus { border-color:var(--wine); }

.rsvp-textarea {
  display:block; width:100%; border:1px solid rgba(156,175,152,0.45);
  background:transparent; padding:1rem 1.1rem;
  font-family:'Inter',sans-serif;
  /* 16px minimum to prevent iOS auto-zoom on focus */
  font-size:1rem; font-weight:300;
  color:var(--dark-wine); line-height:1.8; resize:none;
  transition:border-color 0.3s; outline:none; -webkit-appearance:none; appearance:none;
  border-radius: 0.5rem;
}
.rsvp-textarea::placeholder { color:rgba(156,175,152,0.55); }
.rsvp-textarea:focus { border-color:var(--wine); }

.guest-card {
  border:1px solid rgba(156,175,152,0.45);
  background:linear-gradient(135deg,var(--sage-light),rgba(245,225,218,0.2));
  padding:1.25rem 1rem; text-align:center;
  border-radius:0.5rem;
  animation:fadeUp 0.4s ease both;
}

.meal-card {
  border:1px solid rgba(156,175,152,0.4);
  padding:1.1rem 0.75rem; text-align:center; cursor:pointer;
  transition:all 0.3s; background:transparent;
  -webkit-tap-highlight-color:transparent;
  min-height:72px; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  border-radius:0.75rem;
}
.meal-card:active { transform:scale(0.98); }
.meal-card.sel-apricot { border-color:var(--dusty-pink); background:rgba(220,174,150,0.15); }
.meal-card.sel-vegan   { border-color:var(--sage); background:var(--sage-light); }

.attend-btn {
  border:1.5px solid var(--dusty-pink); padding:1.2rem 1rem;
  font-family:'Cormorant Garamond',serif; font-size:1.15rem;
  font-style:italic; font-weight:300;
  background:transparent; width:100%;
  transition:all 0.3s; -webkit-tap-highlight-color:transparent;
  min-height:64px; border-radius:9999px;
}
.attend-btn.yes.selected,.attend-btn.yes:active { background:var(--wine); color:#fff; border-color:var(--wine); }
.attend-btn.no.selected,.attend-btn.no:active   { background:var(--sage-light); border-color:var(--sage); }
@media (hover:hover) {
  .attend-btn.yes:hover { background:var(--wine); color:#fff; border-color:var(--wine); }
  .attend-btn.no:hover  { background:var(--sage-light); border-color:var(--sage); }
}

.progress-dot  { width:7px; height:7px; border-radius:50%; transition:background 0.4s; }
.progress-line { height:1px; width:2rem; transition:background 0.4s; }

/* ─── 18. Floating RSVP — verwyder; RSVP in hero & nav is voldoende ── */
#floating-rsvp { display: none !important; }

/* ─── 19. Back to top ──────────────────────────────────────── */
#back-to-top {
  position:fixed; bottom:calc(1.5rem + env(safe-area-inset-bottom, 0px)); right:1.25rem; z-index:79;
  width:44px; height:44px; background:var(--sage); color:#fff;
  border:none; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transform:translateY(8px); transition:opacity 0.3s, transform 0.3s;
  box-shadow:0 4px 16px rgba(156,175,152,0.4);
}
#back-to-top.visible { opacity:1; pointer-events:all; transform:translateY(0); }
@media (min-width:768px) { #back-to-top { bottom:1.5rem; } }

/* ─── 20. Countdown ────────────────────────────────────────── */
.countdown-grid {
  display:grid; grid-template-columns:1fr 1fr;
  max-width:640px; margin:0 auto;
}
@media (min-width:640px) { .countdown-grid { grid-template-columns:repeat(4,1fr); } }

.countdown-unit { text-align:center; padding:1.5rem 0.75rem; position:relative; }
.countdown-unit + .countdown-unit::before {
  content:':'; position:absolute; left:0; top:47%;
  transform:translate(-50%,-65%);
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2rem,5vw,4rem); font-weight:300;
  color:rgba(245,225,218,0.3); line-height:1;
}
@media (max-width:639px) { .countdown-unit:nth-child(3)::before { display:none; } }

.countdown-number {
  display:block; font-family:'Cormorant Garamond',serif; font-weight:300;
  font-size:clamp(3rem,12vw,7rem); line-height:1; letter-spacing:-0.02em;
  transition:opacity 0.1s;
}
.countdown-label {
  display:block; font-family:'Inter',sans-serif;
  font-size:0.57rem; font-weight:400; letter-spacing:0.28em;
  text-transform:uppercase; opacity:0.5; margin-top:0.5rem;
}

/* ─── 21. Bridal Party ─────────────────────────────────────── */
.bridal-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.bridal-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sage);
  margin: 0 auto 1rem;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .bridal-photo { width: 130px; height: 130px; }
}

.bridal-photo-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 3px solid var(--sage);
  margin: 0 auto 1rem;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
}

@media (min-width: 640px) {
  .bridal-photo-placeholder { width: 130px; height: 130px; }
}

/* ─── 22. FAQ / Kopkrappers ────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(156,175,152,0.3);
}

.faq-question {
  width: 100%; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400; font-style: italic;
  color: var(--dark-wine); text-align: left;
  cursor: pointer; transition: color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.faq-question:hover { color: var(--wine); }

.faq-chevron {
  transition: transform 0.3s ease; flex-shrink: 0;
  margin-left: 1rem; color: var(--sage);
}
.faq-chevron.open { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  max-height: 0;
}
.faq-answer.open { max-height: 400px; }

.faq-answer-inner {
  padding: 0 0 1.25rem 0;
  font-size: 0.9rem; font-weight: 300; color: var(--text-body);
  line-height: 1.8;
}

/* ─── 23. Registry / Geskenk Wense ────────────────────────── */
.registry-card {
  border: 1.5px solid rgba(156,175,152,0.3);
  background: var(--off-white);
  border-radius: 1rem;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
@media (hover:hover) {
  .registry-card:hover {
    border-color: var(--sage);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(156,175,152,0.18);
  }
}

.bank-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(156,175,152,0.2);
  font-size: 0.875rem;
}
.bank-detail-row:last-child { border-bottom: none; }

/* Wishlist product card */
.product-card {
  border: 1.5px solid rgba(156,175,152,0.3);
  border-radius: 0.75rem;
  background: var(--off-white);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
@media (hover:hover) {
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(156,175,152,0.2);
  }
}
.product-card-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage); font-size: 2.5rem;
}

/* ─── 24. Photo Sharing ────────────────────────────────────── */
.qr-placeholder {
  width: 160px; height: 160px;
  border: 2px solid var(--sage);
  border-radius: 1rem;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.photo-option-card {
  border: 1.5px solid rgba(156,175,152,0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--off-white);
  transition: border-color 0.3s, transform 0.3s;
  text-align: center;
}
@media (hover:hover) {
  .photo-option-card:hover {
    border-color: var(--sage);
    transform: translateY(-2px);
  }
}

/* ─── 25. Accommodation ────────────────────────────────────── */
.accom-card {
  border: 1.5px solid rgba(156,175,152,0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--off-white);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
@media (hover:hover) {
  .accom-card:hover {
    border-color: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(156,175,152,0.18);
  }
}

/* ─── 26. Utilities ────────────────────────────────────────── */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase;
  font-weight: 400; color: var(--sage);
}

.link-underline {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--wine); border-bottom: 1px solid rgba(114,47,55,0.25);
  padding-bottom: 1px; text-decoration: none; transition: border-color 0.25s;
}
.link-underline:hover { border-color: var(--wine); }

.link-sage {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); border-bottom: 1px solid rgba(156,175,152,0.35);
  padding-bottom: 1px; text-decoration: none; transition: border-color 0.25s;
}
.link-sage:hover { border-color: var(--sage); }

.step-enter { animation: fadeUp 0.55s ease both; }

/* ─── 27. Confetti ─────────────────────────────────────────── */
.confetti-particle {
  position:fixed; pointer-events:none; z-index:9999;
  border-radius:50%; will-change:transform,opacity;
  animation:confettiFall linear forwards;
}

/* ─── 28. Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
  [data-reveal] { opacity:1; transform:none; }
  .hero-parallax-bg { position:absolute; inset:0; }
}

/* ─── 29. Gift Claiming ─────────────────────────────────────── */
.gift-card {
  border: 1.5px solid rgba(156,175,152,0.3);
  border-radius: 0.75rem;
  background: var(--off-white);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
@media (hover:hover) {
  .gift-card:not(.is-claimed):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(156,175,152,0.2);
    border-color: var(--sage);
  }
}
.gift-card.is-claimed {
  opacity: 0.72;
  cursor: default;
  border-color: rgba(156,175,152,0.5);
  background: rgba(156,175,152,0.06);
}
.gift-card-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative;
}
.gift-claimed-badge {
  position: absolute; inset: 0;
  background: rgba(114,47,55,0.78);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.58rem; font-family: 'Inter', sans-serif;
  font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: #fff; gap: 0.3rem;
}

/* ─── 30. Day Timeline ──────────────────────────────────────── */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: ''; position: absolute; left: 4px; top: 0.6rem; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--sage), rgba(156,175,152,0.1));
}
.timeline-item { position: relative; padding-bottom: 2.2rem; transition: opacity 0.5s ease; }
.timeline-item:last-child { padding-bottom: 0; }

/* Scroll-activated timeline states */
.timeline-item:not(.tl-active) { opacity: 0.35; }
.timeline-item.tl-active       { opacity: 1; }

.timeline-dot {
  position: absolute; left: -2.25rem; top: 0.35rem;
  width: 10px; height: 10px; border-radius: 50%;
  transition: background 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
  background: var(--sage); border: 2px solid var(--cream);
  box-shadow: 0 0 0 3px rgba(156,175,152,0.18);
}
.timeline-time {
  font-family: 'Inter', sans-serif; font-size: 0.58rem;
  font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 0.2rem;
}
.timeline-event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300; font-style: italic;
  color: var(--dark-wine); line-height: 1.25;
}
.timeline-note {
  font-size: 0.82rem; font-weight: 300; color: var(--text-muted);
  margin-top: 0.2rem; line-height: 1.65;
}

/* Active dot — lights up as you scroll */
.timeline-item.tl-active .timeline-dot {
  background: var(--wine) !important;
  box-shadow: 0 0 0 5px rgba(114,47,55,0.14), 0 0 16px rgba(114,47,55,0.28) !important;
  transform: scale(1.25);
}
.timeline-item.tl-active .timeline-time  { color: var(--wine); }
.timeline-item.tl-active .timeline-event { color: var(--dark-wine); font-style: italic; }

/* Soft pulse animation for the active dot */
@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(114,47,55,0.14), 0 0 16px rgba(114,47,55,0.28); }
  50%       { box-shadow: 0 0 0 8px rgba(114,47,55,0.08), 0 0 22px rgba(114,47,55,0.18); }
}
.timeline-item.tl-active .timeline-dot {
  animation: tl-pulse 2.2s ease-in-out infinite;
}

/* ─── 31. Guest Wishes ──────────────────────────────────────── */
.wish-card {
  border: 1.5px solid rgba(156,175,152,0.25);
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem 1.1rem;
  background: var(--off-white);
  position: relative; overflow: hidden;
}
.wish-card::before {
  content: '\201C';
  position: absolute; top: 0.4rem; left: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; color: rgba(156,175,152,0.15);
  line-height: 1; pointer-events: none; user-select: none;
}
.wish-input {
  display: block; width: 100%;
  border: none; border-bottom: 1px solid rgba(156,175,152,0.4);
  background: transparent; padding: 0.85rem 0;
  font-family: 'Inter', sans-serif;
  /* 16px minimum to prevent iOS auto-zoom on focus */
  font-size: 1rem; font-weight: 300;
  color: var(--dark-wine); transition: border-color 0.3s; outline: none;
  -webkit-appearance: none; appearance: none;
}
.wish-input::placeholder { color: rgba(156,175,152,0.6); }
.wish-input:focus { border-color: var(--wine); }
.wish-textarea {
  display: block; width: 100%;
  border: 1px solid rgba(156,175,152,0.35); border-radius: 0.5rem;
  background: transparent; padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  /* 16px minimum to prevent iOS auto-zoom on focus */
  font-size: 1rem; font-weight: 300;
  color: var(--dark-wine); resize: none; outline: none;
  transition: border-color 0.3s; line-height: 1.7;
  -webkit-appearance: none; appearance: none;
}
.wish-textarea::placeholder { color: rgba(156,175,152,0.5); }
.wish-textarea:focus { border-color: var(--wine); }

/* ─── 32. Song Requests ─────────────────────────────────────── */
.song-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(156,175,152,0.2);
}
.song-item:last-child { border-bottom: none; }
.song-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(156,175,152,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage); font-size: 1.1rem; font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

/* ─── 33. Hashtag ───────────────────────────────────────────── */
.hashtag-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  font-weight: 300; font-style: italic;
  color: var(--wine); line-height: 1.2; letter-spacing: -0.01em;
  word-break: break-word;
}

/* ─── 34. iOS & Mobile Polish ──────────────────────────────── */

/*
 * Prevent text selection on interactive non-text elements.
 * Keeps tap interactions clean on iOS.
 */
button, .gallery-dot, .attend-btn, .meal-card,
.bridal-card, .faq-question {
  -webkit-user-select: none;
  user-select: none;
}

/*
 * iOS landscape: when browser chrome is visible,
 * use dvh (dynamic viewport height) for full-bleed sections.
 */
@supports (height: 100dvh) {
  .min-h-\[100svh\] { min-height: 100dvh; }
  .modal-card       { max-height: 94dvh; }
}

/*
 * iPhone landscape safe-area: keep key sections clear of
 * the left/right sensor bar (notch on side).
 */
@media (max-height: 500px) and (orientation: landscape) {
  #site-nav .max-w-7xl {
    padding-left:  calc(1.25rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.25rem + env(safe-area-inset-right, 0px));
  }
  .hero-parallax-bg { inset: 0; }
  /* Collapse hero content top padding in landscape */
  .scroll-bounce { bottom: 0.5rem; }
}

/*
 * Bridal party cards: on very small phones (< 360px)
 * the 2-column grid gets cramped — switch to single column.
 */
@media (max-width: 359px) {
  .grid-cols-2 { grid-template-columns: 1fr !important; }
  .bridal-photo-placeholder, .bridal-photo {
    width: 90px; height: 90px;
  }
}

/*
 * Date strip: on very small screens stack to 2×2
 * already handled, but also reduce padding further.
 */
@media (max-width: 359px) {
  .date-strip-item { padding: 1rem 0.5rem; }
}

/*
 * Improve tap target sizes on mobile for small elements.
 */
@media (max-width: 767px) {
  .gallery-dot {
    width: 10px; height: 10px;
    padding: 4px; box-sizing: content-box;
  }
  .modal-close {
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
  }
  /* Keep back-to-top above the floating RSVP bar */
  #back-to-top {
    bottom: calc(5rem + var(--safe-bottom));
    right: 1rem;
  }
  /* Section headings: slightly smaller on tiny phones */
  @media (max-width: 359px) {
    h2 { font-size: clamp(1.8rem, 10vw, 3rem) !important; }
  }
}
