/* Event landing pages (/birthday-parties, /escape-rooms-for-teams, /school-groups). Markup: scripts/fx_landing.py
   and the page scripts. Builds on fx-teambuilding.css (.fx-tb: titles, buttons, hero panel, steps, quotes, FAQ,
   closing band, the Half Sour block); this file adds the photo hero, key facts, cards, rooms by age, the age
   rules, group sizes, the session timeline, photo strip and reading list. Same palette: charcoal, orange #f08400. */

/* Hero: the room photo under a charcoal wash, h1 in the site's bold Montserrat (long, query-shaped titles) */
.fx-lp .fx-lp-hero:before { background: linear-gradient(90deg, rgba(27,27,27,.95) 0%, rgba(27,27,27,.85) 55%, rgba(27,27,27,.62) 100%), var(--fx-lp-bg) center / cover no-repeat; }
.fx-lp .fx-lp-hero:after { content: none; }
.fx-lp .fx-tb-hero__grid { align-items: end; }
.fx-lp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); }
html:not(#fx) .fx-lp .fx-lp-crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
html:not(#fx) .fx-lp .fx-lp-crumbs a:hover { color: #f08400; }
html:not(#fx) .fx-lp .fx-tb-hero__lead a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(240,132,0,.8); text-underline-offset: 4px; white-space: nowrap; }
html:not(#fx) .fx-lp .fx-tb-hero__lead a:hover { color: #f08400; }
.fx-lp .fx-lp-eyebrow { margin: 0 0 14px; font: 400 17px/1.2 GothamMedium, Montserrat, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #f08400; }
html:not(#fx) .fx-lp .fx-lp-title { margin: 0 0 24px; font: 800 54px/1.04 Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.02em; text-transform: none; color: #fff; }
.fx-lp .fx-tb-hero__lead { max-width: 620px; font-size: 18px; }
.fx-lp-keyfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.fx-lp-keyfacts li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.35; color: rgba(255,255,255,.92); }
.fx-lp-keyfacts .fx-tb-i { width: 22px; height: 22px; color: #f08400; }

.fx-lp-nw { white-space: nowrap; }

/* Section rhythm and shared text */
.fx-lp section.fx-lp-why, .fx-lp section.fx-lp-debrief { background: #fff; }
.fx-lp section.fx-lp-agesec { background: #f6f4f1; }
.fx-lp section.fx-lp-sizesec, .fx-lp section.fx-lp-howsec { background: #363636; color: #fff; }
.fx-lp section.fx-lp-howsec { background: #2b2b2b; }
.fx-lp section.fx-lp-fe { background: #fff; }
.fx-lp section.fx-lp-gallery { padding: 0 0 96px; background: #fff; }
.fx-lp section.fx-lp-gallery--teams { padding-top: 0; }
.fx-lp section.fx-lp-gallery--school { padding-top: 96px; }
.fx-lp .fx-lp-book { background: #f6f4f1; }
.fx-lp .fx-lp-intro { max-width: 760px; margin: -16px 0 32px; font-size: 18px; color: #4a4a4a; }
html:not(#fx) .fx-lp .fx-lp-h3 { margin: 56px 0 20px; font: 400 26px/1.1 GothamBlack, Montserrat, sans-serif; text-transform: uppercase; color: #1e1e1e; }
html:not(#fx) .fx-lp .fx-lp-h2b { margin: 0 0 16px; font: 400 40px/1.05 GothamBlack, Montserrat, sans-serif; text-transform: uppercase; color: #1e1e1e; }
.fx-lp-split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.fx-lp-split--top { align-items: start; }
.fx-lp-split .fx-tb-h2 { margin-bottom: 24px !important; }
.fx-lp-sizesec .fx-lp-split p, .fx-lp-howsec .fx-lp-split p { color: rgba(255,255,255,.8); }
.fx-lp .fx-lp-more { margin: 28px 0 0; font-size: 16px; font-weight: 600; text-align: center; }
html:not(#fx) .fx-lp .fx-tb-quotes a:not([class]) { color: #f08400; }
.fx-lp .fx-tb-quotes .fx-lp-more { color: rgba(255,255,255,.85); }
.fx-lp .fx-lp-note { margin: 22px 0 0; font-size: 15px; color: #4a4a4a; }
.fx-lp .fx-tb-steps__list a:not([class]) { font-weight: 700; }

/* Cards (benefits, reasons, debrief questions) */
.fx-lp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: lpc; }
.fx-lp-cards--five { grid-template-columns: repeat(6, 1fr); }
.fx-lp-cards--five li { grid-column: span 2; }
.fx-lp-cards--five li:nth-child(4) { grid-column: 2 / span 2; }
.fx-lp-cards--num { grid-template-columns: 1fr 1fr; }
.fx-lp-cards li { display: flex; flex-direction: column; gap: 8px; padding: 28px 26px; border-radius: 22px; background: #f6f4f1; counter-increment: lpc; }
.fx-lp-cards--num li:before { content: counter(lpc, decimal-leading-zero); font: 400 15px/1 GothamBlack, Montserrat, sans-serif; color: #f08400; }
.fx-lp-cards__i { width: 46px; height: 46px; margin-bottom: 8px; padding: 11px; border-radius: 50%; background: #363636; fill: none; stroke: #f08400; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fx-lp-cards b { font-size: 19px; font-weight: 800; line-height: 1.3; }
.fx-lp-cards span { font-size: 15px; line-height: 1.6; color: #4a4a4a; }

/* Rooms with who can play */
.fx-lp-rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
html:not(#fx) .fx-lp-room { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 0 0 18px; border-radius: 22px; background: #fff; color: #1e1e1e; text-decoration: none; overflow: hidden; }
.fx-lp-room__img { position: relative; display: block; margin-bottom: 12px; background: #ddd; }
.fx-lp-room__img img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.fx-lp-room:hover .fx-lp-room__img img { opacity: .85; }
.fx-lp-room__img em { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(30,30,30,.85); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fx-lp-room b { padding: 0 18px; font: 400 22px/1.1 GothamBlack, Montserrat, sans-serif; text-transform: uppercase; }
.fx-lp-room__meta { padding: 0 18px; font-size: 14px; color: #5a5a5a; }
.fx-lp-room__age { align-self: flex-start; margin: 10px 18px 0; padding: 6px 12px; border-radius: 999px; background: #f08400; color: #1e1e1e; font-size: 13px; font-weight: 800; }
.fx-lp-room--adult .fx-lp-room__age { background: #1e1e1e; color: #fff; }

/* The age rules */
.fx-lp-ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.fx-lp-ages li { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border-radius: 22px; background: #fff; }
.fx-lp-ages li:before { content: ""; width: 40px; height: 5px; margin-bottom: 10px; border-radius: 3px; background: #f08400; }
.fx-lp-ages li:last-child:before { background: #1e1e1e; }
.fx-lp-ages b { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8a5a00; }
.fx-lp-ages strong { font: 400 24px/1.1 GothamBlack, Montserrat, sans-serif; text-transform: uppercase; }
.fx-lp-ages span { font-size: 15px; line-height: 1.55; color: #4a4a4a; }

/* Group sizes */
.fx-lp-sizes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fx-lp-sizes li { display: grid; grid-template-columns: 190px 1fr; grid-template-rows: auto auto; column-gap: 22px; align-items: center; padding: 20px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; }
.fx-lp section.fx-lp-sizesec--light { background: #f6f4f1; color: #1e1e1e; }
.fx-lp .fx-lp-sizesec--light .fx-lp-split p, .fx-lp-sizesec--light .fx-lp-sizes span { color: #4a4a4a; }
.fx-lp-sizesec--light .fx-lp-sizes li { border: 0; background: #fff; }
.fx-lp-sizesec--light .fx-lp-sizes b { color: #c96a00; }
.fx-lp-sizes b { grid-row: span 2; font: 400 34px/1 GothamBlack, Montserrat, sans-serif; color: #f08400; white-space: nowrap; }
.fx-lp-sizes strong { font-size: 17px; font-weight: 800; }
.fx-lp-sizes span { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.7); }

/* Session timeline */
.fx-lp-timeline { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: lpt; }
.fx-lp-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 22px 16px 70px; border-radius: 18px; background: #363636; counter-increment: lpt; }
.fx-lp-timeline li:before { content: counter(lpt); position: absolute; left: 20px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: #f08400; color: #1e1e1e; font: 400 16px/34px GothamBlack, Montserrat, sans-serif; text-align: center; }
.fx-lp-timeline b { font-size: 17px; font-weight: 800; }
.fx-lp-timeline span { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.72); }

/* The Final Exam (school page) */
.fx-lp-fe__img { position: relative; margin: 0; overflow: hidden; border-radius: 24px; }
.fx-lp-fe__img img { display: block; width: 100%; height: auto; }
.fx-lp-fe__img figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(30,30,30,.85); color: #fff; font-size: 13px; font-weight: 700; }
.fx-lp-fe p:not(.fx-tb-tag) { color: #4a4a4a; }

/* Photo strip */
.fx-lp-photos { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; grid-auto-rows: 260px; gap: 14px; }
.fx-lp-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: 20px; background: #eee; }
.fx-lp-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-lp-photos figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(30,30,30,.82); color: #fff; font-size: 13px; font-weight: 700; }
.fx-lp-photos figure:first-child figcaption { background: #f08400; color: #1e1e1e; }

/* Reviews: name and source line */
.fx-lp-quotes figcaption span { font-weight: 600; letter-spacing: .04em; text-transform: none; color: rgba(255,255,255,.65); }
html:not(#fx) .fx-lp-quotes figcaption a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }

/* Reading list */
.fx-lp-reads { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
html:not(#fx) .fx-lp-reads a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #f6f4f1; color: #1e1e1e; font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none; transition: background .2s; }
html:not(#fx) .fx-lp-reads a:hover { background: #efe9e1; }
.fx-lp-reads__i, .fx-lp-reads__go { width: 20px; height: 20px; flex: none; fill: none; stroke: #f08400; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fx-lp-reads span { flex: 1; }
.fx-lp-reads__go { stroke: #1e1e1e; }

/* Tablet */
@media (max-width: 1100px) {
  html:not(#fx) .fx-lp .fx-lp-title { font-size: 46px; }
  .fx-lp-cards, .fx-lp-rooms { grid-template-columns: repeat(2, 1fr); }
  .fx-lp-cards--five { grid-template-columns: repeat(2, 1fr); }
  .fx-lp-cards--five li, .fx-lp-cards--five li:nth-child(4) { grid-column: auto; }
  .fx-lp-cards--five li:last-child { grid-column: 1 / -1; }
  .fx-lp-split { grid-template-columns: 1fr; gap: 36px; }
  .fx-lp-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
}

/* Phones */
@media (max-width: 767px) {
  .fx-lp .fx-lp-hero:before { background: linear-gradient(rgba(27,27,27,.88), rgba(27,27,27,.94)), var(--fx-lp-bg-sm) center / cover no-repeat; }
  .fx-lp-crumbs { margin-bottom: 16px; }
  .fx-lp .fx-lp-eyebrow { font-size: 13px; letter-spacing: .18em; }
  html:not(#fx) .fx-lp .fx-lp-title { font-size: 34px; line-height: 1.08; }
  .fx-lp .fx-tb-hero__lead { font-size: 16px; }
  .fx-lp-keyfacts { grid-template-columns: 1fr; }
  .fx-lp-cards, .fx-lp-cards--num { grid-template-columns: 1fr; gap: 12px; }
  .fx-lp-ages { grid-template-columns: 1fr; gap: 10px; }
  .fx-lp-ages li { padding: 18px; border-radius: 18px; }
  .fx-lp-ages li:before { margin-bottom: 4px; }
  .fx-lp-ages strong { font-size: 20px; }
  .fx-lp-rooms { gap: 10px; }
  html:not(#fx) .fx-lp-room { padding-bottom: 14px; border-radius: 16px; }
  .fx-lp-room__img { margin-bottom: 10px; }
  .fx-lp-room__img em { left: 8px; top: 8px; padding: 4px 8px; font-size: 11px; letter-spacing: .06em; }
  .fx-lp-room b { padding: 0 12px; font-size: 16px; }
  .fx-lp-room__meta { padding: 0 12px; font-size: 13px; }
  .fx-lp-room__age { margin: 8px 12px 0; padding: 5px 10px; border-radius: 10px; font-size: 12px; line-height: 1.3; }
  .fx-lp-cards li { padding: 22px 20px; }
  /* icon cards: the icon sits beside the title and the text runs full width below, so every word stays and the stack is shorter */
  .fx-lp-cards:not(.fx-lp-cards--num) li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px 14px; padding: 18px 20px; }
  .fx-lp-cards:not(.fx-lp-cards--num) .fx-lp-cards__i { width: 40px; height: 40px; margin: 0; padding: 9px; }
  .fx-lp-cards:not(.fx-lp-cards--num) span { grid-column: 1 / -1; }
  .fx-lp .fx-lp-intro { margin-top: -8px; font-size: 16px; }
  html:not(#fx) .fx-lp .fx-lp-h3 { margin-top: 40px; font-size: 22px; }
  html:not(#fx) .fx-lp .fx-lp-h2b { font-size: 30px; }
  .fx-lp-sizes li { grid-template-columns: 1fr; padding: 18px 20px; }
  .fx-lp-sizes b { grid-row: auto; margin-bottom: 6px; font-size: 28px; }
  .fx-lp-timeline li { padding: 14px 16px 14px 62px; }
  .fx-lp-timeline li:before { left: 16px; }
  .fx-lp-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .fx-lp-photos figure:first-child { grid-column: 1 / -1; grid-row: span 1; }
  .fx-lp-photos figure { border-radius: 14px; }
  .fx-lp section.fx-lp-gallery { padding-bottom: 64px; }
  .fx-lp section.fx-lp-gallery--school { padding-top: 64px; }
  .fx-lp .fx-lp-more { text-align: left; }
  .fx-lp-photos figure:last-child:nth-child(even) { grid-column: 1 / -1; } /* first photo is full width: an even count leaves the last one alone */
}
