/* ==========================================================================
   Juntos por Ti Campos
   Identidade da igreja: preto e o azul do logo, Montserrat.
   ========================================================================== */

:root {
  --ink: #1D1D1D;
  --ink-2: #262626;
  --paper: #F7F8FA;
  --paper-2: #ECEEF3;
  --navy: #1D2137;

  /* Azul do logo (#1D2137) clareado pra aparecer sobre fundo escuro */
  --azul: #A6AFDD;
  /* Mesmo tom, médio: destaque sobre fundo claro */
  --azul-deep: #434E89;

  --on-dark: #F4F5F8;
  --on-dark-70: rgba(244, 245, 248, 0.7);
  --on-dark-45: rgba(244, 245, 248, 0.45);
  --on-dark-12: rgba(244, 245, 248, 0.12);
  --on-light-70: rgba(29, 33, 55, 0.72);
  --on-light-12: rgba(29, 33, 55, 0.12);

  --font: "Montserrat", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 160px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
blockquote { margin: 0; }
cite { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Tipografia base ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azul);
}

.eyebrow--dark { color: var(--azul-deep); }

.h2 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.h2--light { color: var(--on-dark); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--azul { background: var(--azul); color: var(--ink); }
.btn--azul:hover { background: #C2C8EB; }

.btn--ghost { border: 1px solid var(--on-dark-45); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--azul); color: var(--azul); }

.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 15px; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header.is-scrolled {
  background: rgba(29, 29, 29, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--on-dark-12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo img { width: 168px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-70);
}

.nav > a:not(.btn):hover { color: var(--on-dark); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--on-dark);
  transition: transform 0.3s var(--ease);
}

.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }

  .nav {
    position: fixed;
    inset: 80px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid var(--on-dark-12);
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav > a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--on-dark-12); }
  .nav .btn { margin-top: 20px; min-height: 52px; }

  .header.menu-open { background: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 140px 0 96px;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

/* Brilho e símbolo somem antes da borda rasgada, que é cor chapada */
.hero__fundo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 85% 40%, rgba(166, 175, 221, 0.09), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
  pointer-events: none;
}

/* ---------- Mosaico de fotos (hero) ----------
   Fotos em P&B aquecido, colunas subindo e descendo devagar. O véu escurece
   mais à esquerda (onde fica o texto) e embaixo (emenda no rasgo). */
.hero__mosaico {
  --gap: 10px;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
  padding: 0 var(--gap);
  overflow: hidden;
}

.mosaico__col { overflow: hidden; }

/* Três cópias da sequência; andar 1/3 do trilho fecha o ciclo sem emenda.
   O espaço entre fotos é margem (não gap) pra conta fechar exata. */
.mosaico__trilho {
  animation: mosaico-sobe 90s linear infinite;
  will-change: transform;
}

.mosaico__col:nth-child(even) .mosaico__trilho { animation-name: mosaico-desce; animation-duration: 110s; }
.mosaico__col:nth-child(3) .mosaico__trilho { animation-duration: 120s; }

.mosaico__trilho img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: var(--gap);
  border-radius: 4px;
  filter: grayscale(1) sepia(0.35) brightness(0.62) contrast(1.08);
}

@keyframes mosaico-sobe {
  from { transform: translateY(0); }
  to { transform: translateY(-33.3333%); }
}

@keyframes mosaico-desce {
  from { transform: translateY(-33.3333%); }
  to { transform: translateY(0); }
}

.hero__mosaico::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 0%, transparent 28%),
    linear-gradient(to bottom, rgba(29, 29, 29, 0.85) 0%, transparent 22%),
    linear-gradient(90deg, rgba(29, 29, 29, 0.96) 0%, rgba(29, 29, 29, 0.86) 38%, rgba(29, 29, 29, 0.5) 72%, rgba(29, 29, 29, 0.62) 100%);
}

@media (max-width: 860px) {
  .hero__mosaico { --gap: 8px; grid-template-columns: repeat(3, 1fr); }
  .mosaico__col:nth-child(n + 4) { display: none; }
  .hero__mosaico::after {
    background:
      linear-gradient(to top, var(--ink) 0%, transparent 30%),
      rgba(29, 29, 29, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mosaico__trilho { animation: none; }
}

.hero__mosaico ~ .hero__fundo .hero__simbolo { display: none; }

.hero__simbolo { display: none; }

.hero__simbolo {
  position: absolute;
  top: 50%;
  right: -14vw;
  width: min(78vw, 860px);
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.05;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__title {
  margin: 24px 0 36px;
  font-size: clamp(52px, 10vw, 128px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero__title .hero__sub {
  margin-top: 0.12em;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--azul);
}

.hero__verse {
  max-width: 520px;
  padding-left: 20px;
  border-left: 2px solid var(--azul);
}

.hero__verse p {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--on-dark-70);
}

.hero__verse cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azul);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.hero__meta {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-45);
}

/* ---------- Faixa da Bíblia (convite final) ----------
   Papel rasgado em cima e embaixo, página em hebraico no meio: a mesma
   colagem do rodapé do material da igreja.
   --biblia-topo / --biblia-base: cores das seções que rasgam. */
.biblia {
  --biblia-h: clamp(220px, 26vw, 380px);
  position: relative;
  z-index: 1;
  height: var(--biblia-h);
  overflow: hidden;
  background: #6F6B67;
}

/* Grão de papel + sombra da lombada à esquerda e curva da página */
.biblia::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 9%, rgba(255,255,255,0.06) 13%, transparent 22%, transparent 78%, rgba(0,0,0,0.25) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.biblia__pagina {
  position: absolute;
  inset: 8% -10% auto -10%;
  transform: rotate(-3deg);
  font-family: "Frank Ruhl Libre", "Times New Roman", serif;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.45;
  white-space: nowrap;
  text-align: center;
  color: rgba(22, 20, 18, 0.82);
  user-select: none;
}

.biblia__pagina p { margin: 0; }

/* Os trechos "amarás": um tom mais quente, sem gritar */
.biblia__pagina b { font-weight: 700; color: #3B2A1C; }

.biblia__rasgo {
  position: absolute;
  left: 0;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

.biblia__rasgo path { fill: currentColor; }
.biblia__rasgo .rasgo__fibra { fill: #D5D9E2; }

.biblia__rasgo--topo {
  top: -1px;
  height: 46%;
  color: var(--biblia-topo, var(--ink));
}

.biblia__rasgo--base {
  bottom: -1px;
  height: clamp(28px, 4.2vw, 64px);
  color: var(--biblia-base, var(--paper));
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.3));
}

@media (max-width: 560px) {
  .hero__ctas .btn { width: 100%; }
}

/* ---------- Borda de papel rasgado ----------
   --de: cor da seção que rasga; --para: cor da seção que aparece por baixo.
   A fibra é a faixa clara do miolo do papel, colada na borda. */
.rasgo {
  position: relative;
  z-index: 2;
  height: clamp(28px, 4.2vw, 64px);
  margin: -1px 0;
  line-height: 0;
  background: var(--para);
  color: var(--de);
}

.rasgo svg { width: 100%; height: 100%; }
.rasgo path { fill: currentColor; }
.rasgo .rasgo__fibra { fill: #D5D9E2; }

/* ---------- Quem somos ---------- */
.sobre {
  padding: var(--section) 0 calc(var(--section) * 0.6);
  background: var(--paper);
}

.sobre__inner { max-width: 1000px; }

/* Trava (só com JS e movimento liberado): seção alta, conteúdo grudado no
   meio da tela. A distância extra (altura - 100svh) é o "curso" da rolagem
   em que as palavras acendem. */
@media (prefers-reduced-motion: no-preference) {
  .js .sobre[data-trava] {
    height: 230vh;
    height: 230svh;
    padding: 0;
  }

  .js .sobre__trava {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    height: 100svh;
    padding-top: 40px; /* compensa o cabeçalho fixo */
  }
}

.sobre__lead {
  margin-top: 28px;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.sobre__lead strong { font-weight: 800; color: var(--azul-deep); }

/* ---------- O nome ---------- */
.nome {
  /* os mandamentos entram de lado; não deixa a página alargar no celular */
  overflow-x: hidden;
  overflow-x: clip;
  padding: calc(var(--section) * 0.6) 0 var(--section);
  background: linear-gradient(var(--paper), var(--paper-2));
}

.nome__head { max-width: 640px; }
.nome__head .h2 { margin: 20px 0 24px; }
.nome__intro { font-size: 18px; color: var(--on-light-70); }

.nome__grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 340px) 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 72px;
}

.nome__simbolo img { width: 100%; }

/* Linha do topo é pseudo-elemento pra poder ser desenhada na entrada */
.dimensao {
  position: relative;
  padding: 36px 0;
}

.dimensao::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ink);
}

.dimensao__num {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--azul-deep);
}

.dimensao h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nome__grid { grid-template-columns: 1fr; margin-top: 48px; }
  .nome__simbolo { order: -1; width: 180px; }
}

/* ---------- Nossa história ---------- */
.historia {
  padding: var(--section) 0;
  background: var(--ink);
  color: var(--on-dark-70);
}

.historia__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
  gap: clamp(48px, 8vw, 120px);
  margin-top: 28px;
}

.historia__texto .h2 { margin-bottom: 36px; }
.historia__texto > p + p { margin-top: 20px; }

.historia__palavra {
  position: relative;
  margin: 44px 0;
  padding: 32px 0 32px 28px;
}

/* Linha azul da citação (pseudo pra crescer na entrada) */
.historia__palavra::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--azul);
}

.historia__palavra p {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.historia__palavra::before {
  content: "O Senhor disse:";
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azul);
}

.historia__convite { font-weight: 600; color: var(--on-dark); }

/* Foto do pastor: quem assina a palavra pastoral */
.pastor {
  align-self: start;
  position: sticky;
  top: 120px;
  margin: 0;
  text-align: center;
}

.pastor__foto {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
}

/* Anel azul deslocado, igual ao material impresso */
.pastor__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--azul);
  border-radius: 50%;
  transform: translate(14px, 8px);
  z-index: 0;
}

.pastor__foto img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 50%;
}

.pastor figcaption { margin-top: 36px; }

.pastor strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--azul);
}

.pastor span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-45);
}

@media (max-width: 860px) {
  .historia__grid { grid-template-columns: 1fr; }
  .pastor { position: static; }
  .pastor__foto { width: 240px; }
}

/* ---------- Programação ---------- */
.programacao {
  padding: var(--section) 0;
  background: var(--paper);
}

.programacao__head .h2 { margin-top: 20px; }

.agenda {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  margin-top: 64px;
}

/* Card com foto: mesmo P&B aquecido do mosaico da abertura; texto embaixo
   sobre degradê escuro. No hover a foto aproxima e a cor volta um pouco. */
.encontro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(460px, 44vw, 600px);
  padding: 32px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ink);
  color: var(--on-dark);
}

.encontro__foto {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) sepia(0.3) brightness(0.72) contrast(1.06);
  transition: transform 1.4s var(--ease), filter 0.9s ease;
}

.encontro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.96) 0%, rgba(20, 20, 20, 0.8) 32%, rgba(20, 20, 20, 0.15) 68%, rgba(20, 20, 20, 0.05) 100%);
}

.encontro:hover .encontro__foto {
  transform: scale(1.05);
  filter: grayscale(0.25) sepia(0.15) brightness(0.8) contrast(1.04);
}

.encontro__dia {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--azul);
}

.encontro__hora {
  margin: 10px 0 22px;
  font-size: clamp(52px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--on-dark);
}

.encontro--destaque .encontro__hora { font-size: clamp(64px, 7vw, 104px); }

.encontro h3 {
  position: relative;
  padding-top: 20px;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--on-dark);
}

.encontro h3::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--azul);
}

.encontro__desc {
  margin-top: 8px;
  max-width: 34ch;
  font-size: 15px;
  color: var(--on-dark-70);
}

/* Faixa do Lar: pergunta + botão, fechando a seção */
.programacao__nota {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 24px 24px 32px;
  border: 1px solid var(--on-light-12);
  border-radius: 20px;
  background: #fff;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink);
}

.programacao__nota strong { font-weight: 800; color: var(--azul-deep); }

.btn--dark { flex: none; background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--navy); }

/* Endereço: faixa no azul do logo, entre os cards e a nota */
.local {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 20px;
  padding: 36px 36px 36px 40px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--on-dark);
}

.local__pino {
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--azul);
}

.local__texto { flex: 1; }

.local__endereco {
  margin-top: 12px;
  font-style: normal;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.local__cep {
  margin-top: 8px;
  font-size: 14px;
  color: var(--on-dark-45);
}

.local .btn { flex: none; }

@media (max-width: 860px) {
  .agenda { grid-template-columns: 1fr; margin-top: 44px; }
  .encontro { min-height: 540px; padding: 28px; }
  .programacao__nota { flex-direction: column; align-items: stretch; padding: 24px; }
  .local { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px; }
  .local__pino { width: 36px; height: 36px; }
}

/* ---------- Convite / Instagram ---------- */
.convite {
  position: relative;
  padding: var(--section) 0 0;
  background: var(--navy);
  color: var(--on-dark);
  text-align: center;
  overflow: hidden;
}

/* Símbolo some antes da faixa da Bíblia, pra o azul rasgado (cor chapada)
   emendar no fundo sem linha visível */
.convite__fundo {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(#000 40%, transparent calc(100% - clamp(220px, 26vw, 380px)));
  mask-image: linear-gradient(#000 40%, transparent calc(100% - clamp(220px, 26vw, 380px)));
  pointer-events: none;
}

.convite__simbolo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(120vw, 900px);
  transform: translate(-50%, -50%);
  opacity: 0.045;
  pointer-events: none;
}

.convite__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  padding-bottom: clamp(64px, 8vw, 112px);
}

.convite__verse p {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.convite__verse cite {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azul);
}

.convite__texto {
  max-width: 540px;
  margin: 44px 0 36px;
  color: var(--on-dark-70);
}

/* ---------- Rodapé ---------- */
.footer {
  padding: 64px 0 40px;
  background: var(--ink);
  color: var(--on-dark-45);
  font-size: 13px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
  /* Linha dentro do gutter do container, alinhada ao conteúdo */
  background: linear-gradient(var(--on-dark-12), var(--on-dark-12)) no-repeat bottom / calc(100% - 2 * var(--gutter)) 1px;
}

.footer__logo { width: 180px; }

.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: color 0.25s var(--ease);
}

.footer__ig:hover { color: var(--azul); }

.footer__endereco {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-right: auto;
  margin-left: 48px;
  line-height: 1.55;
  color: var(--on-dark-70);
  transition: color 0.25s var(--ease);
}

.footer__endereco .ico { margin-top: 2px; color: var(--azul); }
.footer__endereco:hover { color: var(--on-dark); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
}

.footer__sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--on-dark-45);
  transition: color 0.25s var(--ease);
}

.footer__sign:hover { color: var(--on-dark-70); }

/* Logo completa da B_Five. Arquivo, não inline: são 15 KB e o clipPath
   dela tem id fixo, que colidiria se a página tivesse outro SVG embutido. */
.footer__sign img {
  width: 116px;
  height: auto;
  flex: none;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
}

.footer__sign:hover img { opacity: 1; }

@media (max-width: 640px) {
  .footer__top,
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__endereco { margin: 0; }
  .footer { padding-bottom: 104px; }
}

/* ---------- CTA fixo (mobile) ---------- */
.ig-fixo {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 999px;
  background: var(--azul);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.ig-fixo.is-visible { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 640px) {
  .ig-fixo { display: flex; }
}

/* ---------- Animações ----------
   Só rodam com JS (classe .js no <html>) e sem "reduzir movimento".
   --d: atraso do elemento. --i: posição na sequência (linhas, palavras). */

/* Título em linhas: cada linha sobe por trás de uma máscara */
.linha {
  display: block;
  overflow: hidden;
  /* folga pra acento e descendente não serem cortados pela máscara */
  padding: 0.06em 0 0.1em;
  margin: -0.06em 0 -0.1em;
}

.linha > span { display: block; }

.reveal { --reveal-y: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-y));
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
  }

  .js .reveal.is-in { opacity: 1; transform: none; }

  .js .linha > span {
    transform: translateY(105%);
    transition: transform 1.1s var(--ease);
    transition-delay: calc(var(--d, 0s) + 0.1s + var(--i, 0) * 0.12s);
  }

  .js .is-in .linha > span { transform: none; }

  /* Hero: mosaico acende devagar quando a página abre */
  .js .hero__mosaico {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 2.2s ease, transform 2.8s var(--ease);
  }

  .js .is-loaded .hero__mosaico { opacity: 1; transform: none; }

  /* O nome: mandamentos chegam dos lados em direção ao símbolo */
  .js [data-anim="esquerda"] { transform: translateX(-48px); }
  .js [data-anim="direita"] { transform: translateX(48px); }

  .js .dimensao::before {
    transform: scaleX(0);
    transition: transform 1.2s var(--ease) calc(var(--d, 0s) + 0.25s);
  }

  .js [data-anim="esquerda"]::before { transform-origin: left; }
  .js [data-anim="direita"]::before { transform-origin: right; }
  .js .dimensao.is-in::before { transform: none; }

  .js [data-anim="simbolo"] {
    transform: scale(0.7) rotate(-35deg);
    transition-duration: 1.4s;
  }

  .js [data-anim="simbolo"].is-in { transform: none; }

  /* História: linha da citação cresce de cima pra baixo */
  .js .historia__palavra::after {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.3s var(--ease) 0.2s;
  }

  .js .historia__palavra.is-in::after { transform: none; }

  /* Foto do pastor abre em círculo; o anel gira até o lugar */
  .js [data-anim="foto"] { --reveal-y: 0px; }

  .js [data-anim="foto"] .pastor__foto img {
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1.4s var(--ease) 0.15s;
  }

  .js [data-anim="foto"].is-in .pastor__foto img { clip-path: circle(50% at 50% 50%); }

  .js [data-anim="foto"] .pastor__foto::after {
    opacity: 0;
    transform: translate(14px, 8px) rotate(-120deg);
    transition: opacity 0.8s ease 0.5s, transform 1.6s var(--ease) 0.5s;
  }

  .js [data-anim="foto"].is-in .pastor__foto::after {
    opacity: 1;
    transform: translate(14px, 8px);
  }

  .js [data-anim="foto"] figcaption {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s var(--ease) 0.9s, transform 0.8s var(--ease) 0.9s;
  }

  .js [data-anim="foto"].is-in figcaption { opacity: 1; transform: none; }

  /* Programação: linha azul do card se desenha depois da entrada */
  .js .encontro h3::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease) calc(var(--d, 0s) + 0.35s);
  }

  .js .encontro.is-in h3::before { transform: none; }

  .js .encontro .encontro__foto { transform: scale(1.14); }
  .js .encontro.is-in .encontro__foto { transform: none; }
  .js .encontro.is-in:hover .encontro__foto { transform: scale(1.05); }

  /* Quem somos: palavras acendem conforme a rolagem (JS marca .is-lit) */
  .js [data-acende] .palavra {
    opacity: 0.16;
    transition: opacity 0.35s ease;
  }

  .js [data-acende] .palavra.is-lit { opacity: 1; }

  /* Convite: versículo aparece palavra por palavra */
  .js [data-palavras] { --reveal-y: 0px; }

  .js [data-palavras] .palavra {
    display: inline-block;
    opacity: 0;
    filter: blur(6px);
    transform: translateY(0.3em);
    transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s var(--ease);
    transition-delay: calc(var(--i) * 0.045s);
  }

  .js [data-palavras].is-in .palavra { opacity: 1; filter: none; transform: none; }

  /* Hebraico: linhas deslizam em sentidos opostos (JS define --deriva) */
  .js [data-deriva] p { transform: translateX(var(--deriva, 0px)); }
  .js [data-deriva] p:nth-child(even) { transform: translateX(calc(var(--deriva, 0px) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
