/* ============================================================
   RCCG WARREN PARK — Site styles
   Editorial sanctuary aesthetic. Deep navy structure,
   white breathing room, single ember-red accent.
   ============================================================ */

/* -- 1. Tokens ---------------------------------------------- */
:root {
  /* Whites (60%) */
  --white: #FFFFFF;
  --paper: #F5F8FF;
  --mist: #EEF3FC;

  /* Blues (30%) */
  --navy: #0D2354;
  --royal: #1540A0;
  --cobalt: #2563EB;
  --azure: #3B82F6;
  --sky: #60A5FA;
  --ice: #BFDBFE;

  /* Red accent (10%) */
  --ember: #CC1A2E;

  /* Ink */
  --ink: #0A1733;
  --ink-soft: #3A4A6E;
  --ink-muted: #6B7894;
  --line: rgba(13, 35, 84, 0.12);
  --line-strong: rgba(13, 35, 84, 0.24);

  /* Type */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --radius: 4px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -- 2. Reset ----------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; }

::selection { background: var(--navy); color: var(--white); }

/* -- 3. Layout primitives ----------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--ember);
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-block: 0.75rem 0;
  color: var(--navy);
}
.section-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: 1rem;
}

/* -- 4. Navigation ------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}
.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0;
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--cobalt); }
.nav__link.active { color: var(--navy); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--ember);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--ember);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 8px 24px -10px rgba(204, 26, 46, 0.55);
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(204, 26, 46, 0.7); }
.nav__cta__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}
.nav__toggle span {
  display: block;
  width: 20px; height: 1.6px;
  background: var(--navy);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.6px;
  background: var(--navy);
  transition: transform 0.25s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav__link.active::after { display: none; }
  .nav__cta { align-self: flex-start; margin-top: 1rem; }
}

/* -- 5. Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--royal); transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid currentColor; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--ember { background: var(--ember); color: var(--white); }
.btn--ember:hover { transform: translateY(-1px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--paper); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* -- 6. Hero ------------------------------------------------ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 20% 100%, rgba(13,35,84,0.85) 0%, rgba(13,35,84,0.35) 60%, transparent 90%),
    linear-gradient(180deg, rgba(13,35,84,0.4) 0%, rgba(13,35,84,0.05) 35%, rgba(13,35,84,0.9) 100%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}
.hero__content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem var(--gutter) 4.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: end;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}
.hero__eyebrow .dot { width: 6px; height: 6px; background: var(--ember); border-radius: 50%; }
.hero__title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.96;
}
.hero__title em {
  font-style: italic;
  color: var(--ember);
  font-weight: 400;
}
.hero__scripture {
  border-left: 2px solid var(--ember);
  padding-left: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-top: 2rem;
  max-width: 38ch;
}
.hero__scripture cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.7);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.5rem; }

.hero__side {
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 1.75rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.hero__meta { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.hero__live {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.95);
}
.hero__live .ring {
  width: 9px; height: 9px; background: var(--ember); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(204,26,46,0.7); animation: pulse-red 1.8s infinite;
}
@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(204,26,46,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(204,26,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(204,26,46,0); }
}

@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; padding-top: 5.5rem; padding-bottom: 3.5rem; }
  .hero__side { border-left: 0; border-top: 1px solid rgba(255,255,255,0.18); padding: 1.5rem 0 0; }
}

/* -- 7. Page banner (interior pages) ------------------------ */
.banner {
  position: relative;
  background:
    radial-gradient(80% 100% at 15% 20%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  color: var(--white);
  padding: 6rem var(--gutter) 4rem;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--ember) 0%, var(--ember) 12%, transparent 12%);
}
.banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.banner__crumb {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.banner__crumb .sep { width: 18px; height: 1px; background: rgba(255,255,255,0.4); }
.banner__title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.banner__title em { font-style: italic; color: var(--ice); }
.banner__lead {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}

/* -- 8. Stats strip ----------------------------------------- */
.strip {
  background: var(--navy);
  color: var(--white);
}
.strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}
.strip__cell {
  display: flex; flex-direction: column; gap: 0.25rem;
  border-left: 2px solid rgba(255,255,255,0.18);
  padding-left: 1rem;
}
.strip__cell:first-child { border-left: 0; padding-left: 0; }
.strip__label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.strip__val { font-family: var(--serif); font-size: 1.15rem; }

@media (max-width: 700px) {
  .strip__inner { grid-template-columns: 1fr; gap: 0.75rem; }
  .strip__cell { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 0.75rem; }
  .strip__cell:first-child { border-top: 0; padding-top: 0; }
}

/* -- 9. Split section (text + image) ------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__media {
  position: relative;
}
.split__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
}
.split__media::before {
  content: ""; position: absolute; inset: -14px -14px auto auto;
  width: 60%; height: 60%;
  border: 1px solid var(--ice);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.split__media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px;
  width: 40%; height: 30%;
  background: var(--ember);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.92;
}
.split__body p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.split__body p:first-of-type { margin-top: 1.5rem; }
.split__body .btn { margin-top: 0.5rem; }

@media (max-width: 850px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* -- 10. Pillars grid --------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.pillar {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem 2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute; top: 0; left: 1.75rem; right: 1.75rem;
  height: 3px;
  background: var(--cobalt);
  border-radius: 0 0 3px 3px;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(13, 35, 84, 0.25);
  border-color: var(--ice);
}
.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ember);
  letter-spacing: 0.04em;
}
.pillar__name {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--navy);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.pillar__body { color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 850px) { .pillars { grid-template-columns: 1fr; } }

/* -- 11. Service band --------------------------------------- */
.serviceband {
  background:
    radial-gradient(70% 140% at 90% 10%, rgba(96,165,250,0.18), transparent 60%),
    linear-gradient(115deg, var(--navy) 0%, var(--royal) 100%);
  color: var(--white);
}
.serviceband__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.serviceband__title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.serviceband__meta {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}
.serviceband__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 700px) { .serviceband__inner { grid-template-columns: 1fr; } }

/* -- 12. History section ------------------------------------ */
.history {
  background: var(--paper);
  position: relative;
}
.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: 3rem;
}
.history__media {
  position: sticky; top: 100px;
}
.history__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg);
}
.history__cards {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.history__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.history__card__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ember);
}
.history__card h3 {
  font-size: 1.55rem;
  color: var(--navy);
  margin: 0.4rem 0 0.9rem;
}
.history__card p { color: var(--ink-soft); margin: 0 0 0.85rem; font-size: 0.97rem; }
.history__card p:last-child { margin-bottom: 0; }

.timeline {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}
.timeline__item {
  border-left: 2px solid var(--cobalt);
  padding-left: 0.85rem;
}
.timeline__item:first-child { border-left-color: var(--ember); }
.timeline__year {
  font-family: var(--serif); font-size: 1.6rem; color: var(--navy); display: block;
}
.timeline__label {
  font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.04em; margin-top: 2px;
}

@media (max-width: 900px) {
  .history__grid { grid-template-columns: 1fr; }
  .history__media { position: static; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

/* -- 13. Vision & mission ----------------------------------- */
.vision {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  counter-reset: vis;
}
.vision__item {
  counter-increment: vis;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.vision__item::before {
  content: counter(vis, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cobalt);
  display: block;
  margin-bottom: 0.8rem;
}
.vision__item p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; line-height: 1.5; }

@media (max-width: 850px) { .vision { grid-template-columns: 1fr; } }

/* -- 14. Beliefs (numbered columns) ------------------------- */
.beliefs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.beliefs__col {
  padding: 2rem 1.75rem;
  border-left: 1px solid var(--line);
}
.beliefs__col:first-child { border-left: 0; }
.beliefs__col ol li {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  color: var(--ink);
}
.beliefs__col ol li:last-child { border-bottom: 0; }
.beliefs__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ember);
  width: 1.8rem;
  flex-shrink: 0;
}
.beliefs__link { margin-top: 1.5rem; }

@media (max-width: 900px) {
  .beliefs { grid-template-columns: 1fr; }
  .beliefs__col { border-left: 0; border-top: 1px solid var(--line); }
  .beliefs__col:first-child { border-top: 0; }
}

/* -- 15. Ministries collage --------------------------------- */
.ministries {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.ministry {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.ministry:nth-child(1) { grid-column: span 3; min-height: 380px; }
.ministry:nth-child(2) { grid-column: span 3; min-height: 380px; }
.ministry:nth-child(3) { grid-column: span 2; }
.ministry:nth-child(4) { grid-column: span 2; }
.ministry:nth-child(5) { grid-column: span 2; }
.ministry__media { position: absolute; inset: 0; }
.ministry__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.ministry:hover .ministry__media img { opacity: 0.7; transform: scale(1.04); }
.ministry::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,35,84,0.35) 0%, rgba(13,35,84,0.95) 80%);
}
.ministry__inner { position: relative; padding: 1.75rem; margin-top: auto; z-index: 2; }
.ministry__tag {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ice);
}
.ministry__name {
  font-family: var(--serif); font-size: 1.6rem; margin: 0.4rem 0 0.7rem;
}
.ministry__body { font-size: 0.92rem; color: rgba(255,255,255,0.86); line-height: 1.55; }
.ministry__body ul { margin-top: 0.5rem; }
.ministry__body ul li { padding-left: 1rem; position: relative; margin-bottom: 0.35rem; }
.ministry__body ul li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 6px; height: 1px; background: var(--ember);
}

@media (max-width: 900px) {
  .ministries { grid-template-columns: 1fr 1fr; }
  .ministry, .ministry:nth-child(n) { grid-column: span 1; min-height: 280px; }
}
@media (max-width: 600px) {
  .ministries { grid-template-columns: 1fr; }
}

/* -- 16. AC4 events ----------------------------------------- */
.events {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.event {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.25s var(--ease);
}
.event:hover { transform: translateY(-3px); border-color: var(--cobalt); }
.event__kicker { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cobalt); }
.event__name { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin: 0.4rem 0; }
.event__sub { font-size: 0.9rem; color: var(--ink-muted); }

.ac4-countries {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.ac4-countries h4 {
  font-family: var(--serif); font-size: 1.2rem; color: var(--navy);
  margin: 0 0 0.85rem;
}
.ac4-countries__list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.ac4-countries__list span {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--navy);
}

@media (max-width: 850px) { .events { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .events { grid-template-columns: 1fr; } }

/* -- 17. Pastor page ---------------------------------------- */
.pastor {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.pastor__bio { position: relative; }
.pastor__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--navy);
  line-height: 1.3;
  border-left: 2px solid var(--ember);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}
.pastor__bio p { color: var(--ink-soft); margin: 0 0 1.25rem; font-size: 1.04rem; line-height: 1.7; }
.pastor__name-block {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.pastor__title-tag { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cobalt); }
.pastor__name {
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--navy);
  margin: 0.5rem 0 0.25rem;
  font-weight: 500;
}
.pastor__role { font-size: 1rem; color: var(--ink-muted); }

.pastor__card {
  position: sticky; top: 100px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
}
.pastor__card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 60px;
  background: var(--ember);
}
.pastor__card h3 {
  font-family: var(--serif); font-size: 1.4rem; margin: 0 0 0.4rem;
}
.pastor__card p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0 0 1.5rem; }
.pastor__contact { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.75rem; }
.pastor__contact a {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 0.95rem; color: var(--white);
  padding: 0.85rem 1rem; background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: background 0.2s var(--ease);
}
.pastor__contact a:hover { background: rgba(255,255,255,0.12); }
.pastor__contact a svg { flex-shrink: 0; }
.pastor__contact .label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); display: block; }
.pastor__contact .value { display: block; margin-top: 1px; }
.pastor__social {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}
.pastor__social a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.pastor__social a:hover { background: var(--ember); border-color: var(--ember); transform: translateY(-2px); }
.pastor__social svg { width: 18px; height: 18px; fill: var(--white); }

@media (max-width: 900px) {
  .pastor { grid-template-columns: 1fr; }
  .pastor__card { position: static; }
}

/* -- 18. Schedule ------------------------------------------- */
.weekgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.day {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.day::before {
  content: "";
  position: absolute; top: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: var(--cobalt);
}
.day--sunday::before { background: var(--ember); }
.day__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.day__name {
  font-family: var(--serif); font-size: 1.85rem; color: var(--navy);
}
.day__count { font-size: 0.75rem; color: var(--ink-muted); letter-spacing: 0.18em; text-transform: uppercase; }
.day__service {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem;
  padding: 1rem 0; border-bottom: 1px dashed var(--line);
}
.day__service:last-child { border-bottom: 0; padding-bottom: 0; }
.day__time {
  font-family: var(--serif); font-size: 1rem; color: var(--ember);
  white-space: nowrap; font-weight: 500;
}
.day__service h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--navy); margin: 0 0 0.2rem; letter-spacing: -0.005em; }
.day__service p { font-size: 0.88rem; color: var(--ink-muted); margin: 0; }

@media (max-width: 800px) { .weekgrid { grid-template-columns: 1fr; } }

.infobox {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.infobox__icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  display: grid; place-items: center;
  border-radius: var(--radius);
}
.infobox__icon svg { width: 24px; height: 24px; fill: var(--white); }
.infobox__title { font-family: var(--serif); font-size: 1.3rem; }
.infobox__body { font-size: 0.92rem; color: rgba(255,255,255,0.78); margin-top: 0.2rem; }
.infobox + .infobox { margin-top: 1rem; }

@media (max-width: 700px) {
  .infobox { grid-template-columns: 1fr; text-align: left; }
  .infobox .btn { justify-self: start; }
}

/* -- 19. Gallery -------------------------------------------- */
.gallery {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
  background: var(--mist);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 12px;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white);
  background: rgba(13,35,84,0.7);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery__item:hover::after { opacity: 1; transform: translateY(0); }

/* Asymmetric tile sizing — span variants */
.tile-wide  { grid-column: span 6; grid-row: span 2; }
.tile-tall  { grid-column: span 3; grid-row: span 2; }
.tile-sq    { grid-column: span 3; grid-row: span 1; }
.tile-md    { grid-column: span 4; grid-row: span 1; }
.tile-lg    { grid-column: span 4; grid-row: span 2; }
.tile-sm    { grid-column: span 2; grid-row: span 1; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 140px; }
  .tile-wide  { grid-column: span 6; grid-row: span 2; }
  .tile-tall  { grid-column: span 3; grid-row: span 2; }
  .tile-sq    { grid-column: span 3; grid-row: span 1; }
  .tile-md    { grid-column: span 3; grid-row: span 1; }
  .tile-lg    { grid-column: span 6; grid-row: span 2; }
  .tile-sm    { grid-column: span 3; grid-row: span 1; }
}
@media (max-width: 500px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .tile-wide, .tile-tall, .tile-sq, .tile-md, .tile-lg, .tile-sm { grid-column: span 1; grid-row: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 18, 42, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 4rem 2rem;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  text-align: center;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* -- 20. Contact -------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
}
.contact__table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 1rem;
}
.contact__row:last-child { border-bottom: 0; }
.contact__row dt {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 600;
}
.contact__row dd { margin: 0; font-size: 0.97rem; color: var(--ink); word-break: break-word; }
.contact__row a { color: var(--ink); border-bottom: 1px dashed var(--line-strong); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.contact__row a:hover { color: var(--cobalt); border-color: var(--cobalt); }

.quickconnect {
  display: flex; flex-direction: column; gap: 0.85rem;
}
.qcbtn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.qcbtn:hover { transform: translateX(4px); border-color: var(--cobalt); }
.qcbtn__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--mist);
  border-radius: var(--radius);
  color: var(--navy);
  flex-shrink: 0;
}
.qcbtn__icon svg { width: 20px; height: 20px; }
.qcbtn__text { display: flex; flex-direction: column; line-height: 1.25; }
.qcbtn__label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.qcbtn__val { font-weight: 600; color: var(--navy); margin-top: 2px; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; }
  .contact__row dt { margin-bottom: 4px; }
}

.mapwrap {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8;
}
.mapwrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.summary-table {
  margin-top: 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.summary-table table { width: 100%; border-collapse: collapse; }
.summary-table th, .summary-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.summary-table th {
  background: var(--mist);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.summary-table tr:last-child td { border-bottom: 0; }
.summary-table td:first-child { color: var(--navy); font-weight: 600; }

@media (max-width: 700px) {
  .summary-table th, .summary-table td { padding: 0.75rem 1rem; font-size: 0.88rem; }
}

/* -- 21. Pastor socials row (Contact) ----------------------- */
.pastor-socials-row {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--mist);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.pastor-socials-row h4 { font-family: var(--serif); color: var(--navy); margin: 0; font-size: 1.4rem; }
.pastor-socials-row__list { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.psr-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--navy);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.psr-link:hover { background: var(--navy); color: var(--white); }
.psr-link svg { width: 14px; height: 14px; fill: currentColor; }

/* -- 22. Footer --------------------------------------------- */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem var(--gutter) 2rem;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--ember) 0 8%, transparent 8% 100%);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
.footer__brand .brand__sub { color: var(--ice); }
.footer__brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin: 1.25rem 0 0;
  max-width: 38ch;
}
.footer__heading {
  font-family: var(--sans);
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 1.25rem;
  font-weight: 600;
}
.footer__list li { margin-bottom: 0.6rem; }
.footer__list a { color: rgba(255,255,255,0.78); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer__list a:hover { color: var(--white); }

.footer__bottom {
  max-width: var(--max);
  margin: 3.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer__small-links { display: flex; gap: 1.5rem; }
.footer__small-links a { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.footer__small-links a:hover { color: var(--white); }

@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* -- 23. Misc utilities ------------------------------------- */
.center { text-align: center; }
.muted { color: var(--ink-muted); }
.dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ember); vertical-align: middle; margin: 0 0.5rem;
}

/* Section header centered variant */
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lead { margin-inline: auto; }

/* Reveal on load (no JS dependency — pure CSS staggered) */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) forwards; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.30s; }
.reveal-4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
