/*
 * FRONTEND V2 — UX Pilot-faithful component layer.
 *
 * Scope: Homepage, About, Know Who You Are (Phase: visual rebuild).
 * All classes use the `pjux-` prefix so nothing here can collide with, or
 * be overridden by, the older `.pj-*` component classes still used by the
 * not-yet-ported pages (Our Work, Impact, Partner With Us, Support Our
 * Work, Contact). This file is loaded AFTER style.css so it wins on
 * specificity for any genuinely shared element (body, headings) without
 * needing !important anywhere.
 *
 * Colour tokens reuse the theme's existing CSS custom properties directly
 * (--wp--preset--color--navy etc.) since the design system's hex values
 * already match the UX Pilot Tailwind config 1:1 — confirmed, not assumed.
 */

:root {
	--pjux-max: 1440px;
	--pjux-gutter: clamp(1rem, 3vw, 2.5rem);
}

.pjux-container {
	max-width: var(--pjux-max);
	margin: 0 auto;
	padding-left: var(--pjux-gutter);
	padding-right: var(--pjux-gutter);
}

/* ---- Announcement bar ---- */
.pjux-announce {
	background: var(--wp--preset--color--navy);
	color: #fff;
	padding: 0.5rem var(--pjux-gutter);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pjux-announce__inner {
	max-width: var(--pjux-max);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 600;
}
.pjux-announce__dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
	margin-right: 0.75rem;
	animation: pjux-pulse 2s ease-in-out infinite;
}
@keyframes pjux-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.pjux-announce a { color: inherit; text-decoration: none; }
.pjux-announce a:hover { opacity: 0.7; }

/* ---- Header (transparent overlay on hero pages, solid on interior pages) ----
   DEFAULT STATE = solid (safe on every page, including the five not yet
   ported to the new hero layout). The transparent overlay treatment is
   opt-in, scoped to the specific pages whose template actually renders a
   matching full-bleed dark hero directly beneath the header. This keeps
   the SAME header/footer markup and navigation system genuinely
   consistent across all eight pages (per Decision 3) without breaking
   the five pages still using the old body layout. */
.pjux-header {
	position: relative;
	top: 0;
	width: 100%;
	z-index: 50;
	background: var(--wp--preset--color--warm-white);
	border-bottom: 1px solid rgba(11,31,58,0.06);
}
body.page-slug-front-page .pjux-header,
body.page-slug-festival-road-race .pjux-header {
	position: absolute;
	top: 40px;
	left: 0;
	background: transparent;
	border-bottom: none;
}
.pjux-header__logo,
.pjux-nav__list a,
.pjux-nav-toggle {
	color: var(--wp--preset--color--navy);
}
body.page-slug-front-page .pjux-header__logo,
body.page-slug-front-page .pjux-nav__list a,
body.page-slug-front-page .pjux-nav-toggle,
body.page-slug-festival-road-race .pjux-header__logo,
body.page-slug-festival-road-race .pjux-nav__list a,
body.page-slug-festival-road-race .pjux-nav-toggle {
	color: #fff;
}
.pjux-header__cta {
	border: 1px solid rgba(11,31,58,0.2);
	background: transparent;
	color: var(--wp--preset--color--navy);
	padding: 0.85rem 1.75rem;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}
.pjux-header__cta:hover { background: var(--wp--preset--color--navy); color: #fff; }
body.page-slug-front-page .pjux-header__cta,
body.page-slug-festival-road-race .pjux-header__cta {
	border-color: rgba(255,255,255,0.35);
	background: rgba(255,255,255,0.08);
	color: #fff;
}
body.page-slug-front-page .pjux-header__cta:hover,
body.page-slug-festival-road-race .pjux-header__cta:hover {
	background: #fff;
	color: var(--wp--preset--color--navy);
}
.pjux-header__inner {
	max-width: var(--pjux-max);
	margin: 0 auto;
	padding: 1.5rem var(--pjux-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.pjux-header__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}
.pjux-header__mark {
	height: 2.1rem;
	width: auto;
	display: block;
	flex-shrink: 0;
}
/* Active nav state: each link carries a static per-page marker class;
   only the page whose body carries the matching page-slug class lights
   it up. This avoids any PHP/template-part conditional logic while still
   giving a real "you are here" indicator. */
body.page-slug-front-page .pjux-nav-current-front-page,
body.page-slug-about-us .pjux-nav-current-about-us,
body.page-slug-our-work .pjux-nav-current-our-work,
body.page-slug-impact .pjux-nav-current-impact,
body.page-slug-festival-road-race .pjux-nav-current-festival-road-race,
body.page-slug-partner-with-us .pjux-nav-current-partner-with-us,
body.page-slug-contact .pjux-nav-current-contact {
	position: relative;
	color: var(--wp--preset--color--gold);
}
body.page-slug-front-page .pjux-nav-current-front-page::after,
body.page-slug-about-us .pjux-nav-current-about-us::after,
body.page-slug-our-work .pjux-nav-current-our-work::after,
body.page-slug-impact .pjux-nav-current-impact::after,
body.page-slug-festival-road-race .pjux-nav-current-festival-road-race::after,
body.page-slug-partner-with-us .pjux-nav-current-partner-with-us::after,
body.page-slug-contact .pjux-nav-current-contact::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.6rem;
	height: 2px;
	background: var(--wp--preset--color--gold);
}

.pjux-header__logo {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
}
.pjux-header__logo span {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6rem;
	letter-spacing: 0.35em;
	font-weight: 700;
	opacity: 0.8;
	margin-top: 0.25rem;
	text-transform: uppercase;
}
.pjux-nav {
	display: flex;
	align-items: center;
	gap: 2.5rem;
}
.pjux-nav__list {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.64rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
}
.pjux-nav__list li { white-space: nowrap; }
.pjux-nav__list a { text-decoration: none; }
.pjux-nav__list a:hover { color: var(--wp--preset--color--gold); }

.pjux-nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.25rem;
	padding: 0.25rem;
}

@media (max-width: 1024px) {
	.pjux-nav__list { display: none; }
	.pjux-nav-toggle { display: block; }
	.pjux-header__cta { display: none; }
}

/* Mobile nav drawer — shared functional system across all pjux pages */
.pjux-mobile-nav {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100;
	background: var(--wp--preset--color--navy);
	padding: 2rem var(--pjux-gutter);
	flex-direction: column;
}
.pjux-mobile-nav.is-open { display: flex; }
.pjux-mobile-nav__close {
	align-self: flex-end;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	cursor: pointer;
	margin-bottom: 2rem;
}
.pjux-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}
.pjux-mobile-nav__list a {
	color: #fff;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.75rem;
	font-weight: 300;
}
.pjux-mobile-nav__cta {
	margin-top: 2.5rem;
	display: inline-block;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	padding: 1rem 1.75rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	width: fit-content;
}

/* ---- Hero (Home) ---- */
.pjux-hero {
	position: relative;
	height: 800px;
	width: 100%;
	background: var(--wp--preset--color--charcoal-text);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding-bottom: 8rem;
}
.pjux-hero__bg { position: absolute; inset: 0; z-index: 0; }
.pjux-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pjux-hero__overlay-top { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,31,58,0.6), transparent 40%); }
.pjux-hero__overlay-bottom { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,31,58,0.9), rgba(11,31,58,0.2) 50%, transparent); }
.pjux-hero__content { position: relative; z-index: 10; max-width: var(--pjux-max); margin: 0 auto; width: 100%; padding: 0 var(--pjux-gutter); }
.pjux-hero__inner { max-width: 48rem; }
.pjux-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.75rem, 7vw, 6rem);
	font-weight: 300;
	line-height: 0.9;
	color: #fff;
	margin-bottom: 2rem;
}
.pjux-hero__lead {
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	color: rgba(255,255,255,0.8);
	font-weight: 300;
	max-width: 36rem;
	line-height: 1.6;
	margin-bottom: 2.5rem;
}
.pjux-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
.pjux-btn-primary {
	background: var(--wp--preset--color--warm-sand);
	color: var(--wp--preset--color--charcoal-text);
	padding: 1rem 2.5rem;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
	transition: background-color 0.2s ease;
}
.pjux-btn-primary:hover { background: #fff; }
.pjux-btn-ghost-light {
	color: #fff;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* ---- Trust strip ---- */
.pjux-trust-strip { background: #fff; border-bottom: 1px solid rgba(11,31,58,0.05); padding: 3rem 0; }
.pjux-trust-strip__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.pjux-trust-strip__item { flex: 1 1 200px; min-width: 200px; }
.pjux-trust-strip__label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; color: var(--wp--preset--color--navy); margin-bottom: 0.5rem; }
.pjux-trust-strip__value { font-size: 0.9rem; font-weight: 300; color: rgba(27,29,34,0.6); }

/* ---- Section shells ---- */
.pjux-section { padding: 8rem 0; overflow: hidden; }
.pjux-section--navy { background: var(--wp--preset--color--navy); color: #fff; }
.pjux-section--cream { background: var(--wp--preset--color--warm-white); }
.pjux-section--white { background: #fff; }
.pjux-section--sand { background: rgba(231,220,201,0.2); }
.pjux-eyebrow {
	color: var(--wp--preset--color--terracotta);
	text-transform: uppercase;
	letter-spacing: 0.3em;
	font-size: 0.65rem;
	font-weight: 700;
	margin-bottom: 2rem;
	display: block;
}
.pjux-eyebrow--navy-bg { color: var(--wp--preset--color--gold); }
.pjux-eyebrow--on-navy-section { color: var(--wp--preset--color--navy); }
.pjux-h2 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--navy);
}
.pjux-h2--xl { font-size: clamp(2.25rem, 5vw, 5.25rem); }
.pjux-h2--lg { font-size: clamp(2rem, 3.5vw, 3.5rem); }
.pjux-h2--md { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.pjux-section--navy .pjux-h2 { color: #fff; }
.pjux-body { font-size: 1.125rem; line-height: 1.7; color: rgba(27,29,34,0.7); font-weight: 300; }
.pjux-section--navy .pjux-body { color: rgba(255,255,255,0.7); }

/* ---- Grid helpers (12-col, matches Tailwind's lg:grid-cols-12) ---- */
.pjux-grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 4vw, 5rem); }
@media (max-width: 1024px) {
	.pjux-grid-12 { grid-template-columns: 1fr; }
	.pjux-grid-12 > * { grid-column: auto !important; }
}
.pjux-col-4 { grid-column: span 4; }
.pjux-col-5 { grid-column: span 5; }
.pjux-col-6 { grid-column: span 6; }
.pjux-col-7 { grid-column: span 7; }
.pjux-col-8 { grid-column: span 8; }
/* Combined start+span shorthand — must be a single declaration per
   combination, since `grid-column-start` alone would override only the
   start of the `grid-column: span N` shorthand above and silently drop
   the span, collapsing the element to one track. (Real bug found via
   rendered-screenshot verification — see report.) */
.pjux-col-4.pjux-col-start-9 { grid-column: 9 / span 4; }
.pjux-col-5.pjux-col-start-8 { grid-column: 8 / span 5; }
.pjux-col-6.pjux-col-start-7 { grid-column: 7 / span 6; }

/* ---- Purpose featured image ---- */
.pjux-media { overflow: hidden; }
.pjux-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pjux-media--purpose { height: 600px; }
@media (max-width: 768px) { .pjux-media--purpose { height: 380px; } }

/* ---- Flagship (KWYA feature on Home) ---- */
.pjux-flagship-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.pjux-flagship-media img { width: 100%; height: 100%; object-fit: cover; }
.pjux-flagship-badge {
	position: absolute;
	bottom: -1.5rem;
	right: -1.5rem;
	background: var(--wp--preset--color--terracotta);
	color: #fff;
	padding: 1.75rem;
}
@media (max-width: 1280px) { .pjux-flagship-badge { display: none; } }
.pjux-flagship-badge__date { font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; line-height: 1.15; }
.pjux-flagship-badge__label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.6; margin-top: 0.75rem; }

/* ---- SDG grid ---- */
.pjux-sdg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.5vw, 2rem); }
.pjux-sdg-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }

/* ---- Perspectives ---- */
.pjux-perspectives-media { aspect-ratio: 4/3; overflow: hidden; border: 1px solid rgba(27,29,34,0.05); }
.pjux-perspectives-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.85; }
.pjux-perspectives-footer { margin-top: 6rem; padding-top: 3rem; border-top: 1px solid rgba(27,29,34,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.pjux-perspectives-launching { color: var(--wp--preset--color--terracotta); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; font-weight: 700; }
.pjux-perspectives-tags { display: flex; flex-wrap: wrap; gap: 2.5rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; color: rgba(11,31,58,0.35); }

/* ---- Manifesto ---- */
.pjux-manifesto-media { aspect-ratio: 3/4; overflow: hidden; }
.pjux-manifesto-media img { width: 100%; height: 100%; object-fit: cover; }
.pjux-manifesto-quote { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3; color: var(--wp--preset--color--navy); margin-bottom: 2.5rem; }

/* ---- Portraits (Johanna / Patrick / Founder) ----
   CRITICAL: portrait-friendly containers only. object-fit:cover on a
   3:4 or 4:5 ratio preserves head+shoulders for these specific supplied
   photographs (verified visually — see image spec sheet in report).
   Never object-fit:fill, never landscape ratios for these three files. */
.pjux-portrait { overflow: hidden; }
.pjux-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.pjux-portrait--johanna,
.pjux-portrait--patrick,
.pjux-portrait--founder { aspect-ratio: 3/4; }
.pjux-portrait--grayscale img { filter: grayscale(1); }

/* ---- Belief statements ---- */
.pjux-belief { display: flex; flex-direction: column; gap: 3.5rem; }
.pjux-belief p { font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.25; color: var(--wp--preset--color--navy); margin: 0; }
.pjux-belief p:nth-child(even) { text-align: right; }
@media (max-width: 768px) { .pjux-belief p:nth-child(even) { text-align: left; } }

/* ---- Founder box (dark inset panel, "About" legacy section) ---- */
.pjux-legacy-box { background: var(--wp--preset--color--navy); color: #fff; padding: clamp(2rem, 4vw, 4rem); }

/* ---- Institutional strip (4-col info grid) ---- */
.pjux-institutional-grid { display: grid; gap: 1px; background: rgba(27,29,34,0.05); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .pjux-institutional-grid { grid-template-columns: repeat(2, 1fr); } }
.pjux-institutional-grid__cell { background: var(--wp--preset--color--warm-white); padding: 2rem; }

/* ---- "The Idea" 4-column responsive grid ---- */
.pjux-idea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
@media (max-width: 768px) { .pjux-idea-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .pjux-idea-grid { grid-template-columns: 1fr; } }

.pjux-grayscale-img { filter: grayscale(1); opacity: 0.8; }

/* ---- Partner With Us: models grid, capability grid, process ---- */
.pjux-models-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.08); }
@media (max-width: 768px) { .pjux-models-grid { grid-template-columns: 1fr; } }
.pjux-model-cell { padding: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.pjux-capability-word { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(3rem, 6vw, 6rem); color: rgba(27,29,34,0.05); line-height: 1; margin-bottom: 1rem; }
.pjux-four-col-process { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
@media (max-width: 900px) { .pjux-four-col-process { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 500px) { .pjux-four-col-process { grid-template-columns: 1fr; } }
.pjux-process-step { padding: 3rem 2rem 0; border-right: 1px solid rgba(27,29,34,0.1); }
.pjux-process-step:last-child { border-right: none; }
@media (max-width: 900px) { .pjux-process-step { border-right: none; padding: 0; } }

/* ---- Support Our Work: donation option cards ---- */
.pjux-donate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 900px) { .pjux-donate-grid { grid-template-columns: 1fr; } }
.pjux-donate-card { background: #fff; border: 1px solid rgba(27,29,34,0.06); padding: 3rem; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(27,29,34,0.04); position: relative; }
.pjux-eft-table { background: var(--wp--preset--color--warm-white); padding: 1.75rem; font-size: 0.78rem; display: flex; flex-direction: column; gap: 0.85rem; }
.pjux-eft-row { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(27,29,34,0.05); padding-bottom: 0.6rem; }
.pjux-eft-row:last-child { border-bottom: none; padding-bottom: 0; }
.pjux-eft-row__label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.4; font-size: 0.68rem; }
.pjux-eft-row__value { color: var(--wp--preset--color--navy); text-align: right; }
.pjux-snapscan-pending { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background: var(--wp--preset--color--warm-white); border: 1px dashed rgba(27,29,34,0.15); }

/* ---- Enquiry form confirmation modal ---- */
.pjf-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(11,31,58,0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}
.pjf-modal-overlay.is-open { opacity: 1; visibility: visible; }
.pjf-modal {
	background: var(--wp--preset--color--warm-white);
	max-width: 30rem;
	width: 100%;
	padding: clamp(2.25rem, 5vw, 3.5rem);
	position: relative;
	text-align: center;
	transform: translateY(12px);
	transition: transform 0.25s ease;
	box-shadow: 0 20px 60px rgba(11,31,58,0.25);
}
.pjf-modal-overlay.is-open .pjf-modal { transform: translateY(0); }
.pjf-modal--error { background: #fff; }
.pjf-modal__close {
	position: absolute;
	top: 1rem;
	right: 1.25rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: rgba(11,31,58,0.4);
	cursor: pointer;
	padding: 0.25rem;
}
.pjf-modal__close:hover { color: var(--wp--preset--color--navy); }
.pjf-modal__eyebrow {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	font-weight: 700;
	color: var(--wp--preset--color--terracotta);
	margin-bottom: 1rem;
}
.pjf-modal__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
	color: var(--wp--preset--color--navy);
	margin-bottom: 1rem;
	line-height: 1.2;
}
.pjf-modal__body {
	color: rgba(27,29,34,0.65);
	font-weight: 300;
	line-height: 1.6;
	margin-bottom: 2rem;
}
.pjf-modal__body a { color: var(--wp--preset--color--navy); text-decoration: underline; }
.pjf-modal__cta {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border: none;
	padding: 0.9rem 2.25rem;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 700;
	cursor: pointer;
}
.pjf-modal__cta:hover { background: var(--wp--preset--color--terracotta); }

/* ---- Enquiry form confirmation modal (dup guard end) ---- */
.pjux-pathway-list { display: flex; flex-direction: column; gap: 1px; background: rgba(27,29,34,0.05); border: 1px solid rgba(27,29,34,0.05); }
.pjux-pathway-item { background: #fff; padding: 3rem; }
.pjux-accountability-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(27,29,34,0.1); border: 1px solid rgba(27,29,34,0.1); }
@media (max-width: 900px) { .pjux-accountability-grid { grid-template-columns: 1fr 1fr; } }
.pjux-accountability-cell { background: #fff; padding: 2.5rem; }
.pjux-dashboard-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .pjux-dashboard-grid { grid-template-columns: 1fr 1fr; } }
.pjux-dashboard-cell { border: 1px solid rgba(27,29,34,0.06); padding: 2rem; height: 12rem; display: flex; flex-direction: column; justify-content: space-between; }
.pjux-flagship-measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); }
.pjux-flagship-measure-cell { padding: 2rem; }

/* ---- Five-column pathway/impact-progression grids (Our Work) ---- */
.pjux-five-col-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .pjux-five-col-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .pjux-five-col-grid { grid-template-columns: 1fr; } }
.pjux-five-col-grid--bordered > div { border-right: 1px solid rgba(255,255,255,0.1); padding: 3rem 2rem; }
.pjux-five-col-grid--bordered > div:last-child { border-right: none; }
@media (max-width: 900px) { .pjux-five-col-grid--bordered > div { border-right: none; padding: 0; } }
.pjux-big-num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(3rem, 5vw, 4.5rem); color: rgba(27,29,34,0.05); line-height: 1; display: block; margin-bottom: 1.5rem; }
.pjux-section--navy .pjux-big-num { color: rgba(255,255,255,0.05); }

/* ---- Pipeline cards (Our Work) ---- */
.pjux-pipeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(27,29,34,0.1); border: 1px solid rgba(27,29,34,0.1); }
@media (max-width: 768px) { .pjux-pipeline-grid { grid-template-columns: 1fr; } }
.pjux-pipeline-card { background: #fff; padding: 3rem; }
.pjux-pipeline-tag { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; padding: 0.35rem 0.85rem; display: inline-block; margin-bottom: 1.5rem; }
.pjux-pipeline-tag--active { background: rgba(63,92,76,0.1); color: var(--wp--preset--color--forest-green); }
.pjux-pipeline-tag--dev { background: rgba(212,167,44,0.12); color: var(--wp--preset--color--gold); }
.pjux-event-nav {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(251,249,245,0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(27,29,34,0.05);
	transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.pjux-event-nav__inner {
	max-width: var(--pjux-max);
	margin: 0 auto;
	padding: 1.25rem var(--pjux-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.pjux-event-nav__links {
	display: flex;
	align-items: center;
	gap: 2.25rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.pjux-event-nav__links::-webkit-scrollbar { display: none; }
.pjux-event-nav__links a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	white-space: nowrap;
}
.pjux-event-nav__links a:hover { color: var(--wp--preset--color--terracotta); }
.pjux-event-nav__cta {
	background: var(--wp--preset--color--navy);
	color: #fff;
	padding: 0.6rem 1.5rem;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.pjux-event-nav__cta:hover { background: var(--wp--preset--color--terracotta); }
@media (max-width: 900px) { .pjux-event-nav__cta { display: none; } }

/* ---- Programme timeline (large-number day cards) ---- */
.pjux-programme-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	position: relative;
}
.pjux-programme-grid::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: rgba(255,255,255,0.1);
}
@media (max-width: 1024px) { .pjux-programme-grid { grid-template-columns: 1fr; gap: 3rem; } .pjux-programme-grid::before { display: none; } }
.pjux-programme-day { padding: 4rem 2rem 0; border-right: 1px solid rgba(255,255,255,0.1); }
.pjux-programme-day:last-child { border-right: none; }
@media (max-width: 1024px) { .pjux-programme-day { border-right: none; padding: 0; } }
.pjux-programme-day__num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(3.5rem, 6vw, 5rem); color: var(--wp--preset--color--terracotta); line-height: 1; display: block; margin-bottom: 0.5rem; }

/* ---- Race pricing cards ---- */
.pjux-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(27,29,34,0.1);
	border: 1px solid rgba(27,29,34,0.1);
}
@media (max-width: 900px) { .pjux-pricing-grid { grid-template-columns: 1fr; } }
.pjux-pricing-card { background: #fff; padding: 3rem; display: flex; flex-direction: column; }
.pjux-pricing-row { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(27,29,34,0.05); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.pjux-pricing-row__label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; opacity: 0.4; }
.pjux-pricing-row__value { font-family: var(--wp--preset--font-family--display); font-size: 1.25rem; color: var(--wp--preset--color--navy); }

/* ---- Prize money grid ---- */
.pjux-prize-row { display: flex; justify-content: space-between; font-size: 0.9rem; }
.pjux-prize-row span:first-child { opacity: 0.4; }
.pjux-prize-row span:last-child { font-weight: 700; }

/* ---- Entry includes grid ---- */
.pjux-includes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(27,29,34,0.05); border: 1px solid rgba(27,29,34,0.05); }
@media (max-width: 900px) { .pjux-includes-grid { grid-template-columns: repeat(2, 1fr); } }
.pjux-includes-cell { background: var(--wp--preset--color--warm-white); padding: 2rem; }

/* ---- Landscape-friendly media containers for real (non-portrait) supplied
   photography — the UX Pilot mockup assumed narrow portrait crops for
   these two slots, but the real supplied photos are landscape group/action
   shots. Widened to preserve heads, hands and UL Sport branding rather
   than force an aggressive portrait crop that would cut them off. ---- */
.pjux-media--landscape-4-3 { aspect-ratio: 4/3; overflow: hidden; }
.pjux-media--landscape-4-3 img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.pjux-media--landscape-3-2 { aspect-ratio: 3/2; overflow: hidden; }
.pjux-media--landscape-3-2 img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* ---- KWYA Hero ---- */
.pjux-kwya-hero {
	height: 950px;
	max-height: 100vh;
	width: 100%;
	background: var(--wp--preset--color--navy);
	overflow: hidden;
	display: flex;
	align-items: center;
}
.pjux-kwya-hero__bg { position: absolute; inset: 0; z-index: 0; }
.pjux-kwya-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; object-position: center 30%; }
.pjux-kwya-hero__gradient-r { position: absolute; inset: 0; background: linear-gradient(to right, var(--wp--preset--color--navy), rgba(11,31,58,0.4) 60%, transparent); }
.pjux-kwya-hero__gradient-t { position: absolute; inset: 0; background: linear-gradient(to top, var(--wp--preset--color--navy), transparent 60%); }
.pjux-kwya-hero__content { position: relative; z-index: 10; max-width: var(--pjux-max); margin: 0 auto; width: 100%; padding: 0 var(--pjux-gutter); }
.pjux-kwya-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: clamp(2.75rem, 9vw, 8.75rem);
	line-height: 0.85;
	color: #fff;
	letter-spacing: -0.02em;
	margin: 0.5rem 0 1.5rem;
}
.pjux-kwya-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; margin-bottom: 2rem; color: #fff; }
.pjux-kwya-meta-row .divider { border-left: 2px solid var(--wp--preset--color--terracotta); padding-left: 1.25rem; }

/* ---- Race distances ---- */
.pjux-distances { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.pjux-distance { display: flex; align-items: center; gap: 1.5rem; }
.pjux-distance__num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; color: rgba(27,29,34,0.06); transition: color 0.3s ease; }
.pjux-distance:hover .pjux-distance__num { color: var(--wp--preset--color--terracotta); }

/* ---- Festival experience 8-grid ---- */
.pjux-festival-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (max-width: 900px) { .pjux-festival-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .pjux-festival-grid { grid-template-columns: 1fr; } }
.pjux-festival-card { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.pjux-festival-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; transition: transform 1s ease; }
.pjux-festival-card:hover img { transform: scale(1.08); }
.pjux-festival-card::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 65%;
	background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.35) 55%, transparent);
	pointer-events: none;
}
.pjux-festival-card__label { position: absolute; left: 1.25rem; bottom: 1.25rem; right: 1.25rem; color: #fff; z-index: 2; }
.pjux-festival-card__tag { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--wp--preset--color--warm-sand); font-weight: 700; display: block; margin-bottom: 0.4rem; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.pjux-festival-card__title { font-family: var(--wp--preset--font-family--display); font-size: 1.15rem; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

/* ---- University of Limpopo section (added — see report Decision 2) ---- */
.pjux-university { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
@media (max-width: 900px) { .pjux-university { grid-template-columns: 1fr; } }
.pjux-university-media { aspect-ratio: 4/3; overflow: hidden; }
.pjux-university-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* ---- Partnership pillars (Brand/Engagement/Talent/Impact) ---- */
.pjux-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(27,29,34,0.08); }
@media (max-width: 900px) { .pjux-pillars { grid-template-columns: repeat(2, 1fr); } }
.pjux-pillar { padding: 2rem; border-right: 1px solid rgba(27,29,34,0.08); }
.pjux-pillar:last-child { border-right: none; }
.pjux-pillar__label { color: var(--wp--preset--color--terracotta); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; display: block; margin-bottom: 1rem; }

/* ---- Footer ---- */
.pjux-footer { background: var(--wp--preset--color--charcoal-text); color: #fff; padding: 8rem 0 3rem; }
.pjux-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.75fr 1.5fr; gap: 3rem; margin-bottom: 6rem; }
@media (max-width: 900px) { .pjux-footer-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.pjux-footer h2 { font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; margin-bottom: 1.5rem; color: #fff; }
.pjux-footer-brand { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.5rem; }
.pjux-footer-brand img { height: 4.5rem; width: auto; margin-top: 0.25rem; }
.pjux-footer-social { display: flex; align-items: center; gap: 1.1rem; }
.pjux-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 50%;
	color: rgba(255,255,255,0.7);
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.pjux-footer-social a:hover {
	color: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	background: rgba(212,167,44,0.08);
}
.pjux-footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; font-size: 0.9rem; font-weight: 300; }
.pjux-footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.pjux-footer-nav a:hover { color: #fff; }
.pjux-footer-heading { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; color: var(--wp--preset--color--gold); margin-bottom: 1.5rem; }
.pjux-footer-legal { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; color: rgba(255,255,255,0.3); }
.pjux-footer-legal a { color: inherit; text-decoration: none; }
.pjux-footer-legal a:hover { color: #fff; }
