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

:root {
  --sky: #D2E8F5;
  --charcoal: #3B3B3B;
  --charcoal-light: #5A5A5A;
  --warm: #D4A574;
  --warm-dark: #A0896C;
  --text: #3B3B3B;
  --text-light: #6B7280;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.7);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Alice', 'Lato', Georgia, serif;
  color: var(--text);
  background: linear-gradient(180deg, #B8D8EE 0%, #C8E2F4 20%, #D6ECF8 50%, #DCEEF8 75%, #C6DDE8 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== WATERCOLOR CLOUDS ===== */
.clouds-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 120px; height: 40px;
  background: rgba(255,255,255,0.45);
  border-radius: 40px;
  filter: blur(6px);
}
/* Multi-lobe bumps via pseudo-elements — recognizable cloud shape */
.cloud::before {
  content: '';
  position: absolute;
  width: 55px; height: 55px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  top: -28px; left: 18px;
  filter: blur(4px);
}
.cloud::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  top: -18px; left: 58px;
  filter: blur(4px);
}

.cloud-fluffy { /* no-op, size set per cloud */ }

/* Cloud placements — gentle horizontal float, always on screen */
.cloud-1 { top: 6%; left: 5%; width: 300px; height: 100px; animation: float-h1 50s ease-in-out infinite; opacity: 0.7; }
.cloud-1::before { width: 135px; height: 135px; top: -70px; left: 45px; }
.cloud-1::after { width: 100px; height: 100px; top: -45px; left: 145px; }

.cloud-2 { top: 18%; left: 55%; width: 216px; height: 72px; animation: float-h2 65s ease-in-out infinite; opacity: 0.55; }
.cloud-2::before { width: 100px; height: 100px; top: -50px; left: 32px; }
.cloud-2::after { width: 72px; height: 72px; top: -32px; left: 105px; }

.cloud-3 { top: 35%; left: -2%; width: 156px; height: 52px; animation: float-h1 45s ease-in-out infinite; animation-delay: -15s; opacity: 0.5; }
.cloud-3::before { width: 72px; height: 72px; top: -36px; left: 24px; }
.cloud-3::after { width: 52px; height: 52px; top: -24px; left: 76px; }

.cloud-4 { top: 52%; left: 40%; width: 240px; height: 80px; animation: float-h2 70s ease-in-out infinite; animation-delay: -25s; opacity: 0.45; }
.cloud-4::before { width: 110px; height: 110px; top: -56px; left: 36px; }
.cloud-4::after { width: 80px; height: 80px; top: -36px; left: 116px; }

.cloud-5 { top: 72%; left: 15%; width: 180px; height: 60px; animation: float-h1 55s ease-in-out infinite; animation-delay: -35s; opacity: 0.4; }
.cloud-5::before { width: 82px; height: 82px; top: -42px; left: 27px; }
.cloud-5::after { width: 60px; height: 60px; top: -27px; left: 87px; }

@keyframes float-h1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(60px); }
}
@keyframes float-h2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-50px); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6vh 24px 2vh;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: both;
}

.hero-script {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--charcoal-light);
  text-align: left;
  padding-left: 8%;
  margin-bottom: -0.6em;
  position: relative;
  z-index: 3;
}

.hero-title-block {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  position: relative;
}

.hero-balloon-wrap {
  flex-shrink: 0;
  animation: balloon-float 6s ease-in-out infinite;
}

.hero-balloon {
  width: clamp(100px, 20vw, 200px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
  margin-bottom: -10px;
}

.hero-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: -8px;
  margin-bottom: 8px;
}

.one-NE {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(4.5rem, 12vw, 11rem);
  font-weight: 900;
  color: var(--charcoal);
  line-height: 0.85;
  letter-spacing: -2px;
}

.derful {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--charcoal-light);
  margin-top: -0.4em;
  margin-left: 6px;
}

.hero-world {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: clamp(8px, 2.5vw, 24px);
  margin-top: -0.1em;
  text-align: center;
}

@keyframes balloon-float {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  33%      { transform: translateY(-14px) rotate(0.5deg); }
  66%      { transform: translateY(-6px) rotate(-0.3deg); }
}

/* ===== DETAILS ===== */
.details {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6vh 24px 6vh;
}

.section-subtitle {
  font-family: 'Alice', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.date-layout {
  margin: 0 auto;
  max-width: 600px;
}

.date-label-top {
  font-family: 'Alice', serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--charcoal);
  display: block;
  margin-bottom: 6px;
}

.date-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
}

.date-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.date-line {
  display: block;
  width: clamp(80px, 12vw, 150px);
  height: 1px;
  background: var(--charcoal);
  opacity: 0.3;
}

.date-label {
  font-family: 'Alice', serif;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--charcoal);
  white-space: nowrap;
}

.date-big {
  font-family: 'Fraunces', serif;
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}

.venue {
  font-family: 'Alice', serif;
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--charcoal);
  margin-top: 20px;
}

/* ===== SECTIONS ===== */
.directions, .gifts, .rsvp {
  position: relative;
  z-index: 2;
  padding: 6vh 0;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 28px;
}

/* ===== DIRECTIONS ===== */
.address-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 20px;
}

.address-label {
  font-family: 'Alice', serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.address {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.map-link {
  display: inline-block;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--warm);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.map-link:hover { color: var(--warm-dark); border-color: var(--warm-dark); }

.parking-note {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.parking-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.parking-note p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }

/* ===== GIFTS ===== */
.gifts { text-align: center; }

.gifts-note {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.wishlist-btn {
  display: inline-block;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 36px;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wishlist-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* ===== RSVP ===== */
.rsvp { padding-bottom: 5vh; }

.rsvp-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1rem;
}

.rsvp-form {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: 'Alice', serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(59,59,59,0.12);
  border-radius: 10px;
  font-family: 'Alice', serif;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255,255,255,0.65);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--charcoal-light); box-shadow: 0 0 0 3px rgba(59,59,59,0.06); }
.form-group input::placeholder { color: #94a3b8; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--charcoal);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Alice', serif;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.submit-btn:hover { background: var(--charcoal-light); transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Success / Error */
.rsvp-success {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 48px 32px;
  animation: fadeInUp 0.5s ease-out;
}
.success-balloon { font-size: 3rem; margin-bottom: 12px; animation: balloon-float 4s ease-in-out infinite; }
.rsvp-success h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--charcoal); margin-bottom: 8px; }
.rsvp-success p { color: var(--text-light); font-size: 1rem; line-height: 1.6; }

.rsvp-error {
  text-align: center;
  max-width: 500px;
  margin: 12px auto 0;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 12px;
  padding: 16px;
  animation: fadeInUp 0.3s ease-out;
}
.rsvp-error p { color: #991b1b; font-size: 0.9rem; }
.rsvp-error a { color: #991b1b; }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6vh 24px 5vh;
}
.footer-text { font-family: 'Great Vibes', cursive; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--charcoal-light); }
.footer-sub { font-family: 'Alice', serif; font-size: 0.75rem; color: var(--text-light); letter-spacing: 3px; text-transform: uppercase; margin-top: 6px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeIn { from { opacity: 0; transform: scale(1.15) translateY(16px); } to { opacity: 1; transform: scale(1.15) translateY(0); } }

@keyframes heroFadeInMd { from { opacity: 0; transform: scale(1.15) translateY(16px); } to { opacity: 1; transform: scale(1.15) translateY(0); } }
@keyframes heroFadeInLg { from { opacity: 0; transform: scale(1.25) translateY(16px); } to { opacity: 1; transform: scale(1.25) translateY(0); } }
@keyframes heroFadeInXl { from { opacity: 0; transform: scale(1.3) translateY(16px); } to { opacity: 1; transform: scale(1.3) translateY(0); } }

/* ===== RESPONSIVE — Mobile ===== */
@media (max-width: 600px) {
  .hero { padding: 6vh 16px 0; min-height: 55vh; }
  .hero-content { animation: heroFadeIn 1s ease-out; animation-fill-mode: both; }
  .rsvp-form { padding: 24px 20px; }
  .address-card { padding: 24px; }

  /* Cloud sizes handled by base styles */
}

@media (max-width: 380px) {
  .hero-balloon { width: 80px !important; }
}

/* ===== RESPONSIVE — Desktop / Large ===== */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .hero { min-height: 60vh; }
  .hero-content { animation: heroFadeInMd 1s ease-out; animation-fill-mode: both; }

  .address-card { padding: 40px; }
  .rsvp-form { padding: 44px; max-width: 560px; }
  .gifts-note { max-width: 560px; }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1100px;
  }

  .hero { min-height: 65vh; padding: 6vh 48px 2vh; }
  .hero-content { animation: heroFadeInLg 1s ease-out; animation-fill-mode: both; }

  .rsvp-form { max-width: 700px; }
  .address-card { max-width: 700px; margin-left: auto; margin-right: auto; }
  .parking-note { max-width: 700px; margin-left: auto; margin-right: auto; }
  .gifts-note { max-width: 700px; }

  /* Cloud sizes handled by base styles */
}

@media (min-width: 1400px) {
  .container {
    max-width: 880px;
  }

  .hero-content { animation: heroFadeInXl 1s ease-out; animation-fill-mode: both; }

  /* Cloud sizes handled by base styles */
}
