/* ==========================================================================
   JBVC Foundation: shared styles (header, footer, type, components, inner pages)
   ========================================================================== */

:root {
	--jb-ink: #060c2c;
	--jb-night: #0a1240;
	--jb-navy: #0a2065;
	--jb-navy-2: #14307f;
	--jb-purple: #532e61;
	--jb-red: #b72b35;
	--jb-red-hot: #d8343f;
	--jb-crimson: #6e1a2c;
	--jb-bronze: #b8925f;
	--jb-bronze-lt: #e2c79b;
	--jb-paper: #f4f1ea;
	--jb-sand: #e8e1d3;
	--jb-stone: #8c8a99;
	--jb-text: #1b1f3b;
	--jb-muted: #5a5f7a;
	--jb-line: rgba(10, 32, 101, .14);
	--jb-line-dk: rgba(255, 255, 255, .14);

	--jb-display: 'Montserrat', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
	--jb-stencil: 'Montserrat', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
	--jb-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--jb-gutter: clamp(16px, 4vw, 56px);
	--jb-max: 1320px;
	--jb-radius: 4px;
	--jb-ease: cubic-bezier(.2, .7, .1, 1);
	--jb-header-h: 84px;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	font-family: var(--jb-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--jb-text);
	background: var(--jb-paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
*, *::before, *::after { box-sizing: border-box; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--jb-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jb-crimson); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--jb-display);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	color: inherit;
}
p { margin: 0 0 1.1em; }
::selection { background: var(--jb-red); color: #fff; }
:focus-visible { outline: 2px solid var(--jb-red-hot); outline-offset: 3px; }

.jb-sr, .jb-form__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jb-skip { position: absolute; left: 16px; top: -100px; z-index: 1000; background: #fff; color: var(--jb-ink); padding: 10px 16px; font-weight: 700; }
.jb-skip:focus { top: 16px; }

.jb-wrap { width: 100%; max-width: calc(var(--jb-max) + var(--jb-gutter) * 2); margin: 0 auto; padding: 0 var(--jb-gutter); }

/* ---------- Shared bits ---------- */
.jb-emblem { width: 1em; height: 1em; }
.jb-arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform .35s var(--jb-ease); }

.jb-tri { display: flex; height: 6px; width: 100%; }
.jb-tri i { flex: 1; }
.jb-tri i:nth-child(1) { background: var(--jb-navy); }
.jb-tri i:nth-child(2) { background: var(--jb-purple); }
.jb-tri i:nth-child(3) { background: var(--jb-red); }

.jb-btn {
	--bg: var(--jb-navy); --fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 52px; padding: 0 26px;
	font-family: var(--jb-body); font-size: 15px; font-weight: 600;
	text-decoration: none; color: var(--fg); background: var(--bg);
	border: 1.5px solid var(--bg); border-radius: var(--jb-radius);
	cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
	transition: color .35s var(--jb-ease), border-color .35s var(--jb-ease);
}
.jb-btn::after {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: var(--jb-ink); transform: translateY(101%); transition: transform .45s var(--jb-ease);
}
.jb-btn:hover { color: #fff; }
.jb-btn:hover::after { transform: translateY(0); }
.jb-btn:hover .jb-arrow { transform: translateX(4px); }
.jb-btn--red { --bg: var(--jb-red); }
.jb-btn--red::after { background: var(--jb-crimson); }
.jb-btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .45); }
.jb-btn--ghost::after { background: #fff; }
.jb-btn--ghost:hover { color: var(--jb-ink); border-color: #fff; }
.jb-btn--ghost-dark { --bg: transparent; --fg: var(--jb-navy); border-color: var(--jb-navy); }
.jb-btn--ghost-dark::after { background: var(--jb-navy); }

.jb-link {
	display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--jb-red);
}
.jb-link:hover .jb-arrow { transform: translateX(5px); }

/* Reveal utility: JS adds .is-in. Without JS everything is visible. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--jb-ease), transform 1.1s var(--jb-ease); }

/* ---------- Header ---------- */
.jb-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--jb-header-h);
	color: #fff;
	transition: transform .5s var(--jb-ease), background-color .4s, box-shadow .4s, height .4s var(--jb-ease);
}
.admin-bar .jb-header { top: 32px; }
.jb-header::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(6, 12, 44, .65), rgba(6, 12, 44, 0));
	transition: opacity .4s;
}
.is-scrolled .jb-header { background: rgba(6, 12, 44, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--jb-line-dk); --jb-header-h: 72px; }
.is-scrolled .jb-header::before { opacity: 0; }
.is-hidden-header .jb-header { transform: translateY(-110%); }
body:not(.jb-dark-hero) .jb-header { background: var(--jb-ink); }

.jb-header__inner {
	position: relative; height: 100%;
	display: flex; align-items: center; gap: 28px;
	max-width: calc(var(--jb-max) + var(--jb-gutter) * 2); margin: 0 auto; padding: 0 var(--jb-gutter);
}
.jb-header__brand { flex: none; margin-right: auto; }
.jb-header__brand img { width: 168px; height: auto; transition: width .4s var(--jb-ease); }
.is-scrolled .jb-header__brand img { width: 150px; }

.jb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.jb-nav__list > li { position: relative; }
.jb-nav__list a {
	display: flex; align-items: center; gap: 6px;
	padding: 10px 14px; color: #fff; text-decoration: none;
	font-size: 15px; font-weight: 600;
}
.jb-nav__list > li > a::after {
	content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--jb-red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--jb-ease);
}
.jb-nav__list > li:hover > a::after,
.jb-nav__list > .current-menu-item > a::after,
.jb-nav__list > .current-menu-ancestor > a::after,
.jb-nav__list > .current-menu-parent > a::after { transform: scaleX(1); }
.jb-nav__list .menu-item-has-children > a::before {
	content: ''; order: 2; width: 7px; height: 7px; margin-top: -4px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
	transition: transform .3s;
}
.jb-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 10px;
	position: absolute; left: 0; top: 100%; min-width: 270px;
	background: #fff; border-radius: var(--jb-radius); box-shadow: 0 24px 60px rgba(6, 12, 44, .3);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .3s, transform .4s var(--jb-ease), visibility .3s;
}
.jb-nav__list .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.jb-nav__list li:hover > .sub-menu,
.jb-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.jb-nav__list .sub-menu a {
	color: var(--jb-ink); padding: 12px 14px; border-radius: 3px; text-transform: none;
	font-size: 16px; letter-spacing: 0; font-weight: 600; justify-content: space-between;
}
.jb-nav__list .sub-menu a::after { content: '\2192'; color: var(--jb-red); opacity: 0; transform: translateX(-6px); transition: .3s var(--jb-ease); }
.jb-nav__list .sub-menu a:hover { background: var(--jb-paper); }
.jb-nav__list .sub-menu a:hover::after { opacity: 1; transform: none; }
.jb-nav__mobile-foot { display: none; }

.jb-header__donate { min-height: 44px; padding: 0 22px; }
.jb-burger { display: none; }

@media (max-width: 1080px) {
	:root { --jb-header-h: 72px; }
	.jb-header__brand img { width: 140px; }
	.is-scrolled .jb-header__brand img { width: 132px; }
	.jb-burger {
		display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; margin-right: -8px;
		background: none; border: 0; cursor: pointer; color: #fff; position: relative; z-index: 3;
	}
	.jb-burger i { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .4s var(--jb-ease); }
	.menu-open .jb-burger i:first-of-type { transform: translateY(4.5px) rotate(45deg); }
	.menu-open .jb-burger i:last-of-type { transform: translateY(-4.5px) rotate(-45deg); }
	.jb-header__donate { min-height: 40px; padding: 0 16px; font-size: 13px; }
	.jb-nav {
		position: fixed; inset: 0; z-index: 2;
		background: var(--jb-ink); padding: calc(var(--jb-header-h) + 24px) var(--jb-gutter) 32px;
		display: flex; flex-direction: column; overflow-y: auto;
		clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--jb-ease); visibility: hidden;
	}
	.menu-open .jb-nav { clip-path: inset(0 0 0 0); visibility: visible; }
	.menu-open { overflow: hidden; }
	.jb-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.jb-nav__list > li { border-bottom: 1px solid var(--jb-line-dk); }
	.jb-nav__list > li > a { font-family: var(--jb-display); font-size: 34px; font-weight: 600; padding: 14px 0; letter-spacing: 0; justify-content: space-between; }
	.jb-nav__list > li > a::after { display: none; }
	.jb-nav__list .menu-item-has-children > a::before { width: 12px; height: 12px; border-width: 2px; }
	.jb-nav__list .menu-item-has-children.is-open > a::before { transform: rotate(-135deg); margin-top: 6px; }
	.jb-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none;
		padding: 0 0 12px; display: none; min-width: 0;
	}
	.jb-nav__list .is-open > .sub-menu { display: block; }
	.jb-nav__list .sub-menu a { color: rgba(255, 255, 255, .8); padding: 10px 0; font-size: 18px; }
	.jb-nav__list .sub-menu a:hover { background: none; color: #fff; }
	.jb-nav__mobile-foot { display: block; margin-top: auto; padding-top: 32px; }
	.jb-nav__mobile-foot .jb-btn { width: 100%; }
	.jb-nav__mobile-foot p { color: var(--jb-stone); font-size: 13px; margin: 16px 0 0; }
	.jb-nav .jb-nav__list > li { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--jb-ease); }
	.menu-open .jb-nav .jb-nav__list > li { opacity: 1; transform: none; }
	.menu-open .jb-nav .jb-nav__list > li:nth-child(2) { transition-delay: .05s; }
	.menu-open .jb-nav .jb-nav__list > li:nth-child(3) { transition-delay: .1s; }
	.menu-open .jb-nav .jb-nav__list > li:nth-child(4) { transition-delay: .15s; }
	.menu-open .jb-nav .jb-nav__list > li:nth-child(5) { transition-delay: .2s; }
	.menu-open .jb-nav .jb-nav__list > li:nth-child(6) { transition-delay: .25s; }
}
@media (max-width: 782px) { .admin-bar .jb-header { top: 46px; } }
@media (max-width: 480px) { .jb-header__donate { display: none; } }

/* ---------- Footer ---------- */
.jb-footer { background: var(--jb-ink); color: rgba(255, 255, 255, .78); position: relative; }
.jb-footer a { color: #fff; text-decoration: none; }
.jb-footer a:hover { color: var(--jb-bronze-lt); }
.jb-footer__cta { position: relative; padding: clamp(90px, 12vw, 170px) 0; overflow: hidden; text-align: center; border-bottom: 1px solid var(--jb-line-dk); }
.jb-footer__emblem {
	position: absolute; left: 50%; top: 50%; width: min(80vw, 760px); height: auto;
	transform: translate(-50%, -50%); color: #fff; opacity: .035; pointer-events: none;
}
.jb-footer__cta-title { font-size: clamp(32px, 5.3vw, 78px); color: #fff; margin-bottom: 24px; }
.jb-footer__cta-text { max-width: 560px; margin: 0 auto 36px; font-size: 19px; }
.jb-footer__cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.jb-footer__main { padding: 72px 0 56px; }
.jb-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.jb-footer__logo img { width: 190px; margin-bottom: 20px; }
.jb-footer__about p { max-width: 320px; }
.jb-footer__col h3 { font-family: var(--jb-body); font-size: 12px; color: var(--jb-bronze-lt); font-weight: 700; margin-bottom: 18px; }
.jb-footer__col ul, .jb-footer__social { list-style: none; margin: 0; padding: 0; }
.jb-footer__col li { margin-bottom: 10px; }
.jb-footer__social { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.jb-footer__tri { height: 4px; }
.jb-footer__legal { padding: 22px 0; font-size: 13px; color: var(--jb-stone); }
.jb-footer__legal .jb-wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
.jb-footer__legal p { margin: 0; }
.jb-footer__legal-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.jb-footer__legal a { color: var(--jb-stone); }
@media (max-width: 900px) { .jb-footer__grid { grid-template-columns: 1fr 1fr; } .jb-footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .jb-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Inner page building blocks (used inside Elementor via CSS classes) ---------- */
.jb-main { display: block; }
.jb-page-hero {
	position: relative; overflow: hidden; color: #fff; background: var(--jb-ink);
	padding: calc(var(--jb-header-h) + clamp(70px, 10vw, 140px)) 0 clamp(70px, 9vw, 120px);
}
.jb-page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.jb-page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.4) contrast(1.05); }
.jb-page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 12, 44, .95) 0%, rgba(6, 12, 44, .6) 55%, rgba(6, 12, 44, .3)), linear-gradient(0deg, var(--jb-ink), transparent 40%); }
.jb-page-hero .jb-wrap { position: relative; z-index: 1; }
.jb-page-hero h1 { font-size: clamp(37px, 6.3vw, 98px); max-width: 12ch; margin-bottom: 26px; }
.jb-page-hero h1 em { font-style: normal; color: var(--jb-red-hot); }
.jb-page-hero__lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 640px; color: rgba(255, 255, 255, .82); margin: 0; }
.jb-page-hero__emblem { position: absolute; right: -6vw; bottom: -10vw; width: 46vw; max-width: 720px; height: auto; color: #fff; opacity: .05; z-index: 0; }
.jb-crumbs { font-size: 15px; color: var(--jb-stone); margin-bottom: 26px; }
.jb-crumbs a { color: var(--jb-bronze-lt); text-decoration: none; }

.jb-section { padding: clamp(80px, 10vw, 150px) 0; position: relative; }
.jb-section--paper { background: var(--jb-paper); }
.jb-section--sand { background: var(--jb-sand); }
.jb-section--white { background: #fff; }
.jb-section--dark { background: var(--jb-ink); color: rgba(255, 255, 255, .8); }
.jb-section--navy { background: var(--jb-navy); color: rgba(255, 255, 255, .85); }
.jb-section--dark h2, .jb-section--dark h3, .jb-section--navy h2, .jb-section--navy h3 { color: #fff; }

.jb-h2 { font-size: clamp(35px, 4.8vw, 70px); color: var(--jb-ink); max-width: 16ch; }
.jb-h2 em, .jb-h3 em { font-style: normal; color: var(--jb-red); }
.jb-h3 { font-size: clamp(22px, 2.4vw, 32px); color: var(--jb-ink); }
.jb-lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--jb-muted); max-width: 680px; }
.jb-section--dark .jb-lede, .jb-section--navy .jb-lede { color: rgba(255, 255, 255, .75); }
.jb-big-quote { font-family: var(--jb-display); font-weight: 700; font-size: clamp(27px, 3.7vw, 54px); line-height: 1; color: var(--jb-ink); letter-spacing: -.02em; }
.jb-big-quote em { font-style: normal; color: var(--jb-red); }

.jb-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.jb-split--top { align-items: start; }
@media (max-width: 900px) { .jb-split { grid-template-columns: 1fr; } }

.jb-img-frame { position: relative; overflow: hidden; border-radius: var(--jb-radius); background: var(--jb-night); }
.jb-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.jb-img-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--jb-navy) 33.3%, var(--jb-purple) 33.3% 66.6%, var(--jb-red) 66.6%); }

/* Numbered list cards (how you can help, how we help you) */
.jb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.jb-steps li {
	position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 22px; align-items: start;
	padding: 26px 28px; background: #fff; border: 1px solid var(--jb-line); border-radius: var(--jb-radius);
	transition: transform .4s var(--jb-ease), border-color .4s, box-shadow .4s;
}
.jb-steps li:hover { transform: translateX(6px); border-color: var(--jb-red); box-shadow: -6px 0 0 var(--jb-red); }
.jb-steps li::before { content: ''; width: 14px; height: 14px; margin-top: 6px; background: var(--jb-red); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.jb-steps h3 { font-family: var(--jb-body); text-transform: none; font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; color: var(--jb-ink); }
.jb-steps p { margin: 0; color: var(--jb-muted); font-size: 16px; }
.jb-section--dark .jb-steps li { background: rgba(255, 255, 255, .04); border-color: var(--jb-line-dk); }
.jb-section--dark .jb-steps h3 { color: #fff; }
.jb-section--dark .jb-steps p { color: rgba(255, 255, 255, .7); }

/* Feature cards */
.jb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.jb-card {
	position: relative; padding: 34px 30px 36px; background: #fff; border-radius: var(--jb-radius);
	border-top: 6px solid var(--jb-navy); overflow: hidden;
}
.jb-card:nth-child(3n+2) { border-top-color: var(--jb-purple); }
.jb-card:nth-child(3n+3) { border-top-color: var(--jb-red); }
.jb-card__k { font-family: var(--jb-stencil); font-weight: 600; font-size: 51px; line-height: 1.08; color: var(--jb-ink); margin-bottom: 18px; letter-spacing: -.02em; }
.jb-card h3 { font-size: 30px; color: var(--jb-ink); margin-bottom: 12px; }
.jb-card p { color: var(--jb-muted); margin: 0; }
.jb-section--dark .jb-card, .jb-section--navy .jb-card { background: rgba(255, 255, 255, .05); }
.jb-section--dark .jb-card h3, .jb-section--dark .jb-card__k, .jb-section--navy .jb-card h3, .jb-section--navy .jb-card__k { color: #fff; }
.jb-section--dark .jb-card p, .jb-section--navy .jb-card p { color: rgba(255, 255, 255, .72); }

/* Stats row */
.jb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--jb-line); }
.jb-stat { padding: 30px 26px 10px 0; border-right: 1px solid var(--jb-line); }
.jb-stat:last-child { border-right: 0; }
.jb-stat__n { display: block; font-family: var(--jb-stencil); font-weight: 600; font-size: clamp(42px, 4.6vw, 69px); line-height: 1.08; color: var(--jb-red); margin-bottom: 14px; letter-spacing: -.02em; }
.jb-stat p { color: var(--jb-muted); font-size: 16px; max-width: 260px; }
.jb-section--dark .jb-stats, .jb-section--dark .jb-stat { border-color: var(--jb-line-dk); }
.jb-section--dark .jb-stat p { color: rgba(255, 255, 255, .7); }
.jb-source { font-size: 12px; color: var(--jb-stone); }

/* Programme badge */
.jb-prog { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: var(--jb-radius); overflow: hidden; }
.jb-prog__media { position: relative; min-height: 420px; background: var(--jb-night); }
.jb-prog__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jb-prog__body { padding: clamp(32px, 4vw, 64px); }
.jb-prog__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.jb-tag { display: inline-block; padding: 6px 12px; font-size: 15px; font-weight: 600; border-radius: 2px; background: var(--jb-paper); color: var(--jb-navy); }
.jb-tag--red { background: var(--jb-red); color: #fff; }
.jb-prog__logo { width: 280px; margin-bottom: 28px; }
@media (max-width: 900px) { .jb-prog { grid-template-columns: 1fr; } .jb-prog__media { min-height: 280px; } }

/* Eight behaviours: hex grid */
.jb-hexes { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.jb-hexes li {
	width: 200px; aspect-ratio: 1 / 1.1547; display: grid; place-items: center; text-align: center;
	padding: 0 28px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: var(--jb-navy); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.25;
	transition: background .4s, transform .5s var(--jb-ease);
}
.jb-hexes li:nth-child(4n+2) { background: var(--jb-purple); }
.jb-hexes li:nth-child(4n+3) { background: var(--jb-navy-2); }
.jb-hexes li:nth-child(4n+4) { background: var(--jb-red); }
.jb-hexes li:hover { transform: scale(1.06); }
@media (max-width: 640px) { .jb-hexes li { width: calc(50% - 6px); font-size: 14px; padding: 0 18px; } }

/* Team */
.jb-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.jb-person { background: #fff; border-radius: var(--jb-radius); overflow: hidden; display: flex; flex-direction: column; }
.jb-person__img { aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--jb-navy); }
.jb-person__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--jb-ease), filter .6s; filter: grayscale(.25); }
.jb-person:hover .jb-person__img img { transform: scale(1.04); filter: none; }
.jb-person__body { padding: 28px 28px 32px; border-top: 6px solid var(--jb-red); }
.jb-person__role { font-size: 15px; font-weight: 600; color: var(--jb-red); margin: 0 0 6px; }
.jb-person h3 { font-size: 38px; color: var(--jb-ink); margin-bottom: 14px; }
.jb-person p { color: var(--jb-muted); font-size: 16px; }

/* Partners */
.jb-partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.jb-partners a, .jb-partners li > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; min-height: 180px; padding: 36px; background: #fff; border-radius: var(--jb-radius); border: 1px solid var(--jb-line); text-decoration: none; transition: border-color .4s, transform .4s var(--jb-ease), box-shadow .4s; }
.jb-partners a:hover { border-color: var(--jb-navy); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(6, 12, 44, .08); }
.jb-partners__logo img { max-height: 64px; width: auto; max-width: 220px; object-fit: contain; }
.jb-partners__name { font-family: var(--jb-display); font-weight: 600; font-size: 30px; color: var(--jb-ink); letter-spacing: -.02em; }
.jb-partners__line { font-size: 14px; color: var(--jb-muted); text-align: center; }
.jb-partners--strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.jb-partners--strip li { flex: 0 1 240px; }
.jb-partners--strip a, .jb-partners--strip li > div { min-height: 120px; padding: 26px; background: rgba(255, 255, 255, .96); }

/* News */
.jb-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .jb-news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .jb-news-grid { grid-template-columns: 1fr; } }
.jb-card-news { display: flex; flex-direction: column; background: #fff; border-radius: var(--jb-radius); overflow: hidden; }
.jb-card-news__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--jb-navy); }
.jb-card-news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--jb-ease); }
.jb-card-news:hover .jb-card-news__media img { transform: scale(1.05); }
.jb-card-news__ph { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .14); background: linear-gradient(135deg, var(--jb-navy), var(--jb-purple)); }
.jb-card-news__ph svg { width: 34%; height: auto; }
.jb-card-news__body { padding: 24px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.jb-card-news__meta { display: flex; gap: 14px; font-size: 15px; font-weight: 600; color: var(--jb-stone); margin-bottom: 12px; }
.jb-card-news__meta span { color: var(--jb-red); }
.jb-card-news__title { font-size: 30px; line-height: 1; margin-bottom: 12px; }
.jb-card-news__title a { color: var(--jb-ink); text-decoration: none; background: linear-gradient(var(--jb-red), var(--jb-red)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--jb-ease); }
.jb-card-news:hover .jb-card-news__title a { background-size: 100% 2px; }
.jb-card-news__excerpt { color: var(--jb-muted); font-size: 16px; margin: 0; }

.jb-news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.jb-news-filter a { padding: 9px 16px; border: 1px solid var(--jb-line); border-radius: 40px; font-size: 15px; font-weight: 600; color: var(--jb-navy); text-decoration: none; }
.jb-news-filter a.is-active, .jb-news-filter a:hover { background: var(--jb-navy); color: #fff; border-color: var(--jb-navy); }
.jb-pagination { margin-top: 56px; display: flex; gap: 8px; justify-content: center; }
.jb-pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--jb-line); color: var(--jb-navy); text-decoration: none; font-weight: 700; border-radius: 3px; }
.jb-pagination .current { background: var(--jb-navy); color: #fff; }

/* Single post */
.jb-article { padding: clamp(60px, 8vw, 110px) 0; background: #fff; }
.jb-article__body { max-width: 720px; margin: 0 auto; font-size: 19px; line-height: 1.75; }
.jb-article__body h2 { font-size: 37px; margin: 1.4em 0 .5em; color: var(--jb-ink); }
.jb-article__body h3 { font-size: 32px; margin: 1.4em 0 .5em; color: var(--jb-ink); }
.jb-article__body blockquote { margin: 1.6em 0; padding: 0 0 0 28px; border-left: 6px solid var(--jb-red); font-family: var(--jb-display); font-weight: 700; font-size: 36px; line-height: 1.05; color: var(--jb-ink); letter-spacing: -.02em; }
.jb-article__body img { border-radius: var(--jb-radius); }
.jb-article__body figure { margin: 2em 0; }
.jb-article__body figcaption { font-size: 14px; color: var(--jb-stone); margin-top: 10px; }
.jb-article__feature { max-width: 1100px; margin: -80px auto 0; position: relative; z-index: 2; padding: 0 var(--jb-gutter); }
.jb-article__feature img { width: 100%; border-radius: var(--jb-radius); box-shadow: 0 30px 80px rgba(6, 12, 44, .25); }
.jb-article__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; font-weight: 600; color: var(--jb-bronze-lt); }
.jb-share { max-width: 720px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--jb-line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 15px; font-weight: 600; color: var(--jb-stone); }
.jb-share a { color: var(--jb-navy); text-decoration: none; padding: 8px 14px; border: 1px solid var(--jb-line); border-radius: 30px; }
.jb-share a:hover { background: var(--jb-navy); color: #fff; }

/* Forms */
.jb-form { display: grid; gap: 18px; }
.jb-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .jb-form__row { grid-template-columns: 1fr; } }
.jb-field { display: grid; gap: 8px; }
.jb-field span { font-size: 15px; font-weight: 600; color: var(--jb-navy); }
.jb-field em { font-style: normal; font-weight: 400; text-transform: none; color: var(--jb-stone); letter-spacing: 0; }
.jb-field input, .jb-field select, .jb-field textarea {
	width: 100%; font: inherit; font-size: 17px; color: var(--jb-ink); padding: 14px 16px; min-height: 54px;
	background: #fff; border: 1px solid rgba(10, 32, 101, .22); border-radius: var(--jb-radius); transition: border-color .3s, box-shadow .3s;
}
.jb-field input:focus, .jb-field select:focus, .jb-field textarea:focus { outline: 0; border-color: var(--jb-navy); box-shadow: 0 0 0 3px rgba(10, 32, 101, .12); }
.jb-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--jb-muted); }
.jb-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--jb-red); flex: none; }
.jb-form .jb-btn { justify-self: start; }
.jb-form__notice { padding: 16px 20px; border-radius: var(--jb-radius); font-weight: 600; margin: 0; }
.jb-form__notice.is-ok { background: #e3f3ea; color: #135a33; }
.jb-form__notice.is-err { background: #fbe5e6; color: var(--jb-crimson); }

.jb-contact-card { padding: 32px; background: var(--jb-ink); color: rgba(255, 255, 255, .8); border-radius: var(--jb-radius); }
.jb-contact-card h3 { color: #fff; font-size: 32px; }
.jb-contact-card a { color: #fff; }

/* Give as you Live block */
.jb-donate-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--jb-radius); overflow: hidden; background: var(--jb-ink); color: rgba(255, 255, 255, .8); }
.jb-donate-panel__main { padding: clamp(36px, 5vw, 72px); }
.jb-donate-panel__main h2 { color: #fff; }
.jb-donate-panel__side { padding: clamp(36px, 5vw, 72px); background: var(--jb-red); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.jb-donate-panel__side .jb-stat__n { color: #fff; }
@media (max-width: 860px) { .jb-donate-panel { grid-template-columns: 1fr; } }

/* Elementor content defaults inside our pages */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-html { width: 100%; }
.jb-el .e-con-inner, .jb-el > .elementor-container { max-width: var(--jb-max); }

/* Legal / plain pages */
.jb-prose { max-width: 760px; }
.jb-prose h2 { font-size: 32px; margin-top: 1.4em; color: var(--jb-ink); }
.jb-prose h3 { font-size: 28px; margin-top: 1.2em; color: var(--jb-ink); }

/* 404 */
.jb-404 { min-height: 80vh; display: grid; place-items: center; text-align: center; background: var(--jb-ink); color: #fff; padding: 140px var(--jb-gutter) 80px; }
.jb-404 h1 { font-family: var(--jb-stencil); font-size: clamp(70px, 13.9vw, 186px); margin: 0; color: var(--jb-red); line-height: 1.08; letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* Elementor widget wrappers carrying our classes: the inner element inherits the wrapper's type. */
.elementor-widget-heading[class*="jb-"] .elementor-heading-title,
.elementor-widget-text-editor[class*="jb-"] { font: inherit; color: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; }
.elementor-widget-heading.jb-h2, .elementor-widget-heading.jb-h3 { font-family: var(--jb-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.elementor-widget-heading.jb-h2 { margin-bottom: 24px; }
.jb-section--dark .jb-h2, .jb-section--navy .jb-h2, .jb-section--dark .jb-h3, .jb-section--navy .jb-h3 { color: #fff; }
.jb-btn-w .elementor-button {
	display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
	font-family: var(--jb-body); font-size: 15px; font-weight: 600;
	color: #fff; background: var(--jb-navy); border: 1.5px solid var(--jb-navy); border-radius: var(--jb-radius); transition: background .35s, border-color .35s, color .35s;
}
.jb-btn-w .elementor-button:hover { background: var(--jb-ink); border-color: var(--jb-ink); color: #fff; }
.jb-btn-w--red .elementor-button { background: var(--jb-red); border-color: var(--jb-red); }
.jb-btn-w--red .elementor-button:hover { background: var(--jb-crimson); border-color: var(--jb-crimson); }
.jb-btn-w--ghost .elementor-button { background: transparent; border-color: rgba(255, 255, 255, .45); }
.jb-btn-w--ghost .elementor-button:hover { background: #fff; color: var(--jb-ink); border-color: #fff; }
.jb-btn-w--outline .elementor-button { background: transparent; color: var(--jb-navy); border-color: var(--jb-navy); }
.jb-btn-w--outline .elementor-button:hover { background: var(--jb-navy); color: #fff; }
.jb-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.jb-wrap.e-con { max-width: calc(var(--jb-max) + var(--jb-gutter) * 2); margin-left: auto; margin-right: auto; padding-left: var(--jb-gutter) !important; padding-right: var(--jb-gutter) !important; }
.jb-split.e-con { display: grid !important; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.jb-split.jb-split--wide-left.e-con { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) { .jb-split.e-con, .jb-split.jb-split--wide-left.e-con { grid-template-columns: 1fr; } }
.jb-mt { margin-top: clamp(40px, 6vw, 80px); }
.jb-section .elementor-widget-text-editor { font-size: 18px; color: var(--jb-muted); }
.jb-section--dark .elementor-widget-text-editor, .jb-section--navy .elementor-widget-text-editor { color: rgba(255, 255, 255, .78); }
.jb-section .elementor-widget-text-editor.jb-lede { font-size: clamp(18px, 1.5vw, 21px); }

/* Teasers (about page links to founder + team) */
.jb-teaser { position: relative; display: block; min-height: 460px; overflow: hidden; border-radius: var(--jb-radius); background: var(--jb-ink); color: #fff; text-decoration: none; }
.jb-teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: transform 1.2s var(--jb-ease), opacity .6s; }
.jb-teaser::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 12, 44, .95), rgba(6, 12, 44, .1) 70%); }
.jb-teaser:hover img { transform: scale(1.05); opacity: .75; }
.jb-teaser__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 36px; display: grid; gap: 8px; }
.jb-teaser__title { font-family: var(--jb-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; color: #fff; letter-spacing: -.02em; }
.jb-teaser .jb-link { color: #fff; }
.jb-teaser:hover { color: #fff; }

/* Programme heading blocks on Our work */
.jb-prog-head__name { font-family: var(--jb-display); font-weight: 600; font-size: clamp(40px, 5.3vw, 84px); line-height: 1.08; color: var(--jb-ink); margin: 0 0 18px; letter-spacing: -.02em; }
.jb-prog-head .jb-tri { max-width: 420px; height: 6px; margin-bottom: 24px; }
.jb-prog-head.is-dark .jb-prog-head__name { color: #fff; }
.jb-prog__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.jb-section--dark .jb-tag { background: rgba(255, 255, 255, .08); color: #fff; }
.jb-center { text-align: center; align-items: center; }
.jb-center .jb-h3 { margin-bottom: 36px; }

/* Five year plan list */
.jb-timeline-plan { list-style: none; margin: 50px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--jb-navy); }
.jb-timeline-plan li { position: relative; padding: 30px 22px 10px 0; }
.jb-timeline-plan li::before { content: ''; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--jb-red); }
.jb-timeline-plan h3 { font-size: 28px; color: var(--jb-ink); margin-bottom: 8px; }
.jb-timeline-plan p { color: var(--jb-muted); font-size: 16px; margin: 0; }
@media (max-width: 900px) { .jb-timeline-plan { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--jb-navy); } .jb-timeline-plan li { padding: 0 0 28px 28px; } .jb-timeline-plan li::before { top: 6px; left: -8px; } }

/* Cost callout */
.jb-cost { margin-top: 32px; padding-left: 26px; border-left: 6px solid var(--jb-red); }
.jb-cost .jb-stat__n { color: #fff; }
.jb-cost p { margin: 0; color: rgba(255, 255, 255, .75); }

/* Post hero */
.jb-page-hero--post { padding-bottom: clamp(120px, 12vw, 170px); }
.jb-page-hero h1.jb-post-title { font-size: clamp(29px, 4vw, 61px); max-width: 20ch; }
.jb-hero-wrap { display: block; }

/* Elementor containers: spacing comes from our classes, not Elementor's defaults. */
.elementor .e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.elementor .e-con.jb-section { --padding-top: clamp(80px, 10vw, 150px); --padding-bottom: clamp(80px, 10vw, 150px); }
.elementor .e-con.jb-mt { margin-top: clamp(40px, 6vw, 80px); }
.elementor .e-con.jb-hero-wrap { --gap: 0px; }
.elementor .e-con.jb-btns { flex-direction: row !important; flex-wrap: wrap; --gap: 12px; }
.jb-split.e-con > .e-con { min-width: 0; }


/* ==== Round 3 ==== */
/* Partner logos in greyscale */
.jb-partners__logo img { filter: grayscale(1); opacity: .72; transition: opacity .3s; }
.jb-partners a:hover .jb-partners__logo img { opacity: 1; }
.jb-partners { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .jb-partners { grid-template-columns: repeat(2, 1fr); } }
.jb-partners a, .jb-partners li > div { min-height: 130px; padding: 26px; }

/* Stats: columns keep clear of their dividers */
.jb-stats { margin-top: clamp(32px, 4vw, 56px); gap: 0; }
.jb-stat { padding: 30px 28px 24px; }
.jb-stat:first-child { padding-left: 0; }
.jb-stat__n { font-size: clamp(42px, 4.6vw, 69px); }
.jb-source { margin-top: 20px; font-size: 13px; letter-spacing: 0; }
.elementor-widget-html .jb-source { margin-top: 20px; }
@media (max-width: 700px) { .jb-stat { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--jb-line); } }

/* Buttons and nav in sentence case */
.jb-btn, .jb-btn-w .elementor-button { font-size: 15px; font-weight: 600; }
.jb-nav__list a { font-size: 15px; font-weight: 500; }
.jb-link { font-size: 15px; font-weight: 600; }

/* Footer email sign-up */
.jb-signup { display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(36px, 5vw, 60px) 0; border-bottom: 1px solid var(--jb-line-dk); margin-bottom: clamp(36px, 5vw, 60px); }
.jb-signup h3 { font-size: clamp(24px, 2.4vw, 34px); color: #fff; margin: 0 0 6px; line-height: 1.15; }
.jb-signup p { margin: 0; }
.jb-signup__form { display: flex; gap: 10px; }
.jb-signup__form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; font: inherit; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid var(--jb-line-dk); border-radius: var(--jb-radius); }
.jb-signup__form input::placeholder { color: rgba(255, 255, 255, .55); }
.jb-signup__form input:focus { outline: 0; border-color: #fff; }
.jb-signup__note { grid-column: 2; font-size: 14px; color: var(--jb-bronze-lt); min-height: 1.4em; margin-top: -16px !important; }
@media (max-width: 760px) { .jb-signup { grid-template-columns: 1fr; } .jb-signup__note { grid-column: 1; } .jb-signup__form { flex-direction: column; } }

/* H2s: one softer size across the site. H1 on plain page heroes comes down too. */
:root { --jb-h2-size: clamp(30px, 3.4vw, 52px); }
.jb-h2 { font-size: var(--jb-h2-size); line-height: 1.12; }
.jb-page-hero h1 { font-size: clamp(36px, 4.6vw, 72px); line-height: 1.08; }
.jb-footer__cta-title { font-size: var(--jb-h2-size); line-height: 1.12; }

/* Lists: plain heading and text, no icons or boxes */
.jb-steps { gap: clamp(24px, 2.6vw, 36px); }
.jb-steps li, .jb-section--dark .jb-steps li { display: block; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; transition: none; }
.jb-steps li:hover { transform: none; border: 0; box-shadow: none; }
.jb-steps li::before { display: none; }
.jb-steps h3 { font-family: var(--jb-display); font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.01em; }
.jb-steps p { font-size: 17px; }

/* News cards: read more sits at the foot of each card */
.jb-card-news__excerpt { margin-bottom: 22px; }
.jb-card-news__more { margin-top: auto; align-self: flex-start; min-height: 44px; padding: 0 20px; }
.jb-card-news__more:hover { color: #fff; }

/* Mobile menu: backdrop-filter or transform on the header would trap the fixed menu inside the header,
   which is why the burger only worked at the very top of the page. */
@media (max-width: 1080px) {
	.is-scrolled .jb-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 12, 44, .97); }
	.menu-open .jb-header { transform: none !important; background: transparent; box-shadow: none; }
	.menu-open .jb-header::before { opacity: 0; }
	.jb-header__brand { position: relative; z-index: 3; }
	.jb-header__donate { position: relative; z-index: 3; }
}

/* ==== Mobile review ==== */
.jb-partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jb-partners__logo { display: block; width: 100%; text-align: center; }
.jb-partners__logo img { display: inline-block; width: auto; height: auto; max-width: 100%; max-height: 64px; }
@media (max-width: 760px) {
	.jb-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.jb-partners a, .jb-partners li > div, .jb-partners--strip a, .jb-partners--strip li > div { min-height: 96px; padding: 16px; }
	.jb-partners__logo img { max-height: 48px; }
	.jb-link { min-height: 44px; }
	/* Shorter footer: link columns side by side */
	.jb-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.jb-footer__col:last-child { grid-column: 1 / -1; }
	.jb-footer__main { padding: 40px 0; }
	.jb-footer__cta { padding: 80px 0; }
}
