/* ==========================================================================
   PALACIO, RODRIGUES & BRANDÃO SOCIEDADE DE ADVOGADOS
   Design System & Master Stylesheet
   ========================================================================== */

/* 🎨 1. DESIGN TOKENS (Variações de Cores e Tipografia) */
:root {
  /* Cores Homologadas (Foco Exclusivo em Verde da Logo #092017 & Dourado Degradê) */
  --navy: #092017;       /* Verde Escuro Nobre (Exato da Logo) - Fundo Principal */
  --navy-deep: #092017;  /* Verde Profundo para Footer, Scrollbar e Navbar */
  --green-medium: #103325; /* Verde Médio */
  --green-accent: #194633; /* Verde Accent */
  
  --gold: #C4974B;       /* Dourado Base */
  --gold-hover: #D4A75B; /* Dourado Hover */
  
  /* Dourado Degradê Metalizado Premium */
  --gold-gradient: linear-gradient(135deg, #F0D485 0%, #C4974B 50%, #9E742F 100%);
  --gold-gradient-hover: linear-gradient(135deg, #F9E59B 0%, #D4A75B 50%, #B2853E 100%);
  --gold-gradient-text: linear-gradient(135deg, #F9E298 0%, #D8A952 50%, #A67B33 100%);

  --cream: #F4EFE6;      /* Creme Nude - Textos / Fundos Claros */
  --nude: #E8E0CE;       /* Nude - Seção Metodologia */
  --white: #FFFFFF;
  --text-dark: #092017;
  --text-muted: #627A6F;

  /* Fontes Homologadas (Cinzel & Montserrat) */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Animações e Fluidez Premium Apple */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --t-snappy: 0.25s var(--ease-premium);
  --t-smooth: 0.5s var(--ease-premium);
  --t-slow: 1.8s var(--ease-premium);
  --t-entrance: 2.5s var(--ease-premium);

  /* Borda Máxima Permitida (Anti-SaaS) */
  --radius-button: 6px;
}

/* ✨ UTILITÁRIOS DE TEXTO EM DOURADO DEGRADÊ METALIZADO */
.text-gold-gradient,
.hero-title span,
.section-title span,
.gold-text,
.highlight-gold,
.metodologia-title span,
.faq-title span,
.sobre-title span,
.diferenciais-title span,
.atuacao-title span,
.blog-title-section span {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Reset Global & Performance */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 📜 9. SCROLLBAR PERSONALIZADA MINIMALISTA */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.4);
  border-radius: 4px;
  border: 2px solid var(--navy-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Scrollbar Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.4) var(--navy-deep);
}

/* ⚡ 12. ANIMAÇÕES DE ENTRADA SUAVES EM CASCATA (SCROLL UP & DOWN) */
.reveal-init, .reveal-cascade {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}

.reveal-right {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}

.reveal-up {
  opacity: 0;
  transform: translateY(35px) scale(0.98);
}

.reveal-active {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) scale(1) !important;
}

/* Cascata Suave Staggered para Filhos de Grids, Listas e Hero */
.reveal-cascade-container > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-cascade-container.reveal-active > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-cascade-container.reveal-active > *:nth-child(1),
.reveal-cascade.reveal-active:nth-child(1) { transition-delay: 0.1s; }
.reveal-cascade-container.reveal-active > *:nth-child(2),
.reveal-cascade.reveal-active:nth-child(2) { transition-delay: 0.25s; }
.reveal-cascade-container.reveal-active > *:nth-child(3),
.reveal-cascade.reveal-active:nth-child(3) { transition-delay: 0.4s; }
.reveal-cascade-container.reveal-active > *:nth-child(4),
.reveal-cascade.reveal-active:nth-child(4) { transition-delay: 0.55s; }
.reveal-cascade-container.reveal-active > *:nth-child(5),
.reveal-cascade.reveal-active:nth-child(5) { transition-delay: 0.7s; }
.reveal-cascade-container.reveal-active > *:nth-child(6),
.reveal-cascade.reveal-active:nth-child(6) { transition-delay: 0.85s; }

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

/* 🏗️ 2. NAVBAR — MODELO 3 (âncora no bottom do hero → sticky no topo ao rolar) */
.navbar {
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 32px;
  background: rgba(8, 28, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .nav-links a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Entrada cadenciada em slow-motion item por item */
.navbar .nav-links a:nth-child(1) { transition-delay: 0.05s; }
.navbar .nav-links a:nth-child(2) { transition-delay: 0.13s; }
.navbar .nav-links a:nth-child(3) { transition-delay: 0.21s; }
.navbar .nav-links a:nth-child(4) { transition-delay: 0.29s; }
.navbar .nav-links a:nth-child(5) { transition-delay: 0.37s; }
.navbar .nav-links a:nth-child(6) { transition-delay: 0.45s; }
.navbar .nav-links a:nth-child(7) { transition-delay: 0.53s; }

/* Estado padrão: dentro do hero, empurrado para o bottom */
.navbar.navbar-bottom {
  position: relative;
  bottom: 16px;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  z-index: 10; /* acima dos overlays do hero */
  transform: translateY(0);
  opacity: 1;
}

/* Após sair do hero: fixado no topo */
.navbar.navbar-sticky-top {
  position: fixed;
  top: 0;
  border-top: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  opacity: 1;
}

.navbar.nav-hidden {
  opacity: 0;
  pointer-events: none;
}

.navbar.navbar-sticky-top.nav-hidden {
  transform: translateY(-100%);
}

.navbar.navbar-bottom.nav-hidden {
  transform: translateY(20px);
}

/* Saída cadenciada em slow-motion item por item */
.navbar.nav-hidden .nav-links a {
  opacity: 0;
  transform: translateY(14px);
}
.navbar.nav-hidden .nav-links a:nth-child(1) { transition-delay: 0s; }
.navbar.nav-hidden .nav-links a:nth-child(2) { transition-delay: 0.08s; }
.navbar.nav-hidden .nav-links a:nth-child(3) { transition-delay: 0.16s; }
.navbar.nav-hidden .nav-links a:nth-child(4) { transition-delay: 0.24s; }
.navbar.nav-hidden .nav-links a:nth-child(5) { transition-delay: 0.32s; }
.navbar.nav-hidden .nav-links a:nth-child(6) { transition-delay: 0.40s; }
.navbar.nav-hidden .nav-links a:nth-child(7) { transition-delay: 0.48s; }

.nav-container-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-container-bar .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-container-bar .nav-hamburger {
  display: none;
}

/* Mobile drawer oculto por padrão (visibilidade controlada por JS + opacity) */
.mobile-drawer {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

/* 🏗️ HERO — MODELO 3: flex column min-height 100vh */
.section-hero.hero-modelo-3 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  text-align: center;
  position: relative;
}

/* Corpo do hero: cresce para preencher, centraliza conteúdo */
.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 32px 14px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 4; /* acima dos overlays ::before (z1), ::after (z2) e .hero-noise (z3) */
}

.hero-logo-box {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-large {
  height: clamp(160px, 24vh, 260px);
  width: auto;
  max-width: 95%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.hero-logo-large:hover {
  transform: scale(1.03);
}

.hero-body .hero-kicker {
  margin: 0 auto 14px;
}

.hero-body .hero-title {
  margin: 0 auto 16px;
  max-width: 950px;
  text-align: center;
  font-size: clamp(1.9rem, 3.7vw, 3.15rem);
}

.hero-body .hero-subtitle {
  margin: 0 auto 24px;
  max-width: 820px;
  text-align: center;
  font-size: clamp(0.95rem, 1.55vw, 1.08rem);
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-body .hero-badges {
  margin-top: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.02em;
  transition: color 0.5s var(--ease-premium);
}

/* Micro-interação Sutil de Linha Fina com Expansão Lenta */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--gold);
  }
  .nav-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
  }
}

.nav-cta {
  background: var(--gold-gradient);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-button);
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(196, 151, 75, 0.25);
  transition: background var(--t-snappy), transform var(--t-snappy), box-shadow var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 151, 75, 0.4);
  }
}

/* Botão Hamburger Mobile (WCAG 48px) */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-around;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-premium), opacity 0.35s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 🏗️ SEÇÃO 1: HERO (#inicio) */
.section-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  padding: 110px 32px 40px 32px;
  overflow: hidden;
}

/* MODELO 3 sobrescreve os padrões do .section-hero */
.section-hero.hero-modelo-3 {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  min-height: 100vh;
  overflow: visible; /* garante que a navbar no bottom não seja cortada */
}

/* Imagem de Fundo de Escritório */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}

/* Gradiente escuro com leve transparência para ver a imagem */
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(8, 28, 20, 0.92) 0%, 
    rgba(8, 28, 20, 0.85) 50%, 
    rgba(8, 28, 20, 0.92) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 50%, rgba(16, 51, 37, 0.5) 0%, rgba(8, 28, 20, 0.95) 75%),
              url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 3;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 4;
  text-align: left; /* 100% Ancorado à Esquerda */
}

.hero-content {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
  background: rgba(201, 168, 76, 0.1);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(245, 237, 216, 0.88);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-gradient);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: var(--radius-button);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(196, 151, 75, 0.28);
  transition: background var(--t-snappy), transform var(--t-snappy), box-shadow var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(196, 151, 75, 0.45);
  }
}

.hero-badges {
  margin-top: 32px;
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(245, 237, 216, 0.12);
  padding-top: 20px;
}

.badge-item {
  display: flex;
  flex-direction: column;
}

.badge-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.badge-label {
  font-size: 0.85rem;
  color: rgba(245, 237, 216, 0.7);
}

/* 🏗️ SEÇÃO 2: SOBRE / OS ADVOGADOS (#sobre) */
.section-sobre {
  background-color: var(--cream);
  color: var(--navy);
  padding: 100px 32px;
}

.sobre-header {
  max-width: 800px;
  margin: 0 auto 48px auto;
  text-align: center;
}

.sobre-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin: 12px 0 16px 0;
  line-height: 1.2;
}

.sobre-main-desc {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.sobre-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}


/* 🏛️ Monograma e Selo Institucional dos Advogados (Sem Fotos de Modelo) */
.advogado-seal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(9, 32, 23, 0.96) 0%, rgba(16, 51, 37, 0.9) 100%);
  border: 1px solid rgba(196, 151, 75, 0.35);
  border-radius: 8px;
  margin-bottom: 8px;
}

.advogado-monogram-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.advogado-monogram {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(196, 151, 75, 0.3);
  flex-shrink: 0;
}

.advogado-seal-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196, 151, 75, 0.12);
  border: 1px solid rgba(196, 151, 75, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
}

.advogado-card {
  background: var(--white);
  border-radius: var(--radius-card, 12px);
  border: 1px solid rgba(196, 151, 75, 0.25);
  box-shadow: 0 12px 32px rgba(8, 28, 20, 0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--t-snappy), box-shadow var(--t-snappy), border-color var(--t-snappy);
}

.advogado-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(8, 28, 20, 0.12);
}

.advogado-image-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(196, 151, 75, 0.3);
  background-color: var(--navy);
}

.advogado-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-smooth);
}

.advogado-card:hover .advogado-img {
  transform: scale(1.03);
}

.advogado-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.advogado-role {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.advogado-bio {
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.65;
  flex-grow: 1;
}

.advogado-quote {
  background-color: rgba(16, 51, 37, 0.05);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-top: 8px;
}

.advogado-quote p {
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
}

/* 🏗️ SEÇÃO 3: ÁREAS DE ATUAÇÃO (#atuacao) - PAINEL DINÂMICO DE ESPECIALIDADES */
.section-atuacao {
  background-color: var(--navy);
  color: var(--cream);
  padding: 130px 32px;
  content-visibility: auto;
  contain-intrinsic-size: 850px;
  position: relative;
}

.atuacao-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.atuacao-header {
  margin-bottom: 56px;
  text-align: center;
}

.atuacao-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  color: var(--cream);
  margin-top: 8px;
}

/* Painel de Especialidades Assimétrico & Interativo (Fim do Formato Quadrado) */
.atuacao-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.especialidade-row {
  background: linear-gradient(135deg, rgba(16, 51, 37, 0.75) 0%, rgba(9, 32, 23, 0.95) 100%);
  border: 1px solid rgba(196, 151, 75, 0.22);
  border-radius: 20px 6px 20px 6px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 28px;
  transition: transform 0.5s var(--ease-premium), border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.especialidade-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .especialidade-row:hover {
    transform: translateX(8px) translateY(-2px);
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(25, 70, 51, 0.88) 0%, rgba(16, 51, 37, 0.96) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(196, 151, 75, 0.12);
  }
  .especialidade-row:hover::before {
    opacity: 1;
  }
  .especialidade-row:hover .esp-num {
    color: var(--gold);
    opacity: 0.5;
    transform: scale(1.08);
  }
  .especialidade-row:hover .esp-icon {
    background: var(--gold-gradient);
    color: var(--navy);
    transform: rotate(5deg) scale(1.08);
    border-color: transparent;
  }
}

.esp-left {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.esp-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(244, 239, 230, 0.22);
  line-height: 1;
  transition: all 0.4s ease;
}

.esp-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.esp-header-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.esp-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(196, 151, 75, 0.12);
  border: 1px solid rgba(196, 151, 75, 0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-premium);
}

.esp-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.3px;
}

.esp-desc {
  font-size: 0.95rem;
  color: rgba(244, 239, 230, 0.82);
  line-height: 1.6;
  max-width: 840px;
}

.esp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.esp-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(196, 151, 75, 0.08);
  border: 1px solid rgba(196, 151, 75, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
}

.esp-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.esp-btn-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(196, 151, 75, 0.3);
  background: rgba(9, 32, 23, 0.6);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  text-decoration: none;
}

.especialidade-row:hover .esp-btn-link {
  background: var(--gold-gradient);
  color: var(--navy);
  border-color: transparent;
  transform: translateX(4px);
}

@media (max-width: 868px) {
  .especialidade-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
    border-radius: 16px 6px 16px 6px;
  }
  .esp-left {
    justify-content: flex-start;
  }
  .esp-num {
    font-size: 1.8rem;
  }
  .esp-action {
    display: none;
  }
}

/* 🏗️ SEÇÃO 4: METODOLOGIA (#metodologia) */
.section-metodologia {
  background-color: var(--nude);
  color: var(--navy);
  padding: 120px 32px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.metodologia-header {
  text-align: center;
  margin-bottom: 64px;
}

.metodologia-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin-top: 8px;
}

.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.metodologia-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(9, 32, 23, 0.08);
  box-shadow: 0 10px 24px rgba(9, 32, 23, 0.04);
  position: relative;
  transition: transform 0.4s var(--ease-premium), border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .metodologia-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--gold);
    box-shadow: 0 18px 36px rgba(9, 32, 23, 0.12);
  }
  .metodologia-card:hover .metodologia-num {
    opacity: 0.35;
    color: var(--gold);
  }
}

.metodologia-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 12px;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.metodologia-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.metodologia-card-desc {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* 🏗️ SEÇÃO 5: FAQ (#faq) */
.section-faq {
  background-color: var(--cream);
  color: var(--navy);
  padding: 120px 32px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin-top: 8px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid rgba(9, 32, 23, 0.1);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease-premium), border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 28px rgba(9, 32, 23, 0.08);
  }
}

.faq-item.open {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(9, 32, 23, 0.06);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--t-smooth);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Accordion UX estritamente via CSS Grid */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows var(--t-smooth), opacity var(--t-smooth), visibility var(--t-smooth);
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 28px 24px 28px;
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.65;
}

/* 🏗️ SEÇÃO 6: CTA FINAL (#contato) */
.section-cta-final {
  background-color: var(--navy);
  color: var(--cream);
  padding: 140px 32px;
  text-align: center;
}

.cta-final-container {
  max-width: 780px;
  margin: 0 auto;
}

.cta-final-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 20px;
}

.cta-final-subtitle {
  font-size: 1.15rem;
  color: rgba(245, 237, 216, 0.85);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* 🏗️ SEÇÃO 7: FOOTER (#footer) */
.site-footer {
  background-color: var(--navy-deep);
  color: rgba(245, 237, 216, 0.8);
  padding: 80px 32px 40px 32px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 68px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 237, 216, 0.7);
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(245, 237, 216, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--t-snappy);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(245, 237, 216, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-credit a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-credit a:hover {
  color: var(--cream);
}

/* 📱 7. STICKY CTA BAR NO RODAPÉ MOBILE */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: transparent;
  padding: 12px 16px 20px 16px;
  pointer-events: none;
}

.mobile-sticky-btn {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background-color: #25D366;
  color: #FFFFFF;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  pointer-events: auto;
  transition: transform 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium);
}

.mobile-sticky-btn:active {
  transform: scale(0.97);
}

/* 🎨 ESTILOS UNIVERSAIS DO BLOG (ajusteparablog.md) */
#blog-secao, #artigo-secao {
  padding: 120px 24px 80px 24px;
  background-color: var(--cream);
  color: var(--navy);
  min-height: 80vh;
}

.blog-container, .artigo-single-container {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-title-section {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 48px;
  text-align: center;
}

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

.blog-card {
  background-color: var(--white);
  border: 1px solid rgba(8, 28, 20, 0.1);
  border-radius: var(--radius-card);
  padding: 28px;
  cursor: pointer;
  transition: transform var(--t-snappy), box-shadow var(--t-snappy);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(8, 28, 20, 0.08);
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.5;
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

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

.btn-voltar {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-button);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 24px;
}

.artigo-main-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.artigo-divider {
  border: none;
  height: 1px;
  background-color: rgba(9, 32, 23, 0.15);
  margin-bottom: 24px;
}

.artigo-text-body p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.artigo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
  z-index: 10;
  will-change: transform;
}

.sidebar-card {
  background-color: var(--white);
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(8, 28, 20, 0.1);
}

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

.autor-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.autor-nome {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  display: block;
}

.autor-cargo {
  font-size: 0.85rem;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.autor-bio {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.4;
}

/* 💬 WIDGET DE WHATSAPP INTELIGENTE (botaozap.md) */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-widget.widget-visible {
  opacity: 1;
  pointer-events: none; /* Contêiner transparente a cliques para não bloquear footer */
}

/* Botão Circular Principal - Verde Oficial */
.whatsapp-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  pointer-events: auto;
}

.whatsapp-svg-icon {
  fill: #FFFFFF;
  width: 28px;
  height: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-trigger-btn:hover {
    transform: scale(1.05);
    background-color: #128C7E;
  }
}

/* Tooltip de Inatividade */
.whatsapp-tooltip {
  background-color: var(--navy);
  border: 1px solid rgba(196, 151, 75, 0.3);
  color: #FFFFFF;
  padding: 0 18px 0 14px;
  border-radius: 6px;
  margin-bottom: 0;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              margin-bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
  will-change: opacity, transform, max-height;
}

.whatsapp-tooltip.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 80px;
  padding: 12px 18px 12px 14px;
  margin-bottom: 12px;
  transform: translateY(0) scale(1);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 25px;
  width: 10px;
  height: 10px;
  background-color: var(--navy);
  border-right: 1px solid rgba(196, 151, 75, 0.3);
  border-bottom: 1px solid rgba(196, 151, 75, 0.3);
  transform: rotate(45deg);
}

.close-tooltip-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 12px;
  margin: -12px -12px -12px 0;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.close-tooltip-btn:hover {
  color: var(--gold);
}

/* Painel de Chat Simulado */
.whatsapp-chat-panel {
  width: 320px;
  background-color: var(--white);
  border: 1px solid rgba(8, 28, 20, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              margin-bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
  will-change: transform, opacity, max-height;
}

.whatsapp-chat-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: 500px;
  margin-bottom: 16px;
  transform: translateY(0) scale(1);
}

.chat-header {
  background-color: var(--navy);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--gold);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.chat-header-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.chat-messages-container {
  padding: 16px;
  max-height: 340px;
  min-height: 0; /* Diretriz Preventiva Flexbox */
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #F4F6F9;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 85%;
  word-wrap: break-word;
  flex-shrink: 0; /* Diretriz Preventiva Flexbox */
}

.chat-bubble.received {
  background-color: var(--white);
  color: var(--text-dark);
  align-self: flex-start;
  border-top-left-radius: 2px;
  border: 1px solid rgba(8, 28, 20, 0.05);
}

.chat-bubble.sent {
  background-color: rgba(196, 151, 75, 0.15);
  color: var(--navy);
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.chat-faq-options {
  display: flex;
  flex-direction: column;
  flex-shrink: 0; /* Diretriz Preventiva Flexbox */
  gap: 8px;
  margin-top: 8px;
  opacity: 1;
  max-height: 300px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.chat-faq-options.hidden {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
}

.chat-faq-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  opacity: 0.6;
  margin-bottom: 2px;
}

.chat-faq-opt {
  background-color: var(--white);
  border: 1px solid rgba(196, 151, 75, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px;
  display: flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .chat-faq-opt:hover {
    background-color: rgba(196, 151, 75, 0.08);
    border-color: var(--gold);
  }
}

.chat-footer {
  padding: 12px;
  background-color: var(--white);
  border-top: 1px solid rgba(8, 28, 20, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-direct-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .chat-direct-link:hover {
    color: var(--navy);
  }
}

/* Efeito de Digitando (Loader) */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px 0;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--navy);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
  opacity: 0.4;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Acessibilidade de Teclado */
.whatsapp-trigger-btn:focus-visible,
.close-tooltip-btn:focus-visible,
.chat-faq-opt:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px;
}


/* 📱 2. ADAPTAÇÕES RESPONSIVAS & MOBILE FIRST (mobile.md) */
@media (max-width: 992px) {
  .sobre-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .metodologia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .artigo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  /* Navbar: esconder container desktop, tornar navbar transparente no mobile */
  .navbar {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    pointer-events: none;
  }

  .nav-container-bar {
    display: none;
  }
  .navbar > .nav-cta {
    display: none;
  }

  /* Botão Hamburger posicionado no topo direito no mobile */
  .nav-hamburger {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10001;
    pointer-events: auto;
    background: rgba(5, 18, 13, 0.88);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 12px 10px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Mobile Drawer em tela cheia com fundo escuro e itens centralizados */
  .mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 18, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-12px);
    z-index: 10000;
    transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium), visibility 0.35s ease;
  }

  .mobile-drawer.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-drawer .nav-link {
    font-size: 1.25rem;
    padding: 8px 16px;
    text-align: center;
    color: var(--cream);
  }

  .mobile-drawer .nav-cta {
    display: inline-flex;
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Hero Modelo 3 em mobile */
  .section-hero.hero-modelo-3 {
    padding: 0;
  }

  .hero-body {
    padding: 12px 20px 20px;
  }

  .hero-logo-box {
    margin-bottom: 14px;
  }

  .hero-logo-large {
    height: clamp(120px, 18vh, 170px);
  }

  .hero-body .hero-kicker {
    margin-bottom: 10px;
  }

  .hero-body .hero-title {
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 7.2vw, 2.35rem);
  }

  .hero-body .hero-subtitle {
    margin-bottom: 18px;
    font-size: clamp(0.9rem, 3.6vw, 1rem);
  }

  .section-hero {
    padding: 100px 20px 40px 20px;
    text-align: center;
  }

  .section-hero::after {
    background: linear-gradient(180deg, 
      var(--navy) 0%, 
      rgba(8, 28, 20, 0.94) 50%, 
      rgba(8, 28, 20, 0.8) 100%
    );
  }

  .hero-container {
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    padding-top: 14px;
  }

  .hero-badges .badge-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero-badges .badge-number {
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
    white-space: nowrap;
  }

  .hero-badges .badge-label {
    font-size: clamp(0.58rem, 2.3vw, 0.7rem);
    line-height: 1.35;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .metodologia-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-widget {
    display: none !important;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .section-cta-final, .site-footer {
    padding-bottom: 96px;
  }
}

/* 📰 MODO BLOG / ARTIGO — Oculta o Hero e fixa a navbar no topo */
body.is-blog-mode #inicio {
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  overflow: visible !important;
}

body.is-blog-mode #inicio::before,
body.is-blog-mode #inicio::after,
body.is-blog-mode .hero-noise,
body.is-blog-mode .hero-body {
  display: none !important;
}

@media (min-width: 992px) {
  body.is-blog-mode #navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.18) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  }

  body.is-blog-mode #navbar .nav-links a {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
  }
}
