/*
Theme Name: Maasilaa Charitable Trust
Description: Elegant emerald-and-gold theme for Maasilaa Charitable Trust, with admin-editable Causes, Team, Gallery and YouTube Videos.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: maasilaa
*/

:root {
	--emerald-950: #05241b;
	--emerald-900: #072f23;
	--emerald-800: #0b3d2e;
	--emerald-700: #0f5038;
	--emerald-600: #156647;
	--gold-300: #f1dca0;
	--gold-400: #e6c77a;
	--gold-500: #c9a24b;
	--gold-600: #a8832f;
	--ivory: #fbf7ee;
	--ivory-2: #f4ecda;
	--ink: #17201c;
	--muted: #5a6761;
	--line: #e6dbc1;
	--gold-grad: linear-gradient(135deg, #f6e3a6 0%, #d9b45c 35%, #b8892f 60%, #f1d68c 100%);
	--serif: "Cormorant Garamond", Georgia, serif;
	--display: "Cinzel", "Cormorant Garamond", serif;
	--sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 18px;
	--shadow: 0 18px 50px -20px rgba(7, 47, 35, .35);
	--shadow-gold: 0 14px 40px -14px rgba(169, 131, 47, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--ivory);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--emerald-800); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.ms-icon { width: 1.1em; height: 1.1em; flex: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold-500); color: var(--emerald-900); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.kicker {
	font-family: var(--display);
	font-size: .78rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold-600);
	margin: 0 0 .9em;
	font-weight: 600;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-inline: auto; }
.ms-divider { display: block; color: var(--gold-500); margin: 2px 0 22px; line-height: 0; }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .ms-divider svg { margin-inline: auto; }
.section-head.is-light h2 { color: #fff; }
.section-head.is-light .lead { color: rgba(255,255,255,.75); }
.section-head.is-light .kicker { color: var(--gold-400); }
.section-cta { text-align: center; margin: 48px 0 0; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	padding: 14px 28px;
	border-radius: 999px;
	font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: .02em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-gold { background: var(--gold-grad); background-size: 200% 200%; color: var(--emerald-900); box-shadow: var(--shadow-gold); }
.btn-gold:hover { color: var(--emerald-950); background-position: 100% 0; }
.btn-ghost { border-color: rgba(230, 199, 122, .6); color: var(--gold-300); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(230, 199, 122, .12); color: #fff; border-color: var(--gold-400); }
.btn-emerald { background: var(--emerald-800); color: var(--gold-300); }
.btn-emerald:hover { background: var(--emerald-700); color: #fff; box-shadow: var(--shadow); }
.btn-outline { border-color: var(--gold-500); color: var(--emerald-800); }
.btn-outline:hover { background: var(--emerald-800); border-color: var(--emerald-800); color: var(--gold-300); }
.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; color: var(--gold-600); font-size: .95rem; }
.link-more .ms-icon { transition: transform .25s; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--emerald-950); color: rgba(255,255,255,.8); font-size: .86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-400); }
.topbar-contact { display: flex; gap: 22px; }
.topbar-social, .footer-social { display: flex; gap: 6px; }
.social-link { display: inline-grid !important; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(230,199,122,.35); color: var(--gold-400) !important; }
.social-link:hover { background: var(--gold-500); color: var(--emerald-900) !important; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 247, 238, .92);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(201, 162, 75, .25);
	transition: box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(7,47,35,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--emerald-800); }
.brand img { width: 60px; height: 60px; filter: drop-shadow(0 4px 10px rgba(169,131,47,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .08em; background: linear-gradient(180deg, #b8892f, #8a6420); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-family: var(--display); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--emerald-700); margin-top: 6px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { color: var(--emerald-800); font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.site-nav .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold-500); transform: scaleX(0); transition: transform .3s; transform-origin: center; }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); }
.site-nav .menu .sub-menu { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; color: var(--emerald-800); cursor: pointer; }
.nav-toggle .ms-icon { width: 24px; height: 24px; margin: auto; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(ellipse 80% 70% at 75% 40%, #17694a 0%, var(--emerald-800) 45%, var(--emerald-950) 100%);
	color: #fff;
	padding: clamp(70px, 10vw, 130px) 0 clamp(90px, 11vw, 150px);
}
.hero-bg {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(circle at 15% 85%, rgba(230,199,122,.12), transparent 40%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23e6c77a' stroke-opacity='.07'%3E%3Cpath d='M40 4c8 10 8 26 0 36-8-10-8-26 0-36zM40 40c8 10 8 26 0 36-8-10-8-26 0-36zM4 40c10-8 26-8 36 0-10 8-26 8-36 0zM40 40c10-8 26-8 36 0-10 8-26 8-36 0z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px; background: var(--ivory); clip-path: ellipse(70% 100% at 50% 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; }
.hero h1 { color: #fff; font-weight: 500; }
.hero h1::first-line { color: var(--gold-300); }
.hero .kicker { color: var(--gold-400); }
.hero-text { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 560px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-emblem { text-align: center; }
.emblem-ring { position: relative; width: min(420px, 80vw); aspect-ratio: 1; margin: auto; display: grid; place-items: center; }
.emblem-ring::before, .emblem-ring::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(230,199,122,.35); }
.emblem-ring::after { inset: -40px; border-style: dashed; border-color: rgba(230,199,122,.18); animation: spin 60s linear infinite; }
.emblem-ring img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); animation: float 7s ease-in-out infinite; }
.emblem-tagline { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold-300); margin-top: 48px; }
.hero-scroll { position: absolute; left: 50%; bottom: 96px; width: 24px; height: 38px; border: 1.5px solid rgba(230,199,122,.5); border-radius: 14px; transform: translateX(-50%); z-index: 1; }
.hero-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; border-radius: 2px; background: var(--gold-400); transform: translateX(-50%); animation: scrolldot 2s infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrolldot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ---------- Causes ---------- */
.cause-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.cause-card { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--ink); transition: transform .35s, box-shadow .35s, border-color .35s; }
.cause-card:nth-child(4) { grid-column: 2 / span 2; }
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-400); color: var(--ink); }
.cause-card:hover .link-more .ms-icon { transform: translateX(4px); }
.cause-media { position: relative; aspect-ratio: 16 / 10; overflow: visible; }
.cause-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cause-media { overflow: hidden; }
.cause-card:hover .cause-media img { transform: scale(1.06); }
.cause-icon { position: absolute; left: 24px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-800); color: var(--gold-400); border: 2px solid var(--gold-400); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.cause-icon .ms-icon { width: 26px; height: 26px; }
.cause-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.cause-body h3 { margin-bottom: .1em; font-size: 1.65rem; }
.cause-sub { font-family: var(--serif); font-style: italic; color: var(--gold-600); font-size: 1.15rem; margin-bottom: .6em; }
.cause-body p:not(.cause-sub) { color: var(--muted); font-size: .97rem; }
.cause-body .link-more { margin-top: auto; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); position: relative; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.about-copy p { color: var(--muted); font-size: 1.07rem; }
.about-copy .btn { margin-top: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat { background: #fff; padding: 40px 24px; text-align: center; }
.stat:nth-child(1), .stat:nth-child(4) { background: var(--emerald-800); }
.stat:nth-child(1) .stat-label, .stat:nth-child(4) .stat-label { color: rgba(255,255,255,.75); }
.stat-num { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; letter-spacing: .04em; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; }
.team-card { text-align: center; }
.team-photo { position: relative; aspect-ratio: 5 / 6; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; background: linear-gradient(180deg, #fff, var(--ivory-2)); border: 1px solid var(--line); margin-bottom: 18px; transition: transform .35s, box-shadow .35s; }
.team-photo::after { content: ""; position: absolute; inset: 8px; border-radius: inherit; border: 1px solid rgba(201,162,75,.55); pointer-events: none; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card:hover .team-photo { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-role { font-family: var(--display); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 4px; font-weight: 600; }
.team-card h3 { font-size: 1.45rem; margin: 0; }
.team-bio { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery-section { background: var(--ivory-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery-tile { position: relative; overflow: hidden; border-radius: 14px; display: block; background: var(--emerald-800); }
.gallery-grid.is-mosaic .gallery-tile:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, opacity .4s; }
.gallery-tile:hover img { transform: scale(1.07); opacity: .82; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-family: var(--serif); font-size: 1.15rem; background: linear-gradient(transparent, rgba(5,36,27,.85)); transform: translateY(100%); transition: transform .4s; }
.gallery-tile:hover .gallery-cap, .gallery-tile:focus-visible .gallery-cap { transform: none; }
.album-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.album-filter a { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--emerald-800); background: #fff; font-size: .93rem; }
.album-filter a.is-active, .album-filter a:hover { background: var(--emerald-800); color: var(--gold-300); border-color: var(--emerald-800); }

/* ---------- Videos ---------- */
.videos-section { background: radial-gradient(ellipse at top, var(--emerald-700), var(--emerald-950) 70%); color: #fff; }
.videos-section .video-card h3 { color: #fff; }
.videos-section .video-card p { color: rgba(255,255,255,.7); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.video-card h3 { font-size: 1.4rem; margin-top: 18px; margin-bottom: 6px; }
.video-card p { color: var(--muted); font-size: .95rem; }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); outline-offset: 4px; }
.yt-lite::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(230,199,122,.35); pointer-events: none; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; opacity: .88; }
.yt-lite:hover img { transform: scale(1.05); opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--emerald-900); box-shadow: 0 0 0 10px rgba(230,199,122,.22); transition: transform .3s, box-shadow .3s; }
.yt-play .ms-icon { width: 28px; height: 28px; margin-left: 4px; }
.yt-lite:hover .yt-play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(230,199,122,.18); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--emerald-800); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; height: 100%; }
.post-card-placeholder img { width: 90px; height: 90px; object-fit: contain; }
.post-card-body { padding: 22px 24px 26px; }
.post-card time { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.post-card h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.post-card h3 a { color: var(--emerald-800); }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Donate ---------- */
.donate { position: relative; background: var(--emerald-900); color: #fff; padding: clamp(70px, 9vw, 110px) 0; overflow: hidden; }
.donate::before { content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(230,199,122,.18); box-shadow: 0 0 0 60px rgba(230,199,122,.03), 0 0 0 120px rgba(230,199,122,.02); }
.donate-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.donate h2 { color: #fff; }
.donate .kicker { color: var(--gold-400); }
.donate p { color: rgba(255,255,255,.78); font-size: 1.1rem; }
.donate-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.donate-card { background: rgba(255,255,255,.04); border: 1px solid rgba(230,199,122,.3); border-radius: var(--radius); padding: 10px 30px; backdrop-filter: blur(6px); }
.donate-row { padding: 20px 0; border-bottom: 1px solid rgba(230,199,122,.15); display: flex; flex-direction: column; gap: 4px; }
.donate-row:last-child { border-bottom: 0; }
.donate-label { font-family: var(--display); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-400); }
.donate-value { color: #fff; font-size: 1.05rem; }
a.donate-value:hover { color: var(--gold-300); }

/* ---------- Inner pages ---------- */
.page-hero { background: radial-gradient(ellipse at 70% 0%, var(--emerald-600), var(--emerald-900) 70%); color: #fff; text-align: center; padding: clamp(60px, 8vw, 100px) 0 clamp(70px, 9vw, 110px); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 50px; background: var(--ivory); clip-path: ellipse(70% 100% at 50% 100%); }
.page-hero h1 { color: #fff; font-weight: 500; }
.page-hero .kicker { color: var(--gold-400); }
.page-hero .ms-divider svg { margin-inline: auto; }
.page-hero .lead { color: rgba(255,255,255,.78); }
.entry { font-size: 1.07rem; }
.entry h2, .entry h3 { margin-top: 1.4em; }
.entry img { border-radius: 14px; }
.entry blockquote { margin: 1.5em 0; padding: 10px 0 10px 24px; border-left: 3px solid var(--gold-500); font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--emerald-800); }
.feature-image { margin: 0 0 36px; }
.feature-image img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.about-page { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: center; }
.about-page-logo img { filter: drop-shadow(0 25px 40px rgba(7,47,35,.3)); }
.cause-list { display: grid; gap: 40px; }
.cause-row { display: grid; grid-template-columns: 420px 1fr; gap: 44px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cause-row-media img { border-radius: 12px; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cause-row h2 { font-size: 2rem; }
.cause-row h2 a { color: var(--emerald-800); }
.cause-row p { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
a.contact-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow); color: var(--ink); }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-800); color: var(--gold-400); flex: none; }
.contact-icon .ms-icon { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.contact-card strong { font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 480px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }
.empty { text-align: center; color: var(--muted); }
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin: 0 3px; border-radius: 50%; border: 1px solid var(--line); color: var(--emerald-800); }
.pagination .current { background: var(--emerald-800); color: var(--gold-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-950); color: rgba(255,255,255,.72); position: relative; }
.footer-ornament { height: 3px; background: var(--gold-grad); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 50px; padding: 70px 0 50px; }
.footer-brand img { width: 110px; height: 110px; margin-bottom: 16px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-300); }
.site-footer h3 { font-family: var(--display); color: var(--gold-400); font-size: .85rem; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 22px; }
.site-footer .menu, .footer-menu, .footer-contact { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li, .footer-menu li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact .ms-icon { color: var(--gold-400); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(230,199,122,.15); font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,25,19,.94); display: grid; place-items: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 10px; margin: auto; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: var(--gold-300); font-family: var(--serif); font-size: 1.3rem; margin-top: 16px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.06); border: 1px solid rgba(230,199,122,.35); color: var(--gold-300); border-radius: 50%; width: 50px; height: 50px; cursor: pointer; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: var(--gold-500); color: var(--emerald-900); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.site-nav .menu { gap: 18px; }
	.hero-inner, .about-grid, .donate-inner, .contact-grid { grid-template-columns: 1fr; }
	.hero-inner { text-align: center; }
	.hero-text { margin-inline: auto; }
	.hero-actions { justify-content: center; }
	.hero-emblem { order: -1; }
	.emblem-ring { width: min(300px, 70vw); }
	.emblem-tagline { display: none; }
	.hero-scroll { display: none; }
	.cause-grid { grid-template-columns: repeat(2, 1fr); }
	.cause-card, .cause-card:nth-child(4) { grid-column: auto; }
	.cause-row { grid-template-columns: 1fr; }
	.about-page { grid-template-columns: 1fr; text-align: center; }
	.about-page-logo img { width: 220px; margin: auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	body { overflow-x: clip; }
	/* backdrop-filter would trap the fixed menu panel inside the header */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
	.nav-open { overflow: hidden; }
	.nav-open .wa-float { display: none; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(5,36,27,.5); z-index: 40; }
	.kicker { letter-spacing: .18em; }
	.nav-toggle { display: grid; }
	.site-nav {
		position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
		flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 28px;
		background: var(--emerald-900); padding: 100px 32px 32px;
		transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
		box-shadow: -20px 0 50px rgba(0,0,0,.3);
	}
	.site-nav.is-open { transform: none; }
	.site-nav .menu { flex-direction: column; gap: 4px; width: 100%; }
	.site-nav .menu a { color: #fff; font-family: var(--serif); font-size: 1.6rem; display: block; padding: 8px 0; }
	.site-nav .menu a::after { display: none; }
	.nav-open .nav-toggle { position: relative; z-index: 60; color: var(--gold-300); border-color: rgba(230,199,122,.4); }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.hide-sm { display: none !important; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.container, .container.narrow { width: calc(100% - 32px); }
	.header-inner { min-height: 72px; }
	.brand img { width: 48px; height: 48px; }
	.brand-name { font-size: 1.2rem; }
	.cause-grid { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat { padding: 28px 12px; }
	.team-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
	.team-card h3 { font-size: 1.2rem; }
	.gallery-grid.is-mosaic .gallery-tile:nth-child(6n + 1) { grid-column: span 2; grid-row: span 1; }
	.video-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.btn { padding: 13px 22px; }
	.hero-actions .btn, .donate-actions .btn { flex: 1 1 100%; justify-content: center; }
	.lightbox { padding: 70px 12px; }
	.lightbox-nav { top: auto !important; bottom: 16px; transform: none !important; }
	.donate-card { padding: 6px 20px; }
}
