/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #d8b36a;
  --gold-soft: #f3e3b2;
  --gold-glow: rgba(255,220,150,0.35);
  --dark: #1a1410;
  --dark-soft: #251d17;
  --text: #f5efe4;
  --muted: #c9b89d;

  --card1: rgba(255,240,210,0.18);    
  --card-border1: rgba(255,235,200,0.25);
  --radius: 16px;
}

/* =========================
   BODY & BACKGROUND
========================= */
body {
  font-family: "Cormorant Garamond", serif;
  background-color: #1a1410;
  /*background-image: url('<?= $config['background']; ?>');*/
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: 100vw 100vh;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 5, 0.60);
  pointer-events: none;
  z-index: -1;
}

/* =========================
   GOLD PARTICLES
========================= */
.sparkles {
  position: absolute; inset:0;
  background-image:
      radial-gradient(circle, rgba(255,235,175,0.06) 0 3px, transparent 3px),
      radial-gradient(circle, rgba(255,255,255,0.03) 0 2px, transparent 2px);
  filter: blur(6px);
  opacity: 0.6;
  z-index: 1;
}

/* =========================
   MUSIC ICON
========================= */
.music-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 50;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  cursor: pointer;
  font-size: 20px;
}

/* =========================
   HERO SECTION — FIX 100VH
========================= */
.hero {
  min-height: 100vh;        /* tetap memenuhi layar HP */
  height: auto;             /* tidak memaksa tinggi di PC */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 40px 20px;
  overflow: hidden;
}

.hero-inner {
  z-index: 3;
  max-width: 780px;
  max-height: 90vh;
  overflow: hidden;                /* mencegah dorong hero */
}

.couple-photo {
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 30px rgba(255,200,120,0.25),
    0 12px 40px rgba(0,0,0,0.45);
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0% {transform: translateY(-14px)}
  50% {transform: translateY(4px)}
  100% {transform: translateY(-14px)}
}

.names {
  font-size: 52px;
  color: var(--gold-soft);
  letter-spacing: 1px;
  margin-top: 20px;
  text-shadow: 0 0 18px rgba(255,200,150,0.2);
}

.desc {
  max-width: 700px; margin: 12px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}



/* =========================
   BUTTON
========================= */
.btn {
  margin-top: 24px;
  padding: 12px 28px;
  background: linear-gradient(180deg, #f5d89a, #c9a35d);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  color: #4a371c;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255,220,150,0.25);
  transition: 0.25s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,220,150,0.35);
}

/* =========================
   CONTAINER & CARD
========================= */
.container {
  max-width: 1000px;
  margin: 40px auto;      /* FIX — tidak dorong hero */
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.card {
  margin-bottom: 22px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card1);
  border: 1px solid var(--card-border1);
  box-shadow:
    0 0 18px rgba(255,220,150,0.12),
    0 10px 28px rgba(0,0,0,0.45);
}

.card h2 {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,200,150,0.2);
}

/* =========================
   TIMER
========================= */
#timer {
  color: var(--gold-soft);
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
}

/* =========================
   GRID DETAILS
========================= */
.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.grid > div {
  flex: 1;
  min-width: 220px;
  padding: 10px;
  border-left: 3px solid rgba(255,220,150,0.2);
}

.couple.card h2 {
  text-align: center;   /* Tengah-kan tulisan "Pengantin & Orang Tua" */
}

.couple-grid {
  display: flex;
  justify-content: center;   /* Tengah-kan grid secara keseluruhan */
  gap: 60px;                 /* Jarak antar pengantin */
  flex-wrap: wrap;           /* Wrap ke bawah di layar kecil */
  margin-top: 20px;
}

.couple-grid .person {
  display: flex;
  flex-direction: column;
  align-items: center;       /* Tengah-kan isi person */
  text-align: center;        /* Teks rata tengah */
  max-width: 220px;          /* Lebar maksimal tiap person */
}

.couple-grid .person-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid rgba(255,235,200,0.3);
  object-fit: cover;
  margin-bottom: 12px;
}

.couple-grid h3 {
  font-size: 22px;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

.couple-grid .parents {
  font-size: 16px;
  color: var(--muted);
}

/* RESPONSIVE — HP: stacked vertical & rata tengah */
@media(max-width: 768px){
  .couple-grid {
    flex-direction: column;
    gap: 30px;
    align-items: center;  /* Tengah-kan seluruh person di kolom */
    text-align: center;   /* Pastikan teks tetap rata tengah */
  }
}


/* =========================
   GRID PHOTOS
========================= */
.grid-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s;
  border: 2px solid rgba(255,235,200,0.1);
}

.grid-photos img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255,220,150,0.2);
}

/* =========================
   MAP
========================= */
.map-wrap iframe {
  width: 100%;
  height: 320px;
  border-radius: 12px;
}

/* =========================
   RSVP
========================= */
.rsvp input,
.rsvp select,
.rsvp textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;

  background: rgba(255,235,200,0.06);
  border: 1px solid rgba(255,235,200,0.15);
  color: var(--text);

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: #fff;
  
  font-size: 16px;
  outline: none;
  appearance: none;
}

select option {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
}

.rekening {
  text-align: center;
  padding: 20px;
}

.rekening-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rekening {
  text-align: center;
  padding: 30px 20px;
}

.rekening-content {
  display: flex;
  flex-direction: row;   /* Susun horizontal */
  align-items: center;   /* Rata tengah vertikal */
  justify-content: center;  /* Tengah-kan secara horizontal */
  gap: 20px;
  margin-top: 12px;
}

.rekening-content .atm-icon {
  width: 80px;
  height: 80px;
}

.rekening-content #noRek {
  font-size: 22px;
  color: var(--gold-soft);
  font-weight: 700;
}

.btn-salin {
  padding: 10px 18px;
  background: linear-gradient(180deg, #f5d89a, #c9a35d);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  color: #4a371c;
  transition: 0.25s;
}

.btn-salin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,220,150,0.3);
}

/* RESPONSIVE — HP: tetap vertikal */
@media(max-width: 768px){
  .rekening-content {
    flex-direction: column;
    gap: 12px;
  }
}



/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 15px;
}

/* =========================
   FADE-IN & HIDDEN FIX
========================= */
.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all .7s ease;
}

#content.hidden {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.container:not(.hidden) {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* =========================
   SLIDESHOW
========================= */
.slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  margin: 0 auto;
}

.slideshow img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  object-position: center center;
}

.slideshow img.active {
  opacity: 1;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  padding: 8px 14px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 20;
}

.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }

.slide-btn:hover {
  background: rgba(0,0,0,0.55);
}

.bg-cover {
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* =========================
   DOA – SUPER RAPAT
========================= */
section.doa {
    text-align: center;
    padding: 18px 16px;
}

/* Judul tetap normal */
section.doa h2 {
    margin-bottom: 6px;
}

/* HANYA teks doa */
section.doa .doa-text {
    max-width: 560px;   /* LEBIH SEMPIT */
    margin: 0 auto;

    font-style: italic;
    font-size: 14.5px;
    line-height: 1.35;  /* SANGAT RAPAT */

    color: #fff;
    opacity: 0.95;

    text-align: center;
    white-space: normal; /* JANGAN pre-line */
}

/* KUNCI UTAMA: br DIPAKSA RAPAT */
section.doa .doa-text br {
    display: block;
    margin: 0;
    line-height: 0.8;
    content: "";
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width: 768px){
  .slideshow {
    aspect-ratio: 1/1;
    max-width: 100%;
    height: auto;
  }
  .slideshow img {
    object-fit: cover;
  }
}

@media(min-width: 769px){
  .slideshow {
    aspect-ratio: 1 / 1;
    max-width: 500px;
    height: auto;
  }
  .slideshow img {
    object-fit: cover;
  }
}

@media(min-width: 1280px){
  .slideshow {
    max-width: 550px;
    aspect-ratio: 1/1;
  }
}
@media(min-width: 992px){
  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
/* =========================
   FLOATING NAVIGATION
========================= */

.floating-menu {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(0);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px 10px;

    background: rgba(25, 18, 12, 0.82);
    border: 1px solid rgba(255, 220, 150, 0.25);
    border-radius: 50px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        0 0 20px rgba(216,179,106,0.12);

    z-index: 1000;

    opacity: 1;
    pointer-events: auto;

    transition:
        opacity .35s ease,
        transform .35s ease;
}

/* Tombol navigasi */
.floating-menu a {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--gold-soft);
    background: rgba(255,255,255,0.07);

    border: 1px solid rgba(255,220,150,0.18);

    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1;

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

/* Hover */
.floating-menu a:hover {
    transform: translateY(-4px);

    color: #fff;

    background:
        linear-gradient(
            145deg,
            rgba(245,216,154,0.35),
            rgba(201,163,93,0.20)
        );

    box-shadow:
        0 6px 18px rgba(255,220,150,0.20);
}

/* Saat menu aktif */
.floating-menu a.active {
    color: #4a371c;

    background:
        linear-gradient(
            180deg,
            #f5d89a,
            #c9a35d
        );

    box-shadow:
        0 5px 16px rgba(255,220,150,0.28);
}


/* =========================
   MUSIC BUTTON
========================= */

.music-toggle {
    position: fixed;

    top: 20px;
    right: 20px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid rgba(255,220,150,0.25);

    background: rgba(25,18,12,0.78);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: var(--gold-soft);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(0,0,0,0.45),
        0 0 15px rgba(216,179,106,0.12);

    z-index: 1100;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.music-toggle:hover {
    transform: scale(1.08);

    background: rgba(216,179,106,0.18);

    box-shadow:
        0 10px 28px rgba(0,0,0,0.50),
        0 0 20px rgba(255,220,150,0.22);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .floating-menu {
        bottom: 14px;

        width: auto;
        max-width: calc(100vw - 24px);

        padding: 7px 8px;

        gap: 5px;
    }

    .floating-menu a {
        width: 42px;
        height: 42px;

        font-size: 19px;
    }

    .music-toggle {
        top: 14px;
        right: 14px;

        width: 42px;
        height: 42px;

        font-size: 20px;
    }
}


/* HP sangat kecil */
@media (max-width: 380px) {

    .floating-menu {
        gap: 3px;
        padding: 6px;
    }

    .floating-menu a {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .music-toggle {
        width: 40px;
        height: 40px;
    }
}

.hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


.content-bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;          /* di belakang konten, di depan body::before jika perlu, atur z-index body::before jadi -2 */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .content-bg-fixed {
    background-attachment: scroll; /* hindari bug iOS/Safari */
  }
}