/* ==========================================================================
   VIN-JPIC Africa & Madagascar — Global Design System
   Brand: Justice · Peace · Integrity of Creation
   Primary #01296C · Secondary #3E9A04 · Accent #D5F081
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --c-primary: #01296C;
  --c-primary-700: #021f52;
  --c-primary-900: #01163a;
  --c-primary-300: #2f4f9b;
  --c-secondary: #3E9A04;
  --c-secondary-700: #2f7603;
  --c-accent: #D5F081;
  --c-accent-soft: #eef8d2;

  /* Neutrals */
  --c-ink: #11203b;
  --c-body: #43506b;
  --c-muted: #6b7894;
  --c-line: #e3e8f0;
  --c-surface: #ffffff;
  --c-surface-2: #f5f8fc;
  --c-surface-3: #eef3fa;
  --c-white: #ffffff;

  /* Semantic */
  --c-gold: #f0a500;

  /* Typography */
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing & layout */
  --container: 1200px;
  --container-wide: 1340px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(1, 41, 108, .06);
  --shadow-sm: 0 4px 14px rgba(1, 41, 108, .08);
  --shadow-md: 0 14px 40px rgba(1, 41, 108, .12);
  --shadow-lg: 0 30px 70px rgba(1, 41, 108, .18);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s var(--ease); }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--c-ink);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: var(--container-wide); }
.section { padding: clamp(50px, 6vw, 88px) 0; }
.section--tight { padding: clamp(38px, 4.5vw, 60px) 0; }
.section--surface { background: var(--c-surface-2); }
.section--ink { background: var(--c-primary-900); color: #d6def0; }
.section--ink h2, .section--ink h3 { color: #fff; }
.bg-pattern { background-image: radial-gradient(var(--c-surface-3) 1.4px, transparent 1.4px); background-size: 26px 26px; }

.grid { display: grid; gap: 24px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 720px; }
.measure-sm { max-width: 560px; }

/* ---------- Eyebrow / section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-secondary-700);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2.5px; border-radius: 2px; background: var(--c-secondary); }
.eyebrow--light { color: var(--c-accent); }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-lead { margin-top: 14px; font-size: 1.08rem; color: var(--c-muted); }
.section--ink .section-lead { color: #b9c4dc; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-primary);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 15px 30px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn svg { width: 18px; height: 18px; }
.btn--secondary { --btn-bg: var(--c-secondary); }
.btn--accent { --btn-bg: var(--c-accent); --btn-fg: var(--c-primary-900); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-primary); box-shadow: inset 0 0 0 2px var(--c-line); }
.btn--ghost:hover { --btn-bg: var(--c-primary); --btn-fg:#fff; box-shadow: var(--shadow-md); }
.btn--white { --btn-bg:#fff; --btn-fg: var(--c-primary); }
.btn--outline-light { --btn-bg: transparent; --btn-fg:#fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.btn--outline-light:hover { --btn-bg:#fff; --btn-fg: var(--c-primary); }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--c-secondary-700); }
.text-link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--c-primary); }
.text-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar { background: var(--c-primary-900); color: #c4cee4; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #dbe3f3; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contact li { display: flex; align-items: center; gap: 7px; }
.topbar__contact svg { width: 15px; height: 15px; color: var(--c-accent); }
.topbar__social { display: flex; gap: 8px; }
.topbar__social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); }
.topbar__social a:hover { background: var(--c-secondary); }
.topbar__social svg { width: 14px; height: 14px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(1,41,108,.08); transition: box-shadow .35s var(--ease), background .35s var(--ease); }
.site-header.is-stuck { box-shadow: 0 8px 30px rgba(1,41,108,.10); background: rgba(255,255,255,.96); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; transition: transform .3s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand__mark { height: 50px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__link { font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--c-ink); padding: 9px 15px; border-radius: var(--radius-pill); position: relative; white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease); }
.nav__link:hover { color: var(--c-primary); background: var(--c-surface-2); }
.nav__link.is-active { color: var(--c-primary); }
.nav__link.is-active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 2px; width: 20px; height: 3px; border-radius: 3px; background: var(--c-secondary); }
.nav__menu .btn { display: none; }
.nav__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__actions .btn { padding: 12px 24px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--c-surface-2); }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--c-primary); margin: 5px auto; border-radius: 2px; transition: .3s var(--ease); }
.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
   ========================================================================== */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; min-height: min(92vh, 800px); }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity 1.2s var(--ease), visibility 1.2s var(--ease), transform 1.2s var(--ease); }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 1; }
.hero__slide-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__slide-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.16); }
.hero__slide.is-active .hero__slide-media img { animation: heroZoom 7.5s ease-out forwards; }
.hero__slide-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(108deg, rgba(1,18,48,.95) 0%, rgba(1,30,76,.82) 44%, rgba(1,33,82,.42) 100%),
    linear-gradient(0deg, rgba(1,18,48,.72), rgba(1,18,48,0) 58%);
}
.hero__inner { width: 100%; padding: clamp(70px, 9vw, 110px) 0 clamp(120px, 16vw, 170px); }
.hero__eyebrow { color: var(--c-accent); }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 4.1rem); color: #fff; max-width: 17ch; }
.hero__title .hl { color: var(--c-accent); position: relative; }
.hero__text { margin-top: 20px; font-size: 1.16rem; color: #dde5f4; max-width: 56ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* Slide content entrance animation (keyframe-based so it replays on every slide) */
.hero__inner .eyebrow,
.hero__inner .hero__title,
.hero__inner .hero__text,
.hero__inner .hero__cta { opacity: 0; }
.hero__slide.is-active .eyebrow { animation: heroReveal .9s var(--ease) .3s both; }
.hero__slide.is-active .hero__title { animation: heroReveal 1s var(--ease) .46s both; }
.hero__slide.is-active .hero__text { animation: heroReveal .9s var(--ease) .64s both; }
.hero__slide.is-active .hero__cta { animation: heroRevealUp .9s var(--ease) .8s both; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(38px); filter: blur(10px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes heroRevealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { from { transform: scale(1.16); } to { transform: scale(1); } }

/* Arrows */
.hero__arrow { position: absolute; top: 44%; z-index: 6; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); transition: background .25s var(--ease), transform .25s var(--ease); }
.hero__arrow:hover { background: var(--c-secondary); border-color: var(--c-secondary); transform: scale(1.08); }
.hero__arrow svg { width: 24px; height: 24px; }
.hero__arrow--prev { left: clamp(12px, 3vw, 32px); }
.hero__arrow--next { right: clamp(12px, 3vw, 32px); }

/* Dots */
.hero__dots { position: absolute; bottom: clamp(96px, 14vw, 128px); left: 0; right: 0; z-index: 6; display: flex; justify-content: center; gap: 10px; }
.hero__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all .3s var(--ease); }
.hero__dot:hover { background: rgba(255,255,255,.6); }
.hero__dot.is-active { width: 34px; border-radius: 6px; background: var(--c-accent); }

/* Shared glass stats bar */
.hero__statsbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: linear-gradient(0deg, rgba(1,18,48,.86), rgba(1,18,48,.32)); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.12); }
.hero__statsbar-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 0; }
.hero__stat { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 8px; position: relative; }
.hero__stat + .hero__stat::before { content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.14); }
.hero__stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: #fff; line-height: 1; }
.hero__stat-num .plus { color: var(--c-accent); }
.hero__stat-label { font-size: .82rem; color: #c2cce0; margin-top: 6px; }

/* Page hero (interior pages) */
.page-hero { position: relative; color: #fff; isolation: isolate; padding: clamp(80px, 12vw, 150px) 0 clamp(54px, 7vw, 90px); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(1,22,58,.93), rgba(1,33,82,.74)); }
.page-hero__title { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; max-width: 18ch; }
.page-hero__text { margin-top: 18px; font-size: 1.12rem; color: #dde5f4; max-width: 60ch; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #aebbd6; margin-bottom: 22px; }
.breadcrumbs a { color: var(--c-accent); }
.breadcrumbs span { opacity: .6; }

/* ==========================================================================
   Marquee / partners strip
   ========================================================================== */
.trust { padding: 30px 0; border-bottom: 1px solid var(--c-line); }
.trust__label { text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-bottom: 20px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust__item { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; color: var(--c-primary); font-size: .95rem; background: var(--c-surface-2); border: 1px solid var(--c-line); padding: 9px 18px; border-radius: var(--radius-pill); transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.trust__item:hover { transform: translateY(-2px); border-color: var(--c-secondary); box-shadow: var(--shadow-xs); }
.trust__item svg { width: 18px; height: 18px; color: var(--c-secondary); }

/* ==========================================================================
   Cards & generic content
   ========================================================================== */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

/* Intro split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.prose p + p { margin-top: 18px; }
.prose p { color: var(--c-body); }
.lead { font-size: 1.22rem; color: var(--c-ink); font-weight: 500; }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; object-position: 50% 26%; }
.media-frame--tall img { aspect-ratio: 3/3.6; object-position: 50% 30%; }
.media-badge { position: absolute; bottom: 18px; left: 18px; right: 18px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px; }
.media-badge__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-secondary-700); flex-shrink: 0; }
.media-badge__icon svg { width: 24px; height: 24px; }
.media-badge strong { display: block; font-family: var(--font-head); color: var(--c-ink); font-size: 1.05rem; }
.media-badge span { font-size: .86rem; color: var(--c-muted); }

.checklist { display: grid; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--c-secondary); flex-shrink: 0; margin-top: 2px; }
.checklist b { color: var(--c-ink); font-family: var(--font-head); }

/* Pillars / values grid */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding: 34px 30px; }
.feature__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(140deg, var(--c-accent-soft), #fff); color: var(--c-secondary-700); margin-bottom: 22px; box-shadow: var(--shadow-xs); }
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.28rem; margin-bottom: 10px; }
.feature p { font-size: .98rem; color: var(--c-body); }
.feature--ink { background: linear-gradient(160deg, var(--c-primary), var(--c-primary-900)); color: #cdd7ec; border: 0; }
.feature--ink h3 { color: #fff; }
.feature--ink .feature__icon { background: rgba(255,255,255,.1); color: var(--c-accent); }

/* ==========================================================================
   Program cards (image)
   ========================================================================== */
.program { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); isolation: isolate; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; z-index: -2; transition: transform .7s var(--ease); }
.program::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(1,22,58,.94) 8%, rgba(1,22,58,.35) 58%, rgba(1,22,58,.1) 100%); transition: background .4s var(--ease); }
.program:hover img { transform: scale(1.07); }
.program__body { padding: 30px; }
.program__tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary-900); background: var(--c-accent); padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.program h3 { color: #fff; font-size: 1.42rem; margin-bottom: 8px; }
.program p { color: #d4ddef; font-size: .96rem; max-width: 42ch; }
.program__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--c-accent); }
.program__link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.program:hover .program__link svg { transform: translateX(4px); }
.program--lg { min-height: 520px; }

/* Detailed program rows */
.prog-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.prog-row + .prog-row { margin-top: clamp(54px, 7vw, 96px); }
.prog-row--reverse .prog-row__media { order: 2; }
.prog-row__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.prog-row__media img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; object-position: 50% 22%; }
.prog-row__num { font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--c-secondary); letter-spacing: .1em; }
.prog-row h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 14px; }
.prog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--c-primary); background: var(--c-surface-3); padding: 7px 14px; border-radius: var(--radius-pill); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-900)); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(62,154,4,.32), transparent 65%); }
.stats-band::after { content: ""; position: absolute; left: -80px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(213,240,129,.18), transparent 65%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.stat { text-align: center; padding: 12px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: #fff; }
.stat__num .suffix { color: var(--c-accent); }
.stat__label { margin-top: 12px; color: #b9c4dc; font-size: .96rem; }
.stat + .stat { position: relative; }
.stat__divider { border-left: 1px solid rgba(255,255,255,.12); }

/* ==========================================================================
   Quote / charism
   ========================================================================== */
.quote-block { max-width: 940px; margin-inline: auto; text-align: center; }
.quote-block__mark { font-family: Georgia, serif; font-size: 5rem; line-height: .6; color: var(--c-accent); }
.quote-block blockquote { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.32; letter-spacing: -.02em; color: #fff; margin: 18px 0 26px; }
.quote-block cite { font-style: normal; color: var(--c-accent); font-weight: 600; }
.quote-block cite span { display: block; color: #a9b6d3; font-weight: 400; font-size: .9rem; margin-top: 4px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn { font-family: var(--font-head); font-weight: 600; font-size: .92rem; padding: 10px 20px; border-radius: var(--radius-pill); color: var(--c-body); background: var(--c-surface-2); border: 1px solid var(--c-line); transition: .25s var(--ease); }
.filter-btn:hover { color: var(--c-primary); border-color: var(--c-primary-300); }
.filter-btn.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.masonry { columns: 3; column-gap: 20px; }
.masonry__item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-xs); cursor: pointer; }
.masonry__item img { width: 100%; transition: transform .6s var(--ease); }
.masonry__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1,22,58,.82), transparent 50%); opacity: 0; transition: opacity .35s var(--ease); }
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item:hover::after { opacity: 1; }
.masonry__cap { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; opacity: 0; transform: translateY(8px); transition: .35s var(--ease); z-index: 2; }
.masonry__item:hover .masonry__cap { opacity: 1; transform: translateY(0); }
.is-hidden { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(1,16,42,.92); display: none; align-items: center; justify-content: center; padding: 30px; backdrop-filter: blur(4px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #dbe3f3; font-size: .95rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-secondary); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Approach / steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 36px 28px 30px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--c-primary); color: #fff; margin-bottom: 20px; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { font-size: .96rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { position: relative; isolation: isolate; color: #fff; overflow: hidden; border-radius: clamp(20px, 4vw, 36px); padding: clamp(48px, 7vw, 86px) clamp(28px, 6vw, 80px); }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(1,22,58,.95), rgba(47,118,3,.78)); }
.cta__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta p { color: #e4ebf6; margin-top: 16px; font-size: 1.1rem; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; }

/* ==========================================================================
   News / updates
   ========================================================================== */
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card__media { overflow: hidden; aspect-ratio: 16/10; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--c-muted); margin-bottom: 12px; }
.post-card__cat { color: var(--c-secondary-700); font-weight: 700; font-family: var(--font-head); }
.post-card h3 { font-size: 1.22rem; line-height: 1.3; margin-bottom: 10px; }
.post-card h3 a:hover { color: var(--c-secondary-700); }
.post-card p { font-size: .96rem; flex: 1; }
.post-card__foot { margin-top: 18px; }

/* ==========================================================================
   Get involved cards
   ========================================================================== */
.involve-card { padding: 38px 32px; text-align: left; display: flex; flex-direction: column; }
.involve-card__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 24px; }
.involve-card__icon svg { width: 32px; height: 32px; }
.involve-card--donate .involve-card__icon { background: linear-gradient(140deg, var(--c-secondary), var(--c-secondary-700)); }
.involve-card--volunteer .involve-card__icon { background: linear-gradient(140deg, var(--c-primary-300), var(--c-primary)); }
.involve-card--partner .involve-card__icon { background: linear-gradient(140deg, var(--c-gold), #d98a00); }
.involve-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.involve-card p { flex: 1; }
.involve-card .btn { margin-top: 24px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--c-line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.field label .req { color: var(--c-secondary); }
.field input, .field textarea, .field select {
  padding: 14px 16px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-surface-2); color: var(--c-ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-primary-300); background: #fff; box-shadow: 0 0 0 4px rgba(1,41,108,.08);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .84rem; color: var(--c-muted); }
.form-status { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600; margin-bottom: 20px; }
.form-status.is-show { display: block; }
.form-status--ok { background: var(--c-accent-soft); color: var(--c-secondary-700); }

/* Account / donation details cards */
.account-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.account-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.account-card + .account-card { margin-top: 20px; }
.account-card__head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px dashed var(--c-line); }
.account-card__badge { flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; color: #fff; background: linear-gradient(140deg, var(--c-secondary), var(--c-secondary-700)); box-shadow: var(--shadow-xs); }
.account-card--usd .account-card__badge { background: linear-gradient(140deg, var(--c-primary-300), var(--c-primary)); }
.account-card__head h3 { font-size: 1.22rem; }
.account-card__head p { font-size: .88rem; color: var(--c-muted); margin-top: 3px; }
.account-list { display: grid; }
.account-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--c-surface-3); }
.account-list li:last-child { border-bottom: 0; }
.account-list span { font-size: .9rem; color: var(--c-muted); }
.account-list strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--c-ink); letter-spacing: .01em; text-align: right; }
.account-list .account-num { font-size: 1.22rem; letter-spacing: .06em; color: var(--c-primary); }

/* Contact info list */
.contact-list { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 16px; }
.contact-item__icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: var(--c-accent-soft); color: var(--c-secondary-700); display: grid; place-items: center; }
.contact-item__icon svg { width: 24px; height: 24px; }
.contact-item h4 { font-family: var(--font-head); color: var(--c-ink); font-size: 1.05rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: var(--c-body); font-size: .98rem; }
.contact-item a:hover { color: var(--c-secondary-700); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--c-line); }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ==========================================================================
   FAQ / accordion
   ========================================================================== */
.accordion { max-width: 820px; margin-inline: auto; }
.acc-item { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 22px 26px; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--c-ink); }
.acc-trigger__icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--c-surface-3); display: grid; place-items: center; transition: .3s var(--ease); }
.acc-trigger__icon svg { width: 18px; height: 18px; color: var(--c-primary); }
.acc-trigger[aria-expanded="true"] .acc-trigger__icon { background: var(--c-secondary); transform: rotate(180deg); }
.acc-trigger[aria-expanded="true"] .acc-trigger__icon svg { color: #fff; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel__inner { padding: 0 26px 24px; color: var(--c-body); }

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--c-secondary), var(--c-accent)); }
.tl-item { position: relative; padding: 0 0 36px 64px; }
.tl-item::before { content: ""; position: absolute; left: 14px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--c-secondary); box-shadow: var(--shadow-xs); }
.tl-item__year { font-family: var(--font-head); font-weight: 800; color: var(--c-primary); font-size: 1.1rem; }
.tl-item h4 { font-family: var(--font-head); margin: 4px 0 6px; color: var(--c-ink); }
.tl-item p { font-size: .98rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-primary-900); color: #aab6d2; padding-top: clamp(56px, 7vw, 90px); }
.footer-cta { background: linear-gradient(135deg, var(--c-secondary), var(--c-secondary-700)); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 52px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; margin-bottom: 70px; box-shadow: var(--shadow-lg); }
.footer-cta h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.footer-cta p { color: #e7f3da; margin-top: 8px; }
.newsletter { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 220px; padding: 15px 18px; border-radius: var(--radius-pill); border: 0; background: rgba(255,255,255,.95); color: var(--c-ink); }
.newsletter input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-brand__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand__logo img { height: 48px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand__logo span { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cdd7ec; transition: .25s var(--ease); }
.footer-social a:hover { background: var(--c-secondary); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 20px; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: #aab6d2; font-size: .95rem; }
.footer-col a:hover { color: var(--c-accent); padding-left: 4px; }
.footer-contact li { display: flex; gap: 11px; font-size: .94rem; margin-bottom: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--c-secondary); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom a { color: #aab6d2; }
.footer-bottom a:hover { color: var(--c-accent); }
.footer-bottom__links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); z-index: 90; }
.to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-secondary); }
.to-top svg { width: 22px; height: 22px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__slide-media img { animation: none !important; transform: none !important; }
  .hero__slide { transform: none !important; }
  .hero__inner .eyebrow, .hero__inner .hero__title, .hero__inner .hero__text, .hero__inner .hero__cta { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 14px; } .mt-4 { margin-top: 28px; } .mt-6 { margin-top: 40px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-primary); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 999; }
.skip-link:focus { left: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .masonry { columns: 2; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav__menu { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; padding: 18px 20px 28px; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--c-line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .28s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { background: var(--c-surface-2); }
  .nav__toggle { display: block; }
  .nav__actions .btn { display: none; }
  .nav__menu .btn { display: flex; margin-top: 10px; }
  .split, .prog-row, .prog-row--reverse, .cta__inner, .stats-grid, .footer-cta { grid-template-columns: 1fr; }
  .split--reverse .split__media, .prog-row--reverse .prog-row__media { order: 0; }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .stat__divider { border-left: 0; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; }
  /* Mobile/tablet hero: flow layout so the stats bar sits BELOW the content */
  .hero { min-height: 0; }
  .hero__arrow { display: none; }
  .hero__slides { position: relative; }
  .hero__slide { position: relative; }
  .hero__slide:not(.is-active) { display: none; }
  .hero__inner { padding: clamp(60px, 11vw, 86px) 0 40px; }
  .hero__statsbar { position: relative; background: var(--c-primary-900); border-top: 0; }
  .hero__dots { bottom: auto; top: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__contact { display: none; }
  .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.9rem; max-width: 100%; }
  .hero__text { font-size: 1rem; margin-top: 14px; }
  .hero__cta { margin-top: 22px; gap: 10px; }
  .hero__statsbar-inner { grid-template-columns: 1fr; gap: 9px; padding: 18px 0; }
  .hero__stat { flex-direction: row; align-items: baseline; gap: 10px; padding: 2px 4px; }
  .hero__stat + .hero__stat::before { display: none; }
  .hero__stat-num { font-size: 1.4rem; }
  .hero__stat-label { margin-top: 0; font-size: .8rem; }
  .hero__cta .btn, .cta__actions .btn { flex: 1; }
  .trust { padding: 24px 0; }
  .trust__label { margin-bottom: 16px; font-size: .72rem; }
  .trust__row { gap: 9px; }
  .trust__item { font-size: .84rem; padding: 8px 14px; gap: 7px; }
  .trust__item svg { width: 16px; height: 16px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}
