﻿:root {
  --bg: #eef4ff;
  --bg-soft: rgba(255,255,255,0.7);
  --text: #0a1a2e;
  --muted: #4a70a0;
  --line: rgba(60,110,200,0.2);
  --gold: #3a7abf;
  --gold-strong: #5a9de0;
  --shadow: 0 20px 60px rgba(60,110,200,0.15);
  --radius: 26px;
  --container: min(1180px, calc(100% - 32px));
}

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

body {
  color: var(--text);
  background: linear-gradient(160deg, #eef4ff 0%, #cfe0ff 50%, #e8f0ff 100%);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

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

#starfield { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hero, .section, .footer { position: relative; z-index: 1; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-size: cover;
  background-position: center;
  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%
    );
}


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

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

.eyebrow::before, .eyebrow::after { content: "✦"; font-size: 0.7rem; opacity: 0.7; }

h1 {
  font-family: "Allura", cursive;
  text-transform: capitalize;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 1;
  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: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 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.4rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--gold);
}

.hero__separator {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  margin: 16px auto 20px;
}

.hero__date {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero__location {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  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(60,110,200,0.4);
}

.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); }

/* ── SECTIONS ── */
.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.24em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.section__tag::before, .section__tag::after { content: "✦"; font-size: 0.7rem; opacity: 0.8; }

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

.message-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
}

.message-card p,
.detail-card p,
.map-copy p,
.rsvp-card p,
.footer p,
.footer small {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.9;
  color: var(--muted);
  font-weight: 300;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.detail-card {
  padding: 32px 28px;
  min-height: 200px;
}

.detail-card h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.accordion-gallery {
  display: flex;
  gap: 12px;
  min-height: 520px;
}

.accordion-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  flex: 1 1 0;
  border: 1px solid var(--line);
  transition: flex 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  cursor: pointer;
}

.accordion-item:hover, .accordion-item.active {
  flex: 3.5 1 0;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.accordion-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.accordion-item:hover img, .accordion-item.active img { transform: scale(1.03); }

.accordion-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
}

.accordion-item__content {
  position: absolute;
  left: 22px; right: 22px; bottom: 24px;
  color: #fff;
}

.accordion-item__content h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 6px; color: #fff; }
.accordion-item__content p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.9rem; max-width: 32ch; line-height: 1.6; }

.map-card {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 24px;
  align-items: stretch;
  padding: clamp(24px, 3vw, 40px);
}

.map-copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; }

.map-frame-wrap {
  min-height: 380px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}

#map-frame { width: 100%; height: 100%; min-height: 380px; border: 0; }

.rsvp-card {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px);
}

.footer { padding: 32px 16px 48px; }

.footer__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s 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: 300px; flex: unset; }
}

.hero__actions-mobile { display: none; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  h2 { font-size: clamp(2rem, 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; }
}
/* ── 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: KIDS PARTY === */
#splash { background: #1a3a6b; }
#splash-overlay {
  background: linear-gradient(155deg, rgba(26,58,107,0.78) 0%, rgba(55,30,110,0.58) 50%, rgba(26,58,107,0.82) 100%);
}
#splash-eyebrow {
  font-family: 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: #ffd93d;
  text-shadow: 0 0 16px rgba(255,217,61,1), 2px 2px 0 rgba(255,100,50,0.6);
  text-transform: uppercase;
  opacity: 1;
}
#splash-names {
  color: #ffffff;
  text-shadow: 0 0 35px rgba(255,107,107,0.8), 0 0 70px rgba(78,205,196,0.6), 3px 3px 0 rgba(255,217,61,0.45);
}
#splash-subtitle {
  color: rgba(255,217,61,1);
  text-shadow: 0 0 18px rgba(255,217,61,0.8), 0 0 36px rgba(255,107,107,0.5);
  opacity: 1;
}
#splash-date {
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}
#splash-line {
  background: linear-gradient(90deg, transparent, #ff6b6b, #ffd93d, #4ecdc4, #a29bfe, #ff6b6b, transparent);
  box-shadow: 0 0 14px rgba(255,107,107,0.9), 0 0 28px rgba(255,217,61,0.6);
  animation: linePulse 1.8s ease-in-out infinite;
  height: 3px;
  border-radius: 3px;
}
@keyframes linePulse {
  0% { opacity: 0.6; filter: hue-rotate(0deg); }
  50% { opacity: 1; filter: hue-rotate(50deg); box-shadow: 0 0 22px rgba(255,107,107,1); }
  100% { opacity: 0.6; filter: hue-rotate(0deg); }
}
#splash-enter {
  background: rgba(255,217,61,0.15);
  border: 2px solid rgba(255,217,61,0.75);
  color: #ffd93d;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(255,217,61,0.22), 0 0 44px rgba(255,107,107,0.12);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  text-shadow: 0 0 12px rgba(255,217,61,1);
  border-radius: 50px;
  transition: all 0.28s ease;
  font-weight: 600;
}
#splash-enter:hover {
  background: rgba(255,217,61,0.3);
  border-color: #ffd93d;
  box-shadow: 0 0 35px rgba(255,217,61,0.55), 0 0 70px rgba(255,107,107,0.22);
  transform: translateY(-3px) scale(1.04);
}
