/* =========================
   VARIÁVEIS DE CORES
========================= */
:root {
  --cor-primaria: #2c3e50;
  --cor-secundaria: #3498db;
  --cor-fundo: #f9f9f9;
  --cor-texto: #333;
  --cor-branco: #fff;
}

/* =========================
   RESET GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 2rem 0;
}

/* =========================
   HEADER E NAVEGAÇÃO
========================= */
header {
  background-color: var(--cor-primaria);
  text-align: center;
  color: var(--cor-branco);
  padding: 10px 0;
  position: relative;
}

header .logo {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.menu li a {
  color: var(--cor-branco);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #4da6ff;
}

.menu-toggle {
  display: none;               /* Esconde em desktop */
  font-size: 2.2rem;           /* Ícone maior para mobile */
  background: none;
  border: none;
  color: var(--cor-branco);
  cursor: pointer;
  position: absolute;
  top: 50%;                    /* Centraliza verticalmente */
  right: 20px;
  transform: translateY(-50%); /* Ajuste fino para centralização */
  line-height: 1;
  padding: 10px;               /* Área maior para toque */
  border-radius: 8px;          /* Bordas suaves */
  transition: background 0.3s, transform 0.2s;
  z-index: 1100;               /* Fica acima de outros elementos */
}

.menu-toggle:active,
.menu-toggle:hover {
  background: rgba(255,255,255,0.15); /* Destaque ao toque */
  transform: translateY(-50%) scale(1.1);
}

/* Mostra o ícone ☰ somente em telas pequenas */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}


/* =========================
   HERO
========================= */
.hero {
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("image/hero.jpg") center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cor-branco);
}

.hero-content {
  max-width: 720px;
  padding: 0 1rem;
}

.hero h2 {
  font-size: 2.5rem;
}

.hero p {
  margin: 1rem 0;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  background: var(--cor-secundaria);
  color: var(--cor-branco);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  filter: brightness(0.95);
}

/* =========================
   SEÇÕES GERAIS
========================= */
section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--cor-primaria);
  text-align: center;
}

section p {
  text-align: center;
  max-width: 700px;
  margin: auto;
}

/* =========================
   EVENTOS
========================= */
#eventos-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.evento {
  padding: 1rem;
  background: var(--cor-branco);
  border-left: 5px solid var(--cor-secundaria);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================
   FORMULÁRIOS
========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

button[type="submit"] {
  border: none;
  cursor: pointer;
}

/* =========================
   CARTÕES GENÉRICOS
========================= */
.cards {
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards li {
  background: var(--cor-branco);
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--cor-primaria);
  color: var(--cor-branco);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* =========================
   BOTÃO WHATSAPP FIXO
========================= */
.whatsapp {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: #25d366;
  color: var(--cor-branco);
  font-size: 1.5rem;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =========================
   SEÇÕES ESPECÍFICAS
========================= */
/* Ministérios */
.ministerios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.ministerio {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.ministerio:hover {
  transform: translateY(-5px);
}

.ministerio img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post h3 {
  margin: 1rem;
  font-size: 1.3rem;
  color: #333;
}

.post .data {
  margin: 0 1rem;
  font-size: 0.9rem;
  color: #666;
}

.post p {
  margin: 1rem;
  flex-grow: 1;
  color: #444;
}

.btn-leia {
  display: inline-block;
  margin: 1rem;
  padding: 0.5rem 1rem;
  background: #0077cc;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease;
}

.btn-leia:hover {
  background: #005fa3;
}

/* Testemunhos */
.testemunhos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testemunho {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.testemunho:hover {
  transform: translateY(-5px);
}

.testemunho img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.testemunho h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.testemunho p {
  font-style: italic;
  color: #555;
}

/* Galeria */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.galeria-grid img,
.galeria-grid .video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lightbox .box {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Calendário */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 2rem;
}

.day {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: center;
  background: #f9f9f9;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.day:hover {
  background: #eef6ff;
}

.day.today {
  border: 2px solid #0077cc;
  font-weight: bold;
}

.day .event {
  background: #0077cc;
  color: white;
  font-weight: 600;
}

/* Modal de evento */
.event-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}

.event-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.event-content h3 {
  margin-bottom: 1rem;
}

.event-content .close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Formulário de pedidos */
.pedido-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.pedido-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pedido-form input,
.pedido-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.pedido-form button {
  background: #2c7a7b;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pedido-form button:hover {
  background: #225e5f;
}

.mensagem-sucesso {
  margin-top: 1.5rem;
  padding: 1rem;
  text-align: center;
  display: none;
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
  border-radius: 8px;
}

#form-status,
#oracao-status {
  margin-top: 10px;
  font-weight: bold;
}

/* Vídeo ao vivo */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin: 20px auto;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Doações */
.donation-section {
  text-align: center;
  margin: 40px auto;
  max-width: 600px;
}
.donation-section h2 {
  color: #333;
  margin-bottom: 10px;
}
.donation-section p {
  margin-bottom: 20px;
}
.donation-section img {
  max-width: 200px;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-bottom: 20px;
}
.donation-section .btn {
  display: inline-block;
  background: #4CAF50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}
.donation-section .btn:hover {
  background: #45a049;
}

/*RESPONSIVIDADE */
@media (max-width:768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--cor-primaria);
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 1rem;
    border-radius: 8px;
    width: 200px;
  }
  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
}
