/* site/site.css — public marketing site for Anointed Christian Fellowship */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #1C2620;
  --ink-soft: #4A554E;
  --cream: #F6F1E4;
  --surface: #FFFFFF;
  --sage: #2F4F3E;
  --sage-deep: #16241E;
  --gold: #B08D57;
  --gold-soft: #E7D9BE;
  --border: #E4DCC9;
  --radius: 5px;
  --serif: 'Inter Tight', -apple-system, sans-serif;
  --sans: 'Inter Tight', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); line-height: 1.6; font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.container { max-width: 1560px; margin: 0 auto; padding: 0 40px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50; background: var(--cream);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(246,241,228,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(28,38,32,0.06);
}
.site-nav.scrolled .site-nav-inner { height: 62px; }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height 0.3s ease; }
.site-logo { font-family: var(--serif); font-size: 20px; font-weight: 500; text-decoration: none; color: var(--sage-deep); }
.site-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.mobile-menu-panel { display: flex; justify-content: space-between; align-items: center; flex: 1; }
.site-links a { text-decoration: none; font-size: 13px; color: var(--ink-soft); position: relative; padding: 4px 0; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; overflow: hidden; display: inline-block; }
.nav-overlay .site-links a { font-size: 11px; }
.site-links a::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.site-links a:hover::before { transform: scaleX(1); }

.nav-text-stack { position: relative; display: block; height: 1.1em; overflow: hidden; }
.nav-text-original, .nav-text-duplicate {
  display: block; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-text-duplicate { position: absolute; top: 0; left: 0; transform: translateY(100%); }
a:hover .nav-text-original { transform: translateY(-100%); }
a:hover .nav-text-duplicate { transform: translateY(0); }
.site-links a:not(:hover)::before { transform-origin: right; }
.site-links a:hover { color: var(--sage-deep); }
.site-links a:not(.current):not(:hover):not(.nav-cta) { opacity: 0.8; }
.site-links a.current { color: var(--sage-deep); opacity: 1; }
.site-links a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.nav-active-dot {
  position: absolute; left: calc(50% - 2px); bottom: -9px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
.site-links a.nav-cta {
  background: var(--sage); color: #fff; text-decoration: none; padding: 10px 22px !important;
  border-radius: var(--radius); font-size: 13px; font-weight: 700; display: inline-block;
}
.site-links a.nav-cta:hover { background: var(--sage-deep); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 860px) {
  .mobile-menu-panel { position: fixed; inset: 76px 0 0 0; background: var(--cream); z-index: 40;
    display: flex; flex-direction: column; justify-content: flex-start; padding: 40px 24px; gap: 12px;
    transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .mobile-menu-panel.open { transform: translateX(0); }
  .site-links { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-links a { font-size: 20px; overflow: visible; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .mobile-menu-panel.open .nav-cta { display: inline-block; margin-top: 12px; }

  /* The hover text-flip effect is meaningless on touch devices (no hover) -- disable the whole
     clipped-height mechanism here rather than let it risk cutting off letters like descenders
     (g, y, p) at this larger mobile font size. */
  .nav-text-stack { height: auto; overflow: visible; }
  .nav-text-duplicate { display: none; }
  .nav-text-original { transform: none !important; }
}

/* ---------- Full-bleed hero (nav + hero combined = 100vh) ---------- */
.hero-full {
  position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  display: flex; flex-direction: column;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('hero-photo.jpg') center/cover no-repeat;
  /* hero-photo.jpg -- to swap it later, just replace that file in this folder with a new one
     of the same name, or update this line to point at a different filename. */
  transform: scale(1); will-change: transform;
}
.hero-full::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.72) 0%, rgba(10,8,6,0.55) 40%, rgba(10,8,6,0.85) 100%);
}
.nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav-overlay .site-links a { color: rgba(255,255,255,0.85); }
.nav-overlay .site-links a:hover, .nav-overlay .site-links a.current { color: #fff; }
.nav-overlay .site-logo { color: #fff; text-transform: uppercase; font-weight: 800; letter-spacing: -0.01em; font-size: 11px; }
.nav-overlay .menu-btn span, .nav-overlay .menu-trigger .bars span { background: #fff; }
.nav-overlay .site-links a.nav-cta {
  background: none; color: #fff; padding: 0 !important; border-radius: 0; font-weight: 600;
  text-transform: none; font-size: 14px; letter-spacing: normal;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.nav-overlay .site-links a.nav-cta:hover { border-bottom-color: #fff; background: none; }
.nav-overlay.scrolled {
  background: rgba(246,241,228,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); box-shadow: 0 4px 20px rgba(28,38,32,0.06);
}
.nav-overlay.scrolled .site-links a { color: var(--ink-soft); }
.nav-overlay.scrolled .site-links a:hover, .nav-overlay.scrolled .site-links a.current { color: var(--sage-deep); }
.nav-overlay.scrolled .site-logo { color: var(--sage-deep); }
.nav-overlay.scrolled .menu-btn span, .nav-overlay.scrolled .menu-trigger .bars span { background: var(--ink); }
.nav-overlay.scrolled .site-links a.nav-cta { color: var(--sage-deep); border-bottom-color: var(--sage-deep); }
.nav-center-mark {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  height: 76px; display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 12px; letter-spacing: 0.06em; color: var(--sage-deep);
  font-weight: 800; text-transform: uppercase;
}
.nav-center-mark img { height: 26px; width: 26px; }
.mobile-only-nav { display: none; }

@media (max-width: 860px) {
  .nav-overlay .site-logo { font-size: 11px; max-width: 150px; line-height: 1.25; }
  .nav-center-mark { font-size: 11px; max-width: 130px; text-align: center; white-space: normal; line-height: 1.2; }
  .desktop-only-links { display: none; }
  .mobile-only-nav {
    display: flex; align-items: center; gap: 14px; margin-left: auto;
  }
  .mobile-quick-link {
    color: var(--ink-soft); text-decoration: none; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
  }
  .nav-overlay .mobile-quick-link { color: rgba(255,255,255,0.85); }
  .nav-overlay.scrolled .mobile-quick-link { color: var(--ink-soft); }
}

.hero-full-body {
  position: relative; z-index: 1; flex: 1; max-width: 1560px; margin: 0 auto; width: 100%; box-sizing: border-box;
}
.hero-headline-block { position: absolute; left: 40px; bottom: 130px; max-width: 640px; }
.hero-full-body .hero-eyebrow { color: var(--gold-soft); font-size: 14px; letter-spacing: 0.02em; font-style: normal; display: flex; align-items: center; gap: 8px; }
.hero-full-body .hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.hero-full-body h1 { font-size: clamp(38px, 6vw, 76px); color: #fff; max-width: 640px; letter-spacing: -0.01em; font-weight: 800; text-transform: uppercase; line-height: 1.05; text-shadow: 0 4px 24px rgba(0,0,0,0.35); margin-top: 18px; }
.line-wrap { display: block; overflow: hidden; }
.line-inner { display: inline-block; }
.hero-side-note { position: absolute; right: 40px; bottom: 96px; max-width: 260px; text-align: left; }
.hero-side-note p { color: rgba(255,255,255,0.82); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.hero-side-note a { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; }
.hero-scroll-cue { position: absolute; left: 40px; bottom: 40px; color: rgba(255,255,255,0.55); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 860px) {
  .hero-full { height: auto; min-height: 560px; padding-bottom: 40px; }
  .hero-full-body { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-headline-block { position: static; transform: none; padding: 0 22px; margin-top: 120px; }
  .hero-side-note { position: static; max-width: none; padding: 22px 22px 0; }
  .hero-scroll-cue { display: none; }
}

.hero { background: var(--sage-deep); color: var(--cream); padding: 110px 0 90px; }
.hero-eyebrow { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: 19px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); max-width: 780px; color: #fff; text-transform: uppercase; letter-spacing: 0.01em; }
.hero p { max-width: 520px; margin: 26px 0 36px; font-size: 18px; color: #D8DCD3; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 15px; transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease; }
.btn::after { content: '→'; display: inline-block; transition: transform 0.25s ease; }
.btn:hover::after { transform: translateX(4px); }
.btn:hover { transform: scale(1.02); }
.btn-gold { background: var(--gold); color: var(--sage-deep); }
.btn-gold:hover { background: #C4A06D; }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-deep); }

/* ---------- Schedule strip ---------- */
.schedule { background: var(--surface); border-bottom: 1px solid var(--border); }
.schedule-inner { display: flex; flex-wrap: wrap; }
.schedule-item { flex: 1 1 240px; padding: 34px 24px; border-right: 1px solid var(--border); }
.schedule-item:last-child { border-right: none; }
.schedule-label { font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 6px; }
.schedule-time { font-family: var(--serif); font-size: 24px; color: var(--sage-deep); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-narrow { max-width: 640px; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 22px; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 620px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 40px; }
.value-item { background: var(--surface); padding: 28px; }
.value-item h3 { font-size: 19px; margin-bottom: 8px; }
.value-item p { font-size: 15px; color: var(--ink-soft); }

.ministry-row { display: flex; gap: 40px; padding: 36px 0; border-top: 1px solid var(--border); align-items: baseline; flex-wrap: wrap; }
.ministry-row:last-child { border-bottom: 1px solid var(--border); }
.ministry-name { font-family: var(--serif); font-size: 24px; flex: 0 0 220px; }
.ministry-detail { flex: 1 1 320px; }
.ministry-detail p { color: var(--ink-soft); margin-bottom: 8px; }
.ministry-meta { font-size: 14px; color: var(--sage); }

.faq-item { border-top: 1px solid var(--border); padding: 26px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); }

.cta-band { background: var(--sage); color: #fff; text-align: left; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #DCE4DD; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }

.give-box { background: var(--surface); border: 1px solid var(--border); padding: 40px; margin-top: 32px; }
.give-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.give-row:last-child { border-bottom: none; }
.give-label { color: var(--ink-soft); }
.give-value { font-family: var(--serif); font-size: 19px; }

.contact-detail { padding: 18px 0; border-top: 1px solid var(--border); }
.contact-detail:last-child { border-bottom: 1px solid var(--border); }
.contact-detail span { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.contact-detail strong { font-size: 17px; font-weight: 500; }

form .field { margin-bottom: 18px; }
form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-soft); }
form input, form textarea, form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; background: var(--surface); color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
form button { border: none; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-deep); color: #C8CFC7; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--serif); color: #fff; font-size: 20px; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: #C8CFC7; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Focus visibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Full-screen sliding menu (index.html hero nav) ---------- */
.menu-trigger {
  background: none; border: none; color: var(--ink); cursor: pointer;
  padding: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 3;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.menu-trigger:hover { background: rgba(22,36,30,0.08); }
.menu-trigger .bars { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.menu-trigger .bars span { height: 2px; background: var(--ink); display: block; border-radius: 1px; }
.menu-trigger .bars span:nth-child(1) { width: 10px; }
.menu-trigger .bars span:nth-child(2) { width: 16px; }
.menu-trigger .bars span:nth-child(3) { width: 22px; }
.menu-trigger:hover .bars { transform: rotate(90deg); }

.fullscreen-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--sage-deep);
  transform: translateX(-100%); transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.fullscreen-menu.open { transform: translateX(0); }
.fullscreen-menu-close {
  position: absolute; top: 28px; right: 32px; z-index: 2; background: none; border: none; color: #fff;
  font-size: 32px; cursor: pointer; line-height: 1; font-weight: 300;
}
.fsm-grid { display: flex; width: 100%; height: 100%; }
.fsm-links-col { flex: 1.15; display: flex; flex-direction: column; justify-content: center; padding: 0 80px; min-width: 0; }
.fsm-logo { color: rgba(255,255,255,0.5); text-transform: uppercase; font-size: 12px; letter-spacing: 0.08em; margin-bottom: 44px; font-weight: 600; }
.fullscreen-menu-links { list-style: none; margin: 0; padding: 0; text-align: left; }
.fullscreen-menu-links li { margin: 6px 0; display: flex; align-items: baseline; gap: 22px; }
.fsm-num { color: var(--gold); font-size: 13px; font-weight: 600; flex-shrink: 0; width: 20px; }
.fullscreen-menu-links a {
  color: #fff; text-decoration: none; font-family: var(--serif); font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; transition: color 0.2s, transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: inline-block;
}
.fullscreen-menu-links a:hover { color: var(--gold); transform: translateX(10px); }
.fullscreen-menu-links a.nav-cta-link { color: var(--gold); }
.fsm-photo-col { flex: 0.85; position: relative; overflow: hidden; display: none; }
.fsm-photo-col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.fsm-photo-col::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(22,36,30,0.5) 0%, rgba(10,8,6,0.85) 100%); }
.fsm-info { position: absolute; z-index: 1; bottom: 64px; left: 56px; right: 56px; display: grid; gap: 22px; }
.fsm-info-block h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-soft); margin-bottom: 6px; font-weight: 600; }
.fsm-info-block p { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.5; }
@media (min-width: 901px) { .fsm-photo-col { display: block; } }
@media (max-width: 900px) { .fsm-links-col { padding: 0 28px; } .fullscreen-menu-links a { font-size: clamp(26px, 8vw, 40px); } }

/* ---------- Vertical section navigator (index.html only) ---------- */
.vertical-section-nav {
  position: fixed; right: 32px; top: 55%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: flex-end; gap: 22px;
  opacity: 1; pointer-events: auto; transition: opacity 0.5s ease;
  background: rgba(22,36,30,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 20px 14px; border-radius: 20px;
}
.vertical-section-nav.pre-animate { opacity: 0; pointer-events: none; }
.vertical-section-nav.visible { opacity: 1; pointer-events: auto; }
.vertical-section-nav.hidden-for-menu { opacity: 0; pointer-events: none; }

.vsn-item {
  display: flex; align-items: center; gap: 0; text-decoration: none; position: relative;
  padding: 4px 0;
}
.vsn-item:not(:last-child)::after {
  content: ''; position: absolute; right: 6px; top: 100%; width: 1px; height: 22px;
  background: rgba(255,255,255,0.25);
}
.vsn-number {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45); transition: color 0.3s ease; min-width: 14px; text-align: right;
}
.vsn-line {
  width: 0; height: 1px; background: var(--gold); margin: 0; transition: width 0.35s cubic-bezier(0.4,0,0.2,1);
}
.vsn-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); opacity: 0; max-width: 0; overflow: hidden; white-space: nowrap;
  transition: opacity 0.3s ease, max-width 0.35s ease, transform 0.3s ease;
  transform: translateX(-6px);
}

/* Active item: line + label always shown, gold number */
.vsn-item.active .vsn-number { color: var(--gold); }
.vsn-item.active .vsn-line { width: 18px; margin: 0 8px; }
.vsn-item.active .vsn-label { opacity: 1; max-width: 100px; transform: translateX(0); margin-right: 4px; }

/* Inactive item: reveal on hover only */
.vsn-item:not(.active):hover .vsn-number { color: #fff; }
.vsn-item:not(.active):hover .vsn-line { width: 18px; margin: 0 8px; background: rgba(255,255,255,0.6); }
.vsn-item:not(.active):hover .vsn-label { opacity: 1; max-width: 100px; transform: translateX(0); margin-right: 4px; color: rgba(255,255,255,0.85); }

.vsn-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 900px) {
  .vertical-section-nav { display: none; }
}

/* ---------- Homepage sections (index.html, beyond the hero) ---------- */
.home-section { padding: 100px 0; }
.home-section.narrow-center { text-align: center; }
.home-section.narrow-center .lede { margin-left: auto; margin-right: auto; }

.checklist { list-style: none; margin: 28px 0; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 15px; color: var(--ink-soft); }
.checklist li::before { content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0; }

/* Single duotone-treated photo used in the story section -- one real photo, styled distinctly
   from the hero's straight color version rather than repeating it verbatim. */
.duotone-frame { position: relative; border-radius: 4px; overflow: hidden; min-height: 460px; }
.duotone-frame img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 460px; filter: grayscale(1) contrast(1.05); }
.duotone-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(47,79,62,0.62) 0%, rgba(22,36,30,0.78) 100%);
  mix-blend-mode: multiply;
}
.duotone-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(176,141,87,0.16), transparent 55%);
}
@media (max-width: 860px) { .duotone-frame, .duotone-frame img { min-height: 320px; } }

/* ---------- Reference-matched homepage system ---------- */

/* Nav: logo left, pill CTA inline in the link list */
.site-links a.nav-cta { display: inline-flex; align-items: center; gap: 6px; }

/* Section heading with a small bracketed index -- used where the content genuinely has an
   order among the page's sections, echoing the reference site's own [02]/[05]/[06] labels. */
.idx-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.idx-heading h2 { margin-bottom: 0; }
.idx-heading .idx-num { font-size: 14px; font-weight: 600; color: var(--gold); margin-left: 10px; vertical-align: super; }
.idx-heading .idx-copy { max-width: 360px; font-size: 15px; color: var(--ink-soft); padding-top: 6px; }
.idx-heading .idx-copy p { margin-bottom: 16px; }
@media (max-width: 860px) { .idx-heading { flex-direction: column; gap: 16px; } }

.pill-btn { display: inline-block; background: var(--sage-deep); color: #fff; padding: 12px 22px; border-radius: 5px; font-size: 13px; font-weight: 600; text-decoration: none; }
.pill-btn:hover { background: var(--sage); }

.qr-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); padding: 14px 18px; border-radius: 5px; margin-top: 20px; max-width: 340px; }
.qr-card img { width: 76px; height: 76px; border-radius: 3px; flex-shrink: 0; }
.qr-card div { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.qr-card strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }

/* Real M-Pesa payment QR generator (Daraja-backed) */
.qr-gen-card { display: flex; gap: 28px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 28px; margin-bottom: 32px; flex-wrap: wrap; }
.qr-gen-text { flex: 1; min-width: 240px; }
.qr-gen-text strong { display: block; font-size: 16px; margin-bottom: 6px; }
.qr-gen-text p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.qr-gen-row { display: flex; gap: 10px; flex-wrap: wrap; }
.qr-gen-row input { flex: 1; min-width: 140px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 5px; font-size: 15px; font-family: inherit; }
.qr-gen-row .btn { flex-shrink: 0; }
.qr-gen-msg { font-size: 13px; margin-top: 10px; color: var(--sage); min-height: 18px; }
.qr-gen-msg-error { color: #B0453C; }
.qr-gen-result { flex-shrink: 0; width: 160px; min-height: 160px; display: flex; align-items: center; justify-content: center; }
.qr-gen-result img { width: 160px; height: 160px; border-radius: 4px; border: 1px solid var(--border); }
@media (max-width: 640px) { .qr-gen-card { flex-direction: column; } .qr-gen-result { width: 100%; } }

/* Photo gallery grid with small numbered captions beneath -- one real photo, two different
   tonal treatments, standing in for a proper gallery until real photos exist. */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; border-radius: 3px; }
.gallery-item.tone-warm img { filter: grayscale(1) sepia(0.35) contrast(1.05); }
.gallery-item.tone-sage img { filter: grayscale(1); }
.gallery-item.tone-sage { position: relative; }
.gallery-item.tone-sage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(47,79,62,0.55), rgba(22,36,30,0.7)); mix-blend-mode: multiply; border-radius: 3px; }
.gallery-caption { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Numbered offer rows: eyebrow label + title + copy on the left, a two-column bullet list on
   the right -- a real, ordered set of what the church actually offers. */
.offer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 44px 0; border-top: 1px solid var(--border); align-items: center; }
.offer-row:last-child { border-bottom: 1px solid var(--border); }
.offer-eyebrow { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.offer-row h3 { font-size: 24px; margin-bottom: 10px; }
.offer-row p { color: var(--ink-soft); font-size: 15px; max-width: 420px; }
.offer-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.offer-bullets li { font-size: 14px; color: var(--ink-soft); display: flex; align-items: baseline; gap: 8px; }
.offer-bullets li::before { content: '·'; color: var(--gold); font-weight: 900; }
@media (max-width: 860px) { .offer-row { grid-template-columns: 1fr; gap: 20px; } }

/* Full-bleed emotive break, echoing the reference's single mid-page full-bleed moment. */
.break-band { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden; }
.break-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: breakZoom 16s ease-in-out infinite alternate; }
@keyframes breakZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.break-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(22,36,30,0.6) 0%, rgba(10,8,6,0.8) 100%); }
.break-band-inner { position: relative; z-index: 1; color: #fff; }
.break-band .hero-eyebrow { color: var(--gold-soft); font-size: 14px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.break-band .hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.break-band h2 { color: #fff; font-size: clamp(32px, 6vw, 64px); max-width: 760px; }
.break-band p { color: rgba(255,255,255,0.82); font-size: 17px; max-width: 440px; margin: 22px 0 28px; }
.break-band-inner a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.45); padding-bottom: 2px; }
.break-band-inner a:hover { border-bottom-color: #fff; }
@media (prefers-reduced-motion: reduce) { .break-band img { animation: none; } }

/* Process: three photos in a row, numbered captions underneath -- a genuine sequence. */
.process-photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.process-photo-row img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; border-radius: 3px; filter: grayscale(1) contrast(1.05); }
.process-photo-row .gallery-caption { font-weight: 600; color: var(--ink); }
.process-schedule { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; gap: 40px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.process-schedule .times { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.process-schedule .times strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .process-photo-row { grid-template-columns: 1fr 1fr; } .process-photo-row > div:last-child { grid-column: span 2; } }

/* Testimonial: one photo, two quotes side by side, prev/next as a visual (not wired to real
   pagination since there are only two on the page right now). */
.testimonial-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.testimonial-split .duotone-frame { min-height: 340px; }
.testimonial-split .duotone-frame img { min-height: 340px; }
.testimonial-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.testimonial-item blockquote { font-size: 17px; line-height: 1.5; margin: 0 0 16px; color: var(--ink); }
.testimonial-item .t-name { font-weight: 600; font-size: 14px; }
.testimonial-item .t-role { font-size: 13px; color: var(--ink-soft); }
.testimonial-arrows { margin-top: 28px; display: flex; gap: 24px; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 860px) { .testimonial-split { grid-template-columns: 1fr; } .testimonial-pair { grid-template-columns: 1fr; gap: 24px; } }

/* Final combined CTA + footer, matching the reference's single closing band. */
.final-band { position: relative; color: #fff; padding: 90px 0 0; overflow: hidden; }
.final-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.final-band::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(22,36,30,0.94) 0%, rgba(10,8,6,0.88) 100%); }
.final-band .container { position: relative; z-index: 1; }
.final-band-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.final-band h2 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 28px; max-width: 420px; }
.final-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.final-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.final-cols h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; opacity: 0.65; font-weight: 600; }
.final-cols ul { list-style: none; margin: 0; padding: 0; }
.final-cols li { margin-bottom: 10px; }
.final-cols a { color: #C8CFC7; text-decoration: none; font-size: 14px; }
.final-cols a:hover { color: #fff; }
.final-band-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.55); }
@media (max-width: 860px) { .final-band-top, .final-cols { grid-template-columns: 1fr; } .final-cols { gap: 28px; } }

/* Split hero -- solid color panel + photo, used for a distinct sub-page hero treatment */
.hero-split { display: flex; min-height: 56vh; }
.hero-split-text { flex: 1; background: var(--sage-deep); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.hero-split-text .hero-eyebrow { color: var(--gold-soft); }
.hero-split-text h1 { color: #fff; font-size: clamp(32px, 4.2vw, 52px); margin-top: 14px; }
.hero-split-text p { color: rgba(255,255,255,0.82); margin-top: 18px; max-width: 420px; }
.hero-split-photo { flex: 1; position: relative; overflow: hidden; }
.hero-split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-split-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 35%); }
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .home-section { padding: 60px 0; }
  .hero-photo-band { min-height: 48vh; padding: 130px 0 28px; }
  .hero-editorial { padding: 120px 0 60px; }
  .hero-solid { padding: 120px 0 60px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .final-band { padding: 56px 0 0; }
  .final-band::after { background: linear-gradient(200deg, rgba(22,36,30,0.88) 0%, rgba(8,6,5,0.96) 100%); }
  .final-band-top { padding-bottom: 32px; }
  .final-band h2 { font-size: 28px; }
  .final-band-actions { flex-direction: column; align-items: stretch; }
  .final-band-actions .btn { justify-content: center; }
  .final-cols {
    grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 36px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .final-cols > div:last-child { grid-column: 1 / -1; }
  .final-cols h4 { margin-bottom: 14px; }
  .final-cols li { margin-bottom: 9px; }
  .final-cols a { font-size: 14px; }
  .final-band-bottom { flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 24px 0 28px; }
}
.hero-split.reverse { flex-direction: row-reverse; }

/* Editorial hero: huge type on a plain background with a small corner photo -- no full photo band */
.hero-editorial { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero-editorial::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 140px; background: linear-gradient(180deg, rgba(22,36,30,0.85) 0%, rgba(22,36,30,0) 100%); pointer-events: none; }
.hero-editorial .container { position: relative; }
.hero-editorial h1 { font-size: clamp(40px, 7vw, 88px); text-transform: uppercase; max-width: 880px; letter-spacing: -0.01em; }
.hero-editorial-thumb { position: absolute; right: 40px; top: 50%; transform: translateY(-55%); width: 220px; height: 280px; overflow: hidden; border-radius: 4px; box-shadow: 0 20px 50px rgba(28,38,32,0.15); }
.hero-editorial-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
@media (max-width: 900px) { .hero-editorial-thumb { display: none; } }

/* Solid minimal hero: no photo at all, for a calmer, more direct page opener */
.hero-solid { background: var(--sage-deep); color: #fff; padding: 160px 0 90px; }
.hero-solid .hero-eyebrow { color: var(--gold-soft); }
.hero-solid h1 { color: #fff; }
.hero-solid p { color: rgba(255,255,255,0.82); }
@media (max-width: 860px) { .hero-split { flex-direction: column; min-height: auto; } .hero-split-text { padding: 120px 26px 40px; } .hero-split-photo { height: 260px; } }

/* Premium giving card */
.give-card { background: var(--sage-deep); color: #fff; border-radius: 12px; padding: 40px; margin-top: 32px; position: relative; overflow: hidden; }
.give-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(176,141,87,0.28), transparent 60%); pointer-events: none; }
.give-card-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.15); position: relative; z-index: 1; flex-wrap: wrap; }
.give-card-row:last-child { border-bottom: none; }
.give-card-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.give-card-value { font-family: var(--serif); font-size: 28px; font-weight: 800; letter-spacing: 0.02em; }
.give-copy-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 12px; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: 600; transition: background 0.2s; flex-shrink: 0; }
.give-copy-btn:hover { background: rgba(255,255,255,0.22); }

/* Numbered steps (a genuine sequence: how to complete an M-Pesa payment) */
.step-list { margin-top: 20px; }
.step-item { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.step-item:last-child { border-bottom: 1px solid var(--border); }
.step-item .step-index { font-family: var(--serif); font-weight: 800; font-size: 20px; color: var(--gold); flex: 0 0 36px; }
.step-item h4 { font-size: 16px; margin-bottom: 4px; }
.step-item p { font-size: 14px; color: var(--ink-soft); }
.live-embed-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: #000; margin-top: 12px; }
.live-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-embed-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.live-embed-play {
  position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 16px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; backdrop-filter: blur(4px); transition: background 0.2s;
}
.live-embed-play:hover { background: rgba(0,0,0,0.75); }
.live-embed-play-icon { font-size: 13px; }
.live-embed-frame.is-loaded .live-embed-poster,
.live-embed-frame.is-loaded .live-embed-play { display: none; }
.live-embed-footer { margin-top: 20px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.live-embed-footer a { color: var(--sage); font-weight: 600; text-decoration: none; }
.faq-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.faq-map { min-height: 300px; border-radius: 4px; overflow: hidden; filter: grayscale(0.4) contrast(1.05) brightness(0.9); }
.faq-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .faq-map-grid { grid-template-columns: 1fr; } .faq-map { min-height: 300px; } }

/* ---------- Photo-backed page hero (About, Ministries, Visit, Contact, etc.) ---------- */
.hero-photo-band {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end; padding: 150px 0 70px; color: #fff; overflow: hidden;
  background-size: cover; background-position: center;
}
.hero-photo-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,6,0.65) 0%, rgba(10,8,6,0.78) 100%);
}
.hero-photo-band .container { position: relative; z-index: 1; }
.hero-photo-band .hero-eyebrow { color: var(--gold-soft); }
.hero-photo-band h1 { color: #fff; text-shadow: 0 3px 16px rgba(0,0,0,0.3); text-transform: uppercase; letter-spacing: -0.01em; }
.hero-photo-band p { color: rgba(255,255,255,0.85); }
