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

/* ==========================================================================
   DESIGN TOKENS & VARIÁVEIS
   ========================================================================== */
:root {
  --primary: #88613d;
  --primary-hover: #734e2e;
  --secondary: #bb9d7f;
  --secondary-hover: #a8896a;
  --bg-dark: #201610;
  --bg-dark-card: #2a1e16;
  --bg-light: #fbfaf8;
  --bg-nude: #ede0c4;
  
  --text-dark: #201610;
  --text-light: #fbfaf8;
  --text-cream: #f5edd8;
  
  --border-gold: rgba(187, 157, 127, 0.25);
  --border-gold-solid: #bb9d7f;
  
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --t-snappy: 0.25s var(--ease-premium);
  --t-smooth: 0.5s var(--ease-premium);
}

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

/* ==========================================================================
   RESET, CURSOR & SEGURANÇA DE CLIQUE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  caret-color: transparent !important; /* Bloqueia cursor de digitação piscante em todo o site */
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ajusta o foco visual ao rolar para as seções via links da navbar fixa */
section, header, #inicio, #sobre, #atuacao, #metodologia, #blog, #faq, #contato {
  scroll-margin-top: 80px;
}

/* Impede sensação de "site editável" ao clicar em áreas vazias */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Permite seleção de texto apenas em elementos de leitura reais */
p, h1, h2, h3, h4, li, span, blockquote, q, time, .blog-body {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

/* Hover de links global para mudança de cor */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--secondary);
  }
  
  /* Botões e logos mantêm o comportamento de cores isolado */
  .btn:hover, .navbar-logo:hover, .atuacao-card:hover, .blog-secao-card:hover {
    color: inherit;
  }
}

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

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA (IntersectionObserver)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-smooth), transform var(--t-smooth);
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   SEÇÃO 0: NAVBAR INTELIGENTE
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  transition: padding var(--t-snappy), background-color var(--t-snappy), backdrop-filter var(--t-snappy), opacity var(--t-smooth), transform var(--t-smooth);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.navbar-toggle {
  display: none;
}

.navbar-overlay {
  display: none;
}

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

.navbar.nav-scrolled {
  padding: 0.8rem 2rem;
  background-color: rgba(32, 22, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(187, 157, 127, 0.1);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 64px; /* Aumentado para nitidez e legibilidade excelente */
  width: auto;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.navbar-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-cream);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

@media (hover: hover) and (pointer: fine) {
  .navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t-snappy);
  }

  .navbar-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ==========================================================================
   SEÇÃO 1: HERO
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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.8' 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: 2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 35%, rgba(136, 97, 61, 0.18) 0%, rgba(32, 22, 16, 0.98) 75%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  position: relative;
  z-index: 3;
  gap: 4rem;
}

.hero-content {
  text-align: left;
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  color: var(--text-cream);
  margin-bottom: 2rem;
}

.hero-title span {
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
}

.hero-description {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(251, 250, 248, 0.85);
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: var(--t-snappy);
  cursor: pointer;
  border: none;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--bg-dark);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
  }
}

/* Imagem da Hero (Absoluta - Marca d'água de 12% opacidade no PC) */
.hero-image-right {
  position: absolute;
  right: -5%; /* Vaza ligeiramente para a direita */
  top: 50%;
  transform: translateY(calc(-50% + 24px)); /* Posição inicial da animação */
  width: 50%;
  max-width: 812px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  mix-blend-mode: overlay;
  pointer-events: none; /* Impede que interfira nos cliques na hero */
  z-index: 1; /* Fica atrás do conteúdo */
  transition: opacity var(--t-smooth), transform var(--t-smooth);
}

.hero-image-right.active {
  opacity: 0.12 !important; /* Força 12% de opacidade ao ativar */
  transform: translateY(-50%) !important; /* Força posição final sem conflito com active global */
}

#hero-icon-img {
  width: 100%;
  max-width: 812px; /* Aumentado em 40% (580px * 1.4 = 812px) */
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   SEÇÃO 2: QUEM SOMOS
   ========================================================================== */
.sobre {
  background-color: var(--bg-light);
  padding: 10rem 2rem;
  color: var(--text-dark);
}

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

.sobre-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  border: 1px dashed var(--secondary);
  padding: 1rem;
  border-radius: 8px;
}

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

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

.section-kicker {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.section-title span {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.sobre-text {
  font-size: 1.05rem;
  color: rgba(32, 22, 16, 0.8);
  margin-bottom: 2.5rem;
}

.sobre-text p {
  margin-bottom: 1.5rem;
}

.sobre-oab {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--primary);
  border-left: 2px solid var(--secondary);
  padding-left: 1rem;
  margin-top: 1rem;
}

/* ==========================================================================
   SEÇÃO 3: ÁREAS DE ATUAÇÃO
   ========================================================================== */
.atuacao {
  background-color: var(--bg-dark);
  padding: 10rem 2rem;
  color: var(--text-light);
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.atuacao-header {
  margin-bottom: 5rem;
  max-width: 700px;
}

.atuacao-header .section-title {
  color: var(--text-cream);
}

.atuacao-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.atuacao-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  transition: var(--t-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.atuacao-icon {
  margin-bottom: 2rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
}

.atuacao-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5; /* Correção do tamanho e bug visual do stroke */
}

.atuacao-card-title {
  font-size: 1.5rem;
  color: var(--text-cream);
  margin-bottom: 1.25rem;
}

.atuacao-card-desc {
  font-size: 0.95rem;
  color: rgba(245, 237, 216, 0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.atuacao-link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.atuacao-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .atuacao-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold-solid);
    background-color: rgba(42, 30, 22, 1);
  }
  
  .atuacao-card:hover .atuacao-link svg {
    transform: translateX(4px);
  }
}

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

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

.metodologia-header {
  margin-bottom: 5rem;
  text-align: center;
}

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

.metodologia-col {
  position: relative;
}

.metodologia-num {
  font-family: 'Playfair Display', serif;
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--primary);
  opacity: 0.18;
  margin-bottom: 1rem;
  display: block;
}

.metodologia-title {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.metodologia-desc {
  font-size: 0.975rem;
  color: rgba(32, 22, 16, 0.8);
  line-height: 1.6;
}

/* ==========================================================================
   SEÇÃO: BLOG (PÁGINA PRINCIPAL)
   ========================================================================== */
.blog-secao {
  background-color: var(--bg-light);
  padding: 10rem 2rem;
  color: var(--text-dark);
}

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

.blog-secao-header {
  margin-bottom: 5rem;
  text-align: center;
}

.blog-secao-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.blog-secao-card {
  background-color: #ffffff;
  border: 1px solid rgba(136, 97, 61, 0.12);
  border-radius: 8px;
  padding: 2.5rem;
  transition: var(--t-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-secao-card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-secao-card-title {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.blog-secao-card-desc {
  font-size: 0.925rem;
  color: rgba(32, 22, 16, 0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.blog-secao-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.blog-secao-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .blog-secao-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(32, 22, 16, 0.04);
  }
  
  .blog-secao-card:hover .blog-secao-card-link svg {
    transform: translateX(4px);
  }
}

/* ==========================================================================
   SEÇÃO 5: FAQ / DÚVIDAS
   ========================================================================== */
.faq {
  background-color: var(--bg-light);
  padding: 10rem 2rem;
  color: var(--text-dark);
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

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

.faq-header {
  margin-bottom: 5rem;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid rgba(136, 97, 61, 0.15);
  padding-bottom: 1.5rem;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  color: var(--text-dark);
}

.faq-question {
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  padding-right: 2rem;
}

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

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  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 no FAQ Aberto (faq-open evita conflito com active do fade-in-up) */
.faq-item.faq-open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-item.faq-open .faq-icon::before {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-smooth);
}

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

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

.faq-answer-content {
  padding: 0.5rem 0 1.5rem;
  font-size: 0.975rem;
  color: rgba(32, 22, 16, 0.75);
  line-height: 1.65;
}

/* ==========================================================================
   SEÇÃO 6: CTA FINAL
   ========================================================================== */
.cta {
  background-color: var(--bg-dark);
  padding: 12rem 2rem;
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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.8' 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;
}

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

.cta .section-title {
  color: var(--text-cream);
  font-size: 3.25rem;
  margin-bottom: 2.5rem;
}

.cta-desc {
  font-size: 1.125rem;
  color: rgba(251, 250, 248, 0.8);
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SEÇÃO 7: FOOTER
   ========================================================================== */
.footer {
  background-color: #170f0a;
  padding: 6rem 2rem 2rem;
  color: rgba(251, 250, 248, 0.7);
  border-top: 1px solid rgba(187, 157, 127, 0.1);
}

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

.footer-brand img {
  height: 64px; /* Aumentado para melhor legibilidade */
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-cream);
  margin-bottom: 1.5rem;
}

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

.footer-link {
  font-size: 0.9rem;
  color: rgba(251, 250, 248, 0.75);
}

.footer-contact-item {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(187, 157, 127, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* Link para o Almeida Escala Digital no Footer */
.footer-bottom a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .footer-bottom a:hover {
    text-decoration: underline;
    color: var(--secondary-hover);
  }
}

/* ==========================================================================
   WIDGET WHATSAPP INTELIGENTE
   ========================================================================== */
.zap-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity var(--t-smooth), transform var(--t-smooth);
}

.zap-widget.widget-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.zap-tooltip {
  background-color: var(--bg-dark-card);
  color: var(--text-cream);
  border: 1px solid var(--border-gold);
  padding: 0.875rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transform-origin: bottom right;
  transition: opacity var(--t-smooth), transform var(--t-smooth);
  pointer-events: none;
  max-width: 260px;
}

.zap-tooltip.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.zap-tooltip-close {
  background: none;
  border: none;
  color: var(--text-cream);
  opacity: 0.5;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  transition: opacity var(--t-snappy);
}

.zap-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  border: 1px solid #20ba59;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: background-color var(--t-snappy), transform var(--t-snappy), box-shadow var(--t-snappy);
  position: relative;
  will-change: transform, opacity;
  z-index: 10;
}

.zap-trigger svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .zap-trigger:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  }
}

.zap-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 480px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-gold-solid);
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(32, 22, 16, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(15px);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity var(--t-smooth), transform var(--t-smooth);
  will-change: transform, opacity;
  z-index: 9;
}

.zap-panel.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.zap-header {
  background-color: var(--bg-dark);
  color: var(--text-cream);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-gold);
}

.zap-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold-solid);
}

.zap-header-avatar svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

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

.zap-header-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.zap-header-status {
  font-size: 0.75rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.zap-header-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2ec4b6;
  display: inline-block;
}

.zap-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  background-color: #fbfaf8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.zap-msg {
  max-width: 80%;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 8px;
}

.zap-msg-system {
  background-color: var(--bg-nude);
  color: var(--text-dark);
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.zap-msg-user {
  background-color: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.zap-loader {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-nude);
  border-radius: 8px;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.zap-loader span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.4;
  animation: zapDot 1.4s infinite both;
}

.zap-loader span:nth-child(2) { animation-delay: 0.2s; }
.zap-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes zapDot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.zap-options-wrapper {
  transition: opacity var(--t-snappy), transform var(--t-snappy);
}

.zap-options-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  height: 0;
  overflow: hidden;
  margin: 0;
}

.zap-options-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(32, 22, 16, 0.5);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.zap-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zap-opt-btn {
  background: #fff;
  border: 1px solid var(--border-gold);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .zap-opt-btn:hover {
    border-color: var(--primary);
    background-color: var(--bg-light);
    color: var(--primary);
  }
}

.zap-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(187, 157, 127, 0.15);
  background-color: #fff;
}

.zap-direct-btn {
  width: 100%;
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 0.875rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--t-snappy);
  min-height: 48px;
}

@media (hover: hover) and (pointer: fine) {
  .zap-direct-btn:hover {
    background-color: #20ba59;
  }
}

.zap-direct-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DO BLOG (ARTIGOS)
   ========================================================================== */
.blog-hero {
  background-color: var(--bg-dark);
  padding: 10rem 2rem 6rem;
  color: var(--text-light);
  text-align: center;
  position: relative;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 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.8' 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;
}

.blog-hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-meta {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: block;
}

.blog-title {
  font-size: 3rem;
  line-height: 1.25;
  color: var(--text-cream);
  margin-bottom: 2rem;
}

.blog-content {
  padding: 6rem 2rem;
  background-color: var(--bg-light);
}

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

.blog-body {
  font-size: 1.15rem; /* Aumentado para legibilidade premium */
  line-height: 1.9;
  color: rgba(32, 22, 16, 0.88);
}

.blog-body h2 {
  font-size: 2rem; /* Tamanho da fonte trabalhado */
  color: var(--text-dark);
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
  border-bottom: 1px solid rgba(136, 97, 61, 0.12);
  padding-bottom: 0.5rem;
}

.blog-body p {
  margin-bottom: 1.85rem;
}

.blog-body strong {
  color: var(--primary);
  font-weight: 600;
}

/* Citações bem sinalizadas e estilosas */
.blog-body blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--primary);
  border-left: 3px solid var(--secondary);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 3rem 0;
  background-color: rgba(187, 157, 127, 0.05);
  border-radius: 0 4px 4px 0;
}

.blog-body ul, .blog-body ol {
  margin-bottom: 2rem;
  padding-left: 1.75rem;
}

.blog-body li {
  margin-bottom: 0.85rem;
}

.blog-body li::marker {
  color: var(--primary);
}

.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 4rem;
  transition: var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .blog-back-btn:hover {
    color: var(--primary-hover);
    transform: translateX(-4px);
  }
}

/* ==========================================================================
   LAYOUT RESPONSIVO (MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .sobre-container { gap: 4rem; }
  .atuacao-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-secao-grid { grid-template-columns: repeat(2, 1fr); }
  .metodologia-grid { gap: 2rem; }
  .hero-image-right {
    width: 45%;
    max-width: 448px;
    right: 2%;
  }
  .hero-image-right.active {
    opacity: 0.12 !important;
    transform: translateY(-50%) !important;
  }
  #hero-icon-img { max-width: 448px; }
}

@media (max-width: 768px) {
  section, header, #inicio, #sobre, #atuacao, #metodologia, #blog, #faq, #contato {
    scroll-margin-top: 70px;
  }
  .navbar { padding: 1rem; }
  .navbar-logo img { height: 54px; }
  
  /* Menu Mobile Sanduíche & Drawer */
  .navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
  }

  .hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-cream);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--secondary);
  }

  .navbar.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .navbar.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--secondary);
  }

  .navbar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    z-index: 1040;
    transition: opacity 0.4s ease;
  }

  .navbar.menu-open .navbar-overlay {
    opacity: 1;
    pointer-events: all;
  }

  .navbar-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(32, 22, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(187, 157, 127, 0.15);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    margin: 0;
  }

  .navbar.menu-open .navbar-links {
    right: 0;
  }

  .navbar-link {
    font-size: 1.25rem;
    letter-spacing: 0.1em;
  }

  .hero { padding-top: 8rem; }
  .hero-container { grid-template-columns: 1fr; gap: 3rem; position: relative; }
  
  /* Hero Icon mobile como marca d'água atrás do texto */
  .hero-image-right {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 24px));
    width: 90%;
    max-width: 392px;
    height: auto;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    right: auto; /* Anula o right absoluto do desktop */
  }

  .hero-image-right.active {
    opacity: 0.03 !important; /* Garante 3% de opacidade no mobile */
    transform: translate(-50%, -50%) !important; /* Garante centralização e anula translateY do desktop */
  }

  #hero-icon-img {
    max-width: 392px;
    width: 100%;
    opacity: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-title { font-size: 2.5rem; }
  .sobre-container { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-image-wrapper { max-width: 400px; margin: 0 auto; }
  .atuacao-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .blog-secao-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .metodologia-grid { grid-template-columns: 1fr; gap: 3rem; }
  .metodologia-col { text-align: center; }
  .section-title { font-size: 2.25rem; }
  .cta .section-title { font-size: 2.5rem; }
  .footer-container { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .zap-widget { bottom: 1rem; right: 1rem; }
  .zap-panel { width: calc(100vw - 2rem); right: 0; left: auto; }
  .blog-title { font-size: 2.25rem; }
}
