/* =================================== */
/* MISSÃO GLOBAL — DESIGN CLARO         */
/* =================================== */

/* Fonte do título nos banners de igreja (ex: "LAGOINHA JAPÃO").
   Regular = font-normal (span "LAGOINHA"), Ultrabold = font-extrabold (span com o nome da igreja). */
@font-face {
  font-family: 'Monument Extended';
  src: url('fonts/MonumentExtended-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Monument Extended';
  src: url('fonts/MonumentExtended-Ultrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
.font-monument {
  font-family: 'Monument Extended', 'Inter', sans-serif;
}

html, body {
  background: #ffffff;
}

body {
  min-height: 100vh;
}
/* faixas de ponta a ponta (números, mapa, vídeos) passam da largura da página: sem rolagem lateral */
html, body { overflow-x: hidden; }

/* Tailwind's .font-sans utility (aplicada no <body> de toda página) tem mais
   especificidade que um simples "body{}", por isso o !important aqui.
   Elementos com .font-mono (ex: chave PIX) continuam com a fonte deles,
   já que não são alcançados por este seletor. */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 400 !important;
}
h1, h2, h3, h4, h5, h6,
.site-cta, .nav-link, .site-logo {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700 !important;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.3); }

/* Container principal do site: tudo (topo, banner, menu, conteúdo) fica dentro de 1190px */
.site-shell {
  max-width: 1190px;
  margin: 0 auto;
  background: #ffffff;
}

/* Cards "glass" — versão clara, limpa */
.glass-effect {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px 0 rgba(17, 24, 39, 0.06);
}

/* =================================== */
/* TOPO (logo + CTA + busca + hambúrguer) */
/* =================================== */

.site-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.site-topbar-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.site-topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.site-logo .logo-mobile {
  display: none;
}

.site-cta-mobile {
  display: none;
}

.site-cta {
  white-space: nowrap;
  background: #69b41e;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background-color 0.2s, transform 0.2s;
}
.site-cta:hover {
  background: #5a9a1a;
  transform: translateY(-1px);
}

.btn-contribua {
  background: #69b41e;
  color: #ffffff;
}
.btn-contribua:hover {
  background: #5a9a1a;
}

.site-search {
  position: relative;
  width: 100%;
  max-width: 280px;
}
.site-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.85rem;
  pointer-events: none;
}
.site-search-input {
  width: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 9px 14px 9px 34px;
  font-size: 0.9rem;
  color: #111827;
}
.site-search-input:focus {
  outline: 2px solid #eab308;
  outline-offset: -1px;
  background: #ffffff;
}
.site-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: 80vw;
  max-height: 420px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
  z-index: 50;
}
.site-search-results.open { display: block; }
.site-search-result {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #111827;
}
.site-search-result:last-child { border-bottom: none; }
.site-search-result:hover { background: #fafaf5; }
.site-search-result .title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
}
.site-search-result .snippet {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-search-result mark {
  background: #fde68a;
  color: inherit;
  border-radius: 2px;
}
.site-search-empty {
  padding: 14px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

.site-hamburger {
  display: none;
  font-size: 1.4rem;
  color: #111827;
  padding: 6px;
}

.site-nav-overlay {
  display: none;
}

/* =================================== */
/* MENU HORIZONTAL                      */
/* =================================== */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}

/* Busca embutida no topo do painel de menu — só usada/visível no mobile
   (ver .site-nav-search dentro do @media abaixo); no desktop, a busca
   já aparece separada, no topo (.site-search). */
.site-nav-search {
  display: none;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 16px 2px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #374151;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover {
  color: #b45309;
}
.nav-link.active {
  color: #b45309;
  font-weight: 700;
  border-bottom-color: #eab308;
}

/* =================================== */
/* BANNER (só na página inicial)        */
/* =================================== */

.site-banner {
  width: 100%;
  height: 250px;
}

/* Slides empilhados no mesmo lugar, trocando por dissolução (crossfade) */
#slideshow-container {
  position: relative;
}
#slideshow-container .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}
#slideshow-container .slide.active {
  opacity: 1;
  z-index: 1;
}
/* Zoom lento (Ken Burns), enquanto o slide está parado.
   Feito só com transition (sem @keyframes): ao ativar, a imagem transiciona
   devagar (5s) até 1.08; ao desativar, transiciona de volta suavemente (1s),
   junto com o fade de saída — sem "saltar" pro tamanho original. */
#slideshow-container .slide img {
  transform-origin: center center;
  transform: scale(1);
  transition: transform 1s ease-in-out;
}
#slideshow-container .slide.active img {
  transform: scale(1.08);
  transition: transform 5s linear;
}

/* =================================== */
/* CONTEÚDO PRINCIPAL                   */
/* =================================== */

.site-main {
  padding: 24px 16px 48px;
}

/* Lightbox da galeria de fotos */
#image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* =================================== */
/* MOBILE                               */
/* =================================== */

@media (max-width: 767px) {
  .site-topbar {
    display: flex;
    justify-content: space-between;
    background: #000000;
    border-bottom-color: #000000;
  }
  .site-cta {
    display: none;
  }
  .site-hamburger {
    display: block;
    color: #ffffff;
  }
  .site-logo .logo-desktop {
    display: none;
  }
  .site-logo .logo-mobile {
    display: block;
  }

  /* Busca do topo (desktop) some no mobile — a busca mobile fica dentro do painel de menu */
  .site-search {
    display: none;
  }
  .site-cta-mobile {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: #69b41e;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 9px 16px;
    border-radius: 999px;
  }

  /* Painel de menu: desliza da direita, sem tomar a tela inteira */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 20px;
    border-bottom: none;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 70;
  }
  .site-nav.open {
    transform: translateX(0);
  }

  /* Fundo escurecido atrás do painel, enquanto o menu está aberto */
  .site-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 65;
  }
  .site-nav-overlay.open {
    background: rgba(0, 0, 0, 0.55);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav-search {
    display: block;
    position: relative;
    margin-bottom: 20px;
  }
  .site-nav-search .site-search-input {
    width: 100%;
  }

  .nav-link {
    padding: 12px 4px;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
  }
  .nav-link.active {
    border-bottom-color: #f1f5f9;
    border-left-color: #eab308;
  }
}

/* =================================== */
/* NOTÍCIAS                             */
/* =================================== */

/* Bloco de notícia em destaque (home): foto grande + título/descrição,
   e abaixo 2 notícias secundárias em linha (só foto pequena + título). */
.news-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .news-feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
  }
}

.news-feature-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}
.news-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-feature-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-feature-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .news-feature-title {
    font-size: 1.3rem;
  }
}

.news-feature-desc {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 28px;
}
@media (max-width: 767px) {
  /* No mobile, a notícia principal mostra só o título, sem descrição */
  .news-feature-desc {
    display: none;
  }
}

.news-feature-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: auto;
}
.news-feature-secondary-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex: 1 1 200px;
  min-width: 0;
}
.news-feature-secondary-item .news-feature-secondary-photo {
  width: 110px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f3f4f6;
}
.news-feature-secondary-item .news-feature-secondary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-feature-secondary-item .news-feature-secondary-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  color: #111827;
}

.news-divider {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 32px 0 0;
}

/* Cards usados na listagem completa (noticias.html) */
.news-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px 0 rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px 0 rgba(17, 24, 39, 0.1);
}

.news-card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}
.news-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-meta {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  margin-bottom: 6px;
}

/* Grid da página noticias.html (listagem completa) */
.news-listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .news-listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .news-listing-grid { grid-template-columns: repeat(3, 1fr); }
}
.news-listing-grid .news-card-body {
  padding: 18px;
}
.news-listing-grid .news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.3;
}
.news-listing-grid .news-card-desc {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.5;
}
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

/* =================================== */
/* GRADE DE VÍDEOS (Até os Confins)     */
/* =================================== */

.video-listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .video-listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .video-listing-grid { grid-template-columns: repeat(3, 1fr); }
}

.video-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px 0 rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px 0 rgba(17, 24, 39, 0.1);
}
/* Miniatura do YouTube com botão de "play" sobreposto — o vídeo em si só
   toca dentro da página própria dele (video-slug.html), não na listagem. */
.video-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.video-card:hover .video-card-frame img {
  transform: scale(1.05);
}
.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.video-card-play i {
  margin-left: 4px;
}
.video-card:hover .video-card-play {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.08);
}
.video-card-body {
  padding: 20px;
}
.video-card-meta {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  margin-bottom: 6px;
}
.video-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.3;
}
.video-card-desc {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* =================================== */
/* GALERIA DE FOTOS (site inteiro)      */
/* =================================== */

/* Mosaico gerado a partir das fotos publicadas nas igrejas e nas notícias
   vinculadas a uma igreja (ver galeria-fotos.js). Cada peça mantém a
   proporção 3:4 já padronizada nas galerias do site. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.gallery-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.2);
}
.gallery-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-tile:hover .gallery-tile-img {
  transform: scale(1.06);
}
/* Legenda sempre visível (não só no hover) — essencial pro mobile, que não tem hover */
.gallery-tile-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
/* flex-basis 0 (não "auto") é o que garante que a legenda sempre ceda espaço
   pro link caber do lado, em vez de "pedir" seu tamanho natural e empurrar
   o link pra quebrar linha — daí o truncamento com reticências quando precisa. */
.gallery-tile-caption {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
}
.gallery-tile-link {
  flex-shrink: 0;
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.gallery-tile-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.gallery-tile-link i {
  font-size: 0.62rem;
}

/* Telas estreitas: o card fica pequeno demais pro texto do link caber do lado
   da legenda — vira um botão circular só com a seta, sempre na mesma linha
   (a legenda já trunca com reticências pela regra base acima, em qualquer tamanho). */
@media (max-width: 480px) {
  .gallery-tile-link-text {
    display: none;
  }
  .gallery-tile-link {
    width: 26px;
    height: 26px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }
}

/* =================================== */
/* AVISO INFORMATIVO                    */
/* =================================== */

.info-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fef9ec;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 16px;
  color: #92620a;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.info-note i {
  margin-top: 2px;
  flex-shrink: 0;
}

/* =================================== */
/* RODAPÉ                               */
/* =================================== */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 16px 32px;
  border-top: 1px solid #e5e7eb;
  margin-top: 32px;
}
.site-footer-logo {
  height: 40px;
  width: auto;
}
.site-footer-copy {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
}

/* =================================== */
/* COMPARTILHAR                         */
/* =================================== */

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 24px;
}
.share-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
  margin-right: 2px;
}
.share-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #374151;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
}
.share-btn.share-whatsapp:hover { background: #25D366; color: #fff; }
.share-btn.share-facebook:hover { background: #1877F2; color: #fff; }
.share-btn.share-x:hover { background: #000000; color: #fff; }
.share-btn.share-copy:hover { background: #eab308; color: #1a1a1a; }

/* =================================== */
/* VISÃO GERAL (mapa + números)         */
/* =================================== */

/* Celular/tablet: mapa em cima e um cartão por continente embaixo.
   Desktop largo (>=1100px): os cartões ficam sobre o mapa, junto de cada continente. */
/* Faixa escura de ponta a ponta da tela, na mesma cor do fundo da imagem (#08111a): as laterais do mapa não ficam brancas */
.vg-mapa {
  position: relative;
  container-type: inline-size;
  background: #08111a;
  overflow: hidden;
  box-shadow: 0 0 0 100vmax #08111a;
  clip-path: inset(0 -100vmax);
}
.vg-img { display: block; width: 100%; height: auto; }
.vg-boxes { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px; }
@media (min-width: 560px) { .vg-boxes { grid-template-columns: 1fr 1fr; } }

.vg-box {
  --c: #888; --ct: #ffffff;
  background: rgba(8, 10, 16, 0.86);
  color: #f3f4f6;
  border: 1px solid var(--c);
  border-radius: 10px;
  overflow: hidden;
}
.vg-nome {
  margin: 0; padding: 8px 12px;
  background: var(--c); color: var(--ct);
  font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
}
.vg-paises { margin: 0; padding: 8px 12px 2px; color: #d1d5db; font-size: 0.82rem; line-height: 1.35; }
.vg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; padding: 8px 12px 12px; }
.vg-stat b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.1; color: var(--c); }
.vg-stat span { display: block; font-size: 0.7rem; color: #cbd5e1; line-height: 1.2; }

.vg-ca { --c: #2878E0; --x: 6; --y: 12.5; --w: 19; }
.vg-eu { --c: #A855F7; --x: 39.4; --y: 4.5; }
.vg-as { --c: #EF3038; --x: 70; --y: 11; }
.vg-sa { --c: #16A34A; --x: 12.5; --y: 35.15; }
.vg-af { --c: #FACC15; --x: 43; --y: 35; --ct: #1a1405; }
.vg-oc { --c: #F97316; --x: 77; --y: 36.5; --ct: #1a1405; }

@media (min-width: 1100px) {
  .vg-boxes { display: block; padding: 0; position: absolute; inset: 0; pointer-events: none; }
  /* tudo em cqw sobre a arte de 1920x1080 (1cqw = 19,2px da arte); max() mantém o texto legível em telas menores */
  .vg-box {
    position: absolute; left: calc(var(--x) * 1cqw); top: calc(var(--y) * 1cqw);
    width: max(calc(var(--w, 16.4) * 1cqw), calc(var(--w, 16.4) * 12.7px)); border-radius: 0.4cqw;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    background: rgba(8, 10, 16, 0.75);
  }
  .vg-nome { padding: max(0.7cqw, 8px) max(0.8cqw, 10px); font-size: max(0.95cqw, 11.5px); white-space: nowrap; }
  .vg-paises { padding: max(0.8cqw, 9px) max(0.8cqw, 10px) max(0.25cqw, 3px); line-height: 1.5; font-size: max(1.05cqw, 13.5px); }
  .vg-stats { grid-template-columns: repeat(3, minmax(min-content, 1fr)); padding: max(0.6cqw, 7px) max(0.8cqw, 10px) max(0.9cqw, 10px); gap: max(0.7cqw, 8px) max(0.5cqw, 6px); }
  .vg-stat b { font-size: max(1.5cqw, 19px); }
  .vg-stat span { margin-top: 0.2cqw; line-height: 1.25; font-size: max(0.95cqw, 12px); }
}

/* =================================== */
/* LIQUID GLASS (tema claro)            */
/* =================================== */

/* Fundo com manchas de cor, para o vidro ter o que "refratar". As cores vêm da marca (amarelo, verde). */
:root {
  --lg-fill: rgba(255, 255, 255, 0.52);
  --lg-fill-strong: rgba(255, 255, 255, 0.74);
  --lg-edge: rgba(255, 255, 255, 0.78);
  --lg-blur: blur(18px) saturate(1.6);
  --lg-shadow: 0 10px 32px rgba(31, 41, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.28);
}
html {
  background:
    radial-gradient(900px 620px at 6% 0%, rgba(250, 204, 21, 0.40), transparent 62%),
    radial-gradient(820px 620px at 96% 8%, rgba(105, 180, 30, 0.24), transparent 62%),
    radial-gradient(920px 700px at 72% 100%, rgba(96, 165, 250, 0.30), transparent 62%),
    radial-gradient(700px 520px at 0% 88%, rgba(244, 114, 182, 0.16), transparent 62%),
    linear-gradient(180deg, #faf8f1, #eef2f7);
  background-attachment: fixed;
}
html, body, body.bg-white { background-color: transparent; }
body.bg-white { background: transparent !important; }
.site-shell { background: transparent; }

/* Superfícies de vidro */
.glass-effect, .news-card, .video-card, .site-footer, .site-search-results, .share-btn {
  background: var(--lg-fill);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow);
}
.news-card:hover, .video-card:hover {
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.glass-effect { border-radius: 22px; }
.news-card, .video-card { border-radius: 20px; }

/* Topo e menu: painéis de vidro flutuantes */
.site-topbar {
  margin: 12px 12px 0;
  border: 1px solid var(--lg-edge);
  border-radius: 22px;
  background: var(--lg-fill);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-shadow);
}
.site-banner {
  width: auto;
  margin: 12px 12px 0;
  border-radius: 22px;
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-shadow);
}
.site-search-input {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--lg-edge);
  box-shadow: inset 0 1px 2px rgba(31, 41, 55, 0.06);
}
.site-search-input:focus { background: rgba(255, 255, 255, 0.85); }
.site-search-results { background: var(--lg-fill-strong); border-radius: 16px; }
.site-search-result:hover { background: rgba(255, 255, 255, 0.6); }

@media (min-width: 768px) {
  .site-nav {
    margin: 12px 12px 0;
    padding: 6px;
    gap: 4px;
    border: 1px solid var(--lg-edge);
    border-radius: 999px;
    background: var(--lg-fill);
    -webkit-backdrop-filter: var(--lg-blur);
    backdrop-filter: var(--lg-blur);
    box-shadow: var(--lg-shadow);
  }
  .nav-link {
    padding: 10px 16px;
    border-bottom: none;
    border-radius: 999px;
  }
  .nav-link:hover { background: rgba(255, 255, 255, 0.6); }
  .nav-link.active {
    background: linear-gradient(180deg, rgba(253, 224, 71, 0.85), rgba(250, 204, 21, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(234, 179, 8, 0.28);
    color: #7c4a03;
  }
}

/* Botões verdes: vidro tingido, com brilho no topo */
.site-cta, .btn-contribua, .site-cta-mobile {
  background: linear-gradient(180deg, rgba(125, 205, 45, 0.96), rgba(88, 158, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px rgba(88, 158, 20, 0.3);
}
.site-cta:hover, .btn-contribua:hover {
  background: linear-gradient(180deg, rgba(135, 215, 55, 1), rgba(98, 168, 28, 1));
}
.site-main .bg-green-600, .site-main .bg-amber-600, .site-main .bg-yellow-500 {
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px rgba(31, 41, 55, 0.16);
}

/* Caixas internas das páginas (Tailwind bg-white / bg-gray-50) */
.site-main .bg-gray-50, .site-main .bg-white {
  background: rgba(255, 255, 255, 0.5) !important;
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border-color: var(--lg-edge) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Avisos, fotos e rodapé */
.info-note {
  background: rgba(254, 243, 199, 0.55);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  border: 1px solid var(--lg-edge);
  border-radius: 16px;
  box-shadow: var(--lg-shadow);
}
.gallery-tile {
  border: 1px solid var(--lg-edge);
  border-radius: 18px;
  box-shadow: var(--lg-shadow);
}
.news-feature-photo, .news-feature-secondary-photo { border-radius: 16px; }
.news-divider { border-top-color: rgba(255, 255, 255, 0.8); }
.site-footer { margin: 32px 12px 12px; border-radius: 22px; }
.share-btn { background: var(--lg-fill-strong); }
.share-btn:hover { background: var(--lg-fill-strong); }
.share-btn.share-whatsapp:hover { background: #25D366; }
.share-btn.share-facebook:hover { background: #1877F2; }
.share-btn.share-x:hover { background: #000000; }
.share-btn.share-copy:hover { background: #eab308; }

/* Celular: topo em vidro escuro; painel do menu em vidro claro */
@media (max-width: 767px) {
  .site-topbar {
    margin: 8px 8px 0;
    background: rgba(15, 17, 22, 0.78);
    border-color: rgba(255, 255, 255, 0.18);
  }
  .site-banner { margin: 8px 8px 0; border-radius: 18px; }
  .site-nav {
    background: var(--lg-fill-strong);
    -webkit-backdrop-filter: var(--lg-blur);
    backdrop-filter: var(--lg-blur);
    border-left-color: var(--lg-edge);
  }
  .nav-link { border-bottom-color: rgba(31, 41, 55, 0.08); }
  .nav-link.active { border-bottom-color: rgba(31, 41, 55, 0.08); background: rgba(250, 204, 21, 0.25); }
  .site-footer { margin: 24px 8px 8px; }
}

/* Navegadores sem backdrop-filter: vidro quase opaco, para o texto continuar legível */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-effect, .news-card, .video-card, .site-footer, .site-topbar, .site-nav, .info-note { background: rgba(255, 255, 255, 0.92); }
}

/* =================================== */
/* ONDE ESTAMOS (continentes.php)       */
/* =================================== */

/* Cada continente é um painel de vidro com faixa colorida no topo; a cor é a mesma do mapa da Visão Geral */
.cont-lista { display: flex; flex-direction: column; gap: 40px; }
.cont {
  --c: #888; --ct: #ffffff;
  position: relative;
  padding: 0 20px 24px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, white);
  border-radius: 24px;
  overflow: hidden;
  background: color-mix(in srgb, var(--c) 8%, rgba(255, 255, 255, 0.55));
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: 0 14px 38px color-mix(in srgb, var(--c) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.cont-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 -20px 22px;
  padding: 14px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 100%, white 12%), var(--c));
  color: var(--ct);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 14px color-mix(in srgb, var(--c) 35%, transparent);
}
.cont-nome {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
/* Número de igrejas: bem grande, à direita, direto sobre a faixa colorida (sem caixa) */
.cont-qtd {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.cont-qtd b {
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 800 !important;
  letter-spacing: 0;
}
.cont-ca { --c: #2878E0; }
.cont-eu { --c: #A855F7; }
.cont-as { --c: #EF3038; }
.cont-sa { --c: #16A34A; }
.cont-af { --c: #FACC15; --ct: #1a1405; }
@media (max-width: 480px) {
  .cont { padding: 0 12px 18px; }
  .cont-topo { margin: 0 -12px 16px; padding: 14px 16px; }
  .cont-nome { font-size: 1.2rem; }
  .cont-qtd b { font-size: 1.8rem; }
}

/* =================================== */
/* VÍDEOS NA PÁGINA INICIAL             */
/* =================================== */

/* Faixa escura de ponta a ponta da tela (mesmo recurso da faixa do mapa) com os 3 últimos vídeos. */
.video-faixa {
  position: relative;
  padding: 30px 0 34px;
  background: #0e1628;   /* igual ao box-shadow abaixo: sem emenda nas laterais */
  box-shadow: 0 0 0 100vmax #0e1628;
  clip-path: inset(0 -100vmax);
}
.video-faixa[hidden] { display: none; }
.video-faixa-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.video-faixa-topo h3 { margin: 0; color: #ffffff; font-size: 1.6rem; }
.video-faixa-topo a { color: #fcd34d; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.video-faixa-topo a:hover { color: #ffffff; }
.video-teaser-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .video-teaser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* celular: só o último vídeo publicado */
@media (max-width: 767px) { .video-teaser-grid .video-card:nth-child(n+2) { display: none; } }

.video-faixa .video-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.video-faixa .video-card:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.video-faixa .video-card-title { color: #ffffff; }
.video-faixa .video-card-meta { color: #fcd34d; }

/* =================================== */
/* BARRA DE GRANDES NÚMEROS             */
/* =================================== */

/* Faixa amarela de ponta a ponta da tela, com os quatro totais em uma linha: número enorme ao lado de um ícone grande.
   (página inicial e topo da Visão Geral). O fundo é um ::before mais largo que a página, para o degradê não ter emenda. */
.numeros-barra {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 34px 0;
  clip-path: inset(0 -100vmax);
}
.numeros-barra::before {
  content: "";
  position: absolute;
  inset: 0 -100vmax;
  z-index: -1;
  background: linear-gradient(180deg, #fde047 0%, #facc15 55%, #f5b800 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(120, 80, 0, 0.25);
}
.numeros-barra[hidden] { display: none; }
.numero-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 4px 12px;
}
.numero-item + .numero-item { border-left: 2px solid rgba(26, 20, 5, 0.16); }
.numero-icone {
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2.2rem;
  color: #fde047;
  background: linear-gradient(180deg, #2a2108, #1a1405);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 22px rgba(26, 20, 5, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.numero-texto { display: flex; flex-direction: column; min-width: 0; }
.numero-texto b {
  font-size: 4rem;
  line-height: 0.95;
  font-weight: 800 !important;
  color: #1a1405;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.numero-texto span {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(26, 20, 5, 0.78);
  white-space: nowrap;
}
/* telas médias: ainda uma linha, um pouco menor */
@media (max-width: 1100px) {
  .numero-icone { width: 64px; height: 64px; font-size: 1.6rem; }
  .numero-texto b { font-size: 2.8rem; }
  .numero-item { gap: 14px; }
  .numero-texto span { font-size: 0.8rem; letter-spacing: 0.04em; }
}
/* tablet e celular: 2 colunas x 2 linhas */
@media (max-width: 860px) {
  .numeros-barra { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 0; row-gap: 18px; }
  .numero-item:nth-child(odd) { border-left: none; }
  .numero-item:nth-child(n+3) { border-top: 2px solid rgba(26, 20, 5, 0.16); padding-top: 18px; }
  .numero-item { justify-content: flex-start; padding-left: 8px; }
}
@media (max-width: 480px) {
  .numero-icone { width: 48px; height: 48px; font-size: 1.2rem; }
  .numero-texto b { font-size: 2rem; }
  .numero-texto span { font-size: 0.66rem; letter-spacing: 0.02em; }
  .numero-item { gap: 10px; }
}
