/* ==========================================================================
   DESIGN TOKENS & RESET (DPOI ADVOGADOS)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Paleta Homologada (3 Cores Principais) */
  --navy: #0C1928;       /* Cor 1: Dark Navy Principal */
  --blue: #16283D;       /* Variação sutil do Dark Navy para cartões escuros */
  --gold: #F7F5F1;       /* Destaque / Contraste em áreas escuras */
  --cream: #F7F5F1;      /* Cor 3: Off-White / Creme Suave */
  --nude: #EFECE6;       /* Variação sutil do Off-White */
  
  /* Auxiliares */
  --brand-white: #FFFFFF;    /* Cor 2: Branco Puro */
  --brand-text-dark: #0C1928; /* Texto sobre fundo claro */
  --brand-text-muted: #526070;/* Texto secundário */
  --border-gold-subtle: rgba(247, 245, 241, 0.18);
  
  /* Tipografia */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Curva de Luxo Apple & Transições */
  --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);
  
  /* Radii estritos (Blindagem Anti-SaaS) */
  --radius-btn: 6px;
  --radius-card: 8px;
}

*, *::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(--brand-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   SCROLLBAR PERSONALIZADA E MINIMALISTA
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 4px;
  border: 2px solid var(--navy);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ==========================================================================
   ANIMAÇÃO DE ENTRADA SUAVE (2.5s Ease Premium)
   ========================================================================== */
.reveal {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 2.5s var(--ease-premium), transform 2.5s var(--ease-premium);
}
.reveal-left {
  transform: translateX(-60px) translateY(15px);
}
.reveal-right {
  transform: translateX(60px) translateY(15px);
}
.reveal-up {
  transform: translateY(30px);
}
.reveal.active {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   BOTÕES E COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform var(--t-snappy), background-color var(--t-snappy), box-shadow var(--t-snappy);
}

.btn-gold {
  background-color: var(--cream);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover {
    background-color: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247, 245, 241, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline-cream:hover {
    border-color: var(--cream);
    background: rgba(247, 245, 241, 0.08);
    transform: translateY(-2px);
  }
}

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

.site-header.scrolled,
body.blog-route .site-header {
  background-color: rgba(12, 25, 40, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Lógica de Visibilidade Estrita */
.site-header.navbar-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

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

.logo img,
.footer-brand img {
  filter: brightness(0) invert(1);
  height: 52px;
  max-height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

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

.nav-links a:not(.btn) {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--t-snappy);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover {
    color: var(--gold);
  }
  .nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
  }
}

.nav-cta {
  padding: 12px 24px !important;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  background-color: var(--gold);
  color: var(--navy) !important;
  border-radius: var(--radius-btn);
  transition: background-color var(--t-snappy), transform var(--t-snappy), box-shadow var(--t-snappy);
}

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

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    background-color: var(--brand-white) !important;
    color: var(--navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }
}

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

.nav-hamburger span {
  width: 26px;
  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;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse 70% 85% at 78% 35%, rgba(12, 25, 40, 0.0) 0%, rgba(12, 25, 40, 0.65) 55%, var(--navy) 92%),
    linear-gradient(to right, var(--navy) 30%, rgba(12, 25, 40, 0.3) 65%, transparent 100%),
    url('assets/grupo.webp');
  background-size: cover;
  background-position: 82% 18%;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 78% 35%, rgba(247, 245, 241, 0.06) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background: 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.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 3;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 100%;
  text-align: left;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 4px 12px;
  border-left: 2px solid var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(245, 237, 216, 0.85);
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* KPIs Estratégicos na Hero */
.hero-kpis {
  margin-top: 52px;
  padding: 28px 36px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 245, 241, 0.18);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hero-kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-kpi-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(247, 245, 241, 0.18);
}

.hero-kpi-number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.hero-kpi-label {
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.9;
  font-weight: 400;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 40px;
  }
  .hero-bg-photo {
    display: block;
    background-image: 
      linear-gradient(to bottom, rgba(12, 25, 40, 0.72) 0%, rgba(12, 25, 40, 0.85) 60%, var(--navy) 100%),
      url('assets/grupo.webp');
    background-position: center 15%;
    opacity: 0.75;
  }
  .hero-kpis {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 24px;
    gap: 20px;
  }
  .hero-kpi-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
  }
}

/* ==========================================================================
   SEÇÃO 1.5: PROVA SOCIAL & DEPOIMENTOS
   ========================================================================== */
.section-social-proof {
  background-color: #091320;
  padding: 70px 24px;
  border-top: 1px solid rgba(247, 245, 241, 0.12);
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
}

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

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
  text-align: center;
}

.metric-item {
  padding: 20px;
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--cream);
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.testimonials-heading {
  text-align: center;
  margin-bottom: 36px;
}

.testimonials-heading h3 {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(22, 40, 61, 0.6);
  border: 1px solid rgba(247, 245, 241, 0.12);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--cream);
  font-style: italic;
  margin-bottom: 16px;
  opacity: 0.95;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
}

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

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

.sobre-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}

.sobre-subheading {
  font-size: 1rem;
  color: var(--brand-text-muted);
  margin-bottom: 28px;
}

.sobre-tabs {
  display: inline-flex;
  gap: 8px;
  background-color: rgba(12, 25, 40, 0.06);
  padding: 6px;
  border-radius: 40px;
  border: 1px solid rgba(12, 25, 40, 0.1);
}

.sobre-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--t-snappy);
}

.sobre-tab-btn:hover {
  color: var(--navy);
  background-color: rgba(255, 255, 255, 0.6);
}

.sobre-tab-btn.active {
  background-color: var(--navy);
  color: var(--cream);
  box-shadow: 0 4px 12px rgba(12, 25, 40, 0.2);
}

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

.sobre-profile-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.sobre-profile-card:not(.active) {
  display: none;
  opacity: 0;
  transform: translateY(15px);
}

.sobre-profile-card.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.sobre-photo-wrapper {
  position: relative;
}

.sobre-photo-croqui {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-card);
  border: 1px solid rgba(12, 25, 40, 0.12);
  padding: 12px;
  background-color: var(--brand-white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.sobre-photo-croqui img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.sobre-role-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  background-color: rgba(12, 25, 40, 0.08);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.sobre-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
}

.sobre-content p {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 20px;
  line-height: 1.7;
}

.sobre-highlight {
  border-left: 3px solid var(--navy);
  padding-left: 16px;
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  margin: 24px 0;
}

/* ==========================================================================
   SEÇÃO 3: ÁREAS DE ATUAÇÃO (#atuacao)
   ========================================================================== */
.section-atuacao {
  background-color: var(--navy);
  color: var(--cream);
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.atuacao-header {
  margin-bottom: 60px;
}

.atuacao-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 12px;
}

.atuacao-header p {
  color: rgba(245, 237, 216, 0.7);
  font-size: 1.05rem;
}

.atuacao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.atuacao-card {
  background-color: var(--blue);
  border: 1px solid rgba(247, 245, 241, 0.12);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform var(--t-snappy), border-color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .atuacao-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
  }
}

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

.atuacao-card-headline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.4;
}

.atuacao-card-copy {
  font-size: 0.88rem;
  color: rgba(245, 237, 216, 0.75);
  line-height: 1.6;
}

/* ==========================================================================
   SEÇÃO 4: METODOLOGIA (#metodologia) - LINHA DO TEMPO SUTIL E MODERNA
   ========================================================================== */
.section-metodologia {
  background-color: var(--nude);
  color: var(--navy);
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.metodologia-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.metodologia-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-text-muted);
  margin-bottom: 8px;
}

.metodologia-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 12px;
}

.metodologia-subtitle {
  font-size: 0.98rem;
  color: var(--brand-text-muted);
  line-height: 1.5;
}

/* Timeline Layout Vertical Elegante */
.metodologia-timeline {
  position: relative;
  max-width: 760px;
  margin: 20px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 12px;
}

.metodologia-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 44px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(12, 25, 40, 0.1) 0%, rgba(12, 25, 40, 0.25) 50%, rgba(12, 25, 40, 0.1) 100%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 28px;
  background-color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(12, 25, 40, 0.08);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform var(--t-snappy), background-color var(--t-snappy), box-shadow var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .timeline-item:hover {
    background-color: var(--brand-white);
    transform: translateX(6px);
    box-shadow: 0 12px 28px rgba(12, 25, 40, 0.06);
  }
}

.timeline-badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--brand-white);
  border: 1px solid rgba(12, 25, 40, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: border-color var(--t-snappy), background-color var(--t-snappy);
}

.timeline-item:hover .timeline-badge {
  border-color: var(--navy);
  background-color: var(--navy);
}

.timeline-number {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  transition: color var(--t-snappy);
}

.timeline-item:hover .timeline-number {
  color: var(--cream);
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.timeline-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.65;
}

@media (max-width: 991px) {
  .sobre-profile-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .metodologia-timeline {
    padding-left: 0;
    gap: 24px;
  }
  .metodologia-timeline::before {
    left: 32px;
  }
  .timeline-item {
    padding: 20px 16px;
    gap: 16px;
  }
  .timeline-badge {
    width: 52px;
    height: 52px;
  }
}

/* ==========================================================================
   SEÇÃO 5: DIFERENCIAIS COMPETITIVOS
   ========================================================================== */
.section-diferenciais {
  background-color: var(--navy);
  padding: 90px 24px;
  border-top: 1px solid rgba(247, 245, 241, 0.12);
}

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

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.diferencial-card {
  background-color: var(--blue);
  border-radius: var(--radius-card);
  padding: 28px;
  border-left: 3px solid var(--gold);
}

.diferencial-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.diferencial-desc {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.9;
}

/* ==========================================================================
   SEÇÃO 6: FAQ / DÚVIDAS (#faq)
   ========================================================================== */
.section-faq {
  background-color: var(--cream);
  color: var(--navy);
  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: 50px;
}

.faq-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--navy);
}

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

.faq-item {
  background-color: var(--brand-white);
  border: 1px solid rgba(12, 25, 40, 0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
}

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

.faq-icon {
  font-size: 1.3rem;
  color: var(--navy);
  transition: transform var(--t-snappy);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* UX do Accordion via CSS Grid (Obrigatório) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-smooth);
}

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

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: padding var(--t-smooth);
}

.faq-item.active .faq-answer-inner {
  padding: 0 24px 20px 24px;
}

.faq-answer-inner p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

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

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

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

.cta-final-container p {
  font-size: 1.1rem;
  color: rgba(245, 237, 216, 0.8);
  margin-bottom: 36px;
}

/* ==========================================================================
   SEÇÕES DINÂMICAS DO BLOG (#blog-secao e #artigo-secao)
   ========================================================================== */
#blog-secao, #artigo-secao {
  padding: 120px 24px 80px 24px;
  background-color: var(--cream);
  color: var(--navy);
  min-height: 80vh;
}

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

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

.blog-card {
  background-color: var(--brand-white);
  border: 1px solid rgba(12, 25, 40, 0.08);
  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 12px 24px rgba(0, 0, 0, 0.06);
}

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

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

.blog-card-excerpt {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.6;
}

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

/* Página do Artigo */
.artigo-single-container {
  max-width: 1100px;
  margin: 0 auto;
}

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

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

}

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

.artigo-divider {
  border: none;
  border-top: 1px solid rgba(12, 25, 40, 0.08);
  margin-bottom: 32px;
}

.artigo-text-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1E293B;
  margin-bottom: 20px;
}

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

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

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

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

.sidebar-card {
  background-color: var(--brand-white);
  border: 1px solid rgba(12, 25, 40, 0.08);
  border-radius: var(--radius-card);
  padding: 24px;
}

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

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

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

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

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

.autor-bio {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid rgba(13, 35, 66, 0.08);
  margin: 16px 0;
}

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

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

.sidebar-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  display: block;
}

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

/* ==========================================================================
   SEÇÃO 7: FOOTER (#footer)
   ========================================================================== */
.site-footer {
  background-color: #060E18;
  color: var(--cream);
  padding: 80px 24px 40px 24px;
  border-top: 1px solid rgba(247, 245, 241, 0.12);
}

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

.footer-brand img {
  height: 52px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(247, 245, 241, 0.7);
  line-height: 1.6;
}

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

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: rgba(247, 245, 241, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover {
    color: var(--brand-white);
  }
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(247, 245, 241, 0.8);
  margin-bottom: 10px;
}

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

.footer-legal-info {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(247, 245, 241, 0.5);
  line-height: 1.5;
}

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

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

/* ==========================================================================
   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 var(--ease-premium);
}

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

.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 var(--ease-premium), background-color 0.2s var(--ease-premium);
  will-change: transform;
}

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

.whatsapp-tooltip {
  background-color: var(--navy);
  border: 1px solid var(--border-gold-subtle);
  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 var(--ease-premium), transform 0.3s var(--ease-premium), max-height 0.3s var(--ease-premium), visibility 0.3s;
}

.whatsapp-tooltip.active {
  opacity: 1;
  visibility: visible;
  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.25rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-chat-panel {
  width: 320px;
  background-color: var(--brand-white);
  border: 1px solid rgba(0, 34, 77, 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 var(--ease-premium), transform 0.3s var(--ease-premium), max-height 0.3s var(--ease-premium), visibility 0.3s;
}

.whatsapp-chat-panel.active {
  opacity: 1;
  visibility: visible;
  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(--blue);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.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; /* Crítico (Flexbox Scroll Collapse) */
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--cream);
  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%;
  word-wrap: break-word;
  flex-shrink: 0; /* Crítico */
}

.chat-bubble.received {
  background-color: var(--brand-white);
  color: var(--brand-text-dark);
  align-self: flex-start;
  border-top-left-radius: 2px;
  border: 1px solid rgba(12, 25, 40, 0.06);
}

.chat-bubble.sent {
  background-color: rgba(12, 25, 40, 0.08);
  color: var(--navy);
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.chat-faq-options {
  display: flex;
  flex-direction: column;
  flex-shrink: 0; /* Crítico */
  gap: 8px;
  margin-top: 8px;
  transition: opacity 0.3s var(--ease-premium), max-height 0.3s var(--ease-premium);
}

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

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

.chat-faq-opt {
  background-color: var(--brand-white);
  border: 1px solid rgba(12, 25, 40, 0.12);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.chat-footer {
  padding: 12px;
  background-color: var(--brand-white);
  border-top: 1px solid rgba(12, 25, 40, 0.06);
  display: flex;
  justify-content: center;
}

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

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

/* ==========================================================================
   STICKY BAR MOBILE & RESPONSIVIDADE
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background-color: var(--navy);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sticky-bar .btn-whatsapp-sticky {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  background-color: #25D366; /* WhatsApp Green */
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: background-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}
.mobile-sticky-bar .btn-whatsapp-sticky:hover,
.mobile-sticky-bar .btn-whatsapp-sticky:active {
  background-color: #20ba5a;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .sobre-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .artigo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(13, 35, 66, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium);
    z-index: 1000;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
  .mobile-sticky-bar {
    display: block;
  }
  /* Ocultar botão flutuante no mobile (apenas o botão inferior verde permanece) */
  .whatsapp-widget,
  #whatsapp-widget {
    display: none !important;
  }
  .section-cta-final {
    padding-bottom: 120px;
  }
  .site-footer {
    padding-bottom: 110px;
  }
}
