/* =========================================================================
   OLD MONEY MAROON & IVORY EDITORIAL WEDDING INVITATION
   Responsive untuk HP (<768px) maupun Laptop/Desktop (>=768px)
   Dotus & Ingriet (#DoIngTheKnot) — Semua 16 Foto Unik Terpasang Rapi
   ========================================================================= */

:root {
  --maroon-deep: #24040b;
  --maroon-primary: #420915;
  --maroon-velvet: #3b0813;
  --maroon-satin: #5c1021;
  --maroon-wine: #72192d;

  --ivory-paper: #faf7f2;
  --ivory-cream: #f3ece2;
  --ivory-pure: #ffffff;

  --gold-champagne: #e6c88a;
  --gold-antique: #c59b43;

  --ink-dark: #231a1b;
  --ink-muted: #665658;
  --ink-ivory: #f7f1e8;
  --ink-blush: #dfc9c6;

  --border-ivory: #cfc1b2;

  --font-script: "Alex Brush", "Great Vibes", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--maroon-deep);
  color: var(--ink-ivory);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
}

body.locked {
  overflow: hidden;
  height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.yt-hidden-wrap {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0.001;
  pointer-events: none;
  overflow: hidden;
  left: -10px;
  top: -10px;
}

.content-container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

@media (min-width: 768px) {
  .content-container {
    padding-left: 36px;
    padding-right: 36px;
  }
}

.invitation-shell {
  width: 100%;
  min-height: 100dvh;
  background: var(--maroon-primary);
  overflow-x: hidden;
}

/* =========================================================================
   PHOTO TONE HELPERS
   ========================================================================= */
.tone-bw {
  filter: grayscale(100%) contrast(1.06) brightness(0.97);
  transition: filter 0.65s ease, transform 0.7s ease;
}

.tone-warm {
  filter: saturate(0.9) contrast(1.03) brightness(0.96);
  transition: filter 0.65s ease, transform 0.7s ease;
}

/* =========================================================================
   1. COVER OVERLAY (HP: Fullscreen Portrait | Laptop: Split Editorial 50/50)
   ========================================================================= */
.cover-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 60;
  background: var(--maroon-deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition:
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease;
}

.cover-overlay.is-opened {
  transform: translateY(-104%);
  opacity: 0;
  pointer-events: none;
}

.cover-media-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cover-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  filter: saturate(0.88) contrast(1.04) brightness(0.92);
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(26, 3, 8, 0.22) 0%,
      rgba(26, 3, 8, 0.05) 30%,
      rgba(36, 4, 11, 0.62) 56%,
      rgba(36, 4, 11, 0.95) 76%,
      rgba(26, 3, 8, 0.99) 100%);
  pointer-events: none;
}

.cover-photo-border {
  display: none;
}

.cover-info-pane {
  position: relative;
  z-index: 3;
  width: 100%;
}

.cover-inner-frame {
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(230, 200, 138, 0.25);
  pointer-events: none;
  z-index: 4;
}

.cover-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 20px 24px calc(34px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-initial-badge {
  width: 68px;
  height: 68px;
  padding: 11px;
  border-radius: 50%;
  border: 1px solid rgba(230, 200, 138, 0.72);
  background: rgba(36, 4, 11, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
}

.cover-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.cover-eyebrow {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-champagne);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cover-couple-title {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 8.5vw, 4.1rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ivory-pure);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.cover-hashtag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(230, 200, 138, 0.88);
  margin-top: 4px;
  margin-bottom: 18px;
}

.cover-guest-box {
  margin-bottom: 20px;
}

.cover-dear {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--ink-blush);
  margin-bottom: 2px;
}

.cover-guest-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ivory-pure);
}

.btn-open-invitation {
  appearance: none;
  background: rgba(66, 9, 21, 0.85);
  color: var(--ivory-pure);
  border: 1px solid var(--gold-champagne);
  padding: 13px 32px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-open-invitation:hover {
  background: var(--gold-champagne);
  color: var(--maroon-deep);
  transform: translateY(-1px);
}

/* Laptop / Desktop Split-Screen Cover */
@media (min-width: 768px) {
  .cover-overlay {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
  }

  .cover-media-pane {
    position: relative;
    height: 100dvh;
    background: #1a0207;
  }

  .cover-scrim {
    background: linear-gradient(to right,
        rgba(26, 3, 8, 0.05) 0%,
        rgba(26, 3, 8, 0.05) 75%,
        rgba(36, 4, 11, 0.96) 100%);
  }

  .cover-photo-border {
    display: block;
    position: absolute;
    inset: 22px 0 22px 22px;
    border-top: 1px solid rgba(230, 200, 138, 0.35);
    border-bottom: 1px solid rgba(230, 200, 138, 0.35);
    border-left: 1px solid rgba(230, 200, 138, 0.35);
    pointer-events: none;
  }

  .cover-info-pane {
    position: relative;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 50% 35%, rgba(114, 25, 45, 0.45) 0%, transparent 65%),
      var(--maroon-deep);
    padding: 40px;
  }

  .cover-inner-frame {
    position: absolute;
    inset: 22px 22px 22px 0;
    border-top: 1px solid rgba(230, 200, 138, 0.35);
    border-right: 1px solid rgba(230, 200, 138, 0.35);
    border-bottom: 1px solid rgba(230, 200, 138, 0.35);
    border-left: none;
  }

  .cover-content {
    padding: 24px;
    max-width: 440px;
  }

  .cover-initial-badge {
    width: 84px;
    height: 84px;
    padding: 13px;
    margin-bottom: 18px;
  }
}

/* =========================================================================
   2. OPENING HERO + SATIN WAVE + AYAT ALKITAB + KALENDER 3 HARI
   ========================================================================= */
.opening-hero-strip {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: var(--maroon-deep);
}

.opening-photo-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.opening-photo-panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.opening-photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#heroLeftPhoto {
  object-position: 50% 36%;
}

#heroRightPhoto {
  object-position: 50% 38%;
}

.opening-panel-desktop {
  display: none;
}

@media (min-width: 768px) {
  .opening-hero-strip {
    height: 560px;
  }

  .opening-photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: rgba(230, 200, 138, 0.3);
  }

  .opening-panel-desktop {
    display: block;
  }
}

.opening-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(28, 4, 10, 0.25) 0%,
      rgba(36, 4, 11, 0.32) 52%,
      rgba(50, 7, 17, 0.92) 91%,
      #420915 100%);
  pointer-events: none;
}

.opening-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 62px;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
}

.hero-kicker {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold-champagne);
  margin-bottom: 4px;
}

.hero-script-names {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  color: var(--ivory-pure);
  line-height: 1.08;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.65);
}

.hero-date-sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.28em;
  color: var(--gold-champagne);
  margin-top: 6px;
}

.satin-wave-divider {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 64px;
  z-index: 3;
  pointer-events: none;
}

.maroon-velvet-block {
  background:
    radial-gradient(circle at 50% 0%, rgba(114, 25, 45, 0.38) 0%, transparent 65%),
    var(--maroon-primary);
  padding: 30px 0 54px;
  text-align: center;
}

/* =========================================================================
   ROTATING CIRCULAR TEXT SEAL (THE WEDDING / PERNIKAHAN STAMP)
   ========================================================================= */
.spinning-seal-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinning-seal-footer {
  margin-bottom: 18px;
}

.spinning-seal-rotator {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  animation: spinSeal 10s linear infinite;
  will-change: transform;
}

.spinning-seal-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.spinning-seal-text {
  font-family: var(--font-sans);
  font-size: 11.4px;
  font-weight: 500;
  letter-spacing: 0;
  fill: var(--gold-champagne);
  text-transform: uppercase;
}

.spinning-seal-center {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.seal-logo-img {
  width: 44px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

@keyframes spinSeal {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.script-heading-ivory {
  font-family: var(--font-script);
  font-size: clamp(2.45rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: var(--ivory-pure);
  line-height: 1.15;
  margin-bottom: 12px;
}

.editorial-copy-light {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-blush);
  max-width: 600px;
  margin: 0 auto 26px;
}

.verses-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 auto 34px;
  max-width: 820px;
}

@media (min-width: 768px) {
  .verses-stack {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.verse-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(230, 200, 138, 0.25);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verse-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink-ivory);
  margin-bottom: 8px;
}

.verse-ref {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-champagne);
}

.calendar-month-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin-bottom: 12px;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(247, 241, 232, 0.25);
  border-bottom: 1px solid rgba(247, 241, 232, 0.25);
  max-width: 400px;
  margin: 0 auto;
}

.calendar-cell {
  position: relative;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calendar-cell+.calendar-cell {
  border-left: 1px solid rgba(247, 241, 232, 0.16);
}

.calendar-day-name {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: rgba(247, 241, 232, 0.68);
  margin-bottom: 4px;
}

.calendar-date-num {
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ivory-pure);
  line-height: 1.1;
  z-index: 2;
}

.calendar-cell.is-wedding-day .calendar-day-name {
  color: var(--gold-champagne);
}

.calendar-cell.is-wedding-day .calendar-date-num {
  font-weight: 600;
}

.calendar-oval-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -44%);
  width: 72px;
  height: 56px;
  z-index: 1;
  pointer-events: none;
}

/* =========================================================================
   3. PROFIL MEMPELAI (1 Kolom di HP, 2 Kolom Berdampingan di Laptop)
   ========================================================================= */
.section-couple {
  background: var(--maroon-primary);
  padding: 6px 0 46px;
}

.ivory-editorial-shell {
  background: var(--ivory-paper);
  padding: 12px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.ivory-double-frame {
  border: 1px solid var(--border-ivory);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .ivory-double-frame {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 18px;
  }
}

.profile-card {
  position: relative;
}

.profile-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1b1415;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#groomPhoto {
  object-position: 45% 38%;
}

#bridePhoto {
  object-position: 52% 46%;
}

.profile-card:hover .profile-photo {
  filter: saturate(0.95) contrast(1.03);
  transform: scale(1.025);
}

.profile-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(25, 5, 10, 0.42) 0%,
      rgba(25, 5, 10, 0) 28%,
      rgba(25, 5, 10, 0.08) 52%,
      rgba(28, 5, 11, 0.9) 100%);
  pointer-events: none;
}

.profile-role-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(230, 200, 138, 0.65);
  background: rgba(36, 4, 11, 0.62);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  z-index: 2;
}

.profile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px;
  text-align: left;
  z-index: 2;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ivory-pure);
  line-height: 1.15;
  margin-bottom: 5px;
}

.profile-parents {
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* =========================================================================
   4. KISAH CINTA KAMI (Teks + 2 Foto Romantis)
   ========================================================================= */
.section-lovestory {
  background: var(--maroon-velvet);
  padding: 16px 0 54px;
}

.lovestory-card {
  border: 1px solid rgba(230, 200, 138, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(114, 25, 45, 0.35) 0%, transparent 70%),
    rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 30px 22px;
}

.lovestory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.lovestory-text-col {
  text-align: center;
}

@media (min-width: 768px) {
  .lovestory-card {
    padding: 42px 38px;
  }

  .lovestory-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
  }

  .lovestory-text-col {
    text-align: left;
  }
}

.lovestory-ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  color: var(--gold-champagne);
  margin-bottom: 10px;
}

.story-logo-img {
  width: 28px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.lovestory-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink-blush);
  margin-top: 8px;
}

.lovestory-signoff {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--gold-champagne);
  white-space: pre-line;
  line-height: 1.55;
}

.lovestory-photos-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.story-photo-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(230, 200, 138, 0.35);
  aspect-ratio: 3 / 4.1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.story-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-photo-frame:hover img {
  transform: scale(1.04);
}

#storyPhotoOne {
  object-position: 50% 15%;
}

#storyPhotoTwo {
  object-position: 50% 42%;
}

/* =========================================================================
   5. RANGKAIAN ACARA & KETENTUAN BUSANA
   ========================================================================= */
.section-events {
  background:
    radial-gradient(circle at 50% 45%, rgba(114, 25, 45, 0.45) 0%, transparent 70%),
    var(--maroon-velvet);
  padding: 0 0 58px;
}

.event-banner {
  position: relative;
  height: 185px;
  margin-bottom: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

@media (min-width: 768px) {
  .event-banner {
    height: 230px;
  }
}

.event-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.92) contrast(1.04) brightness(0.84);
}

.event-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 5, 12, 0.42);
}

.event-banner-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 500;
  color: var(--ivory-pure);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.events-responsive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .events-responsive-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
  }
}

.event-ivory-card {
  position: relative;
  background: var(--ivory-paper);
  padding: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  display: flex;
}

.wax-seal-wrap {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  z-index: 5;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.wax-seal-svg {
  width: 100%;
  height: 100%;
}

.event-card-inner {
  width: 100%;
  border: 1px solid var(--border-ivory);
  padding: 40px 22px 30px;
  text-align: center;
  color: var(--ink-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-script-heading {
  font-family: var(--font-script);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--ink-dark);
  line-height: 1.15;
  margin-bottom: 10px;
}

.event-sketch-box {
  width: 170px;
  margin: 4px auto 16px;
}

.sketch-svg {
  width: 100%;
  height: auto;
  display: block;
}

.event-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-dark);
  text-transform: uppercase;
}

.event-time {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--maroon-satin);
  margin-bottom: 14px;
}

.event-venue {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-dark);
  margin-bottom: 5px;
}

.event-address {
  font-size: 0.74rem;
  color: var(--ink-muted);
  max-width: 310px;
  margin: 0 auto 22px;
  line-height: 1.55;
}

.btn-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--maroon-primary);
  background: transparent;
  color: var(--maroon-primary);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-location:hover {
  background: var(--maroon-primary);
  color: var(--ivory-pure);
  transform: translateY(-1px);
}

/* Ketentuan Busana + Foto Pasangan */
.dresscode-box {
  border: 1px solid rgba(230, 200, 138, 0.28);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dresscode-photo-frame {
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid rgba(230, 200, 138, 0.2);
}

.dresscode-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}

.dresscode-body {
  padding: 26px 22px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dresscode-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-champagne);
  margin-bottom: 8px;
}

.dresscode-desc {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--ink-blush);
  max-width: 320px;
  margin: 0 auto 20px;
}

.dresscode-swatches {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 76px;
}

.swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(247, 241, 232, 0.75);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.swatch-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ivory-pure);
}

/* =========================================================================
   6. MENUJU HARI BAHAGIA (COUNTDOWN)
   ========================================================================= */
.section-countdown {
  position: relative;
  padding: 68px 0;
  text-align: center;
  overflow: hidden;
  background: var(--maroon-deep);
}

.countdown-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: grayscale(45%) contrast(1.06) brightness(0.75);
}

.countdown-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(36, 4, 11, 0.78) 0%,
      rgba(59, 8, 19, 0.72) 50%,
      rgba(36, 4, 11, 0.86) 100%);
}

.countdown-inner {
  position: relative;
  z-index: 2;
}

.countdown-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 500;
  color: var(--ivory-pure);
  letter-spacing: 0.03em;
  margin-bottom: 26px;
}

.countdown-rings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 30px;
}

.countdown-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ring-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1px solid rgba(230, 200, 138, 0.65);
  background: rgba(36, 4, 11, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ivory-pure);
}

@media (min-width: 768px) {
  .ring-circle {
    width: 82px;
    height: 82px;
    font-size: 1.9rem;
  }
}

.ring-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--gold-champagne);
}

.section-opening,
.section-couple,
.section-lovestory,
.section-events,
.section-gallery,
.section-rsvp {
  overflow-x: clip;
}

.save-date-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold-champagne);
  margin-bottom: 6px;
}

.save-date-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-save-date {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--ivory-pure);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(66, 9, 21, 0.48);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-save-date:hover {
  background: var(--ivory-pure);
  color: var(--maroon-deep);
  transform: translateY(-1px);
}

.btn-save-ics {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--gold-champagne);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-save-ics:hover {
  opacity: 0.8;
}

/* =========================================================================
   7. TANDA KASIH (BCA & BLUEBCA)
   ========================================================================= */
.section-gift {
  background: var(--ivory-paper);
  color: var(--ink-dark);
  padding: 0 0 46px;
}

.gift-banner {
  position: relative;
  height: 190px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .gift-banner {
    height: 240px;
  }
}

.gift-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  filter: saturate(0.92) contrast(1.05) brightness(0.88);
}

.gift-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 6, 13, 0.38);
}

.gift-script-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-script);
  font-size: clamp(2.55rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--ivory-pure);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.gift-body {
  padding-top: 32px;
  text-align: center;
}

.gift-description {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 22px;
}

.gift-card-shell {
  max-width: 500px;
  margin: 0 auto;
}

.gift-control-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

.bank-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-ivory);
  border-radius: 4px;
  background: var(--ivory-pure);
  color: var(--maroon-primary);
  font-size: 0.74rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.btn-copy-bank {
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 4px;
  background: var(--maroon-primary);
  color: var(--ivory-pure);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.22s ease;
}

.btn-copy-bank:hover {
  background: var(--maroon-deep);
}

.bank-preview-card {
  border: 1px dashed var(--border-ivory);
  background: var(--ivory-pure);
  padding: 16px 18px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-bank-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon-satin);
}

.preview-account-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-dark);
}

.preview-account-holder {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
}

/* =========================================================================
   8. GALERI MOMEN KAMI (HP: 2 Kolom | Tablet: 3 Kolom | Laptop: 4 Kolom = 4x4)
   ========================================================================= */
.section-gallery {
  background: var(--ivory-paper);
  color: var(--ink-dark);
  padding: 12px 0 68px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 24px;
}

.gallery-script-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  font-weight: 400;
  color: var(--ink-dark);
  line-height: 1.15;
}

.gallery-subtitle {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.gallery-card {
  position: relative;
  border: none;
  padding: 0;
  background: #eae2d7;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(35, 26, 27, 0.14);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.gallery-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 10px 10px;
  background: linear-gradient(to top, rgba(36, 4, 11, 0.82), transparent);
  color: var(--ivory-pure);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

/* =========================================================================
   9. UCAPAN & KEHADIRAN (HP: Stack | Laptop: 2 Kolom)
   ========================================================================= */
.section-rsvp {
  position: relative;
  background: var(--maroon-velvet);
  padding-top: 26px;
}

.rsvp-top-wave {
  position: absolute;
  top: -38px;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
}

.rsvp-inner {
  padding-top: 18px;
  padding-bottom: 56px;
}

.rsvp-header-block {
  text-align: center;
  margin-bottom: 30px;
}

.rsvp-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-blush);
  max-width: 540px;
  margin: 0 auto;
}

.rsvp-responsive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .rsvp-responsive-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

.rsvp-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(247, 241, 232, 0.14);
  border-radius: 10px;
  padding: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-champagne);
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(247, 241, 232, 0.24);
  border-radius: 4px;
  padding: 11px 13px;
  color: var(--ivory-pure);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field-select option {
  background: var(--maroon-deep);
  color: var(--ivory-pure);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(247, 241, 232, 0.45);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--gold-champagne);
  background: rgba(255, 255, 255, 0.08);
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-pill {
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(247, 241, 232, 0.24);
  border-radius: 4px;
  font-size: 0.74rem;
  color: var(--ink-blush);
  transition: all 0.2s ease;
}

.radio-pill input:checked+.radio-box {
  border-color: var(--gold-champagne);
  background: rgba(230, 200, 138, 0.16);
  color: var(--ivory-pure);
  font-weight: 600;
}

.btn-submit-rsvp {
  margin-top: 4px;
  height: 44px;
  border: 1px solid var(--gold-champagne);
  background: var(--gold-champagne);
  color: var(--maroon-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-submit-rsvp:hover {
  opacity: 0.92;
}

.btn-submit-rsvp:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Wishes Feed */
.wishes-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(247, 241, 232, 0.14);
  border-radius: 10px;
  padding: 22px;
  text-align: left;
}

.wishes-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wishes-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ivory-pure);
}

.wishes-badge {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(230, 200, 138, 0.4);
  color: var(--gold-champagne);
}

.wishes-summary-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.68rem;
  color: var(--ink-blush);
}

.summary-chip {
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(247, 241, 232, 0.12);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.wishes-loading {
  font-size: 0.78rem;
  color: var(--ink-blush);
  text-align: center;
  padding: 18px 0;
}

.wish-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(247, 241, 232, 0.14);
  border-radius: 6px;
  padding: 12px 14px;
}

.wish-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.wish-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ivory-pure);
}

.wish-status {
  font-size: 0.64rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.wish-status.is-present {
  background: rgba(230, 200, 138, 0.2);
  color: var(--gold-champagne);
}

.wish-status.is-absent {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-blush);
}

.wish-message {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-blush);
}

.wish-time {
  margin-top: 6px;
  font-size: 0.64rem;
  color: rgba(247, 241, 232, 0.45);
}

/* =========================================================================
   10. PENUTUP
   ========================================================================= */
.section-closing {
  position: relative;
  overflow: hidden;
  background: var(--maroon-deep);
  padding: 58px 0 82px;
  text-align: center;
  border-top: 1px solid rgba(230, 200, 138, 0.16);
}

.closing-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  opacity: 0.22;
  filter: grayscale(40%);
}

.closing-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(36, 4, 11, 0.72), rgba(24, 2, 7, 0.94));
}

.closing-inner {
  position: relative;
  z-index: 2;
}

.closing-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--gold-champagne);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-champagne);
  margin-bottom: 18px;
}

.closing-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-blush);
  max-width: 520px;
  margin: 0 auto 14px;
}

.closing-signature {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--ivory-pure);
  margin-bottom: 4px;
}

.closing-hashtag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-champagne);
  margin-bottom: 18px;
}

.owner-rekap-link {
  display: inline-block;
  font-size: 0.68rem;
  color: rgba(247, 241, 232, 0.56);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.owner-rekap-link:hover {
  color: var(--gold-champagne);
}

/* =========================================================================
   FLOATING MUSIC BUTTON, TOAST & LIGHTBOX
   ========================================================================= */
.music-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-champagne);
  background: rgba(36, 4, 11, 0.88);
  color: var(--gold-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, opacity 0.3s ease;
}

.music-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.music-fab.is-playing {
  animation: slowSpin 7s linear infinite;
}

.music-note-icon {
  width: 19px;
  height: 19px;
}

.music-slash {
  position: absolute;
  width: 24px;
  height: 1.6px;
  background: var(--gold-champagne);
  transform: rotate(-45deg);
  transition: opacity 0.2s ease;
}

.music-fab.is-playing .music-slash {
  opacity: 0;
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  z-index: 80;
  background: var(--ivory-pure);
  color: var(--maroon-deep);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18, 2, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 86dvh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 74dvh;
  border-radius: 8px;
  margin: 0 auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.lightbox-caption {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-champagne);
}

.lightbox-counter {
  margin-top: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(247, 241, 232, 0.55);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ivory-pure);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================================================
   DIRECTIONAL REVEAL ANIMATIONS (KIRI, KANAN, BAWAH, ZOOM)
   ========================================================================= */
.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal {
  transform: translateY(24px);
}

.reveal-left {
  transform: translateX(-62px) scale(0.97);
}

.reveal-right {
  transform: translateX(62px) scale(0.97);
}

.reveal-zoom {
  transform: scale(0.9);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}