/* ==================== PALET WARNA (EDIT DI SINI JIKA INGIN UBAH WARNA) ==================== */
:root {
  --cream: #fde5b9; /* Warna krem latar belakang utama */
  --sand: #69051b; /* Warna pasir krem lebih gelap untuk variasi kartu/seksi */
  --ink: #c7c41d; /* Warna teks utama (cokelat tua, lebih lembut dari hitam) */
  --muted: #b15e1b; /* Warna teks sekunder / sub-judul */
  --gold: #948d0a; /* Warna aksen emas untuk garis, border, & ornamen */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  font-family: Alegreya, serif;
}

/* ==================== UTILITY UTAMA ==================== */
.bg-cream {
  background-color: var(--cream);
}
.bg-sand {
  background-color: var(--sand);
}

/* Tipografi & Font */
.script {
  font-family: "Great Vibes", cursive;
}
.serif {
  font-family: "Libre Baskerville", serif;
}

.text-ink {
  color: var(--ink);
  font-size: 16px;
}
.text-muted {
  color: var(--muted);
  font-size: 16px;
}

/* Ukuran Font Judul */
.cover-title {
  font-size: 58px;
  color: var(--ink);
}
.footer-title {
  font-size: 42px;
  color: var(--ink);
}
.couple-name {
  font-size: 36px;
  color: var(--ink);
}
.section-title {
  font-family: "Libre Baskerville", serif;
  text-align: center;
  line-height: 1.35;
  font-size: 24px;
  color: var(--ink);
}
.card-title {
  font-size: 19px;
  color: var(--ink);
}
.eyebrow {
  font-size: 13px;
  color: var(--muted);
}
.music-hint {
  font-size: 14px;
  color: var(--muted);
}

/* ==================== STRUCTURAL LAYOUT ==================== */
.photo-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: calc(100 * min(var(--vh, 1vh), 1vh));
}

.photo-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.photo-cover:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 228, 195, 0.137);
  z-index: -1;
}

/* Bingkai Elegan di Cover */
.fine-frame {
  border: 1px solid rgba(143, 115, 81, 0.322);
  outline: 1px solid rgba(167, 135, 96, 0.103);
  outline-offset: 7px;
}

.ornament {
  color: #fcb14ffb;
  letter-spacing: 0.5em;
}

.section-shell {
  width: 100%;
  padding: 76px 22px;
}

.section-inner {
  width: 100%;
  max-width: 850px;
  margin: auto;
}

.line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #bba78c, transparent);
  max-width: 210px;
  margin: 24px auto;
}

/* ==================== TOMBOL, INPUT, & KARTU ==================== */
.action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--gold);
  letter-spacing: 0.08em;
  transition:
    transform 0.2s,
    background 0.2s;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
}

.action-sand {
  background-color: var(--sand);
}
.action-cream {
  background-color: var(--cream);
}

.action:hover {
  transform: translateY(-2px);
  background: #e8dccc;
}

.action:disabled {
  opacity: 0.55;
  cursor: wait;
}

:focus-visible {
  outline: 3px solid #90704c;
  outline-offset: 3px;
}

.field {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #cdbda9;
  border-radius: 2px;
  background: #fffdfa;
  color: var(--ink);
  font-size: 16px;
}

.field:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.card {
  border: 1px solid #d9c9b5;
  box-shadow: 0 12px 35px rgba(81, 63, 43, 0.06);
}

.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 6px 13px;
  color: var(--ink);
  font-size: 16px;
}

.nav-link:hover {
  text-decoration: underline;
}


/* ==================== STYLE DASHBOARD KLIEN ==================== */
#admin-dashboard {
  font-family: 'Montserrat', sans-serif;
  background-color: #6b4008;
  color: #333;
  min-height: 100vh;
  padding: 20px;
  display: none;
  justify-content: center;
  align-items: flex-start;
}

#admin-dashboard.active {
  display: flex;
}

.dash-container {
  background: #fff;
  max-width: 600px;
  width: 100%;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.dash-container h2 {
  text-align: center;
  color: #0A192F;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.dash-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.dash-group {
  margin-bottom: 20px;
}

.dash-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.dash-group input[type="text"],
.dash-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.dash-group input:focus,
.dash-group textarea:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

.dash-readonly {
  background-color: #eaeaea;
  color: #666;
}

.dash-hint {
  color: #888;
  font-size: 0.8rem;
}

.dash-btn {
  width: 100%;
  background: #0A192F;
  color: #D4AF37;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 10px;
}

.dash-btn:hover {
  background: #112240;
}

.dash-btn-copy {
  background: #D4AF37;
  color: #fff;
}

.dash-btn-copy:hover {
  background: #b5952f;
}

.dash-result {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed #ccc;
  margin-top: 20px;
  display: none;
}

.dash-result.active {
  display: block;
}

.dash-preview-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #0A192F;
  text-decoration: underline;
}

/* Animasi Kemunculan */
.reveal {
  animation: rise 0.8s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    animation: none;
  }
  .action {
    transition: none;
  }
}
/* ==================== RESPONSIVE HP (MOBILE) ==================== */
@media (max-width: 640px) {
  /* Perkecil judul agar tidak kepotong/turun baris berantakan */
  .cover-title {
    font-size: 38px;
    line-height: 1.2;
  }
  .footer-title {
    font-size: 30px;
  }
  .couple-name {
    font-size: 28px;
  }
  .section-title {
    font-size: 20px;
  }

  /* Kurangi padding section agar layar HP lebih lega */
  .section-shell {
    padding: 48px 16px;
  }

  /* Perkecil jarak spasi huruf ornamen agar tidak melebar keluar layar */
  .ornament {
    letter-spacing: 0.25em;
  }

  /* Rapikan navigasi jika menu banyak */
  .nav-link {
    padding: 6px 8px;
    font-size: 14px;
  }

  /* Dashboard klien agar tidak terlalu sempit di HP */
  #admin-dashboard {
    padding: 12px;
  }
  .dash-container {
    padding: 20px 16px;
    margin-top: 10px;
  }
}
