/* =========================================================
   Overcomers Fellowship — Shared Stylesheet
   Palette: Royal Blue (#1e3a8a) + Silver (#c8d0dc) + White
   ========================================================= */

:root {
  /* Brand */
  --royal: #1e3a8a;
  --royal-deep: #14296b;
  --royal-darker: #0d1c4a;
  --royal-light: #3b5fb8;
  --silver: #c8d0dc;
  --silver-dark: #8693a8;
  --silver-bright: #e2e7ee;
  --silver-soft: #f1f4f8;

  /* Backwards-compatible aliases (inline HTML styles still work) */
  --navy: var(--royal);
  --navy-dark: var(--royal-deep);
  --gold: var(--silver);
  --gold-dark: var(--royal);
  --gold-soft: var(--silver-soft);

  /* Neutrals */
  --cream: #ffffff;
  --ink: #1a2438;
  --muted: #6b7280;
  --line: #e1e5eb;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--white);
  background:
    linear-gradient(180deg, var(--royal) 0%, var(--royal-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Blue sections (default): eyebrows + dividers go silver-bright */
.section-title .eyebrow {
  color: var(--silver-bright);
}

.divider {
  background: var(--silver-bright);
}

/* ---- LIGHT SURFACES — flip text colors back to dark ---- */
/* Cards, panels, banners, forms, info-bar */
.info-bar, .card, .belief-item, .vision-banner,
.sermon-card, .event-card, .giving-option,
form {
  color: var(--ink);
}

.info-bar h1, .info-bar h2, .info-bar h3, .info-bar h4,
.card h1, .card h2, .card h3, .card h4,
.belief-item h1, .belief-item h2, .belief-item h3, .belief-item h4,
.vision-banner h1, .vision-banner h2, .vision-banner h3, .vision-banner h4,
.sermon-card h3, .event-card h3, .event-body h3, .sermon-body h3,
.giving-option h3,
form h1, form h2, form h3, form h4 {
  color: var(--royal);
}

/* Sections with light backgrounds (white or silver-soft) */
section[style*="background: var(--white)"],
section[style*="background:var(--white)"],
section[style*="background: var(--gold-soft)"],
section[style*="background:var(--gold-soft)"],
section[style*="background: var(--silver-soft)"] {
  color: var(--ink);
}

section[style*="background: var(--white)"] h1,
section[style*="background: var(--white)"] h2,
section[style*="background: var(--white)"] h3,
section[style*="background: var(--white)"] h4,
section[style*="background: var(--gold-soft)"] h1,
section[style*="background: var(--gold-soft)"] h2,
section[style*="background: var(--gold-soft)"] h3,
section[style*="background: var(--gold-soft)"] h4 {
  color: var(--royal);
}

section[style*="background: var(--white)"] .section-title .eyebrow,
section[style*="background: var(--gold-soft)"] .section-title .eyebrow {
  color: var(--royal-light);
}

section[style*="background: var(--white)"] .divider,
section[style*="background: var(--gold-soft)"] .divider {
  background: var(--royal);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.1rem; }
a { color: var(--silver-bright); text-decoration: none; }
a:hover { color: var(--white); }

/* Links inside light surfaces */
.light-section a, .card a, .vision-banner a, .belief-item a,
.info-bar a, form a {
  color: var(--royal);
}
.light-section a:hover, .card a:hover, .vision-banner a:hover,
.belief-item a:hover, .info-bar a:hover, form a:hover {
  color: var(--royal-light);
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(30,58,138,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--royal);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--royal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid var(--silver);
  box-shadow: 0 0 0 2px var(--white), 0 2px 6px rgba(30,58,138,0.2);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--royal);
  border-bottom-color: var(--royal);
}

.nav-cta {
  background: var(--royal);
  color: var(--white) !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 4px;
  border: none !important;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(30,58,138,0.25);
}

.nav-cta:hover {
  background: var(--royal-deep);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--royal);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, var(--royal) 0%, var(--royal-deep) 50%, var(--royal-darker) 100%);
  color: var(--white);
  padding: 6rem 1.5rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(226,231,238,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200,208,220,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 850px; margin: 0 auto; }

.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero .tagline {
  font-size: 1.2rem;
  color: var(--silver-bright);
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-bright);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ---------- Page Header (non-home pages) ---------- */
.page-header {
  background:
    linear-gradient(135deg, var(--royal) 0%, var(--royal-deep) 50%, var(--royal-darker) 100%);
  color: var(--white);
  padding: 4rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(226,231,238,0.14) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200,208,220,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 { color: var(--white); position: relative; z-index: 1; }
.page-header p {
  color: var(--silver-bright);
  font-size: 1.1rem;
  margin-top: 0.8rem;
  position: relative;
  z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #f4f6fa 0%, #c8d0dc 100%);
  color: var(--royal);
  border: 1px solid #b3bdce;
  box-shadow: 0 2px 6px rgba(30,58,138,0.10);
}

.btn-primary:hover {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30,58,138,0.30);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--silver-bright);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--royal);
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Sections ---------- */
section { padding: 5rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .eyebrow {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal-light);
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--royal);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ---------- Cards / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30,58,138,0.10);
  border-color: var(--silver);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--silver-soft);
  color: var(--royal);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--silver);
}

/* ---------- Info Bar ---------- */
.info-bar {
  background: var(--silver-soft);
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
}

.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.info-item .label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--royal-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.info-item .value {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--royal);
  font-weight: 600;
}

/* ---------- Vision Banner ---------- */
.vision-banner {
  background: var(--white);
  border-left: 5px solid var(--royal);
  padding: 2.5rem 2rem;
  margin: 0 auto;
  max-width: 850px;
  box-shadow: 0 4px 20px rgba(30,58,138,0.08);
  border-radius: 0 8px 8px 0;
  position: relative;
}

.vision-banner::after {
  content: '';
  position: absolute;
  left: -5px; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--royal) 0%, var(--silver) 100%);
}

.vision-banner .label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal-light);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.vision-banner blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--royal);
  font-style: italic;
}

/* ---------- Pastor Block ---------- */
.pastor-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.pastor-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--royal) 0%, var(--silver-dark) 100%);
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  border: 3px solid var(--silver);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(30,58,138,0.18);
}

.pastor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pastor-photo-wrap {
  position: relative;
}

.photo-frame-accent {
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 2px solid var(--royal);
  border-radius: 8px;
  z-index: -1;
}

/* ---------- Beliefs List ---------- */
.belief-item {
  background: var(--white);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--royal);
  box-shadow: 0 2px 8px rgba(30,58,138,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.belief-item:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(30,58,138,0.10);
}

.belief-item h3 { margin-bottom: 0.5rem; }

/* ---------- Sermon / Event Cards ---------- */
.sermon-card, .event-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sermon-card:hover, .event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30,58,138,0.12);
}

.sermon-thumb, .event-date {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-deep) 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.event-date .day {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--silver-bright);
  font-weight: 600;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 0.3rem;
}

.sermon-body, .event-body { padding: 1.5rem; }
.sermon-body h3, .event-body h3 { margin-bottom: 0.4rem; }
.sermon-meta, .event-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--royal);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.15);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ---------- Giving Options ---------- */
.giving-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.giving-option {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.2s;
}

.giving-option:hover {
  border-color: var(--royal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30,58,138,0.10);
}

.giving-option .icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: var(--royal);
}

.giving-option h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.giving-option p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    linear-gradient(180deg, var(--royal-deep) 0%, var(--royal-darker) 100%);
  color: var(--silver-bright);
  padding: 4rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1140px;
  margin: 0 auto 3rem;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-grid a {
  color: var(--silver-bright);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.footer-grid a:hover { color: var(--white); }

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(226, 231, 238, 0.85);
}

.social-row { display: flex; gap: 0.7rem; margin-top: 0.8rem; }
.social-row a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--silver-bright);
  border-radius: 50%;
  color: var(--silver-bright);
  font-size: 0.95rem;
  padding: 0;
  transition: all 0.2s;
}
.social-row a:hover { background: var(--white); color: var(--royal); border-color: var(--white); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(226,231,238,0.20);
  font-size: 0.85rem;
  color: rgba(226, 231, 238, 0.65);
}

/* ---------- Placeholder marker ---------- */
.placeholder {
  background: rgba(30,58,138,0.10);
  color: var(--royal-light);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-weight: 500;
  border-bottom: 1px dashed var(--royal-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .info-bar-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pastor-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .pastor-photo { max-width: 220px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .giving-grid { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 14px rgba(30,58,138,0.10);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; width: 100%; }
  .nav-toggle { display: block; }

  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 1.5rem 4.5rem; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MOTION & GLOW — added to liven things up
   ========================================================= */

/* Page-load animation for hero content */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: heroFadeUp 0.9s ease-out backwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.10s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.65s; }

/* Floating light particles in the hero */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particles span {
  position: absolute;
  bottom: -10px;
  display: block;
  width: 6px;
  height: 6px;
  background: var(--silver-bright);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px rgba(226,231,238,0.7);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(0.6);    opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

.particles span:nth-child(1)  { left:  5%; width: 5px;  height: 5px; animation-duration: 22s; animation-delay: 0s; }
.particles span:nth-child(2)  { left: 12%; width: 8px;  height: 8px; animation-duration: 28s; animation-delay: 4s; }
.particles span:nth-child(3)  { left: 22%; width: 4px;  height: 4px; animation-duration: 18s; animation-delay: 2s; }
.particles span:nth-child(4)  { left: 30%; width: 10px; height: 10px; animation-duration: 32s; animation-delay: 8s; }
.particles span:nth-child(5)  { left: 42%; width: 6px;  height: 6px; animation-duration: 24s; animation-delay: 1s; }
.particles span:nth-child(6)  { left: 50%; width: 4px;  height: 4px; animation-duration: 20s; animation-delay: 6s; }
.particles span:nth-child(7)  { left: 60%; width: 8px;  height: 8px; animation-duration: 30s; animation-delay: 3s; }
.particles span:nth-child(8)  { left: 70%; width: 5px;  height: 5px; animation-duration: 22s; animation-delay: 9s; }
.particles span:nth-child(9)  { left: 80%; width: 7px;  height: 7px; animation-duration: 26s; animation-delay: 5s; }
.particles span:nth-child(10) { left: 90%; width: 5px;  height: 5px; animation-duration: 19s; animation-delay: 7s; }
.particles span:nth-child(11) { left: 96%; width: 6px;  height: 6px; animation-duration: 23s; animation-delay: 0.5s; }
.particles span:nth-child(12) { left: 38%; width: 4px;  height: 4px; animation-duration: 27s; animation-delay: 11s; }

/* Make sure hero content sits above particles */
.hero-content,
.page-header h1,
.page-header p { position: relative; z-index: 2; }

/* Pulsing accent on hero h1 */
.hero h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 1px 30px rgba(0,0,0,0.30);
}

.hero .tagline,
.hero .hero-family,
.hero .hero-eyebrow {
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* Scroll-down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--silver-bright);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  animation: scrollBob 2.5s ease-in-out infinite;
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--white);
}

.scroll-indicator svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

@keyframes scrollBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* Enhanced card hover glow */
.card, .belief-item, .sermon-card, .event-card, .giving-option, .vision-banner {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.card:hover,
.belief-item:hover,
.sermon-card:hover,
.event-card:hover,
.giving-option:hover {
  box-shadow:
    0 14px 30px rgba(30,58,138,0.18),
    0 0 0 1px rgba(226,231,238,0.5),
    0 0 28px rgba(226,231,238,0.18);
}

/* Subtle pulse on the brand mark */
.brand-mark {
  animation: brandPulse 4s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--white), 0 2px 6px rgba(30,58,138,0.2); }
  50%      { box-shadow: 0 0 0 2px var(--white), 0 2px 18px rgba(30,58,138,0.45); }
}

/* Fade-in-on-scroll utility */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scripture pull-out (devotional quote between sections) */
.scripture-pull {
  background:
    linear-gradient(135deg, var(--royal-deep) 0%, var(--royal) 50%, var(--royal-deep) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.scripture-pull::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(226,231,238,0.10) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(226,231,238,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.scripture-pull .container-narrow { position: relative; z-index: 1; }

.scripture-pull .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  line-height: 0.6;
  color: var(--silver-bright);
  opacity: 0.5;
  display: block;
  margin-bottom: 1rem;
}

.scripture-pull blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.scripture-pull cite {
  display: inline-block;
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-bright);
  font-weight: 600;
  padding-top: 1rem;
  border-top: 1px solid rgba(226,231,238,0.35);
  position: relative;
}

.scripture-pull cite::before,
.scripture-pull cite::after {
  content: '';
  position: absolute;
  top: 0;
  width: 8px;
  height: 1px;
  background: var(--silver-bright);
}

/* Decorative ornament divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.2rem auto 0;
  color: var(--silver-bright);
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-bright), transparent);
}

.ornament-divider svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* Hero slideshow — three scenes that cycle every 24 seconds */
.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  animation: slideFade 35s ease-in-out infinite;
}

/* 7 photos, each shown for 5 seconds; 35-second total cycle */
.hero-slide:nth-child(1) { animation-delay: 0s;  }
.hero-slide:nth-child(2) { animation-delay: 5s;  }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slide:nth-child(6) { animation-delay: 25s; }
.hero-slide:nth-child(7) { animation-delay: 30s; }

/* Each slide visible 5s (14.3% of 35s): fade in to 2.3%, hold to 12%, fade out at 14.3% */
@keyframes slideFade {
  0%    { opacity: 0; transform: scale(1.08); }
  2.3%  { opacity: 1; }
  12%   { opacity: 1; transform: scale(1);   }
  14.3% { opacity: 0; }
  100%  { opacity: 0; }
}

/* Photo slides — royal blue overlay keeps the hero text readable */
.hero-slide-1 { background-image: linear-gradient(180deg, rgba(13,28,74,0.55) 0%, rgba(20,41,107,0.20) 35%, rgba(20,41,107,0.20) 60%, rgba(13,28,74,0.65) 100%), url('images/slide-1.jpg'); }
.hero-slide-2 { background-image: linear-gradient(180deg, rgba(13,28,74,0.55) 0%, rgba(20,41,107,0.20) 35%, rgba(20,41,107,0.20) 60%, rgba(13,28,74,0.65) 100%), url('images/slide-2.jpg'); }
.hero-slide-3 { background-image: linear-gradient(180deg, rgba(13,28,74,0.55) 0%, rgba(20,41,107,0.20) 35%, rgba(20,41,107,0.20) 60%, rgba(13,28,74,0.65) 100%), url('images/slide-3.jpg'); }
.hero-slide-4 { background-image: linear-gradient(180deg, rgba(13,28,74,0.55) 0%, rgba(20,41,107,0.20) 35%, rgba(20,41,107,0.20) 60%, rgba(13,28,74,0.65) 100%), url('images/slide-4.jpg'); }
.hero-slide-5 { background-image: linear-gradient(180deg, rgba(13,28,74,0.55) 0%, rgba(20,41,107,0.20) 35%, rgba(20,41,107,0.20) 60%, rgba(13,28,74,0.65) 100%), url('images/slide-5.jpg'); }
.hero-slide-6 { background-image: linear-gradient(180deg, rgba(13,28,74,0.55) 0%, rgba(20,41,107,0.20) 35%, rgba(20,41,107,0.20) 60%, rgba(13,28,74,0.65) 100%), url('images/slide-6.jpg'); }
.hero-slide-7 { background-image: linear-gradient(180deg, rgba(13,28,74,0.55) 0%, rgba(20,41,107,0.20) 35%, rgba(20,41,107,0.20) 60%, rgba(13,28,74,0.65) 100%), url('images/slide-7.jpg'); }

/* Restack the hero layers so everything draws in the right order */
.hero::before     { z-index: 1; }
.particles        { z-index: 2; }
.hero-content     { z-index: 3; }
.scroll-indicator { z-index: 3; }

/* Family tagline in the hero — sits between the church name and the verse */
.hero-family {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  color: var(--white);
  margin-top: -0.4rem;
  margin-bottom: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.18);
}

.hero-family::before,
.hero-family::after {
  content: '\2014';
  display: inline-block;
  margin: 0 0.6em;
  color: var(--silver-bright);
  opacity: 0.7;
}

/* "LIVE" indicator (red pulsing dot) */
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
  animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0    rgba(239,68,68,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0    rgba(239,68,68,0); }
}

/* Ministry card spacing for grid-3 on home */
.ministry-card { text-align: center; }
.ministry-card .card-icon { margin-left: auto; margin-right: auto; }

/* Slide-in from sides for scroll reveals */
.slide-in-left, .slide-in-right {
  opacity: 0;
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  will-change: opacity, transform;
}
.slide-in-left  { transform: translateX(-50px); }
.slide-in-right { transform: translateX(50px);  }
.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Pastor photo zoom on hover */
.pastor-photo img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.pastor-photo:hover img,
.pastor-photo-wrap:hover .pastor-photo img {
  transform: scale(1.06);
}

/* Hero background "breathing" — subtle continuous motion */
.hero::before {
  animation: heroBreath 22s ease-in-out infinite alternate;
}

@keyframes heroBreath {
  0%   { transform: scale(1)    translateX(0)   translateY(0);   }
  50%  { transform: scale(1.08) translateX(-2%) translateY(1%);  }
  100% { transform: scale(1.14) translateX(2%)  translateY(-1%); }
}

/* Verse band — slowly cycling scriptures right under the nav */
.verse-band {
  background: linear-gradient(90deg, var(--royal-deep) 0%, var(--royal) 50%, var(--royal-deep) 100%);
  color: var(--silver-bright);
  padding: 0.85rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.98rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 52px;
  border-bottom: 1px solid rgba(226,231,238,0.20);
  border-top: 1px solid rgba(226,231,238,0.20);
}

.verse-band .verse {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 50%;
  opacity: 0;
  animation: verseRotate 24s ease-in-out infinite;
}

.verse-band .verse:nth-child(1) { animation-delay: 0s; }
.verse-band .verse:nth-child(2) { animation-delay: 8s; }
.verse-band .verse:nth-child(3) { animation-delay: 16s; }

.verse-band .verse cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-left: 0.8rem;
}

@keyframes verseRotate {
  0%      { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  4%      { opacity: 1; transform: translateY(-50%); }
  29%     { opacity: 1; transform: translateY(-50%); }
  33%     { opacity: 0; transform: translateY(calc(-50% - 8px)); }
  100%    { opacity: 0; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .particles span,
  .scroll-indicator,
  .brand-mark,
  .fade-in-up,
  .slide-in-left,
  .slide-in-right,
  .live-dot,
  .verse-band .verse,
  .hero-slide {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero::before { animation: none !important; }
  /* Show only the first slide and the first verse */
  .hero-slide:nth-child(n+2) { display: none; }
  .verse-band .verse:nth-child(1) { opacity: 1; }
  .verse-band .verse:nth-child(2),
  .verse-band .verse:nth-child(3) { display: none; }
}

.fade-in-up,
.slide-in-left,
.slide-in-right { opacity: 1 !important; transform: none !important; }