/* =====================================================================
   Party Scene — #aquafiestas as a full-bleed festive scene: the real salon
   photo washed in a bright party-blue, falling confetti, and the two packages
   (Con alberca / Solo salon) as clear price cards. Energetic but still inside
   the token system. Mirrors the full-bleed shell of facility-scene.css.
   Layer stack (back -> front): photo(0) - overlay(1) - confetti(2) - content(3)
   Confetti is CSS-only and gated by prefers-reduced-motion (pure enhancement).
   ===================================================================== */

/* ---- Section shell: full-bleed, grows with content ---- */
.party {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #2b6fd6; /* festive blue fallback while the photo loads */
}

/* ---- Backdrop photo (salon, cover) ---- */
.party__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ---- Festive overlay: bright cornflower->cyan wash + top/bottom legibility ---- */
.party__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(77, 150, 255, 0.62) 0%,
      rgba(0, 194, 203, 0.5) 60%,
      rgba(77, 150, 255, 0.6) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(7, 18, 36, 0.3) 0%,
      transparent 24%,
      transparent 52%,
      rgba(7, 18, 36, 0.5) 100%
    );
}

/* ---- Confetti (CSS-only, ~22 pieces) ---- */
.confetti {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.confetti__bit {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  width: 9px;
  height: 14px;
  border-radius: 2px;
  background: var(--c, #fff);
  opacity: 0.9;
  will-change: transform;
  animation: confettiFall var(--t, 8s) linear var(--d, 0s) infinite;
}
/* colour + shape cycles (no need to set per-piece in the HTML) */
.confetti__bit:nth-child(5n + 1) {
  --c: var(--action-cornflower);
}
.confetti__bit:nth-child(5n + 2) {
  --c: var(--accent-mustard);
}
.confetti__bit:nth-child(5n + 3) {
  --c: var(--accent-cyan);
}
.confetti__bit:nth-child(5n + 4) {
  --c: var(--accent-orange);
}
.confetti__bit:nth-child(5n + 5) {
  --c: #ffffff;
}
.confetti__bit:nth-child(3n) {
  border-radius: 50%; /* some are dots */
  width: 11px;
  height: 11px;
}
@keyframes confettiFall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--sway, 24px), 112vh, 0) rotate(680deg);
  }
}

/* ---- Content wrapper ---- */
.party__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---- Intro (white over the wash) ---- */
.party__intro {
  max-width: 660px;
  color: #fff;
}
.party__eyebrow {
  color: #ffe07a; /* light party yellow */
}
.party__title {
  color: #fff;
  margin: 14px 0 14px;
}
.party__accent {
  color: var(--accent-mustard);
  font-style: italic;
}
.party__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.3vw, 17.5px);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 52ch;
}

/* ---- The two package cards ---- */
.party__cards {
  width: 100%;
  max-width: 740px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.party-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 26px 60px -26px rgba(4, 14, 30, 0.55);
  color: var(--ink-navy);
}
/* featured package gets a mustard ring + a tag */
.party-card--feat {
  outline: 2.5px solid var(--accent-mustard);
  outline-offset: -2.5px;
}
.party-card__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--accent-mustard);
  color: var(--ink-navy);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
}
.party-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.party-card__name {
  margin: 0;
  font-family: var(--display-font), "Fraunces", serif;
  font-variation-settings: "wght" 600, "opsz" 40;
  font-size: 22px;
  color: var(--ink-navy);
}
.party-card__kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan-deep);
  margin-bottom: 4px;
}
.party-card__price {
  text-align: right;
  flex: none;
}
.party-card__price b {
  display: block;
  font-family: var(--display-font), "Fraunces", serif;
  font-variation-settings: "wght" 600, "opsz" 60;
  font-size: 30px;
  line-height: 1;
  color: var(--ink-navy);
}
.party-card--feat .party-card__price b {
  color: #b07d12; /* deep mustard so the headline price pops */
}
.party-card__price span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
/* checklist (the global .checks sizing is scoped to .feature, so size it here) */
.party-card__list {
  display: grid;
  gap: 11px;
  margin: 0 0 22px;
}
.party-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-navy);
}
.party-card__list li svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  color: var(--accent-cyan-deep);
}
.party-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ---- Facts strip + contact ---- */
.party__facts {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.party__facts .pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.party__phone {
  width: 100%;
  margin-top: 14px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
}
.party__phone a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* fine-print note (extra costs) under the contact line */
.party__note {
  width: 100%;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin-inline: auto;
}

/* ---- Reduced motion: no confetti animation (hide the pieces) ---- */
@media (prefers-reduced-motion: reduce) {
  .confetti {
    display: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .party {
    min-height: auto;
  }
  .party__inner {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 48px;
  }
  .party__cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  /* thin the confetti out on small screens */
  .confetti__bit:nth-child(2n) {
    display: none;
  }
}
