:root {
  --primary: #e4c9b6;
  --secondary: #d6a499;
  --tertiary: #e6d6bd;
  --cream: #fbf4e8;
  --text: #6b4a3f;
  --text-soft: #8a6b5c;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(180deg, var(--tertiary) 0%, var(--primary) 100%);
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin: 0;
}

/* ---------- decorative floating balloons ---------- */
.balloons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.balloon {
  position: absolute;
  bottom: -140px;
  width: 34px;
  height: 44px;
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  opacity: 0.6;
  animation: float 18s linear infinite;
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 1px;
  height: 30px;
  background: rgba(107, 74, 63, 0.25);
}

.b1 { left: 6%;  background: var(--secondary); animation-delay: 0s;  animation-duration: 17s; }
.b2 { left: 20%; background: var(--cream);     animation-delay: 3s;  animation-duration: 21s; width: 28px; height: 36px; }
.b3 { left: 38%; background: var(--primary);   animation-delay: 7s;  animation-duration: 19s; }
.b4 { left: 55%; background: var(--secondary); animation-delay: 2s;  animation-duration: 23s; width: 30px; height: 40px; }
.b5 { left: 70%; background: var(--tertiary);  animation-delay: 9s;  animation-duration: 18s; }
.b6 { left: 84%; background: var(--cream);     animation-delay: 5s;  animation-duration: 22s; width: 26px; height: 34px; }
.b7 { left: 94%; background: var(--secondary); animation-delay: 12s; animation-duration: 20s; }

@keyframes float {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); }
  50%  { transform: translateY(-60vh) translateX(16px) rotate(6deg); }
  100% { transform: translateY(-130vh) translateX(-10px) rotate(-4deg); }
}

/* ---------- layout (mobile-first) ---------- */
main, header, footer {
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  padding: 32px 16px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.number-badge {
  position: absolute;
  bottom: 6%;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 700;
  border: 4px solid var(--cream);
  box-shadow: 0 8px 18px rgba(214, 164, 153, 0.45);
  transform: rotate(-10deg);
}

.photo-wrap {
  position: relative;
  margin: 10px auto 16px;
  width: min(88vw, 300px);
  height: min(96vw, 330px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(107, 74, 63, 0.25));
}

.hero h1 {
  font-size: 1.9rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 380px;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--cream);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(107, 74, 63, 0.12);
  border: 1px solid rgba(230, 214, 189, 0.6);
  text-align: center;
}

.card h2 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.detail-row {
  font-size: 1rem;
  padding: 6px 0;
  line-height: 1.4;
}

.map-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.map-link:hover {
  opacity: 0.7;
}

.note {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  background: var(--secondary);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(214, 164, 153, 0.4);
}

.rsvp p {
  color: var(--text-soft);
  margin: 0 0 18px;
  font-size: 0.98rem;
}

.whatsapp-btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(214, 164, 153, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(214, 164, 153, 0.5);
}

footer {
  text-align: center;
  padding: 8px 16px 40px;
  color: var(--text-soft);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
}

/* ---------- larger screens ---------- */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .photo-wrap {
    width: min(80vw, 340px);
    height: min(88vw, 370px);
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 56px 20px 32px;
  }

  .number-badge {
    width: 68px;
    height: 68px;
    font-size: 36px;
    right: -10px;
  }

  .photo-wrap {
    width: 380px;
    height: 400px;
    margin: 16px auto 20px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  main {
    padding: 0 20px 40px;
    gap: 22px;
  }

  .card {
    padding: 30px 32px;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .detail-row {
    font-size: 1.05rem;
  }

  footer {
    font-size: 1.2rem;
  }
}
