@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;

  --bg-dark: #05060b;
  --text-light: #f9fafb;
  --text-muted: #9ca3af;
  --accent-gold: #e5c158;
  --accent-gold-hover: #cfa83b;
  --accent-gold-glow: rgba(229, 193, 88, 0.15);
  --accent-cyan: #38bdf8;

  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-glow: rgba(255, 255, 255, 0.15);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Easing curves for premium feel */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Use native momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
  /* Sub-pixel anti-aliasing for crisp text everywhere */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── SCROLL-REVEAL — sections fade+rise on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out-expo),
              transform 0.65s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings inside a reveal container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ─── BACKGROUND BLOBS — Desktop only ───────── */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  /* Rich deep radial background — visible always */
  background: radial-gradient(ellipse at 50% 40%, #0d1535 0%, #040610 55%, #020308 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  mix-blend-mode: screen;
  /* Only translate/scale — compositor-safe properties */
  animation: floatAround 28s infinite alternate ease-in-out;
  will-change: transform;
}

.blob-1 {
  top: -15%;
  left: 8%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(229, 193, 88, 0.28) 0%, transparent 68%);
  animation-duration: 26s;
}

.blob-2 {
  bottom: -20%;
  right: 8%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 68%);
  animation-duration: 32s;
  animation-delay: -8s;
}

.blob-3 {
  top: 35%;
  left: 42%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 68%);
  animation-duration: 22s;
  animation-delay: -14s;
}

/* Only translate+scale — compositor-only, zero repaints */
@keyframes floatAround {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(80px, -60px, 0) scale(1.15); }
  100% { transform: translate3d(-50px, 90px, 0) scale(0.9); }
}

/* Disable blobs on mobile to save battery and GPU */
@media (max-width: 768px) {
  .blob { display: none; }
  .bg-blobs {
    background: radial-gradient(ellipse at 50% 0%, #0a102b 0%, #030408 60%);
  }
}

/* ─── NAVIGATION ─────────────────────────────── */
.navbar-church {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 6, 11, 0.75);
  border-bottom: 1px solid var(--glass-border);
  /* Only transition padding — cheap */
  transition: padding 0.25s var(--ease-in-out),
              background 0.25s var(--ease-in-out);
  /* Force GPU layer so scroll doesn't repaint */
  will-change: background;
  transform: translateZ(0);
}

/* Compact navbar on scroll (JS adds .scrolled) */
.navbar-church.scrolled {
  padding: 12px 8%;
  background: rgba(5, 6, 11, 0.92);
}

.brand-church {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}
.brand-church:hover { opacity: 0.85; }

.brand-church img {
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(229, 193, 88, 0.18);
}

.nav-links-church {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links-church a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  /* Only color transitions — cheap */
  transition: color 0.2s ease;
  position: relative;
}

/* Underline slide-in on hover */
.nav-links-church a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--accent-gold);
  transition: width 0.25s var(--ease-out-expo);
}
.nav-links-church a:hover { color: var(--accent-gold); }
.nav-links-church a:hover::after { width: 100%; }

.nav-btn-library {
  padding: 10px 22px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(229, 193, 88, 0.14) 0%, rgba(229, 193, 88, 0.03) 100%);
  border: 1px solid rgba(229, 193, 88, 0.35);
  color: var(--accent-gold) !important;
  font-weight: 600 !important;
  transition: background 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s var(--ease-out-expo) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(229, 193, 88, 0.06);
}
.nav-btn-library:hover {
  background: var(--accent-gold) !important;
  color: var(--bg-dark) !important;
  box-shadow: 0 4px 20px rgba(229, 193, 88, 0.3) !important;
  transform: translateY(-2px) !important;
}
/* Remove underline from Library button */
.nav-btn-library::after { display: none !important; }

/* ─── HERO ───────────────────────────────────── */
.hero-church {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 8%;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* Premium church background with radial glow, dark linear overlays, and slow cinematic scale zoom */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(229, 193, 88, 0.12) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(5, 6, 11, 0.4) 0%, rgba(5, 6, 11, 0.95) 100%),
    url('../assets/church_hero_bg.jpg') no-repeat center center/cover;
  z-index: 0;
  animation: heroBgZoom 24s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes heroBgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Subtle grid overlay inside hero for modern tech/premium feel */
.hero-church::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle top-edge light sweep */
.hero-church::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(229,193,88,0.35), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  z-index: 10;
  position: relative;
  animation: heroContentIn 1s var(--ease-out-expo) both;
  animation-delay: 2.8s;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: -0.015em;
  padding-bottom: 0.05em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.7;
}

/* Hero CTA buttons row */
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Mobile hero */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-church { min-height: auto; padding: 120px 5% 60px; }
}


/* ─── LIQUID GLASS PANEL ─────────────────────── */
.glass-panel {
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  /* Inner highlight on top edge for glass depth */
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.2) inset,
    0 10px 40px 0 rgba(0, 0, 0, 0.5);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  will-change: transform;
}

/* Diagonal shimmer sheen on the glass surface */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  pointer-events: none;
  border-radius: inherit;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.2) inset,
    0 20px 60px 0 rgba(0, 0, 0, 0.6),
    0 0 30px rgba(229, 193, 88, 0.05);
}

/* ─── SECTIONS ───────────────────────────────── */
.section-container {
  padding: 90px 8%;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  /* Subtle gradient on section headings */
  background: linear-gradient(135deg, #ffffff 50%, rgba(229,193,88,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.06em;
}

/* Gold accent rule under section headers */
.section-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--accent-gold), rgba(229,193,88,0.3));
  border-radius: 2px;
  margin: 0 auto 14px;
  box-shadow: 0 0 10px rgba(229,193,88,0.4);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
}

/* ─── MINISTRIES GRID ────────────────────────── */
.grid-ministries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.ministry-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(229,193,88,0.15) 0%, rgba(229,193,88,0.04) 100%);
  border: 1px solid rgba(229, 193, 88, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-gold);
  box-shadow:
    0 0 0 0 rgba(229,193,88,0),
    0 2px 12px rgba(229, 193, 88, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ministry-card:hover .ministry-icon {
  background: radial-gradient(circle at 35% 35%, rgba(229,193,88,0.25) 0%, rgba(229,193,88,0.08) 100%);
  border-color: rgba(229,193,88,0.45);
  box-shadow:
    0 0 0 6px rgba(229,193,88,0.06),
    0 4px 20px rgba(229, 193, 88, 0.18);
}

.ministry-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ministry-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ─── SCHEDULE BAR ───────────────────────────── */
.schedule-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.schedule-item { padding: 10px; }
.schedule-item h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.schedule-item p {
  font-size: 1.15rem;
  font-weight: 500;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f0cf6a 0%, #e5c158 50%, #cfa83b 100%);
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 4px 20px rgba(229, 193, 88, 0.35),
    0 1px 0 rgba(255,255,255,0.25) inset;
  transition: box-shadow 0.25s ease,
              transform 0.25s var(--ease-out-expo),
              filter 0.25s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
/* Shimmer on hover */
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
  transition: left 0.45s ease;
}
.btn-gold:hover::after { left: 150%; }
.btn-gold:hover {
  box-shadow:
    0 8px 32px rgba(229, 193, 88, 0.5),
    0 1px 0 rgba(255,255,255,0.25) inset;
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.btn-gold:active { transform: translateY(0); box-shadow: 0 2px 10px rgba(229,193,88,0.3); }

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 30px;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.02) 100%
  );
  border: 1px solid rgba(255,255,255,0.13);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 4px 16px rgba(0,0,0,0.3);
  transition: background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.25s var(--ease-out-expo);
  will-change: transform;
}
.btn-glass:hover {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.13) 0%,
    rgba(255,255,255,0.05) 100%
  );
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 28px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.btn-glass:active { transform: translateY(0); }

/* ─── FOOTER ─────────────────────────────────── */
.footer-church {
  padding: 70px 8% 40px;
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 6, 11, 0.92);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.footer-logo img { border-radius: 50%; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 36px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-light); }

.social-link {
  color: var(--text-muted) !important;
  transition: color 0.2s ease,
              border-color 0.2s ease,
              transform 0.2s var(--ease-out-expo),
              box-shadow 0.2s ease,
              background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  will-change: transform;
}
.social-link svg { width: 18px !important; height: 18px !important; }
.social-link:hover {
  color: var(--accent-gold) !important;
  border-color: var(--accent-gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 193, 88, 0.22);
  background: rgba(229, 193, 88, 0.08) !important;
}

.footer-copy {
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 300;
}

/* ─── WEEKLY SCHEDULE GRID ───────────────────── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.schedule-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 28px;
  gap: 0;
  position: relative;
  transition: transform 0.3s var(--ease-out-expo),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform;
}
.schedule-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-glow);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 18px rgba(229,193,88,0.06);
}

.schedule-card-day {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
  border: 1px solid transparent;
  border-top: none;
}
.schedule-card-day.friday  { background: rgba(251,191,36,0.12); color: #fbbf24; border-color: rgba(251,191,36,0.25); }
.schedule-card-day.saturday{ background: rgba(56,189,248,0.10); color: #38bdf8; border-color: rgba(56,189,248,0.22); }
.schedule-card-day.sunday  { background: rgba(229,193,88,0.12); color: var(--accent-gold); border-color: rgba(229,193,88,0.25); }
.schedule-card-day.tuesday { background: rgba(167,139,250,0.12); color: #a78bfa; border-color: rgba(167,139,250,0.25); }
.schedule-card-day.wednesday{ background: rgba(52,211,153,0.10); color: #34d399; border-color: rgba(52,211,153,0.22); }

.schedule-card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(229,193,88,0.08);
  border: 1px solid rgba(229,193,88,0.18);
  display: flex;
  align-items: center; justify-content: center;
  margin-top: 28px; margin-bottom: 16px;
  flex-shrink: 0;
  color: var(--accent-gold);
}
.schedule-card-icon i,
.schedule-card-icon svg { width: 22px; height: 22px; color: inherit; }

.schedule-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.3;
}

.schedule-card-time {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; flex-wrap: wrap;
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 12px; letter-spacing: 0.01em;
}

.schedule-card-note {
  background: rgba(229,193,88,0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(229,193,88,0.25);
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

.schedule-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── REDUCED MOTION — always respect user preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-title, .hero-subtitle, .hero-church > div {
    animation: none !important;
    opacity: 1 !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .navbar-church { padding: 18px 5%; }
  .section-container { padding: 70px 5%; }
  .hero-title { font-size: 3.4rem; }
}

@media (max-width: 768px) {
  .navbar-church {
    padding: 12px 4%;
    flex-direction: column;
    gap: 10px;
    background: #05060b !important;
    /* Remove blur on mobile for perf */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .brand-church img { height: 32px !important; width: 32px !important; }
  .brand-church span { font-size: 1.15rem !important; }
  .nav-links-church { gap: 14px; flex-wrap: wrap; justify-content: center; width: 100%; }
  .nav-links-church a { font-size: 0.85rem !important; }
  .nav-links-church li:last-child { width: 100%; text-align: center; margin-top: 10px; }
  .nav-btn-library {
    display: inline-flex;
    width: auto;
    padding: 10px 24px !important;
    font-size: 0.88rem !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero-church { min-height: auto; padding: 120px 5% 60px; }
  .hero-title { font-size: 2.4rem; line-height: 1.25; }
  .hero-subtitle { font-size: 1.05rem; margin-bottom: 30px; }
  .schedule-bar { grid-template-columns: 1fr; gap: 24px; }
  .section-header h2 { font-size: 2.1rem; }
  .grid-ministries { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { flex-direction: column; gap: 16px; }

  /* Glass panels: lighter blur on mobile — keeps premium look, better perf */
  .glass-panel {
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  }
}

@media (max-width: 900px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 560px) {
  .hero-content {
    padding: 36px 20px;
    border-radius: var(--radius-md);
  }
  .hero-title { font-size: 2.1rem; }
  /* Buttons stay pill-shaped and centred — NOT full width */
  .btn-gold, .btn-glass {
    width: auto;
    min-width: 220px;
    justify-content: center;
  }
  .hero-church div[style*="display: flex"] {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 14px !important;
  }
  .schedule-grid { grid-template-columns: 1fr; gap: 16px; }
  .schedule-card { padding: 28px 20px 24px; }
}
