/* ==========================================================================
   Igreja Batista Reformada de Belém (IBRB) | Design System Premium
   Identidade: petróleo profundo (#023E52) e laranja da logo (#FB7C09).
   Linguagem: minimalista, superfícies de vidro, gradientes sutis de luz,
   tipografia editorial (Newsreader) com texto limpo (Instrument Sans).
   Prioridade mobile: a maior parte dos visitantes acessa pelo celular.
   ========================================================================== */

:root {
  /* Cores da marca */
  --brand: #023E52;
  --brand-600: #035270;
  --brand-700: #023E52;
  --brand-800: #012F3F;
  --brand-900: #01222D;
  --brand-950: #00161E;
  --brand-dark: #012B3A;
  --brand-soft: #175468;
  --brand-slate: #56707A;

  --accent-graphic: #FB7C09;
  --accent-warm: #FF9A3D;
  --accent: #B35203;              /* texto em laranja com contraste AA */
  --accent-hover: #8F4102;
  --accent-light: #FFB76B;        /* laranja para fundos escuros */
  --accent-tint: #FFF3E6;

  /* Superfícies */
  --bg: #F4F5F3;
  --bg-cool: #EEF3F3;
  --surface: #FFFFFF;
  --surface-alt: #F9FAF8;
  --surface-tint: #EEF1F0;
  --line: rgba(2, 62, 82, 0.09);
  --line-strong: rgba(2, 62, 82, 0.16);
  --border: rgba(2, 62, 82, 0.09);
  --border-strong: rgba(2, 62, 82, 0.16);
  --ink: #0D1E25;
  --ink-muted: #4F626A;
  --ink-soft: #6B7C83;

  /* Vidro */
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-line: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(1, 34, 45, 0.58);
  --glass-dark-line: rgba(255, 255, 255, 0.14);
  --blur: saturate(170%) blur(18px);

  /* Gradientes de marca */
  --grad-brand: linear-gradient(135deg, #04607F 0%, #023E52 48%, #012634 100%);
  --grad-accent: linear-gradient(135deg, #FF9A3D 0%, #FB7C09 45%, #E06A04 100%);
  --grad-ring: linear-gradient(140deg, rgba(251, 124, 9, 0.55), rgba(255, 255, 255, 0.9) 34%, rgba(2, 62, 82, 0.22) 100%);
  --grad-night:
    radial-gradient(80% 120% at 100% 0%, rgba(251, 124, 9, 0.16) 0%, transparent 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(4, 96, 127, 0.55) 0%, transparent 60%),
    linear-gradient(160deg, #034A62 0%, #012F3F 55%, #011B24 100%);

  /* Tipografia */
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-nav: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --type-h1: clamp(1.85rem, 4.2vw, 3.35rem);
  --type-h2: clamp(2rem, 4.4vw, 3.2rem);
  --type-h3: clamp(1.28rem, 2vw, 1.55rem);
  --type-h4: 1.12rem;
  --type-kicker: 0.74rem;
  --type-ui: 0.94rem;
  --type-lead: clamp(1.02rem, 1.4vw, 1.14rem);
  --type-body: 1rem;
  --type-note: 0.85rem;
  --tracking-display: -0.022em;
  --tracking-sub: -0.012em;
  --tracking-kicker: 0.14em;
  --tracking-ui: 0.01em;

  /* Movimento */
  --duration-quick: 160ms;
  --duration-fast: 260ms;
  --duration-medium: 420ms;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Geometria */
  --container-max: 1180px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(1, 34, 45, 0.05), 0 2px 8px -2px rgba(1, 34, 45, 0.06);
  --shadow-md: 0 1px 2px rgba(1, 34, 45, 0.04), 0 10px 30px -12px rgba(1, 34, 45, 0.16);
  --shadow-lg: 0 2px 6px rgba(1, 34, 45, 0.05), 0 24px 60px -22px rgba(1, 34, 45, 0.30);
  --shadow-xl: 0 2px 8px rgba(1, 34, 45, 0.06), 0 40px 90px -30px rgba(1, 34, 45, 0.38);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  color: var(--brand);
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(251, 124, 9, 0.22); color: var(--brand-900); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-graphic);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 18px;
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

/* Seções: alternância suave de superfícies, sem linhas duras */
.section {
  position: relative;
  padding-block: 64px;
  scroll-margin-top: 38px;
}
.section--white { background: var(--surface); }
.section--tint {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(2, 62, 82, 0.05), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(251, 124, 9, 0.045), transparent 70%),
    var(--bg);
}
@media (min-width: 768px) {
  .section { padding-block: 88px; scroll-margin-top: 26px; }
}
@media (min-width: 1024px) {
  .section { padding-block: 112px; scroll-margin-top: 18px; }
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 44px; }
}
.section-title {
  position: relative;
  font-size: var(--type-h2);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: var(--tracking-display);
  padding-top: 22px;
}
.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-accent);
}
.section-lead {
  margin-top: 14px;
  font-size: var(--type-lead);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 56ch;
}

/* ==========================================================================
   Botões e controles
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--type-ui);
  font-weight: 600;
  letter-spacing: var(--tracking-ui);
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  isolation: isolate;
  transition: transform var(--duration-fast) var(--ease-smooth-out),
              box-shadow var(--duration-fast) var(--ease-smooth-out),
              background-color var(--duration-quick) ease,
              border-color var(--duration-quick) ease,
              color var(--duration-quick) ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--grad-brand);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px -12px rgba(2, 62, 82, 0.7);
}
.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 32px -14px rgba(2, 62, 82, 0.8);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.btn--secondary:hover:not(:disabled) {
  background: #FFFFFF;
  border-color: rgba(2, 62, 82, 0.3);
  transform: translateY(-1px);
}

.btn--compact {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.88rem;
}

/* Abas em controle segmentado */
.history-mode,
.credo-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(2, 62, 82, 0.06);
  border: 1px solid var(--line);
}
.tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: var(--tracking-ui);
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-smooth-out),
              color var(--duration-quick) ease,
              box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.tab-pill:hover { color: var(--brand); }
.tab-pill.is-active {
  background: #FFFFFF;
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(1, 34, 45, 0.08), 0 6px 16px -8px rgba(1, 34, 45, 0.25);
}

/* Etiqueta editorial reutilizada (anos, cargos, marcadores) */
.kicker-base,
.history-step__tag,
.timeline-card__year,
.credo-intro__badge,
.acc-ref,
.leader-card__role,
.leader-modal__role,
.schedule-item__day,
.milestone-pill__year,
.pix-row dt {
  font-family: var(--font-sans);
  font-size: var(--type-kicker);
  font-weight: 600;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}

/* ==========================================================================
   Cabeçalho de vidro
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration-fast) var(--ease-smooth-out),
              border-color var(--duration-fast) var(--ease-smooth-out),
              box-shadow var(--duration-fast) var(--ease-smooth-out);
}
/* O vidro fica num pseudo-elemento para que o menu móvel também possa desfocar a página */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(1, 34, 45, 0.35);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}
@media (min-width: 1024px) {
  .header-bar { min-height: 76px; }
}

.header-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  min-height: 44px;
}
.header-brand__logo {
  height: 38px;
  width: auto;
  display: block;
}
@media (min-width: 1024px) {
  .header-brand__logo { height: 48px; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-pill);
}
@media (min-width: 1080px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color var(--duration-quick) ease, background-color var(--duration-quick) ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  border-radius: 2px;
  background: var(--accent-graphic);
  transform: scaleX(0);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.nav-link:hover { color: var(--brand); background: rgba(2, 62, 82, 0.05); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="true"] { color: var(--brand); }
.nav-link[aria-current="true"]::after { transform: scaleX(1); }
@media (min-width: 1240px) {
  .nav-link { padding: 9px 14px; font-size: 0.92rem; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--duration-quick) ease, transform var(--duration-fast) var(--ease-smooth-out);
}
.menu-toggle:hover { background: #FFFFFF; }
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle[aria-expanded="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}
@media (min-width: 1080px) {
  .menu-toggle { display: none; }
}

/* Menu móvel em painel de vidro */
.mobile-drawer {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  right: 12px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-xl);
  transform-origin: top center;
  animation: drawer-in 0.34s var(--ease-smooth-out) both;
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
}
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
}
.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  transition: background-color var(--duration-quick) ease, color var(--duration-quick) ease;
}
.mobile-drawer a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.35;
  transition: opacity var(--duration-quick) ease, transform var(--duration-fast) var(--ease-smooth-out);
}
.mobile-drawer a + a { border-top: 1px solid var(--line); }
.mobile-drawer a:hover,
.mobile-drawer a:active {
  background: rgba(2, 62, 82, 0.05);
}
.mobile-drawer a:hover::after { opacity: 0.9; transform: translateX(3px) rotate(45deg); color: var(--accent-graphic); }

/* ==========================================================================
   1. Abertura (Carrossel + Próxima Programação + Programação semanal)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 14px 0 64px;
  background:
    radial-gradient(70% 55% at 0% 0%, rgba(4, 96, 127, 0.16) 0%, transparent 70%),
    radial-gradient(55% 45% at 100% 8%, rgba(251, 124, 9, 0.13) 0%, transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(2, 62, 82, 0.07) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-cool) 0%, var(--bg) 100%);
}
@media (min-width: 768px) {
  .hero { padding: 26px 0 88px; }
}
@media (min-width: 1024px) {
  .hero { padding: 32px 0 104px; }
}

.hero__stage-wrap {
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) {
  .hero__stage-wrap { padding-inline: 12px; }
}

/* ---- Carrossel ------------------------------------------------------- */
.hero-carousel {
  --drag: 0px;
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xl);
  touch-action: pan-y;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
}
@media (min-width: 768px) {
  .hero-carousel { border-radius: var(--radius-xl); }
}

/* Todos os destaques ocupam a mesma célula: a altura nunca "pula" entre eles */
.hero-carousel__stage {
  position: relative;
  display: grid;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}
.hero-carousel__stage > .sr-only { position: absolute; }

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  will-change: opacity, transform, clip-path;
}
.hero-slide.is-leaving {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
}

/* Transições escolhidas no painel (suave, deslizar, zoom, cortina, elevar) */
.hero-carousel[data-transition="suave"] .hero-slide.is-entering {
  animation: hc-fade-in 1s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="suave"] .hero-slide.is-leaving {
  animation: hc-fade-out 1s var(--ease-smooth-out) both;
}

.hero-carousel[data-transition="deslizar"] .hero-slide.is-entering {
  animation: hc-slide-in-next 0.85s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="deslizar"] .hero-slide.is-leaving {
  animation: hc-slide-out-next 0.85s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="deslizar"][data-dir="prev"] .hero-slide.is-entering {
  animation: hc-slide-in-prev 0.85s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="deslizar"][data-dir="prev"] .hero-slide.is-leaving {
  animation: hc-slide-out-prev 0.85s var(--ease-smooth-out) both;
}

.hero-carousel[data-transition="zoom"] .hero-slide.is-entering {
  animation: hc-fade-in 1s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="zoom"] .hero-slide.is-entering .hero-slide__img {
  animation: hc-zoom-in 1.2s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="zoom"] .hero-slide.is-leaving .hero-slide__img {
  animation: hc-zoom-out 1s var(--ease-smooth-out) both;
}

.hero-carousel[data-transition="cortina"] .hero-slide.is-entering {
  animation: hc-curtain-next 0.95s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="cortina"][data-dir="prev"] .hero-slide.is-entering {
  animation: hc-curtain-prev 0.95s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="cortina"] .hero-slide.is-leaving .hero-slide__img {
  animation: hc-recede 0.95s var(--ease-smooth-out) both;
}

.hero-carousel[data-transition="elevar"] .hero-slide.is-entering {
  animation: hc-rise-in 0.9s var(--ease-smooth-out) both;
}
.hero-carousel[data-transition="elevar"] .hero-slide.is-leaving {
  animation: hc-fade-out 0.9s var(--ease-smooth-out) both;
}

@keyframes hc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hc-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes hc-slide-in-next { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes hc-slide-out-next { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-24%); opacity: 0.3; } }
@keyframes hc-slide-in-prev { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes hc-slide-out-prev { from { transform: translateX(0); opacity: 1; } to { transform: translateX(24%); opacity: 0.3; } }
@keyframes hc-zoom-in { from { transform: scale(1.08); filter: blur(6px); } to { transform: scale(1); filter: blur(0); } }
@keyframes hc-zoom-out { from { transform: scale(1); opacity: 1; } to { transform: scale(0.97); opacity: 0.5; } }
@keyframes hc-curtain-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes hc-curtain-prev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hc-recede { from { transform: scale(1); filter: brightness(1); } to { transform: scale(0.96); filter: brightness(0.86); } }
@keyframes hc-rise-in { from { opacity: 0; transform: translateY(22px) scale(0.985); } to { opacity: 1; transform: none; } }

.hero-slide.is-entering .hero-slide__subtitle {
  animation: hc-copy-in 0.7s 0.12s var(--ease-smooth-out) both;
}
.hero-slide.is-entering .hero-slide__title {
  animation: hc-copy-in 0.8s 0.2s var(--ease-smooth-out) both;
}
.hero-slide.is-entering .hero-slide__desc {
  animation: hc-copy-in 0.85s 0.28s var(--ease-smooth-out) both;
}
@keyframes hc-copy-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Imagem: leve aproximação contínua (efeito Ken Burns) e resposta ao arrastar */
.hero-slide__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F3EEE6;
}
.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  display: block;
  transform-origin: 70% 50%;
  transform: scale(1.001);
  translate: 0 0;
  transition: transform 9s linear, translate 0.5s var(--ease-smooth-out);
}
.hero-slide.is-active .hero-slide__img {
  transform: scale(1.055);
}
.hero-carousel.is-dragging .hero-slide.is-active .hero-slide__img {
  translate: calc(var(--drag) * 0.35) 0;
  transition: transform 9s linear, translate 0s;
}

.hero-slide__scrim {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Texto no celular: painel claro abaixo da imagem, com espaço para os controles */
.hero-slide__overlay {
  position: relative;
  z-index: 2;
  padding: 22px 22px 76px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(251, 124, 9, 0.07), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FBFBFA 100%);
}
.hero-slide--light-text .hero-slide__overlay {
  background: var(--grad-night);
}

.hero-slide__copy {
  max-width: 100%;
  text-align: left;
  transition: transform 0.7s var(--ease-smooth-out), opacity 0.7s var(--ease-smooth-out);
}
.hero-slide:not(.is-active) .hero-slide__copy {
  opacity: 0;
  transform: translateY(10px);
}
.hero-slide.is-active .hero-slide__copy {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide__subtitle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.05vw, 0.82rem);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  line-height: 1.45;
  margin-bottom: 12px;
}

.hero-slide__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--type-h1);
  line-height: 1.04;
  letter-spacing: -0.026em;
  text-wrap: balance;
  margin-bottom: 14px;
}

.hero-slide__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.96rem, 1.2vw, 1.06rem);
  line-height: 1.6;
  max-width: 46ch;
}

/* Setas: círculos de vidro */
.hero-carousel__arrow {
  position: absolute;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(2, 62, 82, 0.12);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--brand);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--duration-quick) ease, color var(--duration-quick) ease,
              transform var(--duration-fast) var(--ease-smooth-out), opacity var(--duration-fast) ease;
}
.hero-carousel__arrow:hover { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
.hero-carousel__arrow:active { transform: scale(0.92); }

/* No celular, as setas ficam no canto inferior direito do painel de texto */
.hero-carousel__arrow { bottom: 18px; top: auto; }
.hero-carousel__arrow--prev { right: 70px; }
.hero-carousel__arrow--next { right: 18px; }

/* Indicadores com barra de progresso */
.hero-carousel__dots {
  position: absolute;
  left: 22px;
  bottom: 36px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-carousel__dot {
  position: relative;
  overflow: hidden;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(2, 62, 82, 0.2);
  cursor: pointer;
  transition: width 0.45s var(--ease-smooth-out), background-color 0.25s ease;
}
/* Área de toque ampliada sem alterar o desenho */
.hero-carousel__dot::before {
  content: "";
  position: absolute;
  inset: -14px -4px;
}
.hero-carousel__dot:hover { background: rgba(2, 62, 82, 0.4); }
.hero-carousel__dot.is-active {
  width: 42px;
  background: rgba(2, 62, 82, 0.14);
}
.hero-carousel__dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-accent);
  transform-origin: left center;
  transform: scaleX(1);
}
.hero-carousel.has-autoplay .hero-carousel__dot.is-active::after {
  transform: scaleX(0);
}
.hero-carousel.has-autoplay .hero-carousel__dot.is-active.is-animating::after {
  animation: hc-dot-fill var(--carousel-duration, 6000ms) linear forwards;
}
.hero-carousel.is-paused .hero-carousel__dot.is-active.is-animating::after {
  animation-play-state: paused;
}
@keyframes hc-dot-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Destaques com texto claro: controles claros no celular */
.hero-carousel.is-light .hero-carousel__dot { background: rgba(255, 255, 255, 0.3); }
.hero-carousel.is-light .hero-carousel__dot.is-active { background: rgba(255, 255, 255, 0.2); }

/* Tablet e computador: texto sobre a imagem, em painel de vidro */
@media (min-width: 641px) {
  .hero-carousel__stage {
    aspect-ratio: 16 / 9;
  }
  .hero-slide__media {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }
  .hero-slide__img { object-position: center; }
  .hero-slide__scrim { display: block; }
  .hero-slide--dark-text .hero-slide__scrim {
    background: linear-gradient(90deg, rgba(252, 248, 242, 0.55) 0%, rgba(252, 248, 242, 0.12) 50%, transparent 70%);
  }
  .hero-slide--light-text .hero-slide__scrim {
    background: linear-gradient(90deg, rgba(1, 28, 38, 0.78) 0%, rgba(1, 28, 38, 0.4) 50%, rgba(1, 28, 38, 0.05) 100%);
  }
  .hero-slide__overlay {
    height: 100%;
    display: flex;
    align-items: center;
    background: transparent;
    padding: clamp(24px, 4vw, 56px) clamp(24px, 5vw, 72px) clamp(64px, 8vw, 104px);
  }
  .hero-slide--light-text .hero-slide__overlay { background: transparent; }

  .hero-slide__copy {
    position: relative;
    max-width: min(54%, 560px);
    padding: clamp(20px, 2.6vw, 36px) clamp(22px, 2.8vw, 40px);
    border-radius: var(--radius-lg);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.26) 100%);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    backdrop-filter: saturate(170%) blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 50px -28px rgba(1, 34, 45, 0.45);
  }
  /* Reflexo de vidro no canto superior */
  .hero-slide__copy::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 38%);
    pointer-events: none;
  }
  .hero-slide__copy > * { position: relative; }
  .hero-slide--light-text .hero-slide__copy {
    background: linear-gradient(150deg, rgba(1, 34, 45, 0.62) 0%, rgba(1, 34, 45, 0.36) 100%);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 50px -28px rgba(0, 0, 0, 0.6);
  }
  .hero-slide--light-text .hero-slide__copy::before {
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 40%);
  }

  .hero-carousel__arrow {
    top: 50%;
    bottom: auto;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    opacity: 0;
  }
  .hero-carousel__arrow--prev { left: 20px; right: auto; transform: translateX(-8px); }
  .hero-carousel__arrow--next { right: 20px; transform: translateX(8px); }
  .hero-carousel:hover .hero-carousel__arrow,
  .hero-carousel:focus-within .hero-carousel__arrow {
    opacity: 1;
    transform: none;
  }

  .hero-carousel__dots {
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 10px 14px;
    gap: 7px;
    border-radius: var(--radius-pill);
    background: rgba(1, 34, 45, 0.42);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }
  .hero-carousel__dot,
  .hero-carousel.is-light .hero-carousel__dot { background: rgba(255, 255, 255, 0.45); }
  .hero-carousel__dot:hover { background: rgba(255, 255, 255, 0.85); }
  .hero-carousel__dot.is-active,
  .hero-carousel.is-light .hero-carousel__dot.is-active { background: rgba(255, 255, 255, 0.28); }
}

/* Dispositivos de toque (tablets): setas sempre visíveis */
@media (min-width: 641px) and (hover: none) {
  .hero-carousel__arrow { opacity: 1; transform: none; }
  .hero-carousel__arrow--prev { transform: none; }
}

@media (min-width: 1024px) {
  .hero-slide--dark-text .hero-slide__scrim {
    background: linear-gradient(90deg, rgba(252, 248, 242, 0.35) 0%, transparent 55%);
  }
  .hero-carousel__dots { bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide__copy,
  .hero-slide__img,
  .hero-carousel__dot {
    transition: none;
  }
  .hero-slide.is-active .hero-slide__img { transform: none; }
}

.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__below { margin-top: 18px; }
@media (min-width: 768px) {
  .hero__below { margin-top: 28px; }
}

/* ---- Próxima programação: cartão de vidro com borda luminosa ---------- */
.next-card {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.66)) padding-box,
    var(--grad-ring) border-box;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  scroll-margin-top: 92px;
}
.next-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(251, 124, 9, 0.12), transparent);
  pointer-events: none;
}
.next-card__bar { display: none; }
.next-card__body {
  position: relative;
  padding: 22px 20px 20px;
}
@media (min-width: 640px) {
  .next-card__body { padding: 28px 34px; }
}

.next-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.next-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(2, 62, 82, 0.07);
  font-family: var(--font-sans);
  font-size: var(--type-kicker);
  font-weight: 600;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--brand);
}
.next-badge svg { color: var(--accent-graphic); }
.next-badge--live {
  background: var(--accent-tint);
  color: var(--accent);
}
.next-badge--live svg { animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}
.next-clock {
  font-size: var(--type-note);
  font-weight: 500;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.next-card__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 640px) {
  .next-card__main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
}

.next-card__title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.024em;
}
.next-card__when {
  margin-top: 8px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent);
}
.next-card__addr {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: var(--type-note);
  line-height: 1.5;
  color: var(--ink-muted);
}
.next-card__addr svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-slate); }
@media (max-width: 639px) {
  .next-card__main > div:last-child .btn { width: 100%; }
}

/* ---- Programação semanal -------------------------------------------- */
.schedule-wrap {
  width: 100%;
  margin: 40px auto 0;
}
.schedule-wrap__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-inline: 4px;
}
.schedule-wrap__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: var(--tracking-sub);
  color: var(--brand);
}
.schedule-wrap__tz {
  font-size: var(--type-note);
  color: var(--ink-soft);
}

/* Celular: lista elegante em uma única folha de vidro */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: center;
  padding: 15px 18px;
  transition: background-color var(--duration-quick) ease;
}
.schedule-item + .schedule-item { border-top: 1px solid var(--line); }
.schedule-item:hover { background: rgba(255, 255, 255, 0.8); }
.schedule-item__top { display: contents; }
.schedule-item__day {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.68rem;
  color: var(--brand-slate);
}
.schedule-item__time {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
  color: var(--brand);
  white-space: nowrap;
}
.schedule-item__name {
  grid-column: 1;
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.schedule-item__note {
  grid-column: 1;
  margin-top: 2px;
  font-size: var(--type-note);
  color: var(--ink-muted);
}
.schedule-item--current {
  background: linear-gradient(90deg, rgba(251, 124, 9, 0.1), rgba(251, 124, 9, 0.02));
}
.schedule-item--current .schedule-item__time { color: var(--accent); }
.schedule-item--current .schedule-item__day { color: var(--accent); }
.schedule-item--current::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--accent-graphic);
  box-shadow: 0 0 0 4px rgba(251, 124, 9, 0.18);
}

/* Tablet e computador: cartões independentes */
@media (min-width: 640px) {
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .schedule-item,
  .schedule-item + .schedule-item {
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration-fast) var(--ease-smooth-out), box-shadow var(--duration-fast) var(--ease-smooth-out), background-color var(--duration-quick) ease;
  }
  .schedule-item:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  .schedule-grid .schedule-item.schedule-item--current {
    border-color: rgba(251, 124, 9, 0.38);
    background: linear-gradient(135deg, #FFF6EC 0%, #FFFFFF 100%);
  }
  .schedule-item--current::before { left: auto; right: 14px; top: 16px; margin-top: 0; }
}
@media (min-width: 960px) {
  .schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* ==========================================================================
   2. História dos Batistas: linha do tempo
   ========================================================================== */
.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-left: 26px;
}
/* Linha vertical no celular */
.timeline-grid::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-graphic) 0%, rgba(2, 62, 82, 0.25) 60%, rgba(2, 62, 82, 0.05) 100%);
}

.timeline-card {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-smooth-out), box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.timeline-card::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--accent-graphic);
  box-shadow: 0 0 0 4px rgba(251, 124, 9, 0.14);
}
.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.timeline-card__year {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  line-height: 1.4;
  background: var(--accent-tint);
  color: var(--accent);
}
.timeline-card__title {
  margin-top: 14px;
  font-size: var(--type-h3);
  font-weight: 500;
  letter-spacing: var(--tracking-sub);
}
.timeline-card__text {
  margin-top: 10px;
  font-size: 0.97rem;
  color: var(--ink-muted);
  line-height: 1.68;
}

/* Computador: linha do tempo horizontal */
@media (min-width: 720px) {
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-left: 0;
  }
  .timeline-grid::before { display: none; }
  .timeline-card::before { display: none; }
}
@media (min-width: 1080px) {
  .timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding-top: 34px;
  }
  .timeline-grid::before {
    display: block;
    left: 0;
    right: 0;
    top: 6px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-graphic) 0%, rgba(2, 62, 82, 0.25) 55%, rgba(2, 62, 82, 0.06) 100%);
  }
  .timeline-card::before {
    display: block;
    left: 22px;
    top: -34px;
  }
}

/* ==========================================================================
   3. História da Nossa Igreja
   ========================================================================== */
.history-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.history-header .section-head { margin-bottom: 0; }

.history-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .history-card { border-radius: var(--radius-xl); }
}

/* Marcos: trilho rolável com fichas */
.milestone-bar {
  position: relative;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-alt), #FFFFFF);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.milestone-bar::-webkit-scrollbar { display: none; }
@media (min-width: 1080px) {
  .milestone-bar { -webkit-mask-image: none; mask-image: none; }
}
.milestone-tabs {
  display: flex;
  gap: 6px;
  min-width: max-content;
}
.milestone-pill {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 56px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color var(--duration-quick) ease, color var(--duration-quick) ease,
              box-shadow var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-quick) ease;
}
.milestone-pill:hover {
  background: rgba(2, 62, 82, 0.04);
  color: var(--brand);
}
.milestone-pill.is-active {
  background: #FFFFFF;
  color: var(--brand);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(1, 34, 45, 0.06), 0 8px 20px -10px rgba(1, 34, 45, 0.28);
}
.milestone-pill__year {
  display: block;
  font-size: 0.68rem;
  color: var(--accent);
}
@media (min-width: 1080px) {
  .milestone-tabs { min-width: 0; }
}

.history-progress {
  height: 3px;
  background: rgba(2, 62, 82, 0.06);
}
.history-progress__fill {
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: var(--grad-accent);
  transition: width var(--duration-medium) var(--ease-smooth-out);
}

.history-stage {
  padding: 22px 18px 24px;
}
@media (min-width: 768px) {
  .history-stage { padding: 40px 44px; }
}

.history-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}
@media (min-width: 768px) {
  .history-split {
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
  }
  .history-split--flip .history-frame-wrap { order: 2; }
}

.history-frame {
  position: relative;
  margin: 0;
}
.history-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  box-shadow: 0 2px 6px rgba(1, 34, 45, 0.06), 0 22px 44px -26px rgba(1, 34, 45, 0.5);
}
.history-frame figcaption {
  padding: 12px 4px 0;
  font-size: var(--type-note);
  color: var(--ink-soft);
  line-height: 1.5;
}
.history-frame--dark figcaption { color: rgba(255, 255, 255, 0.7); }

#ms-photo { animation: ms-in 0.6s var(--ease-smooth-out); }
@keyframes ms-in { from { opacity: 0.4; } to { opacity: 1; } }

.history-step__tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
}
.history-step__title {
  margin-top: 14px;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
}
.history-step__text {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}
.history-step__nav {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.history-step__count {
  font-size: var(--type-note);
  font-weight: 500;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 479px) {
  .history-step__nav { display: grid; grid-template-columns: 1fr 1fr; }
  .history-step__count { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}

.history-full-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.history-full-item {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .history-full-item { padding: 36px 40px; }
}

/* Fechamento (1 Samuel 7.12): bloco noturno com brilho âmbar */
.history-closing {
  position: relative;
  margin-top: 20px;
  padding: 22px 18px 26px;
  border-radius: var(--radius-lg);
  background: var(--grad-night);
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.history-closing::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
@media (min-width: 768px) {
  .history-closing { padding: 44px; border-radius: var(--radius-xl); margin-top: 28px; }
}
.history-closing .history-frame img {
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.history-closing__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}
.history-closing__verse {
  margin: 22px 0 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}
.history-closing__ref {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: var(--type-kicker);
  font-weight: 600;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--accent-light);
}
.history-closing__ref::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ==========================================================================
   4. Distintivos e listas expansíveis
   ========================================================================== */
.acc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details.church-acc {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-quick) ease;
}
.section--white details.church-acc { background: var(--surface-alt); }
details.church-acc:hover { border-color: var(--line-strong); }
details.church-acc[open] {
  background: var(--surface);
  border-color: rgba(2, 62, 82, 0.14);
  box-shadow: var(--shadow-md);
}

details.church-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 18px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  color: var(--brand);
}
details.church-acc summary::-webkit-details-marker { display: none; }

details.church-acc summary .chev {
  flex-shrink: 0;
  box-sizing: content-box;
  padding: 7px;
  border-radius: 50%;
  background: rgba(2, 62, 82, 0.06);
  color: var(--brand);
  transition: transform var(--duration-fast) var(--ease-smooth-out), background-color var(--duration-quick) ease, color var(--duration-quick) ease;
}
details.church-acc summary:hover .chev { background: rgba(2, 62, 82, 0.1); }
details.church-acc[open] summary .chev {
  transform: rotate(180deg);
  background: var(--brand);
  color: #FFFFFF;
}

details.church-acc[open] .acc-body { animation: acc-open 0.4s var(--ease-smooth-out); }
@keyframes acc-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.acc-body {
  padding: 2px 22px 24px 20px;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
}
.acc-ref {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
}
.acc-ref:empty { display: none; }
.acc-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.acc-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--type-note);
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 4px;
}
.acc-bases {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: var(--type-note);
  font-weight: 600;
  color: var(--brand-slate);
}

/* ==========================================================================
   5. Liderança e Livros do Pr. Fernando Angelim
   ========================================================================== */
/* Celular: cartões deslizáveis lateralmente (o próximo aparece na borda) */
.leaders-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 14px;
  margin: 0 -18px 28px;
  padding: 6px 18px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 18px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.leaders-grid::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .leaders-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 28px;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 980px) {
  .leaders-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

.leader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 28px 22px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFA 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  transition: transform var(--duration-fast) var(--ease-smooth-out), box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.leader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 112px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(4, 96, 127, 0.12), transparent 70%),
    radial-gradient(40% 70% at 85% 0%, rgba(251, 124, 9, 0.1), transparent 70%);
  pointer-events: none;
}
.leader-card > * { position: relative; }
@media (hover: hover) {
  .leader-card:not(.leader-card--compact):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.leader-card__photo,
.leader-card__monogram {
  width: 132px;
  height: 160px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  flex-shrink: 0;
  border: 4px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(1, 34, 45, 0.06), 0 18px 34px -18px rgba(1, 34, 45, 0.55);
}
.leader-card__photo {
  object-fit: cover;
  object-position: center 18%;
  background: var(--surface-tint);
}
.leader-card__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.leader-card__name {
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: var(--tracking-sub);
}
.leader-card__role {
  margin-top: 6px;
  margin-bottom: 14px;
  color: var(--accent);
}
.leader-card__bio {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(4 * 1.62em);
}
.leader-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  margin-bottom: 16px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--duration-quick) ease, border-color var(--duration-quick) ease, color var(--duration-quick) ease;
}
.leader-card__more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.leader-card__more:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}
.leader-card__more:hover::after { transform: translateX(2px) rotate(45deg); }

.leader-card__links {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(2, 62, 82, 0.05);
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: background-color var(--duration-quick) ease, color var(--duration-quick) ease;
}
.social-chip:hover {
  background: var(--brand);
  color: #FFFFFF;
}

/* Biografia completa: janela de vidro */
.leader-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(1, 22, 30, 0.5);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  animation: lm-fade 0.25s ease both;
}
@media (min-width: 640px) {
  .leader-modal { align-items: center; padding: 24px; }
}
.leader-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.45);
  padding: 30px 22px calc(26px + env(safe-area-inset-bottom));
  animation: lm-sheet 0.42s var(--ease-smooth-out) both;
}
.leader-modal__dialog::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 4px;
  background: rgba(2, 62, 82, 0.18);
}
@media (min-width: 640px) {
  .leader-modal__dialog {
    border-radius: var(--radius-xl);
    padding: 38px 40px 32px;
    box-shadow: var(--shadow-xl);
    animation: lm-rise 0.36s var(--ease-smooth-out) both;
  }
  .leader-modal__dialog::before { display: none; }
}
.leader-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: rgba(2, 62, 82, 0.07);
  color: var(--brand);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-quick) ease, color var(--duration-quick) ease, transform var(--duration-fast) var(--ease-smooth-out);
}
.leader-modal__close:hover {
  background: var(--brand);
  color: #FFFFFF;
  transform: rotate(90deg);
}
.leader-modal__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 44px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.leader-modal__avatar,
.leader-modal__monogram {
  width: 84px;
  height: 102px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 28px -16px rgba(1, 34, 45, 0.6);
}
.leader-modal__avatar {
  object-fit: cover;
  object-position: center 18%;
}
.leader-modal__monogram {
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #FFFFFF;
}
.leader-modal__role {
  color: var(--accent);
  margin-bottom: 6px;
}
.leader-modal__name {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 500;
  color: var(--brand);
  line-height: 1.1;
}
.leader-modal__bio {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--ink);
}
.leader-modal__links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lm-rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes lm-sheet { from { transform: translateY(100%); } to { transform: none; } }

/* Diaconia */
.deacons-section {
  margin: 0 auto 36px;
  padding: 26px 16px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) {
  .deacons-section { padding: 34px 32px 30px; }
}
.deacons-section__head {
  text-align: center;
  margin-bottom: 20px;
}
.deacons-section__title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand);
}
.deacons-section__sub {
  max-width: 46ch;
  margin: 6px auto 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.leaders-grid--compact,
.deacons-section .leaders-grid--compact {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr));
  scroll-snap-type: none;
}
@media (min-width: 720px) {
  .leaders-grid--compact,
  .deacons-section .leaders-grid--compact { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
.leader-card--compact {
  padding: 18px 8px 16px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: none;
}
.leader-card--compact::before { display: none; }
.leader-card--compact .leader-card__photo,
.leader-card--compact .leader-card__monogram {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  border-width: 3px;
  box-shadow: 0 10px 22px -12px rgba(1, 34, 45, 0.6);
}
@media (min-width: 720px) {
  .leader-card--compact .leader-card__photo,
  .leader-card--compact .leader-card__monogram { width: 80px; height: 80px; }
}
.leader-card--compact .leader-card__monogram {
  font-size: 1.15rem;
}
.leader-card--compact .leader-card__name {
  font-size: 1.12rem;
}
.leader-card--compact .leader-card__role {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 0.64rem;
}
.leader-card--compact .leader-card__bio {
  margin-top: 9px;
  margin-bottom: 10px;
  font-size: 0.83rem;
  line-height: 1.56;
  -webkit-line-clamp: 3;
  min-height: 0;
}
.leader-card--compact .leader-card__links {
  margin-top: 10px;
  padding-top: 10px;
}

/* Livros: vitrine noturna com reflexo espelhado das capas */
.books-box {
  position: relative;
  padding: 28px 0 26px;
  border-radius: var(--radius-lg);
  background: var(--grad-night);
  color: #FFFFFF;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.books-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
@media (min-width: 640px) {
  .books-box { padding: 40px 40px 34px; border-radius: var(--radius-xl); }
}

.books-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px 24px;
  margin-bottom: 8px;
}
@media (min-width: 640px) {
  .books-box__head { padding: 0 0 28px; }
}
.books-box__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  color: #FFFFFF;
}
.books-box__sub {
  max-width: 52ch;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 8px;
}
.books-box__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.books-box .btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  box-shadow: none;
}
.books-box .btn--secondary:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }
.books-box .btn--primary {
  background: #FFFFFF;
  color: var(--brand);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}
.books-box .btn--primary:hover { background: var(--accent-tint); }

/* Celular: estante deslizável */
.books-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 58%;
  gap: 4px;
  padding: 8px 20px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.books-grid::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .books-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    overflow: visible;
  }
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 18px 12px 16px;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  transition: background-color var(--duration-fast) ease;
}
.book-card:hover { background: rgba(255, 255, 255, 0.05); }

.book-frame {
  position: relative;
  width: 100%;
  max-width: 168px;
  margin-bottom: 54px;
  border-radius: 4px 8px 8px 4px;
  transition: transform 0.5s var(--ease-smooth-out);
  -webkit-box-reflect: below 6px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.22));
}
.book-card:hover .book-frame { transform: translateY(-6px) rotate(-1deg); }
.book-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px 7px 7px 3px;
  background: var(--brand-800);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 40px -18px rgba(0, 0, 0, 0.75);
}
/* Lombada e brilho da capa */
.book-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(255, 255, 255, 0.18) 3%, rgba(255, 255, 255, 0) 7%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
}
.book-cover-fallback {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 3px 7px 7px 3px;
  padding: 16px 14px 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: #FFFFFF;
  background: var(--grad-brand);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.75);
}

.book-card__title {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.25;
  color: #FFFFFF;
}
.book-card__sub {
  margin-top: 6px;
  font-size: var(--type-note);
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card__cta {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-light);
}
.book-card__cta::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}
.book-card:hover .book-card__cta::after { transform: translateX(3px) rotate(45deg); }
.books-counter {
  margin-top: 14px;
  padding-inline: 20px;
  text-align: center;
  font-size: var(--type-note);
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   6. O que cremos (Confissão de 1689 e New Hampshire 1833)
   ========================================================================== */
.credo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.credo-head .section-head { margin-bottom: 0; }
@media (max-width: 479px) {
  .credo-tabs { display: flex; width: 100%; }
  .credo-tabs .tab-pill { flex: 1 1 0; padding-inline: 10px; font-size: 0.84rem; }
}

.credo-intro {
  position: relative;
  margin-bottom: 18px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #FFFFFF 0%, #F8FAF9 100%) padding-box,
    var(--grad-ring) border-box;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.credo-intro::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251, 124, 9, 0.1), transparent);
  pointer-events: none;
}
@media (min-width: 768px) {
  .credo-intro { padding: 34px 38px; }
}
.credo-intro__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 14px;
}
.credo-intro__title {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: var(--tracking-sub);
}
.credo-intro__p {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.72;
}
.credo-intro__sample {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.72;
}

.credo-para {
  padding: 14px 0;
}
.credo-para + .credo-para {
  border-top: 1px solid var(--line);
}
.credo-para__num {
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}
.credo-para__text {
  color: var(--ink);
  line-height: 1.78;
}
.credo-note {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.74em;
  margin-left: 1px;
}
.credo-proofs {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  font-size: var(--type-note);
  color: var(--ink-muted);
  line-height: 1.6;
}
.credo-proofs strong { color: var(--brand); }

.credo-footer {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 720px) {
  .credo-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.credo-source {
  font-size: var(--type-note);
  color: var(--ink-muted);
  max-width: 620px;
  line-height: 1.6;
}
.credo-source strong { color: var(--brand); font-weight: 600; }
.credo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 479px) {
  .credo-actions, .credo-actions .btn { width: 100%; }
}

/* ==========================================================================
   7. Contribuição (Pix), com o QR Code preservado integralmente
   ========================================================================== */
.pix-card {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 24px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.74)) padding-box,
    var(--grad-ring) border-box;
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pix-card::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(4, 96, 127, 0.1), transparent);
  pointer-events: none;
}
@media (min-width: 640px) {
  .pix-card { padding: 40px 44px; border-radius: var(--radius-xl); }
}

.pix-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}
@media (min-width: 720px) {
  .pix-grid {
    grid-template-columns: 252px 1fr;
    gap: 48px;
  }
}
/* No celular, o texto vem antes do QR Code */
@media (max-width: 719px) {
  .pix-grid > .pix-qr-box { order: 2; }
}

.pix-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pix-qr-frame {
  padding: 14px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(1, 34, 45, 0.05), 0 22px 44px -24px rgba(1, 34, 45, 0.45);
}
.pix-qr-frame img {
  display: block;
  width: 210px;
  height: 210px;
  object-fit: contain;
}
.pix-qr-caption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.pix-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: var(--tracking-display);
}
.pix-lead { margin-top: 10px; font-size: 1rem; color: var(--ink-muted); line-height: 1.65; }

.pix-dl {
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pix-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
}
.pix-dl > .pix-row:first-child {
  background: linear-gradient(135deg, rgba(2, 62, 82, 0.05), rgba(251, 124, 9, 0.05));
}
.pix-dl > * + * { border-top: 1px solid var(--line); }
.pix-row dt {
  color: var(--ink-soft);
}
.pix-row dd {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  overflow-wrap: anywhere;
}
.pix-key {
  font-family: var(--font-sans);
  font-size: 1.24rem !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.pix-row-split {
  display: grid;
  grid-template-columns: 1fr;
}
.pix-row-split > .pix-row + .pix-row { border-top: 1px solid var(--line); }
@media (min-width: 520px) {
  .pix-row-split { grid-template-columns: 1fr 1fr; }
  .pix-row-split > .pix-row + .pix-row { border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 419px) {
  #btn-copy-pix { width: 100%; }
}

/* ==========================================================================
   8. Localização e Rodapé
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--grad-night);
  color: #FFFFFF;
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
  scroll-margin-top: 34px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 124, 9, 0.7), transparent);
}
@media (min-width: 768px) {
  .site-footer { padding-top: 96px; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
  }
}

.footer-title {
  color: #FFFFFF;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
}
.footer-addr {
  margin-top: 16px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.footer-ref {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.66);
}

.footer-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 479px) {
  .footer-actions .btn { width: 100%; }
}
.site-footer .btn--primary {
  background: var(--grad-accent);
  color: #1B0D00;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 30px -14px rgba(251, 124, 9, 0.8);
}
.site-footer .btn--primary:hover { color: #1B0D00; }
.site-footer .btn--secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  box-shadow: none;
}
.site-footer .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-socials {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--duration-quick) ease, border-color var(--duration-quick) ease, color var(--duration-quick) ease;
}
.footer-social:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 183, 107, 0.6);
  color: #FFFFFF;
}

.footer-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.footer-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  background: var(--brand-900);
}
@media (min-width: 780px) {
  .footer-map iframe { height: 360px; }
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}
.footer-bottom a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .footer-bottom { padding-bottom: 76px; }
}

/* ==========================================================================
   Atalhos flutuantes (voltar ao topo + WhatsApp)
   ========================================================================== */
.floating-dock {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
@media (min-width: 768px) {
  .floating-dock { right: 24px; bottom: 24px; }
}

.btn-top-float {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--brand);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-smooth-out),
              background-color var(--duration-quick) ease,
              color var(--duration-quick) ease;
}
.btn-top-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.btn-top-float:hover {
  background: var(--brand);
  color: #FFFFFF;
}

.btn-whatsapp-float {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #23A45A 0%, #17803F 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 16px 34px -12px rgba(23, 128, 63, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast) ease;
}
.btn-whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(35, 164, 90, 0.4);
  animation: wa-ring 3.2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-ring {
  0% { transform: scale(0.92); opacity: 0.9; }
  70%, 100% { transform: scale(1.22); opacity: 0; }
}
.btn-whatsapp-float:hover {
  transform: translateY(-2px) scale(1.04);
}

/* ==========================================================================
   Revelação suave ao rolar + movimento reduzido
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-smooth-out), transform 0.8s var(--ease-smooth-out);
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
}
.js-ready .reveal.is-shown {
  opacity: 1;
  transform: none;
}

/* Navegadores sem suporte a vidro: superfícies sólidas equivalentes */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header,
  .mobile-drawer,
  .hero-carousel__arrow,
  .btn-top-float { background: rgba(255, 255, 255, 0.97); }
  .schedule-grid,
  .schedule-item,
  .deacons-section { background: #FFFFFF; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.footer-contact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.footer-contact a { color: inherit; text-decoration: underline; }
