/* ==========================================================================
   The Crossings Church STL — Design System
   Brand tokens: Crossings Teal #1F99AB, Caudex display, Avenir Light body, cream warmth.
   Mobile-first, fast, no framework.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  /* Brand colors */
  --teal: #1F99AB;
  --teal-dark: #16707E;
  --teal-darker: #0F5564;
  --teal-light: #E6F4F6;
  --teal-wash: #F4FAFB;
  --cream: #FAF9F5;
  --paper: #ffffff;
  --ink: #14181a;
  --ink-soft: #1f262b;
  --ink-muted: #5a636b;
  --line: #e7e3da;
  --gold: #c8a547;

  /* Typography — Caudex display, Avenir Light body (Nunito Sans is a free web fallback for non-Mac users) */
  --font-display: 'Caudex', Georgia, 'Times New Roman', serif;
  --font-body: 'Avenir Next', 'Avenir', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20, 24, 26, 0.06), 0 1px 1px rgba(20, 24, 26, 0.04);
  --shadow-md: 0 8px 28px rgba(20, 24, 26, 0.08);
  --shadow-lg: 0 24px 64px rgba(20, 24, 26, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 280ms;
}

/* ---------- Base ---------- */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400; /* Bumped from 300 — Light + cream washed out on mobile */
}

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

h1 { font-size: clamp(2.5rem, 6vw + 1rem, 5.75rem); line-height: 1.0; letter-spacing: -0.025em; }
h2 { font-size: clamp(2.1rem, 3.8vw + 0.5rem, 3.6rem); letter-spacing: -0.02em; line-height: 1.05; }
h3 { font-size: clamp(1.4rem, 1.5vw + 0.5rem, 1.9rem); letter-spacing: -0.01em; }
h4 { font-size: 1.2rem; }

p { color: var(--ink-soft); max-width: 65ch; }
p.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

strong, b { font-weight: 700; color: var(--ink); }

/* selection */
::selection { background: var(--teal); color: white; }

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

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.section { padding-block: clamp(4rem, 8vw, var(--space-10)); }
.section-sm { padding-block: var(--space-7); }
.section-relative { position: relative; }

.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-teal { background: var(--teal); color: white; }
.section-teal h1, .section-teal h2, .section-teal h3 { color: white; }
.section-teal p { color: rgba(255, 255, 255, 0.86); }

/* ---------- Eyebrow / micro-labels ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-3);
}
.section-teal .eyebrow { color: rgba(255, 255, 255, 0.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--teal); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-outline:hover { background: var(--teal); color: white; transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: white; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-white { background: white; color: var(--teal); box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 249, 245, 0.96);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
  padding: 8px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-mark img,
.brand-mark svg {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  color: white;
  /* Force pure white regardless of the source PNG color, so it always reads on the teal circle */
  filter: brightness(0) invert(1);
}
/* Header wordmark: pre-composited teal PNG, works on file:// and HTTPS alike */
.brand-wordmark {
  display: block;
  width: clamp(150px, 22vw, 210px);
  height: auto;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}
.brand:hover .brand-wordmark { opacity: 0.82; }

/* Hero wordmark — the full lockup, used in place of a text headline option */
.hero-wordmark {
  display: block;
  width: clamp(280px, 50vw, 480px);
  height: auto;
  margin-bottom: var(--space-5);
}

/* Footer wordmark image */
.footer-brand-wordmark-img { display: block; width: clamp(180px, 30vw, 240px); height: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { display: none; }

.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--teal-light); color: var(--teal); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  transform: translateY(-100%);
  transition: transform 360ms var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: var(--space-5);
  list-style: none;
}
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-links a:hover { color: var(--teal); }
.mobile-menu-cta { margin-top: auto; padding-top: var(--space-5); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(200, 165, 71, 0.22), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(15, 85, 100, 0.55), transparent 60%),
    linear-gradient(135deg, #1F99AB 0%, #167180 55%, #0F5564 100%);
  color: white;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  min-height: min(680px, calc(100vh - 72px));
  display: flex;
  align-items: center;
}
/* Soft grain texture overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
/* Giant sun-cross brand mark floating in the background */
.hero-art {
  position: absolute;
  right: -10%;
  top: -8%;
  width: clamp(420px, 60vw, 720px);
  height: clamp(420px, 60vw, 720px);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  color: white;
  /* No rotation — sits still in the background */
}
.hero-art img, .hero-art svg { width: 100%; height: 100%; display: block; }

/* Live-this-Sunday pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: var(--space-5);
}
.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(200, 165, 71, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 165, 71, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(200, 165, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 165, 71, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero-pill .dot { animation: none; } }

/* Hero content positioning */
.hero .container { position: relative; z-index: 2; }

/* Slim inline meta row below CTAs */
.hero-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  max-width: 38rem;
}
.hero-meta-line span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta-line svg { color: var(--gold); flex-shrink: 0; }

/* Scroll cue at the bottom of the hero */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue svg { stroke: rgba(255, 255, 255, 0.7); }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }
.hero-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.hero h1 {
  color: white;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.8vw + 1rem, 5.25rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  padding: 0 0.04em;
}
.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.1rem, 1vw + 0.65rem, 1.35rem);
  max-width: 38rem;
  margin-top: var(--space-5);
  line-height: 1.55;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
/* Floating glass card holding service info */
.hero-card {
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: var(--space-6);
  width: 36px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.hero-card-item { display: flex; flex-direction: column; gap: 4px; }
.hero-card-item .label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); font-weight: 700; }
.hero-card-item .value { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: white; line-height: 1.3; }
@media (min-width: 640px) {
  .hero-card { grid-template-columns: auto 1px auto; gap: var(--space-6); align-items: center; padding: var(--space-5) var(--space-6); }
  .hero-card-divider { width: 1px; height: 36px; background: rgba(255, 255, 255, 0.2); }
}

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 38rem;
  margin-bottom: var(--space-7);
}
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Cards (ministries, etc.) ---------- */
.card-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}
.card h3 { font-size: 1.35rem; }
.card p { font-size: 0.97rem; line-height: 1.55; }
.card-link {
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--teal);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-link:hover { color: var(--teal-dark); }

/* ---------- Verse callout ---------- */
.verse {
  background: var(--teal);
  color: white;
  padding: var(--space-9) var(--space-5);
  text-align: center;
  position: relative;
  isolation: isolate;
}
.verse blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw + 0.8rem, 2.6rem);
  line-height: 1.25;
  font-style: italic;
  max-width: 50rem;
  margin: 0 auto;
  color: white;
}
.verse cite {
  display: inline-block;
  margin-top: var(--space-5);
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-darker);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--space-8) 0 var(--space-5);
  font-size: 0.94rem;
}
.site-footer h4 {
  color: white;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-grid a { color: rgba(255, 255, 255, 0.78); transition: color var(--dur) var(--ease); }
.footer-grid a:hover { color: white; }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-brand-wordmark { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; font-weight: 700; color: white; line-height: 1; letter-spacing: -0.01em; }
.footer-brand-wordmark small { display: block; font-style: normal; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-top: 4px; font-weight: 700; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--teal-wash) 0%, var(--cream) 100%);
  padding: var(--space-9) 0 var(--space-7);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.4rem, 4vw + 1rem, 4.5rem); }
.page-hero p { margin: var(--space-4) auto 0; max-width: 38rem; font-size: 1.1rem; }

/* ---------- Prose (article body) ---------- */
.prose {
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.prose h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); color: var(--teal); }
.prose p + p { margin-top: var(--space-4); }
.prose ul, .prose ol { margin: var(--space-3) 0; padding-left: 1.4rem; color: var(--ink-soft); }
.prose ul li, .prose ol li { margin-bottom: var(--space-2); }
.prose blockquote {
  border-left: 3px solid var(--teal);
  padding-left: var(--space-4);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  margin: var(--space-5) 0;
}
.prose .scripture-ref {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: var(--space-2);
}

/* ---------- Embed wrapper (livestream / video) ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Staff grid ---------- */
.staff-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.staff-card { text-align: center; }
.staff-avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 4px 16px rgba(15, 85, 100, 0.18);
}
.staff-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.staff-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.staff-role { font-size: 0.88rem; color: var(--ink-muted); }

/* ---------- Info strip (service times etc.) ---------- */
.info-strip {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.info-strip .info-item { display: flex; flex-direction: column; gap: var(--space-1); }
.info-strip .info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-muted); font-weight: 600; }
.info-strip .info-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); }

/* ---------- Two-column split ---------- */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-7); }
}
.split-image {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.split-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(200, 165, 71, 0.2), transparent 60%);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Marquee (scrolling tagline strip) ---------- */
.marquee {
  background: var(--teal-darker);
  color: white;
  padding: var(--space-3) 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw + 0.6rem, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: var(--space-6); }
.marquee-track svg { color: var(--gold); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Wave section dividers ---------- */
.wave-top, .wave-bottom { display: block; width: 100%; line-height: 0; }
.wave-top svg, .wave-bottom svg { display: block; width: 100%; height: clamp(40px, 5vw, 70px); }

/* ---------- Editorial section number ---------- */
.section-num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--teal);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  opacity: 0.9;
}
.section-teal .section-num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.45); color: transparent; }

/* ---------- Upgraded cards ---------- */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card .card-number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  font-weight: 400;
}
.card .card-icon {
  width: 56px;
  height: 56px;
  background: var(--teal);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(31, 153, 171, 0.28);
  margin-bottom: var(--space-4);
  transition: transform var(--dur) var(--ease);
}
.card:hover .card-icon { transform: rotate(-4deg) scale(1.06); }

/* ---------- Stylized image-placeholder frame ---------- */
.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  overflow: hidden;
}
/* When a real photo is dropped in, it fills the frame */
.split-image > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
/* Hide the SVG watermark when a real photo is present */
.split-image:has(> img) .split-art { display: none; }
.split-image:has(> img)::after { display: none; }
.split-image::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.7;
}
.split-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(200, 165, 71, 0.22), transparent 60%),
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cdefs%3E%3Cpattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 20h40M20 0v40' stroke='white' stroke-width='0.5' stroke-opacity='0.08'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E");
  border-radius: var(--radius-lg);
  pointer-events: none;
}
/* Sun-cross brand mark watermark in the image placeholder */
.split-image .split-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}
.split-image .split-art svg { width: 38%; height: auto; opacity: 0.34; color: white; }

/* ---------- Dramatic verse ---------- */
.verse {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(200, 165, 71, 0.2), transparent 50%),
    linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-darker) 100%);
  padding: clamp(5rem, 10vw, 8rem) var(--space-5);
  overflow: hidden;
}
.verse::before {
  content: "“";
  position: absolute;
  top: -0.25em;
  left: 4%;
  font-family: var(--font-display);
  font-size: clamp(14rem, 30vw, 26rem);
  color: var(--gold);
  opacity: 0.12;
  line-height: 1;
  z-index: 0;
  font-weight: 700;
}
.verse blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw + 0.8rem, 3rem);
  line-height: 1.22;
  font-style: italic;
  font-weight: 400;
  max-width: 52rem;
  margin: 0 auto;
  color: white;
  position: relative;
  z-index: 1;
}
.verse cite {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.verse cite::before { content: ""; width: 32px; height: 1px; background: var(--gold); display: inline-block; }

/* ---------- Welcome section "01" + decorative line ---------- */
.welcome-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.welcome-meta::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}

/* ---------- Five purposes (vision) — editorial grid ---------- */
.purposes {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .purposes { grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,0.18); padding: 1px; border-radius: var(--radius-md); overflow: hidden; } }
.purpose {
  padding: var(--space-5) var(--space-4);
  background: var(--teal);
  position: relative;
  transition: background var(--dur) var(--ease);
}
.purpose:hover { background: var(--teal-darker); }
.purpose-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
  display: block;
}
.purpose h4 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: var(--space-2);
  letter-spacing: -0.005em;
}
.purpose p { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Sermons
   ========================================================================== */

/* Hero band */
.sermons-hero {
  padding: clamp(var(--space-7), 9vw, var(--space-9)) 0 var(--space-6);
  background: linear-gradient(180deg, var(--cream) 0%, var(--teal-wash) 100%);
}
.sermons-hero h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.4rem); }
.sermons-hero .lead { margin-top: var(--space-3); }

/* Series filter chips */
.sermons-filters { background: var(--teal-wash); padding: var(--space-3) 0 var(--space-5); }
.filter-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { background: var(--teal-light); color: var(--teal-darker); border-color: var(--teal-light); }
.chip-active { background: var(--teal); color: white; border-color: var(--teal); }
.chip-active:hover { background: var(--teal-dark); color: white; border-color: var(--teal-dark); }
.chip-count { background: rgba(0,0,0,0.08); padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; }
.chip-active .chip-count { background: rgba(255,255,255,0.25); }

/* Featured (latest) sermon */
.sermon-featured { padding: var(--space-7) 0 var(--space-6); }
.sermon-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (min-width: 880px) {
  .sermon-featured-card { grid-template-columns: 1.1fr 1fr; }
}
.sermon-featured-media {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  overflow: hidden;
  display: block;
}
.sermon-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.sermon-featured-media:hover img { transform: scale(1.03); }
.sermon-featured-media-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sermon-featured-body { padding: clamp(var(--space-5), 4vw, var(--space-7)); }
.sermon-featured-flag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.sermon-featured-body h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 2.9rem); margin: var(--space-2) 0 var(--space-3); }
.sermon-featured-body h2 a { color: inherit; }
.sermon-featured-body h2 a:hover { color: var(--teal-dark); }
.sermon-featured-body .btn { margin-top: var(--space-4); }

/* Series tag */
.sermon-series-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-darker);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--dur) var(--ease);
}
.sermon-series-tag:hover { background: var(--teal); color: white; }
.sermon-series-tag-lg { font-size: 0.85rem; padding: 5px 14px; }

/* Card grid */
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.sermon-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.sermon-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sermon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sermon-card-media {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  overflow: hidden;
  display: block;
}
.sermon-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.sermon-card:hover .sermon-card-media img { transform: scale(1.04); }
.sermon-card-media-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sermon-card-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.sermon-card-body h3 { font-size: 1.35rem; margin: var(--space-2) 0 var(--space-2); }
.sermon-card-body h3 a { color: inherit; }
.sermon-card-body h3 a:hover { color: var(--teal-dark); }

.sermon-meta { color: var(--ink-muted); font-size: 0.95rem; margin-top: var(--space-1); }
.sermon-meta-lg { font-size: 1.05rem; margin-top: var(--space-3); }
.sermon-scripture {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.empty-state { text-align: center; padding: var(--space-7) var(--space-4); }
.empty-state h1, .empty-state h3 { margin-bottom: var(--space-3); }
.empty-state p { margin-left: auto; margin-right: auto; }

/* Detail / article */
.sermon-article-header {
  padding: clamp(var(--space-7), 8vw, var(--space-8)) 0 var(--space-5);
  background: linear-gradient(180deg, var(--cream) 0%, var(--teal-wash) 100%);
}
.sermon-back { display: inline-block; color: var(--teal-dark); font-weight: 600; margin-bottom: var(--space-4); }
.sermon-back:hover { color: var(--teal-darker); }
.sermon-article-header h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem); margin: var(--space-3) 0 var(--space-2); }
.sermon-article-hero-img { padding: var(--space-5) 0 0; }
.sermon-article-hero-img img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: var(--shadow-md); }
.sermon-article-body { padding: var(--space-6) 0 var(--space-8); background: var(--paper); }

/* Prose styling for Quill-rendered body */
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.prose > * + * { margin-top: var(--space-4); }
.prose p { max-width: none; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2vw + 0.5rem, 2.2rem); margin-top: var(--space-7); color: var(--ink); }
.prose h3 { font-family: var(--font-display); font-size: 1.35rem; margin-top: var(--space-6); color: var(--ink); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose ul li, .prose ol li { margin-top: var(--space-2); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--teal-darker); }
.prose blockquote {
  border-left: 4px solid var(--teal);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 1.2rem;
  background: var(--teal-wash);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose img { border-radius: var(--radius-sm); margin: var(--space-5) 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: var(--space-6) 0; }

.sermon-share {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.sermon-share span:first-child { font-weight: 600; color: var(--ink-soft); }
.sermon-share a { color: var(--teal-dark); font-weight: 600; }
.sermon-share a:hover { color: var(--teal-darker); }

.section-eyebrow-h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.3rem);
  margin-bottom: var(--space-5);
}
.section-eyebrow-h2 em { color: var(--teal-dark); font-style: italic; }
