/* ══════════════════════════════════════════════
   VARIABLES & RESET
══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold-light:   #f5d78e;
  --gold-mid:     #c8a951;
  --gold-dark:    #8b6914;
  --gold-glow:    #ffd700;
  --black:        #050505;
  --black-card:   #0c0c0c;
  --black-mid:    #131313;
  --text-white:   #f0ead6;
  --text-muted:   #9a8c6e;

  --gradient-gold: linear-gradient(135deg, #f5d78e 0%, #c8a951 35%, #ffd700 55%, #8b6914 80%, #c8a951 100%);
  --gradient-gold-v: linear-gradient(180deg, #f5d78e 0%, #c8a951 50%, #8b6914 100%);
  --radius: 1.25rem;
  --shadow-gold: 0 0 40px rgba(200, 169, 81, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--text-white);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  position: relative;
  overflow-x: hidden;
}

/* ── ANIMATED STARS ── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-glow);
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%       { opacity: var(--op, 0.7); transform: scale(1); }
}

/* ══════════════════════════════════════════════
   CARD WRAPPER
══════════════════════════════════════════════ */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--black-card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(200,169,81,0.1),
    0 8px 60px rgba(0,0,0,0.8),
    var(--shadow-gold);
  animation: fadeUp 0.8s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.card__header {
  position: relative;
  background:
    url('gold_bg.png') center/cover no-repeat,
    radial-gradient(ellipse at top, #1a1200 0%, var(--black) 70%);
  padding: 3rem 2rem 2rem;
  text-align: center;
  overflow: visible;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card__header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.card__header > * { position: relative; z-index: 1; }

/* Decorative images */
.deco { position: absolute; pointer-events: none; z-index: 2; }
.deco--balloons {
  top: -30px;
  right: -10px;
  width: 190px;
  opacity: 0.95;
  filter: drop-shadow(0 8px 24px rgba(200,169,81,0.45));
  animation: floatBalloon 6s ease-in-out infinite;
}
@keyframes floatBalloon {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(3deg); }
}

.dots-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.6rem;
}
.dots-row span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gradient-gold);
}

.tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-mid);
  margin-bottom: 0.4rem;
}

.separator-line {
  width: 60%;
  height: 1px;
  background: var(--gradient-gold);
  margin: 0.4rem auto 1rem;
  opacity: 0.6;
}

/* Hero Number */
.hero-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 0.1em;
}
.hero-mis {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-age {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5.5rem, 22vw, 8.5rem);
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(255,215,0,0.5));
  animation: shimmer 3s linear infinite;
  background-size: 200% auto;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-anos {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
}

.sparkle-bar {
  width: 50%;
  height: 2px;
  background: var(--gradient-gold);
  margin: 1.2rem auto 0;
  border-radius: 99px;
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ══════════════════════════════════════════════
   INTRO
══════════════════════════════════════════════ */
.card__intro {
  position: relative;
  background: var(--black-mid);
  padding: 2rem 2.5rem 1.6rem;
  text-align: center;
  border-top: 1px solid rgba(200,169,81,0.15);
  overflow: visible;
}
.deco--champagne {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  opacity: 0.92;
  filter: drop-shadow(-8px 0 20px rgba(200,169,81,0.35));
  animation: floatChampagne 7s ease-in-out infinite;
  z-index: 5;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 35%, black 80%, transparent 100%),
                      linear-gradient(to bottom, black 20%, black 75%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(to right, transparent 0%, black 35%, black 80%, transparent 100%),
              linear-gradient(to bottom, black 20%, black 75%, transparent 100%);
  mask-composite: intersect;
}
@keyframes floatChampagne {
  0%, 100% { transform: translateY(-50%) rotate(2deg); }
  50%       { transform: translateY(calc(-50% - 8px)) rotate(-2deg); }
}

.intro-main {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-white);
  margin-bottom: 0.9rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}
.intro-sub {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
}
.intro-sub strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   DETAILS
══════════════════════════════════════════════ */
.card__details {
  background: var(--black-card);
  padding: 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid rgba(200,169,81,0.1);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(200,169,81,0.04);
  border: 1px solid rgba(200,169,81,0.12);
  border-radius: 0.7rem;
  transition: background 0.3s, border-color 0.3s;
}
.detail-item:hover {
  background: rgba(200,169,81,0.09);
  border-color: rgba(200,169,81,0.3);
}

.detail-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: rgba(200,169,81,0.1);
  border: 1px solid rgba(200,169,81,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-icon svg {
  width: 18px; height: 18px;
  color: var(--gold-mid);
}

.detail-text {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.detail-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-mid);
}
.detail-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-white);
}
.location-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════
   GOLD DIVIDER
══════════════════════════════════════════════ */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 2rem;
  background: var(--black-mid);
}
.gold-line {
  flex: 1;
  height: 1px;
  background: var(--gradient-gold);
  opacity: 0.4;
}
.diamond {
  font-size: 0.6rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   BOTTOM: SIGNATURE + LOCATION
══════════════════════════════════════════════ */
.card__bottom {
  background: var(--black-mid);
  padding: 1.8rem 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  border-top: 1px solid rgba(200,169,81,0.1);
}

/* Signature */
.signature-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.signature-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.signature-underline {
  width: 80%;
  height: 1.5px;
  background: var(--gradient-gold);
  border-radius: 99px;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

/* RSVP block */
.rsvp-block {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.rsvp-icon {
  min-width: 28px;
  width: 28px; height: 28px;
  background: rgba(200,169,81,0.1);
  border: 1px solid rgba(200,169,81,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rsvp-icon svg { width: 14px; height: 14px; color: var(--gold-mid); }
.rsvp-text { display: flex; flex-direction: column; gap: 0.2rem; }
.rsvp-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-mid);
}
.rsvp-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* WhatsApp button */
.btn-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #1a5c30;
  border: 1px solid #25d366;
  border-radius: 0.5rem;
  color: #25d366;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  margin-top: 0.4rem;
}
.btn-confirm:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}
.wa-icon { width: 16px; height: 16px; }

/* Location card */
.location-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(200,169,81,0.2);
  border-radius: 0.9rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.location-card__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}
.location-card__header svg {
  width: 14px; height: 14px;
  color: var(--gold-mid);
  min-width: 14px;
}
.location-card__header span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-mid);
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.qr-img {
  width: 100px; height: 100px;
  border: 2px solid var(--gold-dark);
  border-radius: 0.5rem;
  padding: 4px;
  background: var(--black);
  transition: transform 0.3s;
}
.qr-img:hover { transform: scale(1.05); }

.qr-caption {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* Maps button */
.btn-maps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem;
  background: rgba(200,169,81,0.12);
  border: 1px solid var(--gold-mid);
  border-radius: 0.5rem;
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-maps svg { width: 14px; height: 14px; }
.btn-maps:hover {
  background: var(--gold-mid);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,81,0.4);
}

.maps-address {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  word-break: break-all;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.card__footer {
  background: var(--black-card);
  border-top: 1px solid rgba(200,169,81,0.12);
  padding: 1.4rem 2rem 1.6rem;
  text-align: center;
}
.footer-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.8rem;
}
.footer-dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-mid);
  opacity: 0.5;
}
.footer-main {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}
.footer-sub {
  font-family: 'Great Vibes', cursive;
  font-size: 1.3rem;
  color: var(--gold-light);
  opacity: 0.8;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  body { padding: 0.5rem 0.5rem 3rem; }

  .card__bottom {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .deco--balloons { width: 140px; top: -15px; right: -5px; }
  .deco--champagne { width: 130px; right: -15px; }
  .card__details { padding: 1.2rem 1rem; }
  .card__intro { padding: 1.6rem 1.2rem; }
  .card__header { padding: 2.5rem 1.2rem 1.8rem; }
  .card__bottom { padding: 1.5rem 1rem; }
}
