/* ============================================================
   WEDDING — Kadin & Sukma
   Scroll-snap vertical pages
   ============================================================ */

:root {
  --page-bg:   #f8f5f0;
  --text:      #2c2218;
  --accent:    #8b6f47;
  --gold:      #c4a882;
  --border:    #ddd5c8;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;
  --content-max: 480px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: #0e0905;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLL CONTAINER ── */
#scroll-container {
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* ── PAGE (each section = 1 viewport) ── */
.page {
  position: relative;
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── SHARED SECTION CONTENT ── */
.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.aksara {
  font-family: 'Noto Serif Balinese', 'Segoe UI', serif;
}

/* ══════════════════════════════
   SECTION 1 — COVER
   ══════════════════════════════ */
.cover {
  background: #0e0905;
}

.cover-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0.88;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14,9,5,0.72) 0%, rgba(14,9,5,0.1) 45%, transparent 100%),
    linear-gradient(to bottom, rgba(14,9,5,0.3) 0%, transparent 25%);
}

.cover-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem 5rem;
  color: var(--page-bg);
  text-align: center;
  z-index: 2;
}

.cover-aksara {
  font-size: clamp(1.4rem, 5.5vw, 2.4rem);
  color: var(--gold);
  line-height: 1;
  padding-bottom: 1em;
}

.cover-om-latin {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(0.72rem, 2.2vw, 0.95rem);
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.cover-pawiwahan {
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}

.cover-names {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--page-bg);
  margin-bottom: 1rem;
}

.cover-names .amp {
  color: var(--gold);
  font-style: normal;
  font-size: 0.65em;
}

.cover-date {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(0.95rem, 3vw, 1.25rem);
  opacity: 0.95;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold);
  opacity: 0.6;
  animation: hintPulse 2.5s ease-in-out infinite;
}

.hint-arrow { font-size: 1.2rem; }
.hint-text {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.9; transform: translateX(-50%) translateY(5px); }
}

/* ══════════════════════════════
   SECTION 2 — COUPLE (cream)
   ══════════════════════════════ */
.cream {
  background: #0e0905;
}

.couple-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: blur(6px);
  transform: scale(1.05);
}

.cream-border {
  position: relative;
  z-index: 1;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  border: 1px solid rgba(196,168,130,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cream-border::-webkit-scrollbar { display: none; }

.couple-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-bg);
  padding: 2.5rem 2rem;
  max-width: var(--content-max);
}

.preamble {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
  line-height: 1.9;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.preamble--invite {
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  margin-bottom: 1.25rem;
  opacity: 0.75;
}

.couple-block { margin-bottom: 0.5rem; }

.couple-name {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.couple-role {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 0.2rem;
}

.couple-parents {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  opacity: 0.75;
  line-height: 1.5;
}

.couple-parents--memorial {
  opacity: 0.6;
  margin-top: 0.15rem;
}

/* Decorative ampersand divider between couple blocks */
.couple-amp {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  opacity: 0.6;
  margin: 0.75rem 0;
}

/* Ornamental flourish */
.couple-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--gold);
  opacity: 0.35;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
}

.couple-ornament::before,
.couple-ornament::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

/* Decorative flourishes */
.couple-flourish-top,
.couple-flourish-bottom {
  font-size: 1.6rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

.couple-flourish-bottom {
  transform: rotate(180deg);
}

.couple-date-footer {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  opacity: 0.4;
  margin-top: 0.25rem;
}

/* Corner decorations on cream border */
.cream-border {
  position: relative;
}

.cream-border::before,
.cream-border::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.3;
}

.cream-border::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.cream-border::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
}

/* ══════════════════════════════
   SECTION 3 & 4 — PHOTO BG
   ══════════════════════════════ */
.photo-bg {
  background: #0e0905;
}

.photo-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0.75;
}

.photo-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,9,5,0.45) 0%,
    rgba(14,9,5,0.1) 35%,
    rgba(14,9,5,0.1) 60%,
    rgba(14,9,5,0.55) 100%
  );
}

.photo-bg-overlay--warm {
  background: linear-gradient(
    to bottom,
    rgba(20,12,6,0.05) 0%,
    rgba(20,12,6,0.15) 40%,
    rgba(20,12,6,0.5) 55%,
    rgba(20,12,6,0.62) 100%
  );
}

/* ── INFO PAGE ── */
.info-content {
  color: var(--page-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 4rem;
  padding-bottom: 3rem;
  max-height: 100dvh;
}

.info-group-bottom .info-section { margin-bottom: 0.8rem; }

.info-section { margin-bottom: 1rem; }

.info-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.info-venue {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.info-address {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  opacity: 0.8;
}

.info-rule {
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 0.9rem auto;
}

.schedule-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.schedule-event {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(0.88rem, 2.5vw, 1.05rem);
  opacity: 0.85;
  text-align: left;
}

.schedule-time {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.info-date-note {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  opacity: 0.65;
}

.info-dresscode {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  opacity: 0.85;
}

.map-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.75rem;
  border: 1px solid rgba(196,168,130,0.55);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.map-btn:hover {
  background: var(--gold);
  color: #0e0905;
  border-color: var(--gold);
}

/* ── RSVP PAGE ── */
.rsvp-content {
  color: var(--page-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 2.5rem;
  padding-top: 0;
}

.rsvp-intro {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
  line-height: 1.85;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.rsvp-intro strong { font-weight: 600; }

#rsvpForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.form-field { width: 100%; }

.form-field input {
  width: 100%;
  padding: 0.65rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(248,245,240,0.3);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1rem;
  color: var(--page-bg);
  outline: none;
  text-align: center;
  transition: border-color 0.2s;
}

.form-field input::placeholder { color: var(--page-bg); opacity: 0.35; }
.form-field input:focus { border-bottom-color: var(--gold); }

.attend-toggle { display: flex; gap: 0.6rem; }

.toggle-btn {
  padding: 0.5rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(248,245,240,0.3);
  color: var(--page-bg);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.55;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.toggle-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #0e0905;
  opacity: 1;
}

.submit-btn {
  padding: 0.6rem 2.25rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.submit-btn:hover { background: var(--gold); color: #0e0905; }

.rsvp-success {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  margin-top: 0.5rem;
}

.rsvp-footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.rsvp-monogram {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.82rem;
  opacity: 0.4;
}

.rsvp-shanti {
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  color: var(--gold);
  opacity: 0.6;
  line-height: 1.6;
  padding-bottom: 0.5em;
}

.rsvp-shanti-latin {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.72rem;
  opacity: 0.35;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════
   PAGE DOTS
   ══════════════════════════════ */
.page-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(248,245,240,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.dot.dot--active {
  background: var(--gold);
  transform: scale(1.5);
}

/* Cream page dots need different inactive color */
.page-dots.dots-light .dot { background: rgba(44,34,24,0.2); }
.page-dots.dots-light .dot.dot--active { background: var(--gold); }

/* ══════════════════════════════
   MUSIC BUTTON
   ══════════════════════════════ */
.music-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(196,168,130,0.4);
  background: rgba(14,9,5,0.5);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s;
}

.music-btn:hover {
  background: rgba(14,9,5,0.7);
  border-color: var(--gold);
}

.music-btn.playing {
  animation: musicPulse 1.5s ease-in-out infinite;
}

.music-icon {
  width: 16px;
  height: 16px;
}

@keyframes musicPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* On cream page, darken the button bg */
.music-btn.on-light {
  background: rgba(248,245,240,0.6);
  border-color: rgba(139,111,71,0.3);
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */

/* Short screens */
@media (max-height: 640px) {
  .cover-content { padding-bottom: 4rem; }
  .cover-aksara { padding-bottom: 0.5em; }
  .cover-om-latin { margin-bottom: 0.6rem; }
  .cover-names { margin-bottom: 0.6rem; font-size: 2rem; }
  .couple-content { padding: 1.5rem 1.5rem; }
  .couple-amp { margin: 0.4rem 0; }
  .preamble { margin-bottom: 0.5rem; line-height: 1.6; }
  .section-content { padding: 1.25rem 1.5rem; }
  .info-section { margin-bottom: 0.6rem; }
  .info-rule { margin: 0.6rem auto; }
  .rsvp-intro { margin-bottom: 1rem; }
  .rsvp-footer { margin-top: 1rem; }
}

/* Desktop — wider content, bigger type */
@media (min-width: 768px) {
  :root { --content-max: 540px; }

  .cover-names { font-size: clamp(2.8rem, 6vw, 4rem); }
  .cover-content { padding-bottom: 6rem; }

  .couple-name { font-size: 1.6rem; }

  .page-dots { right: 2rem; }

}
