/* ===========================================================
   REYANSH TURNS ONE — Elegant Blue & White Invitation Site
   =========================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Toy Story Palette */
  --toy-yellow: #FFD100;
  --toy-red:    #E10600;
  --toy-green:  #89D329;
  --toy-purple: #6A0D83;
  --toy-blue:   #00AEEF;

  --blue-50:   hsl(196, 100%, 95%);
  --blue-100:  hsl(196, 100%, 85%);
  --blue-200:  hsl(196, 100%, 75%);
  --blue-300:  hsl(196, 100%, 65%);
  --blue-400:  hsl(196, 100%, 55%);
  --blue-500:  var(--toy-blue);
  --blue-600:  hsl(196, 100%, 40%);
  --blue-700:  hsl(196, 100%, 30%);

  --gold:      var(--toy-yellow);
  --gold-light:hsl(49, 100%, 80%);

  --white:     #ffffff;
  --off-white: #f5fcff;
  --gray-100:  #e0e0e0;
  --gray-200:  #cccccc;
  --gray-400:  #888888;
  --gray-600:  #555555;
  --ink:       #2b2b2b;

  /* Semantic */
  --surface:       var(--white);
  --surface-alt:   var(--blue-50);
  --text-primary:  var(--ink);
  --text-secondary:var(--gray-600);
  --text-muted:    var(--gray-400);
  --border:        var(--toy-yellow);
  --accent:        var(--toy-red);
  --accent-hover:  #C10400;

  /* Typography */
  --font-display: 'Chewy', cursive;
  --font-script:  'Bangers', cursive;
  --font-body:    'Quicksand', sans-serif;

  /* Spacing */
  --container:   1180px;
  --section-py:  clamp(50px, 7vw, 80px);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:   0 24px 64px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-blue: 0 8px 32px hsl(210, 72%, 46%, 0.25);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:    0.4s;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-body);
  background-color: var(--toy-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 150'%3E%3Cpath fill='%23ffffff' d='M130,50 a20,20 0 0 0 -35,-10 a30,30 0 0 0 -50,15 a20,20 0 0 0 -15,35 h100 a20,20 0 0 0 0,-40 z' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 300px 225px;
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
textarea, input, select { font-family: inherit; }

/* ---------- CONFETTI CANVAS ---------- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- NAV ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}
.nav-logo-script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--blue-600);
  line-height: 1;
}
.nav-logo-turns {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--accent); background: var(--blue-50); }

.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: var(--shadow-blue);
}
.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px hsl(210, 72%, 46%, 0.35);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--gray-100); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.15s, color 0.15s;
}
.mobile-link:hover { background: var(--blue-50); color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  padding: 12px 36px;
  border-radius: 12px;
  border: 3px solid var(--text-primary);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 4px 4px 0px var(--text-primary);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--text-primary);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--text-primary);
}

.btn-ghost {
  background: var(--toy-yellow);
  color: var(--text-primary);
  box-shadow: 4px 4px 0px var(--text-primary);
}
.btn-ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--text-primary);
}
.btn-ghost:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--text-primary);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--blue-400);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* ---------- SECTION COMMONS ---------- */
.section-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-py) clamp(20px, 5vw, 48px);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 400;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 80vh;
  background: linear-gradient(160deg,
    hsl(210, 100%, 97%) 0%,
    hsl(210, 90%, 93%) 35%,
    hsl(210, 80%, 88%) 70%,
    hsl(210, 70%, 84%) 100%
  );
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  padding: 80px clamp(20px, 6vw, 80px) 0;
  gap: 0 40px;
  position: relative;
  overflow: hidden;
}

/* Animated wave background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-wave {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: wave-pulse 8s ease-in-out infinite;
}
.wave1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--blue-300), transparent 70%);
  top: -300px; right: -200px;
  animation-delay: 0s;
}
.wave2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--blue-400), transparent 70%);
  bottom: -200px; left: -150px;
  animation-delay: -3s;
}
.wave3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--blue-200), transparent 70%);
  top: 40%; left: 30%;
  animation-delay: -6s;
  opacity: 0.08;
}

@keyframes wave-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

/* Clouds */
.hero-bubbles { position: absolute; inset: 0; overflow: hidden; }
.cloud {
  position: absolute;
  background: white;
  border-radius: 50px;
  animation: float-cloud 30s linear infinite;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}
.cloud::before { width: 50%; height: 100%; top: -40%; left: 15%; }
.cloud::after { width: 40%; height: 80%; top: -30%; right: 15%; }
.b1 { width: 150px; height: 50px; top: 15%; left: -150px; animation-duration: 25s; }
.b2 { width: 100px; height: 35px; top: 35%; left: -100px; animation-duration: 35s; animation-delay: -5s; }
.b3 { width: 180px; height: 60px; top: 10%; left: -180px; animation-duration: 40s; animation-delay: -15s; }
.b4 { width: 120px; height: 40px; top: 60%; left: -120px; animation-duration: 30s; animation-delay: -10s; }
.b5 { width: 90px;  height: 30px; top: 80%; left: -90px;  animation-duration: 45s; animation-delay: -20s; }
.b6 { width: 140px; height: 45px; top: 45%; left: -140px; animation-duration: 38s; animation-delay: -2s; }

@keyframes float-cloud {
  0% { transform: translateX(0); }
  100% { transform: translateX(120vw); }
}

/* Hero content */
.hero-content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-tagline {
  margin-bottom: 20px;
}

.tagline-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--blue-500);
  line-height: 1.2;
}

.hero-date {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero photo */
.hero-photo-wrap {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-photo-frame {
  position: relative;
  width: clamp(300px, 38vw, 500px);
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-xl), 0 0 0 6px rgba(255,255,255,0.7);
  animation: gentle-float 5s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.photo-badge {
  position: absolute;
  top: -16px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--gold) 0%, hsl(42, 100%, 48%) 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px hsl(42, 90%, 60%, 0.5), 0 0 0 4px white;
  animation: badge-spin 6s ease-in-out infinite;
}

@keyframes badge-spin {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50%       { transform: rotate(5deg) scale(1.06); }
}

.badge-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: white;
  line-height: 1;
}
.badge-label {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
}

.photo-confetti {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}
.photo-confetti span {
  font-size: 1.4rem;
  animation: confetti-float 4s ease-in-out infinite;
  opacity: 0.8;
}
.photo-confetti span:nth-child(1) { animation-delay: 0s; }
.photo-confetti span:nth-child(2) { animation-delay: -0.8s; }
.photo-confetti span:nth-child(3) { animation-delay: -1.6s; }
.photo-confetti span:nth-child(4) { animation-delay: -2.4s; }
.photo-confetti span:nth-child(5) { animation-delay: -3.2s; }

@keyframes confetti-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  50%       { transform: translateY(-20px) rotate(15deg); opacity: 1; }
}

/* Countdown */
.countdown-section {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 2;
  padding: 32px 0 40px;
}

.countdown-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 20px 36px;
  box-shadow: var(--shadow-md);
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-boxes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.count-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--blue-600);
  line-height: 1;
  transition: transform 0.2s var(--ease-spring);
}
.count-num.tick {
  animation: num-tick 0.25s var(--ease-spring);
}
@keyframes num-tick {
  from { transform: scale(1.25); color: var(--accent); }
  to   { transform: scale(1);    color: var(--blue-600); }
}

.count-unit {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 2px;
}

.count-colon {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue-300);
  line-height: 1;
  margin-bottom: 14px;
  font-weight: 300;
}

/* Scroll hint */
.scroll-hint {
  grid-column: 1 / -1;
  grid-row: 3;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 36px;
  opacity: 0.5;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--gray-400);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- MARQUEE SECTION ---------- */
.marquee-section {
  background: var(--blue-500);
  color: white;
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  display: flex;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-right: 16px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

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

.milestone-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.milestone-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-300), var(--blue-500), var(--blue-300));
  opacity: 0;
  transition: opacity 0.3s;
}
.milestone-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.milestone-card:hover::before { opacity: 1; }

.milestone-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
  animation: gentle-wiggle 4s ease-in-out infinite;
}
@keyframes gentle-wiggle {
  0%, 100% { transform: rotate(0); }
  25%       { transform: rotate(-6deg); }
  75%       { transform: rotate(6deg); }
}

.milestone-month {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.milestone-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- MOMENTS GALLERY ---------- */
.moments-section {
  background: var(--blue-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 16px;
}

.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}
.gallery-item:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--shadow-xl);
  z-index: 2;
}
.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover .gallery-img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(210,72%,20%,0.7) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-icon {
  font-size: 2rem;
  transform: scale(0) rotate(-15deg);
  transition: transform 0.3s var(--ease-spring);
}
.gallery-item:hover .gallery-icon { transform: scale(1) rotate(0deg); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 18px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  display: flex;
  flex-direction: column;
  gap: 3px;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-month {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.gallery-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: white;
  letter-spacing: 0.02em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 16, 30, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lb-close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 10;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); }

.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  color: white;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-spring);
}
.lightbox.open .lb-content { transform: scale(1); }

.lb-img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lb-caption-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lb-month {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.lb-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: white;
  letter-spacing: 0.02em;
}

/* ---------- PARTY DETAILS ---------- */
.details-section {
  background: var(--white);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.detail-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 20px;
  padding: 36px 24px 28px;
  text-align: center;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.detail-icon {
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.detail-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.detail-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Map placeholder */
.map-placeholder {
  background: var(--blue-50);
  border: 1px dashed var(--blue-200);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.map-pin-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.map-pin-dot {
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.map-pin-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--blue-300);
  border-radius: 50%;
  animation: ring-pulse 2s ease-out infinite;
}
@keyframes ring-pulse {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2);   opacity: 0; }
}

.map-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
}
.map-sub { font-size: 0.9rem; color: var(--text-muted); max-width: 400px; }

/* ---------- RSVP SECTION ---------- */
.rsvp-section {
  background: linear-gradient(160deg,
    var(--blue-700) 0%,
    var(--blue-600) 50%,
    var(--blue-500) 100%
  );
  position: relative;
  overflow: hidden;
}

.rsvp-bg-art { position: absolute; inset: 0; pointer-events: none; }
.rsvp-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.rsvp-circle.c1 {
  width: 700px; height: 700px;
  background: white;
  top: -200px; right: -150px;
}
.rsvp-circle.c2 {
  width: 500px; height: 500px;
  background: white;
  bottom: -200px; left: -100px;
}
.rsvp-circle.c3 {
  width: 300px; height: 300px;
  background: var(--gold);
  top: 30%; left: 30%;
  opacity: 0.06;
}

.rsvp-section .section-eyebrow { color: var(--gold-light); }
.rsvp-section .section-title { color: white; }
.rsvp-section .section-body { color: rgba(255,255,255,0.75); }
.rsvp-section .section-body strong { color: white; }

.rsvp-card {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
}

.rsvp-form {
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.req { color: var(--blue-500); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px hsl(210, 72%, 46%, 0.12);
}
.form-input:user-valid { border-color: hsl(145, 55%, 45%); }
.form-input.invalid,
.form-select.invalid { border-color: hsl(0, 72%, 55%); box-shadow: 0 0 0 3px hsl(0, 72%, 55%, 0.1); }

.select-wrap {
  position: relative;
}
.select-arrow {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}
.form-select { padding-right: 40px; cursor: pointer; }

.form-error {
  font-size: 0.78rem;
  font-weight: 500;
  color: hsl(0, 72%, 55%);
  min-height: 18px;
}

/* Radio attending */
.fieldset-attending { border: none; padding: 0; }
.fieldset-attending legend { display: block; width: 100%; margin-bottom: 10px; }

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-opt { cursor: pointer; display: block; }
.radio-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  position: relative;
  text-align: center;
}

.radio-check {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.radio-opt input:checked ~ .radio-box {
  border-color: var(--accent);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px hsl(210, 72%, 46%, 0.15);
  transform: scale(1.02);
}
.radio-opt input:checked ~ .radio-box .radio-check { opacity: 1; }
.radio-box:hover { border-color: var(--blue-300); transform: scale(1.01); }

.radio-emoji { font-size: 1.8rem; }
.radio-text { font-size: 0.82rem; font-weight: 600; color: var(--ink); }

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  background: var(--accent);
  color: white;
  border-radius: 14px;
  box-shadow: var(--shadow-blue);
  transition: background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  margin-top: 4px;
}
.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px hsl(210, 72%, 46%, 0.4);
}
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline; }
.btn-loading { display: none; }

/* RSVP Success */
.rsvp-success {
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 52px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: success-in 0.5s var(--ease-spring) both;
}
@keyframes success-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.success-confetti {
  font-size: 1.8rem;
  letter-spacing: 8px;
  animation: bounce-row 1s var(--ease-spring) both;
  margin-bottom: 4px;
}
@keyframes bounce-row {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.success-icon {
  font-size: 4rem;
  animation: heart-beat 0.8s var(--ease-spring) 0.2s both;
}
@keyframes heart-beat {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.success-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
}

.success-body {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.65;
  margin-bottom: 8px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ink);
  padding: 56px clamp(20px, 5vw, 48px);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-script {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--blue-300);
  line-height: 1;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.footer-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 6px 0;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .milestones-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    text-align: center;
    padding-top: 110px;
    gap: 0;
  }
  .hero-content    { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .hero-photo-wrap { grid-column: 1; grid-row: 2; padding: 40px 0 0; }
  .countdown-section { grid-row: 3; }
  .scroll-hint     { grid-row: 4; }

  .hero-content { padding-bottom: 16px; }
  .hero-date    { margin: 0 auto 36px; }
  .hero-ctas    { justify-content: center; }

  .hero-photo-frame { width: clamp(280px, 68vw, 420px); }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 240px;
  }
  .g-tall { grid-row: span 1; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .milestones-grid { grid-template-columns: 1fr; }
  .details-grid    { grid-template-columns: 1fr 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .g-wide { grid-column: span 1; }

  .form-row    { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 380px) {
  .details-grid { grid-template-columns: 1fr; }
}

/* ---------- FOCUS VISIBLE ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================
   CHATBOT UI
   =========================================================== */
.chatbot-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--toy-green);
  color: white;
  border: 3px solid var(--text-primary);
  box-shadow: 4px 4px 0px var(--text-primary);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s var(--ease-spring);
}
.chatbot-toggle-btn:hover {
  transform: scale(1.1);
}

.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 350px;
  height: 500px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 3px solid var(--text-primary);
  border-radius: 16px;
  box-shadow: 8px 8px 0px var(--text-primary);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}
.chatbot-container.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chatbot-header {
  background: var(--toy-purple);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--text-primary);
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  font-size: 24px;
}
.chatbot-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}
.chatbot-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--off-white);
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 2px solid var(--text-primary);
}
.bot-msg {
  align-self: flex-start;
  background: white;
  border-bottom-left-radius: 4px;
}
.user-msg {
  align-self: flex-end;
  background: var(--toy-blue);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-input-area {
  padding: 16px;
  background: white;
  border-top: 3px solid var(--text-primary);
  display: flex;
  gap: 8px;
}
.chatbot-input-area input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--text-primary);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.chatbot-send-btn {
  background: var(--toy-red);
  color: white;
  border: 2px solid var(--text-primary);
  border-radius: 8px;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
}
.chatbot-send-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .chatbot-container {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}
