/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --navy: #0D2342;
  --blue: #1A3A6B;
  --blue-dark: #09172B;
  --gold: #C9A84C;
  --gold-hover: #B5933C;
  --cream: #F5EDD8;
  --nude: #EDE0C4;
  --white: #FFFFFF;
  --text-dark: #0D2342;
  --text-light: #F5EDD8;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --t-snappy: 0.25s var(--ease-premium);
  --t-smooth: 0.5s var(--ease-premium);
  
  /* Shadows */
  --shadow-premium: 0 24px 48px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   BASE RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--t-snappy);
}

button {
  font-family: var(--font-sans);
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

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

/* Base Form / Touch Target */
input, select, textarea, button, a {
  min-height: 44px; /* Mobile touch accessibility default base */
}

/* Prevent motion on preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Lazy rendering optimizations */
#atuacao, #metodologia, #faq {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* ==========================================================================
   BUTTONS & TYPOGRAPHY
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C9A84C 0%, #F5E5A3 50%, #A8862A 100%); /* Dourado degradê premium */
  color: var(--navy);
  font-weight: 600;
  padding: 0 32px;
  height: 52px;
  border-radius: 4px;
  transition: transform var(--t-snappy), background var(--t-snappy), box-shadow var(--t-snappy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-large {
  height: 58px;
  padding: 0 40px;
  font-size: 0.9rem;
}

/* Hover Seguro */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: linear-gradient(135deg, #D4B45C 0%, #FFF0B3 50%, #B8963A 100%); /* Dourado degradê mais brilhante no hover */
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }
}

/* ==========================================================================
   NAVBAR INTELIGENTE
   ========================================================================== */
.navbar-inteligente {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  transition: transform var(--t-smooth), opacity var(--t-smooth), background-color var(--t-smooth);
  border-bottom: 1px solid transparent;
}

/* Scrolled state */
.navbar-inteligente.navbar-scrolled {
  background-color: rgba(13, 35, 66, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Hidden state */
.navbar-inteligente.navbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 136px; /* Aumentado para acomodar logo de 120px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height var(--t-snappy);
}

.navbar-scrolled .nav-container {
  height: 90px;
}

.logo-link {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.logo-img {
  height: 120px; /* Logo ampliada para 120px a pedido do usuário */
  width: auto;
  transition: height var(--t-snappy);
}

.navbar-scrolled .logo-img {
  height: 76px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 4px;
}

/* Underline Animation */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-snappy);
}

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

.nav-btn {
  background: linear-gradient(135deg, #C9A84C 0%, #F5E5A3 50%, #A8862A 100%); /* Mesmo dourado degradê */
  color: var(--navy) !important;
  padding: 0 20px;
  border-radius: 4px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  transition: transform var(--t-snappy), background var(--t-snappy), box-shadow var(--t-snappy);
}

.nav-btn::after {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav-btn:hover {
    background: linear-gradient(135deg, #D4B45C 0%, #FFF0B3 50%, #B8963A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
  }
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 101;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: var(--cream);
  transition: transform var(--t-snappy), opacity var(--t-snappy);
  transform-origin: left center;
}

/* Animação do Hamburger para X ao expandir */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: rotate(45deg) translate(2px, 2px);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ==========================================================================
   SEÇÃO 1: HERO
   ========================================================================== */
.secao-hero {
  background-color: var(--navy);
  background-image: url('hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--cream);
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

/* SVG noise overlay */
.grain-overlay {
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 2;
}

/* Degradê de sobreposição escuro para contraste - esmaecimento completo à esquerda */
.secao-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0D2342 0%, #0D2342 35%, rgba(13, 35, 66, 0.7) 65%, rgba(9, 23, 43, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

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

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

.hero-kicker {
  display: block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245, 237, 216, 0.8);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ==========================================================================
   SEÇÃO 2: SOBRE / O ADVOGADO
   ========================================================================== */
.secao-sobre {
  background-color: var(--cream);
  color: var(--navy);
  padding: 120px 0;
}

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

.sobre-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

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

/* Croqui Border Vibe */
.croqui-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  border: 1px dashed var(--navy);
  padding: 16px;
  background-color: rgba(13, 35, 66, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.croqui-frame::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  border: 1px solid rgba(13, 35, 66, 0.15);
  pointer-events: none;
}

.croqui-content {
  width: 100%;
  height: 100%;
  background-color: rgba(13, 35, 66, 0.05);
  border: 1px solid rgba(13, 35, 66, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sobre-img-render {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.croqui-placeholder-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(13, 35, 66, 0.4);
}

.sobre-texto-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sobre-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 8px;
}

.sobre-paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(13, 35, 66, 0.85);
  text-align: justify;
}

/* ==========================================================================
   SEÇÃO 3: ÁREAS DE ATUAÇÃO
   ========================================================================== */
.secao-atuacao {
  background-color: var(--navy);
  color: var(--cream);
  padding: 120px 0;
}

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

.atuacao-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  text-align: left;
}

.atuacao-subtitle {
  font-size: 1.1rem;
  color: rgba(245, 237, 216, 0.8);
  margin-bottom: 60px;
  max-width: 700px;
}

/* Novo Layout de Apresentação Split Sticky-Scroll (Areas de Atuacao) */
.atuacao-split-wrapper {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 80px;
  align-items: start;
  margin-top: 40px;
}

.atuacao-left-col {
  position: sticky;
  top: 180px; /* Alinhado com a nova altura da navbar */
  height: auto;
}

.atuacao-sticky-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.atuacao-left-cta {
  margin-top: 16px;
}

.atuacao-right-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Blocos de conteúdo na cor bege com letras em azul fechado */
.atuacao-row-card {
  background-color: var(--cream); /* Fundo bege corrigido (variável correta) */
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  padding: 48px;
  position: relative;
  box-shadow: var(--shadow-premium);
  transition: transform var(--t-snappy), border-color var(--t-snappy), box-shadow var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .atuacao-row-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.6);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  }
}

.row-card-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #C9A84C 0%, #F5E5A3 50%, #A8862A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.35;
  position: absolute;
  top: 32px;
  right: 48px;
}

.row-card-title {
  font-size: 1.6rem;
  color: var(--navy); /* Azul fechado para alto contraste */
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  border-left: 3px solid var(--gold); /* Borda dourada lateral para elegância */
  padding-left: 12px;
  display: block;
}

.row-card-desc {
  font-size: 1.02rem;
  color: rgba(13, 35, 66, 0.85); /* Letras em azul fechado */
  margin-bottom: 24px;
  line-height: 1.6;
}

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

.row-card-list li {
  font-size: 0.98rem;
  color: var(--navy); /* Letras em azul fechado */
  position: relative;
  padding-left: 20px;
}

.row-card-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #C9A84C;
  font-weight: bold;
  font-size: 1.4rem;
  top: -1px;
}

/* ==========================================================================
   SEÇÃO 4: METODOLOGIA
   ========================================================================== */
.secao-metodologia {
  background-color: var(--nude);
  color: var(--navy);
  padding: 120px 0;
}

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

.metodologia-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin-bottom: 60px;
  text-align: left;
}

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

.metodologia-step {
  position: relative;
  padding-top: 40px;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  opacity: 0.12; /* Números grandes e sutis */
  position: absolute;
  top: -10px;
  left: 0;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.step-description {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(13, 35, 66, 0.85);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SEÇÃO 5: FAQ / DÚVIDAS (ACCORDION FLUIDO)
   ========================================================================== */
.secao-faq {
  background-color: var(--cream);
  color: var(--navy);
  padding: 120px 0;
}

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

.faq-section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 60px;
}

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

.faq-item {
  border-bottom: 1px solid rgba(13, 35, 66, 0.1);
  padding-bottom: 16px;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  padding: 16px 0;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}

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

/* Linha horizontal */
.faq-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}

/* Linha vertical */
.faq-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}

/* Estado aberto */
.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-trigger[aria-expanded="true"] .faq-icon::before {
  transform: rotate(180deg);
}

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

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

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

.faq-answer-inner p {
  padding-top: 8px;
  padding-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(13, 35, 66, 0.8);
}

/* ==========================================================================
   SEÇÃO 6: CTA FINAL
   ========================================================================== */
.secao-cta-final {
  background-color: var(--navy);
  color: var(--cream);
  padding: 140px 0;
  position: relative;
  text-align: center;
}

.secao-cta-final::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(26, 58, 107, 0.3) 0%, rgba(9, 23, 43, 0) 80%);
  pointer-events: none;
}

.cta-final-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-final-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.2;
}

.cta-final-subtitle {
  font-size: 1.15rem;
  color: rgba(245, 237, 216, 0.8);
  margin-bottom: 24px;
  max-width: 600px;
}

/* ==========================================================================
   STIKCY BAR MOBILE
   ========================================================================== */
.sticky-bar-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 90;
  transform: translateY(100%);
  transition: transform var(--t-smooth);
  display: none;
}

.sticky-bar-mobile.visible {
  transform: translateY(0);
}

.sticky-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 4px; /* Max 4px */
  height: 48px;
  width: 100%;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy);
  color: var(--cream);
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  position: relative;
  z-index: 10;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr 2fr 2fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  align-self: flex-start;
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 237, 216, 0.7);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
}

.footer-links-list, .footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-links-list a {
  color: rgba(245, 237, 216, 0.8);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links-list a:hover {
    color: var(--white);
    padding-left: 4px;
  }
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(245, 237, 216, 0.8);
}

.footer-contact-link {
  color: rgba(245, 237, 216, 0.85);
  display: inline-block;
  padding: 4px 0;
}

.footer-contact-link.zap-highlight {
  color: var(--gold);
  font-weight: 600;
}

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

/* Social links with CSS mask */
.footer-social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(245, 237, 216, 0.15);
  transition: border-color var(--t-snappy);
}

.social-mask {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--cream);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  transition: background-color var(--t-snappy);
}

/* Whatsapp Mask */
.social-mask--whatsapp {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 448 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 448 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
}

/* LinkedIn Mask */
.social-mask--linkedin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 448 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 448 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z'/%3E%3C/svg%3E");
}

@media (hover: hover) and (pointer: fine) {
  .social-link:hover {
    border-color: var(--gold);
  }
  
  .social-link--whatsapp:hover .social-mask {
    background-color: #25D366; /* Cor específica whatsapp */
  }
  
  .social-link--linkedin:hover .social-mask {
    background-color: #0A66C2; /* Cor específica linkedin */
  }
}

.footer-bottom {
  border-top: 1px solid rgba(245, 237, 216, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(245, 237, 216, 0.6);
}

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

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

/* ==========================================================================
   WIDGET DO WHATSAPP INTELIGENTE
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* Estado inicial: invisível durante a seção Hero */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-smooth);
}

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

/* Botão Circular Principal - Não usa verde saturado */
.zap-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--navy);
  border: 1px solid rgba(201, 168, 76, 0.35); /* Borda dourada sutil */
  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;
}

.zap-icon-svg {
  width: 26px;
  height: 26px;
  fill: var(--cream); /* Creme vazado */
  transition: fill var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .zap-button:hover {
    background-color: var(--blue);
    transform: scale(1.05);
  }
  
  .zap-button:hover .zap-icon-svg {
    fill: var(--white);
  }
}

/* Tooltip de Inatividade */
.zap-tooltip {
  position: absolute;
  bottom: 76px;
  right: 0;
  background-color: var(--white);
  color: var(--navy);
  padding: 12px 18px 12px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(13, 35, 66, 0.08);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t-smooth), transform var(--t-smooth);
  z-index: 96;
}

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

.close-tooltip-btn {
  font-size: 1.2rem;
  color: rgba(13, 35, 66, 0.4);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .close-tooltip-btn:hover {
    color: var(--navy);
  }
}

/* Painel de Chat Simulado */
.zap-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  height: 460px;
  background-color: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--t-smooth), transform var(--t-smooth);
  z-index: 97;
  will-change: transform, opacity;
}

.zap-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Cabeçalho do Chat */
.zap-header {
  background-color: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.zap-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zap-avatar-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.zap-header-info {
  display: flex;
  flex-direction: column;
  color: var(--cream);
}

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

.zap-header-status {
  font-size: 0.75rem;
  color: rgba(245, 237, 216, 0.75);
}

/* Corpo do Chat */
.zap-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #F8F6F0; /* Creme claro Vibe Editorial */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Balões de Mensagem */
.zap-msg {
  display: flex;
  width: 100%;
}

.zap-msg-rec {
  justify-content: flex-start;
}

.zap-msg-sent {
  justify-content: flex-end;
}

.zap-msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.zap-msg-rec .zap-msg-bubble {
  background-color: var(--white);
  color: var(--navy);
  border-radius: 0 12px 12px 12px;
  border: 1px solid rgba(13, 35, 66, 0.05);
}

.zap-msg-sent .zap-msg-bubble {
  background-color: var(--navy);
  color: var(--cream);
  border-radius: 12px 0 12px 12px;
}

/* Loader Digitando */
.zap-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
}

.zap-typing-indicator span {
  width: 6px;
  height: 6px;
  background-color: var(--navy);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
  animation: zapTyping 1.4s infinite both;
}

.zap-typing-indicator span:nth-child(2) {
  animation-delay: .2s;
}

.zap-typing-indicator span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes zapTyping {
  0% { transform: translateY(0px); opacity: 0.4; }
  28% { transform: translateY(-4px); opacity: 0.8; }
  44% { transform: translateY(0px); opacity: 0.4; }
}

/* Sugestões de Perguntas */
.zap-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  transition: opacity var(--t-snappy), transform var(--t-snappy);
}

.zap-suggestions.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  display: none;
}

.zap-suggest-btn {
  background-color: var(--white);
  border: 1px solid rgba(13, 35, 66, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 500;
  transition: background-color var(--t-snappy), border-color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .zap-suggest-btn:hover {
    background-color: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.3);
  }
}

/* Rodapé do Chat */
.zap-footer {
  padding: 16px 20px;
  background-color: var(--white);
  border-top: 1px solid rgba(13, 35, 66, 0.05);
}

.zap-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
  height: 46px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(201, 168, 76, 0.2);
  transition: background-color var(--t-snappy), transform var(--t-snappy), box-shadow var(--t-snappy);
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .zap-footer-btn:hover {
    background-color: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(201, 168, 76, 0.3);
  }
}

/* ==========================================================================
   SEÇÕES DINÂMICAS DO BLOG (ajusteparablog.md)
   ========================================================================== */
#blog-secao, #artigo-secao {
  padding: 140px 24px 80px 24px;
  min-height: 80vh;
}

#blog-secao {
  background-color: var(--cream);
  color: var(--navy);
}

#artigo-secao {
  background-color: var(--cream);
  color: var(--navy);
}

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

.blog-title-section {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 48px;
  text-align: left;
  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 Cards - Estritamente Textuais (Sem Imagens) */
.blog-card {
  background-color: var(--white);
  border: 1px solid rgba(13, 35, 66, 0.08);
  border-radius: 8px; /* Max 8px para cards */
  padding: 32px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform var(--t-snappy), border-color var(--t-snappy), box-shadow var(--t-snappy);
  display: flex;
  flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
  .blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
  }
}

.blog-card-date {
  font-size: 0.8rem;
  color: rgba(13, 35, 66, 0.5);
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.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.95rem;
  line-height: 1.6;
  color: rgba(13, 35, 66, 0.75);
  margin-bottom: 24px;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: auto;
  transition: color var(--t-snappy);
}

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

/* Estilos de Post Único */
.artigo-single-container {
  max-width: 760px;
  margin: 0 auto;
}

.btn-voltar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .btn-voltar:hover {
    color: var(--gold);
  }
}

.artigo-meta-date {
  font-size: 0.9rem;
  color: rgba(13, 35, 66, 0.5);
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
}

.artigo-main-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  color: var(--navy);
}

.artigo-divider {
  border: 0;
  border-top: 1px solid rgba(13, 35, 66, 0.1);
  margin: 32px 0;
}

.artigo-text-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(13, 35, 66, 0.85);
  text-align: justify;
}

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

.artigo-text-body h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin: 40px 0 20px 0;
}

.artigo-text-body h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin: 32px 0 16px 0;
}

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

.artigo-text-body ul, .artigo-text-body ol {
  margin-left: 24px;
  margin-bottom: 24px;
}

.artigo-text-body li {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(13, 35, 66, 0.85);
}

.loading, .empty, .error {
  text-align: center;
  padding: 60px 0;
  font-size: 1.1rem;
  color: rgba(13, 35, 66, 0.5);
  font-weight: 500;
}

.error a {
  color: var(--gold);
  text-decoration: underline;
  display: inline-block;
  margin-top: 12px;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE-FIRST)
   ========================================================================== */

/* Telas Médias e Pequenas (Tablets e Celulares) */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-col-about {
    grid-column: span 3;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  /* Touch target safety clearance in footer */
  .secao-cta-final {
    padding-bottom: 84px;
  }
  .site-footer {
    padding-bottom: 96px;
  }
  
  /* Navbar Mobile Reset */
  .nav-container {
    height: 70px; /* Altura compacta e limpa no mobile */
    transition: height var(--t-snappy);
  }
  
  .logo-img {
    height: 48px; /* Redução proporcional do logotipo */
  }

  .navbar-scrolled .nav-container {
    height: 70px;
  }

  .navbar-scrolled .logo-img {
    height: 48px;
  }

  .menu-toggle {
    display: flex;
    width: 24px; /* Tamanho reduzido conforme solicitado */
    height: 14px; /* Proporcional para visual limpo */
    z-index: 105; /* Garantido acima do overlay do menu */
    position: relative;
  }
  
  .nav-menu {
    position: fixed;
    top: 0; /* Inicia do topo absoluto da tela */
    left: 0;
    width: 100%;
    height: 100vh; /* Ocupa a tela inteira */
    background-color: #09172B; /* Fundo sólido para esconder a navbar e a logo por completo */
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente */
    align-items: center; /* Centraliza horizontalmente */
    padding: 60px 24px;
    gap: 36px;
    transform: translateX(100%);
    transition: transform var(--t-smooth);
    box-shadow: none;
    z-index: 100;
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-item {
    font-size: 1.25rem;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  
  .nav-btn {
    width: 100%;
    margin-top: 12px;
  }

  /* Hero */
  .secao-hero {
    min-height: auto;
    padding: 140px 0 80px 0;
  }
  
  .secao-hero::before {
    background: linear-gradient(180deg, rgba(13, 35, 66, 0.98) 0%, rgba(13, 35, 66, 0.93) 100%) !important;
  }
  
  /* Sobre */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sobre-imagem-col {
    order: 2;
  }
  
  .sobre-texto-col {
    order: 1;
  }
  
  /* Metodologia */
  .metodologia-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* FAQ */
  .faq-trigger {
    font-size: 1.05rem;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-col-about {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Sticky Bar Mobile Removida */
  .sticky-bar-mobile {
    display: none !important;
  }
  
  /* Widget WhatsApp Mobile no canto padrão */
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .zap-panel {
    width: 320px;
    height: 400px;
    right: 0;
  }
  
  /* Mobile responsive rules for split layout */
  .atuacao-split-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .atuacao-left-col {
    position: relative;
    top: 0;
  }
  .atuacao-row-card {
    padding: 32px 24px;
  }
  .row-card-num {
    top: 24px;
    right: 24px;
  }
}

/* Animações de entrada mais lentas e suaves acionadas por scroll */
.fade-in-element {
  opacity: 0;
  transform: translateY(40px); /* Curso ampliado para efeito de subida mais proeminente */
  transition: opacity 2s var(--ease-premium), transform 2s var(--ease-premium); /* Transição lenta de 2 segundos */
  will-change: opacity, transform;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}
