/* ============================
   VARIABEL & RESET
============================= */
:root {
  --gold:        #C9960C;
  --gold-light:  #E8B84B;
  --gold-pale:   #F5DFA0;   /* ← diperbarui dari F0D890 */
  --gold-dim:    #A87820;

  /* Gradien utama (sesuai gambar referensi) */
  --bg-top:      #E5DCC0;   /* krem olive muda */
  --bg-mid:      #9A8A62;   /* coklat olive tengah */
  --bg-deep:     #4A3318;   /* coklat tua */
  --bg-bottom:   #1E1008;   /* coklat sangat gelap */

  /* Warna coklat tambahan */
  --brown-dark:  #2C1A0E;
  --brown-mid:   #4B2E14;
  --brown-light: #7D4F2A;

  /* Teks */
  --cream:       #FDF6E3;
  --cream-dark:  #F0E0B0;
  --text-gold:   #D4A832;
  --text-light:  #F0E8C8;
  --text-dim:    #C8B48A;
  --text-dark:   #1C1007;
  --text-mid:    #4B3010;

  --radius:      12px;
  --shadow:      0 4px 24px rgba(44, 26, 14, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: linear-gradient(180deg,
    var(--bg-top)    0%,
    var(--bg-mid)    35%,
    var(--bg-deep)   70%,
    var(--bg-bottom) 100%
  );
  background-attachment: fixed;
  color: var(--text-gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================
   COVER
============================= */
.cover {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cover.slide-up {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Batik ornamen kiri & kanan */
.cover__batik-left,
.cover__batik-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(201, 150, 12, 0.15) 8px,
      rgba(201, 150, 12, 0.15) 10px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(201, 150, 12, 0.1) 8px,
      rgba(201, 150, 12, 0.1) 10px
    );
  border-right: 2px solid rgba(201, 150, 12, 0.3);
}
.cover__batik-right {
  right: 0;
  border-right: none;
  border-left: 2px solid rgba(201, 150, 12, 0.3);
}
.cover__batik-left { left: 0; }

/* Ornamen atas & bawah */
.cover__ornament--top,
.cover__ornament--bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 90%);
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}
.cover__ornament--top { top: 30px; }
.cover__ornament--bottom { bottom: 30px; }

.cover__content {
  text-align: center;
  padding: 2rem;
  max-width: 380px;
  animation: fadeUp 1.2s ease both;
}

.cover__bismillah {
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  font-family: serif;
}

.cover__label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold-pale);
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cover__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  margin: 0.75rem 0;
}
.cover__divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.cover__divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.cover__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.cover__name {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--gold-light);
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(201,150,12,0.4);
}
.cover__ampersand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 6vw, 2rem);
  color: var(--gold);
}

.cover__date {
  color: var(--cream-dark);
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.cover__open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--brown-light));
  color: var(--cream);
  border: none;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,150,12,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse 2s infinite 1.5s;
}
.cover__open-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,150,12,0.5); }

/* ============================
   AUDIO BAR
============================= */
.audio-bar {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  width: 140px; 
}
.audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  width: 100%;
  white-space: nowrap; 
  background: var(--brown-dark);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.audio-btn:hover { background: var(--brown-mid); }

/* ============================
   INVITATION WRAPPER
============================= */
.invitation { position: relative; }
.hidden { display: none !important; }

/* ============================
   SECTIONS – UMUM
============================= */
.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

.section__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.section__divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.75rem auto 1.5rem;
}

.section__header {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  background: rgba(245, 223, 160, 0.1);
}

/* ============================
   ORNAMENT CORNERS
============================= */
.ornament-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
}
.ornament-corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.ornament-corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.ornament-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.ornament-corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ============================
   HERO
============================= */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, #FEF0C0 100%);
  position: relative;
}

.section__bismillah {
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  color: var(--brown-mid);
  margin-bottom: 1rem;
  font-family: serif;
}

.hero__verse {
  font-style: italic;
  color: var(--text-mid);
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  max-width: 480px;
  margin: 0 auto 0.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  text-align: left;
}

.hero__verse-source {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero__intro {
  color: var(--text-mid);
  font-size: 1rem;
}

/* ============================
   MEMPELAI
============================= */
.mempelai {
  background: var(--cream);
}

.mempelai__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(245,223,160,0.2));
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mempelai__photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--brown-light));
}

.mempelai__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--brown-mid);
  text-align: center;
  overflow: hidden;
}
.mempelai__photo img { width: 100%; height: 100%; object-fit: cover; }

.mempelai__label {
  font-style: italic;
  color: var(--gold);
  font-size: 0.85rem;
}
.mempelai__name {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: var(--brown-dark);
}
.mempelai__parents {
  color: var(--text-mid);
  font-style: italic;
  font-size: 0.95rem;
}

.mempelai__heart {
  color: var(--gold);
  margin: 1rem auto;
  animation: heartbeat 1.5s infinite;
}

/* ============================
   COUNTDOWN
============================= */
.countdown-section {
  background: var(--brown-dark);
  color: var(--cream);
  max-width: 100%;
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1rem, 5vw, 2rem);
}
.countdown-section .section__title { color: var(--gold-light); }

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 1.5rem);
  flex-wrap: wrap;
  margin-top: 1rem;
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.countdown__num {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--gold-light);
  background: rgba(201, 150, 12, 0.1);
  border: 1px solid rgba(201, 150, 12, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  min-width: clamp(60px, 16vw, 90px);
  text-align: center;
  line-height: 1;
}
.countdown__label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.countdown__sep {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* ============================
   ACARA
============================= */
.acara {
  background: linear-gradient(180deg, #FEF0C0 0%, var(--cream) 100%);
}

.acara__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.acara__card {
  background: #fff;
  border: 1px solid var(--gold-pale);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.acara__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.acara__type {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 0.75rem;
}
.acara__day { font-weight: 600; color: var(--gold); font-size: 0.95rem; }
.acara__time { color: var(--text-mid); font-size: 0.9rem; }
.acara__divider {
  width: 50px;
  height: 1px;
  background: var(--gold-pale);
  margin: 0.75rem auto;
}
.acara__place { font-weight: 600; color: var(--brown-dark); }
.acara__address { color: var(--text-mid); font-size: 0.88rem; font-style: italic; }

/* ============================
   MAPS
============================= */
.maps-section { max-width: 100%; padding-bottom: 0; }
.maps-embed {
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold-pale);
  box-shadow: var(--shadow);
}
.maps-embed iframe { width: 100%; height: 100%; border: none; }

/* ============================
   RSVP
============================= */
.rsvp {
  background: var(--cream);
}

.rsvp__desc {
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.rsvp__form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-weight: 600;
  color: var(--brown-dark);
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gold-pale);
  border-radius: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,150,12,0.12);
}

.radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 130px;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(201, 150, 12, 0.35);
  border-radius: 10px;
  background: rgba(20, 12, 4, 0.3);
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

/* Sembunyikan radio button asli */
.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Saat dipilih */
.radio-label:has(input:checked) {
  background: linear-gradient(135deg, var(--gold-dim), #5A3A18);
  border-color: var(--gold-light);
  color: var(--gold-pale);
  box-shadow: 0 4px 16px rgba(201, 150, 12, 0.25);
}

/* Hover */
.radio-label:hover {
  border-color: var(--gold-dim);
  background: rgba(74, 51, 24, 0.4);
  color: var(--gold-light);
}

@media (max-width: 400px) {
  .radio-group    { flex-direction: column; }
  .radio-label    { min-width: unset; }
}

.rsvp__success {
  background: linear-gradient(135deg, #e6f4ea, #c8e6c9);
  border: 1px solid #81c784;
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #2e7d32;
  font-size: 1.1rem;
  font-style: italic;
  margin-top: 1rem;
}

/* ============================
   UCAPAN
============================= */
.ucapan-section { background: var(--cream-dark); }

.ucapan__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.ucapan__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: left;
  animation: fadeUp 0.5s ease both;
}
.ucapan__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brown-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.ucapan__nama { font-weight: 700; color: var(--brown-dark); font-size: 0.9rem; }
.ucapan__pesan { color: var(--text-mid); font-size: 0.9rem; font-style: italic; }

/* ============================
   AMPLOP DIGITAL
============================= */
.amplop { background: var(--cream); }
.amplop__desc { color: var(--text-mid); font-style: italic; margin-bottom: 1.25rem; }

.amplop__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.amplop__card {
  background: var(--brown-dark);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}
.amplop__bank { color: var(--gold-light); font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.amplop__rekening { font-family: 'Cinzel Decorative', serif; font-size: 1.1rem; letter-spacing: 2px; }
.amplop__atas-nama { font-size: 0.8rem; color: var(--gold-pale); font-style: italic; margin-bottom: 1rem; }

/* ============================
   PENUTUP
============================= */
.penutup {
  max-width: 100%;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem);
  background: linear-gradient(180deg,
    rgba(74, 51, 24, 0.6) 0%,
    rgba(30, 16, 8, 0.85) 100%
  );
}

.penutup__border {
  position: relative;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  background: linear-gradient(160deg,
    rgba(44, 26, 14, 0.85) 0%,
    rgba(20, 10, 2, 0.95) 100%
  );
  box-shadow:
    0 0 0 1px rgba(201, 150, 12, 0.15),
    inset 0 0 40px rgba(20, 10, 2, 0.4),
    0 8px 32px rgba(10, 6, 2, 0.6);
}

.penutup__bismillah {
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  font-family: serif;
  text-shadow: 0 2px 12px rgba(232, 184, 75, 0.4);
}

.penutup__text {
  color: #B8A07A;   /* ← lebih terang agar terbaca di atas gelap */
  font-style: italic;
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.penutup__ttd > p {
  font-style: italic;
  color: #A08860;   /* ← "Hormat kami," sedikit lebih terang */
  margin-bottom: 0.5rem;
}

.penutup__names {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1rem, 4.5vw, 1.6rem);
  color: var(--gold-light);
  margin: 0.5rem 0 0.4rem;
  text-shadow: 0 2px 14px rgba(232, 184, 75, 0.4);
  line-height: 1.3;
}

.penutup__families {
  font-style: italic;
  color: #A08860;
  font-size: 0.9rem;
}
.penutup__bismillah {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-family: serif;
}
.penutup__text {
  color: #c8b48a;
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.penutup__ttd { color: var(--cream); }
.penutup__names {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  color: var(--gold-light);
  margin: 0.5rem 0;
}
.penutup__families { color: var(--gold-pale); font-style: italic; font-size: 0.9rem; }

/* ============================
   FOOTER
============================= */
.footer {
  background: var(--brown-dark);
  color: var(--gold-pale);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(201,150,12,0.2);
}
.footer__sub { color: var(--gold); font-style: italic; margin-top: 0.25rem; }

/* ============================
   BUTTONS
============================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, var(--gold), var(--brown-light));
  color: var(--cream);
  border: none;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(201,150,12,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,150,12,0.45); }
.btn-submit { width: 100%; }

.btn-copy {
  background: transparent;
  border: 1px solid var(--gold-pale);
  color: var(--gold-light);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.btn-copy:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-copy.copied { background: #4caf50; border-color: #4caf50; color: #fff; }

/* ============================
   ANIMATIONS
============================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(201,150,12,0.4); }
  50%       { box-shadow: 0 4px 30px rgba(201,150,12,0.7); }
}

/* ============================
   RESPONSIVE – TABLET & MOBILE
============================= */
@media (max-width: 480px) {
  .countdown { gap: 0.3rem; }
  .countdown__num { padding: 0.4rem 0.5rem; min-width: 54px; }
  .countdown__sep { margin-bottom: 1rem; font-size: 1.3rem; }
  .acara__cards { grid-template-columns: 1fr; }
  .amplop__cards { grid-template-columns: 1fr; }
  .cover__batik-left, .cover__batik-right { width: 50px; }
  .radio-group { flex-direction: column; }
  .radio-label { min-width: unset; }
}

@media (max-width: 360px) {
  .cover__name { font-size: 1.8rem; }
  .countdown__num { font-size: 1.6rem; min-width: 48px; }
}

/* Scrollbar styling */
.ucapan__list::-webkit-scrollbar { width: 4px; }
.ucapan__list::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 2px; }
.ucapan__list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }