/* ==========================================================================
   Rogers City Baptist Church — design system
   Grow in Your Love Relationship with God
   ========================================================================== */

:root {
  /* Color */
  --ink:        #122543;
  --ink-2:      #1A3358;
  --ink-3:      #2B4A7C;
  --brass:      #867944;
  --brass-2:    #6B6034;
  --brass-soft: #E3DCC4;
  --cream:      #F7F5EE;
  --cream-2:    #EEEADF;
  --paper:      #FFFFFF;
  --body:       #3A404A;
  --muted:      #6C7380;
  --line:       #E2DED3;
  --line-dark:  rgba(255,255,255,.16);

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space */
  --gut: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
  --radius: 3px;
  --radius-lg: 10px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(18,37,67,.06), 0 4px 12px rgba(18,37,67,.05);
  --shadow-md: 0 2px 4px rgba(18,37,67,.06), 0 12px 32px rgba(18,37,67,.09);
}

/* ---------- 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.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 40;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(1140px, 100% - (var(--gut) * 2)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - (var(--gut) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: rgba(255,255,255,.78); }
.section--ink h2, .section--ink h3 { color: #fff; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid-2--fixed { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid-2--fixed { grid-template-columns: 1fr; } }

/* ---------- Bits ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: var(--brass-soft);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: var(--brass-soft);
}
.section--ink .eyebrow { color: var(--brass-soft); }
.section--ink .eyebrow::after, .section--ink .eyebrow::before { background: rgba(227,220,196,.35); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--body); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { content: ""; flex: 0 0 34px; height: 1px; background: var(--brass-soft); }
.measure { max-width: 62ch; }
.center .measure { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brass); color: #fff; }
.btn--primary:hover { background: var(--brass-2); }
.btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header (dark) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-logo { height: 32px; width: auto; display: block; }
.site-footer .brand-logo { height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  font-size: .86rem;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }
.nav > .btn { display: none; }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .btn { padding: .7rem 1.25rem; font-size: .85rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: #fff; content: ""; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--gut) 1.5rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.1); color: var(--brass-soft); }
  .nav > .btn { display: inline-flex; margin-top: 1.25rem; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(460px, 72vh, 640px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-slides { position: absolute; inset: 0; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s ease-in-out, transform 7s linear;
}
.hero-bg { filter: blur(3px); }
.hero-bg.is-active { opacity: .55; transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .hero-bg.is-active { transform: none; } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(18,37,67,.94) 0%, rgba(18,37,67,.78) 42%, rgba(18,37,67,.38) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--brass-soft); }
.hero .eyebrow::after { background: rgba(227,220,196,.4); }
.hero p { color: rgba(255,255,255,.86); max-width: 48ch; font-size: clamp(1.05rem, 1.7vw, 1.2rem); }

/* Page header (interior pages) */
.page-head {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 340px at 88% -10%, rgba(134,121,68,.28), transparent 65%),
    radial-gradient(520px 320px at 5% 110%, rgba(43,74,124,.55), transparent 70%);
}
.page-head > * { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { color: rgba(255,255,255,.78); max-width: 56ch; margin: 0; }
.page-head .eyebrow { color: var(--brass-soft); }
.page-head .eyebrow::after { background: rgba(227,220,196,.4); }

/* ---------- Service times bar ---------- */
.times-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.time-item {
  padding: 1.7rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.time-item:last-child { border-right: 0; }
.time-item dt {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
  font-weight: 600;
}
.time-item dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 620px) {
  .time-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.15rem; }
  .time-item:last-child { border-bottom: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--body); font-size: .97rem; margin-bottom: 0; }
.card--cream { background: var(--cream); border-color: transparent; }
.card-num {
  font-family: var(--display);
  font-size: .95rem;
  color: var(--brass);
  border: 1px solid var(--brass-soft);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 1.15rem;
}
.icon-tile {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--cream-2);
  color: var(--brass-2);
  display: grid; place-items: center;
  margin-bottom: 1.15rem;
}
.icon-tile svg { width: 22px; height: 22px; }

/* Media split */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split-media { order: 2; }
@media (max-width: 700px) { .split--reverse .split-media { order: 0; } }

/* Staff */
.staff-card { display: grid; gap: 1.6rem; grid-template-columns: 180px 1fr; align-items: start; }
.staff-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-2);
}
.staff-photo--placeholder {
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--brass);
  background: var(--cream-2);
}
.staff-role {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: .4rem;
}
@media (max-width: 560px) {
  .staff-card { grid-template-columns: 1fr; }
  .staff-photo { width: 130px; height: 130px; }
}

/* Events */
.event {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.event:last-child { border-bottom: 0; }
.event-date {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: .8rem .4rem;
}
.event-month {
  display: block;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 600;
}
.event-day { display: block; font-family: var(--display); font-size: 1.85rem; line-height: 1.1; }
.event-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.event h3 { margin-bottom: .3rem; }
@media (max-width: 520px) {
  .event { grid-template-columns: 72px 1fr; gap: 1rem; }
  .event-day { font-size: 1.5rem; }
}

/* Scripture / quote */
.scripture {
  border-left: 3px solid var(--brass);
  padding: .35rem 0 .35rem 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
}
.scripture cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: .9rem;
  font-weight: 600;
}
.section--ink .scripture { color: #fff; border-color: var(--brass-soft); }
.section--ink .scripture cite { color: var(--brass-soft); }

.pullquote {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 24ch;
}

/* Steps list */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6rem 3.5rem;
  border-left: 1px solid var(--line);
  margin-left: 19px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -19px; top: -2px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--brass-soft);
  color: var(--brass);
  font-family: var(--display);
  font-size: .95rem;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { font-size: .97rem; margin-bottom: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--display);
  font-size: 1.13rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .35rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--brass);
  font-family: var(--sans);
  font-weight: 300;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 1.4rem; margin: 0; color: var(--body); }

/* Beliefs list */
.beliefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.beliefs li { padding-left: 1.9rem; position: relative; }
.beliefs li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
}
.beliefs strong { color: var(--ink); font-family: var(--display); font-weight: 600; }

/* Map */
.map-frame {
  border: 0;
  width: 100%;
  height: clamp(300px, 45vh, 430px);
  border-radius: var(--radius-lg);
  filter: grayscale(.25) contrast(1.02);
}

/* Contact list */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-list dt {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .3rem;
}
.contact-list dd { margin: 0; font-size: 1.06rem; color: var(--ink); }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brass-soft); }
.contact-list a:hover { border-bottom-color: var(--brass); }

/* Form */
.form-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: .45rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  background: var(--paper);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* Give tiers */
.give-methods { display: grid; gap: 1.25rem; }
.give-method {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.give-method:last-child { border-bottom: 0; }

/* Callout strip */
.strip {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  gap: 1.75rem;
  align-items: center;
  grid-template-columns: 1fr auto;
  position: relative;
  overflow: hidden;
}
.strip::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 92% 0%, rgba(134,121,68,.32), transparent 62%);
}
.strip > * { position: relative; }
.strip h2 { color: #fff; margin-bottom: .35em; }
.strip p { color: rgba(255,255,255,.8); margin: 0; max-width: 52ch; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.66);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-tagline { margin-top: 1.25rem; max-width: 30ch; color: rgba(255,255,255,.6); }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.social-row { display: flex; gap: .7rem; margin-top: 1.25rem; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .18s ease, border-color .18s ease;
}
.social-row a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.social-row svg { width: 17px; height: 17px; }

/* Skip link */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- RCBC additions ---------- */

/* Video */
.video-shell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}
.video-shell video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }

/* Hero stats strip */
.hero-times {
  display: flex; flex-wrap: wrap; gap: .4rem 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .86rem;
  color: rgba(255,255,255,.82);
}
.hero-times strong { color: #fff; font-weight: 600; }

/* Photo gallery */
.gallery {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 140px; } .gallery .wide { grid-column: span 2; } }

/* Program rows (students page) */
.program {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.program:first-child { border-top: 0; padding-top: 0; }
.program-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); background: var(--cream-2); }
.program-media img { width: 100%; height: 100%; object-fit: cover; }
.program--flip .program-media { order: 2; }
.program-when { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: .5rem; }
@media (max-width: 720px) { .program { grid-template-columns: 1fr; } .program--flip .program-media { order: 0; } }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.pills li {
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--ink);
  background: var(--paper);
}

/* Missionary directory */
.mission-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mission {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  display: flex; flex-direction: column;
}
.mission-photo {
  aspect-ratio: 4 / 3; width: calc(100% + 2.5rem); margin: -1.15rem -1.25rem .95rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--navy-2, #1a2f52);
}
.mission-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mission-photo--place img { filter: saturate(.75); }
.mission-photo--place { position: relative; }
.mission-photo--place::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,37,67,0) 40%, rgba(18,37,67,.55));
}
.mission-field { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: .3rem; }
.mission h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.mission p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.55; }
.mission p a { color: var(--ink-3); }

/* Region header */
.region-head {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.5rem 0 1rem;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 600;
}
.region-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.region-head:first-of-type { margin-top: 0; }

/* Staff cards with photo */
.staff-photo { width: 180px; height: 180px; border-radius: var(--radius-lg); }
.staff-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.staff-card--wide { grid-template-columns: 300px 1fr; }
.staff-card--wide .staff-photo { width: 300px; height: 300px; }
@media (max-width: 720px) {
  .staff-card--wide { grid-template-columns: 1fr; }
  .staff-card--wide .staff-photo { width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 3; }
}

/* Verse chip */
.verse-chip {
  display: inline-block;
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .8rem;
  margin-top: .75rem;
}

/* Resource checklist */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; }
.check-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--brass); margin-top: .15rem; }

/* Definition cards (Independent / Fundamental / Baptist) */
.def-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.def { border-top: 3px solid var(--brass); padding-top: 1.1rem; }
.def h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.def p { font-size: .95rem; margin: 0; }

/* Doctrine accordion */
.doctrine details { border-bottom: 1px solid var(--line); }
.doctrine summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--ink);
  position: relative;
}
.doctrine summary::-webkit-details-marker { display: none; }
.doctrine summary::after {
  content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brass); font-family: var(--sans); font-weight: 300;
}
.doctrine details[open] summary::after { content: "\2013"; }
.doctrine .refs { font-size: .8rem; color: var(--muted); letter-spacing: .02em; padding-bottom: 1.25rem; margin: 0; }
.doctrine details > p:not(.refs) { margin: 0 0 .6rem; padding-right: 1rem; }

/* Form status + honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); font-size: .93rem; }
.form-status--ok { background: #EAEEF5; color: var(--ink); border: 1px solid #C5CFE0; }
.form-status--err { background: #F6F1E3; color: #5C5230; border: 1px solid var(--brass-soft); }
.pills label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.pills input { accent-color: var(--brass); }
.hero .eyebrow, .page-head .eyebrow { white-space: nowrap; }
@media (max-width: 420px) { .hero .eyebrow, .page-head .eyebrow { white-space: normal; } }
@media (max-width: 600px) {
  .hero-times { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
  .hero-times strong { display: block; font-size: .78rem; letter-spacing: .04em; }
  .hero { min-height: auto; }
  .btn-row .btn { flex: 1 1 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .wide { grid-column: span 2; }
  .gallery .tall { grid-row: span 2; }
  .times-grid { grid-template-columns: 1fr 1fr; }
  .time-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
}

/* Page-head background photo */
.page-head--photo { background: var(--ink); }
.page-head .page-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  opacity: .5;
}
.page-head--photo::before {
  background:
    linear-gradient(100deg, rgba(18,37,67,.94) 0%, rgba(18,37,67,.80) 45%, rgba(18,37,67,.45) 100%),
    radial-gradient(760px 340px at 88% -10%, rgba(134,121,68,.28), transparent 65%);
}
.page-head--photo { padding-block: clamp(4rem, 8vw, 6.5rem); }
.page-head .page-bg { z-index: 0; opacity: .6; }
.page-head--photo::before { z-index: 1; }
.page-head > .wrap { position: relative; z-index: 2; }

/* ---------- Revelation series ---------- */
.rev-hero {
  position: relative; overflow: hidden; color: #fff;
  background: #0B1730 url("/assets/img/revelation-bg.jpg") center/cover no-repeat;
  min-height: clamp(520px, 80vh, 720px);
  display: grid; align-items: center;
}
.rev-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.rev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,23,48,.15) 0%, rgba(11,23,48,.55) 60%, rgba(11,23,48,.95) 100%); }
.rev-hero .wrap { position: relative; z-index: 2; text-align: center; padding-block: clamp(3rem, 8vw, 5rem); }
.rev-kicker { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: #D9C98A; margin-bottom: 1.25rem; }
.rev-hero h1 { color: #fff; font-weight: 500; letter-spacing: .02em; line-height: 1.05; margin-bottom: .4rem; }
.rev-hero h1 .of { display: block; font-style: italic; font-weight: 400; font-size: .45em; color: #D9C98A; margin: .3em 0; }
.rev-hero h1 .gold { color: #D9C98A; }
.rev-tag { font-family: var(--display); font-style: italic; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: rgba(255,255,255,.85); margin: 1rem auto 0; }
.rev-when {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem;
  margin-top: 2rem; padding: .9rem 1.4rem; border: 1px solid rgba(217,201,138,.45); border-radius: 999px;
  font-size: .92rem; color: #fff; background: rgba(11,23,48,.5);
}
.rev-when strong { color: #D9C98A; font-weight: 600; }
.rev-hero .btn--gold { background: #D9C98A; color: #0B1730; }
.rev-hero .btn--gold:hover { background: #E8DBA6; }
.rev-hero .btn--outline { border-color: rgba(255,255,255,.6); }

.section--night { background: #0B1730; color: rgba(255,255,255,.8); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night .eyebrow { color: #D9C98A; }
.section--night .eyebrow::after, .section--night .eyebrow::before { background: rgba(217,201,138,.4); }
.section--night .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--night .card h3 { color: #fff; }
.section--night .card p { color: rgba(255,255,255,.75); }
.section--night .icon-tile { background: rgba(217,201,138,.14); color: #D9C98A; }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lesson-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.lesson-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.lesson-list .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); color: var(--brass); border: 1px solid var(--brass-soft); }
.lesson-list strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1rem; }
.lesson-list small { color: var(--muted); }
.lesson-list li.is-done { background: var(--cream); }
.lesson-list li.is-next .num { background: var(--brass); color: #fff; border-color: var(--brass); }

/* Article */
.article { width: min(720px, 100% - (var(--gut) * 2)); margin-inline: auto; font-size: 1.06rem; line-height: 1.8; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.4rem; }
.article h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.article p { margin-bottom: 1.25em; }
.article blockquote { margin: 1.75rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 3px solid var(--brass); font-family: var(--display); font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.article blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-top: .5rem; }
.article ul { padding-left: 1.3rem; }
.article li { margin-bottom: .4rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.article-meta a { color: var(--ink-3); }
.pull { background: var(--cream); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; margin: 2rem 0; }
.pull strong { color: var(--ink); }

/* Home promo strip */
.promo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #0B1730 url("/assets/img/revelation-bg.jpg") center/cover; color: #fff; padding: clamp(2rem, 5vw, 3.25rem); display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; align-items: center; }
.promo h2 { color: #fff; margin-bottom: .3em; }
.promo p { color: rgba(255,255,255,.82); max-width: 54ch; margin: 0; }
.promo .eyebrow { color: #D9C98A; }
.promo .eyebrow::after { background: rgba(217,201,138,.4); }
.promo .btn--gold { background: #D9C98A; color: #0B1730; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }

/* Scripture links -> TheWay Bible App */
a.scr { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--brass); text-underline-offset: 3px; }
a.scr:hover { color: var(--brass-2); text-decoration-style: solid; }
.section--ink a.scr, .section--night a.scr, .promo a.scr { color: inherit; text-decoration-color: rgba(217,201,138,.7); }
.scripture cite a.scr, .refs a.scr { color: inherit; }

/* Sermon library */
.sermon-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sermon-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.sermon-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.sermon-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.sermon-thumb:hover img { transform: scale(1.04); }
.sermon-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(18,37,67,.85); color: #fff; display: grid; place-items: center; font-size: 1.1rem; padding-left: 4px; border: 1px solid rgba(255,255,255,.3); }
.sermon-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.sermon-kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: .5rem; }
.sermon-card h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.sermon-card h3 a { color: var(--ink); text-decoration: none; }
.sermon-card h3 a:hover { color: var(--brass-2); }
.sermon-ref { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.sermon-small { font-size: .93rem; color: var(--body); margin-bottom: 0; flex: 1; }
.nav { gap: 1.3rem; }
