﻿:root {
  --bg: #fdf8f0;
  --text: #2a1a0a;
  --muted: #8a6a40;
  --line: rgba(201,168,76,0.25);
  --gold: #c9a84c;
  --gold-strong: #e8c87a;
  --shadow: 0 20px 60px rgba(201,168,76,0.15);
  --radius: 16px;
  --container: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  color: var(--text);
  background-color: #fdf8f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Crect x='38' y='10' width='4' height='4' fill='%23c9a84c' opacity='0.08' transform='rotate(45 40 12)'/%3E%3Crect x='18' y='50' width='3' height='3' fill='%23c9a84c' opacity='0.06' transform='rotate(45 20 52)'/%3E%3Crect x='58' y='50' width='3' height='3' fill='%23c9a84c' opacity='0.06' transform='rotate(45 60 52)'/%3E%3Crect x='38' y='65' width='2' height='2' fill='%23e8c87a' opacity='0.08' transform='rotate(45 40 67)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#confetti-canvas { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#starfield { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero, .section, .footer { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.22) 0%,
    rgba(0,0,0,0.08) 35%,
    rgba(0,0,0,0.50) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(24px, 5vw, 60px);
  max-width: 900px;
  width: 100%;
}

.hero__badge {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  font-weight: 200;
}

.eyebrow::before, .eyebrow::after { content: "✦"; font-size: 0.65rem; color: var(--gold); }

h1 {
  font-family: "Allura", cursive;
  text-transform: capitalize;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-family: "Allura", cursive;
  font-size: clamp(4.5rem, 16vw, 11rem);
  font-weight: 700;
  color: var(--gold);
  font-style: normal;
  margin-bottom: 8px;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(201,168,76,0.35);
}

h2 { font-family: "Playfair Display", serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; margin: 0 0 16px; line-height: 1.1; color: var(--text); }
h3 { font-family: "Playfair Display", serif; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 400; margin-bottom: 8px; color: var(--gold); }

.hero__separator { width: 80px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 16px auto 20px; }
.hero__date { font-size: clamp(0.85rem, 2vw, 1rem); color: rgba(255,255,255,0.9); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 8px; font-weight: 200; }
.hero__location { font-size: clamp(0.8rem, 1.8vw, 0.95rem); color: rgba(255,255,255,0.7); letter-spacing: 0.12em; margin-bottom: 44px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 36px; border-radius: 4px; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid transparent; transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--gold-strong)); color: #2a1a0a; font-weight: 600; box-shadow: 0 8px 24px rgba(201,168,76,0.4); }
.btn--primary:hover { box-shadow: 0 12px 32px rgba(201,168,76,0.6); }
.btn--ghost { border-color: rgba(255,255,255,0.7); background: rgba(0,0,0,0.28); color: #fff; backdrop-filter: blur(10px); text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.btn--ghost:hover { background: rgba(255,255,255,0.2); }
.btn--whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

.section { width: var(--container); margin: 0 auto; padding: 100px 0; }
.section__header { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.section__tag { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.68rem; color: var(--gold); margin-bottom: 12px; font-weight: 300; }
.section__tag::before, .section__tag::after { content: "✦"; font-size: 0.6rem; opacity: 0.8; }
.section__divider { width: 60px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 16px auto 0; }

.glass-card { background: rgba(253,248,240,0.9); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.story-card { max-width: 860px; margin: 0 auto; padding: clamp(32px, 4vw, 56px); }
.story-card p, .detail-card p, .map-copy p, .rsvp-card p, .footer p, .footer small { font-size: clamp(1rem, 2vw, 1.1rem); line-height: 2; color: var(--muted); font-weight: 300; }

.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.detail-card { padding: 36px 28px; min-height: 200px; }
.detail-card__num { font-family: "Playfair Display", serif; font-size: 3rem; color: var(--gold); opacity: 0.2; line-height: 1; margin-bottom: 8px; font-weight: 700; }
.detail-card h3 { font-size: 0.72rem; color: var(--gold); margin-bottom: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-family: "Inter", sans-serif; font-weight: 400; }

.accordion-gallery { display: flex; gap: 10px; min-height: 520px; }
.accordion-item { position: relative; overflow: hidden; border-radius: 12px; flex: 1 1 0; border: 1px solid var(--line); transition: flex 0.55s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease; cursor: pointer; }
.accordion-item:hover, .accordion-item.active { flex: 3.5 1 0; box-shadow: 0 16px 48px rgba(201,168,76,0.3); }
.accordion-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; filter: brightness(0.85) saturate(0.9); }
.accordion-item:hover img, .accordion-item.active img { transform: scale(1.04); filter: brightness(1) saturate(1.1); }
.accordion-item__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(42,26,10,0.8) 100%); }
.accordion-item__content { position: absolute; left: 20px; right: 20px; bottom: 22px; color: #fff; }
.accordion-item__content h3 { font-family: "Playfair Display", serif; font-size: clamp(1.3rem, 2.5vw, 2rem); margin-bottom: 4px; color: var(--gold-strong); font-weight: 400; }
.accordion-item__content p { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.85rem; line-height: 1.5; }

.map-card { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 24px; align-items: stretch; padding: clamp(24px, 3vw, 44px); }
.map-copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.map-frame-wrap { min-height: 360px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
#map-frame { width: 100%; height: 100%; min-height: 360px; border: 0; }

.rsvp-card { text-align: center; max-width: 680px; margin: 0 auto; padding: clamp(36px, 5vw, 64px); }

.footer { padding: 32px 16px 56px; }
.footer__inner { width: var(--container); margin: 0 auto; padding: 32px; border-top: 2px solid var(--line); text-align: center; }
.footer__decoration { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.5em; margin-bottom: 16px; }

.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 600px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); text-align: center; }
.countdown-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.countdown-number { font-family: "Playfair Display", serif; font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; color: var(--gold); line-height: 1; }
.countdown-label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .details-grid, .map-card { grid-template-columns: 1fr; }
  .accordion-gallery { flex-direction: column; min-height: unset; }
  .accordion-item, .accordion-item:hover, .accordion-item.active { min-height: 320px; flex: unset; }
  .hero { background-attachment: scroll; }
}

.hero__actions-mobile { display: none; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero { min-height: 0; height: var(--hero-mobile-height, 75vw); width: 100%; padding: 0; align-items: center; }
  .hero__content { padding: 32px; width: 100%; }
  .hero__actions { display: none; }
  .hero__actions-mobile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 32px 32px; background: var(--bg); }
  .hero__actions-mobile .btn { width: 100%; max-width: 280px; }
  .btn { width: 100%; max-width: 280px; }
}

/* ── SPLASH ── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
#splash-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
#splash-bg.zoomed { transform: scale(1.12); }
#splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
#splash::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%, transparent 0%, transparent 25%, rgba(8, 4, 18, 0.55) 100%),
    radial-gradient(ellipse 30% 40% at 15% 20%, rgba(201, 168, 76, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 25% 35% at 85% 75%, rgba(140, 80, 40, 0.09) 0%, transparent 70%);
}
#splash-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 40px;
  animation: splashFadeIn 1.5s ease 0.5s both;
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
#splash-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.9;
  font-weight: 200;
}
#splash-names {
  font-family: "Allura", cursive;
  font-size: clamp(4rem, 12vw, 9rem);
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 4px 60px rgba(0,0,0,0.4);
  margin-bottom: 12px;
}
#splash-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 300;
  opacity: 0.9;
}
#splash-date {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  font-weight: 200;
}
#splash-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 40px;
}
#splash-enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
#splash-enter:hover { background: rgba(201,168,76,0.1); color: var(--gold); border-color: var(--gold); }
#curtain-left, #curtain-right {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--text); z-index: 10;
  transition: transform 1.2s cubic-bezier(0.77,0,0.175,1);
}
#curtain-left { left: 0; transform: translateX(-100%); }
#curtain-right { right: 0; transform: translateX(100%); }
#splash.closing #curtain-left { transform: translateX(0); }
#splash.closing #curtain-right { transform: translateX(0); }

/* === PARTY SPLASH THEME: BLACK & GOLD LUXURY === */
#splash { background: #080600; }
#splash-overlay {
  background: radial-gradient(ellipse at 50% 40%, rgba(212,175,55,0.18) 0%, rgba(8,6,0,0.88) 55%, rgba(0,0,0,0.97) 100%);
}
#splash-eyebrow {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212,175,55,0.9), 0 0 45px rgba(212,175,55,0.5);
  text-transform: uppercase;
  opacity: 1;
}
#splash-names {
  color: #ffd700;
  text-shadow: 0 0 40px rgba(212,175,55,0.9), 0 0 80px rgba(212,175,55,0.5), 0 0 120px rgba(212,175,55,0.25);
}
#splash-subtitle {
  color: rgba(212,175,55,0.85);
  text-shadow: 0 0 15px rgba(212,175,55,0.6);
  opacity: 1;
}
#splash-date {
  color: rgba(247,231,167,0.6);
  letter-spacing: 0.35em;
  font-size: 0.65rem;
}
#splash-line {
  background: linear-gradient(90deg, transparent, #c9a84c, #ffd700, #c9a84c, transparent);
  box-shadow: 0 0 15px rgba(212,175,55,0.9), 0 0 35px rgba(212,175,55,0.5);
  animation: linePulse 3s ease-in-out infinite;
  height: 1px;
}
@keyframes linePulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 10px rgba(212,175,55,0.7); }
  50% { opacity: 1; box-shadow: 0 0 28px rgba(212,175,55,1), 0 0 55px rgba(212,175,55,0.6); }
}
#splash-enter {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.55);
  color: #d4af37;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(212,175,55,0.14), inset 0 0 16px rgba(212,175,55,0.05);
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  text-shadow: 0 0 12px rgba(212,175,55,0.9);
  transition: all 0.35s ease;
}
#splash-enter:hover {
  background: rgba(212,175,55,0.2);
  border-color: #d4af37;
  box-shadow: 0 0 40px rgba(212,175,55,0.45), inset 0 0 28px rgba(212,175,55,0.1);
  transform: translateY(-2px);
}
