/* ================================
   Arina & Munif — Vintage Peacock
   Light background edition
   ================================ */

:root {
  --gold: #b8860b;
  --gold-light: #d4af37;
  --gold-pale: #f2d98e;
  --emerald: #1a4d3d;
  --emerald-dark: #0f2e24;
  --teal: #2a5d52;
  --cream: #fffdf5;
  --ivory: #f9f6ee;
  --parchment: rgba(255, 253, 245, 0.86);
  --ink: #2c241b;
  --ink-soft: #4a3f33;
  --font-body: 'Nunito', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --max-width: 480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #1a1510;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 71, 55, 0.78) 0%, rgba(30, 20, 12, 0.92) 100%);
  z-index: -2;
}

/* Centered mobile wrapper */
.app {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* =========================
   Cover Gate
   ========================= */
.cover-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  text-align: center;
}

.cover-frame {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  height: 100%;
  display: grid;
  place-items: center;
  background: url('intro.jpg') center/cover no-repeat;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cover-gate.closed .cover-frame {
  opacity: 0;
  transform: scale(1.05);
}

.cover-gate .cover-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: var(--max-width);
}

.cover-guest {
  font-size: 1.05rem;
  font-weight: 400;
  margin: 0 0 0.6rem;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(255, 253, 245, 0.9);
}

#guest-name-cover {
  font-weight: 600;
}

.cover-invite {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  text-shadow: 0 1px 2px rgba(255, 253, 245, 0.9);
}

.cover-names {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--emerald-dark);
  text-shadow: 0 2px 8px rgba(255, 253, 245, 0.85);
}

.cover-names .cover-ampersand {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.cover-date {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin: 0 0 2rem;
  color: var(--ink-soft);
  text-shadow: 0 1px 2px rgba(255, 253, 245, 0.9);
}

.open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--emerald);
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.open-btn:hover,
.open-btn:active {
  background: var(--emerald-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

/* Peacock feathers */
.feather {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 0 100% 0 100%;
  opacity: 0.18;
  background: conic-gradient(from 45deg, #0e4737, #1f5f55, #d4af37, #0e4737);
  transform-origin: center;
  pointer-events: none;
  filter: blur(1px);
}

.feather::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 2px solid rgba(184, 134, 11, 0.45);
}

.feather--tl { top: -40px; left: -40px; transform: rotate(-10deg); }
.feather--tr { top: -40px; right: -40px; transform: rotate(80deg); }
.feather--bl { bottom: -40px; left: -40px; transform: rotate(-100deg); }
.feather--br { bottom: -40px; right: -40px; transform: rotate(170deg); }

/* =========================
   Music toggle
   ========================= */
.music-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 998;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--parchment);
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.music-toggle:active {
  transform: scale(0.94);
}

.music-icon {
  font-size: 1.15rem;
  position: relative;
}

.music-toggle.muted .music-icon::after {
  content: '';
  position: absolute;
  inset: -10px 6px;
  width: 2px;
  height: 26px;
  background: #b91c1c;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin-left: -1px;
  margin-top: -13px;
}

/* =========================
   Sections
   ========================= */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4.5rem 1.5rem;
  background: var(--bg) center/cover no-repeat;
  scroll-margin-top: 0;
}

.section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 600;
  color: var(--emerald-dark);
  margin: 0 0 1.25rem;
  text-shadow: 0 1px 4px rgba(255, 253, 245, 0.9);
}

/* =========================
   Intro / Hero
   ========================= */
.intro {
  min-height: 100vh;
  padding: 0;
  justify-content: center;
  overflow: hidden;
}

.video-bg,
.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.intro-content {
  padding: 1.5rem;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 12vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  color: var(--emerald-dark);
  text-shadow: 0 2px 14px rgba(255, 253, 245, 0.92);
}

.hero-names .ampersand {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  margin: 0;
  text-shadow: 0 1px 4px rgba(255, 253, 245, 0.9);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(44, 36, 27, 0.4);
  border-radius: 12px;
}

.scroll-hint span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollBounce 1.8s infinite ease-in-out;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.4; }
}

/* Separators */
.separator {
  display: block;
  width: 140px;
  height: auto;
  margin: -1px auto;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

/* =========================
   Verse
   ========================= */
.verse-box {
  padding: 2rem 1.25rem;
  background: var(--parchment);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 8px;
}

.verse-text {
  font-size: 1rem;
  line-height: 1.85;
  margin: 0 0 1rem;
  color: var(--ink);
}

.verse-source {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--emerald);
  margin: 0;
}

/* =========================
   Bride & Groom
   ========================= */
.salam {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--emerald-dark);
  margin: 0 0 1.25rem;
  text-shadow: 0 1px 3px rgba(255, 253, 245, 0.9);
}

.couple-intro {
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0 0 2.25rem;
  color: var(--ink-soft);
}

.person {
  margin-bottom: 1.75rem;
}

.person-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--emerald-dark);
  margin: 0 0 0.35rem;
}

.person-line,
.person-place {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
  color: var(--ink-soft);
}

.person-place {
  margin-top: 0.2rem;
  font-style: italic;
}

.instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--emerald);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.instagram:hover,
.instagram:active {
  color: var(--gold);
}

.ig-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.dengan {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  margin: 1.25rem 0 1.5rem;
  text-shadow: 0 1px 3px rgba(255, 253, 245, 0.9);
}

/* =========================
   Dates
   ========================= */
.dates-intro {
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0 0 2rem;
  color: var(--ink-soft);
}

.event-card {
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--parchment);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 8px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 134, 11, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.map-link:hover,
.map-link:active {
  color: var(--gold);
}

.event-card:last-child {
  margin-bottom: 0;
}

.event-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald-dark);
  margin: 0 0 0.75rem;
}

.event-date,
.event-time,
.event-place {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
}

.event-date {
  font-weight: 600;
  color: var(--ink);
}

/* =========================
   Wishes Form
   ========================= */
.wish-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  padding: 1.5rem;
  background: var(--parchment);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--emerald);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.12);
}

.submit-btn {
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--emerald);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover,
.submit-btn:active {
  background: var(--emerald-dark);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  background: #9e9e9e;
  cursor: not-allowed;
  opacity: 0.7;
}

.wish-status {
  min-height: 1.4rem;
  font-size: 0.85rem;
  text-align: center;
  margin: 0.25rem 0 0;
  color: var(--emerald);
}

.wish-status.error {
  color: #a93226;
}

/* =========================
   Closing
   ========================= */
.closing-box {
  padding: 2rem 1.25rem;
  background: var(--parchment);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 8px;
}

.closing-box p {
  font-size: 0.92rem;
  line-height: 1.85;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.closing-salam {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--emerald-dark);
}

.closing-names {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--emerald-dark);
  margin: 0.75rem 0 0;
}

.closing-names .ampersand {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* =========================
   Reveal animations
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   YouTube player hidden
   ========================= */
.yt-hidden {
  position: fixed;
  inset: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  z-index: -999;
  opacity: 0;
  pointer-events: none;
}

/* =========================
   Utility
   ========================= */
[hidden] {
  display: none !important;
}

/* Desktop viewport limit */
@media (min-width: 768px) {
  .app {
    min-height: 100vh;
  }
}
