/* ============================================================
   Metamorphosis Ministry — Design Tokens
   Headers: Oswald (condensed bold, stands in for Nimbus Sans Narrow)
   Body: Jost (geometric, stands in for URW Gothic)
   Scripture/accent: Cardo italic (stands in for URW Bookman Light Italic)
   ============================================================ */

:root {
  --terracotta: #AB380B;
  --terracotta-dark: #7C2808;
  --cream: #F5EFE4;
  --cream-deep: #EDE2CC;
  --sage: #7B8967;
  --sage-dark: #5C6A4C;
  --mustard: #B8892E;
  --ink: #2B1D14;
  --ink-soft: #5B4A3A;
  --line: #DCCFB4;
  --white: #FFFDF8;

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Jost', 'Century Gothic', sans-serif;
  --font-script: 'Cardo', Georgia, serif;

  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(43, 29, 20, 0.25);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--terracotta); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--terracotta);
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.scripture {
  font-family: var(--font-script);
  font-style: italic;
  color: var(--white);
}

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

/* Divider — wheat-stalk motif instead of a generic hairline */
.wheat-divider { display: flex; align-items: center; gap: 14px; margin: 3rem 0; color: var(--sage); }
.wheat-divider::before, .wheat-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wheat-divider svg { width: 26px; height: 26px; flex: none; }

/* Eyebrow chip, echoes the proposal doc's pill labels */
.chip {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
}
.chip--sage { background: var(--sage); }
.chip--mustard { background: var(--mustard); }
.chip--outline { background: transparent; border: 1.5px solid var(--terracotta); color: var(--terracotta); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--wrap); margin: 0 auto;
}
.nav__logo img { height: 46px; width: auto; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  text-decoration: none; color: var(--ink);
  font-family: var(--font-head); text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 0.06em;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--terracotta); color: var(--terracotta); }
.nav__cta {
  background: var(--terracotta); color: var(--white) !important;
  padding: 10px 20px; border-radius: 999px; border-bottom: none !important;
}
.nav__cta:hover { background: var(--terracotta-dark); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: block; background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--terracotta);
  }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 24px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { border-radius: 0; text-align: center; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(43,29,20,0.15), rgba(43,29,20,0.55)), var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero img.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0.55;
}
.hero__inner { padding: 96px 24px 84px; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { color: var(--white); }
.hero .lede { color: #F0E6D6; max-width: 640px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: var(--white); }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--sage { background: var(--sage); color: var(--white); }
.btn--sage:hover { background: var(--sage-dark); }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section--deep { background: var(--cream-deep); }
.section--ink { background: var(--ink); color: #EFE3D2; }
.section--ink h2 { color: var(--mustard); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; height: 100%;
}
.card h3 { margin-bottom: 0.4em; }
.card--muted { background: transparent; }

/* Timeline (a real, timed sequence — Sunday flow) */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 960px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr 1fr; } }
.timeline__step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; text-align: left;
}
.timeline__time { font-family: var(--font-head); color: var(--mustard); font-size: 1.05rem; letter-spacing: 0.03em; }
.timeline__label { font-family: var(--font-head); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--terracotta); margin: 4px 0; }
.timeline__desc { font-size: 0.92rem; color: var(--ink-soft); }

/* Pull quote */
.pullquote {
  background: var(--terracotta); color: var(--white);
  border-radius: var(--radius-lg); padding: 44px; text-align: center;
}
.pullquote p { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0 0 0.6em; }
.pullquote cite { font-family: var(--font-head); font-style: normal; letter-spacing: 0.1em; font-size: 0.8rem; }

/* Roles / pills row */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  background: var(--cream-deep); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px;
  font-family: var(--font-head); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--ink);
}

/* FAQ */
details.faq {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
details.faq summary {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.02em;
  font-size: 1.02rem; cursor: pointer; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--terracotta); flex: none; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin-top: 12px; color: var(--ink-soft); }

/* Forms */
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-head); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* Give options */
.give-card { border-top: 6px solid var(--sage); }
.give-card.terracotta { border-top-color: var(--terracotta); }
.give-card.mustard { border-top-color: var(--mustard); }

/* Icon mark watermark, signature element */
.mark-watermark {
  position: absolute; opacity: 0.06; width: 420px; pointer-events: none; z-index: 0;
}

/* Footer */
.site-footer { background: var(--ink); color: #E8DCC7; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--mustard); font-size: 0.85rem; letter-spacing: 0.1em; }
.site-footer a { color: #E8DCC7; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(232,220,199,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: #B7A98F;
}
.footer-logo img { height: 40px; margin-bottom: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--terracotta); color: var(--white);
  padding: 12px 20px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
