/* ────────────────────────────────────────────────────────────────────────
 * Insights Child — leadership.css
 *
 * Page-specific styles for /leadership/ — loaded only when
 * template-leadership.php is the active template.
 *
 * All rules scoped under .leadership-main so styles cannot leak to other
 * pages even if a class name (e.g. .container, .leader, .featured-leader)
 * collides with anything in homepage.css, footer.css, or the parent theme.
 *
 * Brand tokens (--crimson, --crimson-bright, --cream, --paper, --ink)
 * are inherited from homepage.css / footer.css — NOT redeclared here.
 * Page-local tokens (--text-dim, --text-mute, --line) are scoped to
 * .leadership-main and used only inside this file.
 * ───────────────────────────────────────────────────────────────────── */

.leadership-main {
	/* Local tokens — only used inside the leadership template. */
	--text-dim: rgba(26, 26, 26, 0.65);
	--text-mute: rgba(26, 26, 26, 0.45);
	--line: rgba(26, 26, 26, 0.08);

	background: var(--cream);
	color: var(--ink);
	font-family: 'Jost', sans-serif;
	font-weight: 400;
	letter-spacing: 0.005em;
	line-height: 1.55;
}

.leadership-main .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
}

/* Reset list margins/paddings inside leadership only — Astra adds them. */
.leadership-main ul,
.leadership-main ol {
	margin: 0;
	padding: 0;
}
.leadership-main a {
	color: inherit;
	text-decoration: none;
}

/* Headings inside leadership */
.leadership-main h1,
.leadership-main h2,
.leadership-main h3,
.leadership-main h4 {
	font-family: 'Jost', sans-serif;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.015em;
	line-height: 1;
	margin: 0;
}

/* ──────────────────────────────────────────────────────────────
 * 1. HERO — crimson card variant (current)
 *     Mirrors the visit-band's card style: deep crimson background,
 *     cream text, subtle radial highlight in the top-right corner,
 *     rounded edges. Breadcrumb sits at the top, large headline below
 *     with italic em accent rendered in semi-transparent cream.
 * ────────────────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────────
 * SHOWCASE-TIER HERO — same pattern as Stage (Lower / Upper School).
 *    16:7 photo card, dark gradient overlay, eyebrow + red rule,
 *    white title overlay. NO crimson headline panel.
 *    Scoped to .leadership-main so it doesn't bleed into other pages.
 * ──────────────────────────────────────────────────────────────── */
.leadership-main .inner-hero {
	padding: 32px 0 0;
	position: relative;
}
.leadership-main .inner-hero-wrap {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	width: calc(100% - 64px);
	aspect-ratio: 16 / 7;
	background-color: #2D1010;
	overflow: hidden;
	border-radius: 32px;
	box-shadow: 0 24px 64px -24px rgba(26, 26, 26, 0.18);
}
.leadership-main .inner-hero-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 1;
}
.leadership-main .inner-hero-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(26, 26, 26, 0.45) 0%, rgba(26, 26, 26, 0.30) 40%, rgba(26, 26, 26, 0.40) 70%, rgba(26, 26, 26, 0.75) 100%),
		radial-gradient(ellipse at center, rgba(26, 26, 26, 0.35) 0%, transparent 65%);
	pointer-events: none;
	z-index: 2;
}
.leadership-main .inner-hero-text {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 48px;
	pointer-events: none;
}
.leadership-main .inner-hero-eyebrow {
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #FFFFFF;
	font-weight: 700;
	margin-bottom: 22px;
	text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.leadership-main .inner-hero-eyebrow::before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	background: var(--crimson-bright, #E8192C);
	margin: 0 auto 16px;
}
.leadership-main .inner-hero-title {
	font-family: 'Jost', sans-serif;
	font-size: clamp(40px, 5.5vw, 76px);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.04;
	color: #FFFFFF;
	max-width: 920px;
	margin: 0;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.4);
}
.leadership-main .inner-hero-title em {
	font-style: italic;
	color: rgba(255, 255, 255, 0.88);
	font-weight: 400;
}
@media (max-width: 760px) {
	.leadership-main .inner-hero-wrap { width: calc(100% - 32px); border-radius: 18px; }
	.leadership-main .inner-hero-text { padding: 40px 24px; }
	.leadership-main .inner-hero-title { font-size: clamp(32px, 8vw, 52px); }
}

.leadership-page-hero {
	padding: 24px 0 0;
}
.leadership-main .leadership-hero-card {
	position: relative;
	background: var(--crimson);
	color: var(--cream);
	border-radius: 6px;
	padding: 88px 64px 96px;
	overflow: hidden;
	box-shadow: 0 24px 56px -20px rgba(26, 26, 26, 0.18);
}
/* Soft radial highlight in the top-right — pulled from .visit-card. */
.leadership-main .leadership-hero-card::before {
	content: "";
	position: absolute;
	top: -140px;
	right: -120px;
	width: 460px;
	height: 460px;
	background: radial-gradient(circle, rgba(232, 25, 44, 0.55) 0%, transparent 65%);
	pointer-events: none;
}
.leadership-main .leadership-hero-card .leadership-breadcrumb {
	position: relative;
	margin-bottom: 56px;
}
.leadership-main .leadership-hero-card .leadership-breadcrumb a,
.leadership-main .leadership-hero-card .leadership-breadcrumb span {
	color: rgba(245, 240, 235, 0.85);
}
.leadership-main .leadership-hero-card .leadership-breadcrumb .sep {
	color: rgba(245, 240, 235, 0.4);
}
.leadership-main .leadership-hero-headline {
	position: relative;
	font-family: 'Jost', sans-serif;
	font-size: clamp(40px, 5.2vw, 76px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
	color: var(--cream);
	max-width: 880px;
	margin: 0;
}
.leadership-main .leadership-hero-headline em {
	font-style: italic;
	color: rgba(245, 240, 235, 0.7);
	font-weight: 500;
}

/* ── LEGACY photo hero rules ── kept below for revert safety; only used
 * when template-leadership.php's hero-photo markup is restored. ── */
.leadership-hero-photo {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background-color: #2D1010;
	box-shadow: 0 24px 56px -16px rgba(26, 26, 26, 0.22);
}
.leadership-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
.leadership-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.45) 0%,
		rgba(0, 0, 0, 0.10) 30%,
		rgba(0, 0, 0, 0.20) 60%,
		rgba(0, 0, 0, 0.85) 100%
	);
	pointer-events: none;
}
.leadership-hero-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 32px 48px 40px;
	z-index: 2;
	color: var(--cream);
}
.leadership-breadcrumb {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(245, 240, 235, 0.85);
	font-weight: 600;
}
.leadership-breadcrumb a {
	color: inherit;
	transition: color 0.2s ease;
}
.leadership-breadcrumb a:hover,
.leadership-breadcrumb a:focus-visible {
	color: var(--cream);
	text-decoration: underline;
}
.leadership-breadcrumb .sep {
	color: rgba(245, 240, 235, 0.4);
	margin: 0 10px;
}
/* Headline panel — crimson card sitting over the photo, matching the
 * visit-band's content card style. Sized to its content (display: inline-block)
 * so the panel only spans as wide as the text. */
.leadership-hero-text {
	display: inline-block;
	max-width: min(760px, 100%);
	background: var(--crimson);
	color: var(--cream);
	border-radius: 6px;
	padding: 28px 36px 32px;
	box-shadow: 0 24px 56px -20px rgba(26, 26, 26, 0.45);
	position: relative;
	overflow: hidden;
}
/* Soft radial highlight in the top-right — same effect as .visit-card. */
.leadership-hero-text::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -100px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(232, 25, 44, 0.55) 0%, transparent 65%);
	pointer-events: none;
}
.leadership-hero-content h1 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(36px, 4.6vw, 64px);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.05;
	color: var(--cream);
	margin: 0;
	position: relative;
	text-shadow: none;
}
.leadership-hero-content h1 em {
	font-style: italic;
	color: rgba(245, 240, 235, 0.7);
	font-weight: 500;
	opacity: 1;
}

/* ──────────────────────────────────────────────────────────────
 * 2. FEATURED LEADER (Barbara)
 * ────────────────────────────────────────────────────────────── */
.leadership-main .featured-leader {
	padding: 64px 0;
	border-bottom: 1px solid var(--line);
}
.leadership-main .featured-leader-grid {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 80px;
	align-items: start;
}
.leadership-main .fl-meta {
	position: sticky;
	top: 100px;
}
.leadership-main .fl-role {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--crimson);
	font-weight: 700;
	margin-bottom: 18px;
}
.leadership-main .fl-name {
	font-family: 'Jost', sans-serif;
	font-size: clamp(40px, 4.8vw, 64px);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 0.96;
	color: var(--ink);
}
.leadership-main .fl-name em {
	font-style: italic;
	color: var(--crimson);
	font-weight: 500;
}
.leadership-main .fl-bio p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	margin: 0 0 18px;
}
.leadership-main .fl-quote {
	margin: 36px 0 0;
	padding: 28px 32px;
	background: var(--paper);
	border-left: 3px solid var(--crimson);
	font-family: 'Jost', sans-serif;
	font-style: italic;
	font-size: 19px;
	line-height: 1.5;
	color: var(--ink);
	border-radius: 0 4px 4px 0;
}
.leadership-main .fl-quote::before {
	content: "\201C";  /* single large left curly quote */
	display: block;
	font-family: 'Jost', sans-serif;
	font-style: normal;            /* override italic inherited from .fl-quote */
	font-weight: 600;
	font-size: 64px;
	line-height: 0.6;
	color: var(--crimson);
	margin-bottom: 8px;
	letter-spacing: 0;
}

/* ──────────────────────────────────────────────────────────────
 * 3. TEAM GRID — 3-column at desktop, 2 at tablet, 1 at mobile
 * ────────────────────────────────────────────────────────────── */
.leadership-main .leadership-team-section {
	padding: 56px 0 96px;
}
@media (max-width: 760px) {
	.leadership-main .leadership-team-section { padding-bottom: 64px; }
}
.leadership-main .leader-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-top: 1px solid var(--line);
}
.leadership-main .leader {
	padding: 36px 32px;
	border-bottom: 1px solid var(--line);
}
/* Internal vertical dividers between columns at 3-col layout. */
.leadership-main .leader:not(:nth-child(3n+1)) {
	border-left: 1px solid var(--line);
}
.leadership-main .leader-role {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--crimson);
	font-weight: 600;
	margin-bottom: 14px;
}
.leadership-main .leader-name {
	font-family: 'Jost', sans-serif;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--ink);
	margin: 0 0 14px;
}
.leadership-main .leader-bio {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text-dim);
	max-width: none;
	margin: 0;
}
.leadership-main .leader-tag {
	display: inline-block;
	margin-top: 14px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--crimson);
	padding: 4px 10px;
	background: rgba(139, 26, 26, 0.06);
	border-radius: 999px;
}

/* ──────────────────────────────────────────────────────────────
 * 4. SAFEGUARDING CALLOUT
 * ────────────────────────────────────────────────────────────── */
.leadership-main .safeguarding {
	margin-top: 80px;
	padding: 36px 40px;
	background: var(--ink);
	color: var(--cream);
	border-radius: 6px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 32px;
	align-items: center;
}
.leadership-main .safeguarding .sg-tag {
	font-size: 10px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--crimson-bright);
	font-weight: 700;
	white-space: nowrap;
}
.leadership-main .safeguarding .sg-text {
	font-family: 'Jost', sans-serif;
	font-style: italic;
	font-size: 17px;
	color: var(--cream);
	line-height: 1.45;
	max-width: 600px;
}
.leadership-main .safeguarding .sg-text strong {
	color: var(--cream);
	font-style: normal;
	font-weight: 600;
}
.leadership-main .safeguarding .sg-link {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--crimson-bright);
	font-weight: 600;
	transition: gap 0.3s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.leadership-main .safeguarding .sg-link::after {
	content: "→";
}
.leadership-main .safeguarding .sg-link:hover,
.leadership-main .safeguarding .sg-link:focus-visible {
	gap: 14px;
}

/* ──────────────────────────────────────────────────────────────
 * 5. BOTTOM CTA
 * ────────────────────────────────────────────────────────────── */
.leadership-main .leadership-bottom-cta {
	padding: 80px 0;
	text-align: center;
}
.leadership-main .leadership-bottom-cta h2 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
}
.leadership-main .leadership-bottom-cta h2 em {
	font-style: italic;
	color: var(--crimson);
}
.leadership-main .leadership-bottom-cta .btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--crimson);
	color: var(--cream);
	padding: 14px 28px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 2px;
	transition: background 0.3s ease;
}
.leadership-main .leadership-bottom-cta .btn::after {
	content: "→";
}
.leadership-main .leadership-bottom-cta .btn:hover,
.leadership-main .leadership-bottom-cta .btn:focus-visible {
	background: var(--crimson-bright);
}

/* ──────────────────────────────────────────────────────────────
 * 6. FOCUS STATES (accessibility)
 * ────────────────────────────────────────────────────────────── */
.leadership-main a:focus-visible,
.leadership-main button:focus-visible {
	outline: 2px solid var(--crimson);
	outline-offset: 4px;
	border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────────
 * 7. RESPONSIVE
 * ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.leadership-main .container {
		padding: 0 20px;
	}
	/* Headline crimson panel — tighter on mobile. */
	.leadership-main .leadership-hero-text {
		padding: 20px 24px 24px;
		max-width: 100%;
	}
	.leadership-main .leadership-hero-content {
		padding: 22px 26px 28px;
	}
	.leadership-main .leadership-hero-content h1 {
		font-size: clamp(28px, 6vw, 40px);
		margin: 0;
	}
	.leadership-main .featured-leader {
		padding: 48px 0;
	}
	.leadership-main .featured-leader-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.leadership-main .fl-meta {
		position: static;
	}
	.leadership-main .leader-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Reset the 3-col left-border rule, apply 2-col version. */
	.leadership-main .leader,
	.leadership-main .leader:not(:nth-child(3n+1)) {
		border-left: none;
		padding: 32px 28px;
	}
	.leadership-main .leader:nth-child(2n) {
		border-left: 1px solid var(--line);
	}
	.leadership-main .safeguarding {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 28px 24px;
		margin-top: 56px;
	}
	.leadership-main .leadership-bottom-cta {
		padding: 56px 0;
	}
}

@media (max-width: 480px) {
	.leadership-main .leadership-hero-photo {
		border-radius: 4px;
	}
	.leadership-main .leadership-breadcrumb {
		font-size: 10px;
		letter-spacing: 0.18em;
	}
	.leadership-main .leadership-breadcrumb .sep {
		margin: 0 6px;
	}
	.leadership-main .fl-quote {
		padding: 22px 24px;
		font-size: 17px;
	}
	/* Single-column at narrow widths so each leader card breathes. */
	.leadership-main .leader-grid {
		grid-template-columns: 1fr;
	}
	.leadership-main .leader,
	.leadership-main .leader:nth-child(2n),
	.leadership-main .leader:not(:nth-child(3n+1)) {
		border-left: none;
		padding: 28px 0;
	}
	.leadership-main .leader-name {
		font-size: 24px;
	}
}

/* ──────────────────────────────────────────────────────────────
 * 8. REDUCED MOTION
 * ────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.leadership-main * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
