/* ============================================================
   NEW LIFE CHRISTIAN CHURCH — Cinematic Design System
   Sacred & Dramatic · Midnight + Liturgical Gold + Crimson
   ============================================================ */

:root {
  --bg: #070A14;
  --bg-raised: #0D1322;
  --bg-deep: #04060D;
  --text: #F5EFE2;
  --body: #A9AFC2;
  --muted: #8B92A5;
  --gold: #C9A227;
  --gold-bright: #E8C75A;
  --gold-dim: rgba(201, 162, 39, 0.55);
  --crimson: #BF2026;
  --crimson-dark: #9A1A1F;
  --border: rgba(201, 162, 39, 0.14);
  --border-soft: rgba(201, 162, 39, 0.07);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(201, 162, 39, 0.35); color: #FFF8EA; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 9990; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(10) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

#cursorGlow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(201,162,39,0.055) 0%, transparent 65%);
  will-change: transform;
}

#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 10001;
}

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 44px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 10, 20, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 44px;
  border-bottom-color: var(--border-soft);
}
.nav-brand { display: flex; align-items: center; gap: 13px; z-index: 1002; }
.nav-brand svg { flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-name {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: .02em; color: var(--text);
}
.nav-brand-sub {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--body);
  transition: color .35s var(--ease); position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-give {
  background: var(--crimson); color: #FFFFFF !important;
  padding: 10px 22px !important; border-radius: 3px;
  transition: background .35s var(--ease), transform .35s var(--ease) !important;
}
.nav-give::after { display: none; }
.nav-give:hover { background: var(--crimson-dark); transform: translateY(-1px); }

.nav-burger {
  display: none; background: none; border: none; z-index: 1002;
  width: 34px; height: 26px; position: relative;
}
.nav-burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--text); transition: all .45s var(--ease);
}
.nav-burger span:nth-child(1) { top: 4px; }
.nav-burger span:nth-child(2) { top: 12px; }
.nav-burger span:nth-child(3) { top: 20px; width: 60%; }
.nav-burger.open span:nth-child(1) { top: 12px; transform: rotate(45deg); background: var(--gold); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 12px; width: 100%; transform: rotate(-45deg); background: var(--gold); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(4, 6, 13, 0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(30px, 7vw, 44px);
  font-weight: 500; color: var(--body); padding: 6px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold-bright); font-style: italic; }
.mobile-menu .menu-verse {
  position: absolute; bottom: 44px; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* ---------- typography & sections ---------- */
.section { padding: 130px 44px; position: relative; }
.section-tight { padding: 90px 44px; }
.container { max-width: 1180px; margin: 0 auto; position: relative; }
.container-narrow { max-width: 860px; margin: 0 auto; position: relative; }

.kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.kicker::before { content: ''; width: 36px; height: 1px; background: var(--gold-dim); }
.kicker.centered { justify-content: center; }
.kicker.centered::after { content: ''; width: 36px; height: 1px; background: var(--gold-dim); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }
.h-display { font-size: clamp(42px, 6.5vw, 86px); letter-spacing: -0.01em; }
.h-xl { font-size: clamp(36px, 5vw, 60px); }
.h-lg { font-size: clamp(28px, 3.6vw, 42px); }
.h-md { font-size: clamp(22px, 2.6vw, 28px); }
em.gold { font-style: italic; color: var(--gold-bright); }

.lead { color: var(--body); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 640px; }
.body-text { color: var(--body); font-size: 15.5px; }
.small-caps {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}

.verse-block { text-align: center; max-width: 820px; margin: 0 auto; }
.verse-text {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(24px, 3.4vw, 38px); font-weight: 400;
  line-height: 1.45; color: var(--text);
}
.verse-ref {
  margin-top: 22px; font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}

/* ---------- ornaments ---------- */
.ornament-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; padding: 10px 0;
}
.ornament-divider::before, .ornament-divider::after {
  content: ''; width: min(180px, 22vw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.ornament-divider::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.ornament-divider svg { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 17px 32px; border-radius: 3px; border: none;
  position: relative; overflow: hidden;
  transition: all .4s var(--ease); will-change: transform;
}
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-crimson { background: var(--crimson); color: #FFFFFF; }
.btn-crimson:hover { background: var(--crimson-dark); box-shadow: 0 14px 38px rgba(191, 32, 38, 0.3); }
.btn-gold { background: var(--gold); color: #0A0E1A; }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 14px 38px rgba(201, 162, 39, 0.25); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.btn-ghost:hover { background: rgba(201, 162, 39, 0.09); border-color: var(--gold); }

.text-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  transition: gap .35s var(--ease), color .35s;
}
.text-link:hover { gap: 14px; color: var(--gold-bright); }

/* ---------- cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 34px;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}

.spot-card {
  position: relative; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 36px; overflow: hidden;
  transition: transform .5s var(--ease);
}
.spot-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 10px;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 39, 0.12), transparent);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.spot-card:hover::before { opacity: 1; }
.spot-card:hover { transform: translateY(-4px); }
.spot-card > * { position: relative; z-index: 1; }

.card-icon {
  width: 52px; height: 52px; border-radius: 8px;
  background: rgba(201, 162, 39, 0.09);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 22px;
  transition: all .4s var(--ease);
}
.spot-card:hover .card-icon { background: rgba(201, 162, 39, 0.16); transform: scale(1.05) rotate(-3deg); }

/* ---------- marquee ---------- */
.marquee-band {
  overflow: hidden; padding: 38px 0; white-space: nowrap;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  background: var(--bg-deep); position: relative;
}
.marquee-row { display: inline-flex; will-change: transform; }
.marquee-content { display: inline-flex; align-items: center; gap: 54px; padding-right: 90px; }
.marquee-content span {
  font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 300; font-style: italic; color: var(--gold);
  letter-spacing: .01em;
}
.marquee-content span.filled { color: var(--gold); -webkit-text-stroke: 0; }
.marquee-content svg { color: var(--gold-dim); flex-shrink: 0; }

/* ---------- footer ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  padding: 100px 44px 40px; position: relative; overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(900px, 90vw); height: 360px; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(201, 162, 39, 0.07), transparent 70%);
}
.footer-verse {
  text-align: center; font-family: var(--font-display); font-style: italic;
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 400; color: var(--text);
  max-width: 760px; margin: 0 auto 70px; position: relative; line-height: 1.4;
}
.footer-grid {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; position: relative;
}
.footer h4 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.footer-brand-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.footer p, .footer li { color: var(--body); font-size: 14px; line-height: 1.8; }
.footer ul { list-style: none; }
.footer ul a { transition: color .3s; }
.footer ul a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; color: var(--body);
  transition: all .4s var(--ease);
}
.footer-social a:hover { color: #0A0E1A; background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-bottom {
  max-width: 1180px; margin: 80px auto 0; padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  min-height: 64vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 160px 44px 80px;
  position: relative; overflow: hidden;
}
.page-hero-rays { position: absolute; inset: 0; pointer-events: none; }
.page-hero-rays::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 140%; height: 130%;
  background:
    radial-gradient(ellipse 46% 56% at 50% 0%, rgba(201, 162, 39, 0.13), transparent 68%),
    radial-gradient(ellipse 26% 40% at 32% 0%, rgba(232, 199, 90, 0.07), transparent 70%),
    radial-gradient(ellipse 26% 40% at 68% 0%, rgba(232, 199, 90, 0.07), transparent 70%);
}
.light-shaft {
  position: absolute; top: -12%; width: 2px; height: 68vh;
  background: linear-gradient(to bottom, rgba(232, 199, 90, 0.4), transparent);
  transform-origin: top center; pointer-events: none;
  animation: shaftBreathe 7s ease-in-out infinite;
}
@keyframes shaftBreathe {
  0%, 100% { opacity: .5; }
  50% { opacity: .95; }
}

/* ---------- forms ---------- */
.field { margin-bottom: 22px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.field input, .field textarea, .field select {
  width: 100%; background: rgba(7, 10, 20, 0.6);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 16px 18px; color: var(--text);
  font-family: var(--font-ui); font-size: 15px; font-weight: 300;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.09);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(139, 146, 165, 0.6); }

/* ---------- reveal (JS-driven) ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); will-change: transform, opacity; }
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- time tables ---------- */
.time-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--border-soft);
}
.time-row .day { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.time-row .times { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--gold); font-weight: 500; text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 13px 24px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .section, .section-tight { padding-left: 24px; padding-right: 24px; }
  .page-hero { padding-left: 24px; padding-right: 24px; }
  .footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 640px) {
  .section { padding-top: 90px; padding-bottom: 90px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  #cursorGlow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .light-shaft { animation: none !important; }
}
