/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

button,
input {
  font: inherit;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   VARIABLES
========================= */

:root {
  --black: #171412;
  --white: #ffffff;
  --ivory: #fffdf8;
  --cream: #f8f4ef;
  --cream-dark: #eee4d8;
  --gold: #c8962f;
  --gold-dark: #9f711f;
  --sage: #7d8f69;
  --brown: #2b211c;
  --brown-soft: #6f625a;
  --line: rgba(43, 33, 28, 0.12);
  --shadow: 0 22px 60px rgba(43, 33, 28, 0.13);
  --radius: 24px;
}

/* =========================
   BASE
========================= */

body {
  font-family: "Inter", sans-serif;
  color: var(--brown);
  background: var(--ivory);
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--black);
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.05em;
  max-width: 780px;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--brown-soft);
}

.container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

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

.section-heading p:last-child {
  font-size: 1.05rem;
  margin-top: 14px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(200, 150, 47, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(159, 113, 31, 0.45);
  color: var(--brown);
  background: rgba(255, 255, 255, 0.76);
}

.btn-outline:hover {
  border-color: var(--gold-dark);
  background: var(--white);
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.top-bar {
  background: var(--black);
  color: var(--white);
  font-size: 0.82rem;
}

.top-bar p {
  color: rgba(255, 255, 255, 0.86);
}

.top-bar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.logo strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--black);
}

.logo small {
  display: block;
  font-size: 0.72rem;
  color: var(--brown-soft);
  margin-top: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--brown);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(255, 253, 248, 0.98) 0%,
      rgba(255, 253, 248, 0.92) 34%,
      rgba(255, 253, 248, 0.55) 62%,
      rgba(255, 253, 248, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 253, 248, 0.34) 0%,
      rgba(255, 253, 248, 0.02) 52%,
      rgba(255, 253, 248, 0.42) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(100% - 40px, 1180px);
  padding: 88px 0;
}

.hero-content {
  max-width: 660px;
}

.hero-text {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.17rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero h1 span {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background: var(--gold);
  border-radius: 999px;
}

/* =========================
   TRUST STRIP
========================= */

.trust-strip {
  position: relative;
  z-index: 5;
  background: var(--ivory);
  padding: 0 0 78px;
}

.trust-grid {
  margin-top: -46px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(43, 33, 28, 0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.trust-item {
  min-height: 134px;
  padding: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item span {
  color: var(--gold-dark);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.trust-item h3 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  margin-bottom: 3px;
}

.trust-item p {
  font-size: 0.9rem;
}

/* =========================
   CARDS
========================= */

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.study-card,
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(43, 33, 28, 0.07);
}

.study-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.study-card div,
.blog-card {
  padding: 24px;
}

.study-card h3,
.blog-card h3 {
  margin-bottom: 12px;
}

.study-card p,
.blog-card p {
  margin-bottom: 18px;
}

.study-card a,
.blog-card a {
  color: var(--gold-dark);
  font-weight: 800;
}

.blog-date {
  color: var(--sage);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* =========================
   PROGRAM
========================= */

.program-section {
  padding: 96px 0;
  background: var(--cream);
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.program-content {
  max-width: 620px;
}

.program-content p {
  font-size: 1.08rem;
  margin-top: 18px;
}

.check-list {
  list-style: none;
  margin: 28px 0 34px;
  display: grid;
  gap: 12px;
}

.check-list li {
  font-weight: 700;
  color: var(--brown);
}

.check-list li::before {
  content: "✓";
  color: var(--gold-dark);
  font-weight: 900;
  margin-right: 10px;
}

.program-card {
  min-height: 420px;
  border-radius: 34px;
  padding: 42px;
  background:
    linear-gradient(rgba(43, 33, 28, 0.2), rgba(43, 33, 28, 0.62)),
    url("../images/purpose-program.webp") center/cover;
  box-shadow: var(--shadow);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.program-card h3 {
  color: var(--white);
  font-size: 2.5rem;
  max-width: 360px;
}

.program-card p {
  color: rgba(255, 255, 255, 0.86);
  margin: 14px 0 22px;
}

.program-card span {
  width: fit-content;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 800;
}

/* =========================
   RESOURCES
========================= */

.resources-section {
  padding: 86px 0;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resources-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
  align-items: center;
}

.resource-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.resource-box {
  min-height: 130px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  font-weight: 800;
  color: var(--brown);
}

/* =========================
   SUBSCRIBE
========================= */

.subscribe-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at bottom right, rgba(125, 143, 105, 0.18), transparent 32%),
    var(--cream);
}

.subscribe-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 46px;
  box-shadow: 0 20px 50px rgba(43, 33, 28, 0.08);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: center;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
}

.subscribe-form input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--ivory);
}

/* =========================
   FOOTER
========================= */

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

.footer-grid {
  padding: 64px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 44px;
}

.footer-logo .logo-icon {
  background: rgba(255, 255, 255, 0.08);
}

.footer-logo strong {
  color: var(--white);
}

.footer-logo small,
.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h4 {
  margin-bottom: 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
}

.scripture strong {
  color: var(--gold);
}

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

/* =========================
   RESPONSIVE
========================= */

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

  .nav-menu.open {
    position: absolute;
    top: 120px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: calc(100svh - 120px);
  }

  .hero-inner {
    padding: 76px 0;
  }

  .hero-background {
    object-position: 58% center;
  }

  .program-grid,
  .resources-grid,
  .subscribe-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three {
    grid-template-columns: 1fr 1fr;
  }

  .resource-items {
    grid-template-columns: 1fr 1fr;
  }

  .subscribe-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .top-bar {
    display: none;
  }

  .header-inner {
    min-height: 78px;
  }

  .logo-icon {
    width: 48px;
    height: 48px;
  }

  .logo strong {
    font-size: 1.36rem;
  }

  .logo small {
    display: none;
  }

  .nav-menu.open {
    top: 88px;
  }

  .hero {
    min-height: calc(100svh - 78px);
    align-items: center;
  }

  .hero-background {
    object-position: 63% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(255, 253, 248, 0.99) 0%,
        rgba(255, 253, 248, 0.94) 52%,
        rgba(255, 253, 248, 0.6) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255, 253, 248, 0.32) 0%,
        rgba(255, 253, 248, 0.08) 54%,
        rgba(255, 253, 248, 0.42) 100%
      );
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    padding: 48px 0 58px;
  }

  .hero-content {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 4.1rem);
  }

  .hero-text {
    max-width: 340px;
    margin-top: 22px;
    font-size: 1.02rem;
  }

  .hero-actions {
    flex-direction: column;
    max-width: 340px;
    margin-top: 32px;
  }

  .btn {
    width: 100%;
  }

  .trust-strip {
    padding: 0 0 64px;
  }

  .trust-grid {
    margin-top: -34px;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
  }

  .trust-item {
    min-height: 118px;
    padding: 20px 14px;
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .trust-item:nth-child(1),
  .trust-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .section,
  .program-section,
  .subscribe-section {
    padding: 68px 0;
  }

  .card-grid.three,
  .resource-items {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 360px;
    padding: 30px;
  }

  .program-card h3 {
    font-size: 2rem;
  }

  .subscribe-box {
    padding: 30px;
    border-radius: 24px;
  }

  .footer-grid {
    gap: 32px;
  }
}