/*
Theme Name: Ekklesia Impact
Theme URI: https://ekklesiaimpact.ca
Author: Ekklesia Impact
Description: Custom theme for Ekklesia Impact — Rooted to Reach. Creates all pages, the menu and the forms on activation. Content is editable in the WordPress block editor.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ekklesia-impact
*/

/* Fonts: self-hosted (SIL Open Font License). Merriweather = headlines, Inter = subheads, body, UI. */
@font-face{font-family:Merriweather;font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/merriweather-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:Merriweather;font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/merriweather-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:Merriweather;font-style:normal;font-weight:900;font-display:swap;src:url("assets/fonts/merriweather-latin-900-normal.woff2") format("woff2")}
@font-face{font-family:Merriweather;font-style:italic;font-weight:400;font-display:swap;src:url("assets/fonts/merriweather-latin-400-italic.woff2") format("woff2")}
@font-face{font-family:Merriweather;font-style:italic;font-weight:700;font-display:swap;src:url("assets/fonts/merriweather-latin-700-italic.woff2") format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/inter-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/inter-latin-700-normal.woff2") format("woff2")}


:root {
	--navy: #0B2D4F;
	--terracotta: #C7592F;
	--terracotta-dark: #B24C26; /* accessible tint of Terracotta: ONLY for small text and links (exact brand Terracotta is 4.1:1 on Cloud) */
	--slate: #6B8FA3;
	--slate-dark: #4F7488;
	--slate-light: #A9C3D2;
	--sand: #F4EDE4;
	--cloud: #FAFAF8;
	--ink: #1D2B3A;
	--serif: Merriweather, Georgia, "Times New Roman", serif;
	--sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--sand); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--terracotta-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--cloud); color: var(--navy); padding: .75rem 1rem; border-radius: 8px; }

/* Headings */
h1, h2 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h3, h4 { font-family: var(--sans); color: var(--navy); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p { margin: 0 0 1.1em; }

/* Header */
.site-header { background: var(--cloud); border-bottom: 1px solid rgba(11,45,79,.1); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { max-width: 1280px; margin: 0 auto; padding: .9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.ei-logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; align-items: stretch; }
.ei-logo__name { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; text-align: center; }
.ei-logo__arc { display: block; width: 52%; height: 8px; margin: 3px auto 5px; }
.ei-logo__tag { display: flex; align-items: center; gap: .55rem; font: 700 .56rem var(--sans); letter-spacing: .36em; color: var(--navy); text-transform: uppercase; white-space: nowrap; }
.ei-logo__tag::before, .ei-logo__tag::after { content: ""; flex: 1; height: 2px; background: var(--slate); }
.ei-logo--stacked .ei-logo__name { font-size: 2rem; line-height: .95; }
.ei-logo--stacked .ei-logo__arc { width: 100%; margin: 6px 0 8px; }
.ei-logo--stacked .ei-logo__tag { justify-content: center; font-size: .6rem; }
.ei-logo--stacked .ei-logo__tag::before, .ei-logo--stacked .ei-logo__tag::after { display: none; }
.custom-logo-link img { max-height: 54px; width: auto; display: block; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.primary-nav a { display: block; padding: .55rem .8rem; font-weight: 500; font-size: .95rem; color: var(--navy); text-decoration: none; border-radius: 8px; }
.primary-nav a:hover { background: var(--sand); color: var(--navy); }
.primary-nav .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--terracotta); border-radius: 0; }
.primary-nav .menu-cta > a { background: var(--terracotta-dark); border: 0; color: var(--cloud); font-weight: 600; padding: .55rem 1.1rem; border-radius: 999px; margin-left: .4rem; box-shadow: none; }
.primary-nav .menu-cta > a:hover { background: var(--navy); color: var(--cloud); }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 8px; padding: .45rem .8rem; font: 600 .9rem var(--sans); cursor: pointer; }

/* Sections (page content built from blocks) */
.ei-section { padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem; }
.ei-section--surface { background: var(--cloud); }
.ei-section--navy { background: var(--navy); color: rgba(250,250,248,.88); }
.ei-section--navy h1, .ei-section--navy h2, .ei-section--navy h3 { color: var(--cloud); }
.ei-section--navy a { color: var(--cloud); }
.ei-center { text-align: center; }
.ei-narrow > * { max-width: 760px !important; }
.ei-eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--slate-dark); margin-bottom: 1rem; }
.ei-section--navy .ei-eyebrow, .ei-hero .ei-eyebrow { color: var(--slate-light); }
.ei-lead { font-size: 1.2rem; line-height: 1.6; }
.ei-statement { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--navy); font-weight: 700; }
.ei-section--navy .ei-statement { color: var(--cloud); }
.ei-arc { width: 90px; height: 6px; background: var(--terracotta); border-radius: 100% 100% 0 0 / 100% 100% 0 0; margin: 1.2rem 0 1.6rem; }
.ei-center .ei-arc { margin-left: auto; margin-right: auto; }

/* Hero */
.ei-hero { position: relative; overflow: hidden; color: rgba(250,250,248,.88); padding: clamp(5rem, 13vw, 10rem) 1.5rem clamp(7rem, 15vw, 12rem); background: linear-gradient(180deg, #123A5E 0%, #0B2D4F 55%, #0B2D4F 100%); }
.ei-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 105%, rgba(229,157,100,.55), rgba(199,89,47,.18) 45%, transparent 70%); pointer-events: none; }
.ei-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: url("assets/img/hills.svg") center bottom / 100% 100% no-repeat; pointer-events: none; }
.ei-hero.has-photo::before { background: linear-gradient(180deg, rgba(11,45,79,.55), rgba(11,45,79,.8)); }
.ei-hero > * { position: relative; z-index: 2; }
.ei-hero h1 { color: var(--cloud); }
.ei-hero .ei-lead { max-width: 640px; }
.ei-hero .ei-arc { margin-top: 0; }
.ei-page-hero { background: var(--navy); color: rgba(250,250,248,.88); padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; position: relative; overflow: hidden; }
.ei-page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: url("assets/img/hills.svg") center bottom / 100% 100% no-repeat; opacity: .6; pointer-events: none; }
.ei-page-hero > * { position: relative; z-index: 2; }
.ei-page-hero h1 { color: var(--cloud); margin-bottom: .4em; }
.ei-page-hero p { max-width: 680px; font-size: 1.2rem; }

/* Buttons */
.wp-block-buttons { gap: .8rem; margin-top: 1.6rem; }
.wp-block-button__link, .ei-btn { display: inline-block; background: var(--terracotta); color: var(--cloud) !important; border: 2px solid var(--terracotta); border-radius: 999px; padding: .75rem 1.7rem; font: 700 1.2rem/1.3 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.wp-block-button__link:hover, .ei-btn:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.is-style-outline .wp-block-button__link:hover { background: var(--navy); color: var(--cloud) !important; }
.ei-section--navy .is-style-outline .wp-block-button__link, .ei-hero .is-style-outline .wp-block-button__link, .ei-page-hero .is-style-outline .wp-block-button__link { color: var(--cloud) !important; border-color: rgba(250,250,248,.75); }
.ei-section--navy .is-style-outline .wp-block-button__link:hover, .ei-hero .is-style-outline .wp-block-button__link:hover { background: var(--cloud); color: var(--navy) !important; border-color: var(--cloud); }
.ei-center .wp-block-buttons { justify-content: center; }

/* Columns / cards */
.wp-block-columns { gap: 1.5rem; margin: 2rem 0 0; }
.ei-card { background: var(--cloud); border: 1px solid rgba(11,45,79,.1); border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: 0 2px 12px rgba(11,45,79,.06); }
.ei-card h3 { margin-bottom: .5rem; }
.ei-card p:last-child { margin-bottom: 0; }
.ei-card__kicker { font-family: var(--serif); font-style: italic; color: var(--terracotta-dark); font-weight: 700; margin-bottom: .5rem; }
.ei-card--icon::before { content: ""; display: block; width: 52px; height: 52px; border-radius: 50%; background-color: var(--sand); margin-bottom: 1.2rem; background-repeat: no-repeat; background-position: center; background-size: 28px; }
.ei-icon--book::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M2 5.5c3-1.3 6.5-1.3 10 .8 3.5-2.1 7-2.1 10-.8v13c-3-1.3-6.5-1.3-10 .8-3.5-2.1-7-2.1-10-.8z'/%3E%3Cpath d='M12 6.3v13'/%3E%3C/svg%3E"); }
.ei-icon--people::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='6.5' r='2.6'/%3E%3Ccircle cx='5' cy='9.5' r='2.1'/%3E%3Ccircle cx='19' cy='9.5' r='2.1'/%3E%3Cpath d='M7.5 18.5c0-3 2-4.8 4.5-4.8s4.5 1.8 4.5 4.8M1.5 17.5c0-2.3 1.4-3.8 3.5-3.8M22.5 17.5c0-2.3-1.4-3.8-3.5-3.8'/%3E%3C/svg%3E"); }
.ei-icon--globe::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9.5'/%3E%3Cpath d='M2.5 12h19M4 7h16M4 17h16'/%3E%3C/svg%3E"); }
.ei-icon--pray::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3v18M7 8h10'/%3E%3C/svg%3E"); }
.ei-icon--partner::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='12' r='5'/%3E%3Ccircle cx='16' cy='12' r='5'/%3E%3C/svg%3E"); }
.ei-icon--serve::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 11h4v9H4zM8 12l4-1.5c1-.3 2 0 2.6.8L16 13h2.5a1.5 1.5 0 0 1 0 3H12M8 14l5.5 1.5'/%3E%3Cpath d='M16 4.5c1-1.4 3.2-.6 3 1.2-.2 1.4-3 3.2-3 3.2s-2.8-1.8-3-3.2c-.2-1.8 2-2.6 3-1.2z'/%3E%3C/svg%3E"); }
.ei-icon--give::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D4F' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 20.5C5 15.5 3 12 3 8.6 3 6 5 4.2 7.3 4.2c1.9 0 3.6 1.1 4.7 2.9 1.1-1.8 2.8-2.9 4.7-2.9C19 4.2 21 6 21 8.6c0 3.4-2 6.9-9 11.9z'/%3E%3C/svg%3E"); }

/* Stats */
.ei-stat { text-align: center; padding: 1rem; }
.ei-stat__num { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 5.5vw, 4rem); color: var(--navy); line-height: 1; margin-bottom: .6rem; }
.ei-stat__label { font-size: 1.05rem; margin: 0; }
.ei-source { font-size: .85rem; color: var(--slate-dark); margin-top: 1.6rem; }

/* Pull quote */
.ei-scripture { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.5; color: var(--cloud); margin-bottom: .8rem; }
.ei-cite { font-weight: 600; letter-spacing: .08em; color: var(--slate-light); }

/* Page layout */
.site-main { min-height: 50vh; }
.ei-default-content { max-width: 800px; margin: 0 auto; padding: 4rem 1.5rem; }

/* Forms */
.ei-form { max-width: 640px; }
.ei-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--navy); }
.ei-form input[type=text], .ei-form input[type=email], .ei-form textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid #b9c7d1; border-radius: 10px; font: inherit; background: var(--cloud); color: var(--ink); margin-bottom: 1.1rem; }
.ei-form input:focus, .ei-form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(107,143,163,.4); outline-offset: 0; }
.ei-form .ei-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ei-form--inline { display: flex; gap: .7rem; flex-wrap: wrap; max-width: 560px; }
.ei-form--inline input[type=email] { flex: 1 1 260px; margin: 0; }
.ei-center .ei-form--inline { margin: 0 auto; justify-content: center; }
.ei-notice { border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-weight: 500; max-width: 640px; }
.ei-notice--ok { background: #E6F2EA; color: #1E5B34; }
.ei-notice--err { background: #FBE9E3; color: #8A2E12; }
.ei-subscribe-box { margin-top: 1rem; }
.ei-subscribe-box .ei-notice { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(250,250,248,.78); padding: 3.5rem 1.5rem 2rem; }
.site-footer__inner { max-width: 1120px; margin: 0 auto; }
.site-footer .ei-logo__name { color: var(--cloud); }
.site-footer .ei-logo__tag { color: var(--cloud); }
.site-footer__brand { text-align: center; margin-bottom: 2rem; }
.site-footer__line { font-family: var(--serif); font-style: italic; color: var(--cloud); margin: 1.2rem 0 0; }
.footer-nav ul { list-style: none; margin: 0 0 2rem; padding: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; border-top: 1px solid rgba(250,250,248,.15); border-bottom: 1px solid rgba(250,250,248,.15); }
.footer-nav a { color: var(--cloud); text-decoration: none; font-weight: 500; font-size: .95rem; }
.footer-nav a:hover { color: var(--cloud); text-decoration: underline; }
.site-footer__copy { text-align: center; font-size: .88rem; margin: 0; }
.site-footer__copy span { display: block; margin-top: .3rem; }

/* Responsive */
@media (max-width: 960px) {
	.nav-toggle { display: inline-block; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cloud); border-bottom: 1px solid rgba(11,45,79,.12); padding: .75rem 1.5rem 1.25rem; box-shadow: 0 12px 24px rgba(11,45,79,.1); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav a { padding: .85rem .5rem; }
	.primary-nav .menu-cta > a { text-align: center; margin: .6rem 0 0; }
	.primary-nav .current-menu-item > a { box-shadow: none; color: var(--terracotta-dark); }
}
@media (max-width: 781px) {
	.admin-bar .site-header { top: 46px; }
	.wp-block-columns { flex-wrap: wrap !important; }
	.wp-block-column { flex-basis: 100% !important; }
	.wp-block-buttons { flex-direction: column; align-items: stretch; }
	.wp-block-button__link { display: block; text-align: center; }
	.ei-center .wp-block-buttons { align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Layout variants */
.ei-values { flex-wrap: wrap; justify-content: center; text-align: left; }
.ei-values > .wp-block-column { flex: 0 1 calc(33.333% - 1rem) !important; }
.ei-four > .wp-block-column { text-align: left; }
.ei-contact-cols { align-items: flex-start; }
.ei-center .ei-card { text-align: left; }
.ei-center .ei-stat, .ei-center .ei-stat p { text-align: center; }
.ei-contact-cols .ei-card { background: var(--cloud); }
@media (max-width: 781px) { .ei-values > .wp-block-column { flex-basis: 100% !important; } }

/* Self-contained layout rules (do not depend on WordPress block-library CSS) */
.ei-section, .ei-hero, .ei-page-hero { padding-left: max(1.5rem, calc((100% - 1120px) / 2)); padding-right: max(1.5rem, calc((100% - 1120px) / 2)); }
.ei-hero > *, .ei-page-hero > *, .ei-section > * { max-width: none; }
.ei-hero > p, .ei-page-hero > p { max-width: 680px; margin-left: 0 !important; margin-right: 0 !important; }
.ei-hero .ei-lead { max-width: 680px; }
.ei-narrow > * { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.ei-narrow > .wp-block-buttons { max-width: 760px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; }
.wp-block-columns { display: flex; flex-wrap: nowrap; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.ei-values > .wp-block-column { flex: 0 1 calc(33.333% - 1rem); }
@media (max-width: 781px) {
	.wp-block-columns { flex-wrap: wrap; }
	.wp-block-column { flex: 1 1 100% !important; }
}

/* Imagery */
.ei-hero::after { background: url("assets/img/hero-mountains.svg") center bottom / cover no-repeat; height: 78%; }
.ei-hero { background: url("assets/photos/world-map-watermark.jpg") center 18% / cover no-repeat, linear-gradient(180deg, #0F3A60 0%, #0B2D4F 60%); }
.ei-hero::before { background: radial-gradient(ellipse 60% 50% at 72% 62%, rgba(199,89,47,.30), transparent 70%); }
.ei-page-hero::before { content: ""; position: absolute; z-index: 1; top: 8%; bottom: 8%; right: max(1rem, calc((100% - 1120px) / 2)); width: min(36%, 380px); background-position: center; background-size: contain; background-repeat: no-repeat; pointer-events: none; }
.ei-page-hero > * { z-index: 2; }
.ei-art-sea::before { background-image: url("assets/img/art-sea.svg"); }
.ei-art-bible::before { background-image: url("assets/img/art-bible.svg"); }
.ei-art-church::before { background-image: url("assets/img/art-church.svg"); }
.ei-art-community::before { background-image: url("assets/img/art-community.svg"); }
.ei-art-tree::before { background-image: url("assets/img/art-tree.svg"); }
.ei-art-globe::before { background-image: url("assets/img/art-globe.svg"); }
.ei-page-hero { min-height: 340px; }
.ei-page-hero > h1, .ei-page-hero > p { max-width: 62%; }
.ei-split { align-items: center; gap: 3rem; }
.ei-art-frame { flex: 0 0 42% !important; background: linear-gradient(160deg, #14416B, #0B2D4F); border-radius: 22px; padding: 1.25rem; box-shadow: 0 18px 40px rgba(11,45,79,.18); }
.ei-section--navy .ei-art-frame { background: linear-gradient(160deg, #1A4C7A, #123A5E); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.ei-art-frame .wp-block-image { margin: 0; }
.ei-art-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 781px) {
	.ei-split { gap: 1.5rem; }
	.ei-art-frame { flex: 1 1 100% !important; max-width: 420px; margin: 0 auto; }
	.ei-page-hero > h1, .ei-page-hero > p { max-width: 100%; }
	.ei-page-hero::before { opacity: .22; width: 70%; right: -8%; top: 0; bottom: 0; }
	.ei-page-hero { min-height: 0; }
}

/* Photography */
.ei-art-frame:has(img:not([src$=".svg"])) { padding: 0; background: none; box-shadow: none; }
.ei-art-frame img:not([src$=".svg"]) { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 18px 40px rgba(11,45,79,.18); }
.ei-photo-pair { gap: 1.5rem; margin-top: 0; }
.ei-photo-card { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(160deg, #14416B, #0B2D4F); padding: 0 !important; border: 0; }
.ei-photo-card .wp-block-image { margin: 0; }
.ei-photo-card img { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.ei-photo-card img[src$=".svg"] { object-fit: contain; padding: 2rem 2rem 6rem; }
.ei-photo-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(0deg, rgba(11,45,79,.88), transparent); pointer-events: none; }
.ei-photo-card__cap { position: absolute; z-index: 2; left: 1.75rem; right: 1.75rem; bottom: 1.5rem; margin: 0 !important; color: var(--cloud); font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; }
.ei-photo-card__eyebrow { position: absolute; z-index: 2; top: 1.4rem; left: 1.75rem; margin: 0 !important; color: var(--cloud); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
@media (max-width: 781px) { .ei-photo-card img { min-height: 380px; } }

/* Real photography details */
.ei-art-frame img[src*="photo-one-mission"], .ei-photo-card img[src*="photo-equipping"] { aspect-ratio: auto; }
.ei-art-frame img[src*="photo-trees-group"] { object-position: 38% 30%; }
.ei-photo-card img[src*="photo-bible-study"] { object-position: 45% 30%; }
.ei-photo-card--baked::after { display: none; }

/* Equal-height photo cards */
.ei-photo-pair > .wp-block-column { flex: 1 1 0; }
.ei-photo-pair .ei-photo-card { aspect-ratio: 396 / 510; }
.ei-photo-pair .ei-photo-card .wp-block-image, .ei-photo-pair .ei-photo-card img { height: 100%; min-height: 0; }
.ei-photo-pair .ei-photo-card img { width: 100%; object-fit: cover; aspect-ratio: auto; }

/* Hero: single statement */
.ei-hero .ei-lead { font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.45; max-width: 640px; font-weight: 500; }

/* Statistics beside the people */
.ei-stat-row { display: grid; grid-template-columns: minmax(140px, 190px) 1fr; gap: 1.25rem; align-items: center; padding: 1.15rem 0; border-bottom: 1px solid rgba(11,45,79,.16); }
.ei-stat-row:first-child { border-top: 1px solid rgba(11,45,79,.16); }
.ei-stat-row .ei-stat__num { margin: 0; font-size: clamp(2.4rem, 4.4vw, 3.3rem); }
.ei-stat-row .ei-stat__label { margin: 0; font-size: 1.18rem; line-height: 1.4; font-weight: 500; text-align: left; }
.ei-stat-row p { text-align: left; }
.ei-section--surface .ei-source { text-align: left; font-size: .9rem; margin-top: 1rem; }
.ei-need-close { margin-top: 3rem; }
.ei-need-close .ei-statement { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.ei-art-frame img[src*="photo-bible-study"] { object-position: 42% 32%; }
@media (max-width: 520px) { .ei-stat-row { grid-template-columns: 1fr; gap: .25rem; } }

/* Pillars */
.ei-pillars .ei-card { border-top: 4px solid var(--terracotta); transition: transform .18s, box-shadow .18s; }
.ei-pillars .ei-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,45,79,.12); }

/* Footer */
.site-footer { padding: 4rem 1.5rem 2rem; text-align: left; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 3rem; padding-bottom: 2.5rem; }
.site-footer__brand { text-align: left; margin: 0; }
.site-footer .ei-logo__name { text-align: left; }
.site-footer .ei-logo--stacked .ei-logo__tag { justify-content: flex-start; }
.site-footer__mission { margin: 1.25rem 0 0; max-width: 340px; color: rgba(250,250,248,.82); font-size: .98rem; line-height: 1.6; }
.site-footer__h { font: 700 .78rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--slate-light); margin: 0 0 1rem; }
.footer-nav ul { display: block; border: 0; padding: 0; margin: 0; }
.footer-nav li { margin: 0 0 .5rem; }
.footer-nav a { color: var(--cloud); font-weight: 500; }
.site-footer__contact p { margin: 0 0 .75rem; font-size: .98rem; color: rgba(250,250,248,.85); line-height: 1.6; }
.site-footer__contact a { color: var(--cloud); }
.site-footer__note { font-size: .85rem !important; color: var(--slate-light) !important; }
.site-footer__bottom { border-top: 1px solid rgba(250,250,248,.18); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer__bottom p { margin: 0; font-size: .85rem; color: rgba(250,250,248,.75); text-align: left; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Compliance and trust additions: consent, donation form, FAQ, editor notes, social icons */
.ei-form .ei-consent { display: flex; gap: .65rem; align-items: flex-start; flex: 1 1 100%; font-weight: 400; font-size: .85rem; line-height: 1.5; color: var(--ink); text-align: left; margin: .2rem 0 .4rem; }
.ei-form .ei-consent input { margin-top: .2rem; flex: none; width: 1.1rem; height: 1.1rem; accent-color: var(--terracotta-dark); }
.ei-form--inline .ei-consent { order: 3; }
.ei-form--inline .ei-btn { order: 4; }
.ei-editor-note { background: var(--cloud); border: 2px dashed var(--terracotta); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; font-size: .9rem; color: var(--ink); text-align: left; max-width: 760px; }
.ei-editor-note__label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.ei-zeffy { max-width: 760px; margin: 0 auto; text-align: left; }
.ei-zeffy__frame { position: relative; overflow: hidden; height: 900px; width: 100%; border-radius: var(--radius); background: var(--cloud); }
.ei-zeffy__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ei-zeffy { position: relative; }
.ei-give-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: stretch; max-width: 1120px; margin: 0 auto; }
.ei-give-split__photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--cloud); min-height: 420px; }
.ei-give-split__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ei-give-split .ei-zeffy { width: 100%; max-width: none; margin: 0; }
@media (max-width: 860px) {
	.ei-give-split { grid-template-columns: 1fr; gap: 1.25rem; }
	.ei-give-split__photo { min-height: 0; height: 260px; }
}
.ei-zeffy__hint { max-width: 760px; margin: 0 auto 1.1rem; text-align: center; font-size: 1.05rem; color: var(--ink); }
.ei-zeffy:not(.is-loaded) { min-height: 480px; }
.ei-zeffy__loading { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 3rem 1rem; color: var(--navy); font-weight: 500; z-index: 2; pointer-events: none; }
.ei-zeffy.is-loaded .ei-zeffy__loading { display: none; }
.ei-zeffy iframe { transition: opacity .3s ease; }
.ei-zeffy:not(.is-loaded) iframe { opacity: 0; }
.ei-zeffy > :not(.ei-zeffy__loading) { position: relative; z-index: 1; }
.ei-zeffy__spinner { width: 1.4rem; height: 1.4rem; border: 3px solid rgba(11,45,79,.18); border-top-color: var(--terracotta); border-radius: 50%; animation: ei-spin .8s linear infinite; }
@keyframes ei-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ei-zeffy__spinner { animation-duration: 2.4s; } }
.ei-faq details { border-bottom: 1px solid rgba(11,45,79,.15); }
.ei-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ei-faq summary::-webkit-details-marker { display: none; }
.ei-faq summary::after { content: "+"; color: var(--terracotta-dark); font-size: 1.5rem; line-height: 1; }
.ei-faq details[open] summary::after { content: "\2212"; }
.ei-faq details p { margin: 0 0 1.1rem; }
.ei-social { display: flex; gap: .6rem; margin: 1rem 0 0; }
.ei-social__link { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid currentColor; color: var(--navy); transition: background .2s, color .2s; }
.ei-social__link:hover { background: var(--terracotta-dark); border-color: var(--terracotta-dark); color: var(--cloud); }
.site-footer .ei-social__link { color: var(--cloud); border-color: rgba(250,250,248,.45); }
.site-footer .ei-social__link:hover { background: var(--cloud); color: var(--navy); border-color: var(--cloud); }
.ei-charity-line { font-size: .92rem; color: var(--slate-dark); margin: 1rem 0 0; }
.ei-details { margin-top: 2rem; }
.ei-details h3 { margin-bottom: .5rem; }
.ei-details p { margin: 0 0 .6rem; }
.ei-narrow ul { padding-left: 1.3rem; }
.ei-narrow li { margin: 0 0 .6rem; }
.ei-legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 2.2rem; }
.site-footer__links, .site-footer__legal { font-size: .88rem; }
.site-footer__links a, .site-footer__legal a { color: var(--cloud); }

/* Page banners: text always starts on the same left edge as the page content */
.ei-page-hero.is-layout-constrained > h1,
.ei-page-hero.is-layout-constrained > p { margin-left: 0 !important; margin-right: 0 !important; }

/* Gradient banner (About, Get Involved, Give, Contact and the info pages): no image, no illustration */
.ei-page-hero.ei-art-gradient {
	background:
		radial-gradient(ellipse 55% 130% at 100% 0%, rgba(199,89,47,.34), rgba(199,89,47,0) 62%),
		linear-gradient(120deg, #0B2D4F 0%, #123E66 58%, #1B5381 100%);
	min-height: 0;
}
.ei-page-hero.ei-art-gradient::before,
.ei-page-hero.ei-art-gradient::after { display: none; }
.ei-page-hero.ei-art-gradient > h1,
.ei-page-hero.ei-art-gradient > p { max-width: 760px; }

/* Top bar above the menu: language switcher on the left; Contact then Give on the right (Give is always last) */
.topbar { background: var(--navy); color: rgba(250,250,248,.9); }
.topbar__inner { max-width: 1280px; margin: 0 auto; padding: .6rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.lang-switch li + li::before { content: "|"; color: rgba(250,250,248,.35); margin: 0 .55rem 0 .4rem; }
.lang-switch a { color: rgba(250,250,248,.8); font-size: .98rem; font-weight: 500; text-decoration: none; padding: .2rem 0; }
.lang-switch a:hover { color: var(--cloud); text-decoration: underline; }
.lang-switch a.is-current { color: var(--cloud); font-weight: 700; }
.topbar__actions { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.topbar__link { color: var(--cloud); font-size: 1.02rem; font-weight: 500; text-decoration: none; }
.topbar__link:hover { color: var(--cloud); text-decoration: underline; }
.topbar__give { order: 99; background: var(--terracotta); color: var(--cloud); font-size: 1.02rem; font-weight: 700; text-decoration: none; padding: .45rem 1.5rem; border-radius: 999px; transition: background .2s; }
.topbar__give:hover { background: var(--cloud); color: var(--navy); }
@media (max-width: 480px) {
	.topbar__inner { padding: .5rem 1rem; }
	.topbar__actions { gap: .8rem; }
	.topbar__link, .topbar__give { white-space: nowrap; font-size: .92rem; }
	.topbar__give { padding: .4rem 1.1rem; }
	.lang-switch a { font-size: .88rem; }
}
@media (max-width: 360px) {
	.topbar__inner { gap: .5rem; padding-left: .75rem; padding-right: .75rem; }
	.topbar__actions { gap: .55rem; }
	.topbar__link, .topbar__give { font-size: .85rem; }
	.topbar__give { padding: .4rem .9rem; }
	.lang-switch a { font-size: .82rem; }
	.lang-switch li + li::before { margin: 0 .35rem 0 .25rem; }
}

/* Centered sections keep their small print centered (e.g. the Zeffy note on the Give page) */
.ei-section--surface.ei-center .ei-source { text-align: center; margin-left: auto; margin-right: auto; }

/* Footer info links: stacked, no underline */
.site-footer__links a { display: block; margin: 0 0 .35rem; text-decoration: none; }
.site-footer__links a:hover, .site-footer__links a:focus { text-decoration: none; }
.site-footer__legal a, .site-footer__legal a:hover, .site-footer__legal a:focus { text-decoration: none; }
.site-footer__bottom .site-footer__legal { font-size: .85rem; color: rgba(250,250,248,.75); }
.site-footer__right { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__right p { text-align: left; }
.site-footer__left { display: flex; flex-direction: column; gap: .5rem; }
.site-footer__left p { text-align: left; }

/* Annual Report page: compact spacing and regular text sizes */
.ei-annual-report .ei-page-hero { min-height: 0; padding-top: 2.75rem; padding-bottom: 2.75rem; }
.ei-annual-report .ei-page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: .35em; }
.ei-annual-report .ei-page-hero p { font-size: 1.05rem; }
.ei-annual-report .ei-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.ei-annual-report main h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin-bottom: .5em; }
.ei-annual-report main h3 { font-size: 1.1rem; }
.ei-annual-report .ei-eyebrow { font-size: .75rem; margin-bottom: .6rem; }
.ei-annual-report .ei-statement { font-size: 1.15rem; line-height: 1.45; }
.ei-annual-report .ei-lead { font-size: 1.05rem; line-height: 1.55; }
.ei-annual-report .ei-arc { margin: .8rem auto 1rem; width: 70px; }
.ei-annual-report .ei-card { padding: 1.25rem 1.25rem; }
.ei-annual-report .ei-card--icon::before { width: 40px; height: 40px; margin-bottom: .8rem; }
.ei-annual-report .ei-split { gap: 2rem; }
.ei-annual-report .ei-stat-row { padding: .8rem 0; gap: 1rem; }
.ei-annual-report .ei-stat-row .ei-stat__num { font-size: clamp(1.6rem, 3vw, 2rem); }
.ei-annual-report .ei-stat-row .ei-stat__label { font-size: 1rem; }
.ei-annual-report .ei-source { font-size: .85rem; margin-top: .75rem; }
.ei-annual-report main p, .ei-annual-report .ei-section p { margin-top: 0; }
.ei-annual-report .ei-art-frame { max-width: 320px; margin-left: auto; margin-right: auto; }

/* Annual Report: the last three sections (Our First Year, Accountability, closing call) read as one compact block */
.ei-annual-report .ei-section--surface.ei-narrow ~ .ei-section { padding-top: .75rem; padding-bottom: .75rem; }
.ei-annual-report .ei-section--surface.ei-narrow + .ei-section { padding-top: 1.75rem; }
.ei-annual-report .ei-section--surface.ei-narrow ~ .ei-section.ei-center { padding-top: 1.25rem; padding-bottom: 2.25rem; }
.ei-annual-report .ei-section--surface.ei-narrow ~ .ei-section h2 { margin-top: 0; margin-bottom: .35em; }
.ei-annual-report .ei-section--surface.ei-narrow ~ .ei-section p { margin-top: 0; margin-bottom: .55rem; }
.ei-annual-report .ei-section--surface.ei-narrow ~ .ei-section .wp-block-buttons { margin-top: .75rem; }
