/* general styling */
body {
  margin: 0;
  padding: 0;
}



@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ====== Navigation ====== */
/* Navbar styling */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  text-justify: distribute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.06);
  overflow: visible; /* allow decorative curve pseudo-element */
}
.site-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  gap: 12px;
}
.site-nav .brand {
  font-weight: 700;
  color: #1e3a5f;
  text-decoration: none;
  font-size: 18px;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links a {
  color: #1e3a5f;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a:focus {
  background: rgba(30, 58, 95, 0.06);
}
.nav-toggle {
  display: none; /* shown on small screens */
  background: transparent;
  border: none;
  font-size: 20px;
  color: #1e3a5f;
}

/* Mobile: collapse into hamburger */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 36, 62, 0.12);
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 220ms ease;
    pointer-events: none;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
  }
  .site-nav.open .nav-links {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Small visual tweak when over hero: make nav semi-transparent for a nicer look */
.hero + .site-nav,
.site-nav.hero-over {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.85)
  );
}

/* Utility anchors for sections that were linked in nav */
#services,
#sermons,
#ministries,
#events,
#leadership,
#contact {
  scroll-margin-top: 84px;
}

/* Hero Section */
.hero {
  background: url("../image/hero-church.webp") center/cover no-repeat;
  height: 60vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  text-align: center;
  border-radius: 12px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  margin-bottom: 10px;
}

.tagline {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 20px;
}

.cta-btn {
  background: #d4af37;
  color: #1e3a5f;
  padding: 12px 24px;
  border: none;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #f1f1f1;
  color: #116bdf;
}

/* Welcome Section */
.welcome {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
  color: #1e3a5f;
}

.welcome h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 20px;
}

.welcome p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 20px;
}

.pastor-signature {
  font-style: italic;
  font-weight: bold;
  color: #d4af37;
}

/* sermons section styling */
.sermons {
  padding: 40px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

.sermons h2 {
  font-family: "Playfair Display", serif;
  color: #1e3a5f;
  margin-bottom: 20px;
}

/* to make the carousel effect */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.sermon-card {
  flex: 0 0 250px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  text-align: left;
}

.sermon-card h3 {
  color: #1e3a5f;
  margin-bottom: 10px;
}

.sermon-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.sermon-card a {
  color: #d4af37;
  font-weight: bold;
  text-decoration: underline;
}

/* ministries section styling */
.ministries {
  padding: 40px 20px;
  background-color: #ffffff;
  text-align: center;
}

.ministries h2 {
  font-family: "Playfair Display", serif;
  color: #1e3a5f;
  margin-bottom: 30px;
}

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

.ministry-card {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.ministry-card:hover {
  transform: translateY(-5px);
}

.ministry-card i {
  font-size: 30px;
  color: #d4af37;
  margin-bottom: 10px;
}

.ministry-card h3 {
  color: #1e3a5f;
  margin-bottom: 10px;
}

.ministry-card p {
  font-size: 14px;
  color: #333;
}

.ministry-card a {
  display: inline-block;
  margin-top: 10px;
  color: #1e3a5f;
  text-decoration: underline;
  font-weight: bold;
}
/* Service sectionn styling */
.services {
  position: relative;
  padding: 60px 20px;
  color: #ffffff;
  text-align: center;
  background: url("../image/church-service.webp") center/cover no-repeat;
  z-index: 1;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 58, 95, 0.6); /* deep blue overlay with 60% opacity */
  z-index: -1;
}

.services h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 30px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-card i {
  font-size: 20px;
  color: #d4af37;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 25px;
  margin-bottom: 10px;
  color: #ffffff;
}

.service-card p {
  font-size: 15px;
  color: #f0f0f0;
}

.events {
  background: #fefefe;
  padding: 60px 20px;
  text-align: center;
  color: #1e3a5f;
}

.events h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.event-date {
  background: #d4af37;
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  width: 70px;
  flex-shrink: 0;
  font-weight: bold;
}

.event-date .day {
  font-size: 24px;
  line-height: 1;
}

.event-date .month {
  font-size: 14px;
  text-transform: uppercase;
}

.event-info {
  text-align: left;
  margin-left: 20px;
}

.event-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1e3a5f;
}

.event-time {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.event-desc {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
}

.event-cta {
  color: #d4af37;
  font-weight: bold;
  text-decoration: underline;
}

/* Leadership Section styling */
.leadership {
  padding: 40px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

.leadership h2 {
  font-family: "Playfair Display", serif;
  color: #1e3a5f;
  margin-bottom: 30px;
}

.leaders {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
}

.leader-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.leader-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.leader-card h3 {
  margin-top: 0;
  color: #d4af37;
}

.leader-card p {
  font-size: 14px;
  color: #333;
}

/* Contact Section styling  */
.contact {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #1e3a5f;
}

.contact h2 {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

.contact-form h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.contact-form button {
  background: #d4af37;
  color: #1e3a5f;
  padding: 12px 24px;
  border: none;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #bfa12f;
}
/* Footer styling */
.footer {
  background: #1e3a5f;
  color: #ffffff;
  padding: 16px 10px 8px;
  font-size: 15px;
}

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

  width: 100%;
  margin: 0 auto;
}

.footer-logo {
  width: 60px;
  margin-bottom: 10px;
}

.tagline {
  font-style: italic;
  margin-bottom: 15px;
  color: #d4af37;
}

.social-icons a {
  color: #ffffff;
  margin-right: 10px;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #d4af37;
}

.footer-info h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #d4af37;
}

.contact-block p,
.links-block ul {
  margin-bottom: 10px;
}

.links-block ul {
  list-style: none;
  padding: 0;
}

.links-block li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.links-block li a:hover {
  color: #d4af37;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 16px;
  color: #ccc;
}

@media (max-width: 820px) {
  /* Hero section adjustments */
  .hero {
    height: 50vh;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .tagline {
    font-size: 18px;
  }

  /* Services section adjustments */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }

  .service-card {
    padding: 20px;
  }

  /* Ministry section adjustments */
  .ministry-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  /* Event section adjustments */
  .event-card {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .event-date {
    margin-bottom: 15px;
  }

  .event-info {
    margin-left: 0;
  }

  /* Contact section adjustments */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form button {
    width: 100%;
  }

  .contact-map iframe {
    height: 300px;
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-block,
  .links-block {
    display: none;
  }

  .footer-grid {
    gap: 20px;
  }

  .leaders {
    gap: 20px;
  }

  /* Welcome section adjustments */
  .welcome {
    padding: 40px 15px;
  }

  .welcome p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Sermons section adjustments */
  .sermon-card {
    flex: 0 0 85%;
  }
}

/* //Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-card {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: var(--delay, 0s);
}

[data-aos]{
  opacity: 1 !important;
  transform: none !important;
}