/* ============================================================
   Gwenie's Baby Shower · Baby in Bloom
   Palette: blush #F9E4E8 · rose #E75480 · hot pink #D81B60
            deep pink #C2185B · gold #D4A24E · cream #FFF9F5
   ============================================================ */

:root {
  --blush: #f9e4e8;
  --rose: #e75480;
  --hot: #d81b60;
  --deep: #c2185b;
  --gold: #d4a24e;
  --cream: #fff9f5;
  --ink: #4a2c35;
  --script: "Great Vibes", cursive;
  --serif: "Cormorant Garamond", serif;
  --sans: "Jost", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ---------- Floating petals ---------- */
#petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -40px;
  font-size: 18px;
  opacity: 0.55;
  animation: fall linear infinite;
  user-select: none;
}
@keyframes fall {
  0%   { transform: translateY(-5vh) rotate(0deg) translateX(0); }
  50%  { transform: translateY(50vh) rotate(180deg) translateX(40px); }
  100% { transform: translateY(105vh) rotate(360deg) translateX(-30px); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  background: rgba(255, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(216, 27, 96, 0.12);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--deep);
  text-decoration: none;
  line-height: 1;
}
.nav-logo span { font-size: 1.1rem; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--deep);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(231, 84, 128, 0.14), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(212, 162, 78, 0.14), transparent 55%),
    linear-gradient(160deg, #fdf0f3 0%, var(--blush) 45%, #f6d7de 100%);
  padding: 120px 24px 80px;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--deep);
  margin-bottom: 18px;
  animation: fadeUp 1s ease both;
}
.hero-title { line-height: 1; margin-bottom: 26px; }
.hero-title .script {
  display: block;
  font-family: var(--script);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--rose);
  animation: fadeUp 1s 0.15s ease both;
}
.hero-title .bloom {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4rem, 12vw, 8.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep);
  animation: fadeUp 1s 0.3s ease both;
}
.hero-sub {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 8px;
  animation: fadeUp 1s 0.45s ease both;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 500;
  animation: fadeUp 1s 0.55s ease both;
}
.hero-name .amp { color: var(--rose); font-style: italic; }
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px 0;
  animation: fadeUp 1s 0.65s ease both;
}
.hero-divider .line {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-divider .line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-divider .flower { color: var(--rose); font-size: 1.3rem; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #7a5560;
  margin-bottom: 34px;
  animation: fadeUp 1s 0.75s ease both;
}
.btn {
  display: inline-block;
  padding: 15px 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--hot));
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(216, 27, 96, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 1s 0.9s ease both;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(216, 27, 96, 0.45);
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--rose);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-align: center;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--deep);
  margin-bottom: 22px;
}
.script-inline { font-family: var(--script); color: var(--rose); font-size: 1.15em; }
.lead {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #6d4a55;
}

/* ---------- Story stats ---------- */
.stats {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 8vw, 90px);
  margin-top: 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .num {
  display: block;
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--rose);
  font-weight: 600;
}
.stat .label {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

/* ---------- Feature strip (auto-scroll) ---------- */
.feature-strip {
  overflow: hidden;
  padding: 30px 0;
  background: linear-gradient(180deg, var(--cream), var(--blush));
  transform: rotate(-1.2deg) scale(1.02);
}
.feature-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: scrollX 60s linear infinite;
}
.feature-strip:hover .feature-track { animation-play-state: paused; }
.feature-track img {
  height: 240px;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(194, 24, 91, 0.18);
  transition: transform 0.3s ease;
}
.feature-track img:hover { transform: scale(1.04); }
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
/* Masonry layout — keeps each photo's natural aspect ratio & resolution */
.gallery-grid {
  columns: 4 260px;
  column-gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 16px;
  break-inside: avoid;
  background: var(--blush);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "✿";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(216, 27, 96, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- Moments ---------- */
.moments { background: linear-gradient(180deg, var(--blush), var(--cream)); }
.moment-row { margin-bottom: 70px; }
.moment-row.reverse { display: flex; justify-content: flex-end; }
.moment {
  max-width: 760px;
  background: #fff;
  padding: 18px 18px 0;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(194, 24, 91, 0.15);
  transform: rotate(-1deg);
  transition: transform 0.4s ease;
}
.moment-row.reverse .moment { transform: rotate(1deg); }
.moment:hover { transform: rotate(0deg) scale(1.02); }
.moment img { border-radius: 10px; }
.moment figcaption {
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  padding: 16px 8px;
  color: #7a5560;
  font-size: 1.05rem;
}

/* ---------- Wishes ---------- */
.wishes { background: var(--cream); }
.wish-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 50px;
}
.wish-card {
  background: linear-gradient(160deg, #fff, var(--blush));
  border: 1px solid rgba(231, 84, 128, 0.18);
  border-radius: 18px;
  padding: 38px 30px;
  text-align: center;
  box-shadow: 0 14px 36px rgba(194, 24, 91, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.wish-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(194, 24, 91, 0.18);
}
.wish-card p {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--deep);
  margin-bottom: 16px;
}
.wish-card span {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gold);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 80px 24px 50px;
  background: linear-gradient(180deg, var(--cream), var(--blush));
}
.footer-flower { font-size: 2rem; color: var(--rose); margin-bottom: 10px; }
.footer-script {
  font-family: var(--script);
  font-size: 2.6rem;
  color: var(--deep);
  margin-bottom: 8px;
}
.footer p:last-child {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #a07885;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(40, 12, 22, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure {
  max-width: min(1100px, 90vw);
  max-height: 86vh;
  text-align: center;
}
.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}
.lb-figure figcaption {
  color: var(--blush);
  font-family: var(--serif);
  font-style: italic;
  margin-top: 14px;
  font-size: 1rem;
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox button:hover { background: rgba(231, 84, 128, 0.6); transform: scale(1.08); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 249, 245, 0.98);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    box-shadow: 0 12px 30px rgba(194, 24, 91, 0.12);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 14px 0; }
  .feature-track img { height: 160px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lightbox button { width: 44px; height: 44px; font-size: 1.5rem; }
  .section { padding: 80px 0; }
}
