/* =====================================================================
   Cornerstone Church — Website Template
   A modern, self-contained church website (no external images/video).
   Structure inspired by Cottage Grove Church (Des Moines, IA).

   HOW TO CUSTOMIZE
   - Colors & fonts: edit the :root variables below.
   - Church name / service times / address: edit the HTML pages.
   - The hero "video" is a pure-CSS animated gradient (.hero__bg).
   ===================================================================== */

/* ---------- Fonts (with robust fallbacks if offline) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ===================== Design Tokens ===================== */
:root {
  /* Brand colors */
  --ink:        #16181d;   /* near-black, dark sections + hero */
  --ink-2:      #1f232b;   /* slightly lifted charcoal */
  --ink-3:      #2a2f39;   /* borders on dark */
  --cream:      #f6f2ea;   /* warm off-white light sections */
  --paper:      #ffffff;
  --accent:     #c0894a;   /* warm brass/gold */
  --accent-2:   #dcae6a;   /* lighter gold */
  --accent-ink: #8a5e2b;   /* darker gold for text on cream */

  /* Text */
  --text:       #1c1e22;   /* body text on light */
  --text-soft:  #55585f;   /* muted on light */
  --text-invert:#f4f1ea;   /* text on dark */
  --text-invert-soft: rgba(244,241,234,.66);

  /* Lines & surfaces */
  --line:       rgba(20,22,26,.12);
  --line-strong:rgba(20,22,26,.22);

  /* Type */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 860px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Motion & elevation */
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 2px 8px rgba(20,22,26,.06);
  --shadow-md: 0 10px 30px rgba(20,22,26,.10);
  --shadow-lg: 0 24px 60px rgba(20,22,26,.18);

  /* Fixed chrome heights */
  --topbar-h: 40px;
  --nav-h: 76px;
}

/* ===================== Reset / Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent-ink);
}
.eyebrow--light { color: var(--accent-2); }

/* ===================== Layout helpers ===================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow    { max-width: var(--container-narrow); }
.section   { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.section--dark  { background: var(--ink); color: var(--text-invert); }
.section--ink2  { background: var(--ink-2); color: var(--text-invert); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }

.center { text-align: center; }
.max-60ch { max-width: 62ch; }
.mx-auto { margin-inline: auto; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #1a1206; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-2); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--text-invert); border-color: rgba(244,241,234,.5); }
.btn--ghost:hover { background: rgba(244,241,234,.1); border-color: var(--text-invert); }

.btn--dark { background: var(--ink); color: var(--text-invert); }
.btn--dark:hover { background: var(--ink-2); }

.btn--outline-ink { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--outline-ink:hover { background: var(--ink); color: var(--text-invert); border-color: var(--ink); }

.btn--lg { padding: 17px 34px; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--accent-ink);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--light { color: var(--accent-2); }

/* ===================== Announcement bar ===================== */
.topbar {
  background: var(--ink);
  color: var(--text-invert);
  min-height: var(--topbar-h);
  display: flex; align-items: center;
  font-size: .82rem; letter-spacing: .02em;
  border-bottom: 1px solid var(--ink-3);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.topbar__msg { text-align: left; }
.topbar strong { color: var(--accent-2); font-weight: 600; }
.topbar__socials { display: flex; align-items: center; gap: 14px; flex: none; }
.topbar__socials a { color: var(--text-invert-soft); display: inline-flex; transition: color .2s var(--ease); }
.topbar__socials a:hover { color: var(--accent-2); }
.topbar__socials svg { width: 15px; height: 15px; }

/* Social icons on light backgrounds (e.g. Contact page). Higher specificity than
   the footer's .socials a so the dark glyph color wins on light surfaces. */
.socials.socials--ink a { color: var(--text-soft); border-color: var(--line-strong); }
.socials.socials--ink a:hover { color: #1a1206; background: var(--accent-2); border-color: var(--accent-2); }

/* ===================== Header / Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(22,24,29,.0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

/* Solid states: when scrolled OR on interior (non-hero) pages */
.nav.is-solid, .nav.is-scrolled {
  background: rgba(18,20,25,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--ink-3);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-invert); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background:
    radial-gradient(120% 120% at 30% 20%, var(--accent-2), var(--accent) 55%, var(--accent-ink) 100%);
  display: grid; place-items: center;
  color: #1a1206; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1; color: var(--text-invert); }
.brand__name small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--text-invert-soft); margin-top: 5px; }

/* Primary menu */
.menu { display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--text-invert); font-weight: 500; font-size: .95rem;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.menu__link:hover { background: rgba(244,241,234,.1); }
.menu__link.is-active { color: var(--accent-2); }
.menu__link .caret { width: 10px; height: 10px; transition: transform .25s var(--ease); opacity: .8; }
.has-mega:hover .caret, .has-mega:focus-within .caret { transform: rotate(180deg); }

.menu__cta { margin-left: 8px; }

/* Mega menu / dropdown */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 260px; background: var(--paper); color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  border: 1px solid var(--line);
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega::before { /* hover bridge */
  content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 14px;
}
.mega__link { display: block; padding: 10px 14px; border-radius: 9px; font-size: .95rem; font-weight: 500; color: var(--text); transition: background-color .18s var(--ease), color .18s var(--ease); }
.mega__link:hover { background: var(--cream); color: var(--accent-ink); }
.mega__link small { display: block; font-weight: 400; color: var(--text-soft); font-size: .82rem; margin-top: 2px; }
.mega__lead { padding: 10px 14px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mega__lead b { font-family: var(--font-display); font-size: 1.05rem; }

/* Mobile controls */
.nav__toggle { display: none; }
.nav__mobile-cta { display: none; }

/* ===================== Mobile menu ===================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink);
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
  padding: 20px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.mobile-menu__close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ink-3); background: transparent; color: var(--text-invert); display: grid; place-items: center; }
.m-group { border-top: 1px solid var(--ink-3); }
.m-group__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; color: var(--text-invert); font-family: var(--font-display); font-size: 1.35rem; background: none; border: none; }
.m-group__btn .caret { width: 14px; transition: transform .25s var(--ease); }
.m-group.is-open .m-group__btn .caret { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.m-group.is-open .m-sub { max-height: 480px; }
.m-sub a { display: block; padding: 11px 4px 11px 16px; color: var(--text-invert-soft); font-size: 1.02rem; }
.m-sub a:hover { color: var(--accent-2); }
.mobile-menu__actions { margin-top: 28px; display: grid; gap: 12px; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  margin-top: calc(-1 * var(--nav-h)); /* pull under transparent nav */
  padding-top: var(--nav-h);
  display: grid; align-items: center;
  color: var(--text-invert);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 80% at 20% 20%, rgba(192,137,74,.42), transparent 60%),
    radial-gradient(70% 90% at 85% 15%, rgba(120,80,150,.30), transparent 55%),
    radial-gradient(90% 90% at 70% 90%, rgba(40,90,120,.38), transparent 60%),
    linear-gradient(210deg, #20242e, #14161b 60%, #0f1013);
  background-size: 180% 180%, 200% 200%, 200% 200%, 100% 100%;
  animation: heroDrift 26s var(--ease) infinite alternate;
}
.hero__bg::after { /* subtle grain/vignette */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, transparent 40%, rgba(0,0,0,.5) 100%);
}
@keyframes heroDrift {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 100% 60%, 0% 40%, 30% 60%, 0 0; }
}
.hero.is-paused .hero__bg { animation-play-state: paused; }

/* Generated worship video layer (sits above the gradient fallback) */
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero__video.is-ready { opacity: 1; }
/* Darkening scrim so the light hero text stays legible over bright footage */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,13,16,.55), rgba(12,13,16,.30) 42%, rgba(12,13,16,.78)),
    radial-gradient(90% 120% at 15% 30%, rgba(12,13,16,.45), transparent 55%);
}

.hero__grid-overlay { /* faint line texture */
  position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}

.hero__content { max-width: 900px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: .98;
}
.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-weight: 400; color: var(--text-invert); margin-top: 18px; line-height: 1.15;
}
.hero__sub a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__pause {
  position: absolute; right: 24px; bottom: 22px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: rgba(0,0,0,.35); color: var(--text-invert);
  border: 1px solid rgba(244,241,234,.25); font-size: .82rem; font-weight: 500;
  backdrop-filter: blur(6px);
}
.hero__pause:hover { background: rgba(0,0,0,.55); }

/* Interior page header (non-hero) — extends behind the solid sticky nav */
.pagehead {
  position: relative; background: var(--ink); color: var(--text-invert);
  margin-top: calc(-1 * var(--nav-h));
  padding-top: calc(var(--nav-h) + 56px); padding-bottom: 64px; overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(60% 120% at 10% 0%, rgba(192,137,74,.28), transparent 55%),
    radial-gradient(50% 120% at 95% 10%, rgba(60,90,120,.28), transparent 55%),
    var(--ink);
}
.pagehead__breadcrumb { color: var(--text-invert-soft); font-size: .85rem; margin-bottom: 14px; letter-spacing: .02em; }
.pagehead__breadcrumb a:hover { color: var(--accent-2); }
.pagehead h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.pagehead p { color: var(--text-invert-soft); max-width: 60ch; margin-top: 16px; font-size: 1.08rem; }

/* ===================== Generic sections ===================== */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 12px; }
.section-head p { color: var(--text-soft); margin-top: 16px; font-size: 1.08rem; }
.section--dark .section-head p, .section--ink2 .section-head p { color: var(--text-invert-soft); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Big statement / mission */
.statement { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.24; letter-spacing: -.01em; }
.statement a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.section--cream .statement a, .section--paper .statement a { color: var(--accent-ink); }

/* ===================== Cards ===================== */
.card {
  background: var(--paper); border-radius: var(--radius-lg);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card__media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.card__media-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center; color: rgba(255,255,255,.9);
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em;
}
/* Real images fill their media slot; the gradient class stays behind as fallback */
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
/* On video-player cards the image is the backdrop, dimmed so the play button pops */
.sermon-feature__media .media-img { z-index: 0; filter: brightness(.6); }
/* Faded topic backdrop behind sermon archive tiles — the gradient supplies the topic color */
.card__media .media-img.is-faded { z-index: 0; opacity: .3; filter: grayscale(.45); }
.card__media-fallback { z-index: 1; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__tag { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--accent-ink); }
.card__title { font-size: 1.35rem; }
.card__text { color: var(--text-soft); font-size: .98rem; }
.card__foot { margin-top: auto; padding-top: 8px; }

/* Gradient media presets (stand in for photos) */
.grad-1 { background: linear-gradient(135deg, #c0894a, #8a5e2b); }
.grad-2 { background: linear-gradient(135deg, #3f6d8c, #23384a); }
.grad-3 { background: linear-gradient(135deg, #6b5b95, #3a3055); }
.grad-4 { background: linear-gradient(135deg, #4c8577, #23413a); }
.grad-5 { background: linear-gradient(135deg, #b5643f, #6e3320); }
.grad-6 { background: linear-gradient(135deg, #7d8a52, #444d29); }
.grad-warm { background: linear-gradient(135deg, #e0b06a, #b5763a 60%, #8a5427); }
.grad-cool { background: linear-gradient(135deg, #3f6d8c, #2a4a63 55%, #1c3040); }

/* Sermon list */
.sermon-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.sermon-feature__media {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--ink-3);
}
.sermon-feature__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.play-btn {
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.6); color: #fff;
  display: grid; place-items: center; transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.play-btn:hover { transform: scale(1.06); background: rgba(255,255,255,.28); }
.badge-live {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: #c23a3a; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill);
}
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.sermon-list { display: grid; gap: 2px; }
.sermon-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 8px; border-top: 1px solid var(--line);
  transition: background-color .2s var(--ease), padding .2s var(--ease);
}
.section--dark .sermon-row { border-top-color: var(--ink-3); }
.sermon-row:hover { background: rgba(192,137,74,.08); padding-inline: 14px; }
.sermon-row__date { font-size: .82rem; color: var(--text-soft); font-weight: 500; }
.section--dark .sermon-row__date { color: var(--text-invert-soft); }
.sermon-row__title { font-family: var(--font-display); font-size: 1.2rem; }
.sermon-row__meta { font-size: .86rem; color: var(--text-soft); }
.section--dark .sermon-row__meta { color: var(--text-invert-soft); }

/* Value / feature small blocks */
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature__icon {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #1a1206;
  background: radial-gradient(120% 120% at 30% 20%, var(--accent-2), var(--accent) 60%, var(--accent-ink));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--text-soft); font-size: .98rem; }
.section--dark .feature p, .section--ink2 .feature p { color: var(--text-invert-soft); }

/* Numbered list of values */
.value-row { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding-block: 26px; border-top: 1px solid var(--line); }
.value-row__num { font-family: var(--font-display); font-size: 2rem; color: var(--accent-ink); line-height: 1; }
.value-row h3 { font-size: 1.4rem; margin-bottom: 8px; }
.value-row p { color: var(--text-soft); }

/* Team grid */
.team-card { text-align: center; }
.team-card__photo { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.team-card__photo .card__media-fallback { font-size: 2.4rem; }
.team-card h3 { font-size: 1.22rem; margin-top: 16px; }
.team-card p { color: var(--accent-ink); font-size: .9rem; font-weight: 600; letter-spacing: .02em; }

/* Split feature (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-md); }
.split__media .card__media-fallback { font-size: 1.4rem; }
.split__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: 12px; margin-bottom: 18px; }
.split__body p { color: var(--text-soft); margin-bottom: 16px; }
.section--dark .split__body p { color: var(--text-invert-soft); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.6rem); color: var(--accent-2); line-height: 1; }
.stat__label { color: var(--text-invert-soft); font-size: .92rem; margin-top: 8px; letter-spacing: .02em; }

/* Info list (service times / contact) */
.info-list { display: grid; gap: 2px; }
.info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: none; }
.info-row__k { font-weight: 600; }
.info-row__v { color: var(--text-soft); text-align: right; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); background: var(--ink); color: var(--text-invert); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 140% at 15% 10%, rgba(192,137,74,.35), transparent 55%),
              radial-gradient(70% 140% at 90% 90%, rgba(60,90,120,.35), transparent 55%); }
.cta-band h2 { font-size: clamp(1.9rem,4vw,3rem); max-width: 20ch; }
.cta-band p { color: var(--text-invert-soft); margin-top: 14px; max-width: 52ch; }
.cta-band__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; letter-spacing: .02em; }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  font: inherit; padding: 13px 15px; border-radius: 11px;
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* Prevent grid children from overflowing their tracks (form card, splits) */
.form, .form__row, .split > * { min-width: 0; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(192,137,74,.18);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Accordion (beliefs / FAQ) */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; background: none; border: none; text-align: left; font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }
.acc-btn .caret { width: 16px; flex: none; transition: transform .28s var(--ease); color: var(--accent-ink); }
.acc-item.is-open .acc-btn .caret { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.acc-item.is-open .acc-panel { max-height: 400px; }
.acc-panel__inner { padding: 0 4px 26px; color: var(--text-soft); max-width: 70ch; }

/* ===================== Footer ===================== */
.footer { background: var(--ink); color: var(--text-invert); padding-block: 72px 34px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand .brand { margin-bottom: 20px; }
.footer__addr { color: var(--text-invert-soft); font-size: .95rem; line-height: 1.9; }
.footer__addr a:hover { color: var(--accent-2); }
.footer__col h4 { font-family: var(--font-sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-2); margin-bottom: 18px; }
.footer__col a { display: block; padding: 7px 0; color: var(--text-invert-soft); font-size: .96rem; transition: color .18s var(--ease); }
.footer__col a:hover { color: var(--text-invert); }

.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ink-3); display: grid; place-items: center; color: var(--text-invert-soft); transition: all .2s var(--ease); }
.socials a:hover { color: #1a1206; background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.newsletter { margin-top: 26px; }
.newsletter form { display: flex; gap: 10px; max-width: 420px; }
.newsletter input { flex: 1; padding: 12px 15px; border-radius: var(--radius-pill); border: 1px solid var(--ink-3); background: var(--ink-2); color: var(--text-invert); font: inherit; }
.newsletter input:focus { outline: none; border-color: var(--accent); }
.newsletter .btn { padding-inline: 22px; }
.newsletter__msg { font-size: .88rem; color: var(--accent-2); margin-top: 10px; min-height: 1em; }

.partners { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 8px; }
.partners__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text-invert-soft); }
.partner-logo { height: 30px; opacity: .7; display: inline-flex; align-items: center; gap: 8px; color: var(--text-invert-soft); font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; transition: opacity .2s var(--ease); }
.partner-logo:hover { opacity: 1; }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--ink-3); color: var(--text-invert-soft); font-size: .85rem; }
.footer__bottom a:hover { color: var(--accent-2); }

/* ===================== Reveal on scroll ===================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Distinct entrance for the large statement text — soft blur + rise */
.statement.reveal { transform: translateY(34px) scale(.985); filter: blur(10px); transition: opacity 1.05s var(--ease), transform 1.05s var(--ease), filter 1.05s var(--ease); }
.statement.reveal.is-visible { transform: none; filter: blur(0); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .statement.reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .menu, .menu__cta { display: none; }
  .nav__toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; border: 1px solid rgba(244,241,234,.25); background: rgba(0,0,0,.2); color: var(--text-invert); }
  .nav__mobile-cta { display: inline-flex; }
  .sermon-feature { grid-template-columns: 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 32px 20px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .sermon-row { grid-template-columns: 1fr auto; }
  .sermon-row__date { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .newsletter .btn { justify-content: center; }
  .topbar { font-size: .74rem; }
  .topbar__socials { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__msg { text-align: center; }
  .hero__pause { display: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
