/**
 * Birthdays CSS — additive layer on top of tokens.css + components.css.
 *
 * Source: /design-v2/birthdays/{index,princess-castle,unicorn-fairytale,jungle-safari,candy-castle}/index.html.
 * Loaded ONLY on party_theme singular and archive pages.
 *
 * Theme accent tints are scoped via body-class selectors:
 *   .party-theme-princess-castle    → blush + passion-text
 *   .party-theme-unicorn-fairytale  → lavender + imaginative
 *   .party-theme-jungle-safari      → mint + generous-text
 *   .party-theme-candy-castle       → peach + playful-text
 *
 * Shared patterns: .zone-hero, .anchors, .theme-story, .included, .tiers, .gallery,
 * .memories, .faq, .cta-module. Archive-only patterns: .photos-grid, .photo-item.
 */

/* ─────────── Inner-page nav ─────────── */
.post-type-archive-party_theme .nav,
.single-party_theme .nav {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  padding: 12px 4%;
  background: rgba(255, 251, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 186, 1, 0.2);
}

/* Headline alignment with prototype */
.single-party_theme .h1,
.post-type-archive-party_theme .h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; }
.single-party_theme .h2,
.post-type-archive-party_theme .h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.single-party_theme .h3,
.post-type-archive-party_theme .h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.15; font-weight: 700; }

/* ─────────── Breadcrumb (shared) ─────────── */
.crumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--mute);
}
.crumb a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--uforea-yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.crumb a:hover { color: var(--gold-text); text-decoration-color: var(--gold-text); }
.crumb .sep { font-family: 'Italianno', cursive; color: var(--uforea-yellow); font-size: 22px; line-height: 1; vertical-align: middle; margin: 0 6px; display: inline-block; transform: translateY(-2px); }
.crumb .here { color: var(--ink-strong); font-weight: 600; }

/* ─────────── Theme accent variables (set per body class) ─────────── */
.party-theme-princess-castle   { --theme-tint: var(--blush);    --theme-strong: var(--passion-text); }
.party-theme-unicorn-fairytale { --theme-tint: var(--lavender); --theme-strong: var(--imaginative); }
.party-theme-jungle-safari     { --theme-tint: var(--mint);     --theme-strong: var(--generous-text); }
.party-theme-candy-castle      { --theme-tint: var(--peach);    --theme-strong: var(--playful-text); }
/* Default for archive — yellow accent */
.post-type-archive-party_theme { --theme-tint: var(--yellow-soft); --theme-strong: var(--gold-text); }

/* ─────────── Hero (shared with zone-detail pattern) ─────────── */
.zone-hero {
  position: relative;
  margin-top: 16px;
  /* padding-top clears the photo frame's outline (8px) + corner brackets (12px)
     so a tall 4:3 frame isn't cut off by overflow:hidden on wide screens
     (client round 2026-07). */
  padding: var(--hero-top) 0 var(--hero-bottom);
  background: var(--paper);
  overflow: hidden;
}
.zone-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .zone-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.zone-photo-frame {
  position: relative;
  border-radius: 6px;
  outline: 1.5px solid var(--uforea-yellow);
  outline-offset: 8px;
  box-shadow: 0 24px 60px rgba(63,63,63,.12);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.zone-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zone-photo-frame::before, .zone-photo-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--uforea-yellow);
  z-index: 4;
}
.zone-photo-frame::before { top: -12px; left: -12px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.zone-photo-frame::after  { bottom: -12px; right: -12px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }

.sticker-zone {
  position: absolute;
  top: 16px;
  right: -12px;
  z-index: 5;
  background: var(--theme-tint);
  color: var(--theme-strong);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(3deg);
  box-shadow: 0 6px 14px rgba(63,63,63,.10);
}
.post-type-archive-party_theme .sticker-zone { background: var(--yellow-soft); color: #8a6500; }
.sticker-zone::before, .sticker-zone::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: inherit;
  filter: brightness(.92);
}
.sticker-zone::before { left: -8px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.sticker-zone::after  { right: -8px; clip-path: polygon(0 0, 100% 50%, 0 100%); }

.zone-hero .zone-meta { display: flex; flex-direction: column; gap: 18px; padding: 0; }
.zone-tagline { font-size: 17px; color: var(--ink); line-height: 1.65; max-width: 50ch; }
.zone-tagline em { font-style: italic; color: var(--mute); font-size: 15px; }
.zone-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ─────────── Anchor strip ─────────── */
.anchors {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(255, 251, 243, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 186, 1, 0.2);
  border-bottom: 1px solid rgba(255, 186, 1, 0.2);
}
.anchors-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchors-row::-webkit-scrollbar { display: none; }
.anchors-row a {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.anchors-row a:hover, .anchors-row a.active { color: var(--ink-strong); border-bottom-color: var(--uforea-yellow); }
.anchors-row .sep { width: 1px; height: 14px; background: rgba(63, 63, 63, 0.12); }

/* ─────────── Archive: "What's included" strip (5-up) ─────────── */
.included.archive-included { padding: var(--section-y) 0; background: var(--yellow-soft); }
.archive-included-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 1024px) { .archive-included-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .archive-included-grid { grid-template-columns: 1fr; } }
.included-card {
  background: var(--paper);
  border: 1px solid var(--uforea-yellow);
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
}
.included-card .ring {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--cream);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid var(--uforea-yellow);
}
.included-card strong { display: block; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 17px; margin-bottom: 6px; color: var(--ink-strong); }
.included-card p { color: var(--mute); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ─────────── Single: theme story (narrative w/ theme-tint bg) ─────────── */
.theme-story { padding: var(--section-y) 0; background: var(--theme-tint); }
.theme-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .theme-story-grid { grid-template-columns: 1fr; gap: 32px; } }
.theme-story-photo {
  position: relative;
  border-radius: 50%/55%;
  border: 1.5px solid var(--uforea-yellow);
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: 0 18px 40px rgba(63,63,63,.10);
}
.theme-story-photo img { width: 100%; height: 100%; object-fit: cover; }
.theme-story-text { display: flex; flex-direction: column; gap: 18px; }
.theme-story-text p { color: var(--ink); font-size: 16.5px; line-height: 1.7; max-width: 60ch; }
.theme-story-text p strong { color: var(--ink-strong); font-weight: 700; }

/* ─────────── Single: what's included (2-up list) ─────────── */
.included { padding: var(--section-y) 0; background: var(--cream); }
.included-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 720px) { .included-grid { grid-template-columns: 1fr; } }
.included-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--uforea-yellow);
  border-radius: 12px;
}
.included-row .ring {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--uforea-yellow);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--paper);
}
.included-row strong { display: block; font-family: 'Playfair Display', serif; font-size: 17px; color: var(--ink-strong); margin-bottom: 4px; font-weight: 700; }
.included-row span { color: var(--mute); font-size: 14.5px; line-height: 1.55; }

/* ─────────── Gallery (asymmetric grid, theme-tint gradient bg) ─────────── */
.gallery { padding: var(--section-y) 0; background: linear-gradient(180deg, var(--paper) 0%, var(--theme-tint) 100%); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  margin-top: 36px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; } }
.gallery-item {
  position: relative;
  border: 1.5px solid var(--uforea-yellow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(63,63,63,.08);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.feature { grid-column: span 6; grid-row: span 2; }
.gallery-item.tall { grid-column: span 3; grid-row: span 2; }
.gallery-item.wide { grid-column: span 6; }
.gallery-item.std { grid-column: span 3; }
@media (max-width: 900px) {
  .gallery-item,
  .gallery-item.feature,
  .gallery-item.tall,
  .gallery-item.wide,
  .gallery-item.std { grid-column: span 1; grid-row: auto; }
}

/* Archive: photos strip — gradient to lavender */
.photos { padding: var(--section-y) 0; background: linear-gradient(180deg, var(--paper) 0%, var(--lavender) 100%); }
.photos-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense; /* backfill masonry holes (visual review 2026-07) */
  gap: 14px;
  margin-top: 36px;
}
@media (max-width: 900px) {
  .photos-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
.photo-item {
  position: relative;
  margin: 0;
  border: 1.5px solid var(--uforea-yellow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(63,63,63,.08);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item .photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.photo-item .photo-open:focus-visible { outline: 3px solid var(--uforea-yellow); outline-offset: -3px; }
.photo-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(255, 251, 243, 0.92);
  color: var(--ink-strong);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}
.photo-item.feature { grid-column: span 6; grid-row: span 2; }
.photo-item.tall    { grid-column: span 3; grid-row: span 2; }
.photo-item.std     { grid-column: span 3; }
.photo-item.wide    { grid-column: span 6; }
/* Mobile spans MUST come after the desktop span rules (same specificity —
   cascade order decides; an earlier copy of this block silently lost, leaving
   .wide at span 6 inside the 2-col grid = implicit 2px sliver columns). */
@media (max-width: 900px) {
  .photo-item,
  .photo-item.tall,
  .photo-item.std { grid-column: span 1; grid-row: auto; }
  .photo-item.feature,
  .photo-item.wide { grid-column: span 2; grid-row: auto; }
}

/* ─────────── Package tiers ─────────── */
.tiers { padding: var(--section-y) 0; background: var(--paper); }
.post-type-archive-party_theme .tiers { background: var(--cream); }
.tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 900px) { .tiers-grid { grid-template-columns: 1fr; } }
.tier-card {
  background: var(--paper);
  border: var(--card-frame);
  border-radius: var(--r-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.tier-card.featured { background: var(--theme-tint); border-width: 2px; transform: translateY(-6px); }
.post-type-archive-party_theme .tier-card.featured { background: var(--yellow-soft); }
.tier-card .tier-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; color: var(--ink-strong); margin-bottom: 4px; }
.tier-card .tier-qual { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 10.5px; font-weight: 700; color: var(--mute); letter-spacing: .14em; text-transform: uppercase; background: var(--cream); border-radius: 4px; position: relative; margin-bottom: 14px; }
.tier-card .tier-qual::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--uforea-yellow); }
.tier-card ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.tier-card ul li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  border-bottom: 1px dashed rgba(255, 186, 1, 0.3);
}
.tier-card ul li:last-child { border-bottom: 0; }
.tier-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--uforea-yellow);
  border-radius: 999px;
}
.tier-card .btn { width: 100%; justify-content: center; }
.pricing-caveat {
  text-align: center;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--mute);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.pricing-caveat a { color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--uforea-yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.pricing-caveat a:hover { color: var(--gold-text); text-decoration-color: var(--gold-text); }

/* ─────────── Memories testimonials ─────────── */
.memories { padding: var(--section-y) 0; background: var(--cream); }
.memories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 720px) { .memories-grid { grid-template-columns: 1fr; } }
.memory-card {
  background: var(--paper);
  border: 1px solid var(--uforea-yellow);
  border-radius: 16px;
  padding: 26px 24px;
  position: relative;
}
.memory-card::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 90px;
  color: var(--theme-tint);
  line-height: 1;
  font-weight: 700;
}
.memory-card blockquote {
  margin: 16px 0 14px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--ink-strong);
  line-height: 1.45;
  font-weight: 700;
}
.memory-card cite { font-style: normal; font-size: 13px; color: var(--mute); display: block; }
.memories-disclaimer { text-align: center; margin-top: 28px; font-size: 12.5px; color: var(--mute); }

/* FAQ — party-theme pages keep only their section background (theme-tint on
   single, mint on archive); the accordion inherits the single canonical
   .faq-item component from components.css (2026-07 consistency pass). */
.single-party_theme .faq { background: var(--theme-tint); }
.post-type-archive-party_theme .faq { background: var(--mint); }
.faq-more { text-align: center; margin: 26px auto 0; font-size: 14px; color: var(--ink); }
.faq-more a { color: var(--ink-strong); font-weight: 600; text-decoration: underline; text-decoration-color: var(--uforea-yellow); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.faq-more a:hover { color: var(--gold-text); text-decoration-color: var(--gold-text); }

/* ─────────── CTA module (yellow-soft bg) ─────────── */
.cta-module { padding: var(--section-y) 0; background: var(--yellow-soft); }
.cta-card { text-align: center; max-width: 680px; margin: 0 auto; padding: 36px 24px; }
.cta-card h2 { margin-bottom: 14px; }
.cta-card p { color: var(--ink); font-size: 16px; line-height: 1.6; margin: 0 0 28px; }
.cta-card .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Reduced-motion for tier-card.featured translate */
@media (prefers-reduced-motion: reduce) {
  .tier-card.featured { transform: none !important; }
}

/* ─────────── Mobile rhythm — compress 80–100px section bands to ~56px ─────────── */
@media (max-width: 720px) {
  .zone-hero { padding: var(--hero-top) 0 var(--hero-bottom); }
  .included.archive-included,
  .included,
  .theme-story,
  .gallery,
  .photos,
  .tiers,
  .memories,
  .single-party_theme .faq,
  .post-type-archive-party_theme .faq,
  .cta-module { padding-top: 56px; padding-bottom: 56px; }
}


/* ── Client 2026-07 R2: birthday page additions ─────────────────────── */
/* Hero portrait video (temporary client promo clip) */
.zone-video-frame { text-align: center; width: fit-content; margin-inline: auto; }
.zone-video-frame video { width: 100%; max-width: 400px; aspect-ratio: 9/16; height: auto; border-radius: 16px; display: block; margin: 0 auto; background: #111; box-shadow: 0 14px 34px rgba(63,63,63,.16); }

/* Photos on the five what's-included cards */
.included-card .included-photo { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 12px; }

/* Past-party album lightboxes — stacked scrollable photos */
.uforea-lightbox--album .lb-inner { max-width: 820px; width: min(92vw, 820px); }
.uforea-lightbox--album .lb-album-title { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; margin: 0 34px 12px 0; color: var(--ink-strong, #2F2A28); }
.uforea-lightbox--album .lb-scroll { display: grid; gap: 10px; max-height: 74vh; overflow-y: auto; padding-right: 4px; }
.uforea-lightbox--album .lb-scroll img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* Package price line (client 2026-07-17: four packages with public prices, effective 1 Jul 2026) */
.tier-card .tier-price { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 26px; color: var(--ink-strong, #2F2A28); margin: 6px 0 10px; }

/* Decorative hero sparkles collide with the tagline at phone widths. */
@media (max-width: 600px) { .zone-hero .sparkle { display: none; } }

/* Celebration-kit point list (client 2026-07-17: was a run-on sentence) */
.tiers .kit-list {
  list-style: none;
  max-width: 640px;
  margin: 20px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 34px;
  text-align: left;
  color: var(--ink);
  font-size: 15.5px;
}
.tiers .kit-list li { position: relative; padding-left: 26px; line-height: 1.5; }
.tiers .kit-list li::before {
  content: "\2713";
  position: absolute; left: 2px; top: 0;
  color: var(--generous, #43AA8B);
  font-weight: 700;
}
@media (max-width: 560px) { .tiers .kit-list { grid-template-columns: 1fr; max-width: 340px; } }
.tiers .kit-note { margin: 18px auto 0; text-align: center; color: var(--mute); font-size: 14px; }

/* ── Album lightbox on phones (client 2026-07-17): full-screen sheet ──
   The floating card + outside-the-corner close button clip at small
   viewports; on phones the album opens edge-to-edge with the close button
   safely inside. */
@media (max-width: 600px) {
  .uforea-lightbox--album {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;    /* fallback: Safari <16.4 has no dvh */
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    inset: 0;
  }
  .uforea-lightbox--album .lb-inner {
    width: 100%;
    height: 100vh;    /* fallback: Safari <16.4 */
    height: 100dvh;
    border-radius: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .uforea-lightbox--album .lb-close {
    top: 10px;
    right: 12px;
  }
  .uforea-lightbox--album .lb-album-title {
    margin: 6px 58px 14px 2px;
    font-size: 19px;
  }
  .uforea-lightbox--album .lb-scroll {
    flex: 1;
    max-height: none;
    padding-right: 0;
  }
}

/* Hero video play overlay (client 2026-07-17: same branded button as home) */
.zone-video-frame { position: relative; }
.zone-video-frame .play-btn { z-index: 3; }
/* Poster image fills the hero frame exactly like the old inline player did */
.zone-video-frame .bday-hero-poster { width: 100%; max-width: 400px; aspect-ratio: 9/16; height: auto; object-fit: cover; border-radius: 16px; display: block; margin: 0 auto; box-shadow: 0 14px 34px rgba(63,63,63,.16); }
