/* ===== TEMPLATE 20: HARMONI BUDAYA ===== */
/* Ethnic modern fusion, warm editorial, artistic */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: #3D2B1F; color: #F5EDE0; overflow-x: hidden; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

:root {
  --brown: #3D2B1F;
  --brown-dark: #2A1C13;
  --terracotta: #C4704A;
  --terracotta-light: #D98B68;
  --gold: #C9A84C;
  --gold-light: #E0C97A;
  --cream: #F5EDE0;
  --black: #1A1008;
  --font-serif: 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Jost', sans-serif;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-terracotta: 0 4px 24px rgba(196,112,74,0.2);
  --radius: 14px;
  --transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ===== COVER ===== */
.cover-section {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, #1A1008 0%, #3D2B1F 50%, #1A1008 100%);
}
.cover-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: 0.3; filter: brightness(0.4) sepia(0.2) saturate(1.2);
}
.cover-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(26,16,8,0.85) 0%, rgba(61,43,31,0.4) 40%, rgba(26,16,8,0.9) 100%);
}
.cover-ornament-top, .cover-ornament-bottom {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 280px; height: auto; opacity: 0.5; pointer-events: none;
}
.cover-ornament-top { top: 2rem; }
.cover-ornament-bottom { bottom: 2rem; transform: translateX(-50%) rotate(180deg); }

.cover-content {
  position: relative; z-index: 3; text-align: center; padding: 2rem;
  animation: fadeInUp 1.2s ease both;
}
.cover-bismillah {
  font-size: 1.6rem; color: var(--gold); font-family: var(--font-serif);
  margin-bottom: 1.5rem; text-shadow: 0 2px 12px rgba(201,168,76,0.3);
}
.cover-subtitle {
  font-size: 0.75rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.8rem;
}
.cover-names {
  font-family: var(--font-script); font-size: clamp(3rem, 10vw, 6rem);
  color: var(--cream); line-height: 1.1; margin-bottom: 0.5rem;
  text-shadow: 0 4px 24px rgba(196,112,74,0.3);
}
.cover-names span { color: var(--terracotta); font-size: 0.6em; }
.cover-date {
  font-size: 0.9rem; color: var(--gold-light); letter-spacing: 0.3em;
  margin-bottom: 2rem; text-transform: uppercase;
}
.cover-divider { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.5rem 0; }
.cover-divider span { width: 60px; height: 1px; background: var(--terracotta); opacity: 0.5; }
.cover-divider i { color: var(--terracotta); font-size: 0.8rem; }
.cover-guest-label { font-size: 0.75rem; color: rgba(245,237,224,0.5); letter-spacing: 0.2em; margin-bottom: 0.3rem; }
.cover-guest-name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold-light); margin-bottom: 2.5rem; }
.btn-open {
  background: transparent; border: 1px solid var(--terracotta); color: var(--terracotta);
  padding: 0.9rem 2.5rem; border-radius: 50px; font-size: 0.85rem;
  cursor: pointer; transition: var(--transition); letter-spacing: 0.15em;
  text-transform: uppercase; font-family: var(--font-body);
}
.btn-open:hover { background: var(--terracotta); color: var(--cream); box-shadow: var(--shadow-terracotta); }

/* ===== MUSIC PLAYER ===== */
.music-player { position: fixed; top: 1rem; right: 1rem; z-index: 1000; }
.music-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--terracotta);
  background: rgba(26,16,8,0.85); backdrop-filter: blur(10px); color: var(--terracotta);
  font-size: 1rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.music-btn:hover { background: var(--terracotta); color: var(--cream); }
.music-btn.playing { animation: musicPulse 1.5s ease-in-out infinite; }
@keyframes musicPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(196,112,74,0.4); } 50% { box-shadow: 0 0 0 8px rgba(196,112,74,0); } }

/* ===== FLOATING NAV ===== */
.floating-nav {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: none; gap: 4px; padding: 8px 12px; border-radius: 50px; z-index: 999;
  background: rgba(26,16,8,0.9); backdrop-filter: blur(16px);
  border: 1px solid rgba(196,112,74,0.2); box-shadow: var(--shadow);
}
.floating-nav a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--terracotta-light); font-size: 0.85rem; transition: var(--transition); }
.floating-nav a:hover, .floating-nav a.active { background: rgba(196,112,74,0.12); color: var(--terracotta); }

/* ===== SECTIONS COMMON ===== */
.section { padding: 5rem 1.5rem; position: relative; overflow: hidden; }
.section-dark { background: var(--black); }
.section-alt { background: var(--brown); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { font-size: 0.65rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.5rem; display: block; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--cream); font-weight: 400; line-height: 1.2; }
.section-title em { font-style: italic; color: var(--terracotta-light); }

/* ===== COUPLE ===== */
.couple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 700px; margin: 0 auto; }
.couple-card { text-align: center; padding: 2rem 1.5rem; background: rgba(196,112,74,0.04); border: 1px solid rgba(196,112,74,0.12); border-radius: var(--radius); transition: var(--transition); }
.couple-card:hover { border-color: rgba(196,112,74,0.35); box-shadow: var(--shadow-terracotta); }
.couple-photo { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 1.2rem; border: 2px solid var(--terracotta); padding: 4px; overflow: hidden; }
.couple-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.couple-name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--cream); margin-bottom: 0.3rem; }
.couple-parents { font-size: 0.8rem; color: rgba(245,237,224,0.5); line-height: 1.6; }

/* ===== QUOTE ===== */
.quote-section { text-align: center; padding: 4rem 2rem; }
.quote-text { font-family: var(--font-serif); font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--gold-light); font-style: italic; line-height: 1.8; max-width: 600px; margin: 0 auto 1rem; }
.quote-source { font-size: 0.8rem; color: rgba(245,237,224,0.4); letter-spacing: 0.1em; }

/* ===== COUNTDOWN ===== */
.countdown-wrap { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.cd-item { text-align: center; min-width: 70px; padding: 1.2rem 1rem; background: rgba(196,112,74,0.06); border: 1px solid rgba(196,112,74,0.15); border-radius: var(--radius); }
.cd-item span { display: block; font-family: var(--font-serif); font-size: 2rem; color: var(--terracotta); font-weight: 700; }
.cd-item small { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,237,224,0.5); }

/* ===== EVENT ===== */
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 700px; margin: 0 auto; }
.event-card { text-align: center; padding: 2.5rem 1.5rem; background: rgba(196,112,74,0.04); border: 1px solid rgba(196,112,74,0.12); border-radius: var(--radius); transition: var(--transition); }
.event-card:hover { border-color: rgba(196,112,74,0.35); }
.event-icon { font-size: 1.5rem; color: var(--terracotta); margin-bottom: 1rem; }
.event-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream); margin-bottom: 0.8rem; }
.event-detail { font-size: 0.82rem; color: rgba(245,237,224,0.6); line-height: 1.8; }
.event-detail strong { color: var(--terracotta-light); display: block; margin-bottom: 0.3rem; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 700px; margin: 0 auto; }
.gallery-item { aspect-ratio: 1; overflow: hidden; border-radius: 8px; cursor: pointer; transition: var(--transition); }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ===== RSVP ===== */
.rsvp-form { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { width: 100%; padding: 0.9rem 1.2rem; background: rgba(196,112,74,0.04); border: 1px solid rgba(196,112,74,0.15); border-radius: 8px; color: var(--cream); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: var(--transition); }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(196,112,74,0.1); }
.rsvp-form input::placeholder, .rsvp-form textarea::placeholder { color: rgba(245,237,224,0.3); }
.rsvp-form select { color: rgba(245,237,224,0.7); }
.rsvp-form select option { background: var(--brown); color: var(--cream); }
.btn-submit { background: var(--terracotta); color: var(--cream); border: none; padding: 0.9rem 2rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: var(--transition); letter-spacing: 0.1em; text-transform: uppercase; }
.btn-submit:hover { box-shadow: var(--shadow-terracotta); transform: translateY(-2px); }

/* ===== WISHES ===== */
.wishes-list { max-width: 600px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.wish-card { padding: 1.2rem 1.5rem; background: rgba(196,112,74,0.04); border: 1px solid rgba(196,112,74,0.1); border-radius: var(--radius); }
.wish-name { font-weight: 600; color: var(--terracotta-light); font-size: 0.85rem; margin-bottom: 0.3rem; }
.wish-msg { font-size: 0.82rem; color: rgba(245,237,224,0.6); line-height: 1.6; }
.wish-time { font-size: 0.7rem; color: rgba(245,237,224,0.3); margin-top: 0.5rem; }

/* ===== GIFT ===== */
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 500px; margin: 0 auto; }
.gift-card { padding: 1.5rem; text-align: center; background: rgba(196,112,74,0.04); border: 1px solid rgba(196,112,74,0.12); border-radius: var(--radius); }
.gift-bank { font-size: 0.75rem; color: var(--terracotta); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.gift-number { font-family: monospace; font-size: 0.9rem; color: var(--cream); margin-bottom: 0.3rem; }
.gift-name { font-size: 0.75rem; color: rgba(245,237,224,0.5); }
.btn-copy { margin-top: 0.8rem; padding: 0.4rem 1rem; border-radius: 50px; border: 1px solid rgba(196,112,74,0.3); background: transparent; color: var(--terracotta); font-size: 0.7rem; cursor: pointer; transition: var(--transition); }
.btn-copy:hover { background: var(--terracotta); color: var(--cream); }

/* ===== CLOSING ===== */
.closing-section { text-align: center; padding: 5rem 2rem; background: linear-gradient(180deg, var(--brown), var(--black)); }
.closing-names { font-family: var(--font-script); font-size: clamp(2rem, 6vw, 3.5rem); color: var(--cream); margin-bottom: 1rem; }
.closing-msg { font-size: 0.85rem; color: rgba(245,237,224,0.5); max-width: 400px; margin: 0 auto; line-height: 1.8; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.aos-fade { opacity: 0; transform: translateY(20px); transition: all 0.7s ease; }
.aos-fade.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) { .couple-grid, .event-grid, .gift-grid { grid-template-columns: 1fr; } .gallery-grid { grid-template-columns: repeat(2, 1fr); } .section { padding: 4rem 1.2rem; } .cover-ornament-top, .cover-ornament-bottom { width: 200px; } }
@media (max-width: 480px) { .countdown-wrap { gap: 0.8rem; } .cd-item { min-width: 60px; padding: 1rem 0.8rem; } .cd-item span { font-size: 1.5rem; } }

/* ===== LOVE STORY TIMELINE ===== */
.story-timeline {
  max-width: 600px; margin: 0 auto; position: relative;
  padding-left: 30px; border-left: 2px solid rgba(201,168,76,0.2);
}
.story-item {
  position: relative; padding: 0 0 2.5rem 2rem;
}
.story-item:last-child { padding-bottom: 0; }
.story-dot {
  position: absolute; left: -39px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--black, #0a0806);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.3);
}
.story-date {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem; display: block;
}
.story-content h4 {
  font-family: var(--font-serif, 'Playfair Display', serif); font-size: 1.1rem; color: var(--cream, #f5efe6);
  margin-bottom: 0.4rem; font-weight: 400;
}
.story-content p {
  font-size: 0.85rem; color: var(--text, rgba(245,239,230,0.55)); line-height: 1.7;
}
/* ===== TURUT MENGUNDANG ===== */
.turut-grid {
  max-width: 500px; margin: 0 auto; display: flex; flex-direction: column;
  gap: 1rem; text-align: center;
}
.turut-card {
  padding: 1.2rem 1.5rem;
  background: rgba(201,168,76,0.03); border: 1px solid rgba(201,168,76,0.12);
  border-radius: 16px;
}
.turut-card p {
  font-family: var(--font-serif, 'Playfair Display', serif); font-size: 1rem; color: var(--gold-light, #e8d5a3);
  font-style: italic;
}
/* ===== DOA PENGANTIN ===== */
.doa-content {
  max-width: 600px; margin: 0 auto; text-align: center;
}
.doa-arabic {
  font-size: clamp(1.4rem, 4vw, 2rem); color: var(--gold-light, #e8d5a3);
  line-height: 2; margin-bottom: 1rem; direction: rtl;
}
.doa-latin {
  font-size: 0.85rem; color: rgba(245,239,230,0.5); font-style: italic;
  margin-bottom: 1rem; letter-spacing: 0.02em;
}
.doa-arti {
  font-size: 0.9rem; color: rgba(245,239,230,0.7); line-height: 1.8;
  margin-bottom: 0.8rem;
}
.doa-source {
  font-size: 0.75rem; color: rgba(245,239,230,0.35); letter-spacing: 0.1em;
}
/* ===== GIFT CONFIRM WA ===== */
.btn-confirm-gift {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 1.5rem auto 0; padding: 0.8rem 2rem; border-radius: 50px;
  background: #25D366; color: #fff; border: none; font-size: 0.85rem;
  font-family: var(--font-body, 'Jost', sans-serif); font-weight: 500; cursor: pointer;
  transition: all 0.3s ease; letter-spacing: 0.05em;
}
.btn-confirm-gift:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
/* ===== COUNTDOWN TARGET ===== */
.countdown-target { opacity: 0.5; }
