/* =========================================================================
   Church of God in Christ — Oklahoma Northwest Jurisdiction
   Design system : regal, formal, editorial — royal purple & gold
   ========================================================================= */

:root {
  /* --- Ivory / cream paper --- */
  --cream-50:  oklch(0.988 0.008 92);
  --cream-100: oklch(0.974 0.011 90);
  --cream-150: oklch(0.958 0.014 88);
  --cream-200: oklch(0.930 0.017 86);
  --cream-300: oklch(0.888 0.020 84);

  /* --- Plum ink --- */
  --ink:      oklch(0.250 0.038 305);
  --ink-soft: oklch(0.405 0.033 305);
  --ink-mute: oklch(0.545 0.028 305);

  /* --- Royal purple --- */
  --royal:       oklch(0.430 0.150 300);
  --royal-deep:  oklch(0.330 0.130 302);
  --royal-hover: oklch(0.375 0.140 301);
  --royal-soft:  oklch(0.930 0.032 305);
  --lilac:       oklch(0.958 0.018 305);

  /* --- Gold --- */
  --gold:       oklch(0.800 0.098 85);
  --gold-mid:   oklch(0.720 0.104 80);
  --gold-deep:  oklch(0.605 0.098 72);
  --gold-soft:  oklch(0.948 0.030 88);

  --line: color-mix(in oklab, var(--ink) 13%, transparent);
  --line-soft: color-mix(in oklab, var(--ink) 7%, transparent);
  --gold-line: color-mix(in oklab, var(--gold-deep) 45%, transparent);

  --shadow-sm: 0 1px 2px color-mix(in oklab, var(--ink) 10%, transparent);
  --shadow-md: 0 16px 44px -20px color-mix(in oklab, var(--royal-deep) 48%, transparent);
  --shadow-lg: 0 34px 80px -34px color-mix(in oklab, var(--royal-deep) 55%, transparent);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Libre Franklin", system-ui, sans-serif;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 68px);
  --radius: 3px;
  --radius-lg: 6px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream-50);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--royal); color: var(--cream-50); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--royal);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.eyebrow::before {
  content: "◆";
  font-size: 0.6em;
  color: var(--gold-deep);
  letter-spacing: 0;
}
.eyebrow.no-mark::before { content: none; }
.lead {
  font-size: clamp(1.12rem, 1.55vw, 1.32rem);
  color: var(--ink-soft);
  line-height: 1.6;
}
.serif-lead {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.script { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* --- Layout --- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 780px; margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 128px); }

.grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-3.keep-2, .cols-4.keep-2 { grid-template-columns: 1fr 1fr; }
}

/* --- Ornament divider --- */
.ornament { display: flex; align-items: center; gap: 1rem; color: var(--gold-deep); }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; background: var(--gold-line); }
.ornament span { font-size: 0.7rem; letter-spacing: 0.3em; }
.rule-gold { height: 2px; width: 54px; background: var(--gold); border: 0; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.9em 1.7em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--royal); color: var(--cream-50); }
.btn-primary:hover { background: var(--royal-deep); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-mid); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--cream-50); border-color: var(--ink); }
.btn-outline-gold { background: transparent; color: var(--ink); border-color: var(--gold-line); }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.on-royal .btn-ghost { color: var(--cream-50); border-color: color-mix(in oklab, var(--cream-50) 40%, transparent); }
.on-royal .btn-ghost:hover { background: var(--cream-50); color: var(--royal-deep); border-color: var(--cream-50); }
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--royal);
  border-bottom: 1px solid transparent;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--cream-50) 90%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 30px -24px color-mix(in oklab, var(--royal-deep) 60%, transparent);
}
.nav { display: flex; align-items: center; gap: 1.4rem; height: 84px; }
.brand { display: flex; align-items: center; gap: 0.8rem; margin-right: auto; }
.seal {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--royal);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--royal), inset 0 0 0 4px color-mix(in oklab, var(--gold) 55%, transparent);
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em;
}
.brand-logo { width: 52px; height: 52px; flex: none; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; line-height: 1; letter-spacing: 0; color: var(--ink); }
.brand-name span { display: block; font-family: var(--font-sans); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.32rem; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-links a {
  font-family: var(--font-sans); font-weight: 500;
  font-size: 0.86rem; color: var(--ink-soft);
  padding: 0.5em 0.72em; border-radius: var(--radius);
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--royal); background: var(--lilac); }
.nav-links a[aria-current="page"] { color: var(--royal); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--cream-50);
  display: flex; flex-direction: column;
  padding: 0 var(--pad) 40px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.6,.05,.25,1);
  visibility: hidden; overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; height: 84px; flex: none; }
.mobile-menu-top .nav-toggle { display: inline-flex; margin-left: auto; }
.mobile-links { display: flex; flex-direction: column; gap: 0; margin-top: 1rem; }
.mobile-links a {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.7rem; letter-spacing: 0;
  padding: 0.5rem 0; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-links a[aria-current="page"] { color: var(--royal); }
.mobile-menu .btn { margin-top: 1.8rem; align-self: flex-start; }

/* =========================================================================
   Placeholder imagery
   ========================================================================= */
.ph, image-slot {
  position: relative; overflow: hidden;
  background-color: var(--lilac);
  background-image: repeating-linear-gradient(-45deg,
    color-mix(in oklab, var(--royal) 12%, transparent) 0 2px,
    transparent 2px 14px);
  border-radius: var(--radius-lg);
}
.ph { display: grid; place-items: center; color: var(--ink-mute); }
.ph::after {
  content: attr(data-label);
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--cream-50); color: var(--ink-mute);
  padding: 0.4em 0.9em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.ph.gold { background-image: repeating-linear-gradient(-45deg,
    color-mix(in oklab, var(--gold-deep) 16%, transparent) 0 2px,
    transparent 2px 14px); background-color: var(--gold-soft); }
.framed { padding: 10px; background: var(--cream-50); border: 1px solid var(--gold-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.framed > .ph, .framed > image-slot { border-radius: var(--radius); }

/* =========================================================================
   Cards & components
   ========================================================================= */
.card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-line); }
.card-top-gold { border-top: 3px solid var(--gold); }

.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--royal); background: var(--lilac);
  padding: 0.42em 0.9em; border-radius: 999px;
}
.pill.gold { color: var(--gold-deep); background: var(--gold-soft); }

.stat-num { font-family: var(--font-display); font-size: clamp(2.6rem,5vw,4rem); font-weight: 600; line-height: 1; letter-spacing: -0.01em; color: var(--royal); }
.stat-label { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.5rem; }

.head-block { max-width: 680px; }
.head-block .eyebrow { margin-bottom: 1.1rem; }
.head-block h2 { margin-bottom: 1.1rem; }
.center { text-align: center; }
.center .head-block { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Interior page hero */
.page-hero { background: var(--royal-deep); color: var(--cream-100); overflow: hidden; position: relative; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% -10%, color-mix(in oklab, var(--royal) 75%, transparent), transparent 60%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 104px); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { color: var(--gold); }
.page-hero h1 { color: var(--cream-50); font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin: 1.1rem 0 1.2rem; }
.page-hero .lead { color: color-mix(in oklab, var(--cream-100) 82%, transparent); max-width: 60ch; }
.breadcrumb { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: color-mix(in oklab, var(--cream-100) 60%, transparent); margin-bottom: 1.3rem; }
.breadcrumb a { color: color-mix(in oklab, var(--cream-100) 60%, transparent); }
.breadcrumb a:hover { color: var(--gold); }

/* Tinted sections */
.tint-lilac { background: var(--lilac); }
.tint-cream { background: var(--cream-100); }
.tint-royal { background: var(--royal-deep); color: var(--cream-100); }
.tint-royal h1, .tint-royal h2, .tint-royal h3 { color: var(--cream-50); }
.tint-royal .eyebrow { color: var(--gold); }
.tint-royal .lead { color: color-mix(in oklab, var(--cream-100) 82%, transparent); }
.tint-royal .link-arrow { color: var(--gold); }

/* =========================================================================
   Forms
   ========================================================================= */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.82rem; color: var(--ink-mute); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; padding: 0.8em 1em;
  background: var(--cream-50); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--royal);
  box-shadow: 0 0 0 3px var(--royal-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--royal); margin-top: 3px; flex: none; }
.form-success {
  display: none; background: var(--royal-soft);
  border: 1px solid color-mix(in oklab, var(--royal) 30%, transparent);
  border-radius: var(--radius-lg); padding: 1.4rem 1.6rem;
  color: var(--royal-deep); font-weight: 500;
}
.form-success.show { display: block; animation: rise .4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: color-mix(in oklab, var(--cream-100) 74%, transparent); border-top: 3px solid var(--gold); }
.site-footer .wrap { padding-block: clamp(56px, 8vw, 92px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold); font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: color-mix(in oklab, var(--cream-100) 70%, transparent); font-size: 0.96rem; transition: color .18s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid color-mix(in oklab, var(--cream-100) 15%, transparent);
  margin-top: clamp(40px, 5vw, 64px); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: color-mix(in oklab, var(--cream-100) 52%, transparent);
}

/* =========================================================================
   Reveal-on-scroll (robust: never leaves content hidden)
   ========================================================================= */
.reveal { opacity: 1; transform: none; }
html.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
a.default-link { color: var(--royal); border-bottom: 1px solid var(--gold-line); }
a.default-link:hover { color: var(--royal-deep); border-bottom-color: var(--royal); }
