body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #121212;
  color: #f4ede4;
  overflow-x: hidden;
}

.hero {
  background: url('assets/hero.jpg') center/cover no-repeat;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-logo img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
}

h1 {
  color: #e8b86d;
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

h2 {
  color: #f4ede4;
  font-size: 1.8rem;
  margin-top: 10px;
  letter-spacing: 0.04rem;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  color: #121212;
  background-color: #e8b86d;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background-color: #cda65a;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.hero-actions .btn {
  margin-top: 0;
}

.btn-ghost {
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid rgba(232, 184, 109, 0.6);
  color: #e8b86d;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(232, 184, 109, 0.15);
  color: #f4ede4;
}

.mission {
  display: flex;
  flex-wrap: wrap;
  padding: 60px 10%;
  align-items: center;
}

.mission-text {
  flex: 1 1 40%;
  padding: 20px;
}

.mission-image {
  flex: 1 1 50%;
}

.mission-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px #cda65a44;
}

.meet-church {
  padding: 80px 10% 40px;
  position: relative;
  z-index: 1;
}

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

.section-header h3 {
  margin-bottom: 12px;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #e8b86d;
}

.section-header p {
  max-width: 520px;
  margin: 0 auto;
  color: #f4ede4;
  font-weight: 300;
  line-height: 1.6;
}



.avatar-slider {
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  position: relative;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.avatar-slider::-webkit-scrollbar {
  display: none;
}

.avatar-track {
  display: inline-flex;
  gap: 24px;
  flex-wrap: nowrap;
}

.avatar-card {
  flex: 0 0 220px;
  background: rgba(26, 20, 16, 0.85);
  border: 1px solid rgba(205, 166, 90, 0.18);
  border-radius: 20px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  user-select: none;
}

.avatar-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(232, 184, 109, 0.6);
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(232, 184, 109, 0.2);
}

.avatar-card h4 {
  margin: 0 0 6px;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #e8b86d;
}

.avatar-card p {
  margin: 0;
  font-weight: 300;
  color: #f4ede4;
  line-height: 1.4;
}

.avatar-slider.dragging {
  cursor: grabbing;
}

.ministries {
  text-align: center;
  padding: 80px 10%;
}

.ministries-preview {
  margin-top: 40px;
}

.loading-text {
  color: #f4ede4;
  font-weight: 300;
}

.loading-text.error a {
  color: #e8b86d;
}

footer {
  background-color: #1a1410;
  text-align: center;
  padding: 40px 10%;
  color: #cda65a;
  font-style: italic;
}

/* --- Candlelight Glow --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 215, 130, 0.05), transparent 70%);
  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --- Ember Particle Styles --- */
.ember-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.3s ease-out;
}

.ember {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255,180,80,1) 0%, rgba(255,100,20,0.6) 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0;
  animation: floatUp linear forwards;
}

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

}




.subpage-header {
  background: url('https://images.unsplash.com/photo-1526481280698-8fcc3f3b6d2c?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.subpage-header .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.subpage-header h1 {
  position: relative;
  z-index: 1;
  color: #e8b86d;
  font-size: 2.5rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  padding: 60px 10%;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h2 {
  color: #e8b86d;
  margin-top: 30px;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.about-text p, .about-text li {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f4ede4;
}

.about-image {
  flex: 1 1 40%;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px #cda65a44;
}

/* --- Ministries Page --- */
.ministries-page {
  text-align: center;
  padding: 80px 10%;
}

.intro-verse {
  font-style: italic;
  font-size: 1.2rem;
  color: #f4ede4;
  margin-bottom: 60px;
  line-height: 1.8;
}

.intro-verse span {
  color: #e8b86d;
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.ministry-card {
  background-color: #1a1410;
  border: 1px solid #cda65a33;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(205,166,90,0.1);
  transition: all 0.4s ease;
}

.ministry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(205,166,90,0.3);
}

.ministry-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ministry-info {
  padding: 25px;
}

.ministry-info h3 {
  color: #e8b86d;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.ministry-info p {
  color: #f4ede4;
  line-height: 1.6;
  font-weight: 300;
}

.get-involved {
  margin-top: 80px;
  padding: 60px;
  background: linear-gradient(180deg, #1a1410, #0e0c0a);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(205,166,90,0.2);
}

.get-involved h2 {
  color: #e8b86d;
  margin-bottom: 15px;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.get-involved p {
  color: #f4ede4;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cta-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-action .cta-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cta-action.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
}

.cta-action.whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
}

.cta-action.email,
.cta-action.phone {
  background: rgba(232, 184, 109, 0.15);
  color: #e8b86d;
  box-shadow: 0 0 15px rgba(232, 184, 109, 0.2);
}

.cta-action.email:hover,
.cta-action.phone:hover {
  background: rgba(232, 184, 109, 0.28);
}

.cta-action:hover {
  transform: translateY(-2px);
}

/* --- Flame Background Effect --- */
.flame-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255,185,90,0.1), transparent 70%),
              radial-gradient(circle at 30% 60%, rgba(255,160,70,0.15), transparent 70%),
              radial-gradient(circle at 70% 40%, rgba(255,220,130,0.12), transparent 70%);
  background-blend-mode: screen;
  z-index: 0;
  animation: flickerGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes flickerGlow {
  0% {
    filter: brightness(0.9) blur(2px);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.2) blur(3px);
    transform: scale(1.02);
  }
  100% {
    filter: brightness(1) blur(2px);
    transform: scale(1.01);
  }
}

/* make sure the page content appears above it */
.subpage-header,
.ministries-page,
footer {
  position: relative;
  z-index: 2;
}

/* --- About Page Enhancements --- */
.about-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 30%, rgba(255,180,80,0.1), transparent 70%),
              radial-gradient(circle at 70% 60%, rgba(255,160,70,0.1), transparent 70%),
              radial-gradient(circle at 30% 80%, rgba(255,215,130,0.15), transparent 80%);
  animation: slowGlow 10s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

@keyframes slowGlow {
  0% { filter: brightness(0.9) blur(2px); }
  50% { filter: brightness(1.3) blur(3px); }
  100% { filter: brightness(1) blur(2px); }
}

.about-intro {
  text-align: center;
  padding: 60px 10%;
  position: relative;
  z-index: 2;
}

.about-intro .verse {
  font-style: italic;
  color: #f4ede4;
  font-size: 1.3rem;
  line-height: 1.8;
}

.about-intro span {
  color: #e8b86d;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  padding: 60px 10%;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.about-text {
  flex: 1 1 55%;
}

.about-text h2 {
  color: #e8b86d;
  margin-top: 30px;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.about-text p, .about-text li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f4ede4;
}

.about-image {
  flex: 1 1 40%;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(205,166,90,0.3);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid rgba(205, 166, 90, 0.15);
}

body.js-enabled .navbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.js-enabled .navbar.is-hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f4ede4;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.45));
}

.nav-logo span {
  color: #e8b86d;
  transition: color 0.3s ease;
}

.nav-logo:hover span {
  color: #f5e5bb;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline;
}

.nav-links a {
  color: #f4ede4;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #e8b86d;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #e8b86d;
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- Space offset for fixed navbar --- */
body.nav-active {
  padding-top: 70px;
}
