@import url("https://fonts.googleapis.com/css2?family=Lobster+Two:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Prata&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

:root {
  --accent: #ffffff;
  --accent-rgb: 255, 255, 255;
  --secondary: #5b442c;
  --primary: #7e4c24;
  --neutral: #1a120b;
  --cover-dekor-top-h: 142px;
  --cover-dekor-bottom-h: 148px;
  --desktop-canvas-width: 390px;
}

@font-face {
  font-family: "Creattion";
  src: url("./Creattion Demo.otf") format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #120f0f;
  color: var(--neutral);
  font-family: Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  --demo-bar-height: 0px;
  padding-top: var(--demo-bar-height);
}

section h1,
section h2,
section h3,
section h4,
section h5,
section h6 {
  font-family: "prata", sans-serif;
  line-height: 1.05;
  margin: 0;
}

.vintage-section {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

/* ===== DEMO MODE WIDGET ===== */
.widget.fixed-top[data-feature="demo_mode"] {
  z-index: 1001;
  pointer-events: none;
  padding: 0.5rem 0.65rem 0;
  width: min(100%, var(--desktop-canvas-width));
  margin-inline: auto;
}

.widget.fixed-top[data-feature="demo_mode"] .widget-pesan {
  pointer-events: auto;
  width: min(100%, 760px);
  margin: 0 auto;
  min-height: 52px;
  border-radius: 999px;
  background: var(--secondary);
  padding: 0.45rem 0.55rem;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--accent);
}

.widget.fixed-top[data-feature="demo_mode"] .btn-back {
  display: flex;
  justify-content: center;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-back a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(var(--accent-rgb), 0.14);
}

.widget.fixed-top[data-feature="demo_mode"] .btn-back .bi {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.widget.fixed-top[data-feature="demo_mode"] .katalog h6 {
  margin: 0;
  color: var(--accent);
  font-family: Verdana, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan {
  min-height: 36px;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--accent);
  color: var(--secondary);
  transition: filter 0.2s ease;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan:hover {
  filter: brightness(0.96);
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan .bi {
  font-size: 1rem;
  line-height: 1;
}

.widget.fixed-top[data-feature="demo_mode"] .btn-pesan h6 {
  margin: 0;
  color: inherit;
  font-family: Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
}

/* ===== DECORATIVE FRAMES ===== */

.decor-frame::before,
.dekor-atas-section::before,
.decor-frame::after,
.dekor-bawah-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.decor-frame::before,
.dekor-atas-section::before {
  top: 0;
  height: var(--decor-top-h);
  z-index: var(--decor-z-index);
  background: var(--decor-top-bg);
}

.decor-frame::after,
.dekor-bawah-section::after {
  bottom: 0;
  height: var(--decor-bottom-h);
  z-index: var(--decor-z-index);
  background: var(--decor-bottom-bg);
}

/* ===== COVER ===== */
#cover {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  color: var(--accent);
  background: var(--neutral) var(--bg-hero) center 50% / cover no-repeat;
  align-items: stretch;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background-position: center top;
  background-size: cover;
}

#cover.vintage-section::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0%) 30%,
    rgb(142 2 2 / 0%) 38%,
    rgb(255 255 255 / 84%) 50%,
    rgb(255 255 255) 65%,
    #fff 80%
  );
}

#cover .dekor-layer {
  position: absolute;
  inset: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

#cover .dekor {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

#cover .dekor-layer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(92px, 14vw, 140px);
  background: url("./assets/dekor-bawah-1.webp") left bottom / 100% auto
    no-repeat;
  z-index: 1;
  pointer-events: none;
}

#cover .dekor-arjuno {
  left: 0px;
  bottom: clamp(10px, 4vw, 83px);
  width: clamp(90px, 18vw, 140px);
  height: clamp(170px, 30vw, 179px);
  background-image: url("./assets/arjuno.webp");
  background-position: left bottom;
  background-size: contain;
  z-index: 1;
  opacity: 0.95;
}

#cover .dekor-arjuno {
  left: 0px;
  bottom: clamp(10px, 4vw, 83px);
  width: clamp(90px, 18vw, 140px);
  height: clamp(170px, 30vw, 179px);
  background-image: url("./assets/arjuno.webp");
  background-position: left bottom;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.95;
  transform-origin: bottom center;
  animation: jatuhKananKiri 4s ease-in-out infinite;
}

@keyframes jatuhKananKiri {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(3deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-2deg);
  }
}

#cover .dekor-tengah {
  position: relative;
  width: clamp(118px, 24vw, 190px);
  height: clamp(73px, 24vw, 77px);
  margin: 0 auto 0rem;
  background-image: url("./assets/dekor-tengah.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 2;
  opacity: 0.8;
}

#cover .cover-content {
  position: relative;
  z-index: 3;
}

.cover-desc {
  display: block !important;
  margin: 0;
  max-width: 21em;
  color: var(--primary);
  font-family: "inter", sans-serif;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
  line-height: 1.2;
}

.cover-content {
  position: relative;
  z-index: 3;
  width: min(100%, 390px);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  gap: 0.62rem;
  padding: clamp(3rem, 5vh, 6.1rem) 1.2rem
    max(clamp(2.4rem, 6vh, 4rem), calc(env(safe-area-inset-bottom) + 1.25rem));
}

.cover-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.cover-to {
  margin: 0;
  font-family: "inter", serif;
  color: var(--primary);
  font-size: clamp(0.66rem, 1.9vw, 0.8rem);
  line-height: 1.45;
  white-space: nowrap;
}

.cover-title {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-family: "prata";
  font-size: clamp(2.7rem, 7.8vw, 3.4rem) !important;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: none;
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
  white-space: normal;
  overflow-wrap: break-word;
}

.btn-open {
  border: 0;
  border-radius: 10px;
  padding: 1.65rem -0.6rem;
  background: var(--primary);
  color: var(--accent);
  font-family: Verdana, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
  font-size: clamp(0.82rem, 3vw, 0.9rem);
  margin-bottom: max(82px, env(safe-area-inset-bottom));
  align-self: center;
  /* ← ubah dari flex-start ke center */
}

.btn-open:hover,
.btn-open:focus,
.btn-open:active,
.btn-open:focus-visible {
  background: var(--primary);
  color: var(--accent) !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.22) !important;
}

.btn-send {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 400;
  font-size: 0.9rem;
}

.btn.active,
.btn:active {
  background: var(--primary) !important;
}

/* ===== COUNTDOWN ===== */
#countdown {
  position: relative;
  background: var(--secondary);
  display: flex;
  color: var(--accent);
  align-items: center;
  justify-content: center;
  min-height: 34svh !important;
  padding: 0.7rem 0.7rem;
}

#countdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.countdown-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
  margin-top: 0.2rem;
}

#countdown .countdown-title {
  font-size: clamp(2.8rem, 8vw, 1.75rem);
  color: var(--accent);
  margin-top: -0.3rem;
  font-family: "Courier New";
  margin-bottom: -0.15rem;
  text-shadow: none;
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
  font-family: Creattion;
}

#countdown .countdown-subtitle {
  margin: 0 auto 0.35rem;
  color: rgba(var(--accent-rgb), 0.97);
  font-family: "inter", sans-serif;
  font-size: clamp(0.8rem, 3vw, 0rem);
  line-height: 1.35;
}

#countdown .simply-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  width: min(100%, 260px);
  margin: 4px auto;
}

#countdown .simply-countdown > .simply-section {
  margin: 0 !important;
  text-align: center;
  background-color: var(--accent);
  border-radius: 8px;
  height: 35px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "inter", sans-serif;
}

#countdown .simply-countdown > .simply-section > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem;
}

#countdown .simply-countdown > .simply-section .simply-amount {
  color: var(--secondary);
  font-family: Verdana, sans-serif;
  font-size: clamp(0.8rem, 6vw, 1rem);
  line-height: 1;
  font-weight: normal;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  display: inline-block;
  text-align: center;
  font-family: "inter", sans-serif;
}

#countdown .simply-countdown > .simply-section .simply-word {
  color: var(--secondary);
  font-family: Verdana, sans-serif;
  font-size: clamp(0.6rem, 3vw, 0.8rem);
  line-height: 1;
  font-family: "inter", sans-serif;
  text-transform: capitalize;
}

/* ===== SECTION HEADINGS ===== */
#rundown h2,
#footer h3 {
  font-size: clamp(2.5rem, 14vw, 1.55rem);
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  text-shadow: none;
}

#rundown h2 {
  color: var(--secondary);
}

#footer h3 {
  color: var(--accent);
}

#gallery h2 {
  font-size: clamp(2.5rem, 14vw, 1.55rem);
  color: var(--accent);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  /* ubah dari -3rem ke 1rem */
  text-shadow: none;
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
}

#informasi-acara h2 {
  font-size: clamp(2.5rem, 14vw, 1.55rem);
  color: var(--secondary);
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  text-shadow: none;
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
  font-family: "prata", sans-serif;
}

#amplop-digital h2 {
  font-size: clamp(1.5rem, 14vw, 1.55rem);
  color: var(--accent);
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  text-shadow: none;
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
}

/* ===== COUPLE ===== */
.couple-block {
  min-height: 100vh;
  padding: 6.5rem 0rem;
  background: var(--accent) url("./assets/bg-adat.webp") center / cover
    no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#couple-bride {
  background: url("./assets/bg-adat1.webp") center / cover no-repeat;
}

#couple-bride .dekor-arjuno {
  position: absolute;
  left: -5px;
  bottom: 0;
  width: 120px;
  height: 180px;
  background: url("./assets/arjuno.webp") center/contain no-repeat;
  z-index: 1;
  opacity: 0.95;
  animation: brideDekorKiri 4s ease-in-out infinite;
}

#couple-bride .dekor-arjuno2 {
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 120px;
  height: 180px;
  background: url("./assets/arjuno2.webp") center/contain no-repeat;
  z-index: 1;
  opacity: 0.95;
  animation: brideDekorKanan 4s ease-in-out infinite;
}

@keyframes brideDekorKiri {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

@keyframes brideDekorKanan {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-2deg);
  }
}

#couple-groom::before,
#couple-bride::before {
  top: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* background-image: url('./assets/dekor-atas-section.webp'); */
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

.couple-photo {
  position: relative;
  width: 192px;
  height: 289px;
  object-fit: cover;
  object-position: center top;
  overflow: hidden;
  z-index: 2;
  background: var(--accent);
  border: 6.205px solid var(--primary);
  top: 10px;
}

.couple-content {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  text-align: center;
  padding: 0 1.25rem;
  margin-top: 1.4rem;
  margin-bottom: 0;
}

.couple-content h2 {
  margin-top: 0.9rem;
  color: var(--secondary);
  font-size: clamp(2.5rem, 17.2vw, 2.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.couple-desc {
  margin: 1rem auto 1.15rem !important;
  max-width: 18em;
  color: var(--secondary);
  font-family: "inter", sans-serif;
  font-size: clamp(1rem, 3.5vw, 0.1rem);
  line-height: 1.35;
  font-weight: 400;
}

.couple-parent {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 0.95rem;
  border-radius: 30px;
  background: var(--secondary);
  color: var(--accent);
  font-family: Verdana, sans-serif;
  font-size: clamp(0.92rem, 3vw, 1rem);
  line-height: 1.2;
  font-weight: 700;
}

.couple-block p {
  margin: 0;
}

.couple-block .panel,
.couple-block .role {
  display: none;
}

/* ===== .rundwon card ===== */
#rundown {
  background: var(--accent);
}

.rundown-card::before,
.rundown-card::after {
  transform-origin: bottom center;
  will-change: transform;
  backface-visibility: hidden;
}

#rundown .rundown-card > * {
  position: relative;
  z-index: 1;
}

.rundown-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(242px, 1fr));
  /* ← sesuaikan */
  gap: 0.95rem;
  margin: 0 3rem;
}

.rundown-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

.rundown-title {
  color: var(--accent);
  font-size: clamp(4rem, 14vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
}

.rundown-subtitle {
  margin: 0 auto 1.45rem;
  color: var(--secondary);
  font-family: "inter", serif;
  font-size: clamp(1rem, 3vw, 1rem);
  line-height: 1.35;
  max-width: 21em;
}

#rundown .rundown-card {
  border-radius: 5px;
  border: 5px solid var(--secondary);
  background: var(--accent);
  padding: 2rem 1rem;
  text-align: center;
}

#rundown .rundown-icon {
  margin-bottom: 1rem;
  color: var(--primary);
}

#rundown .rundown-icon svg {
  width: 32px;
  height: 32px;
}

#rundown .rundown-list h3 {
  color: var(--secondary);
  font-size: clamp(1rem, 8vw, 2.55rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
}

#rundown .rundown-list p {
  margin: 0.18rem 0;
  color: var(--secondary);
  font-family: "inter", serif;
  font-size: clamp(1rem, 3.05vw, 1rem);
  line-height: 1.35;
}

/* Garis pemisah antar event */
.rundown-event + .rundown-event {
  border-top: 1px solid #e5ddd8;
}

.rundown-event-icon {
  display: none;
}

.rundown-event-icon svg {
  display: block;
}

/* ===== INFORMASI ACARA ===== */

#informasi-acara {
  background: var(--accent);
  color: var(--accent);
  align-items: center;
  justify-content: center;
}

#informasi-acara::after {
  content: "";
  background: url("./assets/Dekor-bawah-coklat-1.webp");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: 1;
}

.info-location-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

.info-location-title {
  color: var(--accent);
  font-size: clamp(4rem, 14vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
  margin-bottom: 0.75rem;
}

.info-location-address {
  margin: 0 auto 1.45rem;
  color: var(--secondary);
  font-family: "inter", sans-serif;
  font-size: clamp(1rem, 3vw, 1rem);
  line-height: 1.35;
  max-width: 21em;
  text-transform: capitalize;
  font-weight: 400;
}

.info-map-frame {
  background: var(--accent);
  border: 5px solid var(--secondary);
  border-radius: 5px;
  overflow: hidden;
  padding: 0;
  margin: 0 auto 1.25rem;
  max-width: 700px;
}

.info-map-frame iframe {
  display: block;
  width: 100%;
}

.info-map-btn {
  border: 0;
  padding: 0.6rem 1.65rem;
  border-radius: 40px;
  background: var(--secondary);
  color: var(--accent);
  font-family: Verdana, sans-serif;
  font-size: clamp(1rem, 3.3vw, 1rem);
  font-weight: 400;
}

.info-map-btn:hover,
.info-map-btn:focus,
.info-map-btn:active,
.info-map-btn:focus-visible {
  background: var(--primary);

  color: var(--accent) !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2) !important;
}

/* ===== STORY ===== */
#story {
  background: var(--accent);
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding-top: 4rem;
  padding-bottom: 5.4rem;
}

#story::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 140px;
  background: url("./assets/dekor-story.webp") center bottom / 100% auto
    no-repeat;
  z-index: 1;
  pointer-events: none;
}

#story h2 {
  font-size: clamp(2.5rem, 14vw, 1.55rem);
  color: var(--secondary);
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  text-shadow: none;
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
}

.story-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

.story-title {
  color: var(--accent);
  font-size: clamp(4rem, 14vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.story-subtitle {
  margin: 0 auto 1.9rem;
  color: var(--secondary);
  font-family: "inter", sans-serif;
  font-size: clamp(1rem, 3.1vw, 1rem);
  line-height: 1.35;
  max-width: 17em;
  font-weight: normal;
}

.story-list {
  display: grid;
  gap: 3rem;
  padding: 0 0.2rem;
}

.story-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  gap: 1.5rem;
  padding: 0 0.5rem;
}

.story-item:nth-child(even) {
  grid-template-columns: 146px minmax(0, 1fr);
}

.story-item:nth-child(even) .story-polaroid {
  order: 1;
  transform: rotate(-9deg);
}

.story-item:nth-child(even) .story-text {
  order: 2;
  text-align: start;
}

.story-item:nth-child(odd) .story-polaroid {
  transform: rotate(9deg);
}

.story-item:nth-child(odd) .story-text {
  text-align: end;
}

.story-text {
  padding: 0 0.2rem;
}

.story-text h3 {
  font-size: clamp(1.55rem, 14vw, 1.55rem);
  color: var(--secondary);
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  text-shadow: none;
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
}

.story-date {
  margin: 0;
  color: var(--secondary);
  font-family: "inter", sans-serif;
  font-size: clamp(1rem, 3.05vw, 1rem);
  line-height: 1.35;
  font-weight: 400;
}

.story-desc {
  margin: 0.35rem 0 0;
  color: var(--secondary);
  font-family: "inter", sans-serif;
  font-size: clamp(1rem, 3.1vw, 1rem);
  line-height: 1.35;
  font-weight: normal;
}

.story-polaroid {
  width: 140px;
  aspect-ratio: 164 / 196;
  justify-self: center;
  position: relative;
  background: url("./assets/bingkai.webp") center / contain no-repeat;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.2));
}

.story-polaroid img {
  position: absolute;
  top: 19px;
  left: 7px;
  width: 126px;
  height: 129px;
  object-fit: cover;
  border-radius: 3px;
}

/* ===== AMPLOP DIGITAL ===== */

#amplop-digital {
  background: var(--accent);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

#amplop-digital::before {
  content: "";
  background: url("./assets/Dekor-bawah-coklat-2.webp");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top;
  z-index: 1;
}

.amplop-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

.amplop-title {
  color: var(--accent);
  font-size: clamp(4rem, 14vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-top: 0.3rem;
  margin-bottom: 0.75rem;
}

.amplop-subtitle {
  margin: 0 auto 1.4rem;
  color: var(--accent);
  font-family: "inter", sans-serif;
  font-size: clamp(1rem, 3vw, 1rem);
  line-height: 1.35;
  max-width: 21em;
  text-transform: capitalize;
  font-weight: 400;
}

.gift-box {
  width: min(420px, 92%);
  margin: auto;
  margin-top: 2rem;
  border-radius: 5px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transition: 0.4s ease;
}

.gift-preview {
  position: relative;
  padding: 2.3rem 2rem;
  text-align: center;
  overflow: hidden;
  background: var(--secondary);
}

.gift-preview .gift-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.gift-preview .gift-icon-alt {
  font-size: 1rem;
  color: var(--secondary);
}

.gift-preview h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.gift-preview p {
  color: var(--accent);
  margin: 0;
}

/* ===== GIFT CONTENT ===== */

.gift-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transition:
    grid-template-rows 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}

.gift-content > * {
  min-height: 0;
}

.gift-box.open .gift-content {
  grid-template-rows: 1fr;
  opacity: 1;
  background: var(--secondary);
  padding: 6px 1.3rem 1.3rem;
}

.gift-open-btn {
  min-width: 180px;
  display: inline-flex;
  margin-top: 1.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  background: var(--accent);
  color: var(--secondary);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.gift-open-btn i {
  font-size: 0.85rem;
  font-style: normal;
}

.gift-open-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* ===== AMPLOP LIST ===== */

.amplop-list {
  display: grid;
  gap: 1.1rem;
}

/* ===== AMPLOP CARD ===== */

.amplop-card {
  border: 0 !important;
  border-radius: 5px !important;
  background-color: transparent !important;
  background-image: url("./assets/atm-card.webp") !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  width: min(100%, 300px);
  aspect-ratio: 959 / 559;
  height: auto;
  margin-inline: auto;
  padding: clamp(1.15rem, 4.2vw, 0.75rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  row-gap: 0.2rem;
  column-gap: 0.75rem;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.amplop-logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  width: clamp(72px, 18vw, 112px);
  max-height: 34px;
  object-fit: contain;
  object-position: right center;
  position: absolute;
  top: 0px;
  right: 20px;
  width: 90px;
}

.amplop-name {
  position: absolute;
  bottom: 13px;
  left: 20px;
  margin: 0 !important;
  font-size: clamp(1rem, 3.2vw, 1rem);
  line-height: 1.2;
  color: var(--neutral);
  text-transform: uppercase;
  font-family: "inter", sans-serif;
  text-align: left;
  max-width: 109px;
  word-break: break-word;
}

.amplop-number {
  position: absolute;
  bottom: 16px;
  right: 20px;
  margin: 0 !important;
  font-family: "inter", sans-serif;
  font-size: clamp(0.82rem, 2.6vw, 0.92rem);
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--neutral);
}

.amplop-copy-btn {
  position: absolute;
  justify-self: end;
  align-self: center;
  border: 0;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  min-height: 28px;
  flex-shrink: 0;
  background: var(--secondary);
  color: var(--accent);
  position: relative;
  z-index: 2;
  cursor: pointer;
  outline: none;
  top: 50px;
  user-select: none;
  touch-action: manipulation;
}

.amplop-copy-btn:hover,
.amplop-copy-btn:focus {
  background: var(--secondary);
  color: var(--accent);
  outline: none;
}

.amplop-copy-btn.is-copied {
  background: var(--secondary) !important;
}

.amplop-copy-btn:active {
  background: var(--secondary) !important;
  color: var(--accent) !important;
  opacity: 1 !important;
}

/* ===== GALLERY ===== */
.gallery-grid {
  columns: 2;
  column-gap: 0.6rem;
  width: 100%;
  max-width: 100%;
}

.gallery-grid a {
  display: block;
  width: 100%;
  max-width: 100%;
  break-inside: avoid;
  margin: 0 0 0.6rem;
  border-radius: 5px;
  overflow: hidden;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 5px;
}

.gallery-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

#gallery {
  background: var(--secondary);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ===== RSVP ===== */
#rsvp {
  background: var(--secondary);
  color: var(--neutral);
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding-top: 4.2rem;
  padding-bottom: 7.4rem;
}

#rsvp .rsvp-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  text-align: center;
}

#rsvp .rsvp-title {
  font-size: clamp(2.5rem, 14vw, 2rem);
  color: var(--accent);
  margin-top: 0.7rem;
  margin-bottom: 0.5rem;
  text-shadow: none;
  -webkit-text-stroke-width: 0;
  -webkit-text-stroke-color: transparent;
}

#rsvp .rsvp-subtitle {
  margin: 0 auto 1.45rem;
  max-width: 21em;
  color: var(--accent);
  font-size: clamp(0.82rem, 3vw, 0.7rem);
  line-height: 1.5;
  font-weight: 400;
  font-family: "inter", sans-serif;
}

#rsvp .rsvp-shell {
  width: 100%;
  border-radius: 10px;
  background: var(--accent);
  padding: 1.25rem 1rem 1.05rem;
  border: none;
}

#rsvp .rsvp-form {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

#rsvp .rsvp-form label {
  color: var(--neutral);
  font-size: clamp(0.85rem, 3vw, 0.92rem);
  font-weight: 400;
  margin-top: 0.3rem;
}

#rsvp .rsvp-form input,
#rsvp .rsvp-form select,
#rsvp .rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  background: var(--accent);
  color: var(--neutral);
  font-size: clamp(0.85rem, 3vw, 0.92rem);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  height: 46px;
  line-height: 1.2;
}

#rsvp .rsvp-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

#rsvp .rsvp-form textarea {
  resize: none;
  border-radius: 999px;
  height: 46px;
  overflow: hidden;
}

#rsvp .rsvp-form input::placeholder,
#rsvp .rsvp-form textarea::placeholder {
  color: var(--neutral);
}

#rsvp .btn-simpan {
  margin-top: 0.75rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.65rem;
  background: var(--secondary);
  color: var(--accent);
  font-family: Verdana, sans-serif;
  font-size: clamp(0.88rem, 3.3vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

#rsvp .btn-simpan:hover,
#rsvp .btn-simpan:focus {
  color: var(--accent);
  background: var(--primary) !important;
}

#rsvp .respon-ucapan {
  margin-top: 1.1rem;
  max-height: 22.5rem;
  overflow: auto;
  border: 1px solid var(--neutral);
  border-radius: 5px;
  background: var(--accent);
  padding: 0.55rem;
  text-align: left;
}

#rsvp .wish-card {
  border-radius: 5px;
  border: 1px solid var(--neutral);
  background: var(--accent);
  text-align: left;
  padding: 0.78rem 0.8rem;
  margin-bottom: 0.5rem;
}

#rsvp .wish-card h5 {
  margin: 0 0 0.2rem;
  color: var(--neutral);
  font-family: Verdana, sans-serif;
  font-size: clamp(0.85rem, 3vw, 0.92rem);
  font-weight: 700;
  line-height: 1.2;
}

#rsvp .wish-card p {
  margin: 0;
  color: var(--neutral);
  font-size: clamp(0.82rem, 2.9vw, 0.88rem);
  line-height: 1.4;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--accent);
  color: var(--accent);
  min-height: auto;
  align-items: center;
  justify-content: center;
  padding-top: 2.6rem;
  padding-bottom: 6.9rem;
}

#footer .footer-content {
  width: min(100%, 760px);
  position: relative;
  z-index: 2;
  text-align: center;
}

#footer .copyright h6 {
  margin: 0;
  color: var(--secondary);
  font-family: "prata", Verdana, sans-serif;
  font-size: clamp(1.5rem, 3.45vw, 1.35rem);
  font-weight: 400;
}

#footer .sosmed {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

#footer .sosmed a {
  color: var(--secondary);
  font-size: 1.45rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

#footer .sosmed a:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

/* ===== WIDGET BOTTOM ===== */
#widget.widget {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  pointer-events: none;
  text-align: center;
  padding: 0 0.85rem calc(14px + env(safe-area-inset-bottom));
}

#widget .widget-sosmed,
#widget .qrcode-btn button,
#widget .music-toggler button {
  pointer-events: auto;
}

#widget .widget-sosmed {
  width: calc(100% - 65px);
  max-width: 680px;
  margin: 0 auto 0 0;
  border-radius: 999px;
  background: var(--secondary);
  padding: 0.5rem 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--accent);
}

#widget .widget-sosmed a {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.16);
}

#widget .widget-sosmed svg {
  width: 22px;
  height: 22px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#widget .qrcode-btn,
#widget .music-toggler {
  position: absolute;
  right: 0.85rem;
}

#widget .qrcode-btn {
  bottom: calc(14px + env(safe-area-inset-bottom));
}

#widget .music-toggler {
  bottom: calc(75px + env(safe-area-inset-bottom));
}

#widget .qrcode-btn button,
#widget .music-toggler button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--neutral);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--accent);
}

#widget .qrcode-btn button::before,
#widget .music-toggler button::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
}

#widget .qrcode-btn i,
#widget .music-toggler i {
  position: relative;
  z-index: 1;
  line-height: 0;
  color: var(--secondary);
}

#widget .qrcode-btn i,
#widget .icon-music {
  font-size: 1.1rem;
}

#widget .widget-sosmed a:hover,
#widget .qrcode-btn button:hover,
#widget .music-toggler button:hover {
  filter: brightness(0.97);
}

/* ===== MODAL ===== */
.modal-content {
  border-radius: 16px;
}

.modal-content img {
  width: 170px;
}

.qrcode-close-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
}

/* ===== MEDIA QUERY MOBILE (max 576px) ===== */
@media (max-width: 576px) {
  @import url("https://fonts.googleapis.com/css2?family=Lobster+Two:wght@400;700&display=swap");

  :root {
    --cover-dekor-top-h: 108px;
    --cover-dekor-bottom-h: 114px;
  }

  .cover-content {
    align-items: center;
    text-align: center;
    gap: 0.9rem;
  }

  .cover-heading {
    width: 100%;
    align-items: center;
    gap: 0.15rem;
  }

  .cover-to {
    margin: 0;
  }

  .cover-title {
    font-size: clamp(2.55rem, 9.2vw, 3.35rem) !important;
    color: var(--primary);
    margin-bottom: 0.1rem;
  }

  .cover-desc {
    color: var(--primary);
    margin-bottom: 0.05rem;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .btn-open {
    align-self: center;
    padding: 0.72rem 1.3rem;
    min-width: 175px;
    min-height: 42px;
  }

  .spesialday-row {
    gap: 0.1rem;
    margin: 7px;
  }

  .rundown-card::before {
    width: 350px;
    right: -180px;
    /* top: px; */
  }

  .rundown-card::after {
    width: 350px;
    left: -170px;
    top: 95px;
  }

  .cover-heading {
    width: 100%;
  }

  .cover-to {
    font-size: 0.7rem;
  }

  .cover-title {
    font-size: clamp(2.55rem, 9.2vw, 3.35rem) !important;
    margin-bottom: 0.1rem;
  }

  #cover .dekor-layer::after {
    height: 108px;
    background-position: center bottom;
    background-size: 100% 100%;
  }

  #cover .dekor-arjuno {
    left: -1px;
    bottom: 18px;
    width: 110px;
    height: 205px;
  }

  #cover .dekor-tengah {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: clamp(118px, 24vw, 190px);
    height: clamp(73px, 24vw, 77px);
    margin-bottom: 1rem;
    background-image: url("./assets/dekor-tengah.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2;
  }

  .decor-frame,
  .dekor-atas-section,
  .dekor-bawah-section {
    --decor-top-h: 116px;
    --decor-bottom-h: 148px;
    /* --decor-top-bg: url('./assets/dekor-atas-section.webp') center top / 100% auto no-repeat;
        --decor-bottom-bg: url('./assets/dekor-bawah-section.webp') center bottom / 100% auto no-repeat; */
  }

  .vintage-section.dekor-atas-section.dekor-bawah-section {
    padding-top: max(1.75rem, calc(var(--decor-top-h) * 0.6));
    padding-bottom: max(1.2rem, calc(var(--decor-bottom-h) * 0.62));
  }

  #cover.vintage-section::after {
    background-position: center bottom;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  #couple-groom,
  #couple-bride {
    --decor-bottom-h: 178px;
    padding-bottom: max(1.3rem, calc(var(--decor-bottom-h) * 0.82));
  }

  .vintage-section {
    min-height: 100vh;
  }

  #footer.vintage-section {
    min-height: auto;
  }

  #countdown {
    padding: 1.25rem 0.9rem 1rem;
  }

  #story {
    padding-top: 3.5rem;
    padding-bottom: 4.8rem;
  }

  .story-subtitle {
    margin-bottom: 1.55rem;
  }

  .story-list {
    gap: 2.5rem;
  }

  /* Rundown mobile tweak */
  #rundown {
    padding-top: max(4.5rem, calc(116px * 0.6));
    padding-bottom: max(3.5rem, calc(148px * 0.62));
  }

  .rundown-card {
    max-width: 310px;
    align-items: center;
  }

  .rundown-event {
    padding: 2.5rem 1.5rem 2.3rem;
  }
}

/* ===== MEDIA QUERY DESKTOP (min 577px) ===== */
@media (min-width: 577px) {
  html,
  body {
    min-height: 100%;
    background: radial-gradient(
      circle at top,
      #2b2323 0%,
      #140f0f 50%,
      #090707 100%
    );
  }

  body {
    --demo-bar-height: 0px;
  }

  .widget.fixed-top[data-feature="demo_mode"] .widget-pesan {
    width: min(100%, var(--desktop-canvas-width));
  }

  #cover,
  #content {
    width: min(100%, var(--desktop-canvas-width));
    margin-inline: auto;
    overflow: hidden;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
  }

  #widget.widget {
    left: 50%;
    right: auto;
    width: min(100%, var(--desktop-canvas-width));
    transform: translateX(-50%);
  }
}

@media (min-width: 577px) {
  #cover .cover-content {
    width: min(100%, 390px);
    gap: 0.62rem;
  }

  #cover .cover-heading {
    gap: 0.8rem;
  }

  #cover .cover-to {
    font-size: 0.72rem;
  }

  #cover .cover-title {
    margin: 0 0 0.1rem;
    font-family: "Prata", cursive;
    font-size: clamp(2.35rem, 6vw, 2.8rem) !important;
    line-height: 1;
  }

  #cover .cover-desc {
    font-size: 0.72rem;
    margin-bottom: 0.1rem;
  }

  #cover .btn-open {
    padding: 0.78rem 1.35rem;
    min-width: 165px;
    min-height: 42px;
    margin-bottom: max(82px, env(safe-area-inset-bottom));
    background: var(--primary);
  }
}

@media (max-width: 576px) {
  #cover .cover-content {
    width: min(100%, 390px);
    gap: 0.85rem;
  }

  #cover .cover-heading {
    width: 100%;
    gap: 0.8rem;
  }

  #cover .cover-to {
    font-size: 0.92rem;
  }

  #cover .cover-title {
    font-size: clamp(3rem, 7vw, 3.15rem) !important;
    margin-bottom: 0.1rem;
  }

  #cover .cover-desc {
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
  }

  #cover .btn-open {
    min-width: 150px;
    min-height: 40px;
    padding: 0.7rem 1.15rem;
    background: var(--primary);
  }
}
