/* Spirit of Life Fellowship — solfellowship.com
   Warm & reverent: editorial, calm, photography-forward.
   Palette sampled directly from the ministry's real logo file. */

:root {
  --purple: #4A0E36;
  --purple-deep: #2E0821;
  --green: #4F6B1E;
  --gold: #C9A227;
  --gold-muted: #B4AA64;
  --cream: #FBF5E8;
  --cream-deep: #F1E8D4;
  --ink: #2A2024;
  --ink-soft: #5A4E52;
  --border: rgba(74, 14, 54, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-content: 720px;
  --max-wide: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(74, 14, 54, 0.05), transparent 40%),
    radial-gradient(circle at 85% 92%, rgba(79, 107, 30, 0.06), transparent 45%);
}

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

a { color: var(--purple); text-decoration-color: rgba(74, 14, 54, 0.35); }
a:hover { text-decoration-color: var(--purple); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--purple-deep);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-top: 0; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max-wide); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--max-content); }
section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }
.section-alt { background: var(--cream-deep); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--purple-deep);
  color: #F2E9DC;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #F8F2E6;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.brand img { height: 42px; width: auto; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-top: 2px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: #E9DFCF;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #F2E9DC;
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-deep);
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }
  nav.main-nav a { display: block; padding: 0.7rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: var(--purple-deep);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover { background: #D7AE2E; }
.btn-secondary {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}
.btn-secondary:hover { background: rgba(74,14,54,0.06); }
.btn-on-dark {
  background: transparent;
  border-color: rgba(242, 233, 220, 0.5);
  color: #F2E9DC;
}
.btn-on-dark:hover { background: rgba(242,233,220,0.1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(74,14,54,0.04) 0%, transparent 55%),
    linear-gradient(315deg, rgba(79,107,30,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.hero-photo { animation: fadeUp 0.7s ease 0.1s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero .btn-row, .hero-photo { animation: none; }
}

.hero-photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(46, 8, 33, 0.45);
}
.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  pointer-events: none;
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.divider {
  height: 3px;
  width: 64px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 999px;
  margin: 0 0 1.4rem;
}

/* ---------- Video embed ---------- */
.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: var(--purple-deep);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 44px -18px rgba(46,8,33,0.4);
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-deep);
  color: #D9CDBB;
  padding: 3.5rem 0 2.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #F2E9DC;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.site-footer a { color: #D9CDBB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { height: 36px; }
.footer-tagline { font-size: 0.95rem; color: var(--gold-muted); font-style: italic; }
.footer-bottom {
  border-top: 1px solid rgba(242,233,220,0.14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #B9AC97;
}
.footer-bottom a { color: #B9AC97; }

/* ---------- Misc ---------- */
.badge-501c3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(79,107,30,0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(79,107,30,0.25);
}

.quote-block {
  border-left: 3px solid var(--gold);
  padding-left: 1.3rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--purple-deep);
  font-style: italic;
}

.disclaimer-note {
  background: var(--cream-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.legal-body h2 { margin-top: 2.2rem; }
.legal-body { max-width: 760px; }
.draft-flag {
  background: #FDF0E0;
  border: 1px solid #E8C78E;
  color: #7A4A12;
  padding: 1rem 1.3rem;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

/* ---------- Cookie consent banner ---------- */
.consent-banner {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--purple-deep);
  color: #F2E9DC;
  padding: 1.1rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}
.consent-banner p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 62ch;
}
.consent-banner a { color: #F2E9DC; text-decoration: underline; }
.consent-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.consent-actions .btn { padding: 0.6em 1.3em; font-size: 0.92rem; }
.consent-actions .btn-primary { background: var(--gold); color: var(--purple-deep); }
.consent-actions button { cursor: pointer; font-family: var(--font-body); }
