/* ============================================================
   Assembleia de Deus em Assis Brasil — Ministério Rio Branco
   Design tokens
   ============================================================ */
:root{
  --navy-950: #050f1e;
  --navy-900: #0a1e38;
  --navy-800: #122a4a;
  --navy-700: #1c3a5e;
  --white: #ffffff;
  --off-white: #f6f5f1;
  --ink-muted: #8b96a8;
  --ink-muted-light: #b9c2d1;
  --gold: #c6a24d;
  --gold-light: #e8d18f;
  --gold-deep: #9c7c2e;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 20px 50px -20px rgba(5,15,30,.35);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a{ text-decoration: none; }
img{ max-width: 100%; display:block; }

::selection{ background: var(--gold-light); color: var(--navy-950); }

/* Foco visível para acessibilidade */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior: auto; }
}

.text-gold{ color: var(--gold); }

/* ============================================================
   Botões
   ============================================================ */
.btn{
  border-radius: 999px;
  padding: .75rem 1.6rem;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-gold{
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  color: var(--navy-950);
  box-shadow: 0 10px 25px -8px rgba(198,162,77,.55);
}
.btn-gold:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(198,162,77,.65);
  color: var(--navy-950);
}
.btn-gold-outline{
  background: transparent;
  border-color: rgba(198,162,77,.55);
  color: var(--gold-light);
}
.btn-gold-outline:hover{
  background: rgba(198,162,77,.12);
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn-ghost{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover{ background: rgba(255,255,255,.16); color: var(--white); }
.btn-ghost i{ margin-right: .4rem; }

.link-gold{
  color: var(--navy-900);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.link-gold:hover{ color: var(--gold-deep); }

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5,15,30,.65);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(198,162,77,.18);
}

.brand{ display: flex; align-items: center; gap: .7rem; }
.brand-mark{
  width: 44px; height: 44px;
  border: 1px solid rgba(198,162,77,.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong{ color: var(--white); font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.brand-text em{ color: var(--gold-light); font-style: normal; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }

.navbar-nav .nav-link{
  color: var(--ink-muted-light);
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem 1rem !important;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active{ color: var(--white); }
.navbar-nav .nav-link.active::after{
  content:"";
  position:absolute; left: 1rem; right: 1rem; bottom: .1rem;
  height: 2px; background: var(--gold);
  border-radius: 2px;
}

.navbar-toggler{
  border: none; background: transparent; padding: .4rem;
  display: flex; flex-direction: column; gap: 5px;
}
.navbar-toggler span{
  width: 24px; height: 2px; background: var(--gold-light); border-radius: 2px; transition: .25s;
}
.navbar-toggler:focus{ box-shadow: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media{ position: absolute; inset: 0; }
.hero-media img{
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero-overlay{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,15,30,.55) 0%, rgba(5,15,30,.78) 55%, rgba(5,15,30,.96) 100%),
    linear-gradient(90deg, rgba(5,15,30,.85) 0%, rgba(5,15,30,.35) 60%);
}
.hero-vignette{
  position: absolute; inset: 0;
  box-shadow: inset 0 0 180px 40px rgba(5,15,30,.65);
}

.hero-content{ max-width: 700px; padding: 7rem 0 4rem; }

.eyebrow{
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(198,162,77,.4);
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  background: rgba(198,162,77,.08);
}

.hero h1{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}
.hero h1 span{ color: var(--gold-light); font-style: italic; font-weight: 500; }

.lead-text{
  font-size: 1.08rem;
  color: var(--ink-muted-light);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.hero-actions{ display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats{ display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.hero-stats > div:not(.divider){ display: flex; flex-direction: column; }
.hero-stats strong{ font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); }
.hero-stats span{ font-size: .78rem; color: var(--ink-muted-light); text-transform: uppercase; letter-spacing: .05em; }
.hero-stats .divider{ width: 1px; height: 34px; background: rgba(255,255,255,.18); }

.scroll-cue{
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
}
.scroll-cue span{
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold-light); border-radius: 2px;
  animation: scrollCue 1.8s ease infinite;
}
@keyframes scrollCue{
  0%{ opacity: 1; top: 8px; }
  70%{ opacity: 0; top: 22px; }
  100%{ opacity: 0; top: 22px; }
}

/* Divisor em arco — elemento assinatura, remete às janelas do templo */
.arch-divider{ line-height: 0; margin-top: -2px; position: relative; z-index: 2; }
.arch-divider svg{ width: 100%; height: 44px; display: block; }
.arch-divider path{ fill: var(--white); }

/* ============================================================
   Sections genéricas
   ============================================================ */
.section{ padding: 6rem 0; }
.section-tint{ background: var(--off-white); }
.section-dark{ background: var(--navy-950); color: var(--white); }

.section-label{
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: .8rem;
}
.section-label-light{ color: var(--gold-light); }

.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 1.2rem;
  color: var(--navy-950);
}
.section-title-light{ color: var(--white); }

.section-text{ color: #566072; font-size: 1.02rem; line-height: 1.75; }
.section-text-light{ color: var(--ink-muted-light); }

/* ============================================================
   Sobre
   ============================================================ */
.pillar i{ font-size: 1.4rem; color: var(--gold-deep); margin-bottom: .6rem; display: block; }
.pillar h6{ font-family: var(--font-display); font-weight: 700; margin-bottom: .3rem; }
.pillar p{ font-size: .88rem; color: #6b7688; margin: 0; }

.sobre-media{ position: relative; }
.sobre-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/6;
  object-fit: cover;
}
.sobre-card{
  position: absolute;
  left: -1.2rem; bottom: -1.6rem;
  background: var(--navy-950);
  color: var(--white);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  max-width: 300px;
  border: 1px solid rgba(198,162,77,.3);
  box-shadow: var(--shadow-soft);
}
.sobre-card i{ color: var(--gold); font-size: 1.2rem; }
.sobre-card p{ font-family: var(--font-display); font-style: italic; margin: .5rem 0; line-height: 1.5; }
.sobre-card span{ font-size: .78rem; color: var(--gold-light); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 991px){
  .sobre-card{ position: static; margin-top: 1rem; max-width: none; }
}

/* ============================================================
   Cultos
   ============================================================ */
.culto-card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(198,162,77,.2);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  height: 100%;
  transition: transform .25s ease, border-color .25s ease;
}
.culto-card:hover{ transform: translateY(-6px); border-color: rgba(198,162,77,.55); }
.culto-dia{
  display: inline-block;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(198,162,77,.4);
  padding-bottom: .4rem;
  margin-bottom: .9rem;
}
.culto-card h5{ font-family: var(--font-display); color: var(--white); margin-bottom: .5rem; }
.culto-hora{ color: var(--gold-light); font-size: .88rem; margin-bottom: .1rem; }
.culto-hora i{ margin-right: .35rem; }
.culto-local{ color: var(--gold-light); font-size: .88rem; margin-bottom: .6rem; }
.culto-local i{ margin-right: .35rem; }
.culto-desc{ color: var(--ink-muted-light); font-size: .88rem; margin: 0; line-height: 1.6; }

/* ============================================================
   Eventos
   ============================================================ */
.evento-card{
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #eceef2;
  box-shadow: var(--shadow-soft);
  height: 100%;
  position: relative;
  transition: transform .25s ease;
}
.evento-card:hover{ transform: translateY(-6px); }
.evento-card img{ height: 190px; width: 100%; object-fit: cover; }
.evento-card video{ width: 100%; height: 50px; object-fit: cover; display: block; }
.evento-media{
    position: relative;
    width: 100%;
    height: 190px; /* mesma altura que a imagem tinha */
    overflow: hidden;
}

.evento-media img,
.evento-media video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evento-data{
  position: absolute; top: 14px; left: 14px;
  background: var(--navy-950);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: .4rem .7rem;
  text-align: center;
  font-size: .72rem;
  text-transform: uppercase;
  line-height: 1.1;
  z-index: 10;
}
.evento-data span{ display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-light); }
.evento-body{ padding: 1.3rem 1.4rem 1.5rem; }
.evento-tag{
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold-deep); font-weight: 700;
}
.evento-body h5{ font-family: var(--font-display); margin: .5rem 0 .5rem; }
.evento-body p{ font-size: .85rem; color: #6b7688; margin: 0; }
.evento-body p i{ margin-right: .3rem; color: var(--gold-deep); }

/* ============================================================
   Galeria
   ============================================================ */
.galeria-item{
  position: relative;
  display: block;
  width: 100%;
  padding: 0; border: none;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
}
.galeria-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galeria-item:hover img{ transform: scale(1.08); }
.galeria-zoom{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,15,30,0);
  color: transparent;
  transition: all .25s ease;
  font-size: 1.4rem;
}
.galeria-item:hover .galeria-zoom{
  background: rgba(5,15,30,.45);
  color: var(--gold-light);
}

#fotoModal .modal-content{ background: var(--navy-950); border: 1px solid rgba(198,162,77,.3); overflow: hidden; }
#fotoModal .btn-close{ position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-legenda{ color: var(--gold-light); text-align: center; padding: 1rem; margin: 0; font-family: var(--font-display); font-style: italic; }

/* Modal 1 — carrossel rápido do álbum */
#albumCarrosselModal .modal-content{
  background: var(--navy-950);
  border: 1px solid rgba(198,162,77,.3);
  overflow: hidden;
}
#albumCarrosselModal .btn-close{ position: absolute; top: 14px; right: 14px; z-index: 3; }
#carrosselAlbum{ background: #000; }
#carrosselAlbum .carousel-item img{
  width: 100%;
  height: min(60vh, 520px);
  object-fit: contain;
  background: #000;
}
#carrosselAlbum .carousel-control-prev,
#carrosselAlbum .carousel-control-next{ width: 10%; }
.album-carrossel-footer{
  padding: 1.4rem 1.5rem 1.6rem;
  text-align: center;
  border-top: 1px solid rgba(198,162,77,.2);
}
.album-carrossel-footer .modal-legenda{ padding: 0 0 .2rem; }

/* Modal 2 — grade com todas as fotos do álbum */
.album-completo-content{
  background: var(--navy-950);
  border: 1px solid rgba(198,162,77,.3);
}
.album-completo-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(198,162,77,.2);
}
.album-completo-header h5{
  font-family: var(--font-display);
  color: var(--gold-light);
  font-style: italic;
}
#albumCompletoModal .modal-body{ padding: 1.5rem; max-height: 70vh; overflow-y: auto; }
#albumCompletoGrid .galeria-item{ aspect-ratio: 1/1; }

/* ============================================================
   Ofertas
   ============================================================ */
.section-ofertar{ background: var(--off-white); }
.ofertar-box{
  background: var(--navy-950);
  color: var(--white);
  border-radius: 22px;
  padding: 3.2rem;
  border: 1px solid rgba(198,162,77,.25);
  position: relative;
  overflow: hidden;
}
.ofertar-box::before{
  content:"";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 10%, rgba(198,162,77,.15), transparent 70%);
}
.ofertar-box .section-title{ color: var(--white); }
.ofertar-box .section-text{ color: var(--ink-muted-light); }

.oferta-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(198,162,77,.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  position: relative; z-index: 1;
}
.oferta-card i{ font-size: 1.6rem; color: var(--gold); }
.oferta-card h6{ font-family: var(--font-display); margin: .6rem 0 .4rem; }
.oferta-card p{ font-size: .82rem; color: var(--ink-muted-light); margin-bottom: 1rem; }

@media (max-width: 767px){
  .ofertar-box{ padding: 2rem 1.4rem; }
}

/* ============================================================
   Contato
   ============================================================ */
.contato-lista{ list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.contato-lista li{ color: var(--ink-muted-light); font-size: .95rem; }
.contato-lista i{ color: var(--gold); margin-right: .6rem; width: 18px; text-align: center; }

.contato-form .form-label{ color: var(--ink-muted-light); font-size: .85rem; margin-bottom: .35rem; }
.contato-form .form-control{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  border-radius: 10px;
  padding: .7rem 1rem;
}
.contato-form .form-control:focus{
  background: rgba(255,255,255,.08);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,162,77,.18);
  color: var(--white);
}
.contato-form .form-control::placeholder{ color: var(--ink-muted); }
.form-feedback{ font-size: .85rem; color: var(--gold-light); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  background: var(--navy-950);
  color: var(--ink-muted-light);
  padding: 2.4rem 0;
  border-top: 1px solid rgba(198,162,77,.18);
}
.brand-footer .brand-mark{ width: 38px; height: 38px; font-size: .85rem; }
.copy{ font-size: .82rem; }

/* ============================================================
   Responsivo — menu mobile
   ============================================================ */
@media (max-width: 991.98px){
  .navbar-collapse{
    background: var(--navy-950);
    border: 1px solid rgba(198,162,77,.2);
    border-radius: 14px;
    margin-top: 1rem;
    padding: 1rem 1.2rem;
  }
  .navbar-nav .nav-link{ padding: .7rem 0 !important; border-bottom: 1px solid rgba(255,255,255,.06); }
  .navbar-nav .nav-item:last-child .nav-link{ border-bottom: none; }
}