/**
 * Mobile Eye Treatment Camps — program child page.
 * Loaded only where the marker class `ab-mec-` appears in the content
 * (inc/enqueue.php). Matches the Figma "Mobile Eye Treatment Camps CHILD" frame
 * (file soVTH2W6FCyQHZVSDzaLLS, node 1060:42662). All colour/spacing uses
 * theme.json tokens; the few Figma-specific values (card borders, the 1989→today
 * table, the split hero) live here.
 */

/* Shared -------------------------------------------------------------------- */
.ab-mec-inner { max-width: var(--wp--style--global--wide-size, 1200px); margin-inline: auto; }
.ab-mec-eyebrow {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ab-blue);
}
.ab-mec-h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2rem, 1.4rem + 2vw, 2.625rem); /* ~42px desktop */
	line-height: 1.15;
	font-weight: 600;
	color: var(--wp--preset--color--ab-navy);
}
.ab-mec-lede { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--wp--preset--color--ab-ink); }

.ab-mec-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 30px; border-radius: 4px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1rem; font-weight: 500; letter-spacing: 0.0125em;
	text-decoration: none; cursor: pointer; border: 0.6px solid transparent;
	transition: background-color .15s ease, color .15s ease;
}
.ab-mec-btn--primary { background: var(--wp--preset--color--ab-orange); color: #fff; }
.ab-mec-btn--primary:hover { background: var(--wp--preset--color--ab-orange-600); color: #fff; }
.ab-mec-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.ab-mec-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.ab-mec-link {
	display: inline-flex; align-items: center; gap: 4px;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500; font-size: 1rem; text-transform: capitalize;
	color: var(--wp--preset--color--ab-blue); text-decoration: none;
}
.ab-mec-link:hover { text-decoration: underline; }
.ab-mec-link svg, .ab-mec-btn svg { width: 1.1em; height: 1.1em; }

/* 1. Hero ------------------------------------------------------------------- */
.ab-mec-hero { display: grid; grid-template-columns: 1fr 1fr; }
.ab-mec-hero__left {
	background: var(--wp--preset--color--ab-peach);
	padding: 100px 40px; display: flex; justify-content: center;
}
.ab-mec-hero__inner { width: 100%; max-width: 600px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.ab-mec-hero__text { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.ab-mec-hero__title {
	margin: 0; font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.5rem, 1.4rem + 3.2vw, 4rem); line-height: 1.23; font-weight: 700;
	color: #2C2C33;
}
/* Hero eyebrow + lede are Neutral-900 (#2C2C33) and the lede is 20px (Figma). */
.ab-mec-hero .ab-mec-eyebrow { margin: 0; line-height: 1.43; color: #2C2C33; letter-spacing: 1.4px; }
.ab-mec-hero .ab-mec-lede { font-size: 1.25rem; line-height: 1.45; color: #2C2C33; }
.ab-mec-hero__media { background: #dfe4ea center/cover no-repeat; min-height: 640px; }

/* Hero donation form card */
.ab-mec-form {
	box-sizing: border-box; width: 100%; max-width: 472px; margin-inline: auto; background: #fff; border: 0.6px solid #D4D4D8;
	border-radius: 4px; padding: 19.4px 14.4px; /* Figma's 20/15 with the 0.6px border inside. */
}
.ab-mec-form__pad { display: flex; flex-direction: column; gap: 17px; padding: 10px; }
.ab-mec-form__title { margin: 0; padding: 10px; font-size: 0.9375rem; line-height: 22px; font-weight: 500; text-transform: uppercase; text-align: center; color: #52525B; }
.ab-mec-form__field {
	display: flex; align-items: center; justify-content: space-between;
	padding: 9.4px; border: 0.6px solid #A1A1AA; border-radius: 4px; /* 63px tall: border inside the 10px. */
}
.ab-mec-form__amount { display: flex; align-items: baseline; gap: 4px; padding-left: 20px; }
.ab-mec-form__cur-sign { font-size: 1rem; color: #52525B; }
.ab-mec-form__amount input {
	width: 8ch; height: 43px; border: 0; padding: 0; font: inherit; font-size: 1.875rem; line-height: 43px; color: #52525B;
	font-variant-numeric: tabular-nums; background: transparent;
}
.ab-mec-form__amount input:focus { outline: none; color: var(--wp--preset--color--ab-ink); }
.ab-mec-form__amount:focus-within { outline: 2px solid var(--wp--preset--color--ab-blue); outline-offset: 4px; border-radius: 2px; }
.ab-mec-form__cur { padding-right: 20px; font-size: 1.125rem; line-height: 26px; font-weight: 500; text-transform: uppercase; color: #52525B; }
.ab-mec-form__note { display: flex; align-items: center; gap: 7px; padding: 10px 0; }
.ab-mec-form__note svg { flex: none; width: 27px; height: 27px; color: var(--wp--preset--color--ab-orange); fill: var(--wp--preset--color--ab-orange); stroke: none; }
.ab-mec-form__note p { margin: 0; font-size: 1rem; color: #52525B; }
.ab-mec-form .ab-mec-btn { width: 100%; border: 0; text-transform: capitalize; } /* 47px tall, as designed. */

/* 2. Impact ----------------------------------------------------------------- */
.ab-mec-impact { padding: 70px 40px; border-bottom: 1px solid #E9E9E9; }
.ab-mec-impact__inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.ab-mec-impact__head { text-align: center; }
.ab-mec-impact__cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; width: 100%; }
.ab-mec-stat {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 50px 10px; text-align: center;
	border: 0.6px solid #D4D4D8;
}
.ab-mec-stat__num {
	font-family: var(--wp--preset--font-family--serif); font-size: clamp(2rem, 1rem + 2vw, 2.875rem);
	line-height: 1; font-weight: 400; color: #52525B;
	font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Figma: the M+/K+ suffix is orange, the digits stay #52525B. */
.ab-mec-stat__suf { color: #F59423; font-weight: 600; }
/* Figma: 17px medium, title case. */
.ab-mec-stat__label { font-size: 1.0625rem; font-weight: 500; text-transform: capitalize; color: #52525B; }

/* 3. The Basics ------------------------------------------------------------- */
.ab-mec-basics { padding: 100px 40px; background: rgba(247, 249, 251, 0.75); border-bottom: 1px solid #E9E9E9; }
.ab-mec-basics__inner { display: grid; grid-template-columns: 671fr 469fr; gap: 40px; align-items: center; }
.ab-mec-basics__text { display: flex; flex-direction: column; gap: 16px; }
.ab-mec-bullets { display: flex; flex-direction: column; gap: 15px; padding: 25px 10px 0; margin: 0; list-style: none; }
.ab-mec-bullets li { display: flex; align-items: center; gap: 10px; }
/* Figma: a tick in a 28px light-blue circle for every point. */
.ab-mec-bullets__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: #E6F1F9; color: var(--wp--preset--color--ab-blue); }
.ab-mec-bullets__ic svg { width: 21px; height: 21px; }
.ab-mec-bullets li > span:last-child { font-size: 1rem; line-height: 1.5; color: #444444; }
.ab-mec-basics__media { align-self: stretch; min-height: 420px; border-radius: 8px; background: #dfe4ea center/cover no-repeat; }

/* 4. Origin Story ----------------------------------------------------------- */
.ab-mec-story { padding: 100px 40px; }
.ab-mec-story__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ab-mec-story__row { align-items: center; }
/* The origin-story poster is shown whole (not cropped to the text column's
   height): the image sits in flow at its own aspect ratio. */
.ab-mec-story__media { border-radius: 20px; }
.ab-mec-story__media .ab-cover-img { position: static; display: block; width: auto; max-width: 100%; height: auto; max-height: 800px; margin: 0 auto; object-fit: contain; }
.ab-mec-story__col { display: flex; flex-direction: column; gap: 30px; }
.ab-mec-story__text { display: flex; flex-direction: column; gap: 16px; }
/* Figma: the lead is a 42px Fraunces semibold heading; body is 18px #52525B. */
.ab-mec-story__lead { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: clamp(2rem, 1.4rem + 2vw, 2.625rem); line-height: 1.24; font-weight: 600; color: #053A66; }
.ab-mec-story__p { margin: 0; font-size: 1.125rem; line-height: 1.6; color: #52525B; }
.ab-mec-table { background: rgba(245, 242, 237, 0.8); border-radius: 8px; padding: 50px 40px; }
.ab-mec-table__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
/* Figma: then-column 16px #52525B; now-column 16px medium blue, uppercase figures. */
.ab-mec-table__cell { font-size: 1rem; color: #52525B; }
.ab-mec-table__cell--now { text-align: right; font-weight: 500; text-transform: uppercase; color: #0D72BA; }
.ab-mec-table__cell--words { text-transform: capitalize; }
.ab-mec-table__row--head .ab-mec-table__cell { font-weight: 400; color: #52525B; }
.ab-mec-table__arrow { display: flex; justify-content: center; align-items: center; color: var(--wp--preset--color--ab-orange); }
.ab-mec-table__arrow svg { width: 20px; height: 20px; }
.ab-mec-table__div { height: 0; border-top: 0.6px solid #A1A1AA; margin: 20px 0; }
.ab-mec-story__caption { margin: 0; font-size: 1.125rem; font-style: italic; text-align: center; color: #52525B; }
.ab-mec-story__link { display: flex; justify-content: flex-end; }

/* 5. Typical camp & 7. How we work — process --------------------------------- */
/* Figma: both process bands sit on #F5F2ED with a hairline under them. */
.ab-mec-process { padding: 100px 40px; background: #F5F2ED; border-bottom: 1px solid #E9E9E9; }
.ab-mec-process__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.ab-mec-process__head { display: flex; flex-direction: column; gap: 16px; text-align: center; max-width: 671px; }
.ab-mec-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; width: 100%; }
.ab-mec-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 25px 15px;
	border: 0.5px solid #E1E1E1; border-radius: 8px; background: #fff;
}
/* Figma: 64px Fraunces regular number; camp label 14px uppercase Jost + "per mobile clinic". */
.ab-mec-card__num { font-family: var(--wp--preset--font-family--serif); font-size: clamp(2.75rem, 1.6rem + 2.6vw, 4rem); line-height: 1.1; font-weight: 400; color: #0D72BA; }
.ab-mec-camp .ab-mec-card__title { font-family: var(--wp--preset--font-family--sans); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; color: #2C2C33; }
.ab-mec-card__per { margin: 0; font-size: 0.875rem; text-transform: lowercase; color: #52525B; }
.ab-mec-card__kicker { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--ab-orange); font-weight: 600; }
.ab-mec-card__title { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: 1.125rem; font-weight: 400; text-transform: capitalize; color: #2C2C33; }
.ab-mec-card__desc { margin: 0; font-size: 1rem; line-height: 1.5; color: #52525B; }
.ab-mec-process__caption { margin: 0; text-align: center; font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: 1.375rem; color: #52525B; max-width: 760px; }
.ab-mec-process__cta { display: flex; justify-content: center; }

/* 6. Where your donation reaches ------------------------------------------- */
.ab-mec-reach { padding: 100px 40px; border-bottom: 1px solid #E9E9E9; }
.ab-mec-reach__head { text-align: center; }
.ab-mec-reach__actions { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; padding-top: 10px; }

/* Interactive reach map — reuses the albasar/map-points block (base artwork +
   admin-managed pins). Marker/tooltip styles are scoped here so mec.css stays
   self-contained (no site-wide home-v5.css pulled onto this page). */
.ab-mec-reach__map { width: 100%; }
.ab-mec-reach__map .ab-home-proof__mapwrap { width: 100%; margin: 0; padding: 0; border: 0; }
.ab-mec-reach__map .ab-home-proof__map { position: relative; width: 100%; line-height: 0; }
.ab-mec-reach__map .ab-home-proof__mapimg { display: block; width: 100%; height: auto; }
/* Pins + tooltips: blocks/map-points/style.css. */

/* 8. Trust + CTA ------------------------------------------------------------ */
.ab-mec-cta {
	padding: 100px 40px; text-align: center;
	background: linear-gradient(-17deg, #0D72BA 0%, #0A5A94 100%);
}
.ab-mec-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.ab-mec-cta .ab-mec-eyebrow { color: rgba(255,255,255,.85); }
.ab-mec-cta__title { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: clamp(2rem, 1.4rem + 2vw, 2.625rem); line-height: 1.15; font-weight: 600; color: #fff; }
.ab-mec-cta__actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding-top: 8px; }
.ab-mec-cta__trust { margin: 0; font-size: 0.9375rem; color: rgba(255,255,255,.75); }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 900px) {
	.ab-mec-hero { grid-template-columns: 1fr; }
	.ab-mec-hero__media { min-height: 320px; order: -1; }
	.ab-mec-hero__left { padding: 60px 24px; }
	.ab-mec-impact__cards { grid-template-columns: repeat(2, 1fr); }
	.ab-mec-basics__inner, .ab-mec-story__row { grid-template-columns: 1fr; }
	.ab-mec-story__media { width: 100%; max-width: 420px; margin: 0 auto; }
	.ab-mec-cards { grid-template-columns: 1fr; }
	.ab-mec-basics, .ab-mec-story, .ab-mec-process, .ab-mec-reach, .ab-mec-cta { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
	.ab-mec-impact__cards { grid-template-columns: 1fr; }
	.ab-mec-table { padding: 30px 20px; }
}
