/* =========================================================
   Pedicare Foundation — stylesheet
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --teal: #1a8794;
  --teal-dark: #126570;
  --teal-soft: #e6f3f4;
  --navy: #1b2d5c;
  --navy-deep: #121f43;
  --pink: #e2416a;
  --pink-dark: #c72f57;
  --pink-soft: #fdebf0;
  --orange: #f2a124;
  --green: #6fab3f;
  --purple: #774ea1;

  --ink: #1d2740;
  --text: #4a5670;
  --muted: #6c7891;
  --line: #e4e9ef;
  --bg: #ffffff;
  --tint: #f5f8fa;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18, 31, 67, .06), 0 2px 8px rgba(18, 31, 67, .04);
  --shadow: 0 12px 32px -14px rgba(18, 31, 67, .22);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, iframe { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .55em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-tint { background: var(--tint); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.eyebrow-pink { color: var(--pink); }
.body-lg { font-size: 1.12rem; }
.accent { color: var(--pink); font-style: italic; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--teal); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.section-intro { max-width: 460px; margin: 0; color: var(--muted); }
.center-row { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent; font: 800 .95rem/1.2 var(--font-body); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(226,65,106,.6); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--teal-soft); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Icons ---------- */
.icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; font-size: 1.15rem; }
.icon-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.35rem; }
.icon-xl { width: 72px; height: 72px; border-radius: 18px; font-size: 1.7rem; }
.icon.teal   { background: var(--teal-soft); color: var(--teal); }
.icon.pink   { background: var(--pink-soft); color: var(--pink); }
.icon.navy   { background: #e8ebf3; color: var(--navy); }
.icon.orange { background: #fdf2e0; color: #c97c06; }
.icon.green  { background: #edf5e6; color: #4f8a24; }
.icon.purple { background: #f1ebf7; color: var(--purple); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: #c4cde0; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #c4cde0; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--orange); margin-right: 6px; }
.topbar-contact { display: flex; gap: 24px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); font-weight: 600; letter-spacing: -.01em; }
.brand-text small { font-size: .6rem; letter-spacing: .4em; color: var(--teal); font-weight: 800; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--tint); color: var(--navy); }
.site-nav a.active { color: var(--teal); background: var(--teal-soft); }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.hero::after { content: ""; position: absolute; right: -12%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(26,135,148,.10), transparent 65%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.hero .lead { font-size: 1.2rem; max-width: 560px; }
.hero-pillars { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 560px; }
.hero-pillars li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.hero-pillars i { color: var(--teal); }
.hero-visual { position: relative; }
.hero-logo { background: #fff; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 16%; box-shadow: 0 30px 60px -24px rgba(18,31,67,.28); max-width: 420px; margin-inline: auto; border: 1px solid var(--line); }
.hero-note { position: absolute; left: -24px; bottom: -18px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-note i { font-size: 1.5rem; color: var(--pink); }
.hero-note strong { display: block; color: var(--navy); line-height: 1.2; }
.hero-note span { font-size: .85rem; color: var(--muted); }

/* ---------- Page header ---------- */
.page-header { background: var(--navy); color: #c9d2e6; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--pink), var(--orange), var(--teal)); }
.page-header::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { font-size: 1.15rem; max-width: 620px; margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .85rem; margin-bottom: 18px; }
.breadcrumb a { color: #8fd2d9; }
.breadcrumb i { font-size: .6rem; opacity: .6; }

/* ---------- Cards & grids ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon { margin-bottom: 20px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: .97rem; color: var(--muted); }
.feature-cta { background: var(--teal); border-color: var(--teal); display: flex; flex-direction: column; justify-content: center; }
.feature-cta h3, .feature-cta p, .feature-cta .link-arrow { color: #fff; }
.feature-cta p { margin-bottom: 18px; color: rgba(255,255,255,.85); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }

.serve-panel { background: var(--tint); border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--line); }
.serve-panel h3 { margin-bottom: 20px; }
.serve-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.serve-list li { display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px 16px; border-radius: 12px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); line-height: 1.3; }
.serve-list span { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.serve-list-lg li { padding: 22px; font-size: 1.05rem; }

/* Values */
.value-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.value-row li { display: flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border: 1px solid var(--line); border-radius: 14px; font-weight: 800; color: var(--navy); background: #fff; box-shadow: var(--shadow-sm); }
.value-row .icon { width: 42px; height: 42px; border-radius: 10px; font-size: 1rem; }

/* Statements */
.statement { padding: 40px; }
.statement .icon { margin-bottom: 22px; }
.statement-text { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--navy); margin: 0; }

/* Approach */
.approach { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: a; }
.approach li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.approach-num { font-family: var(--font-head); font-size: .95rem; color: var(--muted); }
.approach i { font-size: 1.5rem; color: var(--teal); }
.approach strong { color: var(--navy); line-height: 1.3; }
.approach-stacked { grid-template-columns: 1fr; gap: 10px; }
.approach-stacked li { flex-direction: row; align-items: center; padding: 16px 20px; gap: 16px; }
.approach-stacked i { width: 24px; text-align: center; font-size: 1.2rem; }

/* Programmes */
.programme-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.programme { display: flex; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .2s, box-shadow .2s; }
.programme:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.programme h2 { font-size: 1.45rem; margin-bottom: 8px; }
.programme p { margin: 0; }
.programme-num { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.programme:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Partner */
.partner-card { display: flex; align-items: flex-start; gap: 18px; padding: 24px; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.partner-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.partner-card h3 { margin-bottom: 4px; font-size: 1.12rem; }
.partner-card p { margin: 0; font-size: .97rem; color: var(--muted); }
.partner-go { margin-left: auto; align-self: center; color: var(--line); transition: color .2s, transform .2s; }
.partner-card:hover .partner-go { color: var(--teal); transform: translateX(3px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 18px; }
.steps p { margin: 0; color: var(--muted); }

/* Give teaser */
.give-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quick-pay { background: var(--navy); border-radius: var(--radius-lg); padding: 12px 32px; box-shadow: var(--shadow); }
.quick-pay-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.quick-pay-row:last-child { border-bottom: 0; }
.quick-pay-row span { color: #9fb0d0; font-weight: 700; font-size: .9rem; }
.quick-pay-row strong { color: #fff; font-size: 1.2rem; letter-spacing: .03em; }
.quick-pay-row small { color: #9fb0d0; font-weight: 600; }

/* Donate */
.donate-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.bank-card { background: var(--navy); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.bank-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.bank-head h2 { color: #fff; font-size: 1.6rem; margin: 0; }
.bank-head p { margin: 0; color: #9fb0d0; font-size: .95rem; }
.detail-list { background: #fff; border-radius: var(--radius); padding: 6px 24px; margin: 0; }
.detail-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.detail-row dd { margin: 4px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: .02em; word-break: break-word; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; border: 1px solid var(--line); background: #fff; color: var(--teal); padding: 7px 12px; border-radius: 8px; font: 700 .82rem var(--font-body); cursor: pointer; transition: .15s; letter-spacing: 0; }
.copy-btn:hover { border-color: var(--teal); background: var(--teal-soft); }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }

.pay-col { display: flex; flex-direction: column; gap: 18px; }
.pay-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.pay-body { flex: 1; min-width: 0; }
.pay-label { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pay-body strong { display: block; font-size: 1.45rem; color: var(--navy); letter-spacing: .03em; line-height: 1.3; }
.pay-body small { color: var(--muted); font-size: .88rem; }
.notice { display: flex; gap: 14px; background: var(--teal-soft); border-radius: var(--radius); padding: 20px 22px; color: var(--ink); font-size: .97rem; }
.notice i { color: var(--teal); font-size: 1.2rem; margin-top: 3px; }
.notice p { margin: 0; }
.notice a { font-weight: 700; word-break: break-all; }
.thank-you { text-align: center; max-width: 640px; }
.thank-you > i { font-size: 2.6rem; color: var(--pink); margin-bottom: 18px; }

/* CTA band */
.cta-band { background: var(--teal); color: #e2f4f6; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: -100px; top: -140px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,255,255,.06); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.8rem; }
.contact-list { display: grid; gap: 18px; margin: 28px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list div > span { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a, .contact-list p { display: block; margin: 0; color: var(--ink); font-weight: 700; word-break: break-word; }
.contact-list a:hover { color: var(--teal); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; }

.contact-form { padding: 40px; box-shadow: var(--shadow); }
.contact-form h2 { font-size: 1.6rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--pink); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26,135,148,.14); }
.has-error input, .has-error textarea { border-color: var(--pink); }
.field-error { display: block; color: var(--pink-dark); font-size: .87rem; font-weight: 600; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .97rem; line-height: 1.5; }
.alert i { margin-top: 3px; }
.alert.success { background: #ecf6e5; color: #3b6c18; }
.alert.error { background: var(--pink-soft); color: var(--pink-dark); }
.form-note { margin: 14px 0 0; text-align: center; font-size: .87rem; color: var(--muted); }
.form-note i { margin-right: 4px; }

.not-found { text-align: center; padding: 120px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9b5cf; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; padding: 72px 0 48px; }
.brand-light img { background: #fff; border-radius: 50%; padding: 3px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: #8fd2d9; }
.footer-about p { margin: 18px 0 0; max-width: 320px; }
.footer-tag { font-family: var(--font-head); font-style: italic; color: #fff; }
.site-footer h3 { font-family: var(--font-body); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #a9b5cf; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--orange); margin-top: 6px; width: 16px; }
.footer-contact a { word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .87rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 40; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--teal); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Gallery ---------- */
.gallery-toolbar { margin-bottom: 32px; }
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: .93rem; transition: .15s; }
.filter-tab span { font-size: .78rem; background: var(--tint); color: var(--muted); padding: 1px 8px; border-radius: 999px; }
.filter-tab:hover { border-color: var(--teal); color: var(--teal); }
.filter-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-tab.active span { background: rgba(255,255,255,.18); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item[hidden] { display: none; }
.gallery-link { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-link:hover img, .gallery-link:focus-visible img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px; background: linear-gradient(180deg, transparent 40%, rgba(18,31,67,.82)); color: #fff; opacity: 0; transition: opacity .25s; }
.gallery-link:hover .gallery-overlay, .gallery-link:focus-visible .gallery-overlay { opacity: 1; }
.gallery-album { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9fe0e6; }
.gallery-caption { font-weight: 700; line-height: 1.35; font-size: .95rem; }
.gallery-overlay i { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.2); border-radius: 8px; font-size: .85rem; }
@media (hover: none) { .gallery-overlay { opacity: 1; background: linear-gradient(180deg, transparent 60%, rgba(18,31,67,.75)); } .gallery-overlay i { display: none; } }

.empty-state { text-align: center; padding: 64px 32px; max-width: 680px; margin: 0 auto; }
.empty-state .icon { margin: 0 auto 22px; }
.empty-state p { color: var(--muted); }
.empty-state .center-row { margin-top: 20px; }

body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,34,.94); display: flex; align-items: center; justify-content: center; padding: 64px 80px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 8px; opacity: 0; transition: opacity .25s; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lb-figure img.loaded { opacity: 1; }
.lb-figure figcaption { text-align: center; color: #d6deec; display: flex; flex-direction: column; gap: 2px; max-width: 720px; }
.lb-album { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8fd2d9; }
.lb-caption { color: #fff; font-weight: 700; }
.lb-count { font-size: .85rem; color: #8d9abb; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }

@media (max-width: 1080px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-link { border-radius: 12px; }
  .gallery-overlay { display: none; }
  .gallery-toolbar .filter-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery-toolbar .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; }
  .lightbox { padding: 64px 12px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-figure img { max-height: calc(100vh - 200px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .approach { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a:not(.btn) { padding: 8px 10px; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 12px; }
  .site-nav .btn { margin: 10px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-grid, .split, .give-teaser, .donate-layout, .contact-layout, .programme-list, .cols-2 { grid-template-columns: 1fr; }
  .hero-grid, .split, .give-teaser { gap: 44px; }
  .hero-visual { order: -1; max-width: 300px; margin-inline: auto; }
  .hero-note { display: none; }
  .steps { grid-template-columns: 1fr; }
  .topbar-loc { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { width: calc(100% - 32px); }
  .topbar-contact { gap: 16px; font-size: .8rem; }
  .topbar-contact a:last-child { display: none; }
  .nav-wrap { height: 68px; }
  .brand-text strong { font-size: 1.4rem; }
  .cols-4, .approach, .serve-list, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .statement, .bank-card, .contact-form, .serve-panel { padding: 24px; }
  .detail-list { padding: 4px 16px; }
  .detail-row dd { font-size: 1.05rem; }
  .copy-btn span { display: none; }
  .programme { flex-direction: column; gap: 16px; padding: 24px; }
  .pay-card { padding: 20px; gap: 14px; }
  .pay-body strong { font-size: 1.2rem; }
  .quick-pay { padding: 6px 22px; }
  .btn-row .btn, .cta-actions .btn { flex: 1 1 100%; }
  .cta-actions { width: 100%; }
}
