/* ============================================================
   Little Town Playhouse — Parties page skin
   Layered on top of styles.css + v4 kit. Mobile-first.
   RULE: Only parties-specific overrides live here.
   ============================================================ */

/* Pastel ribbon colour for the flowing section dividers (festive mix) +
   matching festive bubble palette */
:root {
  --flow-accent: linear-gradient(90deg, var(--sun) 0%, var(--coral) 38%, var(--red) 68%, var(--sky) 100%);
  --bub-1: var(--sun); --bub-2: var(--coral); --bub-3: var(--red); --bub-4: var(--sky);
  /* section-rhythm washes — festive rose into peach */
  --wash-1: #fbe7e3;  /* pale rose  */
  --wash-2: #fcefdd;  /* pale peach */
}

/* ---------- Hero: same recipe as Fusion — a single signature tile (balloons)
     repeated over a warm pink→peach gradient, with the birthday cake beside
     the copy. ---------- */
.page-hero.ph--party {
  background:
    url("../../img/party-tile-v2.svg") center / 132px repeat,
    linear-gradient(180deg, #F8D0CC 0%, #FBE2D2 58%, var(--base) 100%);
  padding-bottom: clamp(5.5rem, 4vw + 4rem, 7.5rem);
}
.ph--party .container {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.ph--party .hero-art {
  margin-inline: auto;
}
@media (min-width: 760px) {
  .ph--party .container { grid-template-columns: 1fr auto; }
}
/* Coral partner-tag eyebrow */
.ph--party .partner-tag {
  background: rgba(255,255,255,0.85);
  color: #8A3320;
  border: 1px solid rgba(194,128,95,0.30);
}

/* Bigger, bolder eyebrow confetti dots on the parties hero */
.ph--party .confetti i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

/* Sticker sits above the eyebrow row — slightly larger, eye-catching */
.ph--party .hero-sticker {
  margin-bottom: 0.9rem;
}

/* Party hero CTA inherits the standard neobrutalist button — no override needed */

/* Inline bunting string: a decorative SVG-like CSS strip */
.bunting-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.2rem;
  pointer-events: none;
  overflow: hidden;
  height: 42px;
}
.bunting-row svg {
  width: min(480px, 90vw);
  height: auto;
  display: block;
  margin-inline: auto;
  opacity: 0.82;
}

/* ---------- Stat row ---------- */
.parties-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .parties-stats { grid-template-columns: repeat(3, 1fr); }
}

.parties-stats .stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcf8f0 100%);
  border-radius: var(--r-xl);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 1px 2px rgba(80,60,30,0.05),
    0 8px 18px -6px rgba(80,60,30,0.12),
    0 14px 36px -10px rgba(80,60,30,0.10);
  padding: clamp(1.4rem, 3vw, 2.2rem) 1rem;
  text-align: center;
  border: 2px solid transparent;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.parties-stats .stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}
/* Soft colour accent per card */
.parties-stats .stat-card:nth-child(1) { border-color: var(--sky-tint); }
.parties-stats .stat-card:nth-child(2) { border-color: var(--sun-tint); }
.parties-stats .stat-card:nth-child(3) { border-color: var(--coral-tint); }

.parties-stats .stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  border-radius: inherit;
}
.parties-stats .stat-card:nth-child(1)::before { background: var(--sky); }
.parties-stats .stat-card:nth-child(2)::before { background: var(--sun); }
.parties-stats .stat-card:nth-child(3)::before { background: var(--coral); }

.parties-stats .stat .num {
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  display: block;
}
.parties-stats .stat-card:nth-child(1) .stat .num { color: var(--accent-sky); }
.parties-stats .stat-card:nth-child(2) .stat .num { color: var(--accent-sun); }
.parties-stats .stat-card:nth-child(3) .stat .num { color: var(--accent-coral); }

.parties-stats .stat .label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.3rem;
}
.parties-stats .stat .sublabel {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  display: block;
}

/* ---------- How Booking Works (steps) ---------- */
.parties-steps-section {
  background: linear-gradient(160deg, var(--sun-tint) 0%, var(--coral-tint) 50%, var(--sky-tint) 100%);
}
/* Flowing divider: rise into the section above using this same gradient */
.parties-steps-section.flow-top {
  --surface: linear-gradient(160deg, var(--sun-tint) 0%, var(--coral-tint) 50%, var(--sky-tint) 100%);
}

/* Step number badges: use the sunrise gradient from the v4 kit */
.parties-steps .step-no {
  width: 68px;
  height: 68px;
  font-size: 1.6rem;
  box-shadow: 0 4px 0 rgba(90,60,25,0.18), var(--shadow-sm);
}

.parties-steps .step h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.parties-steps .step p {
  font-size: 0.96rem;
}

/* Connector line between steps on desktop */
@media (min-width: 760px) {
  .parties-steps {
    position: relative;
  }
  .parties-steps::before {
    content: "";
    position: absolute;
    top: 34px; /* centre of step-no */
    left: calc(50% / 3 + 16.66%);
    right: calc(50% / 3 + 16.66%);
    height: 2px;
    background: linear-gradient(90deg, var(--sun), var(--coral), var(--sky));
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
  }
  .parties-steps .step { position: relative; z-index: 1; }
}

/* ---------- Booking panel ---------- */
.booking-panel-wrap {
  background: linear-gradient(135deg, var(--sun-tint) 0%, var(--coral-tint) 100%);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 4vw, 3rem);
}

.booking-panel-wrap .eyebrow {
  /* eyebrow on tinted bg — keep visible */
  text-shadow: none;
}

/* Booking widget panel: floating white card */
.booking-panel-wrap .booking {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-xl);
}

/* Festive heading above the calendar */
.booking-heading {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* Price quick-look pills inside the booking panel copy */
.price-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1.5px solid rgba(80,60,30,0.12);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.price-pill strong { color: var(--accent); }

/* ============================================================
   BOOKING FLOW — two-step picker (slots → package forms)
   Mobile-first. Replaces the old calendar mockup. Packages reuse
   .cp-card, so only the slot picker + step chrome are new here.
   ============================================================ */
.bk-head {
  max-width: 48ch;
  margin-inline: auto;
}
.bk-intro {
  color: var(--ink-soft);
  margin-top: 0.55rem;
}

.bk-step { margin-top: clamp(1.6rem, 5vw, 2.6rem); }
.bk-step-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.bk-step-no {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: var(--grad-sunrise, linear-gradient(135deg, var(--sun), var(--coral)));
  box-shadow: 0 3px 0 rgba(90,60,25,0.18), var(--shadow-sm);
}
.bk-step-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  margin: 0;
  color: var(--ink);
}

/* ---- Step 1: the calendar ---- */
.bk-cal {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(0.85rem, 3.5vw, 1.25rem);
  max-width: 420px;
  margin-inline: auto;
}
.bk-cal-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.bk-cal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  color: var(--ink);
}
.bk-cal-nav {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(80,60,30,0.12);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.bk-cal-nav svg { width: 18px; height: 18px; }
.bk-cal-nav:hover { background: var(--sun-tint); border-color: rgba(80,60,30,0.22); }
.bk-cal-nav:active { transform: scale(0.92); }
.bk-cal-nav:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.bk-cal-nav[disabled] { opacity: 0.3; cursor: default; pointer-events: none; }

.bk-cal-dows {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
  margin-bottom: 0.35rem;
}
.bk-cal-dows span {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.bk-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}
.bk-cal-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.bk-cal-day--blank { visibility: hidden; }
/* weekdays / past / other-month: plain & muted, not selectable ("white") */
.bk-cal-day--muted { color: rgba(80,60,30,0.30); }
/* today: a subtle reference ring */
.bk-cal-day--today { box-shadow: inset 0 0 0 2px rgba(80,60,30,0.22); }
/* weekends, open: colored & tappable */
.bk-cal-day--avail {
  background: var(--sun-tint);
  color: #9a4a2a;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), background 0.15s ease, box-shadow 0.15s ease;
}
.bk-cal-day--avail:hover {
  background: var(--coral-tint);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.bk-cal-day--avail:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* fully booked: greyed + struck, not selectable */
.bk-cal-day--booked {
  color: rgba(80,60,30,0.34);
  background: rgba(80,60,30,0.05);
  text-decoration: line-through;
}
/* the chosen date */
.bk-cal-day--selected {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 3px 0 rgba(150,70,40,0.28);
}

.bk-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: center;
  margin: 0.85rem 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.bk-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.bk-legend-swatch { flex: none; width: 15px; height: 15px; border-radius: 5px; }
.bk-legend-swatch--avail { background: var(--sun-tint); }
.bk-legend-swatch--picked { background: var(--coral); }

/* ---- Step 1: time cards (revealed after a date is chosen) ---- */
.bk-times { margin-top: 1.3rem; }
.bk-times[hidden] { display: none; }
.bk-times-label {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.bk-times-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  max-width: 420px;
  margin-inline: auto;
}
.bk-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  min-height: 64px;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 2px solid rgba(80,60,30,0.14);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.bk-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(80,60,30,0.26);
  box-shadow: var(--shadow-md);
}
.bk-slot:active { transform: translateY(0) scale(0.99); }
.bk-slot:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.bk-slot-when { display: flex; flex-direction: column; gap: 0.12rem; }
.bk-slot-day { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.bk-slot-time { font-size: 0.9rem; color: var(--ink-soft); }

.bk-slot-mark {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(80,60,30,0.18);
  color: #fff;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.bk-slot-mark svg { width: 15px; height: 15px; opacity: 0; transition: opacity 0.15s ease; }

.bk-slot.is-selected {
  border-color: var(--coral);
  background: var(--coral-tint);
  box-shadow: 0 0 0 3px rgba(236,154,144,0.30), var(--shadow-md);
}
.bk-slot.is-selected .bk-slot-mark { background: var(--coral); border-color: var(--coral); transform: scale(1.06); }
.bk-slot.is-selected .bk-slot-mark svg { opacity: 1; }

/* Shake nudge if someone hits Book before choosing a time */
@keyframes bk-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.bk-times-grid.bk-nudge { animation: bk-shake 0.4s ease; }

/* ---- Step 2: chosen-date chip + packages ---- */
.bk-chosen {
  align-items: center;
  gap: 0.4rem;
  background: var(--sun-tint);
  border: 1.5px solid rgba(80,60,30,0.12);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 auto 1.2rem;
  display: inline-flex;
}
.bk-chosen[hidden] { display: none; }
.bk-chosen strong { color: var(--accent); }

.bk-packages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
/* The package card is a <form> — keep it a clean flex column so the buy
   button sits at the bottom and aligns across both cards. */
.bk-pkg { margin: 0; display: flex; flex-direction: column; }
.bk-pkg-btn { margin-top: auto; }

/* Locked: cards readable, only the buy buttons are muted until a time is
   chosen. Desaturate + a gentle opacity drop signals "not yet" while KEEPING
   the price and CTA label legible (a flat 0.45 opacity washed the price out —
   the most conversion-critical text on the page). */
.bk-packages.is-locked .bk-pkg-btn {
  opacity: 0.9;
  filter: grayscale(0.5);
  cursor: not-allowed;
}
.bk-lock-hint {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}
.bk-packages:not(.is-locked) ~ .bk-lock-hint { display: none; }
.bk-finenote { text-align: center; margin-top: 0.7rem; }

/* ---- Responsive ---- */
@media (min-width: 520px) {
  .bk-times-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (min-width: 700px) {
  .bk-packages { grid-template-columns: repeat(2, 1fr); }
}
/* Wide screens: once a date is chosen, the time slots slide in to the RIGHT
   of the calendar instead of stacking underneath. Gated on the times being
   visible (:has), so before a pick the calendar stays centered on its own.
   Phones/tablets keep the stacked layout — mobile-first. */
@media (min-width: 800px) {
  .bk-step:has(.bk-times:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(220px, 340px);
    grid-template-areas:
      "head head"
      "cal  times";
    column-gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: start;
    justify-content: center;
  }
  .bk-step:has(.bk-times:not([hidden])) .bk-step-head { grid-area: head; }
  .bk-step:has(.bk-times:not([hidden])) .bk-cal {
    grid-area: cal;
    margin-inline: 0;
    width: 100%;
  }
  .bk-step:has(.bk-times:not([hidden])) .bk-times {
    grid-area: times;
    margin-top: 0;
  }
  .bk-step:has(.bk-times:not([hidden])) .bk-times-grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin-inline: 0;
  }
}
/* Phones: trim the calendar's inner padding and shrink the inter-cell gap to
   give the weekend cells more width, then lock in a 44px min height. The 7-col
   grid caps how wide a cell can get, so guaranteeing the height is what brings
   the (only) tappable cells up to a comfortable touch target. */
@media (max-width: 480px) {
  .bk-cal { padding: 0.7rem; }
  .bk-cal-days, .bk-cal-dows { gap: 0.22rem; }
  .bk-cal-day { min-height: 44px; }
}
@media (max-width: 360px) {
  .bk-cal-days, .bk-cal-dows { gap: 0.18rem; }
  .bk-cal-day { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-slot, .bk-slot:hover, .bk-slot:active,
  .bk-cal-day--avail, .bk-cal-day--avail:hover { transform: none !important; }
  .bk-times-grid.bk-nudge { animation: none !important; }
}

/* ---------- Policy strips — friendlier cards ---------- */
.policy-cards {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .policy-cards { grid-template-columns: repeat(2, 1fr); }
}

.policy-card {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.policy-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.policy-card--deposit::before  { background: var(--grad-sunrise); }
.policy-card--cancel::before   { background: var(--grad-meadow); }

.policy-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.policy-card .policy-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex: none;
}
.policy-card--deposit .policy-icon { background: var(--sun-tint); }
.policy-card--cancel  .policy-icon { background: var(--sage-tint); }

.policy-card ul {
  list-style: none;
  margin: 0; padding: 0;
}
.policy-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(80,60,30,0.1);
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.policy-card li:last-child { border-bottom: none; }
.policy-card li::before {
  content: "";
  flex: none;
  margin-top: 0.42rem;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.policy-card--deposit li::before { background: var(--sun); }
.policy-card--cancel  li::before { background: var(--sage); }

/* ---------- Gallery: tilted, playful ---------- */
.parties-gallery {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) {
  .parties-gallery { grid-template-columns: repeat(4, 1fr); }
}

.parties-gallery .gal-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: visible; /* let sticker overflow */
}

.parties-gallery figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  height: 100%;
}
.parties-gallery .gal-item:nth-child(odd)  figure { transform: rotate(-1.8deg); }
.parties-gallery .gal-item:nth-child(even) figure { transform: rotate(1.5deg); }
.parties-gallery .gal-item:hover figure {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.parties-gallery svg,
.parties-gallery img {
  width: 100%; height: auto; display: block;
}

/* Sticker overlay on gallery tiles */
.gal-sticker {
  position: absolute;
  top: -0.6rem;
  right: -0.5rem;
  z-index: 2;
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  transform: rotate(6deg);
  pointer-events: none;
}
.gal-item:nth-child(even) .gal-sticker { right: auto; left: -0.5rem; transform: rotate(-5deg); }

/* ---------- Quote card ---------- */
.party-quote {
  max-width: 680px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid rgba(80,60,30,0.05);
  position: relative;
}
.party-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.4rem; left: 1.2rem;
  font-family: var(--font-script);
  color: var(--accent-coral);
  font-size: 4rem;
  line-height: 1;
  opacity: 0.45;
}
.party-quote p {
  font-size: 1.12rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 0.8rem;
  padding-top: 0.4rem;
}
.party-quote .who {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- FAQ section: candy tint background ---------- */
/* Background is handled by the shared section-rhythm skin (.sec-*). */
.parties-faq-section .acc-item { border-color: rgba(80,60,30,0.06); }
.parties-faq-section .acc-trigger {
  font-size: 1.04rem;
}

/* Add a fun emoji to the first open accordion */
.acc-item[aria-expanded="true"] .acc-trigger { color: var(--accent); }

/* ---------- Final CTA band ---------- */
.parties-cta-band {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--red) 50%, var(--coral) 100%);
  border-radius: var(--r-xl);
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.6rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
/* Decoration matches every other closing CTA: confetti only (no blob shapes).
   Keep the copy + buttons above the confetti layer. */
.parties-cta-band > :not(.confetti-rain) { position: relative; z-index: 1; }
.parties-cta-band h2,
.parties-cta-band p { color: var(--ink); }
.parties-cta-band .btn--ghost {
  background: var(--white);
  border-color: var(--btn-edge);
  color: var(--ink);
}
.parties-cta-band .btn--ghost:hover { color: var(--accent); }

/* ---------- Reduced motion overrides (parties-specific) ---------- */
@media (prefers-reduced-motion: reduce) {
  .parties-gallery .gal-item:nth-child(odd)  figure,
  .parties-gallery .gal-item:nth-child(even) figure,
  .parties-gallery .gal-item:hover figure { transform: none !important; }

  .parties-stats .stat-card:hover { transform: none !important; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  .bunting-row { height: 32px; }
  .gal-sticker { font-size: 0.66rem; }
}


/* ============================================================
   PARTIES — MOBILE EXPERIENCE LAYER
   Gate: max-width 760 / 600 / 480 / 360.
   Desktop is untouched. Build on top of styles.css v13.
   ============================================================ */

/* ----------------------------------------------------------
   1. HERO  (.page-hero.ph--party)
   • Scale down or hide the cake art so the copy breathes.
   • Shrink hero padding a little — the global rule already
     trims it, but the party page has a taller bunting row.
   • Confetti dots go slightly smaller so they don't crowd
     the h1 on a 360 px screen.
   ---------------------------------------------------------- */
@media (max-width: 759px) {
  /* Let cake SVG stay visible but cap it so it doesn't eat
     half the viewport on a 430 px phone. */
  .ph--party .hero-art {
    max-width: 280px;
  }
  .ph--party .confetti i {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 480px) {
  /* On tight phones hide the cake entirely — the tile bg + copy
     is enough festivity and the art was pushing content below
     the fold before a single word was read. */
  .ph--party .hero-art {
    display: none;
  }
  /* Hero lead text comfortable at 360 px */
  .ph--party .container .lead {
    font-size: 1rem;
  }
}


/* ----------------------------------------------------------
   2. BOOKING PANEL WRAP
   • Reduce the outer padding so the inner .booking card
     doesn't get squeezed inside double-padded walls.
   • Let the .split fall into a single column (it already
     does at 820px via styles.css; just fine-tune spacing).
   ---------------------------------------------------------- */
@media (max-width: 759px) {
  .booking-panel-wrap {
    padding: clamp(1.2rem, 4vw, 1.8rem);
    border-radius: var(--r-lg);
  }
}

@media (max-width: 480px) {
  .booking-panel-wrap {
    padding: 1rem;
    /* No horizontal overflow bleed */
    margin-inline: 0;
  }
}


/* ----------------------------------------------------------
   3. CALENDAR (.booking card, .cal, .day, .slots, .slot)
   The 7-column grid can squeeze cells to ~36px on 320px when
   the card has standard padding. These overrides ensure:
   • The calendar padding is tight enough to let cells breathe.
   • Day cells stay ≥ 36px (aspect-ratio 1 handles height).
   • .slot buttons flow into a 2-per-row grid for a cleaner
     thumb-friendly look on phones.
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  /* Tighten card padding so the 7-column cal has more room */
  .booking-panel-wrap .booking {
    padding: 1rem 0.85rem;
    border-radius: var(--r-md);
  }

  /* Shrink the inter-cell gap to gain back ~0.5rem across 6 gaps */
  .booking-panel-wrap .cal {
    gap: 0.22rem;
  }

  /* Header row */
  .booking-panel-wrap .booking-head {
    margin-bottom: 0.75rem;
  }
  .booking-panel-wrap .booking-head .month {
    font-size: 1rem;
  }

  /* Day-of-week labels: just a single letter, already set —
     ensure font doesn't push cell wider than the grid allows */
  .booking-panel-wrap .cal .dow {
    font-size: 0.68rem;
    padding-bottom: 0.2rem;
  }

  /* Day cells: reduce font so they don't overflow their column */
  .booking-panel-wrap .cal .day {
    font-size: 0.8rem;
  }

  /* Slots: 2-column grid so each slot is a satisfying tap target
     instead of a thin pill that wraps awkwardly. */
  .booking-panel-wrap .slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.9rem;
  }

  /* Each slot fills its cell; min-height already 44px from
     styles.css v13, keep it */
  .booking-panel-wrap .slot {
    width: 100%;
    text-align: center;
    padding-inline: 0.5rem;
    justify-content: center;
  }

  /* "Request" button — full-width already via btn--block;
     ensure mt doesn't add too much space */
  .booking-panel-wrap .btn--block {
    margin-top: 0.9rem;
  }
}

@media (max-width: 360px) {
  /* At 320 px the 7-col cal cells can be as small as 34 px.
     Drop cell font slightly more and shrink gap to 2px. */
  .booking-panel-wrap .cal {
    gap: 2px;
  }
  .booking-panel-wrap .cal .day {
    font-size: 0.72rem;
    border-radius: 4px;
  }
  .booking-panel-wrap .cal .dow {
    font-size: 0.62rem;
  }
}


/* ----------------------------------------------------------
   4. PRICING CARDS (.cp-grid / .cp-card) inside booking panel
   The cp-grid here carries inline style overrides but these
   scoped rules win for mobile. Goals:
   • Cards stack full-width, no rotation at 600px and below
     (rotation clips the .cp-popular sticker at narrow widths).
   • Reduce padding so cards don't feel wasteful of vertical space.
   • .cp-popular sticker: pull inside the card boundary so it
     can't clip out of the container.
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .booking-panel-wrap .cp-grid {
    gap: 1.2rem;
    padding: 0.4rem 0 1rem;
    margin-top: 1rem;
  }

  /* Kill rotation on phones — sticker clips at <400px */
  .booking-panel-wrap .cp-card,
  .booking-panel-wrap .cp-grid--2 .cp-card:nth-child(1),
  .booking-panel-wrap .cp-grid--2 .cp-card:nth-child(2) {
    transform: none !important;
  }

  /* Compact card padding to save vertical space */
  .booking-panel-wrap .cp-card {
    padding: 1rem 1rem 1.1rem;
  }

  /* Anchor sticker inside card bounds */
  .booking-panel-wrap .cp-popular {
    right: 0.5rem;
    top: -0.7rem;
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
  }

  /* Tighten the feature list gap on phones */
  .booking-panel-wrap .cp-list {
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  /* Price number: slightly smaller on phones so the card
     doesn't feel dominated by a massive figure */
  .booking-panel-wrap .cp-price-amount {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }
}

@media (max-width: 360px) {
  .booking-panel-wrap .cp-card {
    padding: 0.9rem;
  }
  .booking-panel-wrap .cp-popular {
    font-size: 0.76rem;
    right: 0.3rem;
    top: -0.65rem;
  }
}


/* ----------------------------------------------------------
   5. POLICY CARDS (.policy-cards / .policy-card)
   Already 1-col on phones — just tighten padding and ensure
   the bullet dots + text don't overlap on 320px.
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .policy-card {
    padding: 1.1rem 1rem;
  }
  .policy-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }
  .policy-card li {
    font-size: 0.93rem;
    padding: 0.4rem 0;
  }
}


/* ----------------------------------------------------------
   6. FAQ ACCORDION
   Trigger text can wrap onto 3 lines on 360px — give it
   more vertical breathing room, and ensure the icon badge
   doesn't shrink below its circle.
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .parties-faq-section .acc-trigger {
    font-size: 0.97rem;
    /* tighter inline padding frees more width for the question */
    padding-inline: 1rem;
    /* comfortable tap target already set in styles.css (1.15rem block) */
  }
  /* Icon badge: never shrink below its defined size */
  .parties-faq-section .acc-trigger .acc-icon {
    flex: none;
    width: 26px;
    height: 26px;
  }
  .parties-faq-section .acc-panel p {
    padding-inline: 1rem;
    font-size: 0.95rem;
  }
}


/* ----------------------------------------------------------
   7. FINAL CTA BAND (.parties-cta-band)
   • Reduce padding so it doesn't become an endless scroll
     of background on a 375px phone.
   • Heading size already uses clamp; the paragraph's max-width
     of 44ch is fine — remove it on tiny screens so it doesn't
     over-constrain at 320px.
   • Sticker: ensure inline-flex + margin-bottom don't combine
     with the h2 margin to create excess vertical whitespace.
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .parties-cta-band {
    padding: clamp(1.8rem, 6vw, 2.6rem) clamp(1.2rem, 4vw, 1.8rem);
    border-radius: var(--r-lg);
  }
  .parties-cta-band p {
    max-width: 100%;
    font-size: 0.97rem;
  }
  .parties-cta-band .sticker {
    margin-bottom: 0.6rem;
  }
}


/* ----------------------------------------------------------
   8. GALLERY STICKER — contain overflow on all phone sizes
   At 320px the gal-sticker positioned at right:-0.5rem bleeds
   outside the section. Bring it fully inside.
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .gal-sticker {
    right: 0.1rem;
    top: -0.4rem;
    font-size: 0.62rem;
    padding: 0.28rem 0.55rem;
  }
  .gal-item:nth-child(even) .gal-sticker {
    left: 0.1rem;
    right: auto;
  }
}


/* ----------------------------------------------------------
   9. STAT CARDS — small polish at 320px
   The number uses clamp(2.8rem, 7vw, 4.2rem) which gives
   ~2.8rem at 320px — readable. Just ensure padding doesn't
   waste space at the narrowest viewport.
   ---------------------------------------------------------- */
@media (max-width: 360px) {
  .parties-stats .stat-card {
    padding: 1.2rem 0.85rem;
  }
}


/* ----------------------------------------------------------
   10. REDUCED MOTION — parties mobile additions
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) and (max-width: 759px) {
  .ph--party .hero-art { animation: none !important; }
  .parties-cta-band .sticker { animation: none !important; }
}
