/* ============================================================
   Elpida Chaim Charitable Society — Stylesheet
   Palette: deep teal (hope) + warm gold (light) + cream

   Copyright (c) 2025 Elpida Chaim Charitable Society.
   All Rights Reserved. Unauthorized copying, reproduction, or
   distribution of this code is strictly prohibited. See LICENSE.
   ============================================================ */

:root {
  --teal-900: #093a3e;
  --teal-800: #0f5257;
  --teal-700: #14666c;
  --teal-500: #1f8a91;
  --teal-100: #e3f1f1;
  --gold-600: #c9962f;
  --gold-500: #e0ab3f;
  --gold-300: #f2d79b;
  --cream: #fbf8f2;
  --cream-2: #f4eee2;
  --ink: #14211f;
  --ink-soft: #445350;
  --white: #ffffff;
  --line: rgba(15, 82, 87, 0.12);

  --shadow-sm: 0 1px 2px rgba(9, 58, 62, 0.06), 0 4px 14px rgba(9, 58, 62, 0.06);
  --shadow-md: 0 10px 30px rgba(9, 58, 62, 0.12);
  --shadow-lg: 0 24px 60px rgba(9, 58, 62, 0.18);

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1140px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 3vw, 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--teal-800); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--gold-500); color: var(--teal-900); box-shadow: 0 8px 22px rgba(224, 171, 63, 0.35); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201, 150, 47, 0.42); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.625rem; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 10px; width: 2.625rem; height: 2.625rem; object-fit: contain; background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--teal-800); }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 0.96rem;
  color: var(--ink-soft); transition: color .15s ease, background .15s ease;
}
.main-nav a:hover { color: var(--teal-800); background: var(--teal-100); }
.main-nav a.nav-cta { background: var(--teal-800); color: #fff; padding-inline: 20px; }
.main-nav a.nav-cta:hover { background: var(--teal-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--teal-800); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(224,171,63,0.22), transparent 60%),
    linear-gradient(160deg, var(--teal-900) 0%, var(--teal-800) 55%, var(--teal-700) 100%);
  padding: clamp(84px, 14vw, 150px) 0 clamp(72px, 12vw, 128px);
}
.hero-glow {
  position: absolute; inset: auto -10% -40% -10%; height: 60%;
  background: radial-gradient(closest-side, rgba(224,171,63,0.18), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-300); font-weight: 600; margin-bottom: 18px;
}
.hero-title { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 600; letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,0.86); margin-top: 22px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meaning { margin-top: 30px; color: rgba(255,255,255,0.72); font-size: 0.95rem; letter-spacing: 0.02em; }
.hero-meaning em { color: var(--gold-300); font-style: normal; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 62px); text-align: center; }
.kicker {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-600); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); color: var(--teal-900); }
.section-intro { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Vision / Mission ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.vm-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 34px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vm-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-700); margin-bottom: 20px;
}
.vm-icon svg { width: 28px; height: 28px; }
.vm-card h3 { font-size: 1.5rem; color: var(--teal-900); margin-bottom: 10px; }
.vm-card p { color: var(--ink-soft); }

/* ---------- Values carousel ---------- */
.values-carousel { position: relative; max-width: 980px; margin-inline: auto; padding: 0 8px; }
.vc-viewport { overflow: hidden; padding: 12px 4px 8px; }
.vc-track {
  display: flex; gap: 0; margin: 0;
  transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform;
}
.value-circle {
  flex: 0 0 25%; max-width: 25%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 6px 10px; text-align: center;
}
.vc-ring {
  display: grid; place-items: center; width: 8.125rem; height: 8.125rem; border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal-100);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.vc-ring::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dashed rgba(224,171,63,0.45); opacity: 0; transform: scale(.9);
  transition: opacity .3s ease, transform .3s ease;
}
.vc-icon {
  display: grid; place-items: center; width: 4.625rem; height: 4.625rem; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-700); transition: background .3s ease, color .3s ease;
}
.vc-icon svg { width: 2.125rem; height: 2.125rem; }
.vc-label { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--teal-900); }

.value-circle:hover .vc-ring {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent;
  background: linear-gradient(150deg, var(--teal-800), var(--teal-600, var(--teal-700)));
}
.value-circle:hover .vc-ring::before { opacity: 1; transform: scale(1); }
.value-circle:hover .vc-icon { background: var(--gold-500); color: var(--teal-900); }

/* arrows */
.vc-arrow {
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%); z-index: 3;
  width: 2.875rem; height: 2.875rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--teal-800); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.vc-arrow svg { width: 1.375rem; height: 1.375rem; }
.vc-arrow:hover { background: var(--teal-800); color: #fff; transform: translateY(-50%) scale(1.06); }
.vc-prev { left: -6px; }
.vc-next { right: -6px; }

/* dots */
.vc-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.vc-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(15,82,87,0.22); transition: background .2s ease, transform .2s ease, width .2s ease;
}
.vc-dot.active { background: var(--gold-500); width: 26px; border-radius: 999px; }

/* ---------- Purposes ---------- */
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.purpose-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.purpose-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(224,171,63,0.5); }
.purpose-tag {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(140deg, var(--teal-700), var(--teal-500)); color: #fff;
  margin-bottom: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 16px rgba(15,82,87,0.22);
  transition: transform .25s ease, background .25s ease;
}
.purpose-tag svg { width: 26px; height: 26px; }
.purpose-card:hover .purpose-tag { transform: translateY(-2px) scale(1.05); background: linear-gradient(140deg, var(--gold-600), var(--gold-500)); }
.purpose-card h3 { font-size: 1.24rem; color: var(--teal-900); margin-bottom: 10px; }
.purpose-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Ministries ---------- */
.ministry-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  max-width: 1040px; margin-inline: auto;
}
.ministry-card { flex: 1 1 300px; max-width: 324px; }

.ministry-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px 30px; box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ministry-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal-700), var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.ministry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ministry-card:hover::before { transform: scaleX(1); }

.ministry-icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  color: var(--teal-700); background: var(--teal-100); margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.ministry-icon svg { width: 30px; height: 30px; }
.ministry-card:hover .ministry-icon {
  transform: rotate(-6deg) scale(1.06);
  background: linear-gradient(140deg, var(--teal-700), var(--teal-500)); color: #fff;
}
.ministry-kicker {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-600); margin-bottom: 8px;
}
.ministry-body h3 { font-size: 1.22rem; color: var(--teal-900); margin-bottom: 8px; line-height: 1.25; }
.ministry-body p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Get Involved ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.involve-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px; box-shadow: var(--shadow-sm); text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.involve-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.involve-icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold-300), var(--gold-500)); color: var(--teal-900); margin-bottom: 20px;
}
.involve-icon svg { width: 28px; height: 28px; }
.involve-card h3 { font-size: 1.4rem; color: var(--teal-900); margin-bottom: 10px; }
.involve-card p { color: var(--ink-soft); margin-bottom: 18px; }
.involve-schedule { display: flex; flex-direction: column; gap: 14px; }
.involve-schedule li {
  padding-left: 16px; border-left: 3px solid var(--gold-300);
}
.involve-schedule .sched-title { display: block; font-weight: 600; color: var(--teal-800); }
.involve-schedule .sched-detail { display: block; color: var(--ink-soft); font-size: 0.95rem; }
.donate-interac { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.donate-qr {
  flex: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-sm); line-height: 0;
}
.donate-qr img { width: 118px; height: 118px; display: block; }
.donate-interac-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.donate-interac-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-600); font-weight: 600; }
.donate-interac-copy a { font-weight: 600; color: var(--teal-700); word-break: break-all; }
.donate-interac-copy a:hover { color: var(--gold-600); }
.donate-interac-note { color: var(--ink-soft); font-size: 0.9rem; margin: 2px 0 0; }
.fellowship-qr { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.fellowship-qr-code {
  flex: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-sm); line-height: 0;
}
.fellowship-qr-code img { width: 116px; height: 116px; display: block; }
.fellowship-qr-note { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.link-arrow { font-weight: 600; color: var(--teal-700); display: inline-flex; gap: 6px; align-items: center; transition: gap .2s ease, color .2s ease; }
.link-arrow:hover { color: var(--gold-600); gap: 12px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-item {
  position: relative; margin: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); cursor: pointer;
  background: var(--white);
  padding: 10px;                       /* matte frame around the image */
  border: 1px solid var(--line);       /* frame edge */
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gallery-item:hover, .gallery-item:focus-within {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-300);
}
/* Inner frame clips every image to the same shape/ratio so nothing looks odd */
.gallery-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 8px);
  background: var(--teal-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: 26px 14px 10px; color: #fff; font-weight: 600; font-size: 0.96rem;
  border-radius: 0 0 calc(var(--radius) - 8px) calc(var(--radius) - 8px);
  background: linear-gradient(to top, rgba(9,58,62,0.82), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }

/* ---------- Gallery albums (cover cards) ---------- */
.gallery-albums {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.album-card {
  position: relative; display: block; width: 100%; padding: 0; cursor: pointer;
  border: 0; background: transparent; font: inherit; text-align: left;
  border-radius: var(--radius-lg);
}
.album-card:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 4px; }
/* Stacked-photo effect behind the cover */
.album-cover {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--teal-100);
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.album-card::before,
.album-card::after {
  content: ""; position: absolute; left: 6%; right: 6%; top: -8px; height: 22px;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--white);
  border: 1px solid var(--line); z-index: -1;
  transition: transform .3s ease, top .3s ease;
}
.album-card::before { left: 3%; right: 3%; top: -14px; opacity: .6; background: var(--cream-2); }
.album-card:hover .album-cover,
.album-card:focus-visible .album-cover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.album-card:hover::after { top: -11px; }
.album-card:hover::before { top: -18px; }
.album-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.album-card:hover .album-cover img,
.album-card:focus-visible .album-cover img { transform: scale(1.07); }
.album-cover-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 4px; padding: 20px;
  background: linear-gradient(to top, rgba(9,40,42,0.9) 0%, rgba(9,40,42,0.35) 45%, transparent 75%);
}
.album-card .album-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: #fff;
  line-height: 1.15;
}
.album-card .album-count {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--teal-900); background: rgba(255,255,255,0.92);
  padding: 4px 10px; border-radius: 999px;
}
.album-count svg { width: 14px; height: 14px; }
.album-view {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--teal-900);
  background: rgba(255,255,255,0.92); box-shadow: var(--shadow-sm);
  opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.album-view svg { width: 20px; height: 20px; }
.album-card:hover .album-view,
.album-card:focus-visible .album-view { opacity: 1; transform: scale(1); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(9, 33, 31, 0.88); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox-img {
  max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-img { animation: lb-fade .3s ease; }
@keyframes lb-fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.lightbox-caption { color: rgba(255,255,255,0.92); margin-top: 14px; font-size: 1rem; }
.lightbox-counter {
  display: inline-block; margin-top: 6px; color: rgba(255,255,255,0.6);
  font-size: 0.82rem; letter-spacing: 0.08em; font-weight: 600;
}
.lightbox-counter[hidden] { display: none; }
.lightbox-close {
  position: absolute; top: clamp(12px, 3vw, 26px); right: clamp(12px, 3vw, 26px);
  width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--teal-900); background: #fff;
  box-shadow: var(--shadow-md); transition: transform .2s ease, background .2s ease, color .2s ease;
  z-index: 2;
}
.lightbox-close svg { width: 1.5rem; height: 1.5rem; }
.lightbox-close:hover { background: var(--gold-500); transform: scale(1.06); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px); transition: background .2s ease, transform .2s ease; z-index: 2;
}
.lightbox-nav svg { width: 1.6rem; height: 1.6rem; }
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: clamp(10px, 3vw, 30px); }
.lightbox-next { right: clamp(10px, 3vw, 30px); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox-nav[hidden] { display: none; }
@media (max-width: 560px) {
  .lightbox-nav { width: 2.75rem; height: 2.75rem; }
}

/* ---------- Contact ---------- */
.section-contact { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--white);
}
.contact-copy {
  padding: clamp(34px, 5vw, 56px);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(224,171,63,0.18), transparent 60%),
    linear-gradient(150deg, var(--teal-900), var(--teal-700));
  color: #fff;
}
.contact-copy h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 8px 0 14px; }
.contact-copy p { color: rgba(255,255,255,0.85); }
.contact-copy .kicker { color: var(--gold-300); }
.contact-list { margin-top: 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-300); font-weight: 600; }
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--gold-300); }
.contact-logo { margin-top: 32px; }
.contact-logo img {
  width: 132px; height: 132px; object-fit: contain;
  background: #fff; border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow-md);
}

.contact-qr {
  padding: clamp(34px, 5vw, 56px);
  display: grid; gap: 14px; align-content: center; justify-items: center; text-align: center;
}
.qr-frame {
  display: inline-grid; place-items: center; padding: 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.qr-frame img { width: clamp(180px, 40vw, 240px); height: auto; }
.qr-title { font-size: 1.4rem; color: var(--teal-900); margin-top: 6px; }
.qr-text { color: var(--ink-soft); max-width: 320px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,0.82); padding-top: 54px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 8px; object-fit: contain; background: #fff; }
.footer-name { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.1rem; }
.footer-tag { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.96rem; }
.footer-nav a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 22px; }
.footer-bottom p { font-size: 0.86rem; color: rgba(255,255,255,0.6); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive — scales from small phones up to large 4K TVs
   ============================================================ */

/* ---------- Large screens & TVs (scale up) ---------- */
/* Root font-size scaling cascades to every rem-based value,
   while --container widening keeps content from stranding in a
   narrow central column on very wide displays. */
@media (min-width: 1500px) {
  :root { --container: 1320px; }
  html { font-size: 108%; }
}
@media (min-width: 1800px) {
  :root { --container: 1500px; }
  html { font-size: 118%; }
  .purpose-grid { grid-template-columns: repeat(4, 1fr); }
  .values-carousel { max-width: 1240px; }
  .value-circle { flex-basis: 20%; max-width: 20%; }
}
@media (min-width: 2200px) {
  :root { --container: 1780px; }
  html { font-size: 132%; }
}
@media (min-width: 2560px) {
  :root { --container: 2040px; }
  html { font-size: 150%; }
  .ministry-grid { max-width: none; }
  .ministry-card { max-width: 420px; }
  .values-carousel { max-width: 1600px; }
  .value-circle { flex-basis: 16.666%; max-width: 16.666%; }
}
@media (min-width: 3200px) {
  :root { --container: 2560px; }
  html { font-size: 178%; }
}
@media (min-width: 3840px) {
  :root { --container: 3000px; }
  html { font-size: 210%; }
}

/* ---------- Tablets / small desktops ---------- */
@media (max-width: 900px) {
  .purpose-grid, .involve-grid { grid-template-columns: repeat(2, 1fr); }
  .value-circle { flex-basis: 33.333%; max-width: 33.333%; }
}
@media (max-width: 640px) {
  .value-circle { flex-basis: 50%; max-width: 50%; }
  .vc-ring { width: 116px; height: 116px; }
  .vc-icon { width: 66px; height: 66px; }
}
@media (max-width: 420px) {
  .value-circle { flex-basis: 100%; max-width: 100%; }
  .vc-prev { left: 0; }
  .vc-next { right: 0; }
}
@media (max-width: 820px) {
  .main-nav {
    position: fixed; inset: 4.625rem 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: var(--cream); padding: 16px 22px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .3s ease; visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav a { padding: 13px 14px; font-size: 1.05rem; }
  .main-nav a.nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .vm-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .purpose-grid, .involve-grid { grid-template-columns: 1fr; }
  .ministry-card { flex-basis: 100%; max-width: 420px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .brand-sub { font-size: 0.66rem; }
  .vm-card { padding: 30px 24px; }
  .purpose-card { padding: 26px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
