/* ==========================================================================
   DESIGN SYSTEM & TOKENS
   ========================================================================== */
:root {
  /* Cores Homologadas pelo Cliente */
  --navy: #00224D;         /* Azul Marinho - Fundo Principal Escuro */
  --blue-medium: #0c3365;  /* Azul Médio para Cards e Sub-fundos */
  --white: #FFFFFF;        /* Branco para textos */
  --gold: #9E804B;         /* Dourado para Destaques e Botões */
  
  /* Cores Claras para Contraste */
  --bg-light: #F8F9FA;     /* Fundo claro para seções creme/light */
  --text-dark: #1A1A1A;    /* Texto escuro nas seções claras */
  --text-muted: #555555;   /* Texto secundário nas seções claras */
  
  /* Tipografia */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Micro-interações */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1); /* Curva de Luxo Apple */
  --t-snappy: 0.25s var(--ease-premium);
  --t-smooth: 0.5s var(--ease-premium);
  --t-slow: 1.5s var(--ease-premium);
}

/* Custom Scrollbar - Minimalista e Fina */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bfa168;
}

/* Reset & Configurações Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Animação Suave de Entrada do Site */
.fade-in-entry {
  animation: pageEntry var(--t-slow) forwards;
}

@keyframes pageEntry {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Prevenção de Tontura / Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   COMPONENTES GERAIS: BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px; /* Raio de borda máximo de 6px conforme criadordesite.md */
  transition: transform var(--t-snappy), background-color var(--t-snappy), box-shadow var(--t-snappy);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }
  .btn-gold:hover {
    background-color: #836737; /* Leve escurecimento sem brilho */
  }
}

.btn-nav {
  padding: 10px 20px;
}

.btn-hero, .btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Título de Seções */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.25;
}

.text-navy {
  color: var(--navy);
}

.text-white {
  color: var(--white);
}

/* ==========================================================================
   SEÇÃO 0: NAVBAR INTELIGENTE
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--t-smooth), backdrop-filter var(--t-smooth), transform var(--t-smooth);
}

/* Classe aplicada via JS ao rolar */
.site-header--scrolled {
  background-color: rgba(0, 34, 77, 0.85); /* Fundo Navy com opacidade */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(158, 128, 75, 0.15); /* Dourado sutil */
}

/* Lógica de Visibilidade Estrita: some nas seções intermediárias */
.site-header--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

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

.logo img {
  height: 52px; /* Altura proeminente para visibilidade nítida */
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-item {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color var(--t-snappy);
}

/* Micro-interação de Link: pseudo-elemento after linha fina */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-snappy);
}

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

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

/* Imagem de fundo com opacidade baixa */
.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;
}

/* Máscara de escurecimento lateral para legibilidade do texto */
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    var(--navy) 0%, 
    rgba(0, 34, 77, 0.9) 35%, 
    rgba(0, 34, 77, 0.6) 65%, 
    rgba(0, 34, 77, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Degradê radial escuro + Noise SVG */
.hero-noise {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(12, 51, 101, 0.4) 0%, rgba(0, 34, 77, 0.95) 70%),
              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.04;
  pointer-events: none;
  z-index: 3;
}

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

.hero-content {
  max-width: 720px;
  text-align: left; /* Alinhado 100% à esquerda */
}

.kicker-tag {
  font-family: var(--font-sans);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

/* ==========================================================================
   SEÇÃO 2: SOBRE / AS ADVOGADAS
   ========================================================================== */
.section-sobre {
  background-color: var(--bg-light);
  padding: 100px 24px;
}

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

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.sobre-left {
  display: flex;
  justify-content: center;
}

/* Vibe Croqui: placeholder 3:4 com borda tracejada fina */
.sobre-img-container {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border: 1px dashed rgba(158, 128, 75, 0.4);
  border-radius: 8px; /* Máximo de 8px para cards */
  padding: 12px;
  background-color: rgba(0, 34, 77, 0.02);
  box-shadow: 0 20px 40px rgba(0, 34, 77, 0.08);
}

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

.sobre-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.pillars-wrapper {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar-item {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

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

.atuacao-intro {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 56px;
}

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

/* Estilo dos Cards (Azul Médio com Borda Dourada Fina) */
.atuacao-card {
  background-color: var(--blue-medium);
  border: 1px solid rgba(158, 128, 75, 0.2); /* Borda Dourada finíssima de baixa opacidade */
  border-radius: 8px; /* Máximo de 8px */
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-snappy), border-color var(--t-snappy), box-shadow var(--t-snappy);
}

.card-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--t-snappy);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 16px;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

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

.card-bullets li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  display: flex;
  align-items: center;
}

.card-bullets li::before {
  content: '·';
  font-size: 1.5rem;
  margin-right: 8px;
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .atuacao-card:hover {
    transform: translateY(-4px);
    border-color: rgba(158, 128, 75, 0.6);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  }
  .atuacao-card:hover .card-decor {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   SEÇÃO 4: METODOLOGIA
   ========================================================================== */
.section-metodologia {
  background-color: #EDE0C4; /* Cor Nude do criadordesite.md */
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.metodologia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.metodo-col {
  position: relative;
}

.metodo-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.15; /* Opacidade reduzida */
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.metodo-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
}

.metodo-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(0, 34, 77, 0.85);
}

/* ==========================================================================
   SEÇÃO 5: FAQ / DÚVIDAS (ACCORDION COM CSS GRID)
   ========================================================================== */
.section-faq {
  background-color: var(--bg-light);
  padding: 100px 24px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.faq-accordion {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid rgba(0, 34, 77, 0.08);
  border-radius: 8px; /* Máximo 8px */
  overflow: hidden;
  transition: box-shadow var(--t-snappy);
}

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

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--gold);
  transition: transform var(--t-smooth);
}

.faq-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

/* Rotação quando aberto */
.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-question[aria-expanded="true"] .faq-icon::before {
  transform: rotate(180deg);
}

/* Transição de Altura utilizando CSS Grid (Requisito estrito) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-smooth);
}

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

.faq-answer-inner p {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Aberto */
.faq-answer.open {
  grid-template-rows: 1fr;
}

@media (hover: hover) and (pointer: fine) {
  .faq-question:hover {
    background-color: rgba(0, 34, 77, 0.02);
  }
}

/* ==========================================================================
   SEÇÃO 6: CTA FINAL
   ========================================================================== */
.section-cta-final {
  background-color: var(--navy);
  padding: 120px 24px;
  text-align: center;
  border-top: 1px solid rgba(158, 128, 75, 0.2);
}

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

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ==========================================================================
   SEÇÃO 8: LISTAGEM DO BLOG
   ========================================================================== */
#blog-secao, #artigo-secao {
  padding: 120px 24px 80px 24px;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

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

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

/* Blog Cards (Strictly textual - no images) */
.blog-card {
  background-color: var(--white);
  border: 1px solid rgba(0, 34, 77, 0.08);
  border-radius: 8px; /* Máximo 8px */
  padding: 30px;
  cursor: pointer;
  transition: transform var(--t-smooth), box-shadow var(--t-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.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.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 34, 77, 0.05);
  }
  .blog-card:hover .blog-card-link {
    color: #836737;
  }
}

/* ==========================================================================
   SEÇÃO 9: PÁGINA DO ARTIGO INDIVIDUAL
   ========================================================================== */
.artigo-single-container {
  max-width: 750px;
  margin: 0 auto;
}

.btn-voltar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 32px;
  padding: 0;
  transition: opacity var(--t-snappy);
  display: inline-flex;
  align-items: center;
}

.btn-voltar:hover {
  opacity: 0.8;
}

.artigo-meta-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.artigo-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 24px;
}

.artigo-divider {
  border: 0;
  border-top: 1px solid rgba(0, 34, 77, 0.08);
  margin: 24px 0 32px 0;
}

.artigo-text-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-dark);
  text-align: justify;
}

.artigo-text-body strong {
  font-weight: 700;
  color: var(--navy);
}

.blog-blockquote {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 36px 0;
  font-style: italic;
}

.artigo-text-body ul {
  margin-bottom: 24px;
  padding-left: 24px;
  list-style-type: square;
}

.artigo-text-body li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text-dark);
}

.loading, .empty, .error {
  text-align: center;
  padding: 48px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.error a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   SEÇÃO 7: FOOTER
   ========================================================================== */
.site-footer {
  background-color: #001229; /* Navy mais profundo */
  padding: 80px 24px 40px 24px;
  border-top: 1px solid rgba(158, 128, 75, 0.1);
}

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

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 24px;
}

.footer-brand-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--t-snappy);
}

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

.footer-contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color var(--t-snappy);
}

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

.email-detail {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.address-detail {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-text, .credits-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.agency-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .agency-link:hover {
    color: var(--white);
  }
}

/* ==========================================================================
   WIDGET DE WHATSAPP INTELIGENTE
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* Inicia invisível e desativado na Hero */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-smooth);
}

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

.whatsapp-trigger-btn,
.whatsapp-chat-panel,
.whatsapp-tooltip {
  pointer-events: auto;
}

/* Botão Circular Principal - Verde Oficial do WhatsApp */
.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 var(--t-snappy), background-color var(--t-snappy);
  will-change: transform;
}

.whatsapp-svg-icon {
  fill: var(--white);
  width: 28px;
  height: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-trigger-btn:hover {
    transform: scale(1.05);
    background-color: #128C7E; /* Tom verde mais escuro no hover */
  }
}

/* Tooltip de Inatividade */
.whatsapp-tooltip {
  background-color: var(--navy);
  border: 1px solid rgba(158, 128, 75, 0.3);
  color: var(--white);
  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), 
              padding 0.3s var(--ease-premium), 
              margin-bottom 0.3s var(--ease-premium),
              visibility 0.3s;
  will-change: opacity, transform, max-height;
}

.whatsapp-tooltip.active {
  opacity: 1;
  visibility: visible;
  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(158, 128, 75, 0.3);
  border-bottom: 1px solid rgba(158, 128, 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 var(--t-snappy);
  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(0, 34, 77, 0.1);
  border-radius: 8px; /* Máximo 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), 
              margin-bottom 0.3s var(--ease-premium),
              visibility 0.3s;
  will-change: transform, opacity, max-height;
}

.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(--gold);
  color: var(--white);
  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: var(--white);
}

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

.chat-messages-container {
  padding: 16px;
  max-height: 340px;
  overflow-y: auto;
  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;
}

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

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

.chat-faq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  opacity: 1;
  max-height: 300px;
  transition: opacity 0.3s var(--ease-premium), max-height 0.3s var(--ease-premium), margin-top 0.3s var(--ease-premium);
  overflow: hidden;
}

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

.chat-faq-opt {
  background-color: var(--white);
  border: 1px solid rgba(158, 128, 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 var(--t-snappy), border-color var(--t-snappy);
  min-height: 48px;
  display: flex;
  align-items: center;
}

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

/* Rodapé com link direto para o WhatsApp */
.chat-footer {
  padding: 12px;
  background-color: var(--white);
  border-top: 1px solid rgba(0, 34, 77, 0.05);
  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 var(--t-snappy);
  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 - Foco Visível para Navegação via 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;
}

/* ==========================================================================
   STICKY CTA BAR MOBILE
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 998;
}

/* ==========================================================================
   MEDIA QUERIES & RESPONSIVIDADE (MOBILE-FIRST)
   ========================================================================== */

/* Telas Maiores (Desktop) */
@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

/* Telas Menores (Mobile/Tablet) */
@media (max-width: 767px) {
  /* Navbar */
  .header-container {
    padding: 12px 16px;
  }
  .logo img {
    height: 40px;
  }
  .main-nav, .header-cta {
    display: none; /* Em mobile real, seria necessário um menu hambúrguer se houver links */
  }
  
  /* Hero */
  .section-hero {
    padding: 100px 16px 60px 16px;
    min-height: auto;
  }
  .section-hero::after {
    background: linear-gradient(180deg, 
      var(--navy) 0%, 
      rgba(0, 34, 77, 0.92) 50%, 
      rgba(0, 34, 77, 0.75) 100%
    );
  }
  
  /* Sobre */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sobre-img-container {
    max-width: 300px;
  }
  
  /* Atuação */
  .section-atuacao {
    padding: 60px 16px;
  }
  
  /* Metodologia */
  .section-metodologia {
    padding: 60px 16px;
  }
  .metodologia-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  /* FAQ */
  .section-faq {
    padding: 60px 16px;
  }
  .faq-question {
    font-size: 1rem;
    padding: 20px;
  }
  
  /* CTA Final */
  .section-cta-final {
    padding: 60px 16px 110px 16px; /* Clearance para sticky bar */
  }
  
  /* Blog & Artigos */
  #blog-secao, #artigo-secao {
    padding: 80px 16px 120px 16px;
  }
  .blog-grid-layout {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .site-footer {
    padding: 60px 16px 100px 16px; /* Clearance para sticky bar */
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  /* Widget WhatsApp */
  .whatsapp-widget {
    bottom: 84px; /* Sobe para não cobrir a sticky bar */
    right: 16px;
  }
}
