:root {
  --ink: #071126;
  --deep: #00122f;
  --blue: #05245b;
  --blue-soft: #0f63cf;
  --paper: #f5f8ff;
  --white: #ffffff;
  --muted: #b9c9e7;
  --gold: #d9a84f;
  --gold-bright: #f8d982;
  --gold-dark: #9d6a22;
  --line: rgba(255, 255, 255, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter Tight", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

body.library-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 20;
}

.site-header.scrolled,
body.menu-open .site-header {
  background: rgba(0, 15, 40, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
  align-items: center;
  color: var(--white);
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  border: 1px solid rgba(248, 217, 130, 0.68);
  color: var(--gold-bright);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand em {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-style: normal;
  margin-top: 4px;
}

.site-nav {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold-bright);
  opacity: 1;
}

.nav-cta {
  border: 1px solid rgba(248, 217, 130, 0.76);
  color: var(--gold-bright);
  padding: 11px 15px;
}

.menu-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: none;
  height: 42px;
  padding: 0;
  width: 42px;
}

.menu-toggle span {
  background: var(--white);
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 20px;
}

.hero {
  background: var(--deep);
  color: var(--white);
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-media {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 18%, rgba(15, 99, 207, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(0, 18, 47, 0.96) 0%, rgba(0, 18, 47, 0.74) 38%, rgba(0, 18, 47, 0.24) 75%),
    linear-gradient(0deg, rgba(0, 18, 47, 0.94) 0%, rgba(0, 18, 47, 0.08) 45%);
  inset: 0;
  position: absolute;
}

.hero-content {
  max-width: 820px;
  padding: 180px clamp(22px, 7vw, 96px) 170px;
  position: relative;
  z-index: 2;
}

.hero-welcome {
  color: var(--white);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
}

.eyebrow,
.section-kicker {
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.brand-eyebrow {
  color: var(--gold-bright);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 18px;
  text-transform: none;
}

.hero h1 {
  font-size: clamp(41px, 5.8vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.hero-subtitle {
  color: var(--white);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.18;
  margin: 0 0 24px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.55;
  margin: 0;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 50px;
  padding: 15px 20px;
  text-transform: uppercase;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 56%, #b87924);
  color: #071126;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button-dark {
  background: var(--blue);
  color: var(--white);
}

.hero-note {
  border-left: 2px solid var(--gold);
  bottom: 42px;
  color: var(--white);
  display: grid;
  gap: 5px;
  max-width: 330px;
  padding-left: 18px;
  position: absolute;
  right: clamp(22px, 5vw, 70px);
  z-index: 2;
}

.hero-note span {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-note strong {
  font-size: 19px;
  line-height: 1.2;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
  padding: 100px 24px;
}

.section-light {
  background: #edf3fb;
}

.section-white {
  background: var(--white);
}

.section-white .section-kicker {
  color: var(--blue-soft);
}

.section-light .section-kicker {
  color: var(--blue-soft);
}

.section-deep {
  background: var(--deep);
  color: var(--white);
}

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.statement-grid,
.split-layout,
.relationship-grid,
.watch-layout,
.pastor-grid,
.community-layout {
  display: grid;
  gap: clamp(34px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

h2 {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
  text-transform: uppercase;
}

.section-deep h2,
.section-blue h2,
.final-cta h2 {
  color: var(--white);
}

.about h2 {
  font-size: clamp(42px, 4.9vw, 72px);
  line-height: 1;
  max-width: 620px;
}

p {
  font-size: 19px;
  line-height: 1.62;
}

.statement-copy,
.text-stack,
.pastor-content {
  align-self: end;
}

.statement-copy p,
.text-stack p,
.watch-layout p,
.pastor-content p {
  margin: 0 0 18px;
}

.large-line,
.emphasis {
  color: var(--gold-dark);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.section-deep .emphasis,
.section-deep .large-line {
  color: var(--gold);
}

.section-heading {
  margin-bottom: 42px;
  max-width: 850px;
}

.library .section-heading h2 {
  font-size: clamp(34px, 4.8vw, 70px);
  line-height: 1;
}

.belief-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.belief-grid article {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 220px;
  padding: 26px;
}

.belief-grid article:nth-child(1),
.belief-grid article:nth-child(4),
.belief-grid article:nth-child(7) {
  background: linear-gradient(145deg, rgba(217, 168, 79, 0.18), rgba(15, 99, 207, 0.1));
}

.belief-grid span {
  color: var(--gold-bright);
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 28px;
}

.belief-grid p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.35;
  margin: 0;
}

.vertical-label {
  border-left: 2px solid var(--gold);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  padding-left: 16px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.relationship-grid {
  grid-template-columns: auto minmax(0, 1fr);
}

.relationship-grid h2 {
  font-size: clamp(30px, 4.08vw, 60px);
  line-height: 1.02;
  max-width: 680px;
}

.relationship-title {
  display: grid;
  gap: 18px;
}

.relationship-title span {
  display: block;
}

.relationship-grid p {
  color: #314256;
  margin: 24px 0 0;
}

.plain-list {
  align-self: end;
  border-top: 1px solid rgba(6, 24, 41, 0.18);
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
}

.plain-list li {
  color: var(--blue-soft);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.topic-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-grid > span,
.topic-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  display: block;
  font-size: 22px;
  font-weight: 800;
  min-height: 92px;
  padding: 24px;
  text-align: left;
  width: 100%;
}

.topic-card {
  cursor: pointer;
  font-family: inherit;
  position: relative;
}

.topic-card span {
  display: block;
}

.topic-card-active {
  animation: studyPulse 1.25s ease-in-out infinite;
  border-color: rgba(248, 217, 130, 0.76);
  box-shadow: 0 0 0 0 rgba(248, 217, 130, 0.45);
}

@keyframes studyPulse {
  0%,
  100% {
    background: rgba(15, 99, 207, 0.08);
    box-shadow: 0 0 0 0 rgba(248, 217, 130, 0.32);
    color: var(--white);
  }

  50% {
    background: rgba(15, 99, 207, 0.24);
    box-shadow: 0 0 0 8px rgba(248, 217, 130, 0);
    color: var(--gold-bright);
  }
}

.pdf-library {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.22s ease;
  z-index: 40;
}

.pdf-library.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pdf-library-backdrop {
  background: rgba(0, 18, 47, 0.74);
  inset: 0;
  position: absolute;
}

.pdf-library-panel {
  background: var(--white);
  color: var(--ink);
  max-height: calc(100vh - 48px);
  max-width: 760px;
  overflow: auto;
  padding: clamp(28px, 5vw, 54px);
  position: absolute;
  right: clamp(16px, 5vw, 58px);
  top: 24px;
  transform: translateX(20px);
  transition: transform 0.22s ease;
  width: min(calc(100vw - 32px), 760px);
}

.pdf-library.is-open .pdf-library-panel {
  transform: translateX(0);
}

.pdf-library-close {
  background: var(--deep);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 12px 14px;
  position: absolute;
  right: 18px;
  text-transform: uppercase;
  top: 18px;
}

.pdf-library h2 {
  color: #000000;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  margin-bottom: 28px;
}

.pdf-library .section-kicker {
  color: #82c7ff;
}

.pdf-list {
  display: grid;
  gap: 12px;
}

.pdf-item {
  align-items: center;
  border: 1px solid rgba(6, 24, 41, 0.14);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 20px;
}

.pdf-item h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.pdf-item p {
  color: #526276;
  font-size: 16px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.watch-layout {
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
}

.watch-layout > div:first-child {
  max-width: 590px;
}

.watch h2 {
  font-size: clamp(29px, 4.2vw, 62px);
  max-width: 560px;
}

.watch p {
  max-width: 560px;
}

.watch-list {
  display: grid;
  gap: 10px;
}

.watch-list a {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.watch-list span {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.watch-list strong {
  color: var(--gold-bright);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pastor-grid {
  align-items: center;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.pastor-image-wrap {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--blue), var(--blue-soft));
  overflow: hidden;
}

.pastor-image-wrap img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.pastor-content h2 {
  color: #000000;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.role {
  color: var(--gold-dark);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  line-height: 1.28;
}

.community-layout {
  align-items: start;
}

.community {
  background: var(--blue);
}

.community-layout h2 {
  font-size: clamp(20px, 2.9vw, 42px);
  line-height: 1.05;
}

.community-title {
  display: grid;
  gap: 18px;
}

.community-title span {
  display: block;
}

.community-actions {
  display: grid;
  gap: 12px;
}

.community-actions a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  padding: 24px;
  text-transform: uppercase;
}

.final-cta {
  background:
    radial-gradient(circle at 50% 20%, rgba(15, 99, 207, 0.22), transparent 36%),
    linear-gradient(rgba(0, 18, 47, 0.9), rgba(0, 18, 47, 0.95)),
    url("/assets/hero-biblia-ministerio.png") center / cover;
  color: var(--white);
}

.final-cta-inner {
  margin: 0 auto;
  max-width: 980px;
  padding: 120px 24px;
  text-align: center;
}

.final-cta .button {
  margin-top: 34px;
}

.site-footer {
  background: #020817;
  color: var(--white);
}

.footer-inner {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 42px 24px;
}

.site-footer strong {
  color: var(--gold-bright);
  font-size: 18px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: flex-end;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.enhanced .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    align-content: start;
    background: rgba(5, 20, 35, 0.98);
    display: grid;
    gap: 0;
    inset: 79px 0 auto;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
  }

  .nav-cta {
    border: 0;
    color: var(--gold);
  }

  .hero-content {
    padding-top: 150px;
  }

  .hero-note {
    bottom: 28px;
    left: 24px;
    right: 24px;
  }

  .statement-grid,
  .split-layout,
  .relationship-grid,
  .watch-layout,
  .pastor-grid,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .vertical-label {
    writing-mode: initial;
  }

  .belief-grid,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand em {
    font-size: 11px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    padding: 122px 20px 200px;
  }

  .hero h1 {
    font-size: min(10.2vw, 49px);
  }

  .hero-copy,
  p {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .section-inner,
  .final-cta-inner {
    padding: 78px 20px;
  }

  h2 {
    font-size: 40px;
  }

  .belief-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .belief-grid article {
    min-height: 0;
  }

  .watch-list span,
  .plain-list li,
  .community-actions a {
    font-size: 20px;
  }

  .pdf-library-panel {
    inset: 18px 16px auto;
    max-height: calc(100vh - 36px);
    right: auto;
    top: 18px;
    width: auto;
  }

  .pdf-item {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
