/* ===============================
   VA ARTIGOS - ESTILO BASE
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 1; /* Mantém visível mesmo sem JS */
  transition: opacity 0.8s ease;
}

/* ======== CABEÇALHO ======== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 71, 161, 0.85);
  backdrop-filter: blur(6px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

header .logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 18px;
  font-weight: 500;
  font-size: 16px;
  transition: 0.3s;
}

header nav a:hover {
  color: #fbc02d;
}

/* ======== BANNER PRINCIPAL ======== */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
              url('imagens/banner-louvor.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  margin-top: 70px; /* Evita sobreposição do menu fixo */
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero p {
  max-width: 800px;
  font-size: 18px;
  margin-bottom: 25px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero a {
  display: inline-block;
  background: #fbc02d;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 35px;
  border-radius: 8px;
  transition: 0.3s;
}

.hero a:hover {
  background: #ffeb3b;
  transform: scale(1.05);
}

/* ======== SEÇÕES ======== */
section {
  padding: 80px 20px;
  text-align: center;
}

section h2 {
  color: #0d47a1;
  font-size: 32px;
  margin-bottom: 25px;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #fbc02d;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ======== CARDS / VITRINE ======== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  color: #0d47a1;
  margin: 15px 0 5px;
  font-size: 18px;
}

.card p {
  padding: 0 15px 20px;
  font-size: 15px;
  color: #555;
}

/* ======== RODAPÉ ======== */
footer {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 30px 10px;
  font-size: 15px;
  margin-top: 50px;
}

footer a {
  color: #fbc02d;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* ======== ANIMAÇÕES ======== */
.animate-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

body.page-loaded {
  opacity: 1;
}

/* ======== RESPONSIVIDADE ======== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 10px;
  }

  header nav {
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 75vh;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 200px;
  }
}
