/* ====================================================
   WEDDING - Faqih & Yusuf
   TEMA BATIK INDONESIA — Elegan, Tradisional, Mewah
   ==================================================== */

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

:root {
  --coklat: #4a2810;
  --coklat-dark: #2d1708;
  --coklat-light: #8B4513;
  --sogan: #D2691E;
  --sogan-light: #F5DEB3;
  --emas: #C9A84C;
  --emas-light: #FFD700;
  --krem: #FFF8DC;
  --bg: #FDF5E6;
  --bg-section: #FFF8F0;
  --card: #FFFEF5;
  --text: #2d1708;
  --text-light: #6B4226;
  --border: #D4A574;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(74,40,16,0.12);
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Open Sans', system-ui, sans-serif;
  --section-padding: 80px 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 70px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ========== BATIK PATTERN (CSS) ========== */
.batik-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, var(--sogan) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, var(--sogan) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, var(--coklat) 1.5px, transparent 1.5px),
    radial-gradient(circle at 60% 20%, var(--coklat) 1.5px, transparent 1.5px),
    radial-gradient(circle at 90% 10%, var(--emas) 1px, transparent 1px),
    radial-gradient(circle at 10% 90%, var(--emas) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 100px 100px, 70px 70px, 50px 50px, 90px 90px;
}

.batik-divider-top, .batik-divider-bottom {
  height: 12px;
  position: relative;
  background: linear-gradient(90deg, transparent, var(--sogan), var(--emas), var(--sogan), transparent);
  opacity: 0.3;
  margin: 0;
}

.batik-divider-top::after, .batik-divider-bottom::after {
  content: '❋ ❋ ❋';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -8px;
  font-size: 14px;
  color: var(--emas);
  letter-spacing: 12px;
  opacity: 0.7;
}

/* ========== SPLASH ========== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--coklat-dark) 0%, var(--coklat) 50%, var(--coklat-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-batik {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 15% 25%, #C9A84C 2px, transparent 2px),
    radial-gradient(circle at 85% 75%, #C9A84C 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, #D2691E 3px, transparent 3px);
  background-size: 80px 80px, 100px 100px, 120px 120px;
}

#petalCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; }

.splash-content {
  text-align: center;
  color: var(--krem);
  position: relative;
  z-index: 2;
  padding: 0 20px;
  animation: splashIn 1.5s ease forwards;
}

@keyframes splashIn { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }

.splash-ornament { font-size: 2.5rem; color: var(--emas); margin-bottom: 10px; display: block; }

.splash-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--emas-light);
  margin-bottom: 20px;
}

.splash-couple {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--krem);
  line-height: 1.2;
}

.splash-amp { color: var(--emas); font-style: italic; font-weight: 400; }

.splash-divider { color: var(--emas); font-size: 1rem; margin: 16px 0; letter-spacing: 6px; }

.splash-date {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--sogan-light);
  margin-bottom: 40px;
}

.btn-splash {
  background: transparent;
  border: 2px solid var(--emas);
  color: var(--emas);
  padding: 14px 44px;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-splash:hover { background: var(--emas); color: var(--coklat-dark); }

.splash-hint { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 20px; letter-spacing: 2px; animation: pulseHint 2s ease-in-out infinite; }

@keyframes pulseHint { 0%,100%{opacity:0.4} 50%{opacity:0.8} }

/* ========== HEADER ========== */
.batik-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--coklat-dark);
  padding: 10px 0 6px;
  text-align: center;
}

.batik-header-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(90deg, transparent, transparent 20px, #C9A84C 20px, #C9A84C 21px);
}

.batik-header-text {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--krem);
  letter-spacing: 4px;
  position: relative;
  z-index: 1;
}

.batik-header-text .amp { color: var(--emas); font-style: italic; }

/* ========== BOTTOM NAVBAR (BATIK) ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--coklat);
  border-top: 2px solid var(--emas);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 4px;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
}

.bnav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,248,220,0.5);
  font-size: 9px;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  padding: 4px 6px;
  transition: color 0.2s;
  position: relative;
  min-width: 0;
  flex: 0 1 auto;
}

.bnav-link svg {
  width: 20px;
  height: 20px;
}

.bnav-link span {
  font-size: 9px;
  letter-spacing: 0.3px;
}

.bnav-link.active {
  color: var(--emas);
}

.bnav-link.active svg {
  stroke-width: 2.5;
}

.bnav-link:hover {
  color: var(--emas-light);
}

/* ========== MUSIC FAB (kiri bawah) ========== */
.music-fab {
  position: fixed;
  bottom: 80px;
  left: 16px;
  z-index: 998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coklat);
  border: 2px solid var(--emas);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--krem);
  transition: all 0.3s;
  box-shadow: 0 3px 16px rgba(74,40,16,0.35);
}

.music-fab:hover { background: var(--sogan); }

.music-fab.playing {
  background: var(--emas);
  border-color: var(--emas);
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 3px 16px rgba(74,40,16,0.35); }
  50% { box-shadow: 0 3px 30px rgba(201,168,76,0.6); }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--coklat-dark) 0%, var(--coklat) 40%, var(--coklat-light) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 30%, #FFD700 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, #FFD700 2px, transparent 2px);
  background-size: 100px 100px;
}

.hero-batik-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 30px, #C9A84C 30px, #C9A84C 31px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, #C9A84C 30px, #C9A84C 31px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--krem);
  padding: 0 20px;
  max-width: 700px;
}

.hero-greeting {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--emas-light);
  margin-bottom: 8px;
  opacity: 0; animation: heroIn 1s ease 0.5s forwards;
}

.hero-subtop {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
  opacity: 0; animation: heroIn 1s ease 0.7s forwards;
}

@keyframes heroIn { 0%{opacity:0;transform:translateY(30px)} 100%{opacity:1;transform:translateY(0)} }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0; animation: heroIn 1s ease 0.9s forwards;
}

.hero-title .amp { color: var(--emas); font-style: italic; }

.hero-subtitle {
  font-family: var(--font-head);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  opacity: 0; animation: heroIn 1s ease 1.1s forwards;
}

.hero-date { opacity: 0; animation: heroIn 1s ease 1.3s forwards; }
.hero-day { display: block; font-size: 0.85rem; letter-spacing: 4px; text-transform: uppercase; color: var(--emas); margin-bottom: 4px; }
.hero-full-date { font-family: var(--font-head); font-size: 1.5rem; color: var(--krem); }

.hero-batik-border {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--emas), transparent);
  margin: 30px auto 0;
  opacity: 0; animation: heroIn 1s ease 2s forwards;
}

/* Countdown */
.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  opacity: 0; animation: heroIn 1s ease 1.6s forwards;
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 16px;
  min-width: 72px;
  border-radius: 8px;
}

.cd-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--emas); line-height: 1; }
.cd-label { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 4px; }
.cd-sep { font-family: var(--font-head); font-size: 1.5rem; color: var(--emas); opacity: 0.5; margin-bottom: 16px; }

/* ========== SECTION ========== */
.section { padding: var(--section-padding); position: relative; }
.section:nth-child(even) { background: var(--bg-section); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-ornament { font-size: 2rem; color: var(--emas); display: block; margin-bottom: 10px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--coklat); position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 2px; background: linear-gradient(90deg, var(--emas), var(--sogan)); margin: 12px auto 0; }
.section-desc { font-size: 0.9rem; color: var(--text-light); margin-top: 12px; }

/* ========== COUPLE ========== */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.couple-card { text-align: center; }

.couple-photo-wrapper {
  width: 200px; height: 200px;
  margin: 0 auto 20px;
  position: relative;
}

.photo-batik-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--emas);
  border-radius: 50%;
  opacity: 0.5;
}

.couple-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--white);
  position: relative;
  z-index: 1;
}

.couple-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--coklat); margin-bottom: 6px; }
.couple-parent { font-size: 0.85rem; color: var(--text-light); }

.couple-sep { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sep-ornament { font-size: 1.2rem; color: var(--emas); }
.sep-text { font-family: var(--font-head); font-size: 2rem; color: var(--sogan); font-style: italic; }

/* ========== TIMELINE ========== */
.story-section { background: var(--bg-section); }

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--emas), var(--sogan));
  transform: translateX(-50%);
}

.tl-item { position: relative; margin-bottom: 40px; width: 100%; }
.tl-item:last-child { margin-bottom: 0; }

.tl-item:nth-child(odd) { padding-right: calc(50% + 35px); text-align: right; }
.tl-item:nth-child(even) { padding-left: calc(50% + 35px); text-align: left; }

.tl-dot {
  position: absolute;
  left: 50%; top: 8px;
  width: 16px; height: 16px;
  background: var(--emas);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--emas);
  z-index: 2;
}

.tl-content {
  background: var(--card);
  padding: 22px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tl-content:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(74,40,16,0.15); }

.tl-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--coklat), var(--sogan));
  color: var(--krem);
  font-size: 0.75rem;
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.tl-content h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--coklat); margin-bottom: 6px; }
.tl-content p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ========== EVENTS ========== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.event-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
}

.event-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(74,40,16,0.15); }

.event-batik-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coklat), var(--emas), var(--sogan), var(--emas), var(--coklat));
}

.event-icon { font-size: 2rem; margin-bottom: 12px; }
.event-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--coklat); margin-bottom: 12px; }
.event-time { font-size: 0.9rem; color: var(--sogan); font-weight: 600; margin-bottom: 4px; }
.event-place { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.event-addr { font-size: 0.8rem; color: var(--text-light); margin-bottom: 14px; }

.btn-map {
  display: inline-block;
  background: linear-gradient(135deg, var(--coklat), var(--sogan));
  color: var(--krem);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: opacity 0.3s;
}

.btn-map:hover { opacity: 0.85; }

/* Dress code */
.dress-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.dress-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--coklat); margin-bottom: 14px; }

.dress-colors { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.dress-colors span { font-size: 0.85rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; }

.swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.08); display: inline-block; }

.dress-note { font-size: 0.8rem; color: var(--text-light); margin-top: 12px; font-style: italic; }

/* Schedule */
.schedule-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.schedule-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--coklat); margin-bottom: 14px; }

.sch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212,165,116,0.3);
}

.sch-item:last-child { border-bottom: none; }
.sch-time { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--sogan); min-width: 40px; }
.sch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emas); flex-shrink: 0; }
.sch-item span:last-child { font-size: 0.85rem; color: var(--text-light); }

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }

.gal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74,40,16,0.5);
  color: var(--krem);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gal-overlay { opacity: 1; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9998; background: rgba(45,23,8,0.95); align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lb-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--krem); font-size: 2.5rem; cursor: pointer; z-index: 2; }
.lb-content { text-align: center; max-width: 90vw; max-height: 90vh; }
.lb-img { max-width: 100%; max-height: 80vh; border-radius: 8px; object-fit: contain; }
.lb-caption { font-family: var(--font-head); font-size: 1rem; color: var(--krem); margin-top: 12px; }

/* ========== RSVP & WISHES ========== */
.rsvp-wrapper, .wish-form-wrapper { max-width: 480px; margin: 0 auto; }

.rsvp-wrapper form, .wish-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rsvp-wrapper input, .rsvp-wrapper select, .rsvp-wrapper textarea,
.wish-form-wrapper input, .wish-form-wrapper textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border 0.3s;
}

.rsvp-wrapper input:focus, .rsvp-wrapper select:focus, .rsvp-wrapper textarea:focus,
.wish-form-wrapper input:focus, .wish-form-wrapper textarea:focus {
  border-color: var(--sogan);
  box-shadow: 0 0 0 3px rgba(210,105,30,0.15);
}

.btn-submit {
  background: linear-gradient(135deg, var(--coklat), var(--sogan));
  color: var(--krem);
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-submit:hover { opacity: 0.85; }

.rsvp-response { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--sogan); font-weight: 500; }

.wish-container {
  max-width: 520px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 6px;
}

.wish-container::-webkit-scrollbar { width: 4px; }
.wish-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.wish-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 3px solid var(--emas);
}

.wish-item-name { font-family: var(--font-head); font-weight: 700; color: var(--coklat); font-size: 0.9rem; margin-bottom: 4px; }
.wish-item-msg { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.wish-empty { text-align: center; color: var(--text-light); padding: 40px; font-style: italic; }

/* ========== GIFT ========== */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gift-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.gift-card:hover { transform: translateY(-3px); }

.gift-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--coklat); margin-bottom: 6px; }
.gift-card > p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 8px; }

.gift-num { display: flex; align-items: center; justify-content: center; gap: 8px; }
.gift-num span { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--coklat); letter-spacing: 1px; }

.btn-copy {
  background: var(--sogan);
  color: var(--krem);
  border: none;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-copy:hover { opacity: 0.8; }
.btn-copy.copied { background: var(--coklat); }

.qris-box {
  width: 140px; height: 140px;
  margin: 0 auto;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 2.5rem;
  color: var(--text-light);
}

.qris-box span { font-size: 0.75rem; }

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, var(--coklat-dark), var(--coklat));
  color: var(--krem);
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.footer-batik {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 25px, #C9A84C 25px, #C9A84C 26px),
    repeating-linear-gradient(-45deg, transparent, transparent 25px, #C9A84C 25px, #C9A84C 26px);
}

.footer-ornament { font-size: 2rem; color: var(--emas); margin-bottom: 12px; position: relative; z-index: 1; }
.footer h3 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1; }
.footer h3 .amp { color: var(--emas); font-style: italic; }
.footer > .container > p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 6px; position: relative; z-index: 1; }

.footer-q {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin: 16px auto 8px !important;
  line-height: 1.6;
}

.footer-surah { font-size: 0.8rem; color: var(--emas); margin-bottom: 20px !important; }
.footer-divider { width: 60px; height: 1px; background: rgba(255,255,255,0.2); margin: 20px auto; position: relative; z-index: 1; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3) !important; }

/* ========== BACK TO TOP ========== */
.back-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--coklat);
  color: var(--krem);
  border: 2px solid var(--emas);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 99;
}

.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--sogan); }

/* ========== SCROLL ANIMATIONS ========== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 768px) {
  :root { --section-padding: 40px 0; }

  .container { padding: 0 16px; }

  .bottom-nav {
    padding: 4px 2px;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
  }

  .bnav-link svg { width: 18px; height: 18px; }
  .bnav-link span { font-size: 8px; }
  .music-fab { width: 40px; height: 40px; font-size: 1rem; bottom: 65px; left: 12px; }

  body { padding-bottom: 60px; }

  .batik-header-text { font-size: 15px; letter-spacing: 3px; }

  /* HERO */
  .hero { padding: 100px 0 40px; min-height: 90vh; }
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-full-date { font-size: 1.2rem; }

  .countdown-wrapper { gap: 4px; flex-wrap: wrap; }
  .cd-box { min-width: 56px; padding: 8px 8px; border-radius: 6px; }
  .cd-num { font-size: 1.3rem; }
  .cd-label { font-size: 0.5rem; letter-spacing: 1px; }
  .cd-sep { font-size: 1rem; margin-bottom: 10px; }

  /* COUPLE */
  .couple-grid { grid-template-columns: 1fr; gap: 16px; }
  .couple-sep { margin: 4px 0; transform: scale(0.8); }
  .couple-photo-wrapper { width: 140px; height: 140px; }
  .couple-photo-wrapper .photo-batik-ring { inset: -6px; }
  .couple-name { font-size: 1.15rem; }

  /* TIMELINE */
  .timeline::before { left: 16px; }
  .tl-item:nth-child(odd), .tl-item:nth-child(even) { padding-left: 40px; padding-right: 0; text-align: left; }
  .tl-dot { left: 16px; width: 12px; height: 12px; }
  .tl-content { padding: 16px 18px; }
  .tl-year { font-size: 0.7rem; }
  .tl-content h3 { font-size: 1rem; }
  .tl-content p { font-size: 0.82rem; }

  /* EVENTS */
  .events-grid { grid-template-columns: 1fr; gap: 14px; }
  .event-card { padding: 24px 20px; }
  .event-title { font-size: 1.1rem; }
  .btn-map { font-size: 0.75rem; padding: 6px 16px; }

  .dress-colors { gap: 14px; }
  .dress-colors span { font-size: 0.8rem; }

  .schedule-card { padding: 16px; }
  .sch-time { font-size: 0.85rem; min-width: 32px; }
  .sch-item span:last-child { font-size: 0.8rem; }

  /* GALLERY */
  .gallery-grid { gap: 3px; border-radius: 8px; }

  /* RSVP, WISHES */
  .rsvp-wrapper input, .rsvp-wrapper select, .rsvp-wrapper textarea,
  .wish-form-wrapper input, .wish-form-wrapper textarea {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .btn-submit { font-size: 0.85rem; padding: 10px; }

  .wish-item { padding: 12px 16px; }
  .wish-item-name { font-size: 0.85rem; }
  .wish-item-msg { font-size: 0.82rem; }

  /* GIFT */
  .gift-grid { grid-template-columns: 1fr; gap: 12px; }
  .gift-card { padding: 18px; }
  .gift-num span { font-size: 0.95rem; }

  .qris-box { width: 110px; height: 110px; font-size: 2rem; }

  /* FOOTER */
  .footer { padding: 40px 16px; }
  .footer h3 { font-size: 1.3rem; }
  .footer-q { font-size: 0.8rem; }

  /* BACK TO TOP */
  .back-top { width: 38px; height: 38px; font-size: 1rem; bottom: 20px; right: 16px; }

  /* SECTION HEADER */
  .section-header { margin-bottom: 30px; }
  .section-title { font-size: clamp(1.3rem, 4vw, 1.8rem); }
  .section-desc { font-size: 0.82rem; }
  .section-ornament { font-size: 1.5rem; }

  /* ANIMATIONS off on mobile for perf */
  .fade-in, .fade-in-left, .fade-in-right { transform: none; opacity: 1; }
}

/* Mobile kecil (<=400px) */
@media (max-width: 400px) {
  :root { --section-padding: 30px 0; }

  .container { padding: 0 12px; }

  .couple-photo-wrapper { width: 120px; height: 120px; }
  .couple-name { font-size: 1rem; }
  .couple-parent { font-size: 0.78rem; }

  .cd-box { min-width: 46px; padding: 6px 6px; }
  .cd-num { font-size: 1.1rem; }
  .cd-label { font-size: 0.45rem; }

  .hero-full-date { font-size: 1rem; }
  .hero-day { font-size: 0.75rem; }

  .timeline-item:nth-child(odd), .tl-item:nth-child(even) { padding-left: 32px; }
  .tl-content { padding: 12px 14px; }

  .gallery-grid { gap: 2px; }

  .event-card { padding: 18px 14px; }

  .qris-box { width: 100px; height: 100px; }

  .fab-toggle { bottom: 16px; width: 42px; height: 42px; }
  .fab-toggle svg { width: 18px; height: 18px; }
}

/* Landscape mode mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 120vh; padding: 80px 0 30px; }
  .countdown-wrapper { margin-top: 16px; }
  .cd-box { min-width: 44px; padding: 4px 6px; }
  .cd-num { font-size: 1rem; }
  .cd-sep { margin-bottom: 6px; }
  .hero-batik-border { margin-top: 16px; }
}

/* iPad / large tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { padding: 0 24px; }
  .couple-photo-wrapper { width: 180px; height: 180px; }
  .events-grid { gap: 18px; }
}