/* ==========================================================================
   RESET & LAYOUT GLOBAL
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--brand-dark);
  color: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--brand-dark);
  color: var(--brand-white);
  overflow-x: hidden;
}

/* Scrollbar Minimalista Personalizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--brand-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(197, 160, 89, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold);
}

/* Tipografia & Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  color: var(--brand-white);
}

.heading-italic {
  font-style: italic;
  font-weight: 400;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--brand-text-light);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container Global */
.container {
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

/* Header de Seção Editorial */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px auto;
}

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--brand-text-light);
  font-weight: 300;
}

/* ==========================================================================
   ANIMAÇÃO EM CASCATA SUAVE & BIDIRECIONAL (Ir e Vir do Scroll)
   ========================================================================== */
.reveal-left, 
.reveal-right, 
.reveal-up, 
.reveal-line, 
.reveal-cascade-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--cascade-delay, 0s);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-35px) translateY(15px);
}

.reveal-right {
  transform: translateX(35px) translateY(15px);
}

.reveal-up {
  transform: translateY(32px);
}

.reveal-left.active, 
.reveal-right.active, 
.reveal-up.active, 
.reveal-line.active, 
.reveal-cascade-item.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Animação Zoom Out Bidirecional para Imagem da Hero */
.reveal-zoom-out {
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-zoom-out.active {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-left, 
  .reveal-right, 
  .reveal-up, 
  .reveal-line, 
  .reveal-cascade-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   ESTILOS DO BLOG & ARTIGOS (ajusteparablog.md)
   ========================================================================== */
#blog-secao, #artigo-secao {
  padding: 120px 24px 80px 24px;
  background-color: var(--brand-dark);
  min-height: 80vh;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title-section {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 48px;
  text-align: center;
  font-family: var(--font-serif);
}

.blog-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background-color: var(--brand-card-bg);
  border: var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 32px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-premium), border-color 0.35s var(--ease-premium);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.4);
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--brand-gold);
  display: block;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  line-height: 1.3;
  color: var(--brand-white);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--brand-text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.25s var(--ease-premium);
}

.blog-card:hover .blog-card-link {
  transform: translateX(4px);
}

/* Layout do Artigo Individual com Sidebar Sticky */
.artigo-single-container {
  max-width: 1200px;
  margin: 0 auto;
}

.artigo-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

@media (max-width: 992px) {
  .artigo-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.btn-voltar {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--brand-white);
  padding: 10px 20px;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 32px;
  transition: border-color 0.25s var(--ease-premium), color 0.25s var(--ease-premium);
}

.btn-voltar:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.artigo-main-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--brand-white);
}

.artigo-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.artigo-text-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #D1D1D1;
}

.artigo-text-body h2, .artigo-text-body h3 {
  margin: 40px 0 16px 0;
  color: var(--brand-gold-light);
}

.artigo-text-body blockquote {
  border-left: 3px solid var(--brand-gold);
  padding-left: 20px;
  font-style: italic;
  margin: 32px 0;
  color: #E0E0E0;
}

.artigo-text-body ul {
  margin: 0 0 24px 24px;
  color: #D1D1D1;
}

/* Sidebar Sticky */
.artigo-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background-color: var(--brand-card-bg);
  border: var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 28px;
}

.autor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-gold);
  margin-bottom: 16px;
}

.autor-avatar--fallback {
  background: var(--gold-gradient);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  font-family: var(--font-serif);
}

.autor-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-gold);
  display: block;
}

.autor-nome {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}

.autor-cargo {
  font-size: 0.85rem;
  color: var(--brand-text-muted);
  display: block;
  margin-bottom: 12px;
}

.autor-bio {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--brand-text-light);
}

.sidebar-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

.sidebar-heading {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--brand-white);
}

.sidebar-post-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.25s var(--ease-premium);
}

.sidebar-post-item:last-child {
  border-bottom: none;
}

.sidebar-post-title {
  font-size: 0.95rem;
  display: block;
  color: var(--brand-text-light);
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-post-item:hover .sidebar-post-title {
  color: var(--brand-gold-light);
}

.sidebar-post-date {
  font-size: 0.8rem;
  color: var(--brand-text-muted);
}
