/* ==========================================================================
   Halal Food Bank Canada — child theme styles
   Colour values come from Elementor Global Colors via --hfb-* variables
   (printed inline by inc/palette.php). Do not hard-code colours here.
   ========================================================================== */

:root {
	/* Self-hosted fonts (assets/fonts). Elementor global fonts are seeded with the same families. */
	--hfb-font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--hfb-font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--hfb-white: #fff;
	--hfb-turmeric-soft: color-mix(in srgb, var(--hfb-turmeric) 16%, var(--hfb-white));
	--hfb-green-soft: color-mix(in srgb, var(--hfb-green) 10%, var(--hfb-white));
	--hfb-line: color-mix(in srgb, var(--hfb-ink) 12%, transparent);
	--hfb-muted: color-mix(in srgb, var(--hfb-ink) 72%, var(--hfb-white));

	--hfb-container: 1140px;
	--hfb-gutter: 20px;
	--hfb-radius: 14px;
	--hfb-header-h: 84px;
	--hfb-mobilebar-h: 64px;
	--hfb-admin-offset: 0px;
	--hfb-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px rgb(0 0 0 / 0.06);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--hfb-header-h) + 16px); }

.hfb-topbar, .hfb-topbar *, .hfb-header, .hfb-header *, .hfb-footer, .hfb-footer *,
.hfb-mobilebar, .hfb-mobilebar *, .hfb-supporters *, .hfb-btn, .elementor-button { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--hfb-cream);
	color: var(--hfb-ink);
	font-family: var(--hfb-font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hfb-font-heading);
	font-weight: 600;
	line-height: 1.15;
	color: var(--hfb-ink);
	text-wrap: balance;
}

a { color: var(--hfb-green); text-underline-offset: 0.18em; }
a:hover { color: var(--hfb-ink); }

:focus-visible {
	outline: 3px solid var(--hfb-green);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	z-index: 100000; top: 8px; left: 8px; padding: 12px 18px;
	background: var(--hfb-ink); color: var(--hfb-white); text-decoration: none;
	border-radius: 8px;
}
.hfb-main:focus { outline: none; }

.hfb-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--hfb-container) + 2 * var(--hfb-gutter));
	margin-inline: auto;
	padding-inline: var(--hfb-gutter);
}

/* ---------- Buttons ---------- */
.hfb-btn,
.elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.75em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--hfb-font-body);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
/* Default Elementor buttons follow the palette; per-widget styling still wins. */
body .elementor-button,
.hfb-btn--primary {
	background-color: var(--hfb-turmeric);
	color: var(--hfb-ink);
}
body .elementor-button:hover,
body .elementor-button:focus-visible,
.hfb-btn--primary:hover,
.hfb-btn--primary:focus-visible {
	background-color: var(--hfb-turmeric-dark);
	color: var(--hfb-ink);
}
.hfb-btn--green { background-color: var(--hfb-green); color: var(--hfb-white); }
.hfb-btn--green:hover,
.hfb-btn--green:focus-visible { background-color: var(--hfb-ink); color: var(--hfb-white); }
.hfb-btn--outline { background: transparent; border-color: var(--hfb-green); color: var(--hfb-green); }
.hfb-btn--outline:hover,
.hfb-btn--outline:focus-visible { background: var(--hfb-green); color: var(--hfb-white); }
.hfb-btn:active,
.elementor-button:active { transform: translateY(1px); }

/* ---------- Top information bar ---------- */
.hfb-topbar {
	background: var(--hfb-turmeric);
	color: var(--hfb-ink);
	font-size: 0.9375rem;
}
.hfb-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	min-height: 42px;
	padding-block: 6px;
}
.hfb-topbar__notice { margin: 0; font-weight: 600; }
.hfb-topbar__links { display: flex; gap: 4px; }
.hfb-topbar__links a {
	color: var(--hfb-ink);
	font-weight: 600;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 999px;
}
.hfb-topbar__links a:hover { background: color-mix(in srgb, var(--hfb-ink) 10%, transparent); color: var(--hfb-ink); }

/* ---------- Header ---------- */
.hfb-header {
	position: sticky;
	top: var(--hfb-admin-offset);
	z-index: 900;
	background: var(--hfb-white);
	border-bottom: 1px solid var(--hfb-line);
}
.hfb-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--hfb-header-h);
}
.hfb-logo { display: inline-flex; flex: none; line-height: 0; }
.hfb-logo__img { width: auto; height: 68px; }

.hfb-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}
.hfb-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hfb-menu > li { position: relative; }
.hfb-menu a {
	display: block;
	padding: 10px 12px;
	color: var(--hfb-ink);
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	border-radius: 8px;
}
.hfb-menu > li > a { position: relative; }
.hfb-menu > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 4px;
	height: 3px;
	border-radius: 3px;
	background: var(--hfb-turmeric);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.hfb-menu > li > a:hover::after,
.hfb-menu > .current-menu-item > a::after,
.hfb-menu > .current-menu-ancestor > a::after,
.hfb-menu > .current_page_item > a::after { transform: scaleX(1); }
.hfb-menu a:hover { color: var(--hfb-ink); }

/* Sub-menus (if ever added) */
.hfb-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--hfb-white);
	border: 1px solid var(--hfb-line);
	border-radius: 12px;
	box-shadow: var(--hfb-shadow);
}
@media (min-width: 1025px) {
	.hfb-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	}
	.hfb-menu li:hover > .sub-menu,
	.hfb-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.hfb-menu .sub-menu a:hover { background: var(--hfb-cream); }
}

.hfb-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	min-height: 48px;
	padding: 8px 14px;
	border: 2px solid var(--hfb-line);
	border-radius: 999px;
	background: var(--hfb-white);
	color: var(--hfb-ink);
	font: 700 1rem/1 var(--hfb-font-body);
	cursor: pointer;
}
.hfb-menu-toggle__close { display: none; }
.hfb-menu-toggle[aria-expanded="true"] .hfb-menu-toggle__open { display: none; }
.hfb-menu-toggle[aria-expanded="true"] .hfb-menu-toggle__close { display: block; }

/* WordPress admin bar offsets for the sticky header */
.admin-bar { --hfb-admin-offset: 32px; }
@media (max-width: 782px) { .admin-bar { --hfb-admin-offset: 46px; } }
@media (max-width: 600px) { .admin-bar { --hfb-admin-offset: 0px; } }

/* ---------- Tablet & phone: collapsible menu ---------- */
@media (max-width: 1024px) {
	:root { --hfb-header-h: 72px; }
	.hfb-logo__img { height: 56px; }
	.hfb-menu-toggle { display: inline-flex; }

	.hfb-nav {
		position: fixed;
		left: 0;
		right: 0;
		/* Set by site.js to the header's bottom edge (the info bar may be above it). */
		top: var(--hfb-nav-top, calc(var(--hfb-admin-offset) + var(--hfb-header-h)));
		bottom: 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		margin: 0;
		padding: 16px var(--hfb-gutter) calc(24px + env(safe-area-inset-bottom));
		background: var(--hfb-white);
		border-top: 1px solid var(--hfb-line);
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}
	.hfb-nav.is-open { visibility: visible; opacity: 1; transform: none; }

	.hfb-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.hfb-menu > li { border-bottom: 1px solid var(--hfb-line); }
	.hfb-menu a { padding: 16px 4px; font-size: 1.1875rem; border-radius: 0; }
	.hfb-menu > li > a::after { display: none; }
	.hfb-menu > .current-menu-item > a,
	.hfb-menu > .current_page_item > a { box-shadow: inset 4px 0 0 var(--hfb-turmeric); padding-left: 16px; }
	.hfb-menu .sub-menu { border: 0; box-shadow: none; padding: 0 0 8px 16px; background: transparent; }
	.hfb-menu .sub-menu a { padding: 10px 4px; font-size: 1.0625rem; }
	.hfb-nav__donate { width: 100%; }

	body.hfb-menu-open { overflow: hidden; }
}

@media (max-width: 767px) {
	.hfb-topbar { font-size: 0.875rem; text-align: center; }
	.hfb-topbar__inner { justify-content: center; }
	.hfb-topbar__links { display: none; }
	.hfb-menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Mobile bottom bar ---------- */
.hfb-mobilebar { display: none; }
@media (max-width: 767px) {
	body { padding-bottom: calc(var(--hfb-mobilebar-h) + env(safe-area-inset-bottom)); }
	.hfb-mobilebar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 950;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: var(--hfb-white);
		border-top: 1px solid var(--hfb-line);
		box-shadow: 0 -6px 20px rgb(0 0 0 / 0.08);
	}
	.hfb-mobilebar__link {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border-radius: 999px;
		font-weight: 700;
		font-size: 1rem;
		text-decoration: none;
		text-align: center;
		line-height: 1.15;
	}
	.hfb-mobilebar__link--food { background: var(--hfb-green); color: var(--hfb-white); }
	.hfb-mobilebar__link--food:hover { color: var(--hfb-white); }
	.hfb-mobilebar__link--donate { background: var(--hfb-turmeric); color: var(--hfb-ink); }
	.hfb-mobilebar__link--donate:hover { color: var(--hfb-ink); }
	body.hfb-menu-open .hfb-mobilebar { display: none; }
}

/* ---------- Footer ---------- */
.hfb-footer {
	background: var(--hfb-turmeric);
	color: var(--hfb-ink);
	font-size: 1rem;
}
.hfb-footer a { color: var(--hfb-ink); text-decoration: underline; text-decoration-thickness: 1px; }
.hfb-footer a:hover { text-decoration-thickness: 2px; color: var(--hfb-ink); }
.hfb-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
	gap: 40px 48px;
	padding-block: 64px 48px;
}
.hfb-footer__logo { margin-bottom: 16px; }
.hfb-footer__logo .hfb-logo__img { height: 96px; }
.hfb-footer__mission { margin: 0 0 16px; max-width: 42ch; }
.hfb-footer__charity { margin: 0; font-weight: 600; }
.hfb-footer__title {
	margin: 0 0 16px;
	font-size: 1.25rem;
	padding-bottom: 10px;
	border-bottom: 2px solid color-mix(in srgb, var(--hfb-ink) 25%, transparent);
}
.hfb-footer__col p { margin: 0 0 14px; }
.hfb-footer address { font-style: normal; margin: 0 0 14px; }
.hfb-footer__directions { font-weight: 700; }
.hfb-footer__menu,
.hfb-footer__social { list-style: none; margin: 0; padding: 0; }
.hfb-footer__menu li { margin: 0 0 8px; }
.hfb-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hfb-footer__social a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 2px solid var(--hfb-ink);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
.hfb-footer__social a:hover { background: var(--hfb-ink); color: var(--hfb-turmeric); }

.hfb-footer__bottom { background: var(--hfb-green); color: var(--hfb-cream); font-size: 0.9375rem; }
.hfb-footer__bottom a { color: var(--hfb-cream); }
.hfb-footer__bottom a:hover { color: var(--hfb-white); }
.hfb-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 16px;
}
.hfb-footer__bottom p { margin: 0; }

@media (max-width: 1024px) {
	.hfb-footer__grid { grid-template-columns: 1fr 1fr; }
	.hfb-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.hfb-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
	.hfb-footer__bottom-inner { flex-direction: column; }
}

/* ---------- Our Supporters marquee ---------- */
.hfb-supporters { display: grid; gap: 20px; }
.hfb-marquee {
	--hfb-marquee-gap: 20px;
	display: flex;
	gap: var(--hfb-marquee-gap);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hfb-marquee__track {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: var(--hfb-marquee-gap);
	min-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: hfb-marquee var(--hfb-marquee-duration, 45s) linear infinite;
}
.hfb-marquee--reverse .hfb-marquee__track { animation-direction: reverse; }
.hfb-marquee:hover .hfb-marquee__track,
.hfb-marquee:focus-within .hfb-marquee__track { animation-play-state: paused; }
@keyframes hfb-marquee {
	to { transform: translateX(calc(-100% - var(--hfb-marquee-gap))); }
}
.hfb-supporter {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 180px;
	height: 92px;
	padding: 12px 18px;
	box-sizing: border-box;
	background: var(--hfb-white);
	border: 1px solid var(--hfb-line);
	border-radius: var(--hfb-radius);
}
.hfb-supporter__img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.hfb-supporter--placeholder { color: color-mix(in srgb, var(--hfb-ink) 35%, var(--hfb-white)); }
.hfb-supporter--placeholder svg { width: 100%; height: auto; max-height: 64px; }

@media (max-width: 767px) {
	.hfb-supporter { width: 140px; height: 76px; padding: 10px 12px; }
	.hfb-supporter__img { max-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
	.hfb-marquee { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; justify-content: center; }
	.hfb-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; min-width: 0; }
	.hfb-marquee__track[aria-hidden="true"] { display: none; }
	.hfb-nav, .hfb-btn, .elementor-button, .hfb-menu > li > a::after { transition: none; }
}

/* ---------- Zeffy embed ---------- */
.hfb-zeffy-embed { width: 100%; }

/* ---------- Blog & plain pages (non-Elementor content) ---------- */
body:not(.elementor-page) .site-main {
	box-sizing: border-box;
	max-width: calc(760px + 2 * var(--hfb-gutter));
	margin: 0 auto;
	padding: 56px var(--hfb-gutter) 72px;
}
body:not(.elementor-page) .site-main .entry-title { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 24px; }
body:not(.elementor-page) .site-main .page-content img { max-width: 100%; height: auto; border-radius: var(--hfb-radius); }
.blog .site-main article.post,
.archive .site-main article.post {
	padding: 24px 0;
	border-bottom: 1px solid var(--hfb-line);
}
.blog .site-main .entry-title a,
.archive .site-main .entry-title a { color: var(--hfb-ink); text-decoration: none; }
.blog .site-main .entry-title a:hover,
.archive .site-main .entry-title a:hover { color: var(--hfb-green); text-decoration: underline; }

/* ==========================================================================
   Elementor content (Default Colors/Fonts are turned off by the theme,
   so these rules style every heading, text and button by default)
   ========================================================================== */
.elementor-widget-heading .elementor-heading-title {
	font-family: var(--hfb-font-heading);
	font-weight: 600;
	line-height: 1.15;
	color: var(--hfb-ink);
}
h1.elementor-heading-title { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2.elementor-heading-title { font-size: clamp(1.875rem, 3.4vw, 2.5rem); }
h3.elementor-heading-title { font-size: clamp(1.25rem, 2vw, 1.4rem); }
.elementor-widget-text-editor { color: var(--hfb-ink); }
.elementor-widget-text-editor a { text-decoration: underline; font-weight: 600; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Button variants: add the class to the Button widget (Advanced > CSS Classes) */
.hfb-btn-green .elementor-button { background-color: var(--hfb-green); color: var(--hfb-white); }
.hfb-btn-green .elementor-button:hover,
.hfb-btn-green .elementor-button:focus-visible { background-color: var(--hfb-ink); color: var(--hfb-white); }
.hfb-btn-outline .elementor-button { background-color: transparent; border-color: var(--hfb-green); color: var(--hfb-green); }
.hfb-btn-outline .elementor-button:hover,
.hfb-btn-outline .elementor-button:focus-visible { background-color: var(--hfb-green); color: var(--hfb-white); }
.hfb-btn-outline-dark .elementor-button { background-color: transparent; border-color: var(--hfb-ink); color: var(--hfb-ink); }
.hfb-btn-outline-dark .elementor-button:hover,
.hfb-btn-outline-dark .elementor-button:focus-visible { background-color: var(--hfb-ink); color: var(--hfb-white); }
.hfb-btn-outline-light .elementor-button { background-color: transparent; border-color: var(--hfb-cream); color: var(--hfb-cream); }
.hfb-btn-outline-light .elementor-button:hover,
.hfb-btn-outline-light .elementor-button:focus-visible { background-color: var(--hfb-cream); color: var(--hfb-green); }

/* Section helpers: add to a Container (Advanced > CSS Classes) */
.hfb-bg-cream { background-color: var(--hfb-cream); }
.hfb-bg-white { background-color: var(--hfb-white); }
.hfb-bg-green { background-color: var(--hfb-green); }
.hfb-bg-turmeric { background-color: var(--hfb-turmeric); }

.hfb-on-dark,
.hfb-on-dark .elementor-heading-title,
.hfb-on-dark .elementor-widget-text-editor { color: var(--hfb-cream); }
.hfb-on-dark a:not(.elementor-button) { color: var(--hfb-cream); }

.hfb-kicker .elementor-heading-title {
	font-family: var(--hfb-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hfb-green);
}
.hfb-on-dark .hfb-kicker .elementor-heading-title { color: var(--hfb-cream); opacity: 0.9; }
.hfb-bg-turmeric .hfb-kicker .elementor-heading-title { color: var(--hfb-ink); }

.hfb-lead { font-size: 1.1875rem; line-height: 1.6; }
.hfb-note { font-size: 0.9375rem; color: var(--hfb-muted); }
.hfb-on-dark .hfb-note { color: var(--hfb-cream); opacity: 0.85; }
.hfb-bg-turmeric .hfb-note { color: var(--hfb-ink); }

/* Closing call to action right above the footer: shown in green so it does not
   blend into the turmeric footer (same look as the homepage's last section). */
.elementor > .e-con.hfb-bg-turmeric:last-child { background-color: var(--hfb-green) !important; }
.elementor > .e-con.hfb-bg-turmeric:last-child .elementor-heading-title,
.elementor > .e-con.hfb-bg-turmeric:last-child .elementor-widget-text-editor,
.elementor > .e-con.hfb-bg-turmeric:last-child .hfb-note { color: var(--hfb-cream); }
.elementor > .e-con.hfb-bg-turmeric:last-child .hfb-btn-green .elementor-button { background-color: var(--hfb-turmeric); color: var(--hfb-ink); }
.elementor > .e-con.hfb-bg-turmeric:last-child .hfb-btn-green .elementor-button:hover,
.elementor > .e-con.hfb-bg-turmeric:last-child .hfb-btn-green .elementor-button:focus-visible { background-color: var(--hfb-turmeric-dark); color: var(--hfb-ink); }
.elementor > .e-con.hfb-bg-turmeric:last-child .hfb-btn-outline-dark .elementor-button { border-color: var(--hfb-cream); color: var(--hfb-cream); }
.elementor > .e-con.hfb-bg-turmeric:last-child .hfb-btn-outline-dark .elementor-button:hover,
.elementor > .e-con.hfb-bg-turmeric:last-child .hfb-btn-outline-dark .elementor-button:focus-visible { background-color: var(--hfb-cream); color: var(--hfb-green); }

/* Cards */
.e-con.hfb-card {
	background-color: var(--hfb-white);
	border: 1px solid var(--hfb-line);
	border-radius: 20px;
	box-shadow: var(--hfb-shadow);
}
.e-con.hfb-card--cream { background-color: var(--hfb-cream); box-shadow: none; }
.e-con.hfb-card--accent { border-top: 6px solid var(--hfb-turmeric); }
.e-con.hfb-card--green-accent { border-top: 6px solid var(--hfb-green); }
.hfb-card .elementor-widget-button { margin-top: auto; }

/* Trust line under the hero */
.hfb-trust { font-weight: 600; font-size: 0.9375rem; }

/* Impact figures */
.e-con.hfb-stat-item { text-align: center; align-items: center; }
.hfb-stat-kicker { font-size: 0.9375rem; font-weight: 600; min-height: 1.5em; }
.hfb-stat .elementor-heading-title { font-size: clamp(2.75rem, 6vw, 4rem); line-height: 1; }
.hfb-stat-bar { width: 56px; height: 4px; border-radius: 4px; background: var(--hfb-turmeric); }

/* Images */
.hfb-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 24px;
	display: block;
}
.hfb-media--accent { position: relative; }
.hfb-media--accent::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	border-radius: 24px;
	background: var(--hfb-turmeric);
	z-index: 0;
}
.hfb-media--accent .elementor-widget-container,
.hfb-media--accent img { position: relative; z-index: 1; }
@media (max-width: 767px) {
	.hfb-media--accent::before { inset: 12px -10px -12px 10px; }
}

/* Info list (location, hours, ...) */
.hfb-info h3 {
	margin: 0 0 4px;
	font-family: var(--hfb-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hfb-green);
}
.hfb-info h3:not(:first-child) { margin-top: 22px; }
.hfb-info p { margin: 0; }

/* Centered section intros */
.e-con.hfb-intro--center { max-width: 760px; margin-inline: auto; text-align: center; }

/* Narrow reading column */
.e-con.hfb-narrow { max-width: 780px; margin-inline: auto; width: 100%; }

/* Numbered process steps */
.hfb-step-num .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--hfb-turmeric);
	color: var(--hfb-ink);
	font-family: var(--hfb-font-body);
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1;
}
.e-con.hfb-step { text-align: left; }

/* Map */
.e-con.hfb-map-wrap { position: relative; border-radius: 20px; overflow: hidden; min-height: 360px; border: 1px solid var(--hfb-line); padding: 0; }
/* The map fills its box, so it always matches the height of the info card beside it. */
.e-con.hfb-map-wrap > .elementor-widget-shortcode { position: absolute; inset: 0; width: 100%; height: 100%; }
.hfb-map-wrap .elementor-shortcode,
.hfb-map-wrap .hfb-map,
.hfb-map-wrap .hfb-map iframe { height: 100%; min-height: 0; }

/* FAQ (native details/summary, works without JavaScript) */
.hfb-faq { text-align: left; }
.hfb-faq details {
	border-bottom: 1px solid var(--hfb-line);
}
.hfb-faq details:first-child { border-top: 1px solid var(--hfb-line); }
.hfb-faq summary {
	position: relative;
	display: block;
	padding: 20px 48px 20px 0;
	font-family: var(--hfb-font-heading);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}
.hfb-faq summary::-webkit-details-marker { display: none; }
.hfb-faq summary::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -9px;
	border-right: 2.5px solid var(--hfb-green);
	border-bottom: 2.5px solid var(--hfb-green);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.hfb-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.hfb-faq summary:hover { color: var(--hfb-green); }
.hfb-faq details p { margin: 0 0 20px; padding-right: 48px; color: var(--hfb-muted); }
@media (prefers-reduced-motion: reduce) { .hfb-faq summary::after { transition: none; } }
.e-con.hfb-step > .e-con { flex: 1 1 0; min-width: 0; }
.hfb-step .elementor-widget-heading.hfb-step-num { flex: none; }

/* Address links (open Google Maps) */
a.hfb-address-link { font-weight: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
a.hfb-address-link:hover { color: var(--hfb-green); text-decoration-thickness: 2px; }
.hfb-footer a.hfb-address-link:hover { color: var(--hfb-ink); }

/* [hfb_map] */
.hfb-map { height: 100%; min-height: var(--hfb-map-h, 480px); }
.hfb-map iframe { display: block; width: 100%; height: 100%; min-height: var(--hfb-map-h, 480px); border: 0; }

/* Check list (trust points) */
.hfb-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.hfb-checklist li { position: relative; padding-left: 28px; }
.hfb-checklist li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.3em;
	width: 7px;
	height: 12px;
	border-right: 2.5px solid var(--hfb-green);
	border-bottom: 2.5px solid var(--hfb-green);
	transform: rotate(45deg);
}

.e-con.hfb-narrow--wide { max-width: 900px; }

/* Jump links (chips) */
.hfb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hfb-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--hfb-line);
	border-radius: 999px;
	background: var(--hfb-cream);
	color: var(--hfb-ink);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.hfb-chips a:hover { border-color: var(--hfb-turmeric); background: var(--hfb-turmeric-soft); color: var(--hfb-ink); }

/* ==========================================================================
   Forms ([hfb_form])
   ========================================================================== */
.hfb-form-wrap { text-align: left; }
.hfb-form { display: grid; gap: 28px; }
.hfb-form-required-note { margin: 0; font-size: 0.9375rem; color: var(--hfb-muted); }
.hfb-req { color: #b3261e; font-weight: 700; }
.hfb-optional { font-weight: 400; color: var(--hfb-muted); font-size: 0.9375em; }
.hfb-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.hfb-fieldset > legend {
	width: 100%;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--hfb-turmeric);
	font-family: var(--hfb-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
}
.hfb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.hfb-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.hfb-field--half { grid-column: span 1; }
@media (max-width: 640px) { .hfb-form-grid { grid-template-columns: 1fr; } .hfb-field--half { grid-column: 1 / -1; } }

.hfb-field > label,
.hfb-field > legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 2px; }
.hfb-field input[type="text"],
.hfb-field input[type="email"],
.hfb-field input[type="tel"],
.hfb-field select,
.hfb-field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1.5px solid color-mix(in srgb, var(--hfb-ink) 30%, transparent);
	border-radius: 12px;
	background: var(--hfb-white);
	color: var(--hfb-ink);
	font: 400 1rem/1.4 var(--hfb-font-body);
}
.hfb-field textarea { min-height: 160px; resize: vertical; }
.hfb-field input:focus,
.hfb-field select:focus,
.hfb-field textarea:focus { outline: 3px solid color-mix(in srgb, var(--hfb-green) 45%, transparent); outline-offset: 1px; border-color: var(--hfb-green); }
.hfb-field.has-error input,
.hfb-field.has-error select,
.hfb-field.has-error textarea { border-color: #b3261e; }
.hfb-field-error { margin: 0; color: #b3261e; font-weight: 600; font-size: 0.9375rem; }

.hfb-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.hfb-choice {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 8px 16px 8px 12px;
	border: 1.5px solid color-mix(in srgb, var(--hfb-ink) 22%, transparent);
	border-radius: 999px;
	background: var(--hfb-white);
	cursor: pointer;
	font-weight: 500;
}
.hfb-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--hfb-green); flex: none; }
.hfb-choice:has(input:checked) { border-color: var(--hfb-green); background: var(--hfb-green-soft); }
/* Consent: plain checkbox + text, no frame. */
.hfb-field > label.hfb-choice--consent,
.hfb-choice--consent { display: flex; align-items: flex-start; gap: 12px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; line-height: 1.5; }
.hfb-choice--consent:has(input:checked) { background: none; }
.hfb-choice--consent input { margin-top: 0.15em; }
.hfb-field.has-error .hfb-choice--consent { color: #b3261e; }
.hfb-field.has-error .hfb-choice { border-color: #b3261e; }

.hfb-field--notice p {
	margin: 0;
	padding: 14px 16px;
	border-left: 4px solid var(--hfb-turmeric);
	border-radius: 8px;
	background: var(--hfb-turmeric-soft);
	font-size: 0.9375rem;
}
.hfb-form-actions .hfb-btn { min-width: 220px; }
.hfb-form-actions .hfb-btn[disabled] { opacity: 0.6; cursor: wait; }
.hfb-form-legal { margin: 0; font-size: 0.8125rem; color: var(--hfb-muted); }
.grecaptcha-badge { visibility: hidden; }

.hfb-form-alert,
.hfb-form-success { margin-bottom: 24px; padding: 18px 20px; border-radius: 14px; font-weight: 600; }
.hfb-form-alert { background: #fdecea; border: 1.5px solid #b3261e; color: #6b1510; }
.hfb-form-success { background: var(--hfb-green-soft); border: 1.5px solid var(--hfb-green); color: var(--hfb-ink); }
.hfb-form-alert p, .hfb-form-success p { margin: 0; }
.hfb-form-alert:focus, .hfb-form-success:focus { outline: 3px solid var(--hfb-green); outline-offset: 3px; }

/* Honeypot (hidden from people, visible to bots) */
.hfb-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Get Involved helpers */
.hfb-checklist--lg { font-weight: 500; font-size: 1rem; gap: 10px; margin-bottom: 22px; }
.hfb-info--body h3 { margin-top: 22px; }
@media (min-width: 1025px) {
	.e-con.hfb-sticky-col { position: sticky; top: calc(var(--hfb-admin-offset) + var(--hfb-header-h) + 24px); }
}
.e-con.hfb-card h2.elementor-heading-title { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.hfb-field > label.hfb-choice { font-weight: 500; }

/* About Us */
.hfb-mission p {
	margin: 0;
	font-family: var(--hfb-font-heading);
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	text-wrap: balance;
}
@media (min-width: 1025px) {
	.e-con.hfb-grid-center-last { grid-template-columns: repeat(6, 1fr) !important; }
	.hfb-grid-center-last > .e-con { grid-column: span 2; }
	.hfb-grid-center-last > .e-con:nth-child(4) { grid-column: 2 / span 2; }
	.hfb-grid-center-last > .e-con:nth-child(5) { grid-column: 4 / span 2; }
}

.hfb-timeline { list-style: none; margin: 0; padding: 0; position: relative; text-align: left; }
.hfb-timeline::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 8px;
	bottom: 8px;
	width: 3px;
	border-radius: 3px;
	background: color-mix(in srgb, var(--hfb-turmeric) 55%, transparent);
}
.hfb-timeline li { position: relative; padding: 0 0 32px 48px; }
.hfb-timeline li:last-child { padding-bottom: 0; }
.hfb-timeline li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 4px;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--hfb-turmeric);
	box-shadow: 0 0 0 4px var(--hfb-white);
}
.hfb-timeline__date {
	margin: 0 0 4px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hfb-green);
}
.hfb-timeline h3 { margin: 0 0 6px; font-size: 1.375rem; }
.hfb-timeline li > p:last-child { margin: 0; }

.hfb-media--portrait img { aspect-ratio: 1 / 1; border-radius: 16px; }
.e-con.hfb-person { text-align: left; }
.e-con.hfb-officers { width: 100%; max-width: 760px; margin-inline: auto; text-align: left; }

.hfb-team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hfb-team-list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 24px;
	border: 1px solid var(--hfb-line);
	border-top: 5px solid var(--hfb-green);
	border-radius: 16px;
	background: var(--hfb-cream);
	text-align: left;
}
.hfb-team-list strong { font-family: var(--hfb-font-heading); font-size: 1.25rem; font-weight: 600; }
.hfb-team-list span { color: var(--hfb-muted); }
@media (max-width: 767px) { .hfb-team-list { grid-template-columns: 1fr; } }

/* Long-form pages written in the block editor (Privacy Policy, blog posts) */
body:not(.elementor-page) .site-main .page-content h2,
body:not(.elementor-page) .site-main .entry-content h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 2.2em 0 0.5em; }
body:not(.elementor-page) .site-main .page-content h3,
body:not(.elementor-page) .site-main .entry-content h3 { font-size: 1.25rem; margin: 1.6em 0 0.4em; }
body:not(.elementor-page) .site-main .page-content :is(ul, ol),
body:not(.elementor-page) .site-main .entry-content :is(ul, ol) { margin: 0 0 1.25em; padding-left: 1.4em; }
body:not(.elementor-page) .site-main .page-content li { margin-bottom: 0.35em; }
body:not(.elementor-page) .site-main .page-content p { margin: 0 0 1em; }
.hfb-consent-policy { margin: 4px 0 0; font-size: 0.9375rem; color: var(--hfb-muted); }
.hfb-consent-policy a { color: var(--hfb-green); font-weight: 600; text-decoration: underline; }
.hfb-footer__sep { margin: 0 10px; opacity: 0.7; }

/* Donate page: embedded Zeffy form in the hero */
.e-con.hfb-donate-form {
	background: var(--hfb-white);
	border: 1px solid var(--hfb-line);
	border-radius: 20px;
	box-shadow: var(--hfb-shadow);
	padding: 8px;
	overflow: hidden;
	scroll-margin-top: calc(var(--hfb-header-h) + 24px);
}
.hfb-donate-form .hfb-zeffy-embed { width: 100%; }
.hfb-donate-form [data-zeffy-embed]:empty { min-height: 560px; }

/* Ways to give (payment methods) */
.hfb-pay .hfb-pay__label { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hfb-green); }
.hfb-pay .hfb-pay__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hfb-pay .hfb-pay__list li {
	padding: 6px 14px;
	border: 1px solid var(--hfb-line);
	border-radius: 999px;
	background: var(--hfb-white);
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Homepage hero: on phones the donation form comes first */
@media (max-width: 767px) {
	.e-con.hfb-hero-form { order: -1; }
}

/* ---------- October 2026 revisions ---------- */

/* Elementor buttons: keep dark text on turmeric even if Site Settings define a
   button text colour (kit CSS uses .elementor-kit-N .elementor-button). */
html body .elementor-widget-button .elementor-button { background-color: var(--hfb-turmeric); color: var(--hfb-ink); }
html body .elementor-widget-button .elementor-button:hover,
html body .elementor-widget-button .elementor-button:focus-visible { background-color: var(--hfb-turmeric-dark); color: var(--hfb-ink); }
html body .elementor-widget-button.hfb-btn-green .elementor-button { background-color: var(--hfb-green); color: var(--hfb-white); }
html body .elementor-widget-button.hfb-btn-green .elementor-button:hover,
html body .elementor-widget-button.hfb-btn-green .elementor-button:focus-visible { background-color: var(--hfb-ink); color: var(--hfb-white); }
html body .elementor-widget-button.hfb-btn-outline .elementor-button { background-color: transparent; border-color: var(--hfb-green); color: var(--hfb-green); }
html body .elementor-widget-button.hfb-btn-outline .elementor-button:hover,
html body .elementor-widget-button.hfb-btn-outline .elementor-button:focus-visible { background-color: var(--hfb-green); color: var(--hfb-white); }
html body .elementor-widget-button.hfb-btn-outline-dark .elementor-button { background-color: transparent; border-color: var(--hfb-ink); color: var(--hfb-ink); }
html body .elementor-widget-button.hfb-btn-outline-dark .elementor-button:hover,
html body .elementor-widget-button.hfb-btn-outline-dark .elementor-button:focus-visible { background-color: var(--hfb-ink); color: var(--hfb-white); }
html body .elementor-widget-button.hfb-btn-outline-light .elementor-button { background-color: transparent; border-color: var(--hfb-cream); color: var(--hfb-cream); }
html body .elementor-widget-button.hfb-btn-outline-light .elementor-button:hover,
html body .elementor-widget-button.hfb-btn-outline-light .elementor-button:focus-visible { background-color: var(--hfb-cream); color: var(--hfb-green); }
/* Closing call to action (green band): swap variants so they stay readable. */
html body .elementor > .e-con.hfb-bg-turmeric:last-child .elementor-widget-button.hfb-btn-green .elementor-button { background-color: var(--hfb-turmeric); color: var(--hfb-ink); }
html body .elementor > .e-con.hfb-bg-turmeric:last-child .elementor-widget-button.hfb-btn-green .elementor-button:hover,
html body .elementor > .e-con.hfb-bg-turmeric:last-child .elementor-widget-button.hfb-btn-green .elementor-button:focus-visible { background-color: var(--hfb-turmeric-dark); color: var(--hfb-ink); }
html body .elementor > .e-con.hfb-bg-turmeric:last-child .elementor-widget-button.hfb-btn-outline-dark .elementor-button { border-color: var(--hfb-cream); color: var(--hfb-cream); }
html body .elementor > .e-con.hfb-bg-turmeric:last-child .elementor-widget-button.hfb-btn-outline-dark .elementor-button:hover,
html body .elementor > .e-con.hfb-bg-turmeric:last-child .elementor-widget-button.hfb-btn-outline-dark .elementor-button:focus-visible { background-color: var(--hfb-cream); color: var(--hfb-green); }

/* Zeffy note above every donation form */
.hfb-zeffy-notice {
	margin: 0 0 16px;
	padding: 18px 20px;
	border: 1px solid color-mix(in srgb, var(--hfb-turmeric) 70%, transparent);
	border-left: 5px solid var(--hfb-turmeric);
	border-radius: 14px;
	background: var(--hfb-turmeric-soft);
	color: var(--hfb-ink);
	font-size: 0.9375rem;
	line-height: 1.55;
	text-align: left;
}
.hfb-zeffy-notice p { margin: 0 0 8px; }
.hfb-zeffy-notice p:last-child { margin-bottom: 0; }
.hfb-zeffy-notice .hfb-zeffy-notice__title { font-family: var(--hfb-font-heading); font-size: 1.1875rem; font-weight: 600; margin-bottom: 10px; }
.hfb-zeffy-charity { margin: 12px 4px 4px; font-size: 0.875rem; text-align: center; color: var(--hfb-muted); }
.hfb-zeffy-charity a { color: var(--hfb-green); font-weight: 600; }
.e-con.hfb-donate-form { padding: 16px; }
@media (max-width: 767px) {
	.hfb-zeffy-notice { padding: 16px; font-size: 0.875rem; }
	.e-con.hfb-donate-form { padding: 12px; }
}

/* Donate page: General / Zakat / Sadaqah tabs */
.hfb-donate-tabs__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 14px; padding: 5px; border-radius: 999px; background: var(--hfb-cream); border: 1px solid var(--hfb-line); }
.hfb-donate-tabs__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 6px 10px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--hfb-ink);
}
.hfb-donate-tabs__tab:hover { background: var(--hfb-white); color: var(--hfb-ink); }
.hfb-donate-tabs__tab.is-active { background: var(--hfb-green); color: var(--hfb-white); }
.hfb-donate-tabs__tab:focus-visible { outline: 3px solid var(--hfb-turmeric); outline-offset: 2px; }

/* Photos by file name ([hfb_photo]) and placeholders */
.hfb-photo img { width: 100%; height: auto; display: block; }
.hfb-photo__ph {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	background: color-mix(in srgb, var(--hfb-green) 8%, var(--hfb-cream));
	border: 1px dashed color-mix(in srgb, var(--hfb-green) 30%, transparent);
}
.hfb-media--portrait .hfb-photo__ph { aspect-ratio: 1 / 1; border-radius: 16px; }
.hfb-photo__ph svg { width: 38%; max-width: 140px; fill: color-mix(in srgb, var(--hfb-green) 35%, transparent); }
.hfb-media--accent.hfb-photo { position: relative; }

/* People (leadership, officers, advisory board, team) */
.e-con.hfb-person { text-align: center; align-items: center; }
.e-con.hfb-person .elementor-widget-shortcode { width: 100%; }
.hfb-person .hfb-kicker .elementor-heading-title { margin-top: 6px; }
.hfb-people-title .elementor-heading-title { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-top: 16px; }
.e-con.hfb-people { width: 100%; }
.e-con.hfb-people--narrow { max-width: 760px; margin-inline: auto; }

/* Homepage: messages from the founders */
.hfb-message-by p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.hfb-message-by strong { font-family: var(--hfb-font-heading); font-size: 1.25rem; font-weight: 600; }
.hfb-message-by span { color: var(--hfb-green); font-weight: 600; font-size: 0.9375rem; }
.e-con.hfb-message__photo { max-width: 460px; width: 100%; justify-self: center; }
@media (max-width: 1024px) {
	.e-con.hfb-message__photo { order: -1; max-width: 360px; }
}

/* Homepage programs: 4 per row, last row centred */
@media (min-width: 1025px) {
	.e-con.hfb-grid-4-center { grid-template-columns: repeat(8, 1fr) !important; }
	.hfb-grid-4-center > .e-con { grid-column: span 2; }
	.hfb-grid-4-center > .e-con:nth-child(5):nth-last-child(3) { grid-column: 2 / span 2; }
	.hfb-grid-4-center > .e-con:nth-child(5):nth-last-child(2) { grid-column: 3 / span 2; }
	.hfb-grid-4-center > .e-con:nth-child(5):nth-last-child(1) { grid-column: 4 / span 2; }
}

/* Brief Zeffy disclosure under every embedded form */
.hfb-zeffy-disclosure {
	margin: 12px 4px 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--hfb-muted);
	text-align: left;
}
.hfb-zeffy-disclosure a { color: var(--hfb-green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.hfb-zeffy-disclosure + .hfb-zeffy-charity { margin-top: 6px; text-align: left; font-size: 0.8125rem; }

/* ---------- October 28 revisions ---------- */

/* Names never break across lines */
.hfb-nowrap,
.hfb-person .elementor-heading-title,
.hfb-message-by strong { white-space: nowrap; }

/* "Click for directions" under every address */
.hfb-directions-link { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--hfb-green); text-decoration: underline; text-underline-offset: 3px; }
.hfb-directions-link:hover { color: var(--hfb-ink); }
.hfb-on-dark .hfb-directions-link { color: var(--hfb-cream); }
.hfb-footer .hfb-directions-link { color: var(--hfb-ink); }
.hfb-footer__label { margin: 0 0 4px; }

/* Embedded form card: no extra space under the form */
.e-con.hfb-donate-form { padding: 14px 14px 12px; }
.hfb-zeffy-disclosure { margin-top: 8px; margin-bottom: 0; }

/* Protected email links */
a.hfb-email { word-break: break-word; }

/* Quick Donate button in the header, next to the logo */
.hfb-qd-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	min-height: 40px;
	padding: 8px 16px;
	border: 2px solid var(--hfb-green);
	border-radius: 999px;
	background: var(--hfb-white);
	color: var(--hfb-green);
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.1;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.hfb-qd-btn::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 2.9 4.5 6.6 4.5c2.1 0 3.6 1.2 4.4 2.6.8-1.4 2.3-2.6 4.4-2.6 3.7 0 5.7 3.9 4.2 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 2.9 4.5 6.6 4.5c2.1 0 3.6 1.2 4.4 2.6.8-1.4 2.3-2.6 4.4-2.6 3.7 0 5.7 3.9 4.2 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hfb-qd-btn:hover,
.hfb-qd-btn:focus-visible { background: var(--hfb-green); color: var(--hfb-white); }
.hfb-qd-btn:focus-visible { outline: 3px solid var(--hfb-turmeric); outline-offset: 2px; }
/* Narrow laptops: tighten the menu so everything fits on one line. */
@media (min-width: 1025px) and (max-width: 1200px) {
	.hfb-header__inner, .hfb-nav { gap: 14px; }
	.hfb-menu a { padding: 10px 8px; font-size: 0.9375rem; }
	.hfb-menu > li > a::after { left: 8px; right: 8px; }
}
/* Phones: the sticky bottom bar carries Quick Donate, so the header button is hidden. */
@media (max-width: 767px) {
	.hfb-qd-btn { display: none; }
}
@media (max-width: 400px) {
	.hfb-menu-toggle__label { display: none; }
	.hfb-menu-toggle { padding: 8px 12px; }
}

/* Quick Donate panel */
.hfb-qd { position: fixed; inset: 0; z-index: 10000; }
.hfb-qd[hidden] { display: none; }
.hfb-qd__overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.45); opacity: 0; transition: opacity 0.25s ease; }
.hfb-qd__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(460px, 100%);
	background: var(--hfb-cream);
	box-shadow: 8px 0 32px rgb(0 0 0 / 0.2);
	transform: translateX(-100%);
	transition: transform 0.28s ease;
}
.hfb-qd.is-open .hfb-qd__overlay { opacity: 1; }
.hfb-qd.is-open .hfb-qd__panel { transform: none; }
.hfb-qd__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 20px; }
.hfb-qd__title { margin: 0; font-family: var(--hfb-font-heading); font-size: 1.375rem; font-weight: 600; color: var(--hfb-ink); }
.hfb-qd__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--hfb-ink); cursor: pointer; }
.hfb-qd__close:hover { background: var(--hfb-white); }
.hfb-qd__close:focus-visible { outline: 3px solid var(--hfb-turmeric); outline-offset: 2px; }
.hfb-qd__form { flex: 1 1 auto; min-height: 0; margin: 0 12px; border-radius: 16px; overflow: hidden; background: var(--hfb-white); }
.hfb-qd__form iframe { display: block; width: 100%; height: 100%; border: 0; }
.hfb-qd__foot { padding: 4px 20px 16px; }
.hfb-qd__more { margin: 6px 0 0; font-size: 0.875rem; }
.hfb-qd__more a { color: var(--hfb-green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
html.hfb-qd-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	.hfb-qd__overlay, .hfb-qd__panel, .hfb-qd-btn { transition: none; }
}
/* Hello Elementor colours buttons on hover/focus; keep the close button neutral. */
.hfb-qd button.hfb-qd__close,
.hfb-qd button.hfb-qd__close:hover,
.hfb-qd button.hfb-qd__close:focus { background: transparent; color: var(--hfb-ink); border: 0; }
.hfb-qd button.hfb-qd__close:hover { background: var(--hfb-white); }
/* Logged-in editors: keep the Quick Donate panel below the WordPress admin bar. */
.admin-bar .hfb-qd__panel { top: var(--hfb-admin-offset, 0px); }
/* Room for the accent frame when a photo sits above a card */
.hfb-photo.hfb-media--accent + * , .elementor-widget-shortcode:has(.hfb-media--accent) + .elementor-element { margin-top: 12px; }

/* ---------- Photo gallery ([hfb_gallery]) ---------- */
.hfb-gallery { width: 100%; display: grid; gap: 14px; }
.hfb-gallery__stage { position: relative; }
.hfb-gallery__track {
	position: relative;
	z-index: 1;
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	aspect-ratio: 4 / 3;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	border-radius: 24px;
	background: var(--hfb-ink);
}
.hfb-gallery__track::-webkit-scrollbar { display: none; }
.hfb-gallery__track:focus-visible { outline: 3px solid var(--hfb-turmeric); outline-offset: 3px; }
.hfb-gallery__slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; overflow: hidden; }
.hfb-gallery__slide::before {
	content: "";
	position: absolute;
	inset: -20px;
	background: var(--hfb-bg) center / cover no-repeat;
	filter: blur(22px) brightness(0.85);
}
.hfb-gallery__slide img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.hfb-gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.92);
	color: var(--hfb-ink);
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.2);
	cursor: pointer;
}
.hfb-gallery .hfb-gallery__arrow:hover, .hfb-gallery .hfb-gallery__arrow:focus { background: var(--hfb-white); color: var(--hfb-green); }
.hfb-gallery__arrow:focus-visible { outline: 3px solid var(--hfb-turmeric); outline-offset: 2px; }
.hfb-gallery__arrow--prev { left: 12px; }
.hfb-gallery__arrow--next { right: 12px; }
.hfb-gallery__arrow[disabled] { opacity: 0.35; cursor: default; }
.hfb-gallery__count {
	position: absolute;
	right: 14px;
	bottom: 12px;
	z-index: 2;
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.55);
	color: var(--hfb-white);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
}
.hfb-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.hfb-gallery button.hfb-gallery__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: none;
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}
.hfb-gallery button.hfb-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hfb-gallery button.hfb-gallery__thumb:hover { opacity: 1; background: none; }
.hfb-gallery button.hfb-gallery__thumb.is-active { opacity: 1; border-color: var(--hfb-green); background: none; }
.hfb-gallery button.hfb-gallery__thumb:focus-visible { outline: 3px solid var(--hfb-turmeric); outline-offset: 1px; }
@media (max-width: 767px) {
	.hfb-gallery__arrow { width: 38px; height: 38px; margin-top: -19px; }
	.hfb-gallery button.hfb-gallery__thumb { flex-basis: 54px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .hfb-gallery__track { scroll-behavior: auto; } }
