/* ==========================================================
   The Great I Am — Healing Ministries
   Design: Warm editorial minimal. Fraunces + Manrope.
   ========================================================== */

:root {
  /* Palette — warm stone, cream, deep evergreen */
  --cream: #f7f2ea;
  --cream-deep: #efe7d9;
  --paper: #fbf8f2;
  --stone-50: #ece5d6;
  --stone-100: #ddd3bf;
  --stone-400: #8a8170;
  --ink: #1e2a25;
  --ink-soft: #3a4842;
  --moss: #2f4a3a;
  --moss-deep: #1f3328;
  --gold: #b8864a;
  --gold-soft: #d4a976;

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", system-ui, sans-serif;

  /* Rhythm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-2xl: 10rem;

  --max-w: 1240px;
  --max-w-text: 680px;
}

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

html { scroll-behavior: smooth; font-size: 17px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* Subtle grain overlay for warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

main, header, footer, section { position: relative; z-index: 2; }

/* ============ Typography ============ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-variation-settings: "SOFT" 80, "opsz" 144;
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-variation-settings: "SOFT" 60, "opsz" 120;
  font-weight: 350;
}

h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-variation-settings: "opsz" 48;
  font-weight: 450;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

p { font-size: 1.05rem; color: var(--ink-soft); }

a { color: var(--moss); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--gold); }

em { font-style: italic; font-family: var(--font-display); }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Scripture block — the hero of the content */
.scripture {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.scripture cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-400);
}

/* ============ Layout helpers ============ */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }

.rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone-100) 20%, var(--stone-100) 80%, transparent);
  border: 0;
}

/* ============ Header / Nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(247, 242, 234, 0.78);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 56px;
  width: auto;
}
.footer-brand .brand img {
  height: 64px;
}
@media (max-width: 900px) {
  .brand img { height: 52px; }
}
@media (max-width: 560px) {
  .brand img { height: 46px; }
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--moss); }

.nav-cta {
  background: var(--moss);
  color: var(--cream) !important;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 200ms ease, transform 200ms ease;
}
.nav-cta:hover { background: var(--moss-deep); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  margin: 5px 0; transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 0;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn-primary { background: var(--moss); color: var(--cream); }
.btn-primary:hover { background: var(--moss-deep); color: var(--cream); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(31,51,40,0.5); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--stone-100); }
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); }
.btn .arrow { transition: transform 220ms ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ Hero ============ */

.hero {
  padding-block: clamp(4rem, 9vw, 9rem) clamp(4rem, 7vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero h1 {
  margin-block: 1.5rem 1.75rem;
}
.hero h1 em {
  font-weight: 300;
  color: var(--moss);
}

.hero-lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(31,51,40,0.35);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30,42,37,0.35));
}
.hero-art-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.75rem;
  right: 1.75rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  z-index: 2;
}

/* Decorative watermark number */
.watermark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(10rem, 28vw, 24rem);
  color: var(--cream-deep);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  line-height: 0.8;
}

/* ============ Intro / About preview ============ */

.intro {
  background: var(--paper);
  border-block: 1px solid rgba(0,0,0,0.05);
}
.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.intro h2 { margin-top: 1rem; }
.intro .body-lg { font-size: 1.15rem; line-height: 1.7; color: var(--ink-soft); }
.intro .body-lg strong { color: var(--ink); font-weight: 500; }
.intro .body-lg + .body-lg { margin-top: 1.25rem; }

/* ============ Scripture feature band ============ */

.scripture-band {
  background: var(--moss-deep);
  color: var(--cream);
  text-align: center;
  padding-block: clamp(5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.scripture-band::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,134,74,0.12), transparent 60%);
  pointer-events: none;
}
.scripture-band .eyebrow { color: var(--gold-soft); }
.scripture-band .eyebrow::before { background: var(--gold-soft); }
.scripture-band .scripture {
  color: var(--cream);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin: 1.5rem auto 0;
  font-weight: 300;
}
.scripture-band .scripture cite { color: var(--gold-soft); }

/* ============ Values / three-up ============ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 3rem;
}
.value {
  padding-block: 2rem 0;
  border-top: 1px solid var(--stone-100);
}
.value .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
  display: block;
}
.value h3 { margin-bottom: 0.8rem; }
.value p { font-size: 0.98rem; }
.value .verse {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.value .verse cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-400);
  display: block;
  margin-top: 0.6rem;
}

/* ============ Stats ============ */

.stats {
  background: var(--cream-deep);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat .n {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  color: var(--moss);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat .lbl {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-400);
  font-weight: 600;
}

/* ============ Team ============ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.team-card {
  text-align: left;
}
.team-avatar {
  aspect-ratio: 4/5;
  background: var(--cream-deep);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow: hidden;
  position: relative;
}
.team-avatar .initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--moss);
  letter-spacing: -0.03em;
}
.team-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(184,134,74,0.08));
}
.team-card h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.team-role { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ============ CTA band ============ */

.cta-band {
  text-align: center;
  padding-block: clamp(5rem, 9vw, 8rem);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .scripture { margin: 0 auto 2.5rem; text-align: center; }

/* ============ Blog preview ============ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}
.post-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  background: var(--cream-deep);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-meta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-400);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.post-card h3 { margin-bottom: 0.75rem; }
.post-card p { font-size: 0.97rem; }
.post-link {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.post-link:hover { color: var(--gold); }

/* ============ Forms ============ */

.form-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.form-card {
  background: var(--paper);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 6px;
  border: 1px solid var(--stone-100);
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-400);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stone-100);
  padding: 0.7rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 200ms ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--moss);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--moss); }

.form-aside h2 { margin-bottom: 1.5rem; }
.form-aside .scripture { margin-block: 2rem; }

/* ============ Footer ============ */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(4rem, 6vw, 5rem) 2rem;
  position: relative;
  z-index: 2;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(184,134,74,0.08), transparent 50%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand p { color: rgba(247,242,234,0.65); margin-top: 1.25rem; max-width: 32ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: rgba(247,242,234,0.75); font-size: 0.95rem; }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247,242,234,0.1);
  font-size: 0.82rem;
  color: rgba(247,242,234,0.55);
}
.footer-bottom .scripture-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
}

/* ============ Page headers (non-home pages) ============ */

.page-header {
  padding-block: clamp(5rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 { max-width: 18ch; }
.page-header .lede {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ============ Prose (blog, about long-form) ============ */
.prose {
  max-width: var(--max-w-text);
  margin-inline: auto;
}
.prose h2 { margin-block: 3rem 1rem; }
.prose h3 { margin-block: 2rem 0.75rem; }
.prose p { margin-bottom: 1.25rem; font-size: 1.1rem; line-height: 1.75; }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin-block: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============ Animations ============ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fade-up 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal.d1 { animation-delay: 120ms; }
.reveal.d2 { animation-delay: 240ms; }
.reveal.d3 { animation-delay: 360ms; }
.reveal.d4 { animation-delay: 480ms; }
.reveal.d5 { animation-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .hero-grid,
  .intro-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .values-grid,
  .stats-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--stone-100);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 2rem 2rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 240ms ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 0.75rem 0; display: block; width: 100%; border-bottom: 1px solid var(--stone-100); }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { margin-top: 0.75rem; width: fit-content; }
  .nav-toggle { display: block; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .watermark { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: static; width: auto; height: auto;
  margin: 0; overflow: visible; clip: auto;
  white-space: normal;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
