/**
 * Donate (/donate/): the giving page. Full-width Beaver Builder custom-module
 * sections, enqueued on the page by inc/hos-donate.php so the sections need no
 * per-section CSS. Standard site chrome, matching the signed-off wireframe.
 * Design-system tokens throughout. Button anchors are coloured with !important
 * so they hold inside the front-end .fl-ds-page wrapper (see GOTCHA 6).
 */

.hos-dn-section { padding: clamp(36px, 5vw, 64px) 0; }

/* Buttons */
.hos-dn-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 16px 30px; border-radius: var(--ds-radius-pill); border: 2px solid transparent; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-intro); line-height: 1; }
a.hos-dn-btn { text-decoration: none !important; }
a.hos-dn-btn--primary { background: var(--ds-color-red-dark); color: var(--ds-color-white) !important; }
a.hos-dn-btn--primary:hover { background: var(--ds-color-red-hover); color: var(--ds-color-white) !important; }
a.hos-dn-btn--light { background: var(--ds-color-white); color: var(--ds-color-heading) !important; }
a.hos-dn-btn--light:hover { background: var(--ds-color-surface); color: var(--ds-color-heading) !important; }
a.hos-dn-btn--dark { background: var(--ds-color-blue-dark); color: var(--ds-color-white) !important; }
a.hos-dn-btn--dark:hover { background: var(--ds-color-heading); color: var(--ds-color-white) !important; }
a.hos-dn-btn--ext::after { content: '\2197'; margin-left: 8px; font-size: 1.05em; line-height: 0; }

/* Hero (23 Sept, Catherine's design notes): surface band, text left, photo right,
   matching the inner-page hero with a picture. */
.hos-dn-hero { background: var(--ds-color-surface); padding: clamp(40px, 6vw, 72px) 0; }
.hos-dn-hero__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 64px); }
.hos-dn-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--ds-space-lg); }
.fl-ds-page .hos-dn-hero h1 { margin: 0 !important; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: var(--ds-letter-display); color: var(--ds-color-heading); }
.fl-ds-page .hos-dn-hero__standfirst { margin: 0 !important; max-width: 46ch; font-size: var(--ds-text-intro); line-height: var(--ds-line-lead); color: var(--ds-color-body); }
.hos-dn-hero__photo { flex: 1 1 380px; width: 100%; max-width: 540px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ds-radius-lg); display: block; }
.fl-ds-page .hos-dn-hero__photo { height: auto; min-width: 0; max-width: 540px; }
@media (max-width: 720px) { .fl-ds-page .hos-dn-hero__photo { max-width: none; aspect-ratio: 16 / 10; } }

/* Intro */
/* Intro: left-aligned text at body size, a portrait photo down the right. */
.hos-dn-intro__wrap { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hos-dn-intro__text { display: flex; flex-direction: column; gap: var(--ds-space-lg); max-width: 68ch; }
.hos-dn-intro__body { display: flex; flex-direction: column; gap: var(--ds-space-md); }
.fl-ds-page .hos-dn-intro__body p { margin: 0 !important; font-size: var(--ds-text-base); line-height: var(--ds-line-body); color: var(--ds-color-body); }
.hos-dn-intro__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; border-radius: var(--ds-radius-lg); display: block; }
.fl-ds-page .hos-dn-intro__photo { height: auto; }

/* What your donation does (grey band, equal-height cards) */
.hos-dn-does { background: var(--ds-color-surface); }
.hos-dn-does__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); }
.hos-dn-does h2 { margin: 0 0 var(--ds-space-xl); font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.15; color: var(--ds-color-heading); }
.hos-dn-does__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.hos-dn-card { border-radius: var(--ds-radius-lg); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: var(--ds-space-sm); }
.hos-dn-card--blue { background: var(--ds-color-blue-tint); }
.hos-dn-card--orange { background: var(--ds-color-orange-tint); }
.hos-dn-card--green { background: var(--ds-color-green-tint); }
.hos-dn-card h3 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: var(--ds-text-h4); line-height: 1.25; color: var(--ds-color-heading); }
.hos-dn-card__body p { margin: 0 0 var(--ds-space-sm); font-size: var(--ds-text-base); line-height: var(--ds-line-body); color: var(--ds-color-body); }
.hos-dn-card__body p:last-child { margin-bottom: 0; }

/* Testimonials */
.hos-dn-quotes__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); }
.hos-dn-quotes h2 { margin: 0 0 var(--ds-space-xs); font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.15; color: var(--ds-color-heading); }
.hos-dn-quotes__sub { margin: 0 0 clamp(28px, 3.5vw, 44px); font-size: var(--ds-text-base); line-height: var(--ds-line-body); color: var(--ds-color-body); }
/* Our impact: quote carousel beside the impact figures */
.fl-ds-page .hos-dn-quotes h2 { margin: 0 0 var(--ds-space-xs) !important; }
.fl-ds-page .hos-dn-quotes__sub { margin: 0 0 clamp(28px, 3.5vw, 44px) !important; }
.hos-dn-impact .hos-dn-stats { background: var(--ds-color-surface); }
.hos-dn-impact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.hos-dn-impact .hos-carousel__slide { padding: 0; }
.hos-dn-impact .hos-carousel__slide > * { max-width: none; }
.hos-dn-impact .hos-carousel__controls { justify-content: flex-start; }
.hos-dn-quote { margin: 0; background: var(--ds-color-blue-tint); border-radius: var(--ds-radius-lg); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: var(--ds-space-md); }
.hos-dn-quote blockquote { margin: 0; padding: 0; border: 0; font-size: var(--ds-text-lead); line-height: var(--ds-line-snug); color: var(--ds-color-heading); }
.hos-dn-quote figcaption { font-size: var(--ds-text-xs); font-weight: var(--ds-weight-semibold); color: var(--ds-color-muted); }


/* Why we need your donations */
.hos-dn-why__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.hos-dn-why__text { display: flex; flex-direction: column; gap: var(--ds-space-lg); }
.hos-dn-why h2 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.15; color: var(--ds-color-heading); }
.hos-dn-why__body p, .hos-dn-why__responsibly p { margin: 0 0 var(--ds-space-md); font-size: var(--ds-text-base); line-height: var(--ds-line-body); color: var(--ds-color-body); }
.hos-dn-why__body p:last-child, .hos-dn-why__responsibly p:last-child { margin-bottom: 0; }
.hos-dn-why h3 { margin: 0 0 var(--ds-space-xs); font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: var(--ds-text-h4); line-height: 1.25; color: var(--ds-color-heading); }
/* Money per client: a simple two-bar chart with a downward arrow. Bar heights
   follow the two figures (block JS; CSS defaults match £660 -> £450). */
.hos-dn-chart { background: var(--ds-color-surface); border-radius: var(--ds-radius-lg); padding: clamp(22px, 3vw, 36px); }
.hos-dn-chart__bars { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(12px, 2vw, 24px); height: 300px; }
.hos-dn-bar { --r: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; text-align: center; }
.hos-dn-bar--now { --r: 0.68; }
.hos-dn-bar__value { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1; color: var(--ds-color-heading); }
.hos-dn-bar__col { display: block; height: calc((100% - 84px) * var(--r)); min-height: 16px; border-radius: var(--ds-radius-md) var(--ds-radius-md) 0 0; background: var(--ds-color-blue-dark); }
.hos-dn-bar--now .hos-dn-bar__col { background: var(--ds-color-red-core); }
.hos-dn-bar__label { font-size: var(--ds-text-xs); line-height: 1.35; color: var(--ds-color-body); }
.hos-dn-chart__arrow { align-self: center; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--ds-radius-pill); background: var(--ds-color-white); color: var(--ds-color-red-dark); font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: 28px; line-height: 1; box-shadow: 0 6px 16px -10px rgba(47, 48, 49, .5); }
.hos-dn-chart__arrow::before { content: "\2198"; }
.hos-dn-stats { background: var(--ds-color-blue-tint); border-radius: var(--ds-radius-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: var(--ds-space-lg); }
.hos-dn-stats .hos-stat { display: flex; flex-direction: column; gap: 4px; }
.hos-dn-stats .hos-stat__value { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--ds-color-red-dark); }
.hos-dn-stats .hos-stat__label { font-size: var(--ds-text-sm); line-height: var(--ds-line-snug); color: var(--ds-color-heading); }

/* Make a donation (orange panel) */
.hos-dn-give__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); }
.hos-dn-give__panel { background: var(--ds-color-red-dark); /* darker orange so white text passes 4.5:1 (agreed in the 24 Sept list) */ border-radius: var(--ds-radius-lg); padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(24px, 3vw, 40px); align-items: center; }
.hos-dn-give__text { display: flex; flex-direction: column; gap: var(--ds-space-sm); }
.hos-dn-give h2 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15; color: var(--ds-color-white); }
.hos-dn-give__body { margin: 0; max-width: 60ch; font-size: var(--ds-text-intro); line-height: 1.55; color: var(--ds-color-white); }
.hos-dn-give__charity { margin: 0; font-size: var(--ds-text-sm); color: var(--ds-color-white); opacity: 0.92; }
.hos-dn-give__cta { display: flex; justify-content: flex-end; }

/* Legacy / larger gift */
.hos-dn-legacy__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); }
.hos-dn-legacy__panel { background: var(--ds-color-blue-tint); border-radius: var(--ds-radius-lg); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 2.6vw, 36px); align-items: center; }
.hos-dn-legacy__text { display: flex; flex-direction: column; gap: var(--ds-space-xs); }
.hos-dn-legacy h3 { margin: 0; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.2; color: var(--ds-color-heading); }
.hos-dn-legacy__text p { margin: 0; font-size: var(--ds-text-base); line-height: var(--ds-line-body); color: var(--ds-color-body); max-width: 64ch; }

/* Grant funders */
.hos-dn-funders__inner { max-width: var(--ds-width-container); margin: 0 auto; padding: 0 var(--ds-space-gutter); }
.hos-dn-funders h2 { margin: 0 0 var(--ds-space-sm); font-family: var(--ds-font-heading); font-weight: var(--ds-weight-bold); font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.15; color: var(--ds-color-heading); }
.hos-dn-funders__intro { margin: 0 0 var(--ds-space-xl); font-size: var(--ds-text-base); line-height: var(--ds-line-body); color: var(--ds-color-body); }
.hos-dn-funders__grid { display: flex; flex-wrap: wrap; gap: var(--ds-space-sm); }
.hos-dn-funder { border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); padding: 12px 18px; font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); color: var(--ds-color-heading); background: var(--ds-color-surface); }
.hos-dn-funders__note { margin: var(--ds-space-lg) 0 0; font-size: var(--ds-text-xs); color: var(--ds-color-muted); }

@media (max-width: 900px) {
	.hos-dn-does__grid { grid-template-columns: 1fr; }
	.hos-dn-why__inner { grid-template-columns: 1fr; }
	.hos-dn-intro__wrap { grid-template-columns: 1fr; }
	.hos-dn-intro__photo { max-width: 420px; }
	.hos-dn-impact { grid-template-columns: minmax(0, 1fr); }
	.hos-dn-impact > * { min-width: 0; }
	.hos-dn-chart__bars { height: 240px; }
	.hos-dn-give__panel { grid-template-columns: 1fr; }
	.hos-dn-give__cta { justify-content: flex-start; }
	.hos-dn-legacy__panel { grid-template-columns: 1fr; align-items: flex-start; }
}

/* Funder logo wall ([hos_funder_logos], fed by the Our funders list) */
.hos-funder-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--ds-space-md); }
.hos-funder-logos__item { display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 18px 22px; background: var(--ds-color-white); border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); text-align: center; }
.hos-funder-logos__item img { display: block; max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.hos-funder-logos__item--name span { font-family: var(--ds-font-heading); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); line-height: 1.3; color: var(--ds-color-heading); }
