/* ============================================================
   JESUS IS THE WAY — Shared Design System
   Based on the Bible Version Comparison page styling
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --gold: #b8860b;
  --gold-light: #d4a843;
  --crimson: #8b1a1a;
  --crimson-light: #a52a2a;
  --parchment: #faf6ee;
  --parchment-dark: #f0e8d8;
  --ink: #2c1810;
  --ink-light: #4a3728;
  --ink-muted: #7a6a5a;
  --green-accent: #2d6a4f;
  --green-light: #40916c;
  --divider: #c9b896;
  --card-bg: #ffffff;
  --shadow: rgba(44, 24, 16, 0.08);
  --shadow-deep: rgba(44, 24, 16, 0.15);
  --hero-dark: #1a0f08;
  --hero-mid: #2c1810;
  --hero-light: #3d2518;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', Georgia, serif;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ============ SITE NAV ============ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(28, 16, 8, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
  padding: 0 28px;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  height: 56px;
}

.site-nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s;
}

.site-nav-brand:hover { color: #f0e8d8; }

.site-nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.site-nav-links a {
  display: block;
  padding: 16px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(240, 232, 216, 0.6);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.site-nav-links a:hover,
.site-nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-light);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--hero-dark) 0%, var(--hero-mid) 40%, var(--hero-light) 100%);
  padding: 100px 40px 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184, 134, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(139, 26, 26, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--crimson), var(--gold));
}

.hero-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeDown 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.2;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeDown 0.8s ease 0.4s forwards;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #c9b896;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeDown 0.8s ease 0.6s forwards;
}

.hero-verse {
  display: inline-block;
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 8px;
  padding: 16px 32px;
  max-width: 680px;
  opacity: 0;
  animation: fadeDown 0.8s ease 0.8s forwards;
}

.hero-verse p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: #e8dcc8;
  font-style: italic;
  line-height: 1.6;
}

.hero-verse cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* ============ CONTENT ============ */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.content-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ SECTION DIVIDER ============ */
.section-divider {
  height: 5px;
  background: linear-gradient(90deg, var(--green-accent), var(--green-light), var(--green-accent));
  margin: 0;
  border: none;
}

/* ============ SECTIONS ============ */
section {
  padding: 72px 0 64px;
}

section > .content > h2,
section > .content-wide > h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green-accent);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 48px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ INTRO TEXT ============ */
.intro-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 32px;
}

.intro-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============ SCRIPTURE BLOCK ============ */
.scripture-block {
  margin: 28px 0;
  padding: 20px 28px 20px 32px;
  border-left: 3px solid var(--gold);
  background: rgba(184, 134, 11, 0.04);
  border-radius: 0 8px 8px 0;
}

.scripture-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}

.scripture-block cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

/* ============ FALSE TEACHING QUOTE ============ */
.false-teaching-block {
  margin: 28px 0;
  padding: 20px 28px 20px 32px;
  border-left: 3px solid var(--crimson);
  background: rgba(139, 26, 26, 0.04);
  border-radius: 0 8px 8px 0;
}

.false-teaching-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.7;
}

.false-teaching-block cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--crimson);
}

.false-teaching-block .source-label {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
  font-style: normal;
}

/* ============ COMPARISON CARDS ============ */
.teaching-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 36px;
  margin: 36px 0;
  box-shadow: 0 2px 12px var(--shadow), 0 0 0 1px rgba(201, 184, 150, 0.2);
  transition: box-shadow 0.3s ease;
}

.teaching-card:hover {
  box-shadow: 0 4px 20px var(--shadow-deep), 0 0 0 1px rgba(201, 184, 150, 0.35);
}

.teaching-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 184, 150, 0.4);
}

.teaching-card .card-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 20px;
}

/* ============ TOPIC NAV (sticky sub-nav for long pages) ============ */
.toc-bar {
  position: sticky;
  top: 56px;
  z-index: 100;
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.toc-bar::-webkit-scrollbar { height: 0; }

.toc-inner {
  display: flex;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

.toc-inner a {
  display: block;
  padding: 14px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.toc-inner a:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

/* ============ FOOTER ============ */
footer {
  background: linear-gradient(165deg, var(--hero-dark) 0%, var(--hero-mid) 100%);
  text-align: center;
  padding: 56px 28px 48px;
}

footer .footer-verse {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #e8dcc8;
  max-width: 600px;
  margin: 0 auto;
}

footer cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

footer .footer-note {
  margin-top: 28px;
  font-size: 0.8rem;
  color: rgba(201, 184, 150, 0.5);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

footer .footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

footer .footer-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(212, 168, 67, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

footer .footer-links a:hover {
  color: var(--gold-light);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ CARDS GRID (for hub pages) ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.link-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-deep);
}

.link-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.link-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(28, 16, 8, 0.7) 100%);
}

.link-card-body {
  padding: 24px 28px 28px;
}

.link-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.link-card-body p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.link-card-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: background 0.3s;
}

.link-card:hover .link-card-arrow {
  background: var(--crimson);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero {
    padding: 72px 24px 56px;
  }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(28, 16, 8, 0.98);
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
  }

  .site-nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .toc-bar {
    top: 56px;
  }

  .toc-inner {
    justify-content: flex-start;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .teaching-card {
    padding: 24px 20px;
  }

  section {
    padding: 48px 0 40px;
  }
}
