/* ==========================================================
   Design tokens — vibrant / colorful system, approved design
   ========================================================== */
:root {
  --paper: #FFFFFF;
  --paper-dim: #F4F5F8;
  --ink: #181C25;
  --ink-soft: #5A6070;
  --gold: #F2B705;
  --line: #E6E8EE;

  --red-1: #D8203A;   --red-2: #7A0F1F;
  --blue-1: #1668C4;  --blue-2: #0A2F63;
  --green-1: #22A24D; --green-2: #0D5A2A;
  --yellow-1: #F2C230; --yellow-2: #B8860B;
  --black-1: #3A3A3A; --black-2: #0A0A0A;

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.brand__text { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.brand__text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--ink-soft); margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: .92rem; font-weight: 600; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; font-weight: 700; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .12s ease, opacity .12s ease; }
.btn-gold { background: linear-gradient(135deg, #FBCB3A, var(--gold)); color: #221900; box-shadow: 0 6px 18px rgba(242,183,5,.35); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-admin { background: var(--gold); color: #fff; }
.nav a.btn-admin { color: #fff; }
.btn-admin:hover { background: #d9a604; }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }
.btn:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 70px; text-align: center; overflow: hidden; background: radial-gradient(circle at 50% 0%, #EAF6EC 0%, #FFFFFF 62%); }
.hero__seals { display: flex; justify-content: center; align-items: center; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.seal-badge { width: 180px; height: 180px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; padding: 18px; box-shadow: 0 12px 28px rgba(0,0,0,.16); flex-shrink: 0; }
.seal-badge--assoc { width: 210px; height: 210px; }
.seal-badge img { width: 100%; height: 100%; object-fit: contain; }
.hero__welcome { font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.hero h1 { margin-bottom: 6px; background: linear-gradient(120deg, var(--blue-2), var(--blue-1) 45%, var(--green-1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__place { font-size: 1.3rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 22px; }
.hero__legal { max-width: 640px; margin: 0 auto 6px; font-size: .95rem; }
.hero__cin { font-size: .85rem; margin-bottom: 28px; }
.hero__trademark { display: inline-block; max-width: 560px; margin: 0 auto 28px; padding: 10px 22px; border-radius: 999px; background: linear-gradient(135deg, #FBCB3A, var(--gold)); color: #221900; font-weight: 700; font-size: .88rem; letter-spacing: .01em; box-shadow: 0 6px 18px rgba(242,183,5,.35); }
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__search { margin: 28px auto 0; display: flex; gap: 10px; max-width: 460px; }
.hero__search input { flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-dim); font-size: .95rem; }

/* ---------- Badge sections (homepage) ---------- */
.badge-section { padding: 64px 0; color: #fff; }
.badge-section.red { background: linear-gradient(135deg, var(--red-1), var(--red-2)); }
.badge-section.blue { background: linear-gradient(135deg, var(--blue-1), var(--blue-2)); }
.badge-section.green { background: linear-gradient(135deg, var(--green-1), var(--green-2)); }
.badge-section.yellow { background: linear-gradient(135deg, var(--yellow-1), var(--yellow-2)); }
.badge-section.black { background: linear-gradient(135deg, var(--black-1), var(--black-2)); }
.badge-section__head { text-align: center; margin-bottom: 36px; }
.badge-section__eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.18); padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
.badge-section h2 { color: #fff; margin-bottom: 8px; }
.badge-section__head p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto; }
.badge-section__empty { text-align: center; color: rgba(255,255,255,.75); padding: 20px; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.member-card { background: rgba(255,255,255,.97); border-radius: var(--radius); overflow: hidden; text-align: center; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.member-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.member-card__photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; color: #fff; }
.member-card__body { padding: 16px 14px 20px; background: #fff; position: relative; z-index: 1; }
.member-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; color: var(--ink); }
.member-card__designation { font-size: .85rem; color: var(--red-1); font-weight: 600; margin-bottom: 0; }

/* ---------- About ---------- */
.about-strip { padding: 56px 0; text-align: center; }
.about-strip .wrap { max-width: 760px; }

/* ---------- Generic section scaffolding ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head p { margin: 6px 0 0; max-width: 60ch; }

.badge-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #fff; }
.badge-chip.red { background: linear-gradient(135deg, var(--red-1), var(--red-2)); }
.badge-chip.blue { background: linear-gradient(135deg, var(--blue-1), var(--blue-2)); }
.badge-chip.green { background: linear-gradient(135deg, var(--green-1), var(--green-2)); }
.badge-chip.yellow { background: linear-gradient(135deg, var(--yellow-1), var(--yellow-2)); color: #3A2900; }
.badge-chip.black { background: linear-gradient(135deg, var(--black-1), var(--black-2)); }

/* ---------- Directory ---------- */
.pastor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pastor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .15s ease, box-shadow .15s ease; display: block; }
.pastor-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.08); }
.pastor-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pastor-card__photo { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #fff; object-fit: cover; }
.pastor-card__name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0; color: var(--ink); }
.pastor-card__id { font-size: .78rem; color: var(--ink-soft); margin-top: 1px; }
.pastor-card__designation { font-size: .88rem; color: var(--ink-soft); margin-bottom: 12px; }
.pastor-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.pastor-card__link { font-size: .82rem; font-weight: 700; color: var(--blue-1); }

.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.toolbar__search { flex: 1 1 300px; display: flex; gap: 10px; }
.toolbar__search input { flex: 1; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: .94rem; background: var(--paper-dim); }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filter-pill.is-active.red { background: linear-gradient(135deg, var(--red-1), var(--red-2)); color: #fff; border-color: transparent; }
.filter-pill.is-active.blue { background: linear-gradient(135deg, var(--blue-1), var(--blue-2)); color: #fff; border-color: transparent; }
.filter-pill.is-active.green { background: linear-gradient(135deg, var(--green-1), var(--green-2)); color: #fff; border-color: transparent; }
.filter-pill.is-active.yellow { background: linear-gradient(135deg, var(--yellow-1), var(--yellow-2)); color: #3A2900; border-color: transparent; }
.filter-pill.is-active.black { background: linear-gradient(135deg, var(--black-1), var(--black-2)); color: #fff; border-color: transparent; }
.filter-pill.is-active.all { background: var(--ink); color: #fff; border-color: transparent; }
.empty-state { text-align: center; padding: 56px 20px; color: var(--ink-soft); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); font-size: .9rem; }
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Announcements ---------- */
.bulletin { list-style: none; margin: 0; padding: 0; }
.bulletin li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.bulletin li:last-child { border-bottom: 1px solid var(--line); }
.bulletin time { font-size: .85rem; color: var(--gold); font-weight: 700; padding-top: 3px; }
.bulletin h3 { margin-bottom: 4px; }
.bulletin p { margin: 0; font-size: .94rem; }

/* ---------- Gallery ---------- */
.gallery-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.gallery-scroll__item { flex: 0 0 auto; height: 240px; width: auto; border-radius: 10px; border: 1px solid var(--line); scroll-snap-align: start; object-fit: cover; }
@media (max-width: 520px) { .gallery-scroll__item { height: 180px; } }

/* ---------- Profile page ---------- */
.profile { padding: 48px 0 72px; }
.profile__back { display: inline-block; margin-bottom: 20px; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.profile__card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1fr; }
.profile__band { grid-column: 1/-1; height: 80px; }
.profile__band.red { background: linear-gradient(120deg, var(--red-1), var(--red-2)); }
.profile__band.blue { background: linear-gradient(120deg, var(--blue-1), var(--blue-2)); }
.profile__band.green { background: linear-gradient(120deg, var(--green-1), var(--green-2)); }
.profile__band.yellow { background: linear-gradient(120deg, var(--yellow-1), var(--yellow-2)); }
.profile__band.black { background: linear-gradient(120deg, var(--black-1), var(--black-2)); }
.profile__main { padding: 0 40px 40px; }
.profile__photo { width: 92px; height: 92px; border-radius: 50%; margin-top: -46px; border: 5px solid #fff; background: var(--paper-dim); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 16px; object-fit: cover; }
.profile__id { font-size: .88rem; color: var(--ink-soft); margin-bottom: 8px; }
.profile__designation { font-size: 1rem; color: var(--ink-soft); margin-bottom: 18px; }
.profile__facts { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.profile__facts dt { font-size: .76rem; color: var(--ink-soft); margin-bottom: 2px; }
.profile__facts dd { margin: 0; font-size: .95rem; font-weight: 700; }
.profile__qr { background: var(--paper-dim); padding: 36px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-left: 1px solid var(--line); }
.profile__qr img { border-radius: 10px; background: #fff; padding: 10px; border: 1px solid var(--line); margin-bottom: 12px; }
.profile__qr p { font-size: .8rem; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 44px 0 28px; margin-top: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__grid h4 { color: #fff; font-size: .85rem; font-weight: 700; margin: 0 0 12px; }
.footer__grid p, .footer__grid a { color: rgba(255,255,255,.68); font-size: .88rem; display: block; margin-bottom: 8px; }
.footer__bottom { padding-top: 18px; font-size: .8rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 60px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 24px; gap: 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; border-top: 1px solid var(--line); }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
  .profile__card { grid-template-columns: 1fr; }
  .profile__qr { border-left: none; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .bulletin li { grid-template-columns: 1fr; gap: 4px; }
  .hero__seals { flex-wrap: nowrap; gap: 12px; }
  .seal-badge { width: 90px; height: 90px; padding: 10px; }
  .seal-badge--assoc { width: 100px; height: 100px; }
}
@media (max-width: 520px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .profile__main { padding: 28px; }
  .profile__facts { grid-template-columns: 1fr; }
  .hero__trademark { max-width: calc(100% - 40px); font-size: .78rem; padding: 8px 16px; line-height: 1.4; }
}
