/* The Uganda Partnership Society — site styles
   Palette drawn from the logo: sunset red → orange → gold on warm ink. */

:root {
  --ink: #1f1a17;
  --ink-2: #3b332e;
  --muted: #6b605a;
  --cream: #fbf8f3;
  --sand: #f4ece0;
  --sand-2: #eadfcd;
  --line: #e4d9c8;
  --red: #b8322a;
  --orange: #d9601f;
  --orange-ink: #b44c14; /* AA on cream for small text */
  --gold: #f0b23a;
  --white: #fff;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(31, 26, 23, .06), 0 8px 24px rgba(31, 26, 23, .08);
  --shadow-lg: 0 2px 4px rgba(31, 26, 23, .06), 0 24px 48px rgba(31, 26, 23, .14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 600; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; font-variation-settings: 'opsz' 36; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
h1 em { color: var(--gold); font-weight: 500; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: .9rem; }
.eyebrow-light { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 40em; }
.lead-dark { font-size: 1.15rem; color: var(--ink-2); }
.big-text { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.5; color: var(--ink); font-variation-settings: 'opsz' 36; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { transition: transform .15s ease; }
.btn:hover .icon { transform: translateX(2px); }
.btn-sm { padding: .65em 1.15em; font-size: .92rem; }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 16px rgba(217, 96, 31, .28); }
.btn-primary:hover { background: var(--red); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light, .btn-ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover, .btn-ghost-light:hover { background: var(--white); color: var(--ink); }
.btn-ghost-light { backdrop-filter: blur(4px); background: rgba(255,255,255,.08); }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--orange-ink); text-decoration: none; }
.text-link .icon { transition: transform .15s ease; }
a:hover .text-link .icon, .text-link:hover .icon { transform: translateX(3px); }
.text-link.small { font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 248, 243, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(31,26,23,.06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-small { font-weight: 400; color: var(--muted); }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: .55em .9em; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.primary-nav a:hover { background: var(--sand); color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-cta-mobile { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .primary-nav ul {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(31,26,23,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  .primary-nav ul.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { background: transparent; color: var(--orange-ink); }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { margin-top: 16px; border: 0; text-align: center; background: var(--orange); color: var(--white) !important; border-radius: 999px; font-weight: 600; }
}
@media (max-width: 420px) { .brand-text { font-size: 1rem; } .brand-small { display: none; } .brand img { width: 44px; } }

/* ---------- Heroes ---------- */
.hero, .page-hero { position: relative; color: var(--white); isolation: isolate; overflow: hidden; }
.hero-media, .page-hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after, .page-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,15,12,.82) 0%, rgba(20,15,12,.55) 45%, rgba(20,15,12,.12) 100%),
              linear-gradient(0deg, rgba(20,15,12,.55) 0%, transparent 40%);
}
.hero { min-height: min(88vh, 820px); display: flex; align-items: center; }
.hero-content { padding-top: 96px; padding-bottom: 160px; }
.hero h1, .page-hero h1 { color: var(--white); max-width: 14em; }
.hero .lead, .page-hero .lead { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions.center { justify-content: center; }
.page-hero { min-height: 520px; display: flex; align-items: flex-end; }
.page-hero-content { padding-top: 120px; padding-bottom: 72px; }
.page-hero-compact { min-height: 400px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
@media (max-width: 700px) {
  .hero-media::after, .page-hero-media::after { background: linear-gradient(0deg, rgba(20,15,12,.88) 10%, rgba(20,15,12,.45) 70%, rgba(20,15,12,.3) 100%); }
  .hero { align-items: flex-end; }
  .hero-content { padding-bottom: 130px; }
  .page-hero { min-height: 440px; }
}

/* ---------- Stats ---------- */
.stats-section { position: relative; z-index: 2; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.stats li { padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats-overlap { margin-top: -84px; }
.stat-value { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; line-height: 1; color: var(--ink); font-variation-settings: 'opsz' 144; }
.stats li:nth-child(1) .stat-value { color: var(--red); }
.stats li:nth-child(2) .stat-value { color: var(--orange); }
.stats li:nth-child(3) .stat-value { color: #c88a12; }
.stat-label { font-size: .95rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats li { padding: 24px 20px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: 0 0 var(--section); }
.section-sand { background: var(--sand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; max-width: 18em; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center h2 { margin-inline: auto; }
.section-lead { margin: 14px 0 0; max-width: 42em; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.split-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; object-fit: cover; }
.framed { position: relative; }
.framed::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--gold), var(--orange) 55%, var(--red)); z-index: -1; opacity: .9; }
.split-media.framed { isolation: isolate; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split > .split-media { order: -1; margin-right: 18px; }
}

.pillars, .give-list, .aside-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.pillars li, .give-list li, .aside-list li { display: flex; gap: 16px; align-items: flex-start; }
.pillars .icon, .give-list .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--sand); color: var(--orange-ink); }
.pillars strong, .give-list strong { display: block; color: var(--ink); }
.pillars span, .give-list span { color: var(--muted); font-size: .98rem; }

/* ---------- Feature (home) ---------- */
.feature { position: relative; padding: clamp(64px, 10vw, 140px) 0; isolation: isolate; }
.feature-media { position: absolute; inset: 0; z-index: -1; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,15,12,.15), rgba(20,15,12,.5)); }
.feature-card { max-width: 520px; margin-left: auto; background: var(--cream); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.feature-stat { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; margin: 20px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; line-height: 1.4; }
.feature-stat strong { font-family: var(--font-display); font-size: 2.3rem; color: var(--red); line-height: 1; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 28px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid-3 { grid-template-columns: 1fr; } }

.story-card, .partner-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.story-card:hover, .partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.story-card-link, .partner-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.story-card-media, .partner-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-2); }
.story-card-media img, .partner-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card:hover img, .partner-card:hover img { transform: scale(1.04); }
.story-card-body, .partner-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.story-card-body p, .partner-card-body p { color: var(--muted); font-size: .98rem; }
.story-card-body .text-link, .partner-card-body .text-link { margin-top: auto; }
.tag { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.94); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.story-card[hidden], .gallery li[hidden] { display: none; }

.chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--orange-ink); background: #fdf0e6; padding: 4px 10px; border-radius: 999px; }

/* ---------- Ways (home) ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.way { display: flex; flex-direction: column; padding: 36px 32px; background: var(--white); border-radius: var(--radius-lg); text-decoration: none; color: inherit; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.way:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.way > .icon { width: 52px; height: 52px; padding: 12px; border-radius: 14px; color: var(--white); background: var(--orange); margin-bottom: 20px; }
.way:nth-child(1) > .icon { background: var(--red); }
.way:nth-child(3) > .icon { background: #c88a12; }
.way p { color: var(--muted); }
.way .text-link { margin-top: auto; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* ---------- Verse band ---------- */
.verse-band { padding: clamp(64px, 8vw, 104px) 0; text-align: center; }
.verse-sand { background: var(--sand); }
.verse-dark { background: var(--ink); color: rgba(255,255,255,.85); background-image: radial-gradient(ellipse at top, rgba(217,96,31,.22), transparent 60%); }
.verse-band blockquote { margin: 0; }
.verse-band p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.4; color: var(--ink); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 72; }
.verse-dark p { color: var(--white); }
.verse-band footer { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--orange-ink); }
.verse-dark footer { color: var(--gold); }
.verse-icon { width: 40px; height: 40px; color: var(--orange); margin: 0 auto 20px; }

blockquote.pull { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--orange); }
blockquote.pull p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; color: var(--ink); font-style: italic; margin-bottom: .5em; font-variation-settings: 'opsz' 36; }
blockquote.pull footer { font-size: .92rem; color: var(--muted); font-weight: 600; }
.pull-large p { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, var(--orange) 60%, #e58a22 100%); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; max-width: 18em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); max-width: 36em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- About ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { padding: clamp(32px, 4vw, 52px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.mv-card-accent { background: var(--ink); border-color: var(--ink); }
.mv-card-accent .eyebrow { color: var(--gold); }
.mv-text { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; color: var(--ink); margin: 0; font-variation-settings: 'opsz' 36; }
.mv-card-accent .mv-text { color: var(--white); }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--orange), var(--red)); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--orange); }
.timeline-year { font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.timeline h3 { margin: 2px 0 6px; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .98rem; }

.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 36px 28px; }
.person-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sand-2); margin-bottom: 18px; max-width: 200px; box-shadow: 0 0 0 6px var(--white), var(--shadow); }
.section-sand .person-photo { box-shadow: 0 0 0 6px var(--cream), var(--shadow); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.15rem; margin-bottom: 2px; }
.person p { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
@media (max-width: 520px) { .people { grid-template-columns: 1fr 1fr; gap: 28px 18px; } }

/* ---------- Impact ---------- */
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { padding: 16px 20px; background: var(--white); border-radius: 12px; border-left: 4px solid var(--orange); color: var(--muted); font-size: .98rem; }
.facts strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin-right: 4px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip-btn { border: 1.5px solid var(--line); background: var(--white); color: var(--ink-2); padding: .55em 1.1em; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: all .15s ease; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Story / partner detail ---------- */
.story-header { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); background: var(--sand); margin-bottom: clamp(40px, 6vw, 72px); }
.story-header-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story-header h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.story-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3.3; object-fit: cover; box-shadow: var(--shadow-lg); }
.story-person { font-weight: 600; color: var(--muted); }
.story-stat { display: inline-flex; align-items: baseline; gap: 12px; background: var(--white); padding: 14px 20px; border-radius: 14px; margin-top: 8px; color: var(--muted); font-size: .95rem; line-height: 1.35; box-shadow: var(--shadow); }
.story-stat strong { font-family: var(--font-display); font-size: 2rem; color: var(--red); line-height: 1; white-space: nowrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--muted); margin-bottom: 24px; }
.back-link:hover { color: var(--ink); }
@media (max-width: 860px) { .story-header-grid { grid-template-columns: 1fr; } .story-cover { order: -1; } }

.prose { padding-bottom: var(--section); font-size: 1.125rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--ink); }
.prose > p:first-child { font-size: 1.25rem; color: var(--ink); line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--sand-2); }
.gallery-item img { width: 100%; transition: transform .4s ease, opacity .2s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,11,9,.94); color: var(--white); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15,11,9,.94); }
.lightbox figure { margin: 0; max-width: min(1100px, 88vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { margin-top: 14px; color: rgba(255,255,255,.8); font-size: .95rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: var(--white); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button .icon { width: 26px; height: 26px; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox-nav.prev, .lightbox-nav.next { top: auto; bottom: 24px; transform: none; } .lightbox-nav.prev { left: calc(50% - 64px); } .lightbox-nav.next { right: calc(50% - 64px); } }

.testimonial { padding: var(--section) 0; background: var(--sand); }

/* ---------- Get involved ---------- */
.jump-nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 10; }
.jump-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.jump-nav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: .55em 1em; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.jump-nav a:hover { background: var(--sand); color: var(--ink); }
.jump-nav .icon { color: var(--orange); }

.prayer-list { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.prayer-list li { counter-increment: p; position: relative; padding: 18px 20px 18px 64px; background: var(--white); border-radius: 14px; color: var(--ink-2); }
.prayer-list li::before { content: counter(p); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--orange-ink); font-weight: 700; font-family: var(--font-display); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-form { background: var(--white); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-form h2 { font-size: 1.8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field label span { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px; padding: .8em .95em; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(217,96,31,.15); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status.ok { color: #2f7a3e; }
.form-status.err { color: var(--red); }
.aside-card { background: var(--sand); padding: 32px; border-radius: var(--radius-lg); }
.aside-card h2 { font-size: 1.5rem; }
.aside-list .icon { color: var(--orange-ink); margin-top: 4px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.not-found { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 72px 0 0; font-size: .98rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.brand-footer { color: var(--white); margin-bottom: 16px; }
.brand-footer img { background: var(--white); border-radius: 10px; padding: 4px; }
.footer-heading { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.site-footer .muted { color: rgba(255,255,255,.6); }
.site-footer .btn { margin-bottom: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; padding-bottom: 32px; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-bottom p { margin: 0; }
.footer-bottom .verse { font-style: italic; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
