/* ============================================================
   Wedding v4 - Hendra & Juliani
   Arah: TERANG botanical/garden + nuansa Chinese tipis
   ============================================================ */

/* ---------- VARIABLES / PALETTE ---------- */
:root {
  /* Base terang */
  --cream: #FAF6EE;
  --white: #FFFFFF;
  --paper: #F5EFE2;

  /* Botanical */
  --sage: #556B4E;
  --sage-soft: #7A8C70;
  --olive: #3F542C;
  --sage-tint: #E8EEE2;

  /* Chinese accent (TIPIS) */
  --maroon: #8B2635;
  --maroon-deep: #5C0F0F;
  --gold: #C9A24B;
  --gold-soft: #E6C97A;

  /* Text */
  --ink: #333333;
  --neutral: #777777;
  --neutral-light: #999999;

  /* Overlay */
  --overlay-dark: rgba(0, 0, 0, 0.32);
  --overlay-sage: rgba(85, 107, 78, 0.45);

  /* Fonts */
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-sc: 'Noto Serif SC', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1140px;
  --container-narrow: 720px;
  --radius: 6px;
  --shadow-soft: 0 8px 40px rgba(85, 107, 78, 0.10);
  --shadow-card: 0 6px 28px rgba(63, 84, 44, 0.12);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-xi {
  font-family: var(--font-sc);
  font-size: clamp(3rem, 12vw, 5rem);
  color: var(--gold);
  margin-bottom: 1rem;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader-line {
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  animation: loaderLine 1.6s ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100% { opacity: 0.5; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1); } }
@keyframes loaderLine { 0%,100% { transform: scaleX(0.4); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---------- MUSIC TOGGLE ---------- */
.music-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 900;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(250, 246, 238, 0.92);
  border: 1px solid var(--gold);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, background 0.3s ease;
}
.music-toggle:hover { transform: scale(1.06); }
.music-toggle.playing { color: var(--maroon); }
.music-toggle.playing .music-icon svg { animation: musicSpin 3s linear infinite; }
@keyframes musicSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------- SECTION BASE ---------- */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem;
  overflow: hidden;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.container-narrow { max-width: var(--container-narrow); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 500;
  color: var(--maroon);
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}
.section-heading-light { color: var(--gold-soft); }

.section-decor {
  font-family: var(--font-sc);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.section-decor-inline {
  font-family: var(--font-sc);
  font-size: 0.7em;
  color: var(--gold);
  margin-left: 0.3em;
  vertical-align: middle;
}

.divider-leaf {
  display: flex; justify-content: center; align-items: center;
  margin: 0.75rem auto 2.5rem;
}
.divider-leaf img { width: 120px; height: auto; opacity: 0.85; }
.divider-leaf-light img { filter: brightness(0) invert(1) opacity(0.85); }

.paper-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--paper) url('assets/textures/paper.svg?v=v4') repeat;
  background-size: 400px 400px;
  opacity: 0.5;
}
.paper-bg ~ .container { position: relative; z-index: 1; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.35s ease;
  cursor: pointer;
}
.btn-open {
  background: var(--maroon);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(139, 38, 53, 0.35);
  margin-top: 1.5rem;
}
.btn-open:hover { background: var(--maroon-deep); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139, 38, 53, 0.45); }

.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(85, 107, 78, 0.3);
}
.btn-primary:hover { background: var(--olive); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: var(--sage);
  border: 1px solid var(--sage);
}
.btn-outline:hover { background: var(--sage); color: var(--white); transform: translateY(-2px); }

.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SECTION 1: COVER
   ============================================================ */
.section-cover {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cover-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/img/gallery-1-full.webp?v=v4');
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.cover-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(250,246,238,0.18) 0%, rgba(0,0,0,0.18) 50%, rgba(63,84,44,0.42) 100%),
    radial-gradient(ellipse at center, rgba(250,246,238,0.1) 0%, rgba(0,0,0,0.28) 90%);
}
.cover-blossom {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}
.cover-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--white);
  max-width: 90vw;
}
.cover-xi {
  font-family: var(--font-sc);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.cover-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: rgba(255,255,255,0.92);
}
.cover-names {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 14vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0.25rem 0;
  color: var(--white);
  text-shadow: 0 4px 28px rgba(0,0,0,0.45);
}
.cover-names .amp { color: var(--gold-soft); font-size: 0.85em; }
.cover-tagline {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 4vw, 2rem);
  margin: 0.5rem 0;
  color: var(--gold-soft);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.cover-divider { display: flex; justify-content: center; margin: 1rem 0; }
.cover-divider img { width: 160px; opacity: 0.95; }
.cover-date {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.08em;
  margin: 0.5rem 0;
  color: rgba(255,255,255,0.95);
}
.cover-xi-pair {
  font-family: var(--font-sc);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--gold-soft);
  margin: 0.5rem 0 0;
  letter-spacing: 0.2em;
}

/* ============================================================
   INVITATION WRAPPER (hidden until opened)
   ============================================================ */
.invitation {
  display: none;
}
.invitation.open { display: block; }

/* Cover elements: override AOS opacity:0 so they're visible even before AOS
   initializes. AOS is only initialized after invitation opens (to avoid
   measuring display:none elements), so cover data-aos elements need this
   CSS fallback. AOS.init() will take over once it runs. */
.section-cover [data-aos] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SECTION 2: PEMBUKAAN
   ============================================================ */
.section-opening { background: var(--cream); }
.section-opening .container { text-align: center; }
.ayat-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  color: var(--olive);
  margin: 1.5rem 0 1rem;
  line-height: 1.5;
  font-weight: 500;
}
.ayat-translation {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--sage);
  margin: 0 0 1.5rem;
}
.ayat-body {
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  color: var(--ink);
  line-height: 1.85;
  margin: 0;
}

/* ============================================================
   SECTION 3: GREETING
   ============================================================ */
.section-greeting {
  background: var(--sage-tint);
  text-align: center;
}
.botanical-corner {
  position: absolute;
  width: 140px; height: auto;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.botanical-corner img { width: 100%; }
.botanical-tl { top: 20px; left: 20px; }
.botanical-br { bottom: 20px; right: 20px; transform: rotate(180deg); }
.section-greeting .container { position: relative; z-index: 1; }
.greeting-card {
  background: var(--white);
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3rem) 1.5rem;
  box-shadow: var(--shadow-card);
  max-width: 480px;
  margin: 1rem auto 0;
}
.greeting-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--neutral);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}
.greeting-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--maroon);
  margin: 0.5rem 0 0;
  font-weight: 600;
}

/* ============================================================
   SECTION 4: COUPLE
   ============================================================ */
.section-couple { background: var(--cream); text-align: center; }
.couple-xi {
  font-family: var(--font-sc);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.couple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1rem;
}
.couple-person { padding: 0 0.5rem; }
.couple-photo {
  width: clamp(150px, 38vw, 220px);
  height: clamp(150px, 38vw, 220px);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-card);
  position: relative;
}
.couple-photo img { width: 100%; height: 100%; object-fit: cover; }
.couple-role {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.couple-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--maroon);
  margin: 0 0 0.15rem;
  font-weight: 500;
}
.couple-nickname {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage);
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}
.couple-divider {
  width: 50px; height: 1px;
  background: var(--gold);
  margin: 0.5rem auto;
}
.couple-desc, .couple-parents {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0.15rem 0;
}
.couple-parents { color: var(--sage); font-weight: 500; }

.couple-monogram {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  color: var(--gold);
  padding: 1rem 0;
}
.couple-monogram .mono-letter { color: var(--maroon); }
.couple-monogram .mono-amp { color: var(--gold); font-family: var(--font-script); font-size: 1.2em; }

/* ============================================================
   SECTION 5: UCAPAN
   ============================================================ */
.section-message { background: var(--cream); }
.section-message .container { text-align: center; }
.message-sprig { display: flex; justify-content: center; margin: 0 auto 1.5rem; }
.message-sprig img { width: 120px; opacity: 0.7; }
.message-body { text-align: left; }
.message-body p {
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.85;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.message-signature {
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--gold);
  margin: 2rem 0 0;
  text-align: center;
}

/* ============================================================
   SECTION 6: ACARA
   ============================================================ */
.section-event { background: var(--sage-tint); text-align: center; }
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 2.5rem) 1.5rem;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--gold);
  text-align: left;
}
.event-ring { display: flex; justify-content: center; margin-bottom: 1rem; }
.event-ring img { width: 80px; }
.event-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 1.9rem);
  color: var(--maroon);
  text-align: center;
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.event-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
}
.event-row:last-child { border-bottom: none; }
.event-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.event-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}
.event-cta { margin-top: 2rem; text-align: center; }

/* ============================================================
   SECTION 7: COUNTDOWN
   ============================================================ */
.section-countdown {
  position: relative;
  text-align: center;
  color: var(--white);
}
.countdown-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/img/gallery-4-full.webp?v=v4');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}
.countdown-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(63,84,44,0.72), rgba(85,107,78,0.78));
}
.section-countdown .container { position: relative; z-index: 2; }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 560px;
  margin: 1rem auto 0;
}
.count-box {
  background: rgba(250, 246, 238, 0.12);
  border: 1px solid rgba(230, 201, 122, 0.4);
  border-radius: var(--radius);
  padding: 1.25rem 0.5rem 1rem;
  backdrop-filter: blur(4px);
}
.count-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.count-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.countdown-ended {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-soft);
  margin: 2rem auto 0;
  max-width: 480px;
}

/* ============================================================
   SECTION 8: GALLERY
   ============================================================ */
.section-gallery { background: var(--cream); text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery-item {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative;
  cursor: pointer;
  background: var(--sage-tint);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(63,84,44,0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after { opacity: 1; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ============================================================
   SECTION 9: LOKASI
   ============================================================ */
.section-location { background: var(--sage-tint); text-align: center; }
.location-address {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.map-wrap {
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.map-wrap iframe { display: block; width: 100%; }
.location-cta { margin-top: 1.5rem; }

/* ============================================================
   SECTION 10 + 11: FORMS
   ============================================================ */
.section-rsvp { background: var(--cream); text-align: center; }
.section-wish { background: var(--cream); text-align: center; }
.form-subheading {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.form {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; position: relative; }
.form-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(85, 107, 78, 0.3);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 48px;
}
.form-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(85, 107, 78, 0.12);
}
textarea.form-input { min-height: 96px; resize: vertical; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556B4E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.5rem; }

.radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio-item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(85, 107, 78, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  transition: all 0.3s ease;
  min-height: 44px;
}
.radio-item input { accent-color: var(--sage); width: 18px; height: 18px; }
.radio-item:has(input:checked) { border-color: var(--sage); background: var(--sage-tint); }

.char-count {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--neutral-light);
  text-align: right;
  margin-top: 0.25rem;
}

.form-success {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage);
  text-align: center;
  padding: 1rem;
  background: var(--sage-tint);
  border-radius: var(--radius);
  margin: 0;
}

/* ============================================================
   SECTION 12: WISH CAROUSEL
   ============================================================ */
.wish-carousel-block { margin-top: 3rem; text-align: center; }
.carousel-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  color: var(--maroon);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.carousel {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto;
  max-width: 560px;
}
.carousel-track {
  flex: 1;
  overflow: hidden;
  padding: 0.5rem;
}
.wish-card {
  background: var(--white);
  border: 1px solid rgba(201, 162, 75, 0.4);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin: 0 auto;
  max-width: 420px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.wish-card.entering { opacity: 0; transform: translateX(20px); }
.wish-card.active { opacity: 1; transform: translateX(0); }
.wish-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--maroon);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.wish-card-msg {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 0.5rem;
  font-style: italic;
}
.wish-card-time {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--neutral-light);
  letter-spacing: 0.05em;
}
.carousel-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--sage);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.carousel-arrow:hover { background: var(--sage); color: var(--white); }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(85, 107, 78, 0.3);
  transition: all 0.3s ease;
}
.carousel-dot.active { background: var(--sage); width: 24px; border-radius: 4px; }
.wish-empty {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--neutral);
  margin: 1.5rem auto 0;
  max-width: 420px;
}

/* ============================================================
   SECTION 13: FOOTER
   ============================================================ */
.section-footer {
  position: relative;
  text-align: center;
  color: var(--cream);
  padding: clamp(4rem, 10vw, 6rem) 1.25rem;
}
.footer-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/img/gallery-3-full.webp?v=v4');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}
.footer-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(92, 15, 15, 0.86), rgba(92, 15, 15, 0.92));
}
.footer-content { position: relative; z-index: 2; }
.footer-xi {
  font-family: var(--font-sc);
  font-size: clamp(3rem, 10vw, 4.5rem);
  color: var(--gold-soft);
  margin-bottom: 1rem;
  line-height: 1;
}
.footer-text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: rgba(250, 246, 238, 0.95);
}
.footer-signature {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
}
.footer-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(250, 246, 238, 0.85);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 1rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img-wrap { max-width: 90vw; max-height: 85vh; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-arrow {
  position: absolute;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   RESPONSIVE - DESKTOP / TABLET
   ============================================================ */
@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
  }
  .g-tall { grid-row: span 2; }
  .g-wide { grid-column: span 2; }
}

@media (min-width: 880px) {
  .section { padding: clamp(5rem, 8vw, 7rem) 2rem; }
  .couple-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
  }
  .event-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
  .g-tall { grid-row: span 2; }
  .g-wide { grid-column: span 2; }
  .map-wrap iframe { height: 400px; }
}

@media (max-width: 600px) {
  .map-wrap iframe { height: 320px; }
  .botanical-corner { width: 90px; }
  .botanical-tl { top: 12px; left: 12px; }
  .botanical-br { bottom: 12px; right: 12px; }
  .countdown-grid { gap: 0.5rem; }
  .count-box { padding: 1rem 0.4rem 0.85rem; }
  .carousel-arrow { width: 40px; height: 40px; }
}

/* ============================================================
   PARALLAX (disabled on mobile for perf + iOS fixed bug)
   ============================================================ */
@media (max-width: 879px) {
  .countdown-bg, .footer-bg { background-attachment: scroll; }
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* AOS: langsung visible */
  [data-aos] { opacity: 1 !important; transform: none !important; }
  .cover-blossom { display: none; }
}
