/* ==========================================================================
   IMBAS PERÍCIAS JUDICIAIS & ASSISTÊNCIA TÉCNICA — DESIGN SYSTEM EXECUTIVE
   Tema Institucional: Branco predominante, Verde Escuro & detalhes em Dourado
   Conceito: "Mãos que Iluminam a Verdade"
   Responsável Técnico: Moisés de Moraes Colange Berzaghi
   (CORECON-SP 38532 | CRC-SP 1SP363865/O-6 | NBC TP 01 (R2))
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Verde Nobre */
  --emerald-950: #021a13;
  --emerald-900: #042f24;
  --emerald-850: #053b2d;
  --emerald-800: #064e3b;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  /* Paleta Dourada Real */
  --gold-900: #78350f;
  --gold-800: #92400e;
  --gold-700: #b45309;
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-300: #fcd34d;
  --gold-200: #fde68a;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  /* Gradientes Dourados Nobres */
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6d365 45%, #d4af37 75%, #aa771c 100%);
  --gold-gradient-hover: linear-gradient(135deg, #f6d365 0%, #fef08a 45%, #d4af37 80%, #92400e 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(246, 211, 101, 0.04) 100%);
  --gold-gradient-deep: linear-gradient(135deg, #8a6412 0%, #b8891f 50%, #8a6412 100%);

  /* Verde escuro: cor de ação (botões) e dos blocos de destaque */
  --green-gradient: linear-gradient(135deg, #064e3b 0%, #053b2d 100%);
  --green-gradient-hover: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  --shadow-green: 0 4px 16px rgba(6, 78, 59, 0.22);
  --shadow-green-hover: 0 10px 26px rgba(6, 78, 59, 0.3);

  /* Superfícies & Fundos */
  --bg-dark: #021a13;
  --bg-dark-deep: #01120d;
  --bg-surface: #06392c;
  --bg-surface-alt: #053024;
  --bg-pearl: #042a20;

  /* Tipografia & Contrastes */
  --text-main: #ffffff;
  --text-body: rgba(255, 255, 255, 0.86);
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-light: rgba(255, 255, 255, 0.5);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.88);

  /* Bordas Suaves e Delicadas */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.11);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-subtle: rgba(212, 175, 55, 0.18);

  /* Sombras Corporativas Suaves */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 44px -10px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 26px 50px -10px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(212, 175, 55, 0.16);

  /* Transições */
  --tr-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-surface-alt);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
}

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--tr-smooth);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

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

/* --------------------------------------------------------------------------
   3. CORREÇÃO CRÍTICA DE BORDAS DE TEXTO (ZERO UNDERLINES E BORDAS HARSH)
   -------------------------------------------------------------------------- */
/* Termos periciais com Tippy.js: NENHUMA borda pontilhada, sublinhada ou outline */
.tippy-term, .tippy-term * {
  cursor: help;
  text-decoration: none !important;
  border-bottom: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-weight: inherit;
  color: inherit;
  transition: color 0.2s ease;
}

.tippy-term:hover {
  color: var(--gold-500) !important;
}

.hero-text-content .tippy-term:hover,
.excel-window-frame .tippy-term:hover,
.normas-panel .tippy-term:hover {
  color: var(--gold-300) !important;
}

/* --------------------------------------------------------------------------
   4. BADGES & PILLS DE RIGOR (DESIGN REFINADO, SEM BORDAS PESADAS)
   -------------------------------------------------------------------------- */
.badge-illuminated {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  background: rgba(6, 78, 59, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap !important;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.6);
  animation: pulse-glow 2s infinite;
  flex-shrink: 0;
}

.pulse-dot-gold {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
  animation: pulse-glow 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.badge-icon {
  width: 15px;
  height: 15px;
  color: var(--emerald-300);
  flex-shrink: 0;
}

/* Section Badges / Tags - Pílulas elegantes sem bordas pesadas */
.section-badge,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap !important;
  margin-bottom: 0.85rem;
  background: rgba(6, 78, 59, 0.07);
  color: #ffffff;
  border: none !important;
}

.section-badge.gold,
.section-tag.gold {
  background: rgba(212, 175, 55, 0.15);
  color: #f6d365;
  border: none !important;
}

.reg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap !important;
  letter-spacing: 0.03em;
  border: none !important;
}

.reg-pill svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.reg-pill.gold {
  background: rgba(212, 175, 55, 0.15);
  color: #f6d365;
}

.reg-pill.cyan,
.reg-pill.emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #ffffff;
}

.card-tag {
  display: inline-block;
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: none !important;
  white-space: nowrap !important;
}

.norma-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  color: #fde047;
  border: none !important;
  margin-bottom: 0.4rem;
}

.paper-norma {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-300);
  margin-bottom: 0.5rem;
  border: none !important;
}

.article-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.14);
  color: #f6d365;
  border: none !important;
}

/* --------------------------------------------------------------------------
   5. SECTIONS CONTAINERS & HEADERS (ESTRUTURA HARMÔNICA)
   -------------------------------------------------------------------------- */
.section {
  padding: 6rem 1.5rem;
  position: relative;
}

.section-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.text-gradient-gold {
  background: var(--gold-gradient-deep);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVBAR (MENU ELEGANTE, ZERO WRAP, HAMBURGER CONTROLADO)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(2, 26, 19, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 16px rgba(6, 78, 59, 0.05);
  z-index: 1000;
  transition: var(--tr-smooth);
}

.nav-container {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.1;
}

/* No rodapé (fundo verde escuro) a marca continua dourada */
.site-footer .brand-name {
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-footer .brand-tagline {
  color: var(--gold-200);
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--emerald-300);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap !important;
  padding: 0.45rem 0.25rem;
  position: relative;
  transition: color 0.2s ease;
  border-bottom: none !important;
  border: none !important;
}

.nav-link:hover {
  color: var(--emerald-300);
}

.nav-link.active {
  color: var(--emerald-300);
  font-weight: 600;
  border-bottom: none !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d4af37;
  border-radius: 2px;
}

.nav-link.nav-btn-cta {
  background: var(--green-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-green);
  margin-left: 0.35rem;
}

.nav-link.nav-btn-cta:hover {
  background: var(--green-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-hover);
}

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

/* Botão hamburger: Oculto no desktop */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-drawer {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: calc(100vh - 80px);
  background: rgba(2, 26, 19, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: -12px 0 32px rgba(6, 78, 59, 0.1);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-nav-link {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.mobile-btn-cta {
  margin-top: 1rem;
  text-align: center;
  background: var(--green-gradient);
  color: #ffffff !important;
  border-radius: 12px;
  padding: 0.85rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION & DYNAMIC EXCEL ENGINE
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 680px;
  padding-top: 120px;
  padding-bottom: 5rem;
  background: radial-gradient(ellipse at 78% 22%, rgba(16, 185, 129, 0.16) 0%, rgba(4, 54, 41, 0.6) 40%, transparent 72%), linear-gradient(160deg, #053b2d 0%, #021a13 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.07) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.3rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  letter-spacing: -0.015em;
  max-width: 620px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 540px;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.85rem;
  border-radius: 12px;
  background: var(--green-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-green);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-hover);
  background: var(--green-gradient-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.85rem;
  border-radius: 12px;
  background: var(--bg-surface);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--emerald-700);
  color: #ffffff !important;
}

/* Janela Excel no Hero */
.hero-visual-content {
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 3;
}

.excel-window-frame {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(2, 34, 25, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(4, 47, 36, 0.45), 0 8px 24px -8px rgba(4, 47, 36, 0.18);
  overflow: hidden;
}

.excel-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(4, 47, 36, 0.85);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.control-dot.close { background: #ef4444; }
.control-dot.minimize { background: #f59e0b; }
.control-dot.expand { background: #10b981; }

.excel-title-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--emerald-200);
}

.excel-icon-title {
  width: 15px;
  height: 15px;
  color: var(--emerald-400);
}

.excel-status-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--emerald-300);
  background: rgba(5, 150, 105, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-glow 1.5s infinite;
}

.excel-scenario-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: rgba(3, 30, 22, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.excel-scenario-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.scenario-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.scenario-btn i {
  width: 13px;
  height: 13px;
}

.scenario-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.3);
}

.scenario-btn.active {
  background: var(--gold-gradient);
  color: #022018;
  font-weight: 700;
  border-color: #fef08a;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.excel-formula-bar {
  display: flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #021f17;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.cell-name-box {
  background: #043628;
  color: #fde047;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.fx-icon {
  color: var(--gold-400);
  font-weight: 700;
  font-style: italic;
}

.formula-input-wrap {
  flex: 1;
  color: #a7f3d0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cursor-blink {
  color: #fde047;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.btn-play-pause {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-play-pause:hover {
  transform: scale(1.15);
  color: #fef08a;
}

.excel-canvas-wrapper {
  position: relative;
  width: 100%;
  background: #011c15;
  display: flex;
  flex-direction: column;
}

#heroExcelCanvas {
  width: 100%;
  height: 245px;
  display: block;
}

.illumination-callout {
  margin: 0.6rem 0.85rem 0.75rem;
  padding: 0.65rem 0.95rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  margin-bottom: 0.25rem;
}

.callout-icon {
  width: 14px;
  height: 14px;
}

.callout-body {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.callout-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fde047;
  margin-top: 0.35rem;
}

.excel-footer-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.75rem 1rem;
  background: #021f17;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  gap: 0.75rem;
}

.footer-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

.metric-val.text-red { color: #f87171; }
.metric-val.text-cyan { color: #38bdf8; }
.metric-val.text-gold { color: #fde047; }

/* --------------------------------------------------------------------------
   8. RESPONSÁVEL TÉCNICO SECTION
   -------------------------------------------------------------------------- */
.responsavel-section {
  background: var(--bg-surface-alt);
  padding: 6rem 1.5rem;
}

.responsavel-card {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 16px 40px -8px rgba(4, 47, 36, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.responsavel-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.responsavel-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-photo-box {
  width: 100%;
  max-width: 320px;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(4, 47, 36, 0.16), 0 0 0 1px rgba(212, 175, 55, 0.25);
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.responsavel-registros {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.responsavel-content-col {
  display: flex;
  flex-direction: column;
}

.responsavel-nome {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.responsavel-cargo {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f6d365;
  margin-bottom: 1.35rem;
  line-height: 1.5;
}

.responsavel-bio {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.75rem;
}

.responsavel-bio strong {
  color: #ffffff;
  font-weight: 600;
}

.responsavel-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.r-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  background: var(--bg-surface-alt);
  border-left: 3.5px solid #059669;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.r-hl-item i {
  width: 20px;
  height: 20px;
  color: #6ee7b7;
  flex-shrink: 0;
  margin-top: 2px;
}

.r-hl-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.r-hl-text strong {
  color: #ffffff;
  font-weight: 600;
}

.responsavel-action {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   9. ESPECIALIDADES PERICIAIS (2x2 GRID DE ALTO NÍVEL)
   -------------------------------------------------------------------------- */
.especialidades-section {
  background: var(--bg-surface);
}

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

.service-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top: 3.5px solid var(--gold-500);
  box-shadow: 0 8px 30px -4px rgba(4, 47, 36, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--tr-smooth);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -8px rgba(4, 47, 36, 0.1);
  border-color: rgba(212, 175, 55, 0.35);
  border-top-color: var(--gold-500);
}

.card-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box i {
  width: 24px;
  height: 24px;
}

.icon-box.gold {
  background: rgba(212, 175, 55, 0.15);
  color: #f6d365;
}

.icon-box.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #0891b2;
}

.icon-box.emerald {
  background: rgba(5, 150, 105, 0.15);
  color: #6ee7b7;
}

.icon-box.purple {
  background: rgba(147, 51, 234, 0.12);
  color: #7e22ce;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.5rem;
}

.card-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.5rem 0 1.5rem;
  flex: 1;
}

.card-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-checklist li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card-checklist li i {
  width: 18px;
  height: 18px;
  color: #6ee7b7;
  flex-shrink: 0;
  margin-top: 2px;
}

.card-checklist li strong {
  color: #ffffff;
  font-weight: 600;
}

.card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  transition: all 0.2s ease;
}

.card-link i {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card-link:hover {
  color: #f6d365;
}

.card-link:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. METODOLOGIA & FUNDAMENTAÇÃO NORMATIVA
   -------------------------------------------------------------------------- */
.metodologia-section {
  background: var(--bg-surface-alt);
}

.metodologia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.method-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.35rem 1.6rem;
  background: var(--bg-surface);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(4, 47, 36, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: var(--tr-smooth);
}

.method-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(4, 47, 36, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-green);
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

/* Painel de Normas e Jurisprudência */
.normas-panel {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 24px 50px -18px rgba(4, 47, 36, 0.4);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fef08a;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.panel-header i {
  width: 22px;
  height: 22px;
  color: var(--gold-400);
}

.norma-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.norma-card:last-child {
  margin-bottom: 0;
}

.norma-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.norma-card h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0.45rem 0 0.35rem;
}

.norma-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   11. SIMULADOR PERICIAL PRELIMINAR (COM IA GEMMA)
   -------------------------------------------------------------------------- */
.simulador-section {
  background: var(--bg-surface);
}

.simulator-card-box {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 40px -8px rgba(4, 47, 36, 0.06);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.sim-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.sim-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
}

.label-with-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bcb-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.input-group input,
.input-group select {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-surface);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  outline: none;
}

.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.66);
  pointer-events: none;
}

.input-with-symbol input {
  padding-left: 2.6rem;
  width: 100%;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-wrap input[type="range"] {
  flex: 1;
  accent-color: #059669;
}

.range-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 75px;
}

.bcb-live-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 185, 129, 0.14);
  border-left: 3.5px solid #059669;
  padding: 0.65rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: #6ee7b7;
}

.bcb-live-info i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-calculate {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem;
  border-radius: 12px;
  background: var(--green-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-green);
  transition: var(--tr-smooth);
  border: 1px solid transparent;
}

.btn-calculate:hover {
  background: var(--green-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-hover);
}

/* Coluna de Resultados */
.sim-results-col {
  background: var(--bg-surface-alt);
  border-radius: 18px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.results-header h3 {
  font-size: 1.15rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-status-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f6d365;
  background: rgba(212, 175, 55, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.results-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.res-card {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.res-card.banco {
  border-top: 3px solid #ef4444;
}

.res-card.imbas {
  border-top: 3px solid #059669;
}

.res-lbl {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.66);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.res-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  display: block;
}

.res-card.banco .res-val { color: #dc2626; }
.res-card.imbas .res-val { color: #6ee7b7; }

.res-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
}

.sim-chart-container {
  height: 180px;
  margin: 1.25rem 0;
}

.indebito-highlight-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.hl-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f6d365;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.35rem;
}

.hl-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.55rem;
  font-weight: 800;
  color: #f6d365;
  display: block;
  margin-bottom: 0.25rem;
}

.hl-sub {
  font-size: 0.78rem;
  color: #78350f;
}

.ai-parecer-box {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 1.25rem;
  border-left: 4px solid var(--gold-500);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.5rem;
}

.ai-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.ai-model-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.ai-parecer-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.btn-whatsapp-sim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem;
  border-radius: 12px;
  background: #16a34a;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
  transition: var(--tr-smooth);
}

.btn-whatsapp-sim:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(22, 163, 74, 0.45);
}

.simulator-legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface-alt);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.simulator-legal-notice i {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.66);
  flex-shrink: 0;
  margin-top: 2px;
}

.simulator-legal-notice p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

/* --------------------------------------------------------------------------
   12. RIGOR ACADÊMICO & ENSAIOS
   -------------------------------------------------------------------------- */
.academico-section {
  background: var(--bg-surface-alt);
}

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

.paper-card {
  background: var(--bg-surface);
  border-radius: 18px;
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 24px -4px rgba(4, 47, 36, 0.04);
  display: flex;
  flex-direction: column;
  transition: var(--tr-smooth);
}

.paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -6px rgba(4, 47, 36, 0.09);
  border-color: rgba(212, 175, 55, 0.35);
}

.paper-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  color: #f6d365;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.paper-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.paper-abstract {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.5rem;
  flex: 1;
}

.paper-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.paper-author {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.paper-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.paper-btn:hover {
  color: #f6d365;
}

/* --------------------------------------------------------------------------
   13. BLOG & ARTIGOS PERICIAIS
   -------------------------------------------------------------------------- */
.blog-section {
  background: var(--bg-surface);
}

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

.blog-card {
  background: var(--bg-surface);
  border-radius: 18px;
  padding: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 8px 24px -4px rgba(4, 47, 36, 0.04);
  display: flex;
  flex-direction: column;
  transition: var(--tr-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -6px rgba(4, 47, 36, 0.09);
  border-color: rgba(212, 175, 55, 0.35);
}

.blog-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.blog-read-time {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-date {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.66);
}

.btn-read-article {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-read-article:hover {
  color: #f6d365;
}

/* --------------------------------------------------------------------------
   14. CONTATO & SOLICITAÇÃO PERICIAL
   -------------------------------------------------------------------------- */
.contato-section {
  background: var(--bg-surface-alt);
}

.contato-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contato-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contato-info-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 4px 16px rgba(4, 47, 36, 0.03);
}

.contato-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  color: #f6d365;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contato-info-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.contato-info-text p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}

.contato-info-text a {
  color: var(--emerald-300);
  font-weight: 600;
}

.contato-form-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 40px -8px rgba(4, 47, 36, 0.06);
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contato-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contato-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contato-form label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
}

.contato-form input,
.contato-form select,
.contato-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: inherit;
  font-size: 0.95rem;
  color: #ffffff;
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.contato-form input:focus,
.contato-form select:focus,
.contato-form textarea:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  outline: none;
}

.contato-form textarea {
  resize: vertical;
  min-height: 110px;
}

.file-upload-box {
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-surface-alt);
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload-box:hover {
  border-color: #059669;
  background: #f0fdf4;
}

.btn-submit-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--green-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow-green);
  transition: var(--tr-smooth);
}

.btn-submit-contact:hover {
  background: var(--green-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green-hover);
}

/* --------------------------------------------------------------------------
   15. SITE FOOTER & FLOATING WHATSAPP
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 1.5rem 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #fef08a;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   WHATSAPP FLOATING WIDGET COM BALÃOZINHO DE CONVERSA INTERATIVO
   -------------------------------------------------------------------------- */
.wa-floating-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Balãozinho de Mensagem (Speech Balloon) */
.wa-speech-balloon {
  position: relative;
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 14px 16px;
  max-width: 290px;
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.25);
  margin-right: 4px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: wa-balloon-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wa-speech-balloon.hidden {
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  pointer-events: none;
}

@keyframes wa-balloon-pop {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wa-balloon-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 3;
}

.wa-balloon-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.wa-balloon-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.wa-balloon-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wa-balloon-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wa-balloon-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #25d366;
}

.wa-balloon-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px #22c55e;
}

.wa-balloon-user {
  display: flex;
  flex-direction: column;
}

.wa-balloon-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #042f24;
  line-height: 1.2;
}

.wa-balloon-status {
  font-size: 0.72rem;
  color: #16a34a;
  font-weight: 600;
}

.wa-balloon-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  background: var(--bg-surface-alt);
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  border-left: 3px solid #25d366;
}

.wa-balloon-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6ee7b7;
  padding-top: 2px;
}

.wa-balloon-cta i {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.wa-balloon-link:hover .wa-balloon-cta i {
  transform: translateX(4px);
}

/* Triângulo / Rabicho do balãozinho */
.wa-balloon-tail {
  position: absolute;
  bottom: -8px;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}

/* Botão Redondo Verde do WhatsApp */
.wa-float-circle-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  text-decoration: none;
}

.wa-float-circle-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.wa-svg-bubble {
  width: 34px;
  height: 34px;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Pulse / Ripple Effect */
.wa-ripple-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.8;
  animation: wa-ripple-animation 2.2s infinite;
  pointer-events: none;
}

@keyframes wa-ripple-animation {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Badge Não Lido "1" */
.wa-badge-unread {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: wa-badge-pulse 2s infinite;
}

@keyframes wa-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   16. MODALS (ARTICLE READER & CONTACT SUCCESS)
   -------------------------------------------------------------------------- */
.article-modal-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 47, 36, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.article-modal-backdrop.open,
.modal-backdrop.open {
  display: flex;
}

.article-modal-container {
  background: var(--bg-surface);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  border-radius: 20px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3rem;
}

.article-modal-close,
.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.86);
  transition: all 0.2s ease;
}

.article-modal-close:hover,
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.article-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.85rem 0 1rem;
  line-height: 1.25;
}

.article-meta-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}

.article-modal-body {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.article-modal-body h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
  color: #ffffff;
}

.article-modal-body p {
  margin-bottom: 1.15rem;
}

.article-modal-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Modal Sucesso */
.modal-content-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-icon-success i {
  width: 32px;
  height: 32px;
}

.modal-content-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.modal-content-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 1.75rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--gold-500);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVIDADE & BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block !important;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 1rem;
  }

  .responsavel-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .responsavel-avatar-col {
    align-items: center;
  }

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

  .metodologia-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .papers-grid,
  .academico-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contato-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 1.25rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .papers-grid,
  .academico-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contato-form .form-row {
    grid-template-columns: 1fr;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .responsavel-card,
  .simulator-card-box,
  .contato-form-card {
    padding: 2rem 1.5rem;
  }

  .excel-footer-bar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .results-comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .badge-illuminated {
    font-size: 0.7rem;
    padding: 0.35rem 0.85rem;
  }

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

  .floating-whatsapp {
    padding: 0.5rem;
  }

  .float-text-wrap {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   18. BIBLIOTECA TÉCNICA (filtros, busca e cartões compactos)
   Vem depois dos breakpoints de propósito: a grade se ajusta sozinha.
   -------------------------------------------------------------------------- */
.blog-section .section-header {
  margin-bottom: 2.25rem;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.library-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--bg-surface);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  transition: var(--tr-smooth);
}

.library-chip:hover {
  border-color: var(--emerald-700);
  background: rgba(16, 185, 129, 0.14);
}

.library-chip:focus-visible,
.btn-library-more:focus-visible,
.btn-read-post:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
}

.library-chip.active {
  background: var(--emerald-900);
  border-color: var(--emerald-900);
  color: #ffffff;
}

.library-chip .chip-count {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

.library-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}

.library-search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.library-search input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--bg-surface);
  font: inherit;
  font-size: 0.86rem;
  color: var(--text-main);
  transition: var(--tr-smooth);
}

.library-search input::placeholder {
  color: var(--text-light);
}

.library-search input:focus {
  outline: none;
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.14);
}

.library-status {
  margin: 1rem 0 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-sm);
}

.blog-card[hidden] {
  display: none;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(180, 138, 30, 0.45);
}

/* Rótulo do tipo de item (Artigo, Ferramenta, Modelo...) vindo de data-type */
.blog-card[data-type]::before {
  content: attr(data-type);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6d365;
  margin-bottom: 0.6rem;
}

.blog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.blog-category {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.14);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
}

.blog-read-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  white-space: nowrap;
}

.blog-read-time svg,
.blog-author svg {
  width: 13px;
  height: 13px;
}

.blog-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.blog-title,
.blog-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.blog-excerpt {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  flex: 0 1 auto;
}

.blog-card-footer {
  padding-top: 0.9rem;
  gap: 0.75rem;
}

.blog-author {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-read-post {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  border-radius: 6px;
  transition: var(--tr-smooth);
}

.btn-read-post svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.btn-read-post:hover {
  color: #f6d365;
}

.btn-read-post:hover svg {
  transform: translateX(3px);
}

.library-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
}

.library-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-library-more {
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--emerald-800);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--tr-smooth);
}

.btn-library-more:hover {
  background: var(--emerald-900);
  color: #ffffff;
}

@media (max-width: 768px) {
  .library-toolbar {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .library-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -1.25rem;
    padding: 0 1.25rem 0.25rem;
    scrollbar-width: none;
  }

  .library-filters::-webkit-scrollbar {
    display: none;
  }

  .library-chip {
    flex-shrink: 0;
  }

  .library-search {
    max-width: none;
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .btn-read-post svg {
    transition: none;
  }

  .blog-card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   19. RODAPÉ — estilos para as classes que o HTML realmente usa
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 4rem 1.5rem 1.75rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr;
  gap: 2.5rem 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links-group h4,
.footer-credentials h4 {
  margin-bottom: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6c766;
}

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

.footer-links-group a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  overflow-wrap: anywhere;
}

.footer-links-group a:hover {
  color: #fef08a;
}

.footer-credentials p {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.footer-credentials svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  color: #e6c766;
}

.footer-bottom {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   20. CELULAR — impede que colunas e barras estourem a largura da tela
   -------------------------------------------------------------------------- */
.hero-section {
  overflow-x: clip;
}

@media (max-width: 1024px) {
  .hero-container,
  .responsavel-grid,
  .services-grid,
  .metodologia-grid,
  .simulator-grid,
  .contato-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .badge-illuminated {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    max-width: 100%;
  }
}

.input-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.input-group {
  min-width: 0;
}

.input-group input,
.input-group select {
  max-width: 100%;
}

@media (max-width: 600px) {
  .input-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-badge,
  .section-tag {
    white-space: normal !important;
    max-width: 100%;
    text-align: center;
    line-height: 1.4;
    border-radius: 14px;
  }
}

/* ==========================================================================
   RAMOS DA PERÍCIA — carrossel (perito + sete ramos)
   ========================================================================== */
.ramos-section {
  position: relative;
  padding: 5rem 1.5rem 4.5rem;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
    linear-gradient(160deg, #075e46 0%, #043629 48%, #021a13 100%);
  color: #fff;
  overflow: hidden;
}
.ramos-container { max-width: 1280px; margin: 0 auto; }
.ramos-cabecalho { margin-bottom: 2.25rem; }
.ramos-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0.9rem 0 0;
  color: #fff;
  max-width: 22ch;
}
.ramos-palco {
  position: relative;
  display: grid;
  border-radius: 28px;
  outline: none;
}
.ramos-palco:focus-visible { box-shadow: 0 0 0 3px rgba(246, 211, 101, 0.7); }
.ramo-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.6s;
}
.ramo-slide.ativo {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.ramo-rotulo {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #f6d365;
  border: 1px solid rgba(246, 211, 101, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.ramo-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin: 1rem 0 0.4rem;
  color: #fff;
}
.ramo-chamada { font-size: 1.08rem; font-weight: 600; color: #f6d365; margin: 0 0 0.9rem; }
.ramo-descricao { font-size: 1rem; line-height: 1.7; color: rgba(255, 255, 255, 0.86); margin: 0 0 1.2rem; max-width: 52ch; }
.ramo-etiquetas { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.6rem; }
.ramo-etiquetas li {
  font-size: 0.8rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}
.ramo-acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ramo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ramo-btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.ramo-btn.principal {
  color: #043629;
  border-color: transparent;
  background: linear-gradient(135deg, #d4af37 0%, #f6d365 45%, #d4af37 75%, #aa771c 100%);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.28);
}
.ramo-btn.principal:hover { background: linear-gradient(135deg, #f6d365 0%, #fef08a 45%, #d4af37 80%, #b8891f 100%); }
.ramo-imagem { position: relative; }
.ramo-imagem > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(246, 211, 101, 0.35);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.ramo-imagem::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(246, 211, 101, 0.25);
  border-radius: 24px;
  z-index: -1;
}
/* quadro do perito */
.ramo-retrato { display: grid; place-items: center; min-height: 380px; }
.ramo-retrato::after { display: none; }
.retrato-moldura {
  width: min(360px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(from 210deg, #aa771c, #f6d365, #fef08a, #d4af37, #aa771c);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.65), 0 0 0 14px rgba(255, 255, 255, 0.05);
}
.retrato-moldura img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; border-radius: 50%; display: block; background: #043629; }
.retrato-selo {
  position: absolute;
  left: 4%;
  bottom: 12%;
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(2, 26, 19, 0.82);
  border: 1px solid rgba(246, 211, 101, 0.4);
  backdrop-filter: blur(6px);
}
.retrato-selo strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: #f6d365; line-height: 1; }
.retrato-selo span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.85); }
.retrato-selo-2 { left: auto; right: 4%; bottom: auto; top: 12%; }
/* setas, pontos, progresso */
.ramo-seta {
  position: absolute;
  bottom: -4px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(2, 26, 19, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 3;
}
.ramo-seta:hover { background: #f6d365; border-color: #f6d365; color: #043629; }
.ramo-seta.anterior { right: 58px; }
.ramo-seta.proximo { right: 0; }
.ramos-controles { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.ramos-pontos { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1; }
.ramo-ponto {
  font: inherit;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ramo-ponto:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.ramo-ponto.ativo { color: #043629; background: #f6d365; border-color: #f6d365; font-weight: 600; }
.ramo-pausa {
  font: inherit;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.ramos-progresso { height: 3px; margin-top: 1rem; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.ramos-progresso span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d4af37, #fef08a); }
/* entrada do time de peritos no menu */
.nav-link.nav-link-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem !important;
  border: 1px solid rgba(6, 78, 59, 0.35) !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-link.nav-link-portal:hover { background: var(--emerald-50); }
.nav-link.nav-link-portal svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .ramos-section { padding: 3.5rem 1.1rem 3.5rem; }
  .ramo-slide { grid-template-columns: 1fr; gap: 1.5rem; }
  .ramo-imagem { order: -1; }
  .ramo-imagem::after { display: none; }
  .ramo-retrato { min-height: 300px; }
  .ramo-seta { bottom: auto; top: 0; }
  .ramos-pontos { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; scrollbar-width: none; }
  .ramos-pontos::-webkit-scrollbar { display: none; }
  .ramo-ponto { white-space: nowrap; flex: none; }
  .ramo-acoes .ramo-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ramo-slide, .ramo-slide.ativo { transition: opacity 0.01s; transform: none; }
}

/* ==========================================================================
   TEMA ESCURO — ajustes sobre a conversão (verde profundo, dourado, fotos)
   ========================================================================== */
body {
  background:
    radial-gradient(1200px 600px at 100% -5%, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(180deg, #021a13 0%, #03241b 40%, #021a13 100%);
  background-attachment: fixed;
}
::selection { background: #f6d365; color: #043629; }
.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #f6d365 45%, #d4af37 75%, #aa771c 100%);
  color: #043629 !important;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.25);
}
.btn-primary:hover { background: linear-gradient(135deg, #f6d365 0%, #fef08a 45%, #d4af37 80%, #b8891f 100%); color: #043629 !important; }
.btn-primary svg { stroke: #043629; }
.btn-secondary { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.nav-btn-cta { background: linear-gradient(135deg, #d4af37, #f6d365 50%, #aa771c) !important; color: #043629 !important; }
.nav-link.nav-link-portal { border-color: rgba(246, 211, 101, 0.5) !important; color: #f6d365; }
.nav-link.nav-link-portal:hover { background: rgba(246, 211, 101, 0.12); }

/* cada seção ganha uma foto do acervo ao fundo, bem escurecida */
.section { isolation: isolate; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  pointer-events: none;
}
.responsavel-section::before { background-image: url("img/ramos/haveres.webp"); }
.especialidades-section::before { background-image: url("img/ramos/contabil.webp"); }
.metodologia-section::before { background-image: url("img/ramos/auditoria.webp"); }
.simulador-section::before { background-image: url("img/ramos/bancario.webp"); }
.academico-section::before { background-image: url("img/ramos/expurgos.webp"); }
.blog-section::before { background-image: url("img/ramos/previdenciario.webp"); }
.contato-section::before { background-image: url("img/ramos/trabalhista.webp"); opacity: 0.22; }
.hero-section { isolation: isolate; }
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("img/ramos/contabil.webp") center / cover;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 62%);
  pointer-events: none;
}

/* movimento: os blocos sobem e aparecem quando entram na tela */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--atraso, 0ms); }
.revelar.visto { opacity: 1; transform: none; }
.barra-leitura { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: linear-gradient(90deg, #d4af37, #fef08a); }
@media (prefers-reduced-motion: reduce) {
  .revelar { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 900px) {
  .hero-section::after { opacity: 0.08; -webkit-mask-image: none; mask-image: none; }
  .section::before { opacity: 0.1; }
}

/* ==========================================================================
   CELULAR — primeira tela enxuta e legível
   ========================================================================== */
@media (max-width: 768px) {
  /* abertura: foto no topo, que escurece até o texto; tudo cabe na primeira tela */
  .hero-section {
    min-height: 100svh;
    padding: 92px 1.15rem 2rem;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(2, 26, 19, 0.25) 0%, rgba(2, 26, 19, 0.72) 34%, #021a13 62%), url("img/ramos/contabil.webp") center top / 100% auto no-repeat, #021a13;
  }
  .hero-section::after, .hero-bg-glow { display: none; }
  .hero-container { display: block; width: 100%; }
  .hero-visual-content { display: none; }          /* a planilha animada não cabe no celular; os ramos vêm logo abaixo */
  .hero-text-content { text-align: left; }
  .badge-illuminated {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.7rem;
    line-height: 1.5;
    max-width: 100%;
    background: rgba(2, 26, 19, 0.7);
    border: 1px solid rgba(246, 211, 101, 0.35);
    backdrop-filter: blur(6px);
  }
  .hero-title { font-size: clamp(2.25rem, 10.5vw, 2.9rem); line-height: 1.08; margin-top: 0.9rem; max-width: none; }
  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-top: 0.9rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 1.4rem; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; min-height: 52px; padding: 0.85rem 1rem; font-size: 0.98rem; }

  /* o balão de conversa cobria os botões: no celular fica só o botão redondo */
  .wa-speech-balloon { display: none !important; }
  .wa-floating-container { right: 14px; bottom: 14px; }

  /* seções mais compactas e alvos de toque maiores */
  .section { padding: 3.5rem 1.15rem; }
  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: clamp(1.55rem, 7vw, 2rem); line-height: 1.2; }
  .ramos-section { padding-top: 3rem; }
  .ramos-titulo { font-size: 1.65rem; }
  .ramo-titulo { font-size: 1.85rem; }
  .ramo-seta { width: 44px; height: 44px; top: 10px; background: rgba(2, 26, 19, 0.75); }
  .ramo-seta.anterior { right: 64px; }
  .ramo-seta.proximo { right: 10px; }
  .ramo-ponto { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.85rem; }
  .ramo-pausa { min-height: 40px; }
  .ramo-retrato { min-height: 0; padding: 0.5rem 0 1rem; }
  .retrato-moldura { width: min(250px, 66%); }
  .retrato-selo { padding: 0.5rem 0.75rem; }
  .retrato-selo strong { font-size: 1.05rem; }
  .mobile-nav-link { min-height: 48px; display: flex; align-items: center; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { -webkit-line-clamp: 3; line-clamp: 3; }
}
@media (max-width: 768px) {
  .retrato-selo-2 { display: none; }
}
@media (max-width: 768px) {
  .library-chip { min-height: 42px; padding-left: 0.95rem; padding-right: 0.95rem; }
  .btn-read-post { min-height: 44px; display: inline-flex; align-items: center; }
  .responsavel-bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
}
.wa-balloon-name { color: #ffffff; }
.wa-balloon-text { color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.07); }
@media (max-width: 1024px) {
  .wa-speech-balloon { display: none !important; }
}
