﻿:root {
  --bg: #f8f4ff;
  --text: #2a1a4a;
  --muted: #8070b0;
  --line: rgba(140,110,200,0.2);
  --gold: #9070c0;
  --gold-strong: #b090e0;
  --shadow: 0 20px 60px rgba(140,110,200,0.18);
  --radius: 28px;
  --container: min(1180px, calc(100% - 32px));
}

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

body {
  color: var(--text);
  background-color: #f8f4ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23b090e0' opacity='0.15'%3E%3Cpolygon points='30,5 32,12 39,12 33,17 36,24 30,19 24,24 27,17 21,12 28,12' /%3E%3Cpolygon points='90,45 91.5,50 96,50 92,53 93.5,58 90,55 86.5,58 88,53 84,50 88.5,50' /%3E%3Cpolygon points='15,75 16,79 20,79 17,82 18,86 15,83 12,86 13,82 10,79 14,79' /%3E%3Cpolygon points='75,95 76.5,100 81,100 77,103 78.5,108 75,105 71.5,108 73,103 69,100 73.5,100' /%3E%3C/g%3E%3Cg fill='none' stroke='%239070c0' stroke-width='0.5' opacity='0.1'%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3Ccircle cx='60' cy='60' r='35'/%3E%3Ccircle cx='0' cy='0' r='15'/%3E%3Ccircle cx='120' cy='120' r='15'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

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

#starfield { position: fixed; inset: 0; z-index: 10; 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::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 50% 50%,
      transparent 0%,
      transparent 25%,
      rgba(8, 4, 18, 0.52) 100%
    ),
    radial-gradient(ellipse 30% 40% at 15% 20%,
      rgba(180, 130, 80, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(ellipse 25% 35% at 85% 75%,
      rgba(120, 90, 160, 0.10) 0%,
      transparent 70%
    );
}


/* Stele animate */
.hero__stars-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.star-anim {
  position: absolute;
  color: var(--anim-star-color, rgba(176,144,224,0.7));
  animation: twinkle ease-in-out infinite;
  font-size: 1rem;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

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

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

.eyebrow::before, .eyebrow::after { content: "★"; font-size: 0.7rem; opacity: 0.8; color: #b090e0; }

h1 {
  font-family: "Allura", cursive;
  text-transform: capitalize;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
  letter-spacing: 0.02em;
}

.name-fata { color: #e0609a; text-shadow: 0 0 16px rgba(220,80,150,0.45); }
.name-baiat { color: #3a9cd8; text-shadow: 0 0 16px rgba(58,156,216,0.45); }

h2 { font-family: "Cormorant Garamond", serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; margin: 0 0 16px; line-height: 1.1; color: var(--text); }
h3 { font-family: "Cormorant Garamond", serif; font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 400; margin-bottom: 8px; color: var(--gold); }

.hero__separator { width: 80px; height: 1px; background: linear-gradient(90deg, transparent, rgba(176,144,224,0.8), transparent); margin: 16px auto; }
.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.75); letter-spacing: 0.15em; margin-bottom: 44px; font-weight: 200; }
.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 32px; border-radius: 999px; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.12em; 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: #fff; box-shadow: 0 8px 24px rgba(144,112,192,0.4); }
.btn--primary:hover { box-shadow: 0 12px 32px rgba(144,112,192,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.22); }
.btn--whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); 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.7rem; color: var(--gold); margin-bottom: 12px; font-weight: 300; }
.section__tag::before, .section__tag::after { content: "★"; font-size: 0.65rem; opacity: 0.7; }
.section__divider { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 16px auto 0; }

.glass-card { background: rgba(248,244,255,0.88); backdrop-filter: blur(14px); border: 1px solid rgba(140,110,200,0.15); border-radius: var(--radius); box-shadow: var(--shadow); }

.story-card { max-width: 860px; margin: 0 auto; padding: clamp(28px, 4vw, 52px); text-align: center; }
.story-card__icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 20px; opacity: 0.8; }
.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; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.detail-card:hover { transform: translateY(-4px) rotate(0.5deg); box-shadow: 0 24px 64px rgba(140,110,200,0.25); }
.detail-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.detail-card h3 { font-size: 0.75rem; 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: 500px; }
.accordion-item { position: relative; overflow: hidden; border-radius: 24px; flex: 1 1 0; border: 1px solid rgba(140,110,200,0.15); 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(140,110,200,0.3); }
.accordion-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 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,74,0.75) 100%); }
.accordion-item__content { position: absolute; left: 20px; right: 20px; bottom: 22px; color: #fff; }
.accordion-item__content h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); margin-bottom: 4px; color: #e8d8ff; }
.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: 16px; }
.map-copy__icon { font-size: 2rem; }
.map-frame-wrap { min-height: 360px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
#map-frame, #map-biserica-frame { width: 100%; height: 100%; min-height: 360px; border: 0; filter: saturate(0.7) hue-rotate(30deg); }

.rsvp-card { text-align: center; max-width: 680px; margin: 0 auto; padding: clamp(36px, 5vw, 64px); }
.rsvp-card__decoration { font-size: 2.5rem; margin-bottom: 20px; }

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

.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: "Cormorant Garamond", serif; font-size: clamp(3rem, 8vw, 5rem); font-weight: 300; color: var(--gold); line-height: 1; }
.countdown-label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 300; }

.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(2.8rem, 13vw, 4.5rem); }
  h2 { font-size: clamp(1.8rem, 9vw, 3rem); }
  .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; }
  .countdown-grid { gap: 12px; }
}
/* SVG icon styles */
.detail-card__icon, .map-copy__icon, .rsvp-card__decoration, .rsvp-icon { color: var(--gold); }
.detail-card__icon svg, .story-card__icon svg, .story-icon svg, .map-copy__icon svg, .rsvp-card__decoration svg, .rsvp-icon svg { display: block; margin: 0 auto; }

/* ── HERO BUTTON COLORS PER CHILD GENDER ── */
.hero__actions .btn:first-child,
.hero__actions-mobile .btn:first-child {
  background: linear-gradient(135deg, var(--btn1-color, var(--gold)), var(--btn1-strong, var(--gold-strong)));
  border-color: transparent;
  color: #fff;
  backdrop-filter: none;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.hero__actions .btn:last-child,
.hero__actions-mobile .btn:last-child {
  background: linear-gradient(135deg, var(--btn2-color, var(--gold)), var(--btn2-strong, var(--gold-strong)));
  border-color: transparent;
  color: #fff;
  backdrop-filter: none;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
/* ── SPLASH INTRO — MAGIC BUBBLE ORB PREMIUM (botez-3) ── */
body.spl-lock { overflow:hidden; }
#spl{position:fixed;inset:0;z-index:200000;cursor:pointer;overflow:hidden;
  background:radial-gradient(ellipse at center,#0f0520 0%,#050010 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;}
#spl canvas{position:absolute;inset:0;pointer-events:none;}
.spl3-orb-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:280px;height:280px;}
.spl3-ring{position:absolute;border-radius:50%;border:1px solid;animation:spl3RingPulse 3s ease-in-out infinite;}
.spl3-ring--1{width:280px;height:280px;border-color:rgba(201,168,76,0.4);animation-delay:0s;}
.spl3-ring--2{width:340px;height:340px;border-color:rgba(201,168,76,0.2);animation-delay:0.5s;}
.spl3-ring--3{width:400px;height:400px;border-color:rgba(201,168,76,0.1);animation-delay:1s;}
@keyframes spl3RingPulse{0%,100%{transform:scale(1);opacity:1;}50%{transform:scale(1.04);opacity:0.6;}}
.spl3-orb{position:relative;width:240px;height:240px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  animation:spl3OrbIn 1.2s cubic-bezier(0.22,1,0.36,1) both;}
@keyframes spl3OrbIn{from{transform:scale(0.2);opacity:0;}to{transform:scale(1);opacity:1;}}
.spl3-orb-shine{position:absolute;top:15%;left:20%;width:35%;height:25%;border-radius:50%;background:rgba(255,255,255,0.25);filter:blur(8px);pointer-events:none;}
.spl3-orb-content{position:relative;z-index:2;text-align:center;padding:20px;}
.spl3-orb-tag{font-size:9px;letter-spacing:4px;color:rgba(255,255,255,0.6);text-transform:uppercase;margin-bottom:10px;animation:spl3FadeIn 0.8s ease 0.8s both;}
.spl3-name{font-family:'Allura',cursive;font-size:clamp(28px,6vw,44px);color:#fff;display:block;text-shadow:0 2px 12px rgba(0,0,0,0.4);animation:spl3NameIn 1s cubic-bezier(0.22,1,0.36,1) 0.6s both;}
@keyframes spl3NameIn{from{opacity:0;transform:scale(0.8);}to{opacity:1;transform:none;}}
.spl3-divider{width:40px;height:1px;background:rgba(255,255,255,0.4);margin:10px auto;animation:spl3FadeIn 0.8s ease 1s both;}
.spl3-date{font-size:10px;letter-spacing:2px;color:rgba(255,255,255,0.55);text-transform:uppercase;animation:spl3FadeIn 0.8s ease 1.2s both;}
@keyframes spl3FadeIn{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
.spl3-hint{position:relative;z-index:5;font-size:11px;letter-spacing:3px;color:rgba(255,255,255,0.3);text-transform:uppercase;margin-top:30px;animation:spl3HintPulse 2.5s ease-in-out 2s infinite;}
@keyframes spl3HintPulse{0%,100%{opacity:0.3;}50%{opacity:0.7;}}
#spl.spl-opening .spl3-orb{animation:spl3OrbExpand 0.8s cubic-bezier(0.4,0,0.2,1) forwards!important;}
@keyframes spl3OrbExpand{to{transform:scale(12);opacity:0;}}
#spl.spl-opening .spl3-ring,#spl.spl-opening .spl3-hint{opacity:0;transition:opacity 0.3s;}
#spl.spl-out{opacity:0;transition:opacity 0.4s ease 0.6s;pointer-events:none;}


/* ═══════════════════════════════════════════
   NAȘII
═══════════════════════════════════════════ */
.nasi-wrapper { text-align: center; padding: clamp(20px, 3vw, 40px) 0 clamp(32px, 4vw, 56px); }
.nasi-eyebrow { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-style: italic; font-weight: 300; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 36px; }
.nasi-pair { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px); flex-wrap: wrap; }
.nasi-person { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nasi-role { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.nasi-name { font-family: 'Allura', cursive; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--text); line-height: 1.1; }
.nasi-separator { opacity: 0.6; flex-shrink: 0; }
.rsvp-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn--rsvp-yes { background: linear-gradient(135deg, #4a9b6f, #62c48f); color: #fff; box-shadow: 0 8px 24px rgba(74,155,111,0.35); min-height: 52px; padding: 0 32px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer; text-decoration: none; }
.btn--rsvp-yes:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(74,155,111,0.5); }
.btn--rsvp-no { background: rgba(255,255,255,0.8); color: var(--muted); border: 1px solid rgba(180,140,100,0.25); backdrop-filter: blur(8px); min-height: 52px; padding: 0 32px; border-radius: 999px; font-size: 0.95rem; font-weight: 400; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.25s ease, background 0.25s ease; cursor: pointer; text-decoration: none; }
.btn--rsvp-no:hover { transform: translateY(-2px); background: rgba(255,240,240,0.9); }
.rsvp-icon { font-size: 1.1em; font-weight: 600; }
@media (max-width: 480px) { .rsvp-buttons { flex-direction: column; align-items: center; } .btn--rsvp-yes, .btn--rsvp-no { width: 100%; max-width: 280px; justify-content: center; } }