/* ═══════════════════════════════════════════════════
   ICCR — Folha de estilos principal
   Igreja Cristã de Confissão Reformada
═══════════════════════════════════════════════════ */

:root {
  --gold:          #c9a84c;
  --gold-dim:      rgba(201,168,76,.35);
  --gold-faint:    rgba(201,168,76,.08);
  --navy-darkest:  #17100a;   /* nogueira escura */
  --navy-dark:     #251a10;   /* café */
  --navy:          #382818;   /* nogueira */
  --navy-mid:      #4d3722;   /* carvalho */
  --wood-rgb:      23,16,10;  /* base madeira p/ sombras e gradientes */
  --cream:         #f3ece0;   /* pergaminho mais quente */
  --cream-light:   #fbf7ef;
  --wine:          #6e0712;   /* bordô da logo */
  --wine-deep:     #5a0610;
  --wine-bright:   #8b1f2c;   /* versão legível p/ acentos sobre fundo escuro */
  --azul:          #062c53;   /* azul-marinho da logo */
  --azul-deep:     #04203f;
  --azul-bright:   #1d4f7d;   /* versão p/ acentos */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: #2a211a;            /* tinta quente (sem azul) */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Texto padrão CLARO dentro de qualquer bloco escuro/madeira ──
   Garante legibilidade mesmo quando a opacidade Tailwind (text-white/xx)
   não é gerada. Utilitários explícitos continuam tendo prioridade.    */
.bg-navy-950, .bg-navy-900, .bg-navy-800,
.sermon-featured, .card-g, .map-wrap {
  color: #e8dfce;
}
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── TIPOGRAFIA ─────────────────────────────────── */
.font-serif   { font-family: 'Playfair Display', Georgia, serif; }
.font-display { font-family: 'Cinzel', serif; }

/* ── SECTION LABEL ─────────────────────────────── */
.section-label {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #9a7820;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
/* Sobre fundo escuro/madeira — dourado mais claro e brilhante */
.section-label.on-dark { color: #e8cc80; }

/* ── GOLD RULE ──────────────────────────────────── */
.gold-rule { border: none; border-top: 1px solid rgba(201,168,76,.25); }

/* ── ORNAMENT LINE ─────────────────────────────── */
.ornament-line { display: flex; align-items: center; gap: 1rem; }
.ornament-line::before,
.ornament-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
#main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .5s ease, backdrop-filter .5s ease, border-color .5s ease;
}
#main-header.scrolled {
  background: rgba(23,16,10,.66);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(201,168,76,.14);
}

/* Nav links */
.nav-link {
  position: relative;
  transition: color .2s;
  padding-bottom: 3px;
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Video / Photo background ─── */
.hero-video,
.hero-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  will-change: transform;
}
/* Vídeo fica acima da foto de fundo */
.hero-video { z-index: 1; }

/* Ken Burns — activa via JS quando vídeo falha */
@keyframes kenBurns {
  0%   { transform: scale(1.03) translate(0%,     0%); }
  25%  { transform: scale(1.06) translate(-.6%,  -.3%); }
  50%  { transform: scale(1.04) translate(-.2%,  -.7%); }
  75%  { transform: scale(1.07) translate(.3%,   -.2%); }
  100% { transform: scale(1.03) translate(0%,     0%); }
}
.hero-photo-bg { background-position: center 40%; }
.hero-photo-bg.ken-burns {
  animation: kenBurns 20s ease-in-out infinite;
  transform-origin: center;
}

/* ── Colour grading ─── */
.hero-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 110% 55% at 50% 100%, rgba(23,16,10,.98) 0%, rgba(23,16,10,.12) 62%),
    radial-gradient(ellipse 55%  90% at 0%   50%, rgba(23,16,10,.65) 0%, transparent 65%),
    linear-gradient(155deg, rgba(23,16,10,.90) 0%, rgba(56,40,24,.42) 45%, rgba(23,16,10,.85) 100%);
}

/* Warm amber tint na foto (simula luz de vela/hora dourada) */
.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 70% 50% at 60% 40%, rgba(180,120,40,.12) 0%, transparent 70%);
  mix-blend-mode: screen;
}

/* ── Noise/grain ─── */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* ── Ambient glow pulse ─── */
@keyframes ambientPulse {
  0%,100% { opacity: .14; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: .26; transform: translate(-48%,-52%) scale(1.18); }
}
.hero-ambient {
  position: absolute;
  z-index: 2;
  top: 45%; left: 55%;
  width: min(90vw, 700px);
  height: min(90vw, 700px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,168,76,.14) 0%, transparent 70%);
  animation: ambientPulse 10s ease-in-out infinite;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

/* ── Light ray sweep ─── */
@keyframes lightRay {
  0%   { opacity: 0; transform: translateX(-120%) skewX(-28deg); }
  15%  { opacity: .06; }
  85%  { opacity: .04; }
  100% { opacity: 0; transform: translateX(280%) skewX(-28deg); }
}
.hero-ray {
  position: absolute;
  z-index: 2;
  top: 0; bottom: 0;
  left: 0;
  width: 15%;
  background: linear-gradient(90deg, transparent, rgba(255,230,150,.08), transparent);
  animation: lightRay 8s ease-in-out infinite 3s;
  pointer-events: none;
}

/* ── Corner brackets ─── */
@keyframes cornerShimmer {
  0%,100% { opacity: .55; }
  50%     { opacity: 1; filter: drop-shadow(0 0 6px rgba(201,168,76,.5)); }
}
.corner-frame {
  position: absolute;
  inset: 1.5rem;
  z-index: 6;
  pointer-events: none;
}
@media (min-width:768px) { .corner-frame { inset: 2.5rem; } }
.corner-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,76,.09);
}
.cf-tl,.cf-tr,.cf-bl,.cf-br {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  animation: cornerShimmer 4s ease-in-out infinite;
}
.cf-tl { top:0;    left:0;  border-top:1px solid rgba(201,168,76,.6); border-left:1px solid rgba(201,168,76,.6); animation-delay:0s; }
.cf-tr { top:0;    right:0; border-top:1px solid rgba(201,168,76,.6); border-right:1px solid rgba(201,168,76,.6); animation-delay:.8s; }
.cf-bl { bottom:0; left:0;  border-bottom:1px solid rgba(201,168,76,.6); border-left:1px solid rgba(201,168,76,.6); animation-delay:1.6s; }
.cf-br { bottom:0; right:0; border-bottom:1px solid rgba(201,168,76,.6); border-right:1px solid rgba(201,168,76,.6); animation-delay:2.4s; }

/* ── Particles ─── */
@keyframes floatA { 0%,100%{ transform:translateY(0) scale(1); opacity:.5; } 55%{ transform:translateY(-22px) scale(1.1); opacity:.9; } }
@keyframes floatB { 0%,100%{ transform:translateY(0) scale(1); opacity:.3; } 55%{ transform:translateY(-14px) scale(.9); opacity:.6; } }
.particle { position:absolute; border-radius:50%; background:var(--gold); pointer-events:none; z-index:4; }
.p1{ width:4px;height:4px; top:22%;left:12%;  animation:floatA 7s ease-in-out infinite; }
.p2{ width:3px;height:3px; top:58%;left:82%;  animation:floatB 9s ease-in-out infinite .5s; }
.p3{ width:2px;height:2px; top:38%;left:62%;  animation:floatA 6s ease-in-out infinite 1s; }
.p4{ width:3px;height:3px; top:72%;left:28%;  animation:floatB 8s ease-in-out infinite 2s; }
.p5{ width:2px;height:2px; top:15%;left:78%;  animation:floatA 5.5s ease-in-out infinite .3s; }
.p6{ width:4px;height:4px; top:45%;left:5%;   animation:floatB 10s ease-in-out infinite 1.5s; }
.p7{ width:2px;height:2px; top:85%;left:70%;  animation:floatA 7.5s ease-in-out infinite .7s; }
.p8{ width:3px;height:3px; top:30%;left:90%;  animation:floatB 6.5s ease-in-out infinite 1.2s; }

/* ── Gold gradient text ─── */
.text-gold-grad {
  background: linear-gradient(135deg, #d4af5a 0%, #f4df9a 45%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll cue ─── */
@keyframes scrollCue { 0%,100%{ opacity:.4; transform:scaleY(1); } 50%{ opacity:.8; transform:scaleY(.6); } }
.scroll-cue-line { animation: scrollCue 2s ease-in-out infinite; transform-origin: top; }

/* ══════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════ */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .85s ease, transform .85s ease; }
.reveal.in { opacity:1; transform:translateY(0); }
.d1{ transition-delay:.10s; }
.d2{ transition-delay:.22s; }
.d3{ transition-delay:.34s; }
.d4{ transition-delay:.46s; }

/* ══════════════════════════════════════════════════
   BACKGROUND PATTERNS
══════════════════════════════════════════════════ */
.bg-dots {
  background-image: radial-gradient(circle, rgba(201,168,76,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bg-cross-grid {
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Crect x='25' y='4' width='6' height='48' rx='1' fill='rgba(201%2C168%2C76%2C0.05)'/%3E%3Crect x='4' y='22' width='48' height='6' rx='1' fill='rgba(201%2C168%2C76%2C0.05)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
}
.bg-fine-grid {
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-topo {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(201%2C168%2C76%2C0.07)' stroke-width='.5'%3E%3Ccircle cx='40' cy='40' r='35'/%3E%3Ccircle cx='40' cy='40' r='25'/%3E%3Ccircle cx='40' cy='40' r='15'/%3E%3Ccircle cx='40' cy='40' r='5'/%3E%3Cline x1='5' y1='40' x2='75' y2='40'/%3E%3Cline x1='40' y1='5' x2='40' y2='75'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.card-p {
  background: white;
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 2px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card-p:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,.32);
  box-shadow: 0 20px 60px rgba(23,16,10,.12), 0 4px 16px rgba(201,168,76,.09);
}
.card-g {
  /* painel de madeira clara sobre o fundo escuro — bem destacado */
  background: linear-gradient(158deg, rgba(99,72,43,.55) 0%, rgba(56,40,24,.62) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201,168,76,.30);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,240,210,.06), 0 6px 22px rgba(23,16,10,.35);
  transition: all .3s ease;
}
.card-g:hover {
  background: linear-gradient(158deg, rgba(122,90,55,.62) 0%, rgba(70,51,30,.7) 100%);
  border-color: rgba(201,168,76,.5);
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255,240,210,.08), 0 16px 48px rgba(23,16,10,.5);
}

/* ── Card-clímax "Cinco Solas" — bloco vinho da marca ──
   Vinho rico e luminoso: salta como ponto focal entre os
   cards de madeira escuros, sem perder a cor da logo.     */
.solas-card {
  background:
    radial-gradient(125% 90% at 100% 0%, rgba(201,168,76,.18) 0%, transparent 46%),
    linear-gradient(158deg, #a32a38 0%, #7d1420 44%, #520610 100%);
  border: 1px solid rgba(201,168,76,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,228,205,.16),
    0 18px 48px rgba(82,6,16,.55),
    0 0 24px rgba(163,42,56,.22);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.solas-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 2;
}
.solas-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,228,205,.2),
    0 26px 60px rgba(82,6,16,.6),
    0 0 32px rgba(163,42,56,.34);
}

/* ── Acento duotono da marca (vinho → dourado → azul) ──
   Eco discreto da divisão da logomarca. Em fundo claro
   vira régua; em painel escuro, um filete superior.       */
.brand-rule {
  border: none;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--wine) 0%, var(--gold) 50%, var(--azul) 100%);
}
.brand-top { position: relative; }
.brand-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, var(--wine-bright) 24%, var(--gold) 50%, var(--azul-bright) 76%, transparent 100%);
  z-index: 3;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--gold);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .95rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  border-radius: 1px;
}
.btn-p::before { content:''; position:absolute; inset:0; background:rgba(255,255,255,0); transition:background .3s; }
.btn-p:hover::before { background: rgba(255,255,255,.13); }
.btn-p:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,168,76,.35); }

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .95rem 2.2rem;
  transition: all .3s;
  border-radius: 1px;
}
.btn-o:hover { border-color: rgba(201,168,76,.7); color: var(--gold); transform: translateY(-2px); }

/* ── Cards de confissão (seção "Nossas Principais Confissões") ── */
.conf-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(201,168,76,.22);
  background: rgba(23,16,10,.42);
  text-decoration: none;
  transition: border-color .22s, background .22s, transform .25s;
}
.conf-card:hover {
  border-color: rgba(201,168,76,.55);
  background: rgba(23,16,10,.55);
  transform: translateY(-2px);
}
.conf-card p.font-display.text-gold-300 {
  color: #f0d896;
}
.conf-ler {
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #d9b968;
  margin-top: .85rem;
  transition: color .2s;
}
.conf-card:hover .conf-ler { color: var(--gold); }

/* ── Seção do lema da ICCR ── */
.lema-section { isolation: isolate; }

.lema-quote-mark {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: 1;
  color: var(--gold);
  opacity: .28;
  margin-bottom: -1.2rem;
  user-select: none;
}
.card-g .lema-quote-mark {
  color: #f0d896;
  opacity: .55;
}

.lema-text {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Respiração dourada contínua no lema da ICCR */
@keyframes lemaBreath {
  0%, 100% {
    color: #382818;
    text-shadow: none;
  }
  50% {
    color: #9a7820;
    text-shadow: 0 0 32px rgba(201,168,76,.5), 0 2px 10px rgba(201,168,76,.25);
  }
}
.lema-glow {
  animation: lemaBreath 5s ease-in-out infinite;
}

/* Variante da respiração dourada para uso sobre fundos escuros (ex.: .card-g) —
   alterna entre um branco/cream neutro e o dourado brilhante, mantendo a mesma
   cadência de 5s, evitando o tom #382818 (ilegível sobre fundo escuro) */
@keyframes lemaBreathDark {
  0%, 100% {
    color: #f3ece0;
    text-shadow: none;
  }
  50% {
    color: #e8c565;
    text-shadow: 0 0 32px rgba(201,168,76,.55), 0 2px 10px rgba(201,168,76,.35);
  }
}
.lema-glow-dark {
  animation: lemaBreathDark 5s ease-in-out infinite;
}

/* Variante azul (logomarca) do btn-p */
.btn-p.btn-azul { background: #062c53; color: #f3ece0; }
.btn-p.btn-azul:hover { box-shadow: 0 10px 32px rgba(6,44,83,.38); }
.btn-p.btn-azul::before { background: rgba(255,255,255,0); }
.btn-p.btn-azul:hover::before { background: rgba(255,255,255,.10); }

/* Cards de formato de pregação — links clicáveis na página inicial */
.preach-format-card { display: flex; text-decoration: none; }
.preach-format-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23,16,10,.10); }
.preach-format-card .preach-format-arrow { color: rgba(201,168,76,.48); font-size: 1.1rem; align-self: center; margin-left: .5rem; transition: color .2s, transform .22s; }
.preach-format-card:hover .preach-format-arrow { color: var(--gold); transform: translateX(5px); }

/* ══════════════════════════════════════════════════
   SERMON FEATURED
══════════════════════════════════════════════════ */
.sermon-featured {
  background: linear-gradient(145deg, #251a10 0%, #382818 100%);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.sermon-featured::before {
  content: '';
  position: absolute; top:0; left:0; right:0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Badge */
.badge {
  display: inline-block;
  padding: .22rem .78rem;
  font-family: 'Cinzel', serif;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   MAP PLACEHOLDER
══════════════════════════════════════════════════ */
.map-wrap {
  position: relative;
  height: 420px;
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 2px;
  background-color: #251a10;
  overflow: hidden;
}
.map-inner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Church list */
.church-item {
  transition: border-left-color .25s ease, background .25s ease;
  cursor: pointer;
  border-left: 2px solid transparent;
  padding-left: 1rem;
  position: relative;
  z-index: 3;               /* acima da camada de partículas (.fp-layer) */
}
.church-item:hover { border-left-color: var(--gold); background: rgba(201,168,76,.05); }
.church-item.active { border-left-color: var(--wine-bright); background: rgba(110,7,18,.12); }
/* Um church-item nunca pode ficar invisível/inclicável por conta do reveal.
   Diferente do reveal padrão (opacity:0), aqui o piso é 1 e o efeito de
   entrada é só um leve deslocamento — o item está sempre visível e clicável.
   (Corrige "só navega após vários cliques".) */
.church-item.reveal { opacity: 1; transform: translateY(10px); transition: transform .5s ease; }
.church-item.reveal.in { transform: translateY(0); }

/* ══════════════════════════════════════════════════
   FORM
══════════════════════════════════════════════════ */
.f-label {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #062c53;
  display: block;
  margin-bottom: .5rem;
}
.f-input {
  width: 100%;
  border: 1px solid rgba(201,168,76,.22);
  background: #fff;
  padding: .85rem 1.1rem;
  font-size: .875rem;
  font-family: 'Inter', sans-serif;
  color: #1c1c2e;
  border-radius: 1px;
  transition: border-color .2s, box-shadow .2s;
}
.f-input:focus { outline: none; border-color: rgba(201,168,76,.55); box-shadow: 0 0 0 3px rgba(201,168,76,.07); }
.f-input::placeholder { color: #9ca3af; }

/* ══════════════════════════════════════════════════
   WATERMARK TEXT
══════════════════════════════════════════════════ */
.wm {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem,9vw,7.5rem);
  font-weight: 600;
  line-height: .82;
  pointer-events: none;
  user-select: none;
  white-space: normal;          /* quebra em vez de estourar a página */
  max-width: min(88%, 760px);   /* nunca passa da página */
}

/* Cross SVG watermark */
.cross-wm { position:absolute; opacity:.025; pointer-events:none; }

/* Stat item */
.stat-item { border-left: 1px solid rgba(201,168,76,.22); padding-left: 1.5rem; }

/* ══════════════════════════════════════════════════
   PROPOSTA BADGE
══════════════════════════════════════════════════ */
#proposal-badge {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: #17100a;
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  padding: .45rem 1rem;
  font-family: 'Cinzel', serif;
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

/* ══════════════════════════════════════════════════
   TEXTURA DE MADEIRA (seções escuras)
   Grão vertical sutil sobreposto à cor de fundo.
══════════════════════════════════════════════════ */
.woodgrain { position: relative; }
.woodgrain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    repeating-linear-gradient(94deg,
      rgba(0,0,0,.20)   0px, rgba(0,0,0,0)     3px,
      rgba(255,240,210,.014) 5px, rgba(0,0,0,0) 9px,
      rgba(0,0,0,.12)   13px, rgba(0,0,0,0)    19px,
      rgba(0,0,0,.07)   25px, rgba(0,0,0,0)    34px),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.06) 0px, rgba(0,0,0,0) 140px, rgba(0,0,0,.10) 280px, rgba(0,0,0,0) 420px);
}

/* ══════════════════════════════════════════════════
   PARTÍCULAS FLUTUANTES (injetadas via JS por seção)
   Movimento lento, sutil e constante — estilo hero.
══════════════════════════════════════════════════ */
.fp-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.fp {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation-name: fpDrift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}
@keyframes fpDrift {
  0%   { transform: translate(0, 0)         scale(1); }
  50%  { transform: translate(7px, -26px)   scale(1.15); }
  100% { transform: translate(0, 0)         scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .fp { animation: none; }
}

/* ══════════════════════════════════════════════════
   BIBLIOTECA DE PREGAÇÕES (pregacoes.html)
   Classes novas — não afetam as seções existentes.
══════════════════════════════════════════════════ */

/* ── Link de navegação ativo ──────────────────────── */
.nav-link.nav-active { color: var(--gold); }
.nav-link.nav-active::after { width: 100%; }

/* ── Selects no estilo dos f-input ─────────────────
   Herdam a borda/foco de .f-input; só ajusta a seta. */
.f-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a7820' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* ── Limita títulos a 2 linhas (compatível com WebKit) ── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════
   FACADE DO YOUTUBE / ÁUDIO
   Mostra thumbnail leve; o <iframe> só entra ao clicar.
══════════════════════════════════════════════════ */
.yt-facade,
.audio-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  background: #17100a;
}
.yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* hqdefault tem barras pretas em cima/baixo: leve zoom remove a maioria */
  transform: scale(1.34);
  transition: transform .4s ease, filter .4s ease;
}
.yt-facade:hover .yt-thumb { transform: scale(1.4); filter: brightness(1.05); }
.yt-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,16,10,.05) 0%, rgba(23,16,10,.45) 100%);
  transition: background .3s ease;
}
.yt-facade:hover .yt-shade { background: linear-gradient(180deg, rgba(23,16,10,.10) 0%, rgba(23,16,10,.30) 100%); }

/* Botão de play central (vinho da marca com aro dourado) */
.yt-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(110,7,18,.92);
  border: 1px solid rgba(201,168,76,.7);
  box-shadow: 0 6px 24px rgba(23,16,10,.5);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
  z-index: 2;
}
.yt-play svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.yt-facade:hover .yt-play,
.audio-facade:hover .yt-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(139,31,44,.96);
  box-shadow: 0 8px 30px rgba(110,7,18,.55), 0 0 0 6px rgba(201,168,76,.12);
}

/* Selo de duração no canto */
.yt-dur {
  position: absolute;
  bottom: .55rem; right: .55rem;
  background: rgba(23,16,10,.82);
  color: #f3ece0;
  font-family: 'Cinzel', serif;
  font-size: .55rem;
  letter-spacing: .08em;
  padding: .18rem .5rem;
  border-radius: 2px;
  z-index: 2;
}

/* Iframe que substitui a facade após o clique */
.yt-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Bloco de áudio (sem thumbnail) */
.audio-facade {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(201,168,76,.10) 0%, transparent 55%),
    linear-gradient(150deg, #251a10 0%, #382818 100%);
  text-decoration: none;
}
.audio-facade .yt-play {
  background: rgba(6,44,83,.92);          /* azul-marinho da marca p/ áudio */
  border-color: rgba(201,168,76,.6);
}
.audio-facade:hover .yt-play {
  background: rgba(29,79,125,.96);
}
.audio-label {
  position: absolute;
  bottom: .75rem; left: 0; right: 0;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: .55rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243,236,224,.62);
}
/* Player de áudio 4shared injetado ao clicar: ocupa a mesma área da fachada. */
.audio-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: #17100a;
}

/* ══════════════════════════════════════════════════
   SKELETON DE CARREGAMENTO
══════════════════════════════════════════════════ */
@keyframes skelShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skel {
  background: linear-gradient(90deg, rgba(201,168,76,.06) 25%, rgba(201,168,76,.14) 50%, rgba(201,168,76,.06) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  border-radius: 2px;
}
.skel-media { width: 100%; aspect-ratio: 16 / 9; }
.skel-line  { height: .85rem; }
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
}

/* ══════════════════════════════════════════════════
   PAGINAÇÃO
══════════════════════════════════════════════════ */
.pag-btn {
  padding: .7rem 1.5rem;
  font-size: .6rem;
}
.pag-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════════
   MULTI-SELECT COM BUSCA (filtros)
══════════════════════════════════════════════════ */
.ms { position: relative; }
.ms-control {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  min-height: 46px; padding: .4rem .55rem;
  background: #fff; border: 1px solid rgba(56, 40, 24, .16); border-radius: 2px;
  cursor: text; transition: border-color .2s, box-shadow .2s;
}
.ms-control:focus-within {
  border-color: rgba(201, 168, 76, .65);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .10);
}
.ms-chips { display: contents; }
.ms-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  background: rgba(201, 168, 76, .14); border: 1px solid rgba(201, 168, 76, .42);
  color: #4d3722; font-size: .72rem; line-height: 1.2;
  padding: .14rem .22rem .14rem .5rem; border-radius: 999px;
}
.ms-chip button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 999px;
  color: #9a7820; font-size: .9rem; line-height: 1; transition: all .15s;
}
.ms-chip button:hover { background: rgba(154, 120, 32, .18); color: #6e0712; }
.ms-input {
  flex: 1 1 90px; min-width: 90px; border: none; outline: none; background: transparent;
  font-size: .85rem; color: #382818; padding: .25rem 0;
}
.ms-input::placeholder { color: #9b8f7d; }
.ms-pop {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid rgba(56, 40, 24, .16); border-radius: 3px;
  box-shadow: 0 12px 30px rgba(23, 16, 10, .16); max-height: 264px; overflow-y: auto;
}
.ms-list { list-style: none; margin: 0; padding: .25rem; }
.ms-opt {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .65rem; font-size: .82rem; color: #382818; cursor: pointer; border-radius: 2px;
}
.ms-opt:hover, .ms-opt.ms-active { background: rgba(201, 168, 76, .14); }
.ms-hint { color: #b3a892; font-size: .7rem; font-variant-numeric: tabular-nums; }
.ms-empty { padding: .6rem .65rem; font-size: .8rem; color: #9b8f7d; }

/* ══════════════════════════════════════════════════
   DOUTRINA — cards + leitor modal redesenhado
══════════════════════════════════════════════════ */

/* Cards do catálogo */
.doc-card { cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23,16,10,.10); }
.doc-ext {
  font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #9a7820; border: 1px solid rgba(201,168,76,.4); border-radius: 999px; padding: .12rem .5rem;
}

/* Pílulas de categoria (filtro do catálogo) */
.cat-pill {
  padding: .4rem 1rem;
  font-family: 'Cinzel', serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(201,168,76,.28);
  color: #9a7820;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.cat-pill:hover { background: rgba(201,168,76,.08); border-color: rgba(201,168,76,.52); }
.cat-pill-active { background: rgba(201,168,76,.15); border-color: rgba(201,168,76,.58); color: #6b5012; }

/* ── MODAL OVERLAY ────────────────────────────── */
#doc-reader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: stretch; justify-content: center; }
#doc-reader.hidden { display: none; }
.dr-backdrop {
  position: absolute; inset: 0;
  background: rgba(23,16,10,.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dr-panel {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 820px;
  max-height: 94vh;
  background: #fbf7ef;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(201,168,76,.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drIn .3s cubic-bezier(.16,1,.3,1);
}
@media (min-width: 640px) { .dr-panel { margin: 3vh auto; } }
@keyframes drIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Botão fechar */
.dr-fechar {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #4d3722;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(56,40,24,.14);
  border-radius: 50%;
  transition: all .18s;
}
.dr-fechar:hover { background: #fff; color: #6e0712; border-color: rgba(110,7,18,.3); box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* Scroll area */
.dr-scroll { overflow-y: auto; padding: clamp(1.6rem,4vw,2.8rem); }
.dr-scroll::-webkit-scrollbar       { width: 4px; }
.dr-scroll::-webkit-scrollbar-track { background: rgba(201,168,76,.06); }
.dr-scroll::-webkit-scrollbar-thumb { background: rgba(201,168,76,.4); border-radius: 2px; }

/* Cabeçalho do modal */
.dr-head {
  border-bottom: 1px solid rgba(56,40,24,.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.8rem;
}

/* Corpo do modal */
.dr-corpo { max-width: 66ch; }

/* ── BLOCOS DE CONTEÚDO ────────────────────────── */
.dr-p { color: #4a4136; line-height: 1.82; margin: 0 0 1.1rem; text-align: justify; }

.dr-verso {
  color: #382818;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.78;
  text-align: center;
  margin: .18rem 0;
  padding: .05rem 1.5rem;
}

.dr-h {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #251a10;
  font-size: 1.18rem;
  margin: 2rem 0 .8rem;
}

.dr-num {
  display: inline-flex;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 .4rem;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,.13);
  border: 1px solid rgba(201,168,76,.38);
  border-radius: 999px;
  color: #9a7820;
  font-family: 'Cinzel', serif;
  font-size: .66rem;
  flex-shrink: 0;
}

.dr-r   { color: #4a4136; line-height: 1.82; text-align: justify; }
.dr-refs { color: #a4906c; font-size: .72rem; font-style: italic; margin-top: .5rem; letter-spacing: .01em; }
.dr-nota {
  color: #8a7a63; font-size: .84rem; font-style: italic; line-height: 1.72;
  padding: .85rem 1rem; margin-top: 1.2rem;
  background: rgba(201,168,76,.07);
  border-left: 2px solid rgba(201,168,76,.48);
  border-radius: 2px;
}
.dr-fonte { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(56,40,24,.1); font-size: .82rem; color: #8a7a63; }
.dr-fonte a { color: #9a7820; border-bottom: 1px solid rgba(201,168,76,.42); }

/* ── ACCORDION DENTRO DO MODAL — items ────────── */
.dr-acc-item {
  border: 1px solid rgba(56,40,24,.10);
  border-radius: 3px;
  margin-bottom: .45rem;
  overflow: hidden;
  transition: border-color .22s, box-shadow .22s;
}
.dr-acc-item.is-open {
  border-color: rgba(201,168,76,.45);
  box-shadow: 0 6px 22px rgba(23,16,10,.08);
}
.dr-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .88rem 1rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background .2s;
}
.dr-acc-trigger:hover { background: rgba(201,168,76,.06); }
.dr-acc-item.is-open .dr-acc-trigger { background: rgba(201,168,76,.09); }
.dr-acc-title {
  flex: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: .98rem;
  color: #251a10;
  line-height: 1.4;
  text-align: left;
}
.dr-acc-chevron {
  flex-shrink: 0;
  width: .9rem;
  height: .9rem;
  color: rgba(154,120,32,.5);
  transition: transform .32s cubic-bezier(.4,0,.2,1), color .2s;
}
.dr-acc-item.is-open .dr-acc-chevron { transform: rotate(180deg); color: var(--gold); }
.dr-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
}
.dr-acc-body-inner {
  padding: .5rem 1rem 1rem 1rem;
  border-top: 1px solid rgba(56,40,24,.08);
}

/* ── ACCORDION DENTRO DO MODAL — Q&A ─────────── */
.dr-qa-acc { border-bottom: 1px solid rgba(56,40,24,.08); }
.dr-qa-acc:last-child { border-bottom: none; }
.dr-qa-trigger {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  width: 100%;
  padding: .9rem 0;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: opacity .15s;
}
.dr-qa-trigger:hover { opacity: .82; }
.dr-qa-q-text {
  flex: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: #251a10;
  font-size: .93rem;
  line-height: 1.52;
}
.dr-qa-chevron {
  flex-shrink: 0;
  width: .85rem;
  height: .85rem;
  color: rgba(154,120,32,.45);
  transition: transform .3s cubic-bezier(.4,0,.2,1), color .2s;
  margin-top: .16rem;
}
.dr-qa-acc.is-open .dr-qa-chevron { transform: rotate(180deg); color: var(--gold); }
.dr-qa-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .36s cubic-bezier(.4,0,.2,1);
}
.dr-qa-body-inner { padding: 0 0 1rem 2.25rem; }

/* ── SEÇÕES COLAPSÁVEIS DENTRO DO MODAL ───────── */
.dr-section { margin-bottom: 1.6rem; }
.dr-section-trigger {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,.22);
  padding: .4rem 0 .6rem;
  margin-bottom: .9rem;
  transition: border-color .2s;
}
.dr-section-trigger:hover { border-color: rgba(201,168,76,.5); }
.dr-section-title {
  flex: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #251a10;
  font-size: 1.12rem;
  margin: 0;
}
.dr-section-chevron {
  flex-shrink: 0;
  width: .9rem; height: .9rem;
  color: rgba(154,120,32,.5);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.dr-section.is-closed .dr-section-chevron { transform: rotate(-90deg); }
.dr-section-body {
  overflow: hidden;
  transition: max-height .42s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════
   LOGO — halo dourado + varredura de luz ao hover
══════════════════════════════════════════════════ */

/* Wrapper externo: controla transform e glow (filter pode extravazar) */
.logo-glow-wrap {
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  transition:
    transform .65s cubic-bezier(.22, 1, .36, 1),
    filter .65s ease;
}

/* Wrapper interno: overflow:hidden apenas para clipar o raio de luz */
.logo-shine-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.logo-shine-wrap img { display: block; }

/* Raio de luz dourado (varrida diagonal) */
.logo-shine-wrap::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -70%;
  width: 44%;
  height: 140%;
  background: linear-gradient(
    108deg,
    transparent 18%,
    rgba(255, 248, 210, .18) 43%,
    rgba(255, 248, 195, .38) 50%,
    rgba(255, 248, 210, .18) 57%,
    transparent 82%
  );
  transform: skewX(-12deg);
  pointer-events: none;
  z-index: 3;
}

@keyframes logoShimmer {
  from { left: -70%; opacity: 0; }
  7%   { opacity: 1; }
  93%  { opacity: 1; }
  to   { left: 130%; opacity: 0; }
}

/* Efeito disparado pelo link pai (header) ou pelo wrapper direto (footer) */
.logo-link:hover .logo-glow-wrap,
.logo-glow-wrap:hover {
  transform: scale(1.07) translateY(-2px);
  filter:
    drop-shadow(0 0 22px rgba(201, 168, 76, .72))
    drop-shadow(0 0 8px  rgba(201, 168, 76, .44))
    brightness(1.07);
}

.logo-link:hover .logo-shine-wrap::before,
.logo-glow-wrap:hover .logo-shine-wrap::before {
  animation: logoShimmer .80s cubic-bezier(.4, 0, .2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .logo-glow-wrap { transition: none; }
  .logo-shine-wrap::before { display: none; }
  .logo-link:hover .logo-glow-wrap,
  .logo-glow-wrap:hover { filter: brightness(1.05); transform: none; }
}

/* ── Modal de transcrição ── */
.btn-transcricao { align-self: flex-start; }
.transcricao-box { border-radius: 2px; animation: transcIn .22s cubic-bezier(.4, 0, .2, 1); }
@keyframes transcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.transcricao-corpo p { margin: 0; text-align: justify; text-justify: inter-word; }
.transcricao-corpo p + p { margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .transcricao-box { animation: none; } }
