﻿/* ===== VARIÁVEIS E RESET ===== */
:root {
  --gold: #cabd4d;
  --blue: #002b5a;
  --white: #ffffff;
  --light: #f5f7fa;
  --text: #18324d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, rgba(0, 43, 90, 0.96), rgba(0, 43, 90, 0.86)), url('https://images.unsplash.com/photo-1504052434569-70ad5836ab65?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(0, 43, 90, 0.2);
}

.logomarca {
  height: auto;
  width: 120px;
  margin-left: -40px;
}

.links-navegacao {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-right: -50px;
}

.links-navegacao a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: var(--transition);
}

.links-navegacao a:hover {
  color: var(--gold);
}

.secao-principal {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 8% 70px;
}

.conteudo-principal {
  max-width: 760px;
}

.logo-principal {
  display: block;
  max-width: 250px;
  width: 100%;
  margin: 0 auto 18px;
  height: auto;
}

.apenas-acessibilidade {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.secao-principal p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
}

.grupo-botoes {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.botao {
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
}

.botao-primario {
  background: var(--gold);
  color: var(--blue);
}

.botao-primario:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.botao-contorno {
  border: 2px solid var(--gold);
  color: var(--white);
}

.botao-contorno:hover {
  background: var(--gold);
  color: var(--blue);
}

/* ===== SEÇÕES ===== */
section {
  padding: 80px 8%;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

section.visivel {
  opacity: 1;
  transform: translateY(0);
}

.titulo-secao {
  text-align: center;
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.subtitulo-secao {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 45px;
  color: #4c6279;
  transition: color var(--transition);
}

/* ===== SOBRE ===== */
.sobre {
  background: #eef3f8;
  transition: background var(--transition);
}

.conteudo-sobre {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.box-sobre {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

.box-destaque {
  background: var(--blue);
  color: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.box-destaque h3 {
  color: var(--gold);
  margin-bottom: 14px;
}

/* ===== CARTÕES ===== */
.cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.cartao {
  background: var(--white);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cartao:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.cartao h3 {
  margin-bottom: 10px;
  color: var(--blue);
}

.cartao-jesus {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--blue) !important;
  color: var(--white);
  border-top: 5px solid var(--gold);
}

.cartao-jesus h3 {
  color: var(--gold) !important;
}

.cartao-jesus p {
  color: var(--white) !important;
}

/* ===== ABAS ===== */
.abas {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.aba {
  padding: 12px 24px;
  background: var(--light);
  border: 2px solid var(--blue);
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  color: var(--blue);
  transition: var(--transition);
  user-select: none;
}

.aba:hover, .aba.ativa {
  background: var(--blue);
  color: var(--white);
}

.conteudo-aba {
  display: none;
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: background var(--transition);
}

.conteudo-aba.ativo {
  display: block;
}

.conteudo-aba h3 {
  color: var(--blue);
  margin-bottom: 12px;
}

/* ===== CONTATO ===== */
.contato-wrapper {
  display: grid;
  gap: 24px;
}

.cartao-contato {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

.largura-total {
  max-width: 600px;
  margin: 0 auto;
}

.cartao-contato h3 {
  color: var(--blue);
  margin-bottom: 20px;
  text-align: center;
}

.links-contato {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-contato {
  display: block;
  padding: 15px 20px;
  background: var(--light);
  border-radius: 10px;
  text-decoration: none;
  color: var(--blue);
  font-weight: bold;
  transition: var(--transition);
  text-align: center;
}

.link-contato:hover {
  background: var(--gold);
  color: var(--blue);
  transform: translateY(-2px);
}

.localizacao {
  background: var(--light);
  color: var(--blue);
  font-weight: bold;
  text-align: center;
  padding: 15px 20px;
  border-radius: 10px;
  transition: background var(--transition);
}

.localizacao a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.localizacao:hover {
  background: var(--gold);
}

.nota-contato {
  margin-top: 20px;
  text-align: center;
  color: #4c6279;
  font-style: italic;
}

/* ===== VERSÍCULO ===== */
.versiculo {
  margin-top: 12px;
  color: var(--gold);
  font-style: italic;
  text-align: center;
  font-weight: bold;
  font-size: 0.95em;
}

.cartao-jesus .versiculo {
  color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
  background: #001f45;
  color: #f8f9fb;
  border-top: 3px solid var(--gold);
  padding: 32px 8%;
}

.conteudo-rodape {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.conteudo-rodape p {
  margin: 0;
  color: #ebeef6;
}

.creditos-rodape {
  font-size: 0.85rem;
  color: #c9d4df;
}

/* ===== MENU MOBILE ===== */
#botao-menu {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.7rem;
  cursor: pointer;
}

/* ===== GALERIA ===== */
.filtros-galeria {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filtro-btn {
  padding: 10px 24px;
  background: var(--light);
  border: 2px solid var(--gold);
  color: var(--blue);
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.filtro-btn:hover, .filtro-btn.ativo {
  background: var(--gold);
  color: var(--blue);
  box-shadow: 0 5px 15px rgba(202, 189, 77, 0.3);
}

.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.foto-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  background: #e0e8f0;
  min-height: 220px;
}

.foto-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.foto-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition);
  display: block;
}

.foto-item:hover img {
  transform: scale(1.06);
}

.foto-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 43, 90, 0.9), transparent);
  padding: 20px;
  color: var(--white);
  transform: translateY(100%);
  transition: transform var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.foto-overlay p {
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

.foto-item:hover .foto-overlay {
  transform: translateY(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
}

.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-legenda {
  color: var(--white);
  font-weight: bold;
  font-size: 1rem;
  z-index: 1001;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.lightbox-fechar {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-fechar:hover {
  background: var(--gold);
  color: var(--blue);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--gold);
  color: var(--blue);
}

.lightbox-anterior { left: 16px; }
.lightbox-proximo { right: 16px; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 850px) {
  .conteudo-sobre {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 5%;
  }

  .logomarca {
    width: 100px;
    margin-left: 0px;
  }
  
  #botao-menu {
    display: block;
  }

  .links-navegacao {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--blue);
    flex-direction: column;
    padding: 20px;
    margin: 0;
    text-align: center;
  }

  .links-navegacao.show {
    display: flex;
  }

  .cartoes {
    grid-template-columns: 1fr;
  }
}
