/* ================================================
   HARVEST FIELDS — Styles
   IMB Brand: Sarum Blue #1B365D / Lively Jade #487A7B
   ================================================ */

:root {
  --primary: #1B365D;
  --accent: #487A7B;
  --teal: #009681;
  --red: #B83A4B;
  --orange: #E87722;
  --muted: #707372;
  --light: #B2B4B2;
  --bg: #ffffff;
  --surface: #f7f9fc;
  --border: #e2e8f0;
  --text: #1a2332;
  --text-secondary: #556070;

  --font-display: 'Nunito Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Source Sans 3', 'Georgia', serif;

  --max-w: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(27,54,93,0.06);
  --shadow: 0 4px 16px rgba(27,54,93,0.10);
  --shadow-lg: 0 12px 40px rgba(27,54,93,0.16);
  --transition: 0.22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover {
  background: #3a6869;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--ghost {
  background: rgba(255,255,255,0.10);
  color: white;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Section Helpers ---- */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.35s ease;
}
.nav.scrolled {
  background: white;
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.nav__logo-img--dark { display: none; }
.nav.scrolled .nav__logo-img--light { display: none; }
.nav.scrolled .nav__logo-img--dark { display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  transition: color var(--transition);
}
.nav.scrolled .nav__link { color: var(--text-secondary); }
.nav__link:hover { color: white; }
.nav.scrolled .nav__link:hover { color: var(--primary); }
.nav__link--cta {
  background: rgba(255,255,255,0.15);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.nav.scrolled .nav__link--cta {
  background: var(--accent);
  border-color: var(--accent);
  color: white !important;
}
.nav__link--cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav.scrolled .nav__toggle span { background: var(--primary); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; }
.mobile-menu__close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.6);
  padding: 8px;
}
.mobile-menu__close:hover { color: white; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}
.mobile-menu__link:hover { color: var(--accent); }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  overflow: hidden;
  padding: 120px 24px 100px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(72,122,123,0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0,150,129,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}
.hero__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(72,122,123,0.15);
  border: 1px solid rgba(72,122,123,0.35);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.55s ease both;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.04;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  animation: fadeSlideUp 0.55s 0.12s ease both;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.68);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
  animation: fadeSlideUp 0.55s 0.24s ease both;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.55s 0.36s ease both;
}
.hero__stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 56px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.10);
  animation: fadeSlideUp 0.55s 0.48s ease both;
}
.hero__stat { text-align: center; }
.hero__stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.hero__stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 64px;
  z-index: 3;
}
.hero__wave svg { width: 100%; height: 100%; }

/* ================================================
   FEATURED POSTS
   ================================================ */
.featured { padding: 80px 0 48px; }
.featured__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.featured__secondary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================================================
   POST CARDS
   ================================================ */
.post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.post-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.post-card__cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-card--large .post-card__cover { aspect-ratio: 4/3; }
.post-card--small .post-card__cover { aspect-ratio: 2/1; }

.post-card__cover-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
}
.post-card__cover-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.35;
}
.post-card--small .post-card__cover-icon { font-size: 2.5rem; }
.post-card__cover-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(0,0,0,0.35));
}

.cover-theology    { background: var(--primary); }
.cover-intelligence { background: #2c5f60; }
.cover-technology  { background: #0c4d43; }
.cover-strategy    { background: #3d2248; }
.cover-casestudy   { background: #5c3020; }

.post-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card--small .post-card__body { padding: 20px; }

.post-card__cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.cat-Theology        { background: rgba(27,54,93,0.08); color: var(--primary); }
.cat-Field-Intelligence { background: rgba(44,95,96,0.10); color: #2c5f60; }
.cat-Technology      { background: rgba(0,150,129,0.10); color: var(--teal); }
.cat-Strategy        { background: rgba(184,58,75,0.10); color: var(--red); }
.cat-Case-Studies    { background: rgba(232,119,34,0.10); color: var(--orange); }

.post-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.post-card--large .post-card__title { font-size: 1.5rem; }
.post-card--small .post-card__title { font-size: 1rem; }

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.post-card__dot {
  width: 3px; height: 3px;
  background: var(--light);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================
   ARTICLES SECTION
   ================================================ */
.articles {
  padding: 48px 0 88px;
  background: var(--surface);
}
.articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.articles__search { position: relative; }
.search-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 42px 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: white;
  width: 270px;
  outline: none;
  transition: border-color var(--transition);
  color: var(--text);
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--light); }
.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--muted);
  pointer-events: none;
}
.articles__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.articles__empty {
  text-align: center;
  padding: 72px 24px;
  color: var(--muted);
  font-size: 1rem;
  grid-column: 1/-1;
}
.articles__load {
  text-align: center;
  margin-top: 40px;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about { padding: 100px 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__lead {
  font-size: 1.12rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 500;
}
.about__text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 16px;
}
.about__pillars {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pillar__icon {
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.pillar__content h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.pillar__content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.about__visual { display: flex; flex-direction: column; gap: 20px; }
.about__intro .about__text:last-child { margin-bottom: 0; }
.about__verse-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 38px;
  position: relative;
  overflow: hidden;
}
.about__verse-card::before {
  content: '\201C';
  position: absolute;
  top: -28px; left: 16px;
  font-size: 14rem;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}
.about__verse {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.86);
  line-height: 1.78;
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.about__verse-ref {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.about__quote-card {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.about__quote-card blockquote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.72;
  font-style: italic;
  margin-bottom: 10px;
}
.about__quote-card cite {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--primary);
  padding: 52px 0 32px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 24px;
}
.footer__brand { max-width: 280px; }
.footer__logo-img {
  height: 26px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}
.footer__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.40);
  line-height: 1.5;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.58);
  font-weight: 600;
}
.footer__links a:hover { color: white; }
.footer__meta { text-align: right; }
.footer__meta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 4px;
}
.footer__meta a { color: var(--accent); }
.footer__meta a:hover { color: rgba(72,122,123,0.8); }
.footer__scripture {
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(255,255,255,0.18) !important;
  letter-spacing: 0.06em;
  font-size: 0.88rem !important;
}
.footer__bottom {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  text-align: center;
}

/* ================================================
   POST PAGE
   ================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 200;
  transition: width 0.08s linear;
}
.post-nav-top {
  background: var(--primary);
  padding-top: 72px;
}
.post-hero {
  background: var(--primary);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.post-hero__back {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  transition: color var(--transition);
}
.post-hero__back:hover { color: white; }
.post-hero__category {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(72,122,123,0.15);
  border: 1px solid rgba(72,122,123,0.3);
  padding: 5px 15px;
  border-radius: 50px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.post-hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  color: white;
  max-width: 840px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
}
.post-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.60);
  max-width: 600px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 2;
  line-height: 1.65;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.post-hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  z-index: 3;
}
.post-hero__wave svg { width: 100%; height: 100%; }

.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.post-content {
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.88;
  color: var(--text);
}
.post-content h2 {
  font-size: 1.75rem;
  margin: 52px 0 18px;
  color: var(--primary);
}
.post-content h3 {
  font-size: 1.3rem;
  margin: 36px 0 12px;
  color: var(--primary);
}
.post-content p { margin-bottom: 26px; }
.post-content ul, .post-content ol {
  margin-bottom: 26px;
  padding-left: 28px;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 10px; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 18px 28px;
  margin: 36px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}
.post-content strong { color: var(--primary); font-weight: 700; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content em { font-style: italic; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  margin-top: 52px;
}
.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.post-nav__link:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.post-nav__link--next { text-align: right; }
.post-nav__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
}
.post-nav__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}
.post-nav__link:hover .post-nav__title { color: var(--accent); }
.post-nav__placeholder { /* empty grid cell */ }

.post-error {
  text-align: center;
  padding: 80px 24px;
}
.post-error h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.post-error p { color: var(--text-secondary); }

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .featured__grid { grid-template-columns: 1fr; }
  .featured__secondary { flex-direction: row; }
  .articles__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .hero__stats { flex-direction: column; gap: 28px; padding-top: 36px; }
  .featured__secondary { flex-direction: column; }
  .articles__grid { grid-template-columns: 1fr; }
  .articles__header { flex-direction: column; align-items: flex-start; }
  .search-input { width: 100%; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .footer__meta { text-align: left; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { text-align: left; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__title { font-size: 2.6rem; }
  .about__verse-card { padding: 26px; }
  .container { padding: 0 16px; }
}

/* ================================================
   PHASES OF PROGRESS
   ================================================ */
.phases {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.phases__track {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.phases__track::-webkit-scrollbar { height: 4px; }
.phases__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.phase-btn {
  flex-shrink: 0;
  min-width: 112px;
  padding: 16px 12px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}
.phase-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.phase-btn__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.phase-btn__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.phase-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.phase-btn--0 { background: rgba(92,16,16,0.08);   color: #5C1010; }
.phase-btn--1 { background: rgba(183,28,28,0.09);  color: #B71C1C; }
.phase-btn--2 { background: rgba(229,57,53,0.09);  color: #C62828; }
.phase-btn--3 { background: rgba(245,124,0,0.10);  color: #E65100; }
.phase-btn--4 { background: rgba(230,168,0,0.10);  color: #C67A00; }
.phase-btn--5 { background: rgba(124,179,66,0.12); color: #558B2F; }
.phase-btn--6 { background: rgba(56,142,60,0.10);  color: #2E7D32; }
.phase-btn--7 { background: rgba(27,94,32,0.10);   color: #1B5E20; }
.phase-btn--0.active { background: #5C1010; color: white; border-color: #5C1010; }
.phase-btn--1.active { background: #B71C1C; color: white; border-color: #B71C1C; }
.phase-btn--2.active { background: #C62828; color: white; border-color: #C62828; }
.phase-btn--3.active { background: #E65100; color: white; border-color: #E65100; }
.phase-btn--4.active { background: #C67A00; color: white; border-color: #C67A00; }
.phase-btn--5.active { background: #558B2F; color: white; border-color: #558B2F; }
.phase-btn--6.active { background: #2E7D32; color: white; border-color: #2E7D32; }
.phase-btn--7.active { background: #1B5E20; color: white; border-color: #1B5E20; }
.phases__detail {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  min-height: 220px;
  transition: opacity 0.18s ease;
}
.phases__detail.fading { opacity: 0; }
.phase-detail__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.phase-detail__num-bg {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.08;
  flex-shrink: 0;
  margin-top: -6px;
}
.phase-detail__meta { flex: 1; }
.phase-detail__title { font-size: 1.55rem; color: var(--primary); margin-bottom: 10px; }
.phase-detail__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}
.badge-no-gospel      { background: rgba(184,58,75,0.10); color: var(--red); }
.badge-no-disciples   { background: rgba(232,119,34,0.10); color: var(--orange); }
.badge-no-church      { background: rgba(180,150,20,0.10); color: #7a6210; }
.badge-no-reproduction { background: rgba(0,150,129,0.10); color: var(--teal); }
.badge-no-multiplication { background: rgba(72,122,123,0.12); color: var(--accent); }
.badge-no-sending     { background: rgba(27,54,93,0.08); color: var(--primary); }
.badge-complete       { background: rgba(0,150,129,0.12); color: var(--teal); }
.phase-detail__summary {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.72;
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.phase-detail__body { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.78; }
.phases__categories {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.phases__categories-header { margin-bottom: 32px; }
.phases__categories-title { font-size: 1.3rem; color: white; margin-bottom: 8px; }
.phases__categories-desc { font-size: 0.88rem; color: rgba(255,255,255,0.50); line-height: 1.6; max-width: 600px; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 4px solid rgba(255,255,255,0.30);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  /* Button reset — these cards are clickable buttons. */
  font-family: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  width: 100%;
  appearance: none;
}
.category-item:hover { background: rgba(255,255,255,0.10); transform: translateY(-2px); }
.category-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.category-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category-item__name { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: white; }
.category-item__priority {
  font-family: var(--font-display);
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 50px;
  background: var(--red);
  color: white;
  white-space: nowrap;
}
.category-item__phases { font-size: 0.7rem; color: rgba(255,255,255,0.40); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.category-item__description { font-size: 0.82rem; color: rgba(255,255,255,0.62); line-height: 1.55; }
.category-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.category-item__audience {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}
.category-item__count {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
}

/* Per-category left border color, synced to phase badges above. */
.category-item--badge-no-gospel        { border-left-color: var(--red); }
.category-item--badge-no-disciples     { border-left-color: var(--orange); }
.category-item--badge-no-church        { border-left-color: #d4b94a; }
.category-item--badge-no-reproduction  { border-left-color: var(--teal); }
.category-item--badge-no-multiplication{ border-left-color: var(--accent); }
.category-item--badge-no-sending       { border-left-color: rgba(255,255,255,0.55); }
.category-item--badge-no-gospel:hover        { border-left-color: var(--red); background: rgba(184,58,75,0.14); }
.category-item--badge-no-disciples:hover     { border-left-color: var(--orange); background: rgba(232,119,34,0.12); }
.category-item--badge-no-church:hover        { border-left-color: #d4b94a; background: rgba(212,185,74,0.12); }
.category-item--badge-no-reproduction:hover  { border-left-color: var(--teal); background: rgba(0,150,129,0.14); }
.category-item--badge-no-multiplication:hover{ border-left-color: var(--accent); background: rgba(72,122,123,0.18); }
.category-item--badge-no-sending:hover       { border-left-color: white; background: rgba(255,255,255,0.12); }

/* Mini phase-strip: 8 dots; the "on" ones are filled with the category's color. */
.phase-strip {
  display: flex;
  gap: 5px;
  align-items: center;
}
.phase-strip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  flex-shrink: 0;
}
.phase-strip__dot--on.badge-no-gospel        { background: var(--red); }
.phase-strip__dot--on.badge-no-disciples     { background: var(--orange); }
.phase-strip__dot--on.badge-no-church        { background: #d4b94a; }
.phase-strip__dot--on.badge-no-reproduction  { background: var(--teal); }
.phase-strip__dot--on.badge-no-multiplication{ background: var(--accent); }
.phase-strip__dot--on.badge-no-sending       { background: rgba(255,255,255,0.80); }

/* Pulse animation on phase buttons when a category scrolls the user up to them. */
@keyframes phase-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(72,122,123,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(72,122,123,0); }
  100% { box-shadow: 0 0 0 0 rgba(72,122,123,0); }
}
.phase-btn--pulse { animation: phase-pulse 1.1s ease-out; }
@media (max-width: 768px) {
  .phases__categories { padding: 28px 20px; }
  .categories-grid { grid-template-columns: 1fr; gap: 12px; }
  .phase-btn { min-width: 90px; }
  .phases__detail { padding: 24px 20px; }
}

/* ================================================
   ABOUT DEFINITION CALLOUT
   ================================================ */
.about__definition {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.about__definition-text {
  font-size: 1.08rem;
  color: var(--primary);
  font-weight: 600;
  font-style: italic;
  line-height: 1.62;
  margin-bottom: 8px;
}
.about__definition-ref {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  display: block;
}

/* ================================================
   RESOURCES SECTION
   ================================================ */
.resources {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.resources__label {
  text-align: center;
  margin-bottom: 32px;
}
.resources__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}
.resource-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  color: var(--text);
}
.resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.resource-card__icon {
  font-size: 2.4rem;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.resource-card__title { font-size: 1.85rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; line-height: 1.2; }
.resource-card__desc { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 18px; }
.resource-card__cta { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--accent); }
@media (max-width: 600px) {
  .resources__grid { grid-template-columns: 1fr; }
}

/* ================================================
   PODCAST SECTION
   ================================================ */
.podcast {
  padding: 88px 0;
  background: white;
  border-top: 1px solid var(--border);
}
.podcast__episodes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.episode-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.episode-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  background: white;
}
.episode-card__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(72,122,123,0.10);
  border: 1px solid rgba(72,122,123,0.20);
  border-radius: 50px;
  padding: 5px 14px;
  white-space: nowrap;
  margin-top: 3px;
}
.episode-card__body { flex: 1; }
.episode-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.episode-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}
.episode-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.episode-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.episode-card__links { display: flex; gap: 8px; }
.episode-card__platform {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.episode-card__platform:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.podcast__cta { text-align: center; }
.episode-card__player {
  display: block;
  width: 100%;
  margin: 4px 0 16px;
  border-radius: 50px;
}
@media (max-width: 600px) {
  .episode-card { flex-direction: column; gap: 12px; padding: 20px; }
  .episode-card__footer { flex-direction: column; align-items: flex-start; }
}

/* ================================================
   WHITE PAPERS SECTION
   ================================================ */
.papers {
  padding: 88px 0;
  background: white;
  border-top: 1px solid var(--border);
}
.papers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.paper-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.paper-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: white;
}
.paper-card__num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.paper-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 6px;
}
.paper-card__subtitle {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
  font-style: italic;
}
.paper-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.paper-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.paper-card__btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.paper-card__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.paper-card__btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.paper-card__btn--primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
@media (max-width: 600px) {
  .paper-card { padding: 22px 20px; }
}

/* ================================================
   AUDIO BRIEFS SECTION
   ================================================ */
.briefs {
  padding: 88px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.briefs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.brief-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.brief-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.brief-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.brief-card__num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(72,122,123,0.10);
  border: 1px solid rgba(72,122,123,0.20);
  border-radius: 50px;
  padding: 5px 12px;
}
.brief-card__duration {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.brief-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 8px;
}
.brief-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}
.brief-card__player {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  border-radius: 50px;
}
.brief-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.brief-card__date {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}
.brief-card__download {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.brief-card__download:hover {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 600px) {
  .brief-card { padding: 20px; }
}
