/* ==========================================================================
   Isnad Charity — Main stylesheet
   1. Tokens  2. Base  3. Layout  4. Buttons & chips  5. Header  6. Hero
   7. Sections  8. Programs  9. Cards  10. Media  11. Gallery  12. Forms
   13. Donate  14. Footer  15. Modals  16. Utilities  17. Responsive
   ========================================================================== */

/* 1. Tokens */
:root {
  --navy: #1B4689;
  --sky: #1DA9E1;
  --ink: #10223F;
  --stone: #F5F2EC;
  --stone-2: #EDE8DF;
  --line: #E4DED3;
  --line-2: #D6CFC2;
  --muted: #5A6780;
  --body: #3D4C66;
  --ice: #E3F4FB;
  --sky-soft: #8FD3F0;
  --on-navy: #DCE6F5;
  --on-ink: #C9D6EC;
  --white: #fff;

  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;

  --container: 1240px;
  --gutter: 24px;
  --radius: 28px;
  --radius-sm: 18px;
  --header-h: 80px;
  --shadow: 0 30px 60px -20px rgba(16, 34, 63, .35);
  --shadow-sm: 0 18px 40px -12px rgba(16, 34, 63, .22);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sky); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
body.no-scroll { overflow: hidden; }

/* 3. Layout */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 104px; }
.section--tight { padding-block: 72px; }
.section--stone2 { background: var(--stone-2); }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.section--ink { background: var(--ink); color: var(--white); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.split--center { align-items: center; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head p { max-width: 440px; color: var(--muted); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--sky); letter-spacing: .3px; }
.section--navy .eyebrow, .section--ink .eyebrow { color: var(--sky-soft); }
.h-section { font-weight: 700; font-size: clamp(30px, 4vw, 50px); color: var(--navy); margin-top: 12px; }
.section--navy .h-section, .section--ink .h-section { color: var(--white); }
.lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--body); line-height: 1.9; }

/* 4. Buttons & chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.3;
  transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--sky { background: var(--sky); color: var(--white); }
.btn--sky:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--ice); color: var(--navy); }
.btn--outline-light { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.3); }
.btn--outline-light:hover { background: rgba(255,255,255,.22); color: var(--white); }
.btn-link {
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sky);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.arw { display: inline-block; transition: transform .2s; }
[dir="ltr"] .arw { transform: scaleX(-1); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-2); background: var(--white); color: var(--navy);
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: all .2s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.tag { display: inline-block; background: var(--ice); color: var(--navy); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }

/* 5. Header */
.topbar { background: var(--ink); color: var(--on-ink); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar__group { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: var(--on-ink); }
.topbar a:hover { color: var(--white); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 236, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(16,34,63,.35); background: rgba(245,242,236,.97); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .25s; }
.site-header.is-scrolled .site-header__inner { height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; transition: height .25s; }
.site-header.is-scrolled .brand img { height: 44px; }

.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); white-space: nowrap; position: relative; padding-block: 6px; }
.nav a:hover { color: var(--sky); }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--sky); }

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.lang-toggle {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 13px; color: var(--navy); font-family: var(--f-display);
}
.lang-toggle:hover { border-color: var(--navy); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--white);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; top: var(--drawer-top, 68px); z-index: 45;
  background: var(--stone); padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s;
}
.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a.drawer__link {
  font-family: var(--f-display); font-size: 22px; font-weight: 600; color: var(--ink);
  padding: 14px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
}
.drawer a.drawer__link.is-active { color: var(--navy); }
.drawer__foot { margin-top: 24px; display: grid; gap: 12px; }
.drawer__contact { font-size: 14px; color: var(--muted); line-height: 1.9; margin-top: 12px; }

/* 6. Hero */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 64px 40px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px;
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.hero__title { font-weight: 800; font-size: clamp(46px, 7.2vw, 96px); line-height: 1.05; color: var(--navy); margin: 28px 0 24px; }
.hero__title span { color: var(--sky); }
.hero__text { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.9; color: var(--body); max-width: 560px; }
.hero .btn-row { margin-top: 36px; }

.hero__media { position: relative; height: clamp(440px, 52vw, 600px); }
.hero__bands { position: absolute; top: 8%; bottom: 22%; inset-inline-start: 28%; inset-inline-end: -6%; display: flex; flex-direction: column; gap: 14px; }
.hero__bands span { flex: 1; border-start-end-radius: 999px; border-end-end-radius: 999px; background: var(--sky); opacity: .14; }
.hero__bands span:nth-child(2) { opacity: .22; }
.hero__bands span:nth-child(3) { background: var(--navy); opacity: .14; }

.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: #DCD5C8; }
.hero__main { position: absolute; top: 0; inset-inline-start: 0; width: 64%; height: 100%; box-shadow: var(--shadow); z-index: 1; }
.hero__main video, .hero__main img { width: 100%; height: 100%; object-fit: cover; }
.hero__sub { position: absolute; bottom: 4%; inset-inline-end: 0; width: 44%; aspect-ratio: 3 / 4; border: 6px solid var(--stone); z-index: 2; box-shadow: var(--shadow-sm); }
.hero__sub img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.hero__stat {
  position: absolute; top: 10%; inset-inline-end: 4%; z-index: 3; background: var(--white);
  border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow-sm); animation: float 5s ease-in-out infinite;
}
.hero__stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 34px; color: var(--navy); line-height: 1; }
.hero__stat span { display: block; font-size: 14px; color: var(--body); margin-top: 6px; }
.hero__mute {
  position: absolute; bottom: 18px; inset-inline-start: 18px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(16,34,63,.6); color: var(--white); font-size: 15px; display: grid; place-items: center;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); padding-bottom: 72px; }
.stat { padding: 24px 24px 0 0; }
[dir="ltr"] .stat { padding: 24px 24px 0 0; }
.stat b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3vw, 36px); color: var(--navy); line-height: 1.4; }
.stat span { color: var(--muted); font-size: 15px; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; padding-block: 72px 64px; border-bottom: 1px solid var(--line); }
.page-hero__bands { position: absolute; top: 18%; bottom: 18%; inset-inline-end: -4%; width: 34%; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.page-hero__bands span { flex: 1; background: var(--sky); opacity: .12; border-start-start-radius: 999px; border-end-start-radius: 999px; }
.page-hero__bands span:nth-child(2) { opacity: .2; }
.page-hero__bands span:nth-child(3) { background: var(--navy); opacity: .12; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; position: relative; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sky); }
.page-hero h1 { font-weight: 800; font-size: clamp(38px, 5.6vw, 72px); color: var(--navy); margin: 18px 0 16px; position: relative; }
.page-hero .lede { max-width: 620px; position: relative; }

/* 7. Sections — About band */
.about-band__logo { position: absolute; inset-inline-end: -60px; top: 50%; transform: translateY(-50%); height: 118%; width: auto; opacity: .07; pointer-events: none; }
.about-band .container { position: relative; }
.pillars { display: grid; gap: 28px; margin-top: 32px; }
.pillar { border-top: 1px solid rgba(255,255,255,.22); padding-top: 20px; }
.pillar h3 { font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--on-navy); line-height: 1.95; }

.goals { background: var(--stone); color: var(--ink); border-radius: var(--radius); padding: 40px 36px; }
.goals h3 { font-weight: 700; font-size: 24px; color: var(--navy); margin-bottom: 12px; }
.goals ol { list-style: none; margin: 0; padding: 0; counter-reset: goal; }
.goals li { counter-increment: goal; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.75; }
.goals li:last-child { border-bottom: 0; }
.goals li::before { content: counter(goal, decimal-leading-zero); font-family: var(--f-display); font-weight: 700; color: var(--sky); font-size: 15px; }

/* 8. Programs (interactive) */
.programs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.prog-list { display: flex; flex-direction: column; }
.prog-item {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  padding: 20px; border-radius: var(--radius-sm); transition: background .25s;
}
.prog-item:focus-visible { outline: 3px solid var(--sky); }
.prog-item__n { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--sky); }
.prog-item__t { display: block; font-family: var(--f-display); font-weight: 600; font-size: 21px; color: var(--ink); line-height: 1.4; }
.prog-item__d { display: block; font-size: 15px; line-height: 1.7; margin-top: 4px; color: var(--muted); }
.prog-item .arw { font-size: 22px; color: var(--sky); }
.prog-item:hover { background: rgba(27,70,137,.06); }
.prog-item.is-active { background: var(--navy); }
.prog-item.is-active .prog-item__n, .prog-item.is-active .arw { color: var(--sky-soft); }
.prog-item.is-active .prog-item__t { color: var(--white); }
.prog-item.is-active .prog-item__d { color: var(--on-ink); }
.prog-visual { position: sticky; top: calc(var(--header-h) + 30px); }
.prog-visual__frame { aspect-ratio: 4 / 5; position: relative; }
.prog-visual__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.prog-visual__cap { position: absolute; inset: auto 0 0 0; padding: 28px; background: linear-gradient(transparent, rgba(16,34,63,.85)); }
.prog-visual__cap h3 { color: var(--white); font-weight: 700; font-size: 26px; margin-bottom: 12px; }

.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.program-card { background: var(--white); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.program-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.program-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.program-card:hover .program-card__img img { transform: scale(1.04); }
.program-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-card__n { font-family: var(--f-display); font-weight: 700; color: var(--sky); font-size: 14px; }
.program-card h3 { font-weight: 600; font-size: 22px; color: var(--ink); }
.program-card p { color: var(--muted); line-height: 1.8; }
.program-card .btn-link { margin-top: auto; padding-top: 8px; }

/* 9. Cards */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.story-feature img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.story-feature__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.story-feature h3 { font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; color: var(--ink); }
.story-feature p { color: var(--body); line-height: 1.9; }
.story-card { background: var(--white); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.story-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.story-card h3 { font-weight: 600; font-size: 20px; line-height: 1.45; color: var(--ink); }
.story-card p { color: var(--muted); line-height: 1.8; font-size: 15px; }

.cta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cta-card { border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.cta-card h3 { font-weight: 700; font-size: 26px; }
.cta-card p { line-height: 1.85; }
.cta-card .btn { margin-top: auto; align-self: flex-start; }
.cta-card--navy { background: var(--navy); color: var(--white); }
.cta-card--navy p { color: var(--on-navy); }
.cta-card--sky { background: var(--sky); color: var(--white); }
.cta-card--sky p { color: #F0FAFE; }
.cta-card--stone { background: var(--white); border: 1px solid var(--line); }
.cta-card--stone h3 { color: var(--navy); }
.cta-card--stone p { color: var(--body); }

.panel { background: var(--stone); border-radius: var(--radius); padding: 40px 36px; display: flex; flex-direction: column; }
.panel--ink { background: var(--ink); color: var(--white); }
.panel--ink .lede { color: var(--on-ink); }
.panel h3 { font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); color: var(--navy); margin: 10px 0 16px; }
.panel--ink h3 { color: var(--white); }
.note { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0 28px; font-size: 15px; line-height: 1.8; color: var(--body); }
.note::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); margin-top: 9px; }
.note b { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.step { padding: 28px 0 8px; padding-inline-end: 28px; position: relative; }
.step::before { content: ""; position: absolute; top: -9px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--sky); border: 3px solid var(--white); }
.step__n { font-family: var(--f-display); font-weight: 700; color: var(--sky); font-size: 14px; }
.step h3 { font-weight: 600; font-size: 20px; color: var(--ink); margin: 6px 0; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.75; }

.honors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.honor { border-radius: 24px; overflow: hidden; background: var(--white); }
.honor img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.honor p { padding: 18px 22px; font-weight: 600; color: var(--ink); }

/* 10. Media — videos */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.video-card {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: block;
  border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 14; background: var(--ink); transition: transform .25s;
}
.video-card:hover { transform: translateY(-4px); }
.video-card:focus-visible { outline: 3px solid var(--sky); }
.video-card video { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(16,34,63,.85)); }
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center;
}
.video-card__play::before { content: ""; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid var(--navy); margin-left: 5px; }
.video-card__title { position: absolute; bottom: 18px; inset-inline: 20px; z-index: 1; color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.4; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; border-bottom: 1px solid var(--line-2); }
.tab { border: 0; background: none; padding: 14px 6px; margin-inline-end: 22px; font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--muted); position: relative; }
.tab.is-active { color: var(--navy); }
.tab.is-active::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--sky); border-radius: 3px; }

/* 11. Gallery — balanced columns with flush bottom edge (see js/gallery.js) */
.gallery { display: flex; gap: 16px; align-items: flex-start; }
.gallery__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery__item {
  all: unset; box-sizing: border-box; cursor: zoom-in; display: block; min-height: 0;
  border-radius: var(--radius-sm); overflow: hidden; background: #DCD5C8; position: relative;
}
.gallery__item:focus-visible { outline: 3px solid var(--sky); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.5;
  background: linear-gradient(transparent, rgba(16,34,63,.8)); opacity: 0; transition: opacity .25s;
}
.gallery__item:hover figcaption { opacity: 1; }

/* 12. Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--body); }
.input, .select, .textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  font-size: 16px; outline: none; transition: border-color .2s;
}
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--sky); }
.panel--ink .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: var(--white); letter-spacing: 2px; }
.panel--ink .input::placeholder { color: #8C9BB8; letter-spacing: 0; }
.panel--ink label { color: var(--on-ink); }
.input-group { display: flex; gap: 10px; flex-wrap: wrap; }
.input-group .input { flex: 1; min-width: 180px; }
.form-msg { padding: 16px 18px; border-radius: 14px; font-size: 15px; line-height: 1.8; display: none; }
.form-msg.is-visible { display: block; }
.form-msg--ok { background: rgba(29,169,225,.16); }
.form-msg--err { background: rgba(230,110,90,.18); }
.panel--ink .form-msg--ok { background: rgba(29,169,225,.2); }

/* 13. Donate */
.donate-card { background: var(--white); border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); }
.donate-card__step { font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0 0 14px; }
.donate-card__step:not(:first-child) { margin-top: 28px; }
.cause-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cause {
  text-align: start; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); transition: all .2s;
}
.cause:hover { border-color: var(--sky); }
.cause.is-active { border-color: var(--sky); background: var(--ice); }
.cause b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.cause span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.amounts { display: flex; gap: 10px; flex-wrap: wrap; }
.amount { padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-weight: 700; font-size: 16px; font-family: var(--f-display); }
.amount.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.amounts .input { flex: 1; min-width: 130px; border-radius: 999px; padding: 12px 18px; }
.donate-summary { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: var(--stone); line-height: 1.8; color: var(--body); }
.donate-note { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; line-height: 1.7; display: none; }
.donate-note.is-visible { display: block; }

.bank { background: var(--navy); color: var(--white); border-radius: 24px; padding: 28px 30px; position: relative; overflow: hidden; }
.bank__logo { position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); height: 130%; width: auto; opacity: .12; pointer-events: none; }
.bank__label { font-size: 14px; color: #BFD8F2; font-weight: 600; position: relative; }
.bank__row { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; position: relative; }
.bank__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: 3px; direction: ltr; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-item { background: var(--white); border-radius: 20px; padding: 22px 24px; }
.contact-item small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-item strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 17px; color: var(--ink); margin-top: 6px; line-height: 1.6; word-break: break-word; }
.contact-item a { color: var(--ink); }
.contact-item a:hover { color: var(--sky); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* 14. Footer */
.site-footer { background: var(--ink); color: var(--on-ink); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 0; }
.site-footer__logo { height: 60px; width: auto; }
.site-footer__about { margin-top: 20px; line-height: 1.9; font-size: 15px; max-width: 380px; }
.site-footer h4 { color: var(--white); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--white); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-block: 20px 28px; font-size: 13px; color: #8C9BB8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 15. Modals */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(10,20,40,.93); display: none; align-items: center; justify-content: center; padding: 64px 24px; }
.modal.is-open { display: flex; }
.modal img, .modal video { max-width: 100%; max-height: 82vh; border-radius: 16px; background: #000; }
.modal__cap { position: absolute; bottom: 22px; inset-inline: 24px; text-align: center; color: var(--white); font-size: 15px; }
.modal__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: var(--white); font-size: 20px; display: grid; place-items: center; }
.modal__btn:hover { background: rgba(255,255,255,.28); }
.modal__close { top: 18px; inset-inline-end: 18px; }
.modal__prev { top: 50%; inset-inline-start: 18px; transform: translateY(-50%); }
.modal__next { top: 50%; inset-inline-end: 18px; transform: translateY(-50%); }
[dir="ltr"] .modal__prev .arw, [dir="ltr"] .modal__next .arw { transform: scaleX(-1); }

/* 16. Utilities */
figure { margin: 0; }
.tabs-bar { position: sticky; top: 68px; z-index: 20; background: rgba(245,242,236,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding-top: 8px; }
.tabs-bar .tabs { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-88 { margin-top: 88px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* 17. Responsive */
@media (max-width: 1100px) {
  .nav { gap: 18px; font-size: 14px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section { padding-block: 72px; }
  .topbar { display: none; }
  .nav, .header-actions .btn--donate { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 44px; }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 32px; }
  .hero__media { height: clamp(380px, 92vw, 560px); }
  .split, .programs { grid-template-columns: 1fr; gap: 40px; }
  .prog-visual { position: relative; top: 0; order: -1; }
  .prog-visual__frame { aspect-ratio: 16 / 11; border-radius: 200px 200px 24px 24px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-feature { grid-template-columns: 1fr; }
  .story-feature img { min-height: 0; aspect-ratio: 16 / 10; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-card { min-height: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .honors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 56px; }
  .page-hero { padding-block: 48px 44px; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; --radius: 22px; }
  body { font-size: 15px; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 32px; }
  .hero__title { margin: 20px 0 16px; }
  .hero .btn-row .btn { flex: 1 1 auto; }
  .hero__main { width: 72%; }
  .hero__sub { width: 46%; border-width: 4px; }
  .hero__stat { padding: 12px 14px; inset-inline-end: 0; }
  .hero__stat b { font-size: 26px; }
  .hero__stat span { font-size: 12px; }
  .stat { padding: 18px 12px 0 0; }
  .story-grid { grid-template-columns: 1fr; }
  .video-grid { gap: 12px; }
  .video-card { border-radius: 16px; }
  .video-card__play { width: 48px; height: 48px; }
  .video-card__title { font-size: 14px; bottom: 12px; inset-inline: 12px; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-inline-start: 2px solid var(--navy); }
  .step { padding: 0 0 28px; padding-inline-start: 26px; }
  .step::before { top: 4px; inset-inline-start: -9px; }
  .honors { grid-template-columns: 1fr; }
  .panel, .goals, .donate-card { padding: 28px 22px; }
  .form-row, .contact-grid { grid-template-columns: 1fr; }
  .cause-grid { grid-template-columns: 1fr 1fr; }
  .prog-item { grid-template-columns: 40px 1fr auto; padding: 16px 14px; gap: 10px; }
  .prog-item__t { font-size: 18px; }
  .prog-item__d { font-size: 14px; }
  .gallery, .gallery__col { gap: 10px; }
  .gallery__item { border-radius: 12px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .modal__prev, .modal__next { top: auto; bottom: 18px; transform: none; }
  .modal__cap { bottom: 80px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tab { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
