/* faith-statement.css
   Imports the shared design tokens and patterns from the main site.
   All --variables match index.html exactly.
─────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:       #0247C1;
  --blue-dark:  #01338a;
  --blue-light: #e8f0fc;
  --gold:       #C9A84C;
  --gold-light: #f5ecd4;
  --black:      #0D0D0D;
  --grey-dark:  #2a2a2a;
  --grey-mid:   #6b6b6b;
  --grey-light: #F4F4F4;
  --white:      #ffffff;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.serif { font-family: var(--font-serif); }



/* ─────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────── */

.fs-hero {
  background: var(--blue-dark);
  padding: 96px 0 80px;
}

.fs-hero__inner {
  max-width: 760px;
}

.fs-hero .section-label {
  color: var(--gold);
}

.fs-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 32px;
}

.fs-hero__body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-bottom: 20px;
}

.fs-hero__body:last-child { margin-bottom: 0; }


/* ─────────────────────────────────────────────────────────
   ARTICLES LAYOUT
───────────────────────────────────────────────────────── */

.fs-articles {
  padding: 80px 0 96px;
  background: var(--white);
}

.fs-articles__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}


/* ─────────────────────────────────────────────────────────
   STICKY INDEX
───────────────────────────────────────────────────────── */

.fs-index {
  position: sticky;
  top: 92px;
}

.fs-index__label {
  margin-bottom: 20px;
}

.fs-index__list {
  list-style: none;
  counter-reset: index-counter;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fs-index__list li {
  counter-increment: index-counter;
}

.fs-index__list a {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-mid);
  text-decoration: none;
  padding: 6px 12px 6px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}

.fs-index__list a:hover {
  color: var(--blue);
  border-left-color: var(--blue);
}


/* ─────────────────────────────────────────────────────────
   ARTICLE CARDS
───────────────────────────────────────────────────────── */

.fs-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fs-article {
  padding: 48px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.fs-article:first-child { padding-top: 0; }
.fs-article:last-child  { border-bottom: none; }

.fs-article__header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}

.fs-article__numeral {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 24px;
}

.fs-article__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.fs-article p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey-dark);
  margin-bottom: 16px;
}

.fs-article p:last-child { margin-bottom: 0; }

.fs-article__emphasis {
  font-style: italic;
  color: var(--blue-dark) !important;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-top: 20px !important;
}


/* ─────────────────────────────────────────────────────────
   CLOSING
───────────────────────────────────────────────────────── */

.fs-closing {
  background: var(--grey-light);
  padding: 80px 0;
}

.fs-closing__inner {
  max-width: 680px;
}

.fs-closing__body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--grey-dark);
  margin-bottom: 20px;
}

.fs-closing__actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn--ghost:hover {
  background: var(--blue);
  color: var(--white);
}


/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .fs-articles__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fs-index {
    position: static;
    background: var(--blue-light);
    border-radius: 8px;
    padding: 24px;
  }

  .fs-index__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 0;
  }

  .fs-index__list a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 4px 12px 4px 0;
  }

  .fs-index__list a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--blue);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px 24px;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links--open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 1rem;
  }

  .nav-links a.nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }

  .nav-toggle { display: flex; }

  .nav-wrapper { position: relative; }

  .fs-hero { padding: 64px 0 56px; }

  .fs-article__title { font-size: 1.35rem; }

  .fs-closing__actions { flex-direction: column; }

  .btn { text-align: center; }
}
