/* LU-52: home page section backgrounds.
   Same sections and words as before. Every background now follows the hero's
   coral, peach and cream, and each section starts on the colour the one above
   ends on, so there are no hard bands between them. Front page only. */

:root {
  --lp-ivory: #FFF8EE;
  --lp-blush: #FFEDE4;
  --lp-cream: var(--cream, #FFF0BE);
}

/* ---------- 1. Three steps: flows out of the hero's cream wave ---------- */
#how-it-works {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 340px at 8% 78%, #ffd6c880 0%, transparent 70%),
    radial-gradient(460px 320px at 94% 22%, #ffe6b380 0%, transparent 70%),
    linear-gradient(180deg, var(--lp-cream) 0%, #FFF4DA 34%, var(--lp-ivory) 100%);
}
#how-it-works .steps { position: relative; counter-reset: step; }
#how-it-works .steps::before {          /* dotted path joining the three steps */
  content: "";
  position: absolute;
  top: 74px; left: 17%; right: 17%;
  border-top: 2px dashed #f2a99a;
  opacity: .55;
}
#how-it-works .step-card {
  border: 0;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 1px 0 #fff inset, 0 14px 38px rgba(232, 130, 110, .16);
  padding-top: 40px;
}
#how-it-works .step-card::after {        /* coral ribbon on top */
  content: "";
  position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--coral), var(--apricot, #FFD6A6));
}
#how-it-works .step-card__number {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 2.2rem;
  color: #fff;
  background: linear-gradient(150deg, var(--coral) 0%, var(--peach, #FFB399) 60%, var(--apricot, #FFD6A6) 100%);
  box-shadow: 0 8px 20px rgba(232, 130, 110, .32);
  position: relative;
}
#how-it-works .step-card__icon { background: #FFF1D6; }

/* ---------- 2. The package: a band in the hero's own colours ---------- */
#packages {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--coral) 0%, var(--peach, #FFB399) 38%, var(--apricot, #FFD6A6) 78%, #FFE6BE 100%);
}
#packages::before,
#packages::after {                       /* soft circles, as in the hero */
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#packages::before {
  width: 520px; height: 520px;
  top: -180px; right: -140px;
  background: #ffffff;
  opacity: .14;
}
#packages::after {
  width: 360px; height: 360px;
  bottom: -140px; left: -110px;
  background: var(--teal-light, #7ED4C8);
  opacity: .12;
}
/* Soft wave at the top and bottom edges of the band, like the hero's wave */
#packages {
  padding-top: 150px;
  padding-bottom: 150px;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C300 2 620 4 900 26s420 26 540 2V60H0z'/%3E%3C/svg%3E") top / 100% 60px no-repeat,
    linear-gradient(#000, #000) center / 100% calc(100% - 118px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v30c-260 30-560 32-860 8S120 18 0 40z'/%3E%3C/svg%3E") bottom / 100% 60px no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C300 2 620 4 900 26s420 26 540 2V60H0z'/%3E%3C/svg%3E") top / 100% 60px no-repeat,
    linear-gradient(#000, #000) center / 100% calc(100% - 118px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v30c-260 30-560 32-860 8S120 18 0 40z'/%3E%3C/svg%3E") bottom / 100% 60px no-repeat;
}
body.home { background: var(--lp-ivory); }   /* shows through the waves */
#packages > .container { position: relative; z-index: 1; }
/* Dark text on the band: white on these light colours is below 3:1 (Codex, LU-53). */
#packages .section-label { color: #4a2a20; }
#packages .section-title { color: var(--fg); }
#packages .section-rule { background: #4a2a20; opacity: .35; }
#packages .section-desc { color: #4a2a20; }
#packages .package-card {
  border: 0;
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 24px 60px rgba(150, 66, 48, .22), 0 2px 0 #fff inset;
}
#packages .package-card__price { color: var(--coral-dark, #E8826E); }

/* ---------- 3. The prop table: ivory with a warm glow behind the photo ---------- */
#props {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 460px at 22% 50%, #ffd9c6aa 0%, transparent 68%),
    radial-gradient(420px 320px at 92% 12%, #fff0be 0%, transparent 70%),
    linear-gradient(180deg, var(--lp-ivory) 0%, #FFF4E2 55%, var(--lp-ivory) 100%);
}
#props .keychain__media {
  border: 10px solid #fff;
  border-radius: 6px;
  box-shadow: 0 22px 50px rgba(150, 66, 48, .22);
  transform: rotate(-1.6deg);
  transition: transform .4s ease;
}
#props .keychain__media:hover { transform: rotate(0deg) scale(1.01); }
#props .keychain__list li { border-color: #f3d9c9; }

/* ---------- 4. Real smiles: blush fading into the white section below ---------- */
#real-moments {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 360px at 88% 18%, #ffd4c47a 0%, transparent 70%),
    radial-gradient(520px 360px at 6% 62%, #ffeab07a 0%, transparent 70%),
    linear-gradient(180deg, var(--lp-ivory) 0%, var(--lp-blush) 30%, #FFF6F0 78%, #FFFFFF 100%);
}
#real-moments .section-desc { margin-left: auto; margin-right: auto; }
#real-moments .lulu-real__photo {
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(120, 60, 44, .14);
  transition: transform .35s ease, box-shadow .35s ease;
}
#real-moments .lulu-real__photo:nth-child(3n+1) { transform: rotate(-1.2deg); }
#real-moments .lulu-real__photo:nth-child(3n+3) { transform: rotate(1.1deg); }
#real-moments .lulu-real__photo:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 18px 40px rgba(120, 60, 44, .2);
}

/* ---------- 5. Why LuLu: white into the contact section's cream ---------- */
#why {
  background:
    radial-gradient(560px 380px at 92% 70%, #ffd9c670 0%, transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, var(--lp-ivory) 40%, #FFF4D6 80%, var(--lp-cream) 100%);
}

@media (max-width: 900px) {
  #how-it-works .steps::before { display: none; }
}
@media (max-width: 600px) {
  #packages::before { width: 300px; height: 300px; top: -120px; right: -120px; }
  #packages::after { width: 220px; height: 220px; }
  #props .keychain__media,
  #real-moments .lulu-real__photo:nth-child(n) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #props .keychain__media,
  #real-moments .lulu-real__photo { transition: none; }
}
