/* ==========================================================================
   M Noor Foundation — visual enhancement layer
   Loaded after main.css. Purely presentational: depth, motion and polish.
   Removing this file returns the site to the flat baseline design.
   ========================================================================== */

:root {
	--glow-brand: 0 0 0 1px rgba(15, 122, 87, .08), 0 18px 48px -12px rgba(15, 122, 87, .28);
	--glow-accent: 0 18px 44px -14px rgba(240, 166, 60, .5);
	--ring: 0 0 0 1px rgba(14, 31, 26, .06);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --- Film grain, used to stop large flat fills looking synthetic --------- */
.hero::after,
.section--brand::after,
.cta-strip::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .38;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.section--brand, .cta-strip { position: relative; overflow: hidden; }

/* --- Hero ---------------------------------------------------------------- */
.hero__bg {
	background:
		radial-gradient(1100px 520px at 78% 4%, rgba(240, 166, 60, .34), transparent 62%),
		radial-gradient(800px 560px at 4% 96%, rgba(70, 220, 170, .20), transparent 62%),
		radial-gradient(600px 400px at 50% 50%, rgba(255, 255, 255, .07), transparent 70%),
		linear-gradient(145deg, #128A61 0%, #0B5B42 46%, #05301F 100%);
}

/* Slow drifting orbs give the hero depth without a photograph. */
.hero__bg::before {
	content: "";
	position: absolute;
	width: 620px; height: 620px;
	top: -230px; right: -170px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(240, 166, 60, .5), transparent 62%);
	filter: blur(38px);
	animation: drift 22s ease-in-out infinite alternate;
}
.hero .wrap::before {
	content: "";
	position: absolute;
	width: 460px; height: 460px;
	left: -220px; bottom: -240px;
	border-radius: 50%;
	background: radial-gradient(circle at 60% 40%, rgba(80, 235, 180, .34), transparent 64%);
	filter: blur(44px);
	pointer-events: none;
	animation: drift 27s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to   { transform: translate3d(-46px, 38px, 0) scale(1.12); }
}

.hero__title {
	font-size: clamp(2.4rem, 5.6vw, 4rem);
	letter-spacing: -.035em;
	line-height: 1.06;
	background: linear-gradient(180deg, #fff 42%, #BFEBD9 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: rgba(255, 255, 255, .8); }

.eyebrow--light {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .4rem .9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	backdrop-filter: blur(8px);
	color: #FFD79A;
}

.hero__points li { color: rgba(255, 255, 255, .9); }
.hero__points .icon {
	background: rgba(240, 166, 60, .16);
	border-radius: 50%;
	padding: 4px;
	width: 24px; height: 24px;
}

/* Frosted card reads as glass against the gradient rather than a white slab. */
.hero__card {
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .6);
	box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
	position: relative;
}
.hero__card::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(160deg, rgba(255, 255, 255, .9), transparent 45%, rgba(240, 166, 60, .5));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.give-list__amt {
	background: linear-gradient(135deg, var(--brand), var(--accent-600));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --- Buttons ------------------------------------------------------------- */
.btn { position: relative; overflow: hidden; }
.btn--accent {
	background: linear-gradient(135deg, #F6B851, var(--accent-600));
	box-shadow: var(--glow-accent);
}
.btn--accent:hover { box-shadow: 0 22px 52px -12px rgba(240, 166, 60, .62); }
.btn--primary {
	background: linear-gradient(135deg, #14916B, var(--brand-600));
	box-shadow: 0 12px 28px -10px rgba(15, 122, 87, .55);
}
/* A light sweep on hover, the cheapest way to make a button feel alive. */
.btn::after {
	content: "";
	position: absolute;
	top: 0; left: -120%;
	width: 60%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
	transform: skewX(-18deg);
	transition: left .6s var(--ease-out);
}
.btn:hover::after { left: 130%; }

/* --- Stats --------------------------------------------------------------- */
.stats { position: relative; }
.stats__grid {
	background: rgba(255, 255, 255, .16);
	box-shadow: 0 34px 74px -26px rgba(0, 0, 0, .55);
}
.stat { position: relative; transition: background-color .25s var(--ease-out); }
.stat:hover { background: #FCFEFD; }
.stat__value {
	background: linear-gradient(135deg, var(--brand-700), #17A578);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-variant-numeric: tabular-nums;
}

/* --- Section headings ---------------------------------------------------- */
.eyebrow:not(.eyebrow--light) {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .34rem .8rem;
	border-radius: 999px;
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
}
.section__title { letter-spacing: -.03em; }

/* --- Cards --------------------------------------------------------------- */
.card, .involve, .post-card, .value, .tier, .receipt {
	position: relative;
	transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.card:hover, .involve:hover, .post-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--glow-brand);
	border-color: transparent;
}
.card__icon, .value__icon, .impact__icon, .contact-card__icon, .program__icon {
	background: linear-gradient(140deg, var(--brand-050), #D8F2E7);
	box-shadow: inset 0 1px 0 #fff, 0 6px 14px -8px rgba(15, 122, 87, .5);
}
.card:hover .card__icon {
	background: linear-gradient(140deg, var(--brand), var(--brand-600));
	color: #fff;
	transform: scale(1.06) rotate(-4deg);
	transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out);
}

/* --- Impact bar & receipts ---------------------------------------------- */
.impact-bar { box-shadow: 0 18px 44px -26px rgba(14, 31, 26, .4), var(--ring); }
.impact__value, .receipt__amount, .zresult__value, .receipts__total {
	background: linear-gradient(135deg, var(--brand-700), #17A578);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-variant-numeric: tabular-nums;
}
.receipt:hover { transform: translateY(-5px); box-shadow: var(--glow-brand); }
.rail__nav { backdrop-filter: blur(10px); background: rgba(255, 255, 255, .92); }

/* --- Quote & brand sections --------------------------------------------- */
.quote-card {
	background:
		radial-gradient(520px 320px at 88% 6%, rgba(240, 166, 60, .26), transparent 62%),
		linear-gradient(150deg, #0C6549, #05301F);
	box-shadow: 0 30px 70px -28px rgba(5, 48, 31, .8);
}
.section--brand {
	background:
		radial-gradient(760px 420px at 12% 8%, rgba(240, 166, 60, .16), transparent 60%),
		linear-gradient(160deg, #0A5942, #05301F);
}
.way {
	backdrop-filter: blur(6px);
	transition: transform .35s var(--ease-out), background-color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.way:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, .12);
	border-color: rgba(240, 166, 60, .5);
}
.cta-strip {
	background:
		radial-gradient(700px 360px at 85% 10%, rgba(240, 166, 60, .3), transparent 62%),
		linear-gradient(135deg, #128A61, #05301F);
}

/* --- Allocation bars ----------------------------------------------------- */
.bar__track { height: 11px; background: #E6F2ED; box-shadow: inset 0 1px 3px rgba(14, 31, 26, .1); }
.bar__fill {
	background: linear-gradient(90deg, #17A578, var(--brand-600));
	box-shadow: 0 2px 10px -2px rgba(15, 122, 87, .6);
}

/* --- Media frame --------------------------------------------------------- */
.media-frame { box-shadow: 0 34px 74px -28px rgba(5, 48, 31, .6); }
.media-badge { box-shadow: 0 18px 40px -16px rgba(14, 31, 26, .4), var(--ring); }

/* --- Logo ---------------------------------------------------------------- */
/* Framed on a dark tile. The logo PNG has an opaque black background, and the
   tile turns that into a deliberate badge rather than a stray black square. */
.brand__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px; height: 50px;
	flex: none;
	overflow: hidden;
	border-radius: 13px;
	background: #000;
	box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(240, 166, 60, .38);
}
.brand__logo-img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); }

.brand__logo--footer {
	width: 56px; height: 56px;
	border-radius: 15px;
	box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(240, 166, 60, .5);
}

@media (max-width: 640px) {
	.brand__logo { width: 42px; height: 42px; border-radius: 11px; }
}

/* --- FAQ ----------------------------------------------------------------- */
.faq__layout {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.faq__intro { position: sticky; top: 110px; }
.faq__intro .btn { margin-top: 1.2rem; }

.faq__list { display: grid; gap: 12px; }

.faq__item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.faq__item[open] { border-color: var(--brand-100); box-shadow: var(--glow-brand); }
.faq__item:hover { border-color: var(--brand-100); }

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	font-weight: 700;
	font-size: 1rem;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.faq__chev {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px; height: 30px;
	flex: none;
	border-radius: 50%;
	background: var(--brand-050);
	color: var(--brand-600);
	transition: transform .3s var(--ease-out), background-color .25s var(--ease-out);
}
.faq__chev svg { width: 17px; height: 17px; }
.faq__item[open] .faq__chev { transform: rotate(180deg); background: var(--brand); color: #fff; }

.faq__a { padding: 0 22px 20px; }
.faq__a p { margin: 0; font-size: .96rem; color: var(--body); }

@media (max-width: 900px) {
	.faq__layout { grid-template-columns: 1fr; }
	.faq__intro { position: static; }
}
@media (max-width: 640px) {
	.faq__q { padding: 15px 16px; font-size: .95rem; }
	.faq__a { padding: 0 16px 17px; }
}

/* --- Trust: the page's showpiece ----------------------------------------- */
.trust {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #041B14;
	color: rgba(255, 255, 255, .74);
}
.trust__inner { position: relative; z-index: 2; }

.trust__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Aurora fields — the depth behind the glass. */
.trust__aurora {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .55;
}
.trust__aurora--a {
	width: 760px; height: 560px;
	top: -240px; left: -160px;
	background: radial-gradient(circle at 40% 40%, rgba(23, 165, 120, .85), transparent 62%);
	animation: auroraA 26s ease-in-out infinite alternate;
}
.trust__aurora--b {
	width: 660px; height: 520px;
	right: -180px; bottom: -220px;
	background: radial-gradient(circle at 55% 45%, rgba(240, 166, 60, .6), transparent 62%);
	animation: auroraB 31s ease-in-out infinite alternate;
}
@keyframes auroraA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(120px,60px,0) scale(1.18); } }
@keyframes auroraB { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-110px,-70px,0) scale(1); } }

/* Fine technical grid, faded out at the edges. */
.trust__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}

/* Drive the light treatment from the SECTION, not from --light modifier
   classes on each element. The HTML and the CSS are cached separately and can
   drift a version apart; when they did, the heading rendered dark-on-dark. */
.trust h2,
.trust h3,
.trust .section__title { color: #fff; }

.trust p,
.trust .section__lead { color: rgba(255, 255, 255, .68); }

.trust .eyebrow {
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	color: #FFD79A;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Glass cards */
.trust .pledge {
	background: rgba(255, 255, 255, .045);
	backdrop-filter: blur(16px) saturate(150%);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 20px;
	padding: 30px 26px 26px;
	overflow: hidden;
	transition: transform .4s var(--ease-out), background-color .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}

/* Gradient hairline that brightens on hover. */
.trust .pledge::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(150deg, rgba(23,165,120,.7), transparent 42%, rgba(240,166,60,.55));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: .5;
	transition: opacity .4s var(--ease-out);
	pointer-events: none;
}
.trust .pledge:hover {
	transform: translateY(-8px);
	background: rgba(255, 255, 255, .075);
	border-color: rgba(255, 255, 255, .16);
	box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 42px -14px rgba(23, 165, 120, .55);
}
.trust .pledge:hover::before { opacity: 1; }

.pledge__num {
	position: absolute;
	top: 16px; right: 20px;
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1;
	color: rgba(255, 255, 255, .09);
	font-variant-numeric: tabular-nums;
	transition: color .4s var(--ease-out);
}
.trust .pledge:hover .pledge__num { color: rgba(240, 166, 60, .45); }

.trust .pledge__icon {
	width: 52px; height: 52px;
	border-radius: 15px;
	background: linear-gradient(145deg, rgba(23,165,120,.3), rgba(240,166,60,.16));
	border: 1px solid rgba(255, 255, 255, .14);
	color: #7BE8C0;
	box-shadow: 0 0 26px -8px rgba(23, 165, 120, .8), inset 0 1px 0 rgba(255,255,255,.14);
	transition: transform .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.trust .pledge:hover .pledge__icon {
	transform: translateY(-2px) scale(1.06);
	color: #FFD79A;
	box-shadow: 0 0 34px -6px rgba(240, 166, 60, .75), inset 0 1px 0 rgba(255,255,255,.2);
}

.trust .pledge__title { color: #fff; font-size: 1.06rem; letter-spacing: -.01em; }
.trust .pledge__text { color: rgba(255, 255, 255, .62); font-size: .92rem; }

/* Credentials: reads as a verification panel rather than a table. */
.trust .credentials {
	margin-top: 28px;
	background: rgba(255, 255, 255, .04);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, .11);
	border-radius: 20px;
	padding: 28px 30px;
	position: relative;
	overflow: hidden;
}
.trust .credentials::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(23,165,120,.9), rgba(240,166,60,.9), transparent);
}
.trust .credentials__title { color: #fff; }
.trust .credentials__title .icon { color: #7BE8C0; }

.trust .credentials__list dt { color: rgba(255, 255, 255, .5); }
.trust .credentials__list dd {
	display: flex;
	align-items: center;
	gap: .45rem;
	color: #fff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9rem;
	letter-spacing: .01em;
}
.credentials__tick { color: #17A578; flex: none; }

@media (max-width: 640px) {
	.trust .pledge { padding: 24px 20px 20px; }
	.pledge__num { font-size: 1.4rem; top: 14px; right: 16px; }
	.trust__aurora--a { width: 420px; height: 340px; }
	.trust__aurora--b { display: none; }
	.trust .credentials { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.trust__aurora { animation: none !important; }
}

/* --- Scroll reveal ------------------------------------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Anything still hidden when JS is unavailable must not stay invisible. */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
	.hero__bg::before, .hero .wrap::before { animation: none !important; }
	.btn::after { display: none; }
}

/* --- Mobile trims -------------------------------------------------------- */
@media (max-width: 640px) {
	.hero__bg::before { width: 340px; height: 340px; top: -140px; right: -110px; }
	.hero .wrap::before { display: none; }
	.hero__title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
}
