:root {
  --brand: #063f31;
  --brand-dark: #032d24;
  --brand-soft: #eaf2ef;
  --ink: #17201d;
  --muted: #5c6864;
  --surface: #ffffff;
  --surface-alt: #f6f8f7;
  --border: #dce4e1;
  --shadow: 0 18px 45px rgba(3, 45, 36, 0.10);
  --radius: 18px;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 228, 225, 0.9);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  width: 170px;
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  padding: 10px 13px;
  color: var(--ink);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}
.site-nav .nav-cta {
  margin-left: 6px;
  color: #fff;
  background: var(--brand);
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--brand-dark);
}

main { flex: 1; }
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 132px) 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(6, 63, 49, .13), transparent 31%),
    linear-gradient(135deg, #f8faf9 0%, #edf4f1 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 45px solid rgba(6, 63, 49, .055);
  transform: rotate(45deg);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.13;
  letter-spacing: -.025em;
}
h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid rgba(6, 63, 49, .25); outline-offset: 3px; }
.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 26px rgba(6, 63, 49, .2);
}
.button-primary:hover { background: var(--brand-dark); }
.button-secondary {
  color: var(--brand);
  background: rgba(255,255,255,.75);
  border-color: var(--border);
}
.button-secondary:hover { background: #fff; border-color: #b9cbc5; }

.section { padding: clamp(68px, 8vw, 100px) 0; }
.section-alt { background: var(--surface-alt); }
.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-heading p { margin: 14px 0 0; color: var(--muted); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(23, 32, 29, .055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #bfd0ca;
  box-shadow: var(--shadow);
}
.card-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
  font-weight: 800;
}
.card p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 90px);
}
.split-copy p { color: var(--muted); }
.value-panel {
  padding: clamp(30px, 5vw, 52px);
  color: #fff;
  background: var(--brand);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.value-panel h2,
.value-panel p { color: #fff; }
.value-panel p:last-child { margin-bottom: 0; opacity: .88; }

.cta-band {
  padding: clamp(34px, 6vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 24px;
}
.cta-band h2 { margin-bottom: 8px; color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.78); }
.cta-band .button-primary { color: var(--brand-dark); background: #fff; box-shadow: none; white-space: nowrap; }
.cta-band .button-primary:hover { background: #edf4f1; }
.form-note { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.form-note a { color: var(--brand); font-weight: 700; }

.page-hero {
  padding: clamp(62px, 8vw, 95px) 0;
  background: linear-gradient(135deg, #f8faf9 0%, #edf4f1 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 16px; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-hero .lead { max-width: 760px; }
.prose {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
  padding: clamp(58px, 8vw, 90px) 0;
}
.prose h2 { margin-top: 42px; margin-bottom: 12px; font-size: 1.55rem; }
.prose p, .prose li { color: #3f4a46; }
.prose a { color: var(--brand); font-weight: 700; }
.prose ul { padding-left: 1.25rem; }
.meta { color: var(--muted); font-size: .92rem; }

.site-footer {
  margin-top: auto;
  color: rgba(255,255,255,.82);
  background: #101715;
}
.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; }

@media (max-width: 800px) {
  .header-inner { min-height: auto; padding: 14px 0; flex-direction: column; gap: 12px; }
  .brand img { width: 148px; }
  .site-nav { width: 100%; justify-content: center; flex-wrap: wrap; }
  .site-nav a { padding: 8px 10px; }
  .site-nav .nav-cta { margin-left: 0; }
  .cards, .split { grid-template-columns: 1fr; }
  .cta-band, .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { padding: 30px 0; }
}

@media (max-width: 520px) {
  .container, .prose { width: min(calc(100% - 28px), var(--content)); }
  .hero { padding-top: 62px; }
  .hero-actions .button { width: 100%; }
  .card { padding: 24px; }
  .site-nav { gap: 2px; }
  .site-nav a { font-size: .88rem; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Embedded-logo mobile reliability fix */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  flex: 0 0 170px;
}
.brand img {
  display: block !important;
  width: 100% !important;
  max-width: 170px !important;
  height: auto !important;
  min-height: 1px;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (max-width: 800px) {
  .brand {
    width: 160px;
    flex-basis: 160px;
    max-width: 70vw;
  }
  .brand img {
    max-width: 160px !important;
  }
}

/* Header Scripture */
.header-verse {
  flex: 1 1 420px;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 18px;
  text-align: center;
  color: var(--brand);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

@media (max-width: 1000px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0;
  }
  .header-verse {
    order: 3;
    flex-basis: 100%;
    max-width: 720px;
    padding: 0 20px;
  }
}

@media (max-width: 520px) {
  .header-verse {
    font-size: 0.76rem;
    line-height: 1.45;
    padding: 0 8px;
  }
}
