/* BVF · continuidade visual e microinterações.
   Linhas de encontro e halos estáticos, sem imagens extras ou animação infinita.
   Conserva os backgrounds fotográficos, o Pix e a identidade oficial. */
:root{
  --bvf-soft-ease:cubic-bezier(.22,.61,.36,1);
  --bvf-light-edge:rgba(188,96,64,.34);
  --bvf-dark-edge:rgba(255,207,176,.40);
}
/* Uma única linha suave no início de cada bloco; nunca cobre conteúdo. */
.statement.section,
.gatherings.section,
.moments.section,
.media.section,
.care.section,
.contribution.section,
.visit.section,
.about-page .about-story,
.about-page .about-values,
.about-page .about-leadership,
.about-page .about-visit {
  position:relative;
}
.bvf-section-seam{
  position:absolute;
  z-index:3;
  pointer-events:none;
  top:0;
  left:clamp(20px,6.3vw,92px);
  right:clamp(20px,6.3vw,92px);
  height:1px;
  background:linear-gradient(90deg,
    transparent 0%,rgba(196,112,82,.16) 17%,
    var(--bvf-light-edge) 38%,
    rgba(232,147,110,.58) 50%,
    var(--bvf-light-edge) 62%,
    rgba(196,112,82,.16) 83%,transparent 100%);
}
.bvf-section-seam::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  width:min(52vw,490px);
  height:54px;
  transform:translateX(-50%);
  background:radial-gradient(ellipse 60% 100% at 50% 0%,
    rgba(204,124,88,.105),transparent 85%);
}
.bvf-section-seam::after{
  content:"";
  position:absolute;
  left:50%;top:-1px;
  width:clamp(32px,4vw,65px);height:2px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,rgba(245,171,132,.79),transparent);
}
/* Nas faixas escuras, a linha é mais quente, sem criar bordas artificiais. */
.gatherings .bvf-section-seam,
.media .bvf-section-seam,
.contribution .bvf-section-seam,
.about-values .bvf-section-seam,
.about-visit .bvf-section-seam{
  --bvf-light-edge:var(--bvf-dark-edge);
}
.gatherings .bvf-section-seam::before,
.media .bvf-section-seam::before,
.contribution .bvf-section-seam::before,
.about-values .bvf-section-seam::before,
.about-visit .bvf-section-seam::before{
  background:radial-gradient(ellipse 60% 100% at 50% 0%,
    rgba(245,164,127,.13),transparent 83%);
}
/* Contornos suaves e profundidade em elementos existentes, sem adicionar cards. */
.media .media-grid{
  overflow:hidden;
  border:1px solid rgba(255,221,201,.13);
  border-radius:12px;
  box-shadow:0 18px 46px rgba(10,6,6,.16);
}
.gatherings .gatherings-content{
  box-shadow:0 16px 42px rgba(12,7,6,.10);
}
.visit.section .visit-photo,
.visit.section .visit-map{
  box-shadow:0 15px 38px rgba(64,33,21,.12);
}
.contribution .contribution-pix{
  box-shadow:0 16px 42px rgba(17,10,9,.13);
}
.about-page .pastor-card{
  box-shadow:0 8px 24px rgba(47,30,24,.045);
}
.about-page .about-value{
  position:relative;
  padding-left:17px;
}
.about-page .about-value::before{
  content:"";position:absolute;left:0;top:3px;
  width:2px;height:34px;border-radius:3px;
  background:linear-gradient(180deg,rgba(255,204,176,.85),rgba(255,204,176,0));
}
/* Navegação e chamadas respiram no hover, mas nada pulsa continuamente. */
@media(hover:hover) and (pointer:fine){
  .button,.header-cta,.about-text-link{
    transition:transform .24s var(--bvf-soft-ease),
      box-shadow .24s ease,background-color .24s ease,border-color .24s ease;
  }
  .button:hover,.header-cta:hover{
    box-shadow:0 11px 25px rgba(106,46,32,.16);
  }
  .visit.section .visit-photo,.visit.section .visit-map,
  .contribution .contribution-pix{
    transition:box-shadow .3s var(--bvf-soft-ease);
  }
  .visit.section .visit-photo:hover,.visit.section .visit-map:hover{
    box-shadow:0 18px 42px rgba(64,33,21,.18);
  }
  .contribution .contribution-pix:hover{
    box-shadow:0 18px 46px rgba(17,10,9,.19);
  }
}
/* Reutiliza IntersectionObserver existente: uma aparição, sem ocultar sem JS. */
@media(prefers-reduced-motion:no-preference){
  @keyframes bvf-seam-reveal{
    from{opacity:.25;transform:scaleX(.85)}
    to{opacity:1;transform:scaleX(1)}
  }
  .bvf-section-seam.bvf-entered{
    animation:bvf-seam-reveal .8s var(--bvf-soft-ease) both;
  }
  .about-value.bvf-entered:nth-child(2),
  .pastor-card.bvf-entered:nth-child(2){
    animation-delay:.10s;
  }
}
@media(max-width:640px){
  .bvf-section-seam{left:20px;right:20px;}
  .bvf-section-seam::before{
    width:min(68vw,260px);height:30px;
    background:radial-gradient(ellipse 65% 100% at 50% 0%,
      rgba(210,131,94,.065),transparent 85%);
  }
  .media .media-grid{border-radius:10px;}
  .about-page .about-value{padding-left:13px;}
  .about-page .about-value::before{height:27px;}
  .visit.section .visit-photo,.visit.section .visit-map{
    box-shadow:0 9px 24px rgba(64,33,21,.09);
  }
}
@media(prefers-reduced-motion:reduce){
  .bvf-section-seam.bvf-entered{animation:none!important;}
  .about-value.bvf-entered:nth-child(2),
  .pastor-card.bvf-entered:nth-child(2){animation-delay:0s!important;}
  .visit.section .visit-photo,.visit.section .visit-map,
  .contribution .contribution-pix,
  .button,.header-cta,.about-text-link{transition:none!important;}
}

/* Navegação contextual: coral sutil na seção presente, sem alterar 'page'. */
.main-nav a[href^="#"][aria-current="location"]{
  color:#ab4834;
  font-weight:800;
}
@media(min-width:1101px){
  .main-nav a[href^="#"][aria-current="location"]::after{
    right:0;
    background:linear-gradient(90deg,#ad4832,#e9a58a);
    box-shadow:0 1px 7px rgba(189,87,55,.17);
  }
}
@media(max-width:1100px){
  .main-nav a[href^="#"][aria-current="location"]{
    background:rgba(188,86,59,.065);
    border-radius:6px;
  }
}
/* Foco visível na mesma paleta do site para navegação por teclado. */
.main-nav a:focus-visible,
.header-cta:focus-visible,
.menu-toggle:focus-visible,
.button:focus-visible,
.footer a:focus-visible,
.about-page .button:focus-visible{
  outline:2px solid #e68c70;
  outline-offset:4px;
}
@media(prefers-reduced-motion:reduce){
  .main-nav a[href^="#"][aria-current="location"]::after{
    transition:none!important;
    box-shadow:none!important;
  }
}
