:root {
  --yellow: #ffb703;
  --orange: #fb8500;
  --pink: #ff5d8f;
  --teal: #219ebc;
  --dark: #2b2b2b;
  --cream: #fffaf0;
  --card: #ffffff;
  --radius: 18px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, system-ui, sans-serif;
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-weight: 800;
  margin: 0 0 0.4em;
}

a { color: var(--orange); }

img { max-width: 100%; display: block; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  box-shadow: 0 8px 20px rgba(251, 133, 0, 0.35);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark);
  text-decoration: none;
}
.logo span {
  color: var(--pink);
}
nav { display: flex; gap: 18px; align-items: center; }
nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
}
nav a.nav-cta {
  background: var(--yellow);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 70px;
  background: radial-gradient(circle at 20% 20%, #fff0d9, transparent 55%),
              radial-gradient(circle at 80% 10%, #ffd6e6, transparent 50%),
              linear-gradient(180deg, #fff9ef, #fffaf0);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.eyebrow { font-weight: 700; color: var(--teal); letter-spacing: 0.03em; }
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  margin-bottom: 0.3em;
}
.hero h1 .fifty {
  color: var(--pink);
  display: inline-block;
  transform: rotate(-4deg);
}
.hero-sub {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 2.2rem;
  flex-wrap: wrap;
}
.count-box {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 10px;
  min-width: 70px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.count-box span {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
}
.count-box small {
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--yellow) 6px, transparent 7px),
    radial-gradient(circle, var(--pink) 6px, transparent 7px),
    radial-gradient(circle, var(--teal) 6px, transparent 7px),
    radial-gradient(circle, var(--orange) 6px, transparent 7px);
  background-size: 140px 140px, 180px 180px, 160px 160px, 200px 200px;
  background-position: 5% 15%, 85% 8%, 70% 60%, 15% 75%;
  opacity: 0.5;
}

/* ---------- Info ---------- */
.info, .gallery-section, .rsvp {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px;
  text-align: center;
}
.info-lead { color: #666; font-size: 1.05rem; margin-bottom: 2.2rem; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
  margin-bottom: 2.5rem;
}
.info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.info-icon { font-size: 2rem; margin-bottom: 8px; }
.info-card h3 { margin-bottom: 0.3em; }
.info-card p { color: #555; margin: 0; line-height: 1.5; }
.map-link { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: none; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  aspect-ratio: 1 / 1;
  transition: transform 0.2s ease;
}
.gallery figure:hover { transform: scale(1.04) rotate(-1deg); }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- RSVP ---------- */
.rsvp-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  background: var(--card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rsvp-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #444;
}
.rsvp-form input,
.rsvp-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e5ddcf;
  background: #fffdf9;
  font-weight: 400;
  color: var(--dark);
}
.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.rsvp-form button { margin-top: 6px; }
.form-status {
  min-height: 1.4em;
  font-weight: 700;
  margin: 0;
  text-align: center;
}
.form-status.ok { color: #2a9d3f; }
.form-status.error { color: #d9534f; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 50px 20px 60px;
  color: #666;
}
.footer .contact a {
  font-weight: 700;
  text-decoration: none;
  margin: 0 4px;
}
.footer-small { font-size: 0.9rem; color: #999; }

@media (max-width: 600px) {
  .topbar-inner { padding: 12px 16px; }
  nav { gap: 10px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { padding: 60px 16px 50px; }
  .count-box { min-width: 60px; padding: 10px 8px; }
  .count-box span { font-size: 1.4rem; }
}
