/* ==========================================================================
   RESET MODERNO, LAYOUT GLOBAL & TIPOGRAFIA EDITORIAL
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* --- Scrollbar Minimalista Monocromática --- */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* --- Tipografia & Títulos --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

h1 {
  font-size: var(--fs-hero-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Containers & Grids --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- Seções & Espaçamento --- */
section {
  position: relative;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

section.section-blog,
section.section-artigo,
#blog-secao,
#artigo-secao {
  overflow: visible !important;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-kicker);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  padding: 0.35rem 1rem;
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Sistema de Animações Modernas Bidirecionais em Slow-Motion (Editorial Luxury) --- */
.reveal-left,
.reveal-right,
.reveal-up,
.reveal-scale,
.reveal-fade {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: 
    opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Translação Vertical Suave */
.reveal-up {
  transform: translate3d(0, 36px, 0);
  filter: blur(4px);
}

/* Translação Horizontal Direita / Esquerda */
.reveal-left {
  transform: translate3d(-45px, 0, 0);
  filter: blur(4px);
}

.reveal-right {
  transform: translate3d(45px, 0, 0);
  filter: blur(4px);
}

/* Entrada de Cards e Blocos com Escala Suave */
.reveal-scale {
  transform: scale(0.93) translate3d(0, 24px, 0);
  filter: blur(4px);
}

/* Fade Simples */
.reveal-fade {
  transform: translate3d(0, 15px, 0);
  filter: blur(4px);
}

/* Estado Revelado (Bidirecional: Aplicado ao Entrar na Viewport) */
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed,
.reveal-scale.revealed,
.reveal-fade.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Delays Escalonados para Efeito Cascata Suave */
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }
.reveal-delay-6 { transition-delay: 0.72s; }
.reveal-delay-7 { transition-delay: 0.84s; }
.reveal-delay-8 { transition-delay: 0.96s; }

/* --- Slow-Motion Especialmente Mais Lento e Fluido para Blocos de Atuação, Perguntas (FAQ) e Metodologia --- */
.atuacao-card,
.faq-item,
.metodologia-card {
  opacity: 0;
  transform: scale(0.92) translate3d(0, 38px, 0);
  filter: blur(5px);
  will-change: opacity, transform, filter;
  transition: 
    opacity 1.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.85s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium),
    background-color 0.4s var(--ease-premium);
}

.atuacao-card.revealed,
.faq-item.revealed,
.metodologia-card.revealed {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
  filter: blur(0);
}

.atuacao-card.revealed:hover {
  transform: scale(1) translateY(-4px);
}

.metodologia-card.revealed:hover {
  transform: scale(1) translateY(-4px);
}

.faq-item.revealed:hover {
  transform: scale(1) translateY(-2px);
}

/* Acessibilidade para usuários com preferência de movimento reduzido */
@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;
  }
  .reveal-left, .reveal-right, .reveal-up, .reveal-scale, .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Otimização de Animação Horizontal para Mobile (Zero Overflow) */
@media (max-width: 768px) {
  .reveal-left {
    transform: translate3d(-16px, 0, 0);
  }
  .reveal-right {
    transform: translate3d(16px, 0, 0);
  }
}
