/**
 * Fundraise for Us page (slug `fundraise-for-us`). Loaded only where the marker
 * class `ab-fr-` appears in the content (inc/enqueue.php) — never site-wide.
 * Distinct from the existing `fundraise` page.
 *
 * Values follow the Figma "Fundraise for Us CHILD" frame. Brand colours use the
 * theme.json presets; literal hexes are the design's exact values where they sit
 * between tokens. No JS — progress bars are pure CSS widths set inline per card.
 */

/* Shared rail + atoms ------------------------------------------------------ */
.ab-fr-bridge__inner,
.ab-fr-why__inner,
.ab-fr-campaigns__inner,
.ab-fr-spotlight__inner,
.ab-fr-sadaqah__inner,
.ab-fr-help__inner,
.ab-fr-trust__inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 5vw, 3.75rem);
}

.ab-fr-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}
.ab-fr-eyebrow--blue { color: var(--wp--preset--color--ab-blue); }
.ab-fr-eyebrow--white { color: #fff; }

.ab-fr-h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.875rem, 1.3rem + 2vw, 2.5rem);
	line-height: 1.15;
	font-weight: 600;
	text-transform: capitalize;
	color: var(--wp--preset--color--ab-navy);
}
.ab-fr-h2--white { color: #fff; }
.ab-fr-h2--center { text-align: center; }
.ab-fr-h2--serif-light { font-weight: 400; }

.ab-fr-link {
	display: inline-block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	color: #0a5a95;
}
.ab-fr-link:hover,
.ab-fr-link:focus-visible { text-decoration: underline; }
.ab-fr-link--center { display: block; text-align: center; }

/* Buttons ------------------------------------------------------------------ */
.ab-fr-btn {
	display: inline-block;
	padding: 0.75rem 1.875rem;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.ab-fr-btn--sm { padding: 0.6875rem 1.5rem; font-size: 0.9375rem; }
.ab-fr-btn--orange { background: var(--wp--preset--color--ab-orange); color: #fff; }
.ab-fr-btn--orange:hover,
.ab-fr-btn--orange:focus-visible { background: var(--wp--preset--color--ab-orange-600); }
.ab-fr-btn--green { background: var(--wp--preset--color--ab-green); color: #fff; }
.ab-fr-btn--green:hover,
.ab-fr-btn--green:focus-visible { background: #0c5c4f; }
.ab-fr-btn--ghost { border: 1px solid #fff; color: #fff; }
.ab-fr-btn--ghost:hover,
.ab-fr-btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.14); }
.ab-fr-btn--ghost-blue { border: 1px solid var(--wp--preset--color--ab-blue); color: var(--wp--preset--color--ab-blue); }
.ab-fr-btn--ghost-blue:hover,
.ab-fr-btn--ghost-blue:focus-visible { background: rgba(13, 114, 186, 0.08); }
.ab-fr-btn--white-green { background: #fff; color: var(--wp--preset--color--ab-green); }
.ab-fr-btn--white-green:hover,
.ab-fr-btn--white-green:focus-visible { background: #f3faf8; }

/* 1. Hero ------------------------------------------------------------------ */
.ab-fr-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}
.ab-fr-hero > * { margin-block: 0; }
.ab-fr-hero__panel {
	background: #fef3e6;
	padding: clamp(2.5rem, 4vw, 6.25rem) clamp(1.25rem, 5vw, 6.25rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ab-fr-hero__inner {
	width: 100%;
	max-width: 600px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	text-align: center;
}
.ab-fr-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
	line-height: 1.08;
	font-weight: 700;
	text-transform: capitalize;
	color: var(--wp--preset--color--ab-navy);
}
.ab-fr-hero__desc {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.25rem;
	line-height: 1.5;
	color: #52525b;
}
.ab-fr-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin-top: 0.75rem;
}
.ab-fr-hero__link {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	text-decoration: none;
	color: #52525b;
	border-bottom: 1px solid var(--wp--preset--color--ab-orange);
	padding-bottom: 2px;
}
.ab-fr-hero__link:hover,
.ab-fr-hero__link:focus-visible { color: var(--wp--preset--color--ab-navy); }
.ab-fr-hero__media {
	position: relative;
	background: var(--wp--preset--color--ab-navy);
	min-height: 340px;
}
.ab-fr-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ab-fr-hero__media img[src=""] { display: none; }

/* 2. Bridge band ----------------------------------------------------------- */
.ab-fr-bridge {
	background: linear-gradient(120deg, #0d72ba 0%, #0a5a95 100%);
	padding-block: clamp(3rem, 6vw, 6.25rem);
}
.ab-fr-bridge__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.875rem;
}
.ab-fr-bridge__h2 {
	margin: 0;
	max-width: 1000px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
	line-height: 1.25;
	font-weight: 600;
	text-transform: capitalize;
	color: #fff;
}

/* 3. Why it matters -------------------------------------------------------- */
.ab-fr-why { background: #fff; padding-block: clamp(3rem, 6vw, 6.25rem); }
.ab-fr-why__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}
.ab-fr-why__body { display: flex; flex-direction: column; gap: 1.875rem; }
.ab-fr-why__head { display: flex; flex-direction: column; gap: 1rem; }
.ab-fr-why__text { display: flex; flex-direction: column; gap: 1rem; }
.ab-fr-why__text p {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem;
	line-height: 1.6;
	color: #555;
}
.ab-fr-why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ab-fr-why__stat { padding: 1.875rem 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; }
.ab-fr-why__stat--blue { border: 1px solid var(--wp--preset--color--ab-blue); }
.ab-fr-why__stat--orange { border: 1px solid var(--wp--preset--color--ab-orange); }
.ab-fr-why__statlabel {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}
.ab-fr-why__statlabel--blue { color: var(--wp--preset--color--ab-blue); }
.ab-fr-why__statlabel--orange { color: var(--wp--preset--color--ab-orange); }
.ab-fr-why__statnum {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1;
	color: #52525b;
}
.ab-fr-why__statdesc {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	line-height: 1.4;
	color: #a1a1aa;
}
.ab-fr-why__media { border-radius: 8px; overflow: hidden; background: var(--wp--preset--color--ab-navy); aspect-ratio: 56 / 58; }
.ab-fr-why__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-fr-why__media img[src=""] { display: none; }

/* 4. Live campaigns -------------------------------------------------------- */
.ab-fr-campaigns { background: #f7f9fb; border-top: 1px solid #e9e9e9; border-bottom: 1px solid #e9e9e9; padding-block: clamp(3rem, 6vw, 6.25rem); }
.ab-fr-campaigns__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; margin-bottom: 3.125rem; }
.ab-fr-eyebrow--plain { letter-spacing: 1.4px; text-transform: none; font-weight: 500; }
.ab-fr-campaigns__sub {
	margin: 0;
	max-width: 720px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem;
	line-height: 1.5;
	color: #52525b;
}
.ab-fr-campaigns__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}
.ab-fr-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 0.5px solid #e1e1e1;
	border-radius: 8px;
	overflow: hidden;
}
.ab-fr-card__media { aspect-ratio: 386 / 200; background: var(--wp--preset--color--ab-navy); }
.ab-fr-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-fr-card__media img[src=""] { display: none; }
.ab-fr-card__body { display: flex; flex-direction: column; gap: 1.5625rem; padding: 1.5625rem 1.25rem; flex: 1 1 auto; }
.ab-fr-card__text { display: flex; flex-direction: column; gap: 0.625rem; flex: 1 1 auto; }
.ab-fr-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.25;
	color: #545454;
}
.ab-fr-card__desc {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	line-height: 1.55;
	color: #52525b;
}
.ab-fr-card__progress { display: flex; flex-direction: column; gap: 0.5625rem; }
.ab-fr-card__track { height: 10px; border-radius: 10px; background: #f5f2ed; overflow: hidden; }
.ab-fr-card__bar { display: block; height: 100%; border-radius: 10px; background: var(--wp--preset--color--ab-orange); }
.ab-fr-card--green .ab-fr-card__bar { background: var(--wp--preset--color--ab-green); }
.ab-fr-card__figures { display: flex; justify-content: space-between; align-items: baseline; }
.ab-fr-card__raised {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	color: #2c2c33;
}
.ab-fr-card__goal {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	color: #a1a1aa;
}
.ab-fr-card__actions { display: flex; align-items: center; gap: 0.5rem; }
.ab-fr-card__link {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--wp--preset--color--ab-blue);
	padding: 0.5rem 0.625rem;
}
.ab-fr-card__link:hover,
.ab-fr-card__link:focus-visible { text-decoration: underline; }

/* 5. Fundraiser spotlight -------------------------------------------------- */
.ab-fr-spotlight { background: #f5f2ed; border-bottom: 1px solid #e9e9e9; padding-block: clamp(3rem, 6vw, 6.25rem); }
.ab-fr-spotlight__grid {
	display: grid;
	grid-template-columns: 56fr 60fr;
	gap: 2.5rem;
	align-items: center;
}
.ab-fr-spotlight__media { border-radius: 8px; overflow: hidden; background: var(--wp--preset--color--ab-navy); aspect-ratio: 56 / 45; }
.ab-fr-spotlight__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-fr-spotlight__media img[src=""] { display: none; }
.ab-fr-spotlight__body { display: flex; flex-direction: column; gap: 1.875rem; }
.ab-fr-spotlight__head { display: flex; flex-direction: column; gap: 1rem; }
.ab-fr-spotlight__text {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem;
	line-height: 1.6;
	color: #555;
}
.ab-fr-spotlight__progress { display: flex; flex-direction: column; gap: 0.625rem; }
.ab-fr-spotlight__figures { display: flex; justify-content: space-between; align-items: baseline; }
.ab-fr-spotlight__raised,
.ab-fr-spotlight__pct {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem;
	font-weight: 500;
	color: var(--wp--preset--color--ab-blue);
}
.ab-fr-spotlight__track { height: 10px; border-radius: 10px; background: #fff; overflow: hidden; }
.ab-fr-spotlight__bar { display: block; height: 100%; border-radius: 10px; background: var(--wp--preset--color--ab-blue); }
.ab-fr-spotlight__body .ab-fr-btn { align-self: flex-start; }

/* 6. Sadaqah band ---------------------------------------------------------- */
.ab-fr-sadaqah { background: var(--wp--preset--color--ab-green); padding-block: clamp(3rem, 6vw, 6.25rem); }
.ab-fr-sadaqah__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5625rem; }
.ab-fr-sadaqah__text {
	margin: 0;
	max-width: 800px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem;
	line-height: 1.6;
	color: #fff;
}
.ab-fr-sadaqah__inner .ab-fr-btn { margin-top: 0.625rem; }

/* 7. We've got you --------------------------------------------------------- */
.ab-fr-help { background: #fff; border-bottom: 1px solid #e9e9e9; padding-block: clamp(3rem, 6vw, 6.25rem); }
.ab-fr-help__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.ab-fr-help__text {
	margin: 0;
	max-width: 800px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.25rem;
	line-height: 1.5;
	color: #555;
}
.ab-fr-help__email {
	margin-top: 0.75rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.375rem;
	text-decoration: none;
	color: var(--wp--preset--color--ab-blue);
}
.ab-fr-help__email:hover,
.ab-fr-help__email:focus-visible { text-decoration: underline; }

/* 8. Trust & accountability ------------------------------------------------ */
.ab-fr-trust { background: #e6f1f9; border-bottom: 1px solid #e9e9e9; padding-block: clamp(3rem, 6vw, 6.25rem); }
.ab-fr-trust__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.875rem; }
.ab-fr-trust__head { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.ab-fr-trust__text {
	margin: 0;
	max-width: 650px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem;
	line-height: 1.5;
	color: #52525b;
}
.ab-fr-trust__badges {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}
.ab-fr-trust__badge {
	padding: 0.75rem 1.25rem;
	background: #fff;
	border: 0.6px solid #d4d4d8;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem;
	color: #52525b;
}
.ab-fr-trust__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
	.ab-fr-hero { grid-template-columns: 1fr; }
	.ab-fr-hero__media { order: -1; min-height: 260px; }
	.ab-fr-why__grid,
	.ab-fr-spotlight__grid { grid-template-columns: 1fr; }
	.ab-fr-spotlight__media { order: -1; }
	.ab-fr-campaigns__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
	.ab-fr-campaigns__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
	.ab-fr-why__stats { grid-template-columns: 1fr; }
	.ab-fr-trust__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
	.ab-fr-card__actions { flex-wrap: wrap; }
}
