/* ============================================
   M.A.R.C.H for Christ — Design tokens
   ============================================ */
:root {
  --ink: #1C3553;
  --ink-soft: #2C4D70;
  --accent: #3E86C6;
  --accent-soft: #DCEBF7;
  --gold: #D99A2B;
  --gold-soft: #FBF0DC;
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --border: #E4E9F0;
  --text: #33475B;
  --text-muted: #6B7C93;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -16px rgba(28, 53, 83, 0.18);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 156px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--surface { background: var(--surface); }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.6em;
  display: inline-block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #4A3105; }
.btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(217, 154, 43, 0.55); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: rgba(255,255,255,0.16); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-light:hover { background: rgba(255,255,255,0.26); }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo img { height: 120px; }
@media (max-width: 860px) { .nav-logo img { height: 64px; } }
@media (max-width: 480px) { .nav-logo img { height: 52px; } }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
}

/* --- Hero --- */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
  z-index: 2;
}
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.15rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-pulse {
  position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
}
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner img { max-width: 320px; margin: 0 auto; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
}

/* --- Pillars (MARCH path) --- */
.pillars-path {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 56px;
  position: relative;
}
.pillars-path::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.pillar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.pillar-icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--bg);
  position: relative;
}
.pillar-icon-circle--medical { background: #D9455C; }
.pillar-icon-circle--action { background: #4F9B5E; }
.pillar-icon-circle--relief { background: #E0A930; }
.pillar-icon-circle--counseling { background: #3E86C6; }
.pillar-icon-circle--healing { background: #7B5EA7; }
.pillar-letter-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(28,53,83,0.25);
}
.pillar h4 { margin-bottom: 6px; font-size: 1.05rem; }
.pillar p { font-size: 0.92rem; color: var(--text-muted); max-width: 22ch; }

@media (max-width: 760px) {
  .pillars-path { flex-direction: column; gap: 28px; }
  .pillars-path::before { display: none; }
  .pillar { flex-direction: row; text-align: left; gap: 16px; align-items: flex-start; }
  .pillar-icon-circle { flex-shrink: 0; margin-bottom: 0; }
}

/* --- Impact stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

/* --- Divider pulse --- */
.divider-pulse { display: block; width: 100%; height: 40px; }

/* --- CTA band --- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.7); }
.footer-grid a:hover { color: #fff; }
.footer-logo img { height: 38px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Donate page --- */
.donate-hero {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.donate-hero h1 { color: #fff; }
.donate-hero p { color: rgba(255,255,255,0.8); margin: 0 auto; }

.donate-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: -28px 0 48px;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  color: var(--text);
}
.tab-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.donate-panel { display: none; }
.donate-panel.active { display: block; }

.amount-grid { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 28px; }
.amount-btn {
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.amount-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
}
.qr-box {
  width: 200px; height: 200px;
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 12px;
}
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); font-size: 0.9rem; }
.detail-value { font-weight: 600; color: var(--ink); font-family: 'Outfit', sans-serif; }
.copy-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: 0.8rem; cursor: pointer; color: var(--accent); font-family: inherit;
}
@media (max-width: 700px) { .method-card { grid-template-columns: 1fr; } .qr-box { width: 100%; } }

.note-box {
  background: var(--gold-soft);
  border: 1px solid #EFD9A8;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: #6B4E12;
  margin-top: 24px;
}

/* --- Page hero (shared: About, History, Gallery) --- */
.page-hero {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.8); margin: 0 auto; }

/* --- Staff / About --- */
.staff-lead {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.staff-lead .staff-card:first-child { grid-column: span 3; }
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.staff-lead .staff-card:first-child {
  display: flex; align-items: center; gap: 28px; text-align: left; padding: 32px;
}
.staff-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 1.5rem;
  margin: 0 auto 14px;
  flex-shrink: 0;
}
.staff-avatar-img {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  object-fit: cover;
  margin: 0 auto 14px;
  flex-shrink: 0;
}
.staff-lead .staff-card:first-child .staff-avatar,
.staff-lead .staff-card:first-child .staff-avatar-img { width: 96px; height: 96px; font-size: 1.8rem; margin: 0; }

/* --- WHO / WHAT / WHY --- */
.www-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.www-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.www-card h3 { color: var(--accent); margin-bottom: 10px; }
@media (max-width: 860px) { .www-grid { grid-template-columns: 1fr; } }
.staff-role { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 4px; }
.staff-name { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
@media (max-width: 900px) {
  .staff-lead, .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-lead .staff-card:first-child { grid-column: span 2; flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .staff-lead, .staff-grid { grid-template-columns: 1fr; }
  .staff-lead .staff-card:first-child { grid-column: span 1; }
}

/* --- History timeline --- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -32px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-year { color: var(--accent); font-family: 'Outfit', sans-serif; font-weight: 700; margin-bottom: 4px; }

/* --- Gallery / albums --- */
.album { margin-bottom: 56px; }
.album-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.album-header h3 { margin-bottom: 0; }
.album-meta { color: var(--text-muted); font-size: 0.9rem; }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.82rem; text-align: center; padding: 10px;
}
.photo-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.photo-tile:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(28,53,83,0.18); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 18, 30, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 800px; max-height: 600px; width: 100%; height: auto;
  object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 2.2rem; width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.9rem;
}
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}
.album-country-link {
  display: inline-block; margin-bottom: 14px; font-size: 0.88rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px;
}
.album-caption { color: var(--text-muted); max-width: 70ch; margin-bottom: 16px; }
.album-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent-soft); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font-size: 0.85rem;
}
.stat-chip strong { font-family: 'Outfit', sans-serif; color: var(--accent); }
.album-highlight {
  animation: albumPulse 1.6s ease-out 1;
  border-radius: var(--radius);
}
@keyframes albumPulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 134, 198, 0.45); }
  100% { box-shadow: 0 0 0 18px rgba(62, 134, 198, 0); }
}
@media (max-width: 860px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
