/* ==========================================================================
   Chickee Baptist Church — Site Stylesheet
   Sections: 1 Tokens · 2 Base · 3 Buttons · 4 Header · 5 Hero · 6 Sections
             7 Cards · 8 People & Missions · 9 Salvation · 10 Contact
             11 Gallery · 12 Footer · 13 Motion · 14 Responsive
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --maroon: #7a2331;
  --maroon-dark: #5c1a25;
  --maroon-deep: #3f1019;
  --gold: #b8933f;
  --gold-soft: #d9bd79;
  --gold-pale: #f1e3c4;
  --ink: #221b17;
  --ink-soft: #33291f;
  --cream: #faf6ee;
  --cream-dark: #f1e9db;
  --cream-edge: #e5dac4;
  --text: #2c2620;
  --text-light: #5f564b;
  --text-on-dark: #ece3d4;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;

  --max-width: 1180px;
  --gutter: 24px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(34, 27, 23, 0.08);
  --shadow-md: 0 10px 30px rgba(34, 27, 23, 0.12);
  --shadow-lg: 0 24px 60px rgba(34, 27, 23, 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t-med: 0.32s var(--ease);
  --t-slow: 0.6s var(--ease);

  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.02rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--maroon-dark);
  line-height: 1.18;
  margin-top: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.container.narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--maroon);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 120;
  pointer-events: none;
}

/* Decorative woven band */
.patchwork-band {
  height: 18px;
  background-image: url('../images/patchwork-strip.svg');
  background-repeat: repeat-x;
  background-size: auto 18px;
  position: relative;
  z-index: 2;
}
.patchwork-band.large { height: 30px; background-size: auto 30px; }

/* ---------- 3. Buttons --------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-med),
              background var(--t-med), color var(--t-med), border-color var(--t-med);
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-med); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a37f34);
  color: #241d13;
  box-shadow: 0 8px 20px rgba(184, 147, 63, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(184, 147, 63, 0.42); }

.btn-maroon {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 8px 20px rgba(122, 35, 49, 0.26);
}
.btn-maroon:hover { background: var(--maroon-dark); box-shadow: 0 14px 30px rgba(122, 35, 49, 0.34); }

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

.btn-ghost {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--maroon);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.btn-ghost:hover { transform: none; border-bottom-color: var(--gold); }

/* ---------- 4. Header ---------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #cfc5b4;
  font-size: 0.84rem;
  position: relative;
  z-index: 60;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { text-decoration: none; color: #cfc5b4; transition: color var(--t-fast); }
.topbar a:hover { color: var(--gold-soft); }
.topbar .sep { opacity: 0.35; margin: 0 8px; }
.topbar-contact { display: flex; align-items: center; flex-wrap: wrap; }
.topbar-social { display: inline-flex; gap: 10px; margin-left: 16px; }
.topbar-social a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--t-fast), transform var(--t-fast);
}
.topbar-social a:hover { background: var(--maroon); transform: translateY(-2px); }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }

header.site-header {
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(122, 35, 49, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--t-med), background var(--t-med);
}
header.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(34, 27, 23, 0.12);
  background: rgba(250, 246, 238, 0.98);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  transition: padding var(--t-med);
}
header.site-header.scrolled .nav-wrap { padding: 8px 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 58px;
  height: 46px;
  object-fit: contain;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: transform var(--t-med);
}
.brand:hover .brand-mark { transform: scale(1.05) rotate(-1.5deg); }
.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--maroon-dark);
  line-height: 1.1;
}
.brand-text .line1 { font-size: 1.3rem; display: block; }
.brand-text .line2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-top: 3px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
  display: block;
}
nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-med);
}
nav.main-nav a:hover { color: var(--maroon); }
nav.main-nav a:hover::after { transform: scaleX(1); }
nav.main-nav a[aria-current="page"] { color: var(--maroon); }
nav.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
nav.main-nav .nav-cta a {
  background: var(--maroon);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  margin-left: 8px;
}
nav.main-nav .nav-cta a::after { display: none; }
nav.main-nav .nav-cta a:hover { background: var(--maroon-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(122, 35, 49, 0.35);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--maroon);
  position: relative;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.nav-toggle span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle span::after { content: ""; position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: clamp(96px, 14vw, 168px) 0 clamp(88px, 12vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(34, 27, 23, 0.88) 0%, rgba(40, 24, 24, 0.66) 46%, rgba(63, 16, 25, 0.38) 100%),
    linear-gradient(180deg, rgba(34, 27, 23, 0.1) 40%, rgba(34, 27, 23, 0.6) 100%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/texture-weave.svg');
  opacity: 0.16;
  mix-blend-mode: overlay;
  z-index: -1;
}
.hero.no-overlay::before {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
}
.hero .container { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3); }
.hero p.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  color: #eee6d8;
  margin-bottom: 34px;
  max-width: 640px;
}
.hero p { color: #eee6d8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { padding: clamp(74px, 9vw, 116px) 0 clamp(66px, 8vw, 100px); }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { max-width: 660px; font-size: 1.06rem; }

/* Hero scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0.2); transform-origin: 0 0; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: 0 100%; opacity: 0; }
}

/* Info strip that overlaps the hero */
.info-strip {
  position: relative;
  z-index: 5;
  margin-top: -54px;
  margin-bottom: 8px;
}
.info-strip .inner {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 30px;
  border-right: 1px solid var(--cream-edge);
  transition: background var(--t-med);
}
.info-item:last-child { border-right: none; }
.info-item:hover { background: var(--cream); }
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-pale);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.info-item h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.info-item p { margin: 0; font-weight: 600; color: var(--text); line-height: 1.5; }
.info-item a { color: var(--maroon); text-decoration: none; font-weight: 700; }
.info-item a:hover { text-decoration: underline; }

/* ---------- 6. Sections -------------------------------------------------- */
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section.tight { padding: clamp(46px, 5vw, 68px) 0; }
.section.alt { background: var(--cream-dark); }
.section.ink {
  background: var(--ink);
  color: var(--text-on-dark);
}
.section.ink h2, .section.ink h3 { color: #fff; }
.section.ink p { color: #c9bfae; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-light); font-size: 1.06rem; }
.section.ink .section-head p { color: #b8ad9a; }

.divider-leaf {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 0 auto 22px;
  color: var(--gold);
}
.divider-leaf::before,
.divider-leaf::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.divider-leaf::after { background: linear-gradient(270deg, transparent, currentColor); }

/* Two-column feature */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split.top { align-items: start; }
.split-media { position: relative; isolation: isolate; }
.split-media img {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  width: 100%;
}
/* Gold offset frame. It wraps the photo only, so captions stay clear of it. */
.framed { position: relative; isolation: isolate; }
.framed::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--r-md);
  z-index: -1;
}
.framed + .photo-note { margin-top: 34px; }
.split.reverse .split-media { order: 2; }
.photo-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 12px;
}

/* Verse banner */
.verse-banner {
  background:
    linear-gradient(135deg, rgba(63, 16, 25, 0.96), rgba(122, 35, 49, 0.92)),
    url('../images/texture-weave.svg');
  color: #f6e9d8;
  text-align: center;
  padding: clamp(52px, 7vw, 76px) var(--gutter);
  position: relative;
}
.verse-banner::before,
.verse-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background-image: url('../images/patchwork-strip.svg');
  background-size: auto 8px;
  background-repeat: repeat-x;
  opacity: 0.85;
}
.verse-banner::before { top: 0; }
.verse-banner::after { bottom: 0; }
.verse-banner blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.6vw, 1.95rem);
  line-height: 1.45;
  margin: 0 auto 16px;
  max-width: 880px;
  font-style: italic;
}
.verse-banner cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}

/* Parallax CTA band */
.cta-band {
  position: relative;
  padding: clamp(72px, 10vw, 118px) 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 27, 23, 0.74), rgba(63, 16, 25, 0.86));
  z-index: -1;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6dbc9; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 10px; }

/* ---------- 7. Cards ----------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--r-md);
  padding: 36px 30px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-edge);
  overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-med);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-light); margin: 0; }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream-edge));
  color: var(--maroon);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background var(--t-med), color var(--t-med), transform var(--t-med);
}
.card:hover .icon {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-pale);
  transform: rotate(-4deg) scale(1.04);
}
.card .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* Service time cards */
.time-card {
  text-align: center;
  padding: 38px 26px;
}
.time-card .day {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.time-card .time {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--maroon);
  display: block;
  line-height: 1.1;
  margin-bottom: 8px;
}
.time-card .what { color: var(--text-light); margin: 0; }

/* Purpose / quote cards */
.purpose-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.purpose-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.purpose-card .mark {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 0.6;
  display: block;
  margin-bottom: 18px;
}
.purpose-card p.statement {
  font-family: var(--font-heading);
  font-size: 1.14rem;
  color: var(--maroon-dark);
  line-height: 1.5;
  margin: 0 0 14px;
}
.purpose-card p.note { color: var(--text-light); font-size: 0.92rem; margin: 0; }

/* Ministry cards */
.ministry-card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.ministry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ministry-card .ministry-band {
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
}
.ministry-card .ministry-band.has-photo {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform var(--t-slow);
}
.ministry-card:hover .ministry-band.has-photo { transform: scale(1.04); }
.ministry-card .photo-wrap { overflow: hidden; }
.ministry-card .body { padding: 30px 28px; flex: 1; }
.ministry-card .body p { color: var(--text-light); }
.ministry-card .body a { color: var(--maroon); font-weight: 700; text-decoration: none; }
.ministry-card .body a:hover { text-decoration: underline; }
.ministry-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream-dark);
  color: var(--maroon);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ministry-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-dark);
  color: var(--maroon-dark);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.chip:hover { background: var(--maroon); color: #fff; transform: translateY(-2px); }
.chip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- 8. People & Missions ----------------------------------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 34px;
}
.person-card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
  display: flex;
  flex-direction: column;
}
.person-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.person-media { overflow: hidden; }
.person-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-dark);
  transition: transform var(--t-slow);
}
.person-card:hover .person-photo { transform: scale(1.05); }
.person-body { padding: 28px 30px 32px; flex: 1; }
.person-body .role {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
}
.person-body h3 { margin: 8px 0 14px; font-size: 1.45rem; }
.person-body p { color: var(--text-light); }
.person-body .contact-line {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-edge);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Expandable testimony */
.story {
  border-top: 1px solid var(--cream-edge);
  margin-top: 20px;
}
.story summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--maroon);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 14px;
  font-size: 0.95rem;
  transition: color var(--t-fast);
}
.story summary::-webkit-details-marker { display: none; }
.story summary::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center/10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 10px no-repeat;
  flex-shrink: 0;
  transition: transform var(--t-med);
}
.story[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center/10px 2px no-repeat;
  transform: rotate(180deg);
}
.story summary:hover { color: var(--maroon-dark); }
.story .story-body {
  color: var(--text-light);
  font-size: 0.97rem;
  padding-bottom: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 10px;
}
.story .story-body p { margin-bottom: 14px; }
.story .story-body::-webkit-scrollbar { width: 6px; }
.story .story-body::-webkit-scrollbar-thumb { background: var(--cream-edge); border-radius: 3px; }

/* Missionary cards */
.missionary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.missionary-card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
  display: flex;
  gap: 20px;
  border: 1px solid var(--cream-edge);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.missionary-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.missionary-photo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow-sm);
  transition: box-shadow var(--t-med);
}
.missionary-card:hover .missionary-photo { box-shadow: 0 0 0 2px var(--maroon), var(--shadow-md); }
.missionary-info { min-width: 0; }
.missionary-info h3 { font-size: 1.12rem; margin-bottom: 6px; }
.missionary-info .field {
  display: inline-block;
  color: var(--maroon);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.missionary-info p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 12px; }
.missionary-links { display: flex; flex-wrap: wrap; gap: 8px; }
.missionary-links a {
  font-size: 0.85rem;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.missionary-links a:hover { border-bottom-color: var(--gold); }

/* Field tag cloud */
.fields-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}
.field-tag {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ede3d2;
  border-radius: var(--r-pill);
  padding: 7px 18px;
  font-size: 0.88rem;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.field-tag:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); transform: translateY(-2px); }

/* Timeline */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(184, 147, 63, 0.12));
}
.timeline-item { position: relative; padding: 0 0 34px 52px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--gold);
  transition: background var(--t-med), transform var(--t-med);
}
.timeline-item:hover::before { background: var(--maroon); transform: scale(1.15); }
.timeline-item .year {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--maroon);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.timeline-item p { color: var(--text-light); margin: 0; }

/* ---------- 9. Salvation ------------------------------------------------- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 26px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 30px 32px;
  align-items: flex-start;
  border-left: 4px solid transparent;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.step:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--gold);
}
.step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-pale);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-light); }
.verse-tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--maroon-dark);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 6px;
}
.verse-quote {
  margin: 12px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--text);
}

.prayer-box {
  margin: 56px auto 0;
  max-width: 820px;
  background: linear-gradient(140deg, var(--ink), var(--maroon-deep));
  color: #f2e7d6;
  border-radius: var(--r-lg);
  padding: clamp(36px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.prayer-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/texture-weave.svg');
  opacity: 0.14;
}
.prayer-box > * { position: relative; }
.prayer-box h3 { color: #fff; font-size: 1.7rem; margin-bottom: 18px; }
.prayer-box .pray-text {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  font-style: italic;
  line-height: 1.65;
  color: #f4ead9;
  max-width: 640px;
  margin: 0 auto 20px;
}
.prayer-box .fine { color: #bfb3a1; font-size: 0.92rem; margin-bottom: 26px; }

/* ---------- 10. Contact -------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}
.contact-card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 30px 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.contact-card + .contact-card { margin-top: 18px; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .c-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cream-dark);
  color: var(--maroon);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card .c-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.contact-card .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-card a { color: var(--maroon); font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { margin: 0; }
.contact-card .note { font-size: 0.88rem; color: var(--text-light); font-style: italic; margin-top: 8px; }

.map-embed {
  width: 100%;
  min-height: 460px;
  height: 100%;
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  filter: saturate(0.92);
}

/* ---------- 11. Gallery -------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  position: relative;
  cursor: zoom-in;
  background: var(--cream-dark);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-med);
}
.gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(34, 27, 23, 0.55));
  opacity: 0;
  transition: opacity var(--t-med);
}
.gallery figure:hover img { transform: scale(1.07); }
.gallery figure:hover::after { opacity: 1; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.open { display: flex; animation: fade 0.25s var(--ease); }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 12. Footer --------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #b8ad9c;
  padding: clamp(56px, 7vw, 80px) 0 0;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 46px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 18px;
}
.site-footer p { margin-bottom: 12px; line-height: 1.7; }
.site-footer a { color: #cdc2b0; text-decoration: none; transition: color var(--t-fast); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 54px; height: 44px; object-fit: contain; border-radius: var(--r-sm); }
.footer-brand span {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.2;
}
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer-social a:hover { background: var(--maroon); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; fill: #e3d9c8; }
.footer-cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 24px 24px 26px;
}
.footer-cta p { font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 26px;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #9b9080;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med), background var(--t-fast);
  box-shadow: var(--shadow-md);
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--maroon-dark); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------- 13. Motion --------------------------------------------------- */
/* Content is hidden only when JavaScript is running, so the page still
   reads perfectly if scripts fail or are switched off. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-zoom { opacity: 0; transform: scale(0.96); }
.js .reveal-zoom.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-zoom { opacity: 1; transform: none; }
  .cta-band { background-attachment: scroll; }
}

/* ---------- 14. Responsive ----------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .info-strip .inner { grid-template-columns: 1fr; }
  .info-item { border-right: none; border-bottom: 1px solid var(--cream-edge); }
  .info-item:last-child { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-embed { min-height: 380px; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .framed::before { display: none; }
  .framed + .photo-note { margin-top: 12px; }
}

@media (max-width: 860px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: block; }
  nav.main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--cream);
    box-shadow: -20px 0 50px rgba(34, 27, 23, 0.22);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform var(--t-med), visibility var(--t-med);
    padding: 96px 28px 40px;
    overflow-y: auto;
    z-index: 110;
  }
  nav.main-nav.open { transform: translateX(0); visibility: visible; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  nav.main-nav a {
    padding: 15px 10px;
    font-size: 1.06rem;
    border-bottom: 1px solid var(--cream-edge);
    border-radius: 0;
  }
  nav.main-nav a::after { display: none; }
  nav.main-nav .nav-cta a {
    margin: 18px 0 0;
    text-align: center;
    border-bottom: none;
    border-radius: var(--r-pill);
  }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(34, 27, 23, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med), visibility var(--t-med);
    z-index: 105;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .cta-band { background-attachment: scroll; }
}

@media (max-width: 720px) {
  .topbar .container { justify-content: center; text-align: center; font-size: 0.8rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .step { flex-direction: column; gap: 16px; padding: 26px 24px; }
  .step:hover { transform: none; }
  .missionary-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .brand-text .line1 { font-size: 1.08rem; }
  .brand-mark { width: 48px; height: 38px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery .wide, .gallery .tall { grid-column: auto; grid-row: auto; }
  .card, .purpose-card { padding: 28px 22px; }
}

/* Print */
@media print {
  .topbar, nav.main-nav, .nav-toggle, .to-top, .scroll-progress, .cta-band, .scroll-cue { display: none !important; }
  body { background: #fff; }
  .hero { padding: 24px 0; color: #000; }
  .hero::before, .hero::after { display: none; }
  .hero h1, .hero p { color: #000; }
}
