/* ============================================================
   Northeast Christian Church — "The Broadcast Welcome"
   Community radio / local-access TV world.
   Palette: Deep Harbor Teal (control-room dark), tungsten amber
   (the one saturated accent, ~40% coverage), warm near-white.
   Type: Oswald (broadcast-ident display/labels) + Barlow (body).
   ============================================================ */

:root {
  --teal-950: #0f2027;
  --teal-900: #16323c;
  --teal-800: #1f4552;
  --teal-700: #254c5a;   /* Deep Harbor Teal — confirmed brand color */
  --teal-600: #336575;

  --amber-500: #e8963f;  /* tungsten / tally-light amber — the one accent */
  --amber-600: #cf7d29;
  --amber-400: #f2b06b;

  --paper-050: #f6f3ee;  /* warm near-white content ground, not cream/parchment */
  --paper-100: #eee9e0;
  --ink-900: #17181a;
  --ink-700: #3a3d40;
  --ink-500: #6b6f73;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-050);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber-500);
  color: var(--ink-900);
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.skip-link:focus { left: 0; }

/* ---------- shared bits ---------- */

.rec-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(232, 150, 63, 0.25);
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--teal-700);
  display: flex;
  align-items: center;
  margin: 0 0 14px;
}
.section-dark .eyebrow { color: var(--amber-400); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
.lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 46ch;
  margin: 0 0 24px;
}
.section-dark .lede { color: rgba(246, 243, 238, 0.82); }
/* .card h3 has no explicit color — it inherits the section's text color,
   which is fine on the light sections .card was designed for but goes
   low-contrast against the card's own white background on a .section-dark
   band. This exact override was independently added, page-scoped, on three
   separate pages (give.html, connect.html, discover-purpose.html) before
   being promoted here — any future .card usage on a dark section now gets
   it for free instead of needing a fourth copy. */
.section-dark .card h3 { color: var(--ink-900); }
/* Same story for .fine-print's ink-500 grey, which reads fine on the paper
   background it was designed for but has poor contrast on dark teal. */
.section-dark .fine-print { color: rgba(246, 243, 238, 0.6); }
.fine-print {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 12px;
}

/* ---------- buttons: real, filled, fixes the incumbent No-Button Rule ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--ink-900);
}
.btn-primary:hover { background: var(--amber-400); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; }

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.9;
}
.btn-ghost:hover { opacity: 1; border-color: var(--amber-500); color: var(--amber-500); }
.btn-ghost:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

.btn-small { padding: 13px 24px; font-size: 0.92rem; }

.lt-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal-700);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo img { height: 52px; width: auto; filter: brightness(0) invert(1); }

.channel-nav { flex: 1; }
.channel-list {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.channel-list a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.channel-list a:hover,
.channel-list a:focus-visible { background: rgba(255,255,255,0.1); color: #fff; }
.channel-list a.active { color: var(--amber-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span:not(.nav-toggle-label) {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
}
.nav-toggle-label {
  position: absolute;
  left: -9999px;
}

/* ---------- hero / now-airing frame ---------- */

.hero { background: var(--teal-950); }
.hero-frame {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,16,0.92) 0%, rgba(10,14,16,0.55) 32%, rgba(15,32,39,0.15) 60%, rgba(15,32,39,0.35) 100%);
}

.tally {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  background: rgba(15, 32, 39, 0.7);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}
.tally-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
  animation: tally-blink 1.6s ease-in-out infinite;
}
@keyframes tally-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px 2px rgba(232,150,63,0.7); }
  50% { opacity: 0.35; box-shadow: 0 0 0 0 rgba(232,150,63,0); }
}

.broadcast-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lower-third {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 40px 24px 56px;
  color: #fff;
}
.lt-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--amber-400);
  margin: 0 0 10px;
}
.lt-headline {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0 0 16px;
  color: #fff;
}
.lt-sub {
  font-size: 1.15rem;
  max-width: 52ch;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
}

/* ---------- channel guide strip ---------- */

.channel-guide {
  background: var(--teal-900);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.guide-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background-color 0.15s ease;
}
.guide-row:last-child { border-right: none; }
.guide-row:hover, .guide-row:focus-visible { background: rgba(255,255,255,0.06); }
.guide-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #fff;
}
.guide-desc { font-size: 0.78rem; color: rgba(255,255,255,0.6); line-height: 1.35; }

/* ---------- generic sections ---------- */

.section { padding: 88px 24px; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-dark { background: var(--teal-800); color: var(--paper-050); }
.section-dark h2 { color: #fff; }

/* A centered, narrower closing-CTA band (e.g. visit.njk's "Ready When
   You Are") — was previously four separate inline style= attributes. */
.cta-centered { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-centered .eyebrow, .cta-centered .lt-actions { justify-content: center; }
.cta-centered .lede { margin: 0 auto 28px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
@media (min-width: 1px) { }

.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.frame-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15,32,39,0.75);
  color: var(--amber-400);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

/* Ministry spotlights with more than one leader: same .split-media column,
   split into two (or more) smaller photos side by side instead of one
   full-width image. A single photo still fills the whole column exactly
   as before — auto-fit collapses to one column when there's only one. */
.split-media-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.spotlight-photo { position: relative; }
.spotlight-photo img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* A ministry with more than one spotlight photo (co-led) has room to
   spare in these sections — give each photo a taller crop instead of
   the single-photo 4:3, which was cutting off the top of their heads. */
.spotlight-photo:not(:only-child) img {
  aspect-ratio: 3 / 4;
}

.fact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 0 0 28px;
  padding: 20px;
  background: var(--paper-100);
  border-radius: var(--radius-md);
}
.fact-list > div { display: flex; flex-direction: column; gap: 2px; }
.fact-list dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--teal-700);
}
.fact-list dd { margin: 0; font-weight: 500; color: var(--ink-900); }
.fact-list a { text-decoration: underline; text-decoration-color: var(--amber-500); }

/* ---------- PSA / mission band ---------- */

.psa {
  background: var(--ink-900);
  color: var(--paper-050);
  padding: 96px 24px;
  text-align: center;
}
.psa-inner { max-width: 760px; margin: 0 auto; }
.psa-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.psa-line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 24px;
}
.psa-motto {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(246,243,238,0.75);
  font-style: italic;
  margin: 0 0 24px;
}
.psa-affiliation {
  font-size: 0.9rem;
  color: rgba(246,243,238,0.6);
  margin: 0;
}
.psa-link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  color: var(--amber-400);
  text-decoration: none;
  border-bottom: 1px solid rgba(242,176,107,0.4);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.psa-link:hover, .psa-link:focus-visible { border-color: var(--amber-400); }

/* ---------- ministry cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--paper-100);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
a.card:hover, a.card:focus-visible { border-color: var(--teal-700); }
.card h3 { text-decoration: none; }
.card p { font-size: 0.92rem; color: var(--ink-700); line-height: 1.5; margin: 0; }
.section-cta { margin-top: 32px; }

/* ---------- page header band (interior pages) ---------- */

.page-header {
  background: var(--teal-800);
  color: var(--paper-050);
  padding: 72px 24px;
}
.page-header-inner { max-width: var(--container); margin: 0 auto; }
.page-header .eyebrow { color: var(--amber-400); }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  margin: 0 0 16px;
}
.page-header .lede { color: rgba(246,243,238,0.82); max-width: 60ch; margin: 0; }

/* ---------- leader / elder cards ---------- */

.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.leader-card { display: flex; flex-direction: column; }
.leader-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.leader-card h3 { margin-bottom: 2px; }
.leader-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--teal-700);
  margin: 0 0 12px;
}
.leader-card p:not(.leader-title) { font-size: 0.92rem; color: var(--ink-700); line-height: 1.55; margin: 0; }

.elder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 720px;
}
.elder-card { text-align: center; }
.elder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--amber-500);
  margin-bottom: 12px;
}
.elder-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: #fff;
  margin: 0;
}

/* ---------- belief statement list ---------- */

.belief-list { margin: 40px 0 0; }
.belief-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--paper-100);
}
.belief-item:last-child { border-bottom: 1px solid var(--paper-100); }
.belief-item dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  color: var(--teal-700);
}
.belief-item dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 65ch;
}

/* ---------- two-up give/connect ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--teal-950);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}
.footer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-facts p { margin: 0 0 4px; font-size: 0.85rem; }
.footer-facts a { text-decoration: underline; text-decoration-color: var(--amber-500); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(255,255,255,0.7); transition: color 0.15s ease; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--amber-400); }
.footer-copy { width: 100%; font-size: 0.78rem; color: rgba(255,255,255,0.4); margin: 24px 0 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .channel-nav { position: static; }
  .channel-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--teal-800);
    padding: 8px;
    gap: 2px;
  }
  .channel-list.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }

  .channel-guide { grid-template-columns: 1fr; }
  .guide-row { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }

  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media, .split.reverse .split-copy { order: initial; }

  .card-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .fact-list { grid-template-columns: 1fr; }

  .leader-grid { grid-template-columns: 1fr 1fr; }
  .elder-grid { grid-template-columns: 1fr 1fr; max-width: none; }
  .belief-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-frame { min-height: 100vh; }
  .section { padding: 64px 20px; }
  .psa { padding: 64px 20px; }
  .page-header { padding: 56px 20px; }

  .leader-grid { grid-template-columns: 1fr; }
  .elder-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tally-dot { animation: none; }
  html { scroll-behavior: auto; }
}
