/*
Theme Name: Global Relief Foundation
Theme URI: https://theglobalrelief.org/
Description: Custom theme for Global Relief Foundation.
Version: 1.2.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: grf
*/

/* ==========================================================================
   Fonts (self-hosted, Latin subset; SIL Open Font Licence in assets/fonts)
   ========================================================================== */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('assets/fonts/figtree-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/fraunces-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 500; font-display: swap; src: url('assets/fonts/fraunces-latin-500-italic.woff2') format('woff2'); }

/* ==========================================================================
   Design tokens
   Brand colours come from the official GRF logo: navy #234381, green #54AE6C.
   Marigold is the action colour (donate buttons only).
   ========================================================================== */
:root {
  --navy: #234381;           /* brand navy: headings, links, primary buttons */
  --green: #54AE6C;          /* brand green: decorative only (lines, dots) */
  --green-ink: #2F6B1F;      /* green text and focus ring, 6.5:1 on white */
  --marigold: #F4A51C;       /* donate / action colour */
  --marigold-hover: #F8B744;
  --ink: #1F2F42;            /* strongest text */
  --body-ink: #46566A;       /* body text, 7.5:1 on white */
  --muted-ink: #5F6C7B;      /* placeholders and fine print, 5.4:1 */
  --soft-blue: #F2F5F9;
  --soft-green: #F3F7F1;
  --white: #FFFFFF;
  --line: #DFE5EB;           /* decorative dividers */
  --field-border: #7D8A99;   /* form controls, 3.5:1 on white */
  --error: #B42318;
  --on-navy: #E3E9F3;
  --on-navy-accent: #C9E4BF;

  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Type scale: nothing on the site is smaller than --fs-label. */
  --fs-label: 12px;
  --fs-small: 14px;
  --fs-body: 16px;
  --fs-lead: 18px;
  --fs-h3: 20px;
  --fs-h3-lg: 24px;
  --fs-h2: clamp(30px, 1.6vw + 22px, 42px);
  --fs-h1: clamp(38px, 2.6vw + 24px, 58px);
  --fs-hero: clamp(42px, 3.4vw + 22px, 68px);

  --radius: 8px;
  --radius-sm: 6px;
  --rail: min(1280px, calc(100% - 112px));
  --section: clamp(64px, 6vw, 104px);
  --header-h: 88px;
  --bottom-bar-h: 84px;      /* keeps focused elements clear of the floating WhatsApp button */
  --shadow-card: 0 12px 28px rgba(35, 67, 129, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: calc(var(--bottom-bar-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink); background: var(--white); overflow-x: clip; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, hr, pre { margin: 0; font-size: inherit; font-weight: inherit; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.025em; color: var(--navy); text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--green-ink); }
h3 { font-weight: 650; color: var(--navy); }
h2 { font-size: var(--fs-h2); line-height: 1.18; }
p { color: var(--body-ink); line-height: 1.7; }
ol, ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }  /* keep the width/height attributes for layout reservation, not for sizing */
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
svg.icon { stroke-width: 1.75; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; border-radius: 2px; }
.callout :focus-visible, .utility-bar :focus-visible, .skip-link:focus-visible { outline-color: var(--white); }
::selection { background: var(--navy); color: var(--white); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wide-rail { width: var(--rail); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 60; padding: 14px 18px; background: var(--navy); color: var(--white); border-radius: var(--radius-sm); font-weight: 650; }
.skip-link:focus { top: 12px; }

/* Eyebrow labels */
.eyebrow { display: block; font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); line-height: 1.5; margin-bottom: 16px; }

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: var(--radius-sm); font-size: 16px; font-weight: 650; line-height: 1.2; transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.donate-button { background: var(--marigold); color: var(--ink); }
.donate-button:hover { background: var(--marigold-hover); }
.blue-button { background: var(--navy); color: var(--white); }
.blue-button:hover { background: #1B3567; }
.outline-button { background: var(--white); border-color: var(--navy); color: var(--navy); }
.outline-button:hover { background: var(--soft-blue); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; font-weight: 650; color: var(--navy); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
button:disabled { opacity: .6; cursor: wait; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.utility-bar { background: var(--navy); color: var(--white); font-size: 13px; letter-spacing: .02em; }
.utility-bar .wide-rail { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.utility-bar .utility-places { display: flex; gap: 12px; align-items: center; }
.utility-bar i { width: 4px; height: 4px; background: var(--white); opacity: .7; border-radius: 50%; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(6px); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img { height: 56px; width: auto; }
.desktop-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 15px; font-weight: 550; }
.desktop-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--ink); border-radius: var(--radius-sm); }
.desktop-nav a:hover { color: var(--navy); background: var(--soft-blue); }
.desktop-nav a.active { color: var(--navy); }
.desktop-nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--green-ink); }
.header-donate { min-height: 48px; padding-inline: 22px; }
.mobile-menu, .mobile-nav, .mobile-action-bar { display: none; }
.mobile-nav[hidden] { display: none !important; }

/* ==========================================================================
   Home: hero
   ========================================================================== */
.home-hero { background: var(--soft-green); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.hero-content .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-content .eyebrow span { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.hero-content h1 { font-size: var(--fs-hero); line-height: 1.08; }
.hero-content h1 em { white-space: nowrap; }
.hero-lead { font-size: var(--fs-lead); max-width: 34em; margin: 24px 0 32px; }
.hero-footnote { display: flex; align-items: center; gap: 10px; color: var(--body-ink); font-size: var(--fs-small); margin-top: 28px; }
.hero-footnote svg { color: var(--green-ink); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-card); }
.hero-note { position: absolute; left: -28px; bottom: 32px; display: flex; align-items: center; gap: 14px; max-width: 280px; background: var(--white); padding: 16px 20px; border-radius: var(--radius); box-shadow: 0 10px 34px rgba(31, 47, 66, .14); font-size: var(--fs-small); line-height: 1.5; color: var(--body-ink); }
.hero-note svg { color: var(--green-ink); }
.hero-note strong { display: block; color: var(--navy); font-weight: 650; }

/* Mission strip */
.mission-strip { border-bottom: 1px solid var(--line); }
.mission-items { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 28px; }
.mission-items > div { display: flex; align-items: center; gap: 16px; padding-inline: 28px; border-right: 1px solid var(--line); }
.mission-items > div:first-child { padding-left: 0; }
.mission-items > div:last-child { border: 0; }
.mission-items svg { width: 32px; height: 32px; color: var(--green-ink); }
.mission-items span { font-size: 16px; font-weight: 650; color: var(--navy); }
.mission-items small { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--body-ink); margin-top: 4px; }

/* Optional impact figures (only rendered when filled in the Customizer) */
.impact-strip { background: var(--navy); color: var(--white); }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-block: 40px; }
.impact-grid strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 3vw, 44px); line-height: 1.1; color: var(--white); }
.impact-grid span { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--on-navy); }

/* ==========================================================================
   Section headings and programme cards
   ========================================================================== */
.programs-section { padding-block: var(--section) calc(var(--section) * .7); }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: clamp(32px, 7vw, 100px); margin-bottom: 40px; }
.section-heading > div:last-child { max-width: 30em; }
.section-heading p { font-size: var(--fs-body); }
.section-heading .text-link { margin-top: 8px; }
.program-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.program-card { display: flex; flex-direction: column; background: var(--soft-blue); border-radius: var(--radius); padding: 28px 22px 22px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.program-card:nth-child(even) { background: var(--soft-green); }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.program-card:active { transform: translateY(-1px); }
.program-card-media { margin: -28px -22px 20px; }
.program-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.program-icon { color: var(--green-ink); margin-bottom: 20px; }
.program-card h3 { font-size: 18px; line-height: 1.35; }
.program-card p { font-size: 15px; line-height: 1.6; margin-top: 10px; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 20px; font-size: var(--fs-small); font-weight: 650; color: var(--navy); }

/* ==========================================================================
   Story / two-column sections
   ========================================================================== */
.story-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); align-items: center; padding-block: 48px var(--section); }
.page-intro + .story-section { padding-top: calc(var(--section) * .8); }
.story-section figure { position: relative; }
.story-section figure > img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); }
.photo-tag { position: absolute; bottom: 48px; left: -18px; background: var(--navy); color: var(--white); padding: 20px 28px; font-family: var(--font-display); font-size: 22px; line-height: 1.35; border-radius: var(--radius-sm); }
.photo-tag em { font-style: italic; color: var(--on-navy-accent); }
.story-copy h2 { margin-bottom: 4px; }
.story-copy > p { margin-top: 18px; }
.story-copy h3 { font-size: var(--fs-h3); margin-top: 28px; }
.check-list { display: grid; gap: 12px; margin: 22px 0 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-body); color: var(--body-ink); line-height: 1.6; }
.check-list svg { color: var(--green-ink); width: 20px; height: 20px; margin-top: 2px; }

/* Trust pillars (home) */
.trust-section { background: var(--soft-blue); padding-block: var(--section); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-grid article { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.trust-grid svg { color: var(--green-ink); width: 30px; height: 30px; margin-bottom: 18px; }
.trust-grid h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.trust-grid p { font-size: 15px; }
.trust-grid a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Callout band */
.callout { background: var(--navy); color: var(--white); padding-block: 56px; }
.callout-inner { display: flex; align-items: center; gap: 32px; }
.callout-inner > svg { color: var(--on-navy-accent); width: 48px; height: 48px; }
.callout .eyebrow { color: var(--on-navy); margin-bottom: 10px; }
.callout h2 { color: var(--white); }
.callout h2 em { color: var(--on-navy-accent); }
.callout p { color: var(--on-navy); font-size: var(--fs-body); margin-top: 12px; }
.callout-actions { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.light-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 8px; color: var(--white); font-size: 15px; font-weight: 600; }
.light-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--soft-blue); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 52px; width: auto; }
.footer-grid h2 { font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--navy); margin-bottom: 14px; }
.footer-grid p { font-size: var(--fs-small); margin-top: 16px; }
.footer-grid > div > a:not(.brand) { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; color: var(--body-ink); overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.faith { display: inline-block; margin-top: 14px; color: var(--green-ink); font-size: var(--fs-label); letter-spacing: .14em; font-weight: 700; }
.footer-registration { font-size: var(--fs-small); color: var(--body-ink); margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); padding-block: 18px 22px; font-size: var(--fs-small); color: var(--body-ink); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* Floating WhatsApp (desktop) and mobile action bar */
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px; background: var(--green-ink); color: var(--white); border-radius: 999px; box-shadow: 0 6px 22px rgba(31, 47, 66, .22); font-size: 15px; font-weight: 650; transition: transform .18s var(--ease); }
.whatsapp-float:hover { transform: translateY(-2px); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-intro { background: var(--soft-green); padding: 28px 0 64px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--fs-small); color: var(--body-ink); margin-bottom: 28px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs svg { color: var(--muted-ink); }
.page-intro h1 { font-size: var(--fs-h1); line-height: 1.1; max-width: 20ch; }
.page-intro > div > p { max-width: 38em; margin-top: 20px; font-size: var(--fs-lead); }

.vision-section { padding-block: var(--section); background: var(--soft-blue); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); }
.two-column p { margin-top: 20px; }
.editorial-section { padding-block: var(--section); }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.process-list > div { border-top: 3px solid var(--green); padding-top: 22px; }
.process-list h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.process-list p { font-size: var(--fs-body); }
.work-goals { padding-top: 0; }
.source-note { font-size: var(--fs-small); color: var(--body-ink); margin-top: 20px; }

.leadership-section { padding-block: 0 var(--section); }
.leadership-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 32px; }
.leadership-list img, .leader-avatar { width: 100%; height: 300px; object-fit: cover; object-position: center 25%; border-radius: var(--radius); margin-bottom: 18px; }
.leader-avatar { display: grid; place-items: center; background: var(--soft-blue); color: var(--navy); }
.leader-avatar svg { width: 64px; height: 64px; stroke-width: 1.25; }
.leadership-list h3 { font-size: var(--fs-h3); }
.leadership-list p { font-size: 15px; margin-top: 6px; }
.leadership-list .role { font-size: var(--fs-small); font-weight: 650; letter-spacing: .04em; color: var(--green-ink); margin-top: 4px; }
.leadership-list a { display: flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--navy); }

/* Programme detail */
.program-detail { padding-bottom: calc(var(--section) * .7); }
.program-logistics { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 90px); align-items: start; padding-bottom: calc(var(--section) * .8); }
.program-logistics h2 { margin-bottom: 16px; }
.details-panel { padding: 28px 30px; background: var(--soft-blue); border-radius: var(--radius); }
.details-panel h3 { font-size: var(--fs-h3); }
dl { margin-top: 12px; }
dl > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
dl > div:last-child { border-bottom: 0; }
dt { font-size: var(--fs-small); color: var(--body-ink); margin-bottom: 4px; }
dd { margin: 0; font-size: var(--fs-body); font-weight: 600; color: var(--navy); }
dd a { display: inline-flex; align-items: center; min-height: 32px; }
.program-gallery-section { padding-bottom: calc(var(--section) * .8); }
.program-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.program-gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); }
.related-programs { padding-bottom: var(--section); }
.related-programs > div:last-child { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; }
.related-programs a { display: flex; gap: 16px; align-items: center; min-height: 52px; font-size: var(--fs-body); font-weight: 550; color: var(--navy); border-bottom: 1px solid var(--line); }
.related-programs a:hover { border-color: var(--navy); }

/* Donate */
.donation-section { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: clamp(40px, 8vw, 110px); padding-block: var(--section); }
.donation-copy > p { margin-top: 18px; }
.donation-copy > h3 { margin-top: 32px; font-size: var(--fs-h3); }
.donation-copy > h3 + p { margin-top: 10px; }
.transfer-explainer { display: flex; gap: 18px; margin-top: 28px; padding: 22px 0; border-block: 1px solid var(--line); }
.transfer-explainer svg { color: var(--green-ink); }
.transfer-explainer h3 { font-size: 18px; margin-bottom: 6px; }
.bank-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--soft-blue); border: 1px solid var(--line); border-radius: 12px; padding: 36px; box-shadow: var(--shadow-card); }
.bank-card > p { font-size: 15px; margin-top: 8px; }
.bank-card dl > div { padding-block: 16px; }
.bank-card dd { font-size: 17px; overflow-wrap: anywhere; }
.copy-value { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-value span { font-weight: 650; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.copy-value button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 12px; border: 1.5px solid var(--field-border); background: var(--white); border-radius: var(--radius-sm); color: var(--navy); font-size: var(--fs-small); font-weight: 600; flex-shrink: 0; transition: background-color .15s var(--ease); }
.copy-value button > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.copy-value button > span[hidden] { display: none; }
.copy-value button:hover { background: var(--soft-green); }
.copy-value button:active { transform: scale(.97); }
.bank-card .copy-status { min-height: 26px; font-size: var(--fs-small); margin-top: 8px; }
.overseas-giving { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--soft-green); }
.overseas-giving h3 { font-size: 18px; margin-bottom: 8px; }
.overseas-giving p { font-size: 15px; }

/* Get involved */
.involvement-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 86px); align-items: start; padding-block: var(--section); }
.involvement-section figure { position: sticky; top: calc(var(--header-h) + 24px); }
.involvement-section img { width: 100%; height: 600px; object-fit: cover; border-radius: var(--radius); }
.involvement-list article { display: flex; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 28px; }
.involvement-list article:last-child { border-bottom: 0; }
.involvement-list article > svg { color: var(--green-ink); width: 28px; height: 28px; margin-top: 6px; }
.involvement-list h2 { font-size: clamp(26px, 1vw + 20px, 32px); }
.involvement-list p { margin-top: 12px; }

/* Contact */
.contact-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); padding-block: var(--section); }
.contact-details > p { margin-top: 18px; max-width: 26em; }
.contact-item { display: flex; gap: 18px; margin-top: 28px; }
.contact-item > svg { color: var(--green-ink); width: 22px; height: 22px; margin-top: 2px; }
.contact-item h3 { font-size: 17px; margin-bottom: 6px; }
.contact-item p { font-size: var(--fs-body); line-height: 1.6; }
.contact-item a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-weight: 550; }
.contact-item .person-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.contact-item .person-line span { color: var(--body-ink); font-size: 15px; }
.contact-photo { margin-top: 32px; }
.contact-photo img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); }

.contact-form-panel { background: var(--soft-blue); padding: 40px; border-radius: 12px; align-self: start; }
.contact-form-panel h2 { font-size: clamp(28px, 1vw + 22px, 34px); }
.form-intro { font-size: 15px; margin: 10px 0 24px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .field-label { font-size: 15px; font-weight: 650; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--body-ink); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; background: var(--white); border: 1.5px solid var(--field-border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 16px; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 150px; }
.field ::placeholder { color: var(--muted-ink); opacity: 1; }
.field-hint { font-size: var(--fs-small); color: var(--body-ink); }
.field-error { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--error); }
.field-error svg { width: 18px; height: 18px; margin-top: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.consent-field { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 22px; cursor: pointer; }
.consent-field input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--navy); flex-shrink: 0; cursor: pointer; }
.consent-field span { font-size: 15px; line-height: 1.5; color: var(--body-ink); }
.required-note { font-size: var(--fs-small); color: var(--body-ink); margin-bottom: 20px; }
.error-summary { border: 2px solid var(--error); background: var(--white); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px; }
.error-summary h3 { color: var(--error); font-size: 17px; margin-bottom: 8px; }
.error-summary ul { list-style: disc; padding-left: 20px; }
.error-summary li { font-size: 15px; margin-top: 4px; }
.error-summary a { color: var(--error); text-decoration: underline; font-weight: 600; }
.form-error { color: var(--error); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.privacy-note { font-size: var(--fs-small); margin-top: 20px; line-height: 1.6; }
.privacy-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.form-success { padding-block: 48px; }
.form-success svg { color: var(--green-ink); margin-bottom: 20px; }
.form-success p { margin-block: 16px 24px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* 404 and generic pages */
.not-found { padding-block: var(--section); }
.not-found h1 { font-size: var(--fs-h1); }
.not-found p { margin-block: 18px 28px; font-size: var(--fs-lead); }
.not-found-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; }
.not-found-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.entry-content { padding-block: calc(var(--section) * .8) var(--section); max-width: 760px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content p, .entry-content li { font-size: 17px; line-height: 1.7; color: var(--body-ink); }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.entry-content h2 { font-size: clamp(26px, 1vw + 20px, 32px); margin-top: 1.6em; }
.entry-content h3 { font-size: var(--fs-h3); margin-top: 1.4em; }
.entry-content img { height: auto; border-radius: var(--radius); }

/* WordPress admin bar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1150px) {
  :root { --rail: calc(100% - 64px); }
  .desktop-nav { font-size: 14px; gap: 0; }
  .desktop-nav a { padding-inline: 10px; }
  .brand img { height: 48px; }
  .program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { gap: 28px; }
  .mission-items > div { padding-inline: 18px; }
  .hero-note { left: 16px; }
}
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .desktop-nav { display: none; }
  .header-donate { margin-left: auto; }
  .mobile-menu { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--navy); border-radius: var(--radius-sm); }
  .mobile-menu:hover, .mobile-menu:active { background: var(--soft-blue); }
  .mobile-nav { display: grid; padding: 8px 32px 20px; background: var(--white); border-top: 1px solid var(--line); }
  .mobile-nav a { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 550; color: var(--navy); border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a.active { color: var(--green-ink); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-note { display: none; }
  .mission-items { grid-template-columns: 1fr; gap: 18px; }
  .mission-items > div { padding: 0; border: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .story-section, .two-column, .program-logistics, .donation-section, .involvement-section, .contact-section { grid-template-columns: 1fr; }
  .story-section figure > img { height: 420px; }
  .trust-grid { grid-template-columns: 1fr; }
  .callout-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .callout-inner > svg { display: none; }
  .callout-actions { margin: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-list { grid-template-columns: 1fr; gap: 28px; }
  .leadership-list { grid-template-columns: 1fr 1fr; }
  .bank-card, .involvement-section figure { position: static; }
  .involvement-section img { height: 420px; }
  .contact-form-panel, .bank-card { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --rail: calc(100% - 40px); --header-h: 68px; --bottom-bar-h: 64px; }
  .utility-bar { font-size: var(--fs-label); }
  .utility-bar .wide-rail { justify-content: center; min-height: 32px; }
  .utility-bar .utility-tagline { display: none; }
  .brand img { height: 42px; }
  .header-donate { display: none; }
  .mobile-menu { margin-left: auto; }
  .mobile-nav { padding-inline: 20px; }
  .hero-inner { padding-block: 20px 40px; gap: 24px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .hero-content h1 em { white-space: normal; }
  .hero-lead { margin: 18px 0 24px; }
  .button-row .button { flex: 1 1 100%; }
  .program-grid { grid-template-columns: 1fr; gap: 12px; }
  .program-card { padding: 22px 20px; }
  .program-card-media { margin: -22px -20px 18px; }
  .story-section { padding-block: 28px 56px; }
  .story-section figure > img { height: 300px; }
  .photo-tag { left: 12px; bottom: 16px; font-size: 18px; padding: 14px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-top: 44px; padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom)); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-intro { padding: 16px 0 44px; }
  .breadcrumbs ol { margin-bottom: 16px; }
  .leadership-list { grid-template-columns: 1fr; }
  .leadership-list img, .leader-avatar { height: 320px; }
  .leader-avatar { height: 160px; }
  .program-gallery { grid-template-columns: 1fr; }
  .program-gallery img { height: 230px; }
  .involvement-section img { height: 300px; }
  .contact-form-panel { padding: 24px 20px; }
  .bank-card { padding: 24px 20px; }
  .copy-value { flex-wrap: wrap; }
  .whatsapp-float { display: none; }
  /* One action bar on phones instead of three floating/sticky buttons */
  .mobile-action-bar { position: fixed; inset: auto 0 0; z-index: 35; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(31, 47, 66, .08); }
  .mobile-action-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; }
  .mobile-action-bar .bar-donate { background: var(--marigold); color: var(--ink); }
  .mobile-action-bar .bar-whatsapp { background: var(--green-ink); color: var(--white); }
}
@media (min-width: 641px) { .site-footer { padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .utility-bar, .site-header, .whatsapp-float, .mobile-action-bar, .callout, .site-footer { display: none !important; } }
#page-content:focus { outline: none; }
