/* ==========================================================================
   Lighthouse · app
   Mesmas fontes, cores e raios do site (site/v1/assets/css/site.css),
   organizados como aplicativo: barra e abas fixas, telas que rolam por dentro.
   ========================================================================== */

/* ---------- Fontes ---------- */
@font-face { font-family: "Season Sans"; src: url("../fonts/season-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Season Serif"; src: url("../fonts/season-serif-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #030203;
  --preto: #181614;
  --bege: #F9F2DD;
  --caramelo: #C99C65;
  --branco: #FFFFFF;
  --linha: rgba(3, 2, 3, .12);
  --apagado: rgba(3, 2, 3, .58);

  --sans: "Season Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Season Serif", Georgia, serif;
  --ui: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut: 20px;
  --largura: 480px;
  --raio: 8px;
  --raio-g: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --empurra: cubic-bezier(.32, .72, 0, 1);

  --topo-seguro: env(safe-area-inset-top, 0px);
  --base-segura: env(safe-area-inset-bottom, 0px);
  --barra: calc(52px + var(--topo-seguro));
  --abas: calc(58px + var(--base-segura));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--preto); }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--ui); font-size: 16px; line-height: 1.5; color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
ul, ol { list-style: none; }
a, button, summary { touch-action: manipulation; -webkit-touch-callout: none; }
:focus-visible { outline: 2px solid var(--caramelo); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; } }

.app { position: fixed; inset: 0; max-width: var(--largura); margin: 0 auto; background: var(--branco); overflow: hidden; user-select: none; -webkit-user-select: none; }
#palco { position: absolute; inset: 0; }
.tela { position: absolute; inset: 0; isolation: isolate; background: var(--branco); }
.rolagem { position: absolute; inset: 0; padding: var(--barra) 0 calc(var(--abas) + 32px); overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.rolagem--raiz { padding-top: calc(var(--topo-seguro) + 24px); }
.rolagem--capa { padding-top: 0; }
.texto, .pagina p { user-select: text; -webkit-user-select: text; }

/* Tela interna: entra pela direita, por cima da aba atual */
.tela--interna { z-index: 2; box-shadow: -12px 0 32px rgba(24, 22, 20, .12); animation: empurrar .34s var(--empurra); }
.tela--interna.saindo { animation: desempurrar .26s var(--empurra) forwards; }
@keyframes empurrar { from { transform: translateX(100%); } to { transform: none; } }
@keyframes desempurrar { from { transform: none; } to { transform: translateX(100%); } }

/* ---------- Abertura do app ---------- */
.abertura { position: absolute; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--preto); pointer-events: none; animation: abertura-some .35s var(--ease) .55s forwards; }
.abertura img { width: 167px; height: auto; }
@keyframes abertura-some { to { opacity: 0; visibility: hidden; } }

/* ---------- Barra do topo ---------- */
.barra { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; height: var(--barra); padding-top: var(--topo-seguro); border-bottom: 1px solid transparent; background: rgba(255, 255, 255, 0); transition: background-color .2s, border-color .2s; }
.barra__titulo { min-width: 0; font: 500 17px/1.2 var(--sans); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.barra__voltar { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 8px; }
.barra__voltar svg { width: 26px; height: 26px; }
.barra.compacta { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border-bottom-color: var(--linha); }
.barra.compacta .barra__titulo { opacity: 1; transform: none; }
.barra.sobre-capa:not(.compacta) .barra__voltar { color: var(--bege); }
.barra.sobre-capa:not(.compacta) .barra__voltar svg { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }

.barra--inicio { display: flex; padding-left: var(--gut); background: var(--branco); }
.barra--inicio img { width: 143px; height: 24px; }

.titulo-grande { padding: 4px var(--gut) 0; font: 500 36px/1.08 var(--sans); letter-spacing: -.01em; }

/* ---------- Abas ---------- */
.abas { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--abas); padding-bottom: var(--base-segura); background: var(--bege); border-top: 1px solid var(--linha); }
.aba { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; color: var(--preto); font: 500 11px/1.2 var(--ui); opacity: .52; transition: opacity .15s; }
.aba svg { width: 24px; height: 24px; }
.aba.ativa { opacity: 1; }
.aba.ativa .p { fill: currentColor; }
.aba.ativa .d { stroke: var(--bege); }
.aba.ativa .d--cheio { fill: var(--bege); }
.aba:active svg { transform: scale(.9); }

/* ---------- Aviso ---------- */
.aviso { position: absolute; z-index: 20; left: 12px; right: 12px; bottom: calc(var(--abas) + 12px); padding: 14px 16px; border-radius: var(--raio-g); background: var(--preto); color: var(--bege); font-size: 15px; line-height: 1.35; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; box-shadow: 0 12px 32px rgba(24, 22, 20, .3); }
.aviso.visivel { opacity: 1; visibility: visible; transform: none; }

/* ---------- Seções ---------- */
.secao { padding: 32px var(--gut) 0; }
.secao--perto { padding-top: 20px; }
.secao--culto { padding-top: 16px; }
.secao__cabeca { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.secao__cabeca h2 { font: 500 22px/1.15 var(--sans); }
.secao__cabeca a { flex: none; padding: 4px 0; font-size: 15px; font-weight: 500; color: var(--apagado); }

/* ---------- Trilhos ---------- */
.trilho { display: flex; gap: 10px; padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; }
.trilho::-webkit-scrollbar { display: none; }
.trilho > * { flex: none; scroll-snap-align: start; }
.trilho--series { margin-inline: calc(var(--gut) * -1); }
.trilho--series .serie { width: 250px; }

/* ---------- Banners ---------- */
.banner { position: relative; display: block; width: calc(100% - 28px); aspect-ratio: 10 / 9; border-radius: var(--raio-g); overflow: hidden; background: #2a2724; transition: transform .2s var(--ease); }
.banner:active { transform: scale(.985); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 22, 20, 0) 50%, rgba(24, 22, 20, .86) 100%); }
.banner__texto { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 4px; color: var(--bege); }
.banner__titulo { font: 500 26px/1.05 var(--sans); }
.banner__legenda { font-size: 15px; line-height: 1.3; opacity: .85; }
.pontos { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pontos i { width: 6px; height: 6px; border-radius: 3px; background: rgba(3, 2, 3, .18); transition: width .3s var(--ease), background-color .3s; }
.pontos i.atual { width: 18px; background: var(--preto); }

/* ---------- Próximo culto ---------- */
.culto { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 12px 14px 16px; border-radius: var(--raio-g); background: var(--preto); color: var(--bege); transition: transform .2s var(--ease); }
.culto:active { transform: scale(.99); }
.culto__corpo { display: grid; gap: 2px; min-width: 0; }
.culto__rotulo { font-size: 13px; line-height: 1.3; opacity: .65; }
.culto__quando { font: 500 22px/1.15 var(--sans); }
.culto__titulo { font-size: 15px; line-height: 1.3; opacity: .85; }
.culto__seta svg { width: 22px; height: 22px; opacity: .7; }

/* ---------- Atalhos ---------- */
.atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 20px var(--gut) 0; }
.atalho { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.2; text-align: center; }
.atalho__icone { display: grid; place-items: center; width: 100%; height: 56px; border-radius: var(--raio-g); background: var(--bege); color: var(--preto); transition: transform .2s var(--ease); }
.atalho__icone svg { width: 24px; height: 24px; }
.atalho:active .atalho__icone { transform: scale(.94); }

/* ---------- Linhas de lista ---------- */
.lista { border-top: 1px solid var(--linha); }
.lista li { border-bottom: 1px solid var(--linha); }
.linha { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 0; transition: opacity .15s; }
a.linha:active, button.linha:active { opacity: .55; }
.linha__corpo { flex: 1; display: grid; gap: 3px; min-width: 0; }
.linha__titulo { font: 500 18px/1.15 var(--sans); }
.linha__meta { font-size: 14px; line-height: 1.3; color: var(--apagado); }
.linha__seta svg { width: 20px; height: 20px; opacity: .35; }
.linha__num { flex: none; width: 20px; font-size: 14px; color: var(--apagado); }
.linha__estado svg { width: 36px; height: 36px; }
.etiqueta { font-size: 13px; line-height: 1.2; white-space: nowrap; color: var(--apagado); }
.etiqueta--proxima { display: inline-block; padding: 5px 9px; border-radius: 6px; background: var(--bege); color: var(--ink); font-weight: 500; }
.vazio { padding: 28px 0; font-size: 16px; color: var(--apagado); }

.selo { flex: none; display: grid; place-content: center; width: 48px; height: 52px; border-radius: var(--raio); background: var(--bege); text-align: center; }
.selo__mes { font: 500 11px/1 var(--ui); text-transform: uppercase; }
.selo__dia { margin-top: 4px; font: 500 22px/1 var(--sans); }

/* ---------- Chamada ---------- */
.chamada { position: relative; display: grid; gap: 4px; padding: 18px 48px 18px 16px; border-radius: var(--raio-g); background: var(--caramelo); transition: transform .2s var(--ease); }
.chamada:active { transform: scale(.99); }
.chamada__titulo { font: 500 22px/1.15 var(--sans); }
.chamada__texto { font-size: 15px; line-height: 1.3; }
.chamada__seta { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.chamada__seta svg { width: 22px; height: 22px; }

/* ---------- Agenda ---------- */
.meses { display: flex; gap: 8px; padding: 16px var(--gut) 0; overflow-x: auto; scrollbar-width: none; }
.meses::-webkit-scrollbar { display: none; }
.meses button { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--bege); font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s; }
.meses button[aria-pressed="true"] { background: var(--preto); color: var(--bege); }
.fixos { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 14px; line-height: 1.35; color: var(--apagado); }
.fixos strong { font-weight: 500; color: var(--ink); }
.fixos__icone svg { width: 22px; height: 22px; color: var(--ink); }

/* ---------- Séries ---------- */
.lista-series { display: grid; gap: 24px; }
.serie { display: block; }
.serie__arte { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--raio-g); overflow: hidden; background: var(--preto); transition: transform .2s var(--ease); }
.serie:active .serie__arte { transform: scale(.985); }
.serie__arte img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; }
.serie__arte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 22, 20, 0) 40%, rgba(24, 22, 20, .85) 100%); }
.serie__nome { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font: 500 22px/1.08 var(--sans); color: var(--bege); text-wrap: balance; }
.lista-series .serie__nome { font-size: 28px; }
.serie__linha { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; color: var(--apagado); }

.capa { position: relative; display: flex; align-items: flex-end; height: 340px; padding: 0 var(--gut) 20px; background: var(--preto); color: var(--bege); overflow: hidden; }
.capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.capa::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(24, 22, 20, .4) 0%, rgba(24, 22, 20, 0) 30%, #181614 100%); }
.capa__texto { position: relative; z-index: 2; }
.capa + .secao { padding-top: 4px; }
.capa + .secao .lista { border-top: 0; }
.capa h1 { font: 500 32px/1.05 var(--sans); text-wrap: balance; }
.capa p { margin-top: 6px; font-size: 15px; opacity: .85; }

/* ---------- Envolva-se ---------- */
.passos { display: grid; gap: 12px; }
.passo { display: flex; gap: 14px; min-height: 124px; padding: 10px; border-radius: var(--raio-g); background: var(--bege); transition: transform .2s var(--ease); }
.passo:active { transform: scale(.985); }
.passo__foto { position: relative; flex: none; width: 104px; border-radius: var(--raio); overflow: hidden; background: #e9e1c9; }
.passo__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.passo__corpo { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 4px 0; }
.passo__titulo { font: 500 21px/1.1 var(--sans); }
.passo__texto { font-size: 14px; line-height: 1.3; }
.passo__acao { display: flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; }
.passo__acao svg { width: 18px; height: 18px; }

/* ---------- Sobre ---------- */
.marca { position: relative; aspect-ratio: 10 / 9; border-radius: var(--raio-g); overflow: hidden; background: var(--preto); }
.marca img { width: 100%; height: 100%; object-fit: cover; }
.marca::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 22, 20, 0) 45%, rgba(24, 22, 20, .88) 100%); }
.frase { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; font: 500 clamp(22px, 6.4vw, 28px)/1.08 var(--sans); color: var(--bege); }
.frase em { font-family: var(--serif); font-style: italic; }
.sobre-lead { margin: 20px 0 24px; font-size: 17px; line-height: 1.4; }
.lista--menu .linha { min-height: 58px; }

.pagina .texto { font-size: 17px; line-height: 1.55; }
.pagina .texto + .texto { margin-top: 1.1em; }
.destaque { margin-bottom: 16px; font: 500 24px/1.15 var(--sans); }
.destaque--secao { margin-top: 36px; }
.foto { margin-bottom: 20px; aspect-ratio: 16 / 10; border-radius: var(--raio-g); overflow: hidden; background: #e9e1c9; }
.foto img { width: 100%; height: 100%; object-fit: cover; }

.equipe { border-top: 1px solid var(--linha); }
.equipe li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.equipe img { flex: none; width: 72px; height: 88px; border-radius: var(--raio); object-fit: cover; }
.equipe h3 { font: 500 18px/1.15 var(--sans); }
.equipe p { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--apagado); }

.valores { border-top: 1px solid var(--linha); }
.valores li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.valores__num { flex: none; width: 20px; padding-top: 3px; font-size: 14px; color: var(--apagado); }
.valores h3 { font: 500 20px/1.15 var(--sans); }
.valores p { margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--apagado); }

.faq { border-top: 1px solid var(--linha); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 0; cursor: pointer; list-style: none; font: 500 18px/1.15 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 24px/1 var(--ui); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: -4px; padding-bottom: 16px; font-size: 16px; line-height: 1.4; color: var(--apagado); }

/* ---------- Fatos (ícone + texto) ---------- */
.fatos { display: grid; gap: 12px; }
.fatos li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.35; }
.fatos svg { flex: none; width: 22px; height: 22px; }
.fatos--pagina { margin-bottom: 24px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 16px; border-radius: var(--raio); border: 2px solid transparent; font: 500 16px/1.5 var(--ui); white-space: nowrap; transition: transform .2s var(--ease), opacity .2s; }
.btn:active { transform: scale(.98); opacity: .85; }
.btn--preto { background: var(--preto); color: var(--bege); font-weight: 700; }
.btn--contorno { border-color: var(--ink); color: var(--ink); }
.btn--largo { width: 100%; }

/* ---------- Folha de evento ---------- */
.folha { position: fixed; inset: auto 0 0 0; width: 100%; max-width: var(--largura); max-height: 88dvh; margin: 0 auto; padding: 0 var(--gut) calc(20px + var(--base-segura)); border: 0; border-radius: 16px 16px 0 0; background: var(--branco); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; transition: transform .22s var(--ease); }
.folha[open] { animation: folha-sobe .34s var(--empurra); }
.folha.arrastando { transition: none; }
.folha.fechando { animation: folha-desce .22s var(--ease) forwards; }
.folha::backdrop { background: rgba(3, 2, 3, .45); animation: fundo-entra .25s var(--ease); }
.folha.fechando::backdrop { animation: fundo-sai .22s var(--ease) forwards; }
@keyframes folha-sobe { from { transform: translateY(100%); } to { transform: none; } }
@keyframes folha-desce { from { opacity: 1; } to { transform: translateY(100%); } }
@keyframes fundo-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes fundo-sai { to { opacity: 0; } }
.folha__alca { position: sticky; top: 0; z-index: 1; display: grid; place-items: center; height: 28px; margin: 0 calc(var(--gut) * -1); background: var(--branco); cursor: grab; touch-action: none; }
.folha__alca span { width: 36px; height: 4px; border-radius: 2px; background: rgba(3, 2, 3, .2); }
.folha__img { aspect-ratio: 16 / 9; margin-bottom: 16px; border-radius: var(--raio-g); overflow: hidden; background: var(--preto); }
.folha__img img { width: 100%; height: 100%; object-fit: cover; }
.folha__titulo { margin-bottom: 16px; font: 500 28px/1.08 var(--sans); }
.folha__acoes { display: grid; gap: 8px; margin-top: 20px; }

/* ---------- Modal de vídeo ---------- */
.modal { width: min(calc(100% - 24px), calc(var(--largura) - 24px)); max-width: none; margin: auto; padding: 0; border: 0; border-radius: var(--raio-g); background: var(--preto); color: var(--bege); overflow: hidden; }
.modal::backdrop { background: rgba(3, 2, 3, .82); }
.modal__video { aspect-ratio: 16 / 9; }
.modal__video iframe { width: 100%; height: 100%; border: 0; }
.modal__fechar { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(24, 22, 20, .72); color: var(--bege); }
.modal__fechar svg { width: 20px; height: 20px; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 359px) {
  .titulo-grande { font-size: 30px; }
  .aba { font-size: 10px; }
  .passo__foto { width: 84px; }
  .atalho { font-size: 11px; white-space: nowrap; }
}
