/* ==========================================================================
   Party pages: /book-a-party ("For the Little Ones") and
   /corporate-and-social-gatherings ("For the Grown-Ups").
   Both pages share these components. Loaded after /css/styles.css.

   Mobile styles first (390px Figma frame), 768px to 1239px keeps the mobile
   layout in a centered column, desktop from 1240px (1440px Figma frame).
   Colors come from the tokens in styles.css only.
   ========================================================================== */

/* ---------- Shared bits ---------- */

.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--black); border-color: var(--black); }
.br-desktop { display: none; }
.sticker { position: absolute; max-width: none; pointer-events: none; }
.p-title {
  font-family: var(--font-fun); font-weight: 400; font-size: 2.625rem; line-height: 2.875rem; color: var(--ink);
}

/* ---------- Hero ---------- */

.phero { position: relative; padding: 40px 24px 78.4px; overflow: hidden; background: var(--pink); }
.phero--yellow { background: var(--yellow); padding-bottom: 24.4px; }
.phero__inner { display: flex; flex-direction: column; gap: 32px; max-width: 600px; margin: 0 auto; }
.phero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.phero .hero__title { color: var(--ink); }
.phero__checks { display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.phero__checks li { display: flex; align-items: center; gap: 8px; color: var(--black); }
.phero__checks img { flex: none; width: 28.8px; height: 28.8px; }
.phero__copy .btn { width: 100%; }

/* Photo with the tilted card behind it */
.phero__media { position: relative; width: 100%; aspect-ratio: 342 / 310; }
.phero__media::before {
  content: ''; position: absolute; inset: 0; border-radius: 40px; background: var(--vanilla);
  transform: translate(2.05px, 18.7px) rotate(4.27deg);
}
.phero--yellow .phero__media::before { background: var(--blue); transform: translate(0, -0.9px) rotate(4.27deg); }
.phero__photo { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }
.phero__sun { left: 56.4px; top: calc(100% - 34.2px); width: 60.26px; }
.phero__vase { left: 7.66px; top: calc(100% + 26.06px); width: 57.8px; transform: rotate(-5.48deg); }
.phero__brush { left: -6px; top: -19px; width: 85px; }

/* ---------- How it works (step cards) ---------- */

.psteps { padding: 56px 24px; }
.psteps__title { margin-bottom: 48px; text-align: center; }
.psteps__list { display: flex; flex-direction: column; gap: 24px; }
.pstep {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  min-height: 23.3125rem; padding: 28px 24px 18px; border-radius: 28px; background: var(--vanilla); text-align: center;
}
.pstep__head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pstep__num {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: 24px; background: var(--pink);
  font-weight: 800; font-size: 1.0462rem; line-height: 1.4; color: var(--ink);
}
.pstep:nth-child(2) .pstep__num { background: var(--yellow); }
.pstep:nth-child(3) .pstep__num { background: var(--blue); }
.pstep:nth-child(4) .pstep__num { background: var(--red); color: var(--white); }
.pstep__title { font-family: var(--font-fun); font-weight: 400; font-size: 1.75rem; line-height: 2.125rem; color: var(--ink); }
.pstep__text { color: var(--ink); }
.pstep__art { flex: none; max-width: none; }
.pstep:nth-child(1) .pstep__art { width: 109px; margin-top: -12px; }
.pstep:nth-child(2) .pstep__art { width: 107.43px; margin-top: -4.4px; }
.pstep:nth-child(3) .pstep__art { width: 160.6px; margin-top: 11.5px; }
.pstep:nth-child(4) .pstep__art { width: 111.75px; margin-top: 24px; }

/* ---------- Package and add-ons ---------- */

.pkgs { position: relative; padding: 0 24px 56px; overflow: hidden; background: var(--mist); }
.pkgs__inner { position: relative; display: flex; flex-direction: column; gap: 32px; max-width: 600px; margin: 0 auto; }
.pkgs__swirl { display: none; position: absolute; max-width: none; fill: none; stroke: var(--pink); pointer-events: none; }
.pkgs--swirly .pkgs__swirl { display: block; }
.pkgs__swirl--a { left: calc(50% - 195px + 29px - 306.73px); top: -57.3px; scale: 0.5166; rotate: -177.4deg; }
.pkgs__swirl--b { left: calc(50% - 195px + 470px - 306.73px); top: calc(100% - 200px - 239.3px); scale: 0.52; rotate: 19.55deg; }
.pkgs--swirly { padding-top: 20.24px; }

.pkg {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  padding: 32px 28px; border-radius: 32px; background: var(--ink); color: var(--white);
}
.pkg__eyebrow { font-weight: 600; font-size: 0.75rem; line-height: 1.125rem; letter-spacing: 0.0625rem; text-transform: uppercase; color: var(--yellow); }
.pkg__title { font-family: var(--font-fun); font-weight: 400; font-size: 2.625rem; line-height: 2.875rem; color: var(--white); }
.pkg__price { display: flex; align-items: center; gap: 24px; }
.pkg__amount { flex: none; font-family: var(--font-fun); font-size: 2.625rem; line-height: 2.875rem; color: var(--pink); }
.pkg__per { font-weight: 700; font-size: 0.875rem; line-height: 1.5625rem; }
.pkg--grown .pkg__price { gap: 12px; }
.pkg .btn { width: 100%; }
.pkg__heart { right: 38.4px; top: 21.3px; width: 50px; transform: rotate(14.61deg); }

.addons { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 32px 28px; border-radius: 32px; background: var(--vanilla); }
.addons--sticker { padding-bottom: 119px; }
.addons__title { font-family: var(--font-fun); font-weight: 400; font-size: 2.625rem; line-height: 2.875rem; color: var(--ink); }
.addons__title .text-red { color: var(--red); }
.addons__dash { display: inline-block; position: relative; top: -12px; width: 34.21px; margin-left: -2px; vertical-align: top; }
.addon { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 24px; background: var(--white); color: var(--ink); }
.addon__name { font-weight: 700; line-height: 1.5rem; }
.addons__hm { right: 16.9px; bottom: 2.3px; width: 147px; }

/* ---------- Venue ("Don't want to have the party at home?") ---------- */

.venue { padding: 50px 24px 48px; overflow: hidden; }
.venue__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.venue__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: 100%; }
.venue__text { color: var(--ink); }
.venue__copy .btn { width: 100%; }

/* ---------- Inquiry form ---------- */

.inquiry { position: relative; padding: 60px 24px 60px; background: var(--mist); }
.inquiry__intro { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 20px; text-align: center; }
.inquiry__lead { max-width: 326px; color: var(--ink); }
.inquiry__last { position: relative; white-space: nowrap; }
.inquiry__yes { left: calc(100% + 15px); top: -0.3px; width: 161.27px; height: 111.03px; scale: 0.574; transform-origin: 0 0; }
.inquiry__yes img { width: 100%; height: 100%; }
.inquiry__yes span {
  position: absolute; left: 86.1px; top: 49.6px; translate: -50% -50%; rotate: 10.56deg;
  font-family: var(--font-fun); font-size: 3.1625rem; line-height: 1.3; letter-spacing: 0.1581rem; color: var(--white); white-space: nowrap;
}
.inquiry__sunflower { left: calc(50% - 36.5px); top: -60.2px; width: 72.6px; }
.inquiry__row { display: flex; flex-direction: column; gap: 32px; }
.inquiry__media img { width: 100%; aspect-ratio: 342 / 310; object-fit: cover; border-radius: 40px; }
.inquiry__card { padding: 28px 20px; border-radius: 32px; background: var(--vanilla); }
.pform { display: flex; flex-direction: column; gap: 24px; }
.pform__pair { display: flex; flex-direction: column; gap: 24px; }
.pform__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pform__label, .pform legend {
  padding: 0; font-weight: 600; font-size: 0.875rem; line-height: 1.375rem; letter-spacing: 0.0613rem; text-transform: uppercase; color: var(--ink);
}
.pform fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pform legend { margin-bottom: 8px; }
.pform input:not([type='radio']):not([type='checkbox']), .pform textarea {
  width: 100%; min-height: 3.125rem; padding: 0.6875rem 1rem; border: 1px solid var(--black); border-radius: 12px; background: var(--white);
  font: inherit; font-size: 1rem; line-height: 1.5625rem; color: var(--ink);
}
.pform textarea { display: block; min-height: 7.5rem; resize: vertical; }
.pform input[type='date'], .pform input[type='time'] { -webkit-appearance: none; appearance: none; text-align: left; }
.pform__options { display: flex; flex-wrap: wrap; gap: 10.12px; }
.pform__option {
  display: inline-flex; align-items: center; gap: 10.12px; min-height: 2.9097rem; padding: 0 18.22px;
  border-radius: 999px; font-size: 1.0121rem; line-height: 1.45; color: var(--ink); cursor: pointer;
}
.pform__option input {
  flex: none; width: 18.22px; height: 18.22px; margin: 0;
  -webkit-appearance: none; appearance: none; border: 1px solid var(--ink); border-radius: 50%; background: var(--white); cursor: pointer;
}
.pform__option input:checked { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 6.07px, var(--white) 6.6px); }
.pform__option input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pform .btn { width: 100%; }
.inquiry__card .form-status { margin-top: 0; }

/* ---------- Grown-ups: Corporate Crafting and Craft & Sip cards ---------- */

.gfeatures { position: relative; z-index: 1; padding: 40.48px 24px; background: var(--mist); }
.gfeatures__cards { display: flex; flex-direction: column; gap: 40.5px; }
.gcard { display: flex; flex-direction: column; align-items: center; gap: 32.386px; padding: 30px; border-radius: 32.386px; background: var(--blue); text-align: center; }
.gcard--pink { background: var(--pink); }
.gcard__img { width: 100%; aspect-ratio: 286 / 211; object-fit: cover; border-radius: 32.386px; }
.gcard__copy { display: flex; flex-direction: column; gap: 16.193px; }
.gcard .card__text { font-size: 1.125rem; line-height: 1.75rem; }
.gfeatures__wine { right: calc(50% - 171px - 4px); top: calc(100% - 1.4px); width: 85.3px; z-index: 3; }

/* ---------- Grown-ups FAQ ("Good to know") ---------- */

.faq--parties .faq__intro { position: relative; }
.faq--parties .faq__bulb { display: block; position: absolute; left: 233.5px; top: -13.7px; width: 53.78px; max-width: none; }
.faq__q--tagged { display: flex; align-items: center; gap: 12px; }
.faq__tag {
  flex: none; padding: 4.69px 7.81px; border-radius: 7.81px; background: var(--pink);
  font-family: var(--font-label); font-weight: 600; font-size: 0.6875rem; line-height: 1; letter-spacing: 0.0313rem; text-transform: uppercase; color: var(--ink);
}
.faq__tag--blue { background: var(--blue); }
@supports (text-box: trim-both cap alphabetic) { .faq__tag { text-box: trim-both cap alphabetic; padding-block: 5.5px; } }

/* ==========================================================================
   Desktop: 1240px and up, matches the 1440px Figma frames.
   ========================================================================== */

@media (min-width: 1240px) {
  .p-title { font-size: 4.5rem; line-height: 5rem; }
  .br-mobile { display: none; }
  .br-desktop { display: inline; }

  /* Hero */
  .phero, .phero--yellow { padding: 75px max(40px, calc((100% - 1152px) / 2)); }
  .phero__inner { flex-direction: row; align-items: center; gap: 64px; max-width: none; }
  .phero__copy { flex: 0 0 544px; }
  .phero .hero__title { color: var(--ink); }
  .phero .hero__text { width: 505px; color: var(--ink); }
  .phero--yellow .hero__title { width: 462px; }
  .phero--yellow .hero__text { width: auto; }
  .phero__checks { max-width: none; width: 421px; }
  .phero__checks li { font-size: 1.125rem; line-height: 1.75rem; white-space: nowrap; }
  .phero__copy .btn { width: auto; }
  .phero__copy .btn--w188 { width: 188px; }
  .phero__media { flex: 0 0 544px; height: 464px; aspect-ratio: auto; }
  .phero__media::before { border-radius: 42px; transform: translate(27.4px, 20.6px) rotate(4.27deg); }
  .phero--yellow .phero__media::before { transform: translate(19px, 19.9px) rotate(4.27deg); }
  .phero__sun { left: -27.32px; top: 310.59px; width: 88.64px; }
  .phero__vase { left: -66.97px; top: 412.15px; width: 85.05px; }
  .phero__brush { left: -49.67px; top: -12.65px; width: 123.2px; }

  /* How it works */
  .psteps { padding: 96px 0; }
  .psteps__title { margin-bottom: 48px; }
  .psteps__list { flex-direction: row; justify-content: center; gap: 24px; }
  .pstep { flex: 0 0 270px; justify-content: space-between; gap: 12px; height: 451px; min-height: 0; padding: 30px; }
  .pstep__text { margin-top: -4px; }
  .pstep__title { font-size: 2rem; line-height: 1.2; }
  .pstep__text { font-size: 1.125rem; line-height: 1.75rem; }
  .pstep:nth-child(2) .pstep__title { max-width: 158px; }
  .pstep:nth-child(2) .pstep__text { max-width: 213px; }
  .pstep:nth-child(4) .pstep__text { max-width: 209px; }
  .pstep:nth-child(n) .pstep__art { margin-top: 0; }
  .pstep:nth-child(1) .pstep__art { width: 123px; }
  .pstep:nth-child(3) .pstep__art { width: 143.41px; }

  /* Package and add-ons */
  .pkgs { padding: 100px max(40px, calc((100% - 1152px) / 2)); }
  .pkgs--swirly { padding-block: 45.5px; }
  .pkgs__inner { flex-direction: row; align-items: flex-start; gap: 32px; max-width: none; }
  .pkgs__swirl { display: block; }
  .pkgs__swirl--a { left: calc(50% + 367px); top: 134.3px; scale: 1; rotate: 19.55deg; }
  .pkgs__swirl--b { left: calc(50% - 935.3px); top: 193.75px; scale: 1; rotate: -177.4deg; }
  .pkg { flex: 0 0 560px; padding: 83px 45px; }
  .pkg__eyebrow { font-size: 0.875rem; line-height: 1.375rem; letter-spacing: 0.0613rem; }
  .pkg__title { font-size: 4.5rem; line-height: 5rem; }
  .pkg__amount { font-size: 4.5rem; line-height: 5rem; }
  .pkg--grown .pkg__price { gap: 24px; }
  .pkg__per { white-space: nowrap; font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; }
  .pkg__text { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; }
  .pkg .btn { width: 188px; }
  .pkg__heart { right: auto; left: 454.35px; top: 196.4px; }
  .pkg--grown .pkg__heart { left: 287px; top: 222.6px; }
  .addons, .addons--sticker { flex: 1; align-self: stretch; padding: 83px 45px; }
  .addon { font-size: 1.125rem; line-height: 1.75rem; }
  .addon__name { line-height: 1.75rem; }
  .addons__dash { top: -12.6px; }
  .addons__hm { right: 49px; bottom: 22px; width: 245px; }

  /* Venue */
  .venue { height: 716px; padding: 100px 64px; }
  .venue__inner { flex-direction: row; justify-content: center; gap: 87px; }
  .venue .story__portrait { width: 440px; }
  .venue__copy { flex: 0 0 509px; width: 509px; gap: 30px; }
  .venue__copy .p-title { margin-bottom: -26px; }
  .venue__text { font-size: 1.125rem; line-height: 1.75rem; color: var(--black); }
  .venue__copy .btn { width: 188px; }

  /* Inquiry form */
  .inquiry { padding: 100px max(40px, calc((100% - 1152px) / 2)); }
  .inquiry__intro { margin-bottom: 72px; }
  .inquiry__lead { max-width: none; font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.0125rem; }
  .inquiry__yes { left: calc(100% + 57px); top: -31.1px; scale: 1; }
  .inquiry__sunflower { left: calc(50% - 77px); top: -111.4px; width: 159.4px; }
  .inquiry--grown { padding-top: 111.3px; }
  .inquiry__row { flex-direction: row; align-items: stretch; gap: 72px; }
  .inquiry__media { flex: 0 0 415px; }
  .inquiry__media picture { display: block; height: 100%; }
  .inquiry__media img { height: 100%; min-height: 931px; aspect-ratio: auto; }
  .inquiry__card { align-self: flex-start; }
  .inquiry__card { flex: 1; min-width: 0; padding: 40px; }
  .pform__pair { flex-direction: row; gap: 20px; }
  .pform__pair > * { flex: 1; }
  .pform .btn { width: 188px; }

  /* Grown-ups cards */
  .gfeatures { padding: 91.086px 0; }
  .gfeatures__cards { flex-direction: row; justify-content: center; gap: 32.386px; }
  .gcard { flex: 0 0 560px; height: 629px; padding: 52.628px; }
  .gcard__img { aspect-ratio: 456 / 337; }
  .gcard .card__text { font-size: 1.25rem; line-height: 1.4; }
  .gfeatures__wine { right: auto; left: calc(50% + 495px); top: 51px; width: 145px; }

  /* Grown-ups FAQ */
  .faq--parties { height: auto; padding-bottom: 121.449px; }
  .faq--parties .faq__intro { min-height: 340px; }
  .faq--parties .faq__bulb { left: -39.8px; top: 68.1px; width: 237.74px; }
  .faq__q--tagged { gap: 16.193px; }
  .faq__tag { padding: 6.07px 10.12px; border-radius: 10.12px; font-size: 1.0121rem; letter-spacing: 0.0253rem; }
  @supports (text-box: trim-both cap alphabetic) { .faq__tag { padding-block: 9px; } }
}

/* FAQ intro stays in view on tall desktop windows (as on the homepage) */
@media (min-width: 1240px) and (min-height: 640px) {
  .faq--parties .faq__intro { position: sticky; }
}

/* ---------- Motion: stickers wiggle once after they arrive (stops within 5s) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sticker.is-visible { animation: hm-float 2.4s ease-in-out 0.9s 1; }
}
