/*
Theme Name: ILF DRC
Theme URI: https://ilfdrc.com
Author: Nanbal Levi — ILF Nigeria
Description: Custom bilingual (Français / English) theme for International Leadership Foundation — RD Congo. Colours drawn from the Congolese flag, ILF signature structure. Upload the logo under Appearance → Customize → Site Identity; contact details under "ILF DRC — Contact & Social".
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ilf-drc
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #0a1f44;        /* deep base */
	--navy-2: #0f2c5c;
	--blue: #007fff;        /* flag sky blue */
	--blue-soft: #e8f3ff;
	--red: #ce1021;         /* flag red */
	--gold: #f7d618;        /* flag yellow */
	--gold-deep: #e0bd00;
	--ink: #14213d;
	--muted: #5a6478;
	--line: #e3e8f0;
	--paper: #ffffff;
	--tint: #f5f8fc;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(10, 31, 68, .08);
	--font-head: "Montserrat", system-ui, sans-serif;
	--font-body: "Source Sans 3", system-ui, sans-serif;
}

/* ---------- Language visibility ---------- */
html[data-lang="fr"] .l-en,
html[data-lang="en"] .l-fr { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; }
.icon svg { width: 100%; height: 100%; fill: currentColor; }

.kicker {
	font-family: var(--font-head); font-size: .78rem; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase; color: var(--red);
	margin-bottom: .9em; display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: linear-gradient(90deg, var(--red) 60%, var(--gold) 60%); border-radius: 2px; }
.kicker.light { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--font-head); font-weight: 700; font-size: .95rem;
	padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s;
	text-decoration: none !important; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #006ad6; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--blue); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Flag band motif ---------- */
.flag-band {
	height: 8px;
	background: linear-gradient(90deg, var(--blue) 0 40%, var(--gold) 40% 42%, var(--red) 42% 58%, var(--gold) 58% 60%, var(--blue) 60% 100%);
}
.flag-band.thin { height: 5px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.75); font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topbar-link { color: var(--gold); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(10,31,68,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { flex: none; }
.brand .custom-logo { max-height: 58px; width: auto; }
.text-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none !important; }
.text-logo .mark { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); position: relative; overflow: hidden; }
.text-logo .mark::after { content: ""; position: absolute; width: 140%; height: 9px; background: var(--red); box-shadow: 0 -2px 0 var(--gold), 0 2px 0 var(--gold); transform: rotate(-35deg); top: 60%; left: -20%; }
.text-logo .mark .icon { color: var(--gold); width: 18px; height: 18px; position: absolute; top: 6px; left: 6px; z-index: 1; }
.text-logo .words { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.text-logo strong { font-size: 1.45rem; font-weight: 800; letter-spacing: .02em; }
.text-logo em { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 3px; }

.main-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav ul a { display: block; padding: 8px 12px; font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--ink); border-radius: 8px; position: relative; }
.main-nav ul a:hover { text-decoration: none; color: var(--blue); }
.main-nav ul a[aria-current="page"] { color: var(--blue); }
.main-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--red); }
.nav-cta { padding: .7em 1.2em; }

.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { font-family: var(--font-head); font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch a:hover { text-decoration: none; color: var(--navy); }
.lang-switch a.is-active { background: var(--navy); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Stats ---------- */
.stats { background: var(--paper); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -52px; border: 1px solid var(--line); }
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat:nth-child(2) strong { color: var(--blue); }
.stat:nth-child(3) strong { color: var(--red); }
.stat > span { font-size: .95rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tinted { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }

.vision-card { position: relative; background: linear-gradient(150deg, var(--blue) 0%, #0059c2 100%); color: #fff; border-radius: 22px; padding: 48px 40px; overflow: hidden; box-shadow: var(--shadow); }
.vision-card::after { content: ""; position: absolute; width: 180%; height: 46px; background: var(--red); box-shadow: 0 -7px 0 var(--gold), 0 7px 0 var(--gold); transform: rotate(-30deg); right: -100%; bottom: 22%; opacity: .9; }
.vision-star { position: absolute; top: 24px; right: 28px; width: 46px; height: 46px; color: var(--gold); }
.vision-star .icon { width: 100%; height: 100%; }
.vision-text { position: relative; z-index: 1; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.4; margin-bottom: 40px; }

.values { background: var(--tint); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); border-top: 4px solid var(--blue); transition: transform .2s, box-shadow .2s; }
.value:nth-child(2) { border-top-color: var(--red); }
.value:nth-child(3) { border-top-color: var(--gold); }
.value:nth-child(4) { border-top-color: var(--navy); }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--muted); display: block; margin-bottom: 14px; }
.value p { color: var(--muted); margin: 0; font-size: 1rem; }

.prog-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.prog-card { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.prog-card:nth-child(4), .prog-card:nth-child(5) { grid-column: span 3; }
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.prog-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.prog-tag { display: inline-block; align-self: flex-start; font-family: var(--font-head); font-size: .75rem; font-weight: 800; letter-spacing: .08em; background: var(--blue-soft); color: var(--blue); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.prog-for { font-size: .85rem; font-weight: 600; color: var(--red); }

.spheres { background: var(--navy); color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.spheres h2 { color: #fff; }
.sphere-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sphere-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 16px 18px 16px 44px; position: relative; font-family: var(--font-head); font-weight: 600; color: #fff; font-size: .98rem; }
.sphere-list li::before { content: "★"; position: absolute; left: 16px; top: 15px; color: var(--gold); }
.sphere-list li:last-child { grid-column: 1 / -1; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card-media { aspect-ratio: 16/10; background: var(--blue-soft); display: block; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover img { transform: scale(1.04); }
.post-card-ph { display: grid; place-items: center; height: 100%; color: var(--blue); }
.post-card-ph .icon { width: 48px; height: 48px; opacity: .5; }
.post-card-body { padding: 22px 24px 26px; }
.post-card time { font-size: .85rem; color: var(--red); font-weight: 600; }
.post-card h3 { margin: 6px 0 8px; }
.post-card h3 a { color: var(--navy); }
.post-card p { color: var(--muted); font-size: 1rem; margin: 0; }
.empty { text-align: center; padding: 40px; color: var(--muted); background: var(--tint); border-radius: var(--radius); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; }

.cta { background: linear-gradient(120deg, var(--red) 0%, #a50d1a 100%); color: #fff; position: relative; overflow: hidden; padding: 80px 0; }
.cta::before { content: ""; position: absolute; width: 60%; height: 14px; background: var(--gold); right: -10%; top: 18%; transform: rotate(-20deg); opacity: .6; }
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(255,255,255,.88); max-width: 56ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 80px 0 72px; overflow: hidden; }
.page-hero .flag-band { position: absolute; left: 0; right: 0; bottom: 0; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 60px; background: var(--red); box-shadow: 0 -8px 0 var(--gold), 0 8px 0 var(--gold); transform: rotate(-28deg); right: -140px; top: 40px; opacity: .85; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 60ch; }
.page-hero .kicker { color: var(--gold); }

.timeline { border-left: 3px solid var(--line); padding-left: 28px; display: grid; gap: 26px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -37px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-item.is-now::before { background: var(--gold); border-color: var(--red); }
.tl-year { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.tl-item p { margin: 4px 0 0; color: var(--muted); }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px 40px; }
.mv-card.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.mv-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: 0; color: var(--navy); }
.mv-card.blue .mv-text { color: #fff; }

.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.approach-grid article { padding: 32px 28px; border-radius: var(--radius); background: var(--tint); }
.step { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 800; margin-bottom: 16px; }
.approach-grid p { color: var(--muted); margin: 0; }

.prog-jump { position: sticky; top: 78px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.prog-jump .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
.prog-jump a { flex: none; font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: 7px 14px; border-radius: 999px; background: var(--tint); color: var(--navy); }
.prog-jump a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.prog-list { display: grid; gap: 28px; }
.prog-row { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 40px; border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 150px; }
.prog-row:nth-child(even) { background: var(--tint); }
.prog-index { display: block; font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--line); line-height: 1; margin-bottom: 10px; }
.prog-row:nth-child(even) .prog-index { color: #d6deea; }
.prog-desc { font-size: 1.15rem; color: var(--ink); }
.prog-row-body p { color: var(--muted); }
.prog-row-body .prog-desc { color: var(--ink); }
.prog-meta strong { color: var(--navy); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 50px; position: relative; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 16px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .8rem; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.contact-list .icon svg { fill: none; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy); }
.contact-note { margin-top: 28px; padding: 20px; border-radius: 12px; background: var(--tint); font-size: .95rem; color: var(--muted); }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.contact-form { display: grid; gap: 18px; }
.contact-form label span { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,127,255,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.notice.ok { background: #e7f8ee; color: #136c3a; }
.notice.err { background: #fde8ea; color: var(--red); }

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; }
.prose img { border-radius: 12px; }
.feature-img { margin: 0 0 32px; }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--blue); }
.socials .icon { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #071631; color: rgba(255,255,255,.72); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 72px 0 48px; }
.site-footer h3 { color: #fff; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand .text-logo { color: #fff; }
.footer-brand .custom-logo { max-height: 56px; filter: none; }
.footer-about p { margin: 18px 0 22px; }
.footer-about .socials a { background: rgba(255,255,255,.1); }
.footer-about .socials a:hover { background: var(--blue); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 4px; }
.footer-contact .icon svg { fill: none; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 30px; font-size: .88rem; }
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: 0; top: 0; background: var(--navy); flex-direction: column; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform .3s; z-index: -1; padding: 80px 24px; }
	.nav-open .main-nav { transform: none; z-index: 60; }
	.nav-open .header-tools { position: relative; z-index: 61; }
	.nav-open .nav-toggle span:not(.screen-reader-text) { background: #fff; }
	.nav-open .lang-switch { border-color: rgba(255,255,255,.3); }
	.main-nav ul { flex-direction: column; align-items: center; gap: 6px; }
	.main-nav ul a { color: #fff; font-size: 1.35rem; }
	.main-nav ul a[aria-current="page"] { color: var(--gold); }
	.header-inner { justify-content: space-between; }
				.values-grid { grid-template-columns: 1fr 1fr; }
	.prog-grid { grid-template-columns: 1fr 1fr; }
	.prog-card, .prog-card:nth-child(4) { grid-column: span 1; }
	.prog-card:nth-child(5) { grid-column: 1 / -1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	body { font-size: 17px; }
	.section { padding: 70px 0; }
	.split, .mv-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.post-grid, .approach-grid { grid-template-columns: 1fr; }
	.prog-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 24px; }
	.prog-index { font-size: 2.2rem; }
	.topbar-note { display: none; }
	.topbar .wrap { justify-content: flex-end; }
}
@media (max-width: 560px) {
	.wrap { width: calc(100% - 32px); }
	.values-grid, .prog-grid, .sphere-list, .field-row, .footer-grid { grid-template-columns: 1fr; }
	.prog-card:nth-child(5), .sphere-list li:last-child { grid-column: auto; }
	.stat strong { font-size: 1.8rem; }
	.stat { padding: 20px 12px; }
			.contact-form-wrap { padding: 26px 20px; }
	.text-logo strong { font-size: 1.25rem; }
}

/* ---------- v1.1: logo, slider, founder, resources ---------- */
.site-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; }
.site-logo .custom-logo { height: 52px; width: auto; max-height: none; }
.country-tag { font-family: var(--font-head); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding: 6px 0 6px 12px; border-left: 3px solid var(--red); line-height: 1.2; white-space: nowrap; }
.footer-brand .site-logo .custom-logo { background: #fff; border-radius: 10px; padding: 6px 10px; height: 56px; box-sizing: content-box; }
.footer-brand .country-tag { color: #fff; }
.topbar-right { display: inline-flex; gap: 18px; }
.topbar-right a { color: rgba(255,255,255,.85); }

.hero-slider { position: relative; z-index: 1; background: var(--navy); color: #fff; overflow: hidden; }
.hero-slider .slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; min-height: clamp(540px, 78vh, 760px); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slide.is-active .slide-img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.slide-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,31,68,.62) 0%, rgba(10,31,68,.35) 75%), linear-gradient(180deg, rgba(10,31,68,.15) 0%, rgba(10,31,68,.7) 100%); }
.slide-copy { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 100px 0 140px; }
.slide-copy .kicker { justify-content: center; }
.slide-copy .kicker::after { content: ""; width: 26px; height: 3px; background: linear-gradient(90deg, var(--gold) 40%, var(--red) 40%); border-radius: 2px; }
.slide-copy h1, .slide-copy .slide-title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 800; max-width: 18ch; text-wrap: balance; margin-bottom: .45em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.slide-copy .hl { color: var(--gold); }
.slide-copy .lead { color: rgba(255,255,255,.9); max-width: 58ch; margin-inline: auto; }
.slide-copy .hero-actions { justify-content: center; }
.slide.is-active .slide-copy > * { animation: rise .8s ease both; }
.slide.is-active .slide-copy > *:nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide-copy > *:nth-child(3) { animation-delay: .24s; }
.slide.is-active .slide-copy > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slider-arrow { position: absolute; top: 50%; z-index: 5; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: rgba(10,31,68,.35); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.prev .icon { transform: rotate(180deg); }
.slider-arrow.next { right: 24px; }
.slider-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 66px; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.is-active { width: 36px; background: var(--gold); }
.hero-slider .flag-band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; }
.hero-slider + .stats .stats-grid { margin-top: -40px; }

.founder-row { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.founder-row.large { grid-template-columns: 340px 1fr; align-items: start; }
.founder-photo { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: linear-gradient(150deg, var(--blue), var(--navy)); position: relative; box-shadow: var(--shadow); max-width: 100%; }
.founder-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 40%, var(--gold) 40% 42%, var(--red) 42% 58%, var(--gold) 58% 60%, var(--blue) 60%); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.founder-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; color: rgba(255,255,255,.9); letter-spacing: .04em; }
.founder-role { font-family: var(--font-head); font-weight: 600; color: var(--red); margin-top: -.3em; }
.founder-teaser { background: var(--paper); }

.photo-band { height: clamp(260px, 42vw, 480px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.where-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 22px; }
.where-grid article { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.where-grid article:first-child { background: var(--blue-soft); border-color: transparent; }
.where-grid p { color: var(--muted); font-size: 1rem; margin: 0; }
.where-grid strong { color: var(--red); }

.prog-links, .btn-row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.link-arrow.muted { color: var(--muted); font-weight: 600; }
.muted-text { color: var(--muted); margin: 0; }

.poem { margin: 0; position: relative; background: var(--navy); color: #fff; border-radius: 22px; padding: 56px 44px; overflow: hidden; }
.poem p { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.2; margin: 0 0 18px; color: var(--gold); }
.poem cite { font-style: normal; color: rgba(255,255,255,.75); }
.poem-star { position: absolute; right: 28px; top: 24px; width: 54px; height: 54px; color: var(--gold); opacity: .35; }
.poem-star .icon { width: 100%; height: 100%; }

@media (max-width: 1080px) {
	.where-grid { grid-template-columns: 1fr 1fr; }
		.slider-arrow { display: none; }
}
@media (max-width: 820px) {
	.founder-row, .founder-row.large { grid-template-columns: 1fr; gap: 28px; }
	.founder-photo { max-width: 300px; }
		.topbar-right a:first-child { display: none; }
}
@media (max-width: 560px) {
	.where-grid, 	.site-logo .custom-logo { height: 40px; }
	.country-tag { font-size: .62rem; padding-left: 9px; }
	.slide { min-height: 560px; }
	.slide-copy { padding: 72px 0 128px; }
}


/* ---------- v1.2: polish, image headers, shelf, chat ---------- */
::selection { background: var(--gold); color: var(--navy); }
body { text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.section-head h2 { margin-bottom: .35em; }

.page-hero.has-image { padding: 120px 0 104px; isolation: isolate; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.page-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,31,68,.94) 0%, rgba(10,31,68,.78) 45%, rgba(10,31,68,.35) 100%); }
.page-hero.has-image::after { z-index: 0; opacity: .75; }
.page-hero.has-image .wrap { z-index: 1; }
.page-hero.has-image .lead { color: rgba(255,255,255,.88); }

.value, .prog-card, .post-card, .where-grid article, .approach-grid article, .mv-card { border-radius: 18px; }
.prog-card { position: relative; overflow: hidden; }
.prog-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.prog-card:hover::after { transform: scaleX(1); }
.prog-card:hover, .value:hover, .post-card:hover, .post-card { transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); }
.post-card-media { position: relative; }
.post-card-body { display: flex; flex-direction: column; flex: 1; }
.post-card-body p { flex: 1; }

.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: none; }
.shelf-item a { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none !important; position: relative; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.shelf-item a::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--blue) 0 40%, var(--gold) 40% 46%, var(--red) 46% 74%, var(--gold) 74% 80%, var(--blue) 80%); }
.shelf-item a:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10,31,68,.1); }
.shelf-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); min-width: 2.2ch; transition: color .25s; }
.shelf-item a:hover .shelf-num { color: var(--blue); }
.shelf-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shelf-tag { font-family: var(--font-head); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.shelf-title { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); line-height: 1.3; }
.shelf-alt { font-size: .92rem; color: var(--muted); font-style: italic; }
.shelf-langs { display: flex; gap: 6px; }
.shelf-langs span { font-family: var(--font-head); font-size: .7rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.shelf-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--navy); transition: background .25s, color .25s, transform .25s; }
.shelf-item a:hover .shelf-go { background: var(--gold); transform: rotate(-35deg); }

/* Chat assistant */
#ilf-chat { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 90; font-family: var(--font-body); }
.chat-toggle { width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,127,255,.4); transition: transform .2s, background .2s; position: relative; }
.chat-toggle::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: chatPulse 2.6s ease-out infinite; }
#ilf-chat.open .chat-toggle::before { animation: none; }
@keyframes chatPulse { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-toggle:hover { transform: scale(1.06); background: var(--navy); }
.chat-toggle svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; grid-area: 1 / 1; transition: transform .25s, opacity .25s; }
.chat-toggle .i-close { opacity: 0; transform: rotate(-90deg); }
#ilf-chat.open .chat-toggle .i-chat { opacity: 0; transform: rotate(90deg); }
#ilf-chat.open .chat-toggle .i-close { opacity: 1; transform: none; }
.chat-badge { position: absolute; right: 74px; bottom: 14px; white-space: nowrap; background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .85rem; padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(10,31,68,.15); opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
#ilf-chat.nudge .chat-badge { opacity: 1; transform: none; }
#ilf-chat.open .chat-badge { opacity: 0; }
.chat-panel { position: absolute; right: 0; bottom: 78px; width: 370px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 140px)); background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(10,31,68,.28); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .25s, transform .25s, visibility 0s .25s; }
#ilf-chat.open .chat-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; position: relative; }
.chat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue) 0 40%, var(--gold) 40% 42%, var(--red) 42% 58%, var(--gold) 58% 60%, var(--blue) 60%); }
.chat-av { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 6px; flex: none; }
.chat-av img { width: 100%; height: auto; }
.chat-id { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.chat-id b { font-family: var(--font-head); font-size: .98rem; }
.chat-id small { font-size: .8rem; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 6px; }
.dot-online { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); }
.chat-close { background: rgba(255,255,255,.1); border: 0; width: 34px; height: 34px; border-radius: 50%; color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--tint); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; animation: msgIn .25s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 2px 8px rgba(10,31,68,.06); }
.msg.me { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--blue); font-weight: 600; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; background: var(--tint); scrollbar-width: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: .8rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.chat-chips button:hover { background: var(--blue); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px; outline: none; }
.chat-form input:focus { border-color: var(--blue); }
.chat-form button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.chat-foot { padding: 0 14px 12px; font-size: .8rem; color: var(--muted); text-align: center; background: #fff; }
.chat-foot a { color: var(--blue); font-weight: 600; }

/* Mobile optimisation */
@media (max-width: 820px) {
	.page-hero.has-image { padding: 88px 0 76px; }
	.page-hero-shade { background: linear-gradient(180deg, rgba(10,31,68,.7) 0%, rgba(10,31,68,.9) 100%); }
	.page-hero::after { width: 300px; height: 40px; right: -120px; top: 24px; }
	.shelf { grid-template-columns: 1fr; }
	.section-head { margin-bottom: 32px; }
}
@media (max-width: 560px) {
	body { font-size: 16.5px; }
	.topbar { display: none; }
	.header-inner { min-height: 64px; gap: 12px; }
	.prog-jump { top: 64px; }
	.section { padding: 56px 0; }
	.cta { padding: 56px 0; }
	h2 { font-size: 1.6rem; }
	.page-hero h1 { font-size: 2rem; }
	.page-hero .lead, .slide-copy .lead { font-size: 1.05rem; }
	.slide-copy h1, .slide-copy .slide-title { font-size: 2.05rem; }
	.slide-copy .hero-actions { flex-direction: column; width: 100%; max-width: 320px; gap: 10px; }
	.slide-copy .hero-actions .btn { justify-content: center; }
	.slider-dots { bottom: 58px; }
	.lang-switch a { padding: 5px 8px; }
	.stats-grid { margin-top: -28px !important; }
	.stat strong { font-size: 1.6rem; }
	.stat > span { font-size: .85rem; }
	.value, .prog-card, 	.prog-row { padding: 24px 20px; }
	.cta-actions { width: 100%; }
	.cta-actions .btn { flex: 1; justify-content: center; }
	.shelf-item a { grid-template-columns: auto 1fr auto; gap: 14px; padding: 18px 16px 18px 20px; }
	.shelf-langs { display: none; }
	.shelf-num { font-size: 2rem; }
	.founder-photo { max-width: 260px; margin-inline: auto; }
	.footer-grid { gap: 28px; padding: 48px 0 32px; }
	.chat-badge { display: none; }
	#ilf-chat { right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
	.chat-toggle { width: 56px; height: 56px; }
	.chat-panel { position: fixed; left: 10px; right: 10px; bottom: 82px; width: auto; max-width: none; height: min(70vh, 560px); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
