/**
 * Get Involved page (slug `get-involved`). Loaded only where the marker class
 * `ab-giv-` appears in the content (inc/enqueue.php) — never site-wide.
 *
 * Values follow the Figma "Get Involved PARENT v3" frame. Full-bleed bands
 * (align:full groups) with a centered 1200 inner. Literal hexes are the design's
 * exact values where they sit between theme.json tokens (card border #d4d4d8,
 * body copy #52525b, peach band #fef3e6); brand colours use the theme presets.
 */

/* Photo slots ship with an empty src (the seed wires the real image, or the
   client adds one in the editor). Hide the empty <img> so browsers don't paint a
   broken-image glyph — the section's fallback background shows through until a
   photo is set, at which point the filled <img> displays normally. */
.ab-giv-hero__bg[src=""],
.ab-giv-ways__bg[src=""],
.ab-giv-give__media img[src=""] { display: none; }

/* Shared inner rail --------------------------------------------------------- */
.ab-giv-hero__inner,
.ab-giv-trust__inner,
.ab-giv-ways__inner,
.ab-giv-give__inner,
.ab-giv-zakat__inner,
.ab-giv-conf__inner {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
}

/* Shared eyebrow / heading atoms ------------------------------------------- */
.ab-giv-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem; font-weight: 500; line-height: 1.4;
	letter-spacing: 1.4px; text-transform: uppercase;
	color: var(--wp--preset--color--ab-blue);
}
.ab-giv-h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.875rem, 1.2rem + 2.1vw, 2.625rem);
	line-height: 1.15; font-weight: 600; text-transform: capitalize;
	color: var(--wp--preset--color--ab-navy);
}
.ab-giv-sub {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem; font-weight: 400; line-height: 1.65;
	color: #52525b;
}

/* ==========================================================================
   1. Hero + donation form
   ========================================================================== */
.ab-giv-hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--wp--preset--color--ab-navy);
	padding: clamp(3rem, 1.5rem + 7vw, 150px) clamp(20px, 5vw, 40px);
}
.ab-giv-hero__bg {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.ab-giv-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(5, 22, 42, 0.58) 0%, rgba(5, 22, 42, 0.42) 100%);
}
.ab-giv-hero__col {
	max-width: 483px;
	display: flex; flex-direction: column; gap: 25px;
}
.ab-giv-hero__text {
	display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
	text-align: center;
}
.ab-giv-hero__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; color: #fff;
}
.ab-giv-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem);
	line-height: 1.08; font-weight: 600; color: #fff;
}
.ab-giv-hero__desc {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.25rem; font-weight: 400; line-height: 1.5; color: #fff;
}

/* Donation form card */
.ab-giv-form {
	display: flex; flex-direction: column; gap: 15px;
	padding: 15px; border: 1px solid #d4d4d8; border-radius: 4px;
	background: #fff;
	font-family: var(--wp--preset--font-family--sans);
}
.ab-giv-form fieldset { margin: 0; padding: 0; border: 0; }

/* Frequency segmented control */
.ab-giv-seg {
	display: flex; gap: 4px; padding: 4px; background: #f5f2ed;
}
.ab-giv-seg__opt {
	flex: 1 1 0; display: flex; align-items: center; justify-content: center;
	padding: 10px; cursor: pointer;
	font-size: 0.9375rem; font-weight: 400; color: #2c2c33;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.ab-giv-seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ab-giv-seg__opt:has(input:checked) { background: var(--wp--preset--color--ab-orange); color: #fff; }
.ab-giv-seg__opt.is-active { background: var(--wp--preset--color--ab-orange); color: #fff; }
.ab-giv-seg__opt:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--ab-blue); outline-offset: 2px; }

/* Amount grid */
.ab-giv-form__label {
	margin: 0 0 15px;
	font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.2px;
	text-transform: uppercase; color: #52525b;
}
.ab-giv-amtgrid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ab-giv-amt {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 48px; padding: 8px 10px; gap: 2px; cursor: pointer;
	border: 1px solid #d4d4d8; border-radius: 4px; background: #faf8f4;
	font-size: 0.9375rem; font-weight: 400; color: #a1a1aa; text-align: center;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.ab-giv-amt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ab-giv-amt:has(input:checked),
.ab-giv-amt.is-active {
	background: var(--wp--preset--color--ab-orange);
	border-color: var(--wp--preset--color--ab-orange);
	color: #fff;
}
.ab-giv-amt:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--ab-blue); outline-offset: 2px; }
.ab-giv-amt--feature { grid-column: 3; grid-row: 1; }
.ab-giv-amt__big { font-size: 1rem; font-weight: 600; line-height: 1.1; }
.ab-giv-amt__note { font-size: 0.8125rem; font-weight: 600; line-height: 1.1; }
.ab-giv-amt--other {
	grid-column: span 2; flex-direction: row; gap: 4px; cursor: text;
	background: #faf8f4;
}
.ab-giv-amt--other.is-active { background: #fff; border-color: var(--wp--preset--color--ab-orange); color: #52525b; }
.ab-giv-amt__prefix { color: #a1a1aa; font-size: 0.9375rem; }
.ab-giv-amt--other.is-active .ab-giv-amt__prefix { color: #52525b; }
.ab-giv-amt__other {
	flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
	font: inherit; font-size: 0.9375rem; color: #52525b; text-align: center;
	-moz-appearance: textfield;
}
.ab-giv-amt__other::-webkit-outer-spin-button,
.ab-giv-amt__other::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ab-giv-amt__other::placeholder { color: #a1a1aa; opacity: 1; }
.ab-giv-amt__other:focus { outline: none; }

/* Zakat checkbox row */
.ab-giv-zakat-opt {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 10px; cursor: pointer;
	border: 1px solid var(--wp--preset--color--ab-green); border-radius: 4px;
	background: #edf5f3;
}
.ab-giv-zakat-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ab-giv-zakat-opt__box {
	flex: 0 0 auto; display: inline-flex; width: 20px; height: 20px;
	color: var(--wp--preset--color--ab-green);
}
.ab-giv-zakat-opt__box svg { width: 100%; height: 100%; }
.ab-giv-zakat-opt__box .ab-giv-check-off { display: block; }
.ab-giv-zakat-opt__box .ab-giv-check-on { display: none; }
.ab-giv-zakat-opt:has(input:checked) .ab-giv-check-off { display: none; }
.ab-giv-zakat-opt:has(input:checked) .ab-giv-check-on { display: block; }
.ab-giv-zakat-opt__text {
	font-size: 0.9375rem; font-weight: 400; color: var(--wp--preset--color--ab-green);
}
.ab-giv-zakat-opt:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--ab-green); outline-offset: 2px; }

/* Submit */
.ab-giv-form__submit {
	display: block; width: 100%; padding: 13px 10px;
	border: 0; border-radius: 4px; cursor: pointer;
	background: var(--wp--preset--color--ab-orange); color: #fff;
	font-family: inherit; font-size: 1rem; font-weight: 500; letter-spacing: 0.2px;
	text-transform: uppercase;
	transition: background-color 0.15s ease;
}
.ab-giv-form__submit:hover,
.ab-giv-form__submit:focus-visible { background: var(--wp--preset--color--ab-orange-600); }

/* ==========================================================================
   2. Why trust us — three icon cards
   ========================================================================== */
.ab-giv-trust { background: #fff; padding: clamp(3.5rem, 2rem + 6vw, 100px) clamp(20px, 5vw, 40px); }
.ab-giv-trust__head {
	display: flex; flex-direction: column; align-items: center; gap: 1rem;
	max-width: 820px; margin: 0 auto 2.5rem; text-align: center;
}
.ab-giv-trust__sub { line-height: 1.7; }
.ab-giv-trust__cards {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ab-giv-card {
	display: flex; flex-direction: column; align-items: center; gap: 30px;
	padding: 25px 20px; text-align: center;
}
.ab-giv-card__icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 90px; height: 90px; border: 1px solid var(--wp--preset--color--ab-orange);
	border-radius: 50%;
}
.ab-giv-card__icon svg { width: 50px; height: 50px; display: block; }
.ab-giv-card__body { display: flex; flex-direction: column; gap: 0.75rem; }
.ab-giv-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.375rem; font-weight: 500; line-height: 1.2; color: #52525b;
}
.ab-giv-card__text {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem; font-weight: 400; line-height: 1.55; color: #52525b;
}

/* ==========================================================================
   3. CTAs — two large image cards (Join / Sponsor)
   ========================================================================== */
.ab-giv-ways { background: #fef3e6; padding: clamp(3.5rem, 2rem + 6vw, 100px) clamp(20px, 5vw, 40px); }
.ab-giv-ways__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ab-giv-ways__card {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: flex-end;
	min-height: clamp(380px, 38vw, 600px); padding: 25px;
	border-radius: 8px; background: var(--wp--preset--color--ab-navy);
	text-decoration: none;
}
.ab-giv-ways__bg {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%; object-fit: cover;
}
.ab-giv-ways__card::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(5, 22, 42, 0) 45%, rgba(5, 22, 42, 0.35) 100%);
}
.ab-giv-ways__box {
	width: 100%; max-width: 500px;
	padding: 20px 25px; border-radius: 4px; background: #fff;
}
.ab-giv-ways__title {
	display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.5rem; font-weight: 500; line-height: 1.2;
	color: var(--wp--preset--color--ab-blue);
}
.ab-giv-ways__title svg { flex: 0 0 auto; width: 26px; height: 26px; }
.ab-giv-ways__card:hover .ab-giv-ways__title svg,
.ab-giv-ways__card:focus-visible .ab-giv-ways__title svg { transform: translateX(4px); }
.ab-giv-ways__title svg { transition: transform 0.15s ease; }
.ab-giv-ways__text {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem; font-weight: 400; line-height: 1.5; color: #52525b;
}
.ab-giv-ways__card:focus-visible { outline: 3px solid var(--wp--preset--color--ab-blue); outline-offset: 3px; }

/* ==========================================================================
   4. CTA Extended — four small cards (Fundraise / Partner / Zakat / Waqf)
   ========================================================================== */
.ab-giv-give {
	background: #fef3e6;
	padding: 0 clamp(20px, 5vw, 40px) clamp(3.5rem, 2rem + 6vw, 150px);
	border-bottom: 1px solid #e9e9e9;
}
.ab-giv-give__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.ab-giv-give__card {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid #e1e1e1; border-radius: 8px; background: #fff;
}
.ab-giv-give__media { display: block; aspect-ratio: 289 / 200; background: var(--wp--preset--color--ab-line); }
.ab-giv-give__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-giv-give__body {
	flex: 1; display: flex; flex-direction: column;
	gap: 15px; padding: 25px 15px;
}
.ab-giv-give__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.3125rem; font-weight: 500; line-height: 1.2; text-align: center;
	color: #2c2c33;
}
.ab-giv-give__text {
	margin: 0; flex: 1;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem; font-weight: 400; line-height: 1.5; text-align: center; color: #52525b;
}
.ab-giv-give__link {
	margin-top: auto; text-align: right;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase;
	color: var(--wp--preset--color--ab-blue); text-decoration: none;
}
.ab-giv-give__link:hover,
.ab-giv-give__link:focus-visible { text-decoration: underline; }

/* ==========================================================================
   5. Zakat band — green
   ========================================================================== */
.ab-giv-zakat {
	background: var(--wp--preset--color--ab-green);
	padding: clamp(3rem, 2rem + 4vw, 90px) clamp(20px, 5vw, 40px);
}
.ab-giv-zakat__inner {
	display: flex; flex-direction: column; align-items: center; gap: 1.75rem; text-align: center;
}
.ab-giv-zakat__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; color: #fff;
}
.ab-giv-zakat__h2 {
	margin: 0; max-width: 22ch;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.875rem, 1.3rem + 2vw, 2.5rem);
	line-height: 1.2; font-weight: 400; text-transform: capitalize; color: #fff;
}
.ab-giv-zakat__text {
	margin: 0; max-width: 70ch;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.25rem; font-weight: 400; line-height: 1.5; color: #fff;
}
.ab-giv-zakat__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 0.5rem; }
.ab-giv-zakat__btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 30px; border-radius: 4px; border: 1px solid transparent;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem; font-weight: 500; letter-spacing: 0.2px; text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.ab-giv-zakat__btn--primary { background: #fff; color: var(--wp--preset--color--ab-green); }
.ab-giv-zakat__btn--primary:hover,
.ab-giv-zakat__btn--primary:focus-visible { background: #eef6f3; }
.ab-giv-zakat__btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.ab-giv-zakat__btn--ghost:hover,
.ab-giv-zakat__btn--ghost:focus-visible { background: rgba(255, 255, 255, 0.12); }

/* ==========================================================================
   6. Your trust — three confidence badges
   ========================================================================== */
.ab-giv-conf { background: #fef3e6; padding: clamp(3rem, 2rem + 4vw, 90px) clamp(20px, 5vw, 40px); }
.ab-giv-conf__inner {
	display: flex; flex-direction: column; align-items: center; gap: 1.75rem; text-align: center;
}
.ab-giv-conf__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; color: var(--wp--preset--color--ab-blue);
}
.ab-giv-conf__h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.875rem, 1.3rem + 2vw, 2.5rem);
	line-height: 1.2; font-weight: 400; text-transform: capitalize; color: var(--wp--preset--color--ab-navy);
}
.ab-giv-conf__text {
	margin: 0; max-width: 78ch;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.25rem; font-weight: 400; line-height: 1.5; color: #52525b;
}
.ab-giv-conf__badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 0.5rem; }
.ab-giv-conf__badge {
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-width: 135px; min-height: 90px; padding: 20px 28px;
	border: 1px solid #d4d4d8; border-radius: 8px; background: transparent;
	box-shadow: 0 10px 30px rgba(247, 147, 31, 0.12);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem; font-weight: 500; line-height: 1.3; color: #52525b;
}
.ab-giv-conf__badge--zakat { border-color: var(--wp--preset--color--ab-green); color: var(--wp--preset--color--ab-green); }

/* Screen-reader-only text (form legends, link context) */
.ab-giv-hero .screen-reader-text,
.ab-giv-give .screen-reader-text,
.ab-giv-ways .screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.ab-giv-trust__cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
	.ab-giv-give__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
	.ab-giv-ways__grid { grid-template-columns: 1fr; }
	.ab-giv-hero__col { max-width: 483px; margin-inline: auto; }
}
@media (max-width: 560px) {
	.ab-giv-give__grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
	.ab-giv-hero__desc { font-size: 1.125rem; }
	.ab-giv-zakat__text, .ab-giv-conf__text { font-size: 1.125rem; }
}
