/* ==========================================================================
   DESIGN TOKENS & DESIGN SYSTEM - MARCOS ZANELLA ADVOCACIA
   ========================================================================== */
:root {
  /* Brand Color Tokens - Preto Chumbo (Primária) & Vermelho Vinho (Secundária) */
  --navy: #111215;
  /* Preto Chumbo Escuro Puro (Fundo Principal) */
  --navy-medium: #181A1F;
  /* Preto Chumbo Médio (Cards & Seções Secundárias) */
  --navy-light: #22242B;
  /* Preto Chumbo Claro (Elevação sutil & Bordas) */
  --wine-gradient: linear-gradient(135deg, #B8253B 0%, #80152A 40%, #520D1B 80%, #B8253B 100%);
  --gold-gradient: linear-gradient(135deg, #B8253B 0%, #80152A 40%, #520D1B 80%, #B8253B 100%);
  --wine: #A81B32;
  /* Vermelho Vinho Sofisticado */
  --gold: #A81B32;
  /* Alias para compatibilidade total */
  --wine-hover: #C92A45;
  --gold-hover: #C92A45;
  --wine-dark-text: #80152A;
  --gold-dark-text: #80152A;
  --cream: #FAF9F6;
  --nude: #F0F0F0;
  --text-muted: rgba(250, 249, 246, 0.7);
  --text-dark: #111215;

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius-btn: 6px;
  --radius-card: 8px;

  /* Animation Tokens */
  --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.5s var(--ease-premium);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--cream);
  background-color: var(--navy);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  line-height: 1.6;
  font-family: var(--font-sans);
  color: var(--cream);
  background-color: var(--navy);
  min-height: 100vh;
  max-width: 100%;
  width: 100%;
  position: relative;
}

/* ==========================================================================
   SCROLLBAR PRINCIPAL PERSONALIZADO (VERMELHO VINHO DEGRADÊ)
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--wine-gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--wine-hover);
}

/* ==========================================================================
   ANIMAÇÃO DE SCROLL BI-DIRECIONAL (REVEAL IN CASCADE)
   ========================================================================== */
.reveal-element {
  opacity: 0;
  transition: opacity 1.2s var(--ease-premium), transform 1.2s var(--ease-premium);
  will-change: opacity, transform;
}

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

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay Staggering para Containers com múltiplos filhos */
.stagger-container>*:nth-child(1) {
  transition-delay: 0.0s;
}

.stagger-container>*:nth-child(2) {
  transition-delay: 0.15s;
}

.stagger-container>*:nth-child(3) {
  transition-delay: 0.30s;
}

.stagger-container>*:nth-child(4) {
  transition-delay: 0.45s;
}

.stagger-container>*:nth-child(5) {
  transition-delay: 0.60s;
}

/* ==========================================================================
   SEÇÃO 0: NAVBAR INTELIGENTE
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color 0.4s var(--ease-premium), backdrop-filter 0.4s var(--ease-premium), padding 0.4s var(--ease-premium), opacity 0.4s var(--ease-premium), visibility 0.4s;
  background: transparent;
}

.site-header.site-header--scrolled {
  background: rgba(17, 18, 21, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(168, 27, 50, 0.25);
}

.site-header.site-header--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease-premium);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--wine-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: #FFFFFF;
  }

  .nav-links a:hover::after {
    transform: scaleX(1);
  }
}

.nav-cta-btn {
  background: var(--wine-gradient);
  background-size: 240% 240%;
  background-position: 0% 50%;
  color: #FFFFFF !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-btn);
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: background-position 0.6s var(--ease-premium), transform 0.25s var(--ease-premium) !important;
}

.nav-cta-btn::after {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: none !important;
  }
}

/* Hamburger Menu Mobile */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1001;
}

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

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

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

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

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

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
  transform: scale(1.22);
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.section-hero.revealed::before {
  transform: scale(1);
}

.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      var(--navy) 0%,
      rgba(17, 18, 21, 0.92) 40%,
      rgba(17, 18, 21, 0.65) 70%,
      rgba(17, 18, 21, 0.25) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 50%, rgba(168, 27, 50, 0.16) 0%, rgba(17, 18, 21, 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.03;
  pointer-events: none;
  z-index: 3;
}

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

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

/* Animação em cascata (Stagger) dos textos da Hero */
.hero-content .hero-kicker,
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(35px);
  will-change: opacity, transform;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-hero.revealed .hero-kicker,
.section-hero.revealed .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.section-hero.revealed .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.section-hero.revealed .btn-primary {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.0s;
}

.section-hero.revealed .btn-primary:hover {
  transform: translateY(-2px);
  transition-delay: 0s !important;
  transition: transform 0.25s var(--ease-premium), background-position 0.6s var(--ease-premium) !important;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--wine);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--wine-gradient);
  background-size: 240% 240%;
  background-position: 0% 50%;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  box-shadow: none !important;
  transition: background-position 0.6s var(--ease-premium), transform 0.25s var(--ease-premium);
  min-height: 48px;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   RADIAL CURSOR HIGHLIGHT HOVER ENGINE (Para seções intermediárias)
   ========================================================================== */
.radial-hover-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --pointer-x: 50%;
  --pointer-y: 50%;
}

.radial-hover-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--pointer-x) var(--pointer-y), rgba(168, 27, 50, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-premium);
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .radial-hover-item:hover::before {
    opacity: 1;
  }
}

/* ==========================================================================
   SEÇÃO 2: A ADVOGADA / SOBRE (#sobre)
   ========================================================================== */
.section-sobre {
  background-color: var(--cream);
  color: var(--text-dark);
  padding: 100px 24px;
}

.sobre-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.sobre-photo-wrapper {
  position: relative;
  border-radius: var(--radius-card);
  padding: 12px;
  border: 1px dashed rgba(168, 27, 50, 0.4);
  /* Vibe Croqui */
  background: #FFFFFF;
  transition: transform 0.6s var(--ease-premium), box-shadow 0.6s var(--ease-premium);
}

.sobre-photo-inner {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.sobre-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .sobre-photo-wrapper:hover {
    transform: translateY(-4px) rotate(0.3deg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  }

  .sobre-photo-wrapper:hover img {
    transform: scale(1.04);
  }
}

.sobre-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--wine);
}

.section-sobre .section-kicker,
.section-metodologia .section-kicker,
.section-faq .section-kicker,
#blog-secao .section-kicker,
#artigo-secao .section-kicker {
  color: var(--wine-dark-text);
}

.section-title-dark {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.section-title-light {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

.sobre-text {
  font-size: 1.05rem;
  color: rgba(17, 18, 21, 0.8);
  line-height: 1.7;
}

.sobre-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.credential-badge {
  background: rgba(168, 27, 50, 0.08);
  border: 1px solid rgba(168, 27, 50, 0.25);
  color: var(--wine-hover);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-premium), background-color 0.3s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .credential-badge:hover {
    transform: translateY(-2px);
    background: var(--gold-gradient);
    color: #FFFFFF;
  }
}

/* ==========================================================================
   SEÇÃO 3: ÁREAS DE ATUAÇÃO (ABAS DE NAVEGAÇÃO DE ÁREA ÚNICA #atuacao)
   ========================================================================== */
.section-atuacao {
  background-color: var(--navy);
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(168, 27, 50, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(168, 27, 50, 0.04) 0%, transparent 50%);
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.atuacao-header {
  margin-bottom: 50px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.atuacao-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
  line-height: 1.6;
}

/* Animação de Scroll Reveal Suave e Lenta */
.section-atuacao .reveal-element {
  transition: opacity 1.4s var(--ease-premium), transform 1.4s var(--ease-premium);
}

/* Wrapper principal split-screen com abas */
.atuacao-showcase-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: stretch;
}

/* Coluna da Esquerda: Botões das Abas */
.atuacao-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.atuacao-tab-btn {
  background: var(--navy-medium);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Transições ultra suaves e lentas */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.atuacao-tab-btn:hover {
  border-color: rgba(168, 27, 50, 0.35);
  background: var(--navy-light);
  transform: translateX(4px);
}

.atuacao-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 27, 50, 0.18) 0%, #181A1F 100%);
  border-color: var(--wine);
  box-shadow: none;
  transform: translateX(6px);
}

.tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(168, 27, 50, 0.08);
  border: 1px solid rgba(168, 27, 50, 0.25);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.atuacao-tab-btn.active .tab-icon {
  background: var(--wine);
  color: #FFFFFF;
  border-color: var(--wine);
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(168, 27, 50, 0.4);
}

.tab-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.tab-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.atuacao-tab-btn.active .tab-title {
  color: #FFFFFF;
}

.tab-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tab-arrow {
  color: var(--text-muted);
  opacity: 0.4;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.atuacao-tab-btn.active .tab-arrow {
  opacity: 1;
  color: var(--wine);
  transform: translateX(4px);
}

/* Coluna da Direita: Painéis em Destaque */
.atuacao-tabs-content {
  position: relative;
  min-height: 480px;
}

.atuacao-tab-panel {
  display: none;
  background: linear-gradient(145deg, #181A1F 0%, #111215 100%);
  border: 1px solid rgba(168, 27, 50, 0.25);
  border-radius: 20px;
  padding: 44px 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 27, 50, 0.12);
  height: 100%;
  flex-direction: column;
}

/* Animação Suave e Lenta de Aparição do Painel (0.9s ease-premium) */
.atuacao-tab-panel.active {
  display: flex;
  animation: panelSmoothFade 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelSmoothFade {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--wine);
  background: rgba(168, 27, 50, 0.12);
  border: 1px solid rgba(168, 27, 50, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 20px;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.2;
}

.panel-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.panel-services-title {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--wine);
  font-weight: 600;
  margin-bottom: 18px;
}

.panel-services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 24px;
  margin-bottom: 36px;
  flex-grow: 1;
}

.panel-services-grid li {
  font-size: 0.96rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.5s var(--ease-premium), background-color 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
}

.panel-services-grid li:hover {
  border-color: rgba(168, 27, 50, 0.3);
  background: rgba(168, 27, 50, 0.08);
  transform: translateX(4px);
}

.panel-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: auto;
}

.btn-atuacao-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--wine-gradient);
  background-size: 240% 240%;
  background-position: 0% 50%;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: none !important;
  transition: background-position 0.6s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.btn-atuacao-cta:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: none !important;
  filter: none;
}

/* Responsividade Mobile */
@media (max-width: 992px) {
  .atuacao-showcase-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .atuacao-showcase-wrapper > * {
    min-width: 0;
    max-width: 100%;
  }

  .atuacao-tabs-nav {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .atuacao-tab-btn {
    flex-shrink: 0;
    min-width: 240px;
    max-width: 280px;
    scroll-snap-align: start;
  }

  .tab-arrow {
    display: none;
  }

  .atuacao-tab-panel {
    padding: 30px 24px;
  }

  .panel-title {
    font-size: 1.75rem;
  }

  .panel-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SEÇÃO 4: METODOLOGIA (#metodologia)
   ========================================================================== */
.section-metodologia {
  background-color: var(--nude);
  color: var(--text-dark);
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

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

.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.metodologia-step {
  background: #FFFFFF;
  padding: 36px 28px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
}

.metodologia-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}

.metodologia-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 600;
}

.metodologia-text {
  font-size: 0.95rem;
  color: rgba(11, 11, 13, 0.75);
  line-height: 1.6;
}

.progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold-gradient);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  transition: width 0.6s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .metodologia-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
  }

  .metodologia-step:hover .progress-line {
    width: 100%;
  }
}

/* ==========================================================================
   SEÇÃO 5: FAQ / DÚVIDAS (#faq)
   ========================================================================== */
.section-faq {
  background-color: var(--cream);
  color: var(--text-dark);
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

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

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

.faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s var(--ease-premium), border-color 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(168, 27, 50, 0.08);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease-premium), background-color 0.4s var(--ease-premium), color 0.4s var(--ease-premium);
  flex-shrink: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-premium);
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 24px 24px 24px;
  font-size: 0.98rem;
  color: rgba(17, 18, 21, 0.8);
  line-height: 1.7;
}

.faq-item.open {
  border-color: rgba(168, 27, 50, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

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

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--wine-gradient);
  color: #FFFFFF;
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    transform: translateX(4px);
  }
}

/* ==========================================================================
   SEÇÃO 6: CTA FINAL (#contato)
   ========================================================================== */
.section-cta-final {
  background-color: var(--navy);
  padding: 120px 24px;
  text-align: center;
}

.cta-final-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ==========================================================================
   SEÇÃO 7: FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy);
  color: var(--cream);
  padding: 80px 24px 32px 24px;
  border-top: 1px solid rgba(168, 27, 50, 0.25);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nav-title,
.footer-contact-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--gold);
  }
}

.footer-contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-card a {
  color: var(--gold);
  text-decoration: none;
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-credit-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .footer-credit-link:hover {
    color: #FFFFFF;
  }
}

/* ==========================================================================
   WIDGET DE WHATSAPP INTELIGENTE (DESKTOP)
   ========================================================================== */
.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 var(--ease-premium);
}

.whatsapp-widget.widget-visible {
  opacity: 1;
  pointer-events: none;
}

.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.3);
  transition: transform 0.25s var(--ease-premium), background-color 0.25s var(--ease-premium);
  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.06);
    background-color: #128C7E;
  }
}

.whatsapp-tooltip {
  background-color: var(--navy-medium);
  border: 1px solid rgba(168, 27, 50, 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.2);
  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 var(--ease-premium), transform 0.3s var(--ease-premium), max-height 0.3s var(--ease-premium), margin-bottom 0.3s var(--ease-premium), visibility 0.3s;
}

.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);
}

.close-tooltip-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
}

.whatsapp-chat-panel {
  width: 320px;
  background-color: #FFFFFF;
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s var(--ease-premium), transform 0.3s var(--ease-premium), max-height 0.3s var(--ease-premium), margin-bottom 0.3s var(--ease-premium), visibility 0.3s;
}

.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(--wine);
  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: 320px;
  min-height: 0;
  overflow-y: auto;
  background-color: #F4F6F9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 85%;
  flex-shrink: 0;
}

.chat-bubble.received {
  background-color: #FFFFFF;
  color: var(--text-dark);
  align-self: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-bubble.sent {
  background-color: rgba(168, 27, 50, 0.12);
  color: var(--navy);
  align-self: flex-end;
}

.chat-faq-options {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  margin-top: 8px;
}

.chat-faq-options.hidden {
  display: none;
}

.chat-faq-opt {
  background-color: #FFFFFF;
  border: 1px solid rgba(168, 27, 50, 0.3);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
  transition: background-color 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium);
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .chat-faq-opt:hover {
    background-color: rgba(168, 27, 50, 0.05);
    border-color: var(--wine);
  }
}

.chat-footer {
  padding: 12px;
  background-color: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
}

.chat-direct-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
}

/* Typing indicator */
.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;
  }
}

/* ==========================================================================
   MOBILE STICKY BAR (CLEAN FLOATING GREEN PILL)
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 990;
  background: transparent;
  padding: 0 16px;
  pointer-events: none;
  width: 100%;
  max-width: 100%;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-premium), visibility 0.35s var(--ease-premium);
}

.mobile-sticky-bar.sticky-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.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 4px 16px rgba(37, 211, 102, 0.3);
  pointer-events: auto;
  transition: transform 0.25s var(--ease-premium), opacity 0.25s ease;
}

.mobile-sticky-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   ESTILOS DO BLOG & ARTIGOS (DYNAMIC SUPABASE ROUTER)
   ========================================================================== */
#blog-secao,
#artigo-secao {
  padding: 140px 24px 80px 24px;
  background-color: var(--cream);
  color: var(--text-dark);
}

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

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

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

.blog-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-card);
  padding: 28px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  }
}

.blog-card-date {
  font-size: 0.85rem;
  color: rgba(11, 11, 13, 0.6);
  display: block;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  color: var(--text-dark);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: rgba(11, 11, 13, 0.75);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

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

.artigo-main {
  background: #FFFFFF;
  padding: 40px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-voltar {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.artigo-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

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

.artigo-text-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(11, 11, 13, 0.85);
}

.artigo-text-body p {
  margin-bottom: 20px;
}

.artigo-text-body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 32px 0 16px 0;
  color: var(--text-dark);
}

.artigo-text-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 24px 0 12px 0;
  color: var(--text-dark);
}

.artigo-text-body ul {
  margin: 0 0 20px 24px;
}

.artigo-text-body li {
  margin-bottom: 8px;
}

.blog-blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  font-style: italic;
  margin: 24px 0;
  color: rgba(11, 11, 13, 0.9);
}

.artigo-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #FFFFFF;
  padding: 24px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.autor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  display: block;
}

.autor-avatar--fallback {
  background: var(--gold-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.autor-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(11, 11, 13, 0.5);
  font-weight: 700;
}

.autor-nome {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
}

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

.autor-bio {
  font-size: 0.9rem;
  color: rgba(11, 11, 13, 0.75);
  line-height: 1.5;
}

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

.sidebar-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.sidebar-post-item {
  display: block;
  text-decoration: none;
  margin-bottom: 12px;
}

.sidebar-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

.sidebar-post-date {
  font-size: 0.8rem;
  color: rgba(11, 11, 13, 0.5);
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE (@media (max-width: 768px))
   ========================================================================== */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    background: rgba(11, 11, 13, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium);
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .section-hero::after {
    background: linear-gradient(180deg,
        var(--navy) 0%,
        rgba(11, 11, 13, 0.92) 50%,
        rgba(11, 11, 13, 0.75) 100%);
  }

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

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

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

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

  .artigo-layout {
    grid-template-columns: 1fr;
  }

  .artigo-sidebar {
    position: static;
  }

  /* Prevenção estrita de overflow horizontal em mobile */
  .reveal-left,
  .reveal-right {
    transform: translateY(30px);
  }

  section,
  header,
  footer,
  main,
  .site-header,
  .nav-container,
  .hero-container,
  .sobre-container,
  .metodologia-container,
  .cta-final-container,
  .blog-container,
  .artigo-layout {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .site-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 600px) {
  .metodologia-grid,
  .blog-grid-layout,
  .panel-services-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Prevenção de Tontura / Reduced Motion */
@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;
  }
}