/* =========================================================
   DR. FISCAL — SHARED STYLESHEET (2026 rebrand)
   Fonte de verdade: Rebranding - Dr. Fiscal_apresentação_COMPACTADO.pdf
   - Lexend Deca (Thin/Light/Regular/SemiBold/Bold) — tipografia institucional
   - Paleta: terracota (cobre) + marrom espresso + coral (fogo) + alabaster
   - Identidade "case mixing": dr. (minúsculo) + FISCAL (caixa-alta)
   ========================================================= */

/* Carrega Lexend Deca via Google Fonts (os TTFs locais referenciados não existem na máquina) */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700&display=swap');

/* ── TOKENS DE MARCA ── */
:root {
  /* Paleta principal (PDF Rebranding: "Preservação da herança, refinamento do valor") */
  --color-terracotta:    #733635;  /* terracota — substitui o vermelho da marca antiga */
  --color-espresso:      #351e1c;  /* marrom profundo — autoridade institucional */
  --color-fire-coral:    #ff6037;  /* coral — energia/atenção (CTA) */
  --color-copper:        #b65a3d;  /* cobre — gradiente */
  --color-alabaster:     #f5f4ed;  /* off-white — background neutro acolhedor */
  --color-sky-teal:      #a0c9cb;  /* verde-água — cor de apoio (oportunidade) */
  --color-charcoal-navy: #233038;  /* azul-grafite — corpo de texto */
  --color-light-grey:    #ececdc;  /* bege claro — divisores/superfícies */

  /* Gradiente assinatura — usado em CTAs primários, hero interno, headers */
  --gradient-signature:  linear-gradient(135deg, #351e1c 0%, #733635 50%, #ff6037 100%);
  --gradient-warm:       linear-gradient(135deg, #b65a3d 0%, #ff6037 100%);

  /* Tipografia */
  --font-family: 'Lexend Deca', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fw-bold:   700;
  --fw-semi:   600;
  --fw-med:    500;
  --fw-reg:    400;
  --fw-light:  300;

  /* Espaçamento */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* Raios — "raio de curvatura padronizado comunica interface amigável e segura" (PDF) */
  --radius-sm:   8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-card:  0 4px 24px rgba(53,30,28,0.10);
  --shadow-hover: 0 12px 40px rgba(53,30,28,0.18);

  /* Layout */
  --navbar-height: 72px;
  --max-content-width: 1280px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  font-weight: var(--fw-light);
  background: var(--color-alabaster);
  color: var(--color-charcoal-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Acessibilidade: foco visível */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-fire-coral);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link para leitores de tela */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--color-espresso);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold);
  z-index: 9999;
}
.skip-link:focus { left: 8px; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: var(--gradient-signature);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ── BOTÕES ──
   Fix: border transparente causava "cantos escuros" em fundos coloridos.
   Solução: border 0 por padrão; variantes que precisam de borda adicionam.
   background-clip: padding-box garante que gradientes cobrem toda a área até o radius. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-weight: var(--fw-bold);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  transition: transform 150ms ease, box-shadow 150ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
  isolation: isolate;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background-image: var(--gradient-signature);
  background-color: var(--color-terracotta); /* fallback sólido caso o gradient falhe */
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,96,55,0.35);
}
.btn--primary:hover { box-shadow: 0 8px 28px rgba(255,96,55,0.5); transform: translateY(-1px); }

.btn--secondary {
  background: transparent;
  color: var(--color-terracotta);
  border: 2px solid var(--color-terracotta);
}
.btn--secondary:hover { background: var(--color-terracotta); color: #fff; }

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8); color: #fff; }

.btn--block { width: 100%; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
  background: rgba(245,244,237,0.0);
}
.navbar.scrolled {
  background: rgba(245,244,237,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 20px rgba(53,30,28,0.08);
}
.nav-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  height: var(--navbar-height);
  gap: var(--space-md);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.nav-logo img { display: block; height: 36px; width: auto; }
.nav-logo--footer img { height: 32px; filter: brightness(0) invert(1); }
/* Compat: caso ainda existam spans antigos do logo textual */
.nav-logo .logo-mark,
.nav-logo .logo-dot,
.nav-logo .logo-name { font-family: var(--font-family); }
.nav-logo .logo-dot { color: var(--color-fire-coral); }
.nav-logo .logo-mark { text-transform: lowercase; font-weight: var(--fw-light); margin-right: 2px; }
.nav-logo .logo-name { text-transform: uppercase; letter-spacing: 0.02em; font-weight: var(--fw-bold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links li { position: relative; }
.nav-links > li > a {
  position: relative;
  font-weight: var(--fw-reg);
  font-size: 14px;
  color: var(--color-charcoal-navy);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 200ms ease;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--color-fire-coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}
.nav-links > li > a:hover::after,
.nav-links > li > a[aria-current="page"]::after,
.nav-links > li > a.active::after { transform: scaleX(1); }

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: var(--space-sm);
  opacity: 0;
  transform: scale(0.96) translateY(-4px);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.dropdown a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: var(--fw-reg);
  color: var(--color-charcoal-navy);
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.dropdown a:hover { background: var(--color-alabaster); color: var(--color-terracotta); }
.dropdown--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 420px; }

.nav-cta { flex-shrink: 0; }

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  position: relative;
  z-index: 101;
  transition: background 180ms ease;
}
.nav-hamburger:hover { background: rgba(53,30,28,0.06); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-charcoal-navy);
  transition: transform 250ms ease, opacity 200ms ease, background 200ms ease;
  border-radius: 2px;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop mobile */
.nav-backdrop {
  position: fixed;
  inset: var(--navbar-height) 0 0 0;
  background: rgba(53,30,28,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 98;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-backdrop[data-open="true"] { opacity: 1; pointer-events: all; }

@media (max-width: 1024px) {
  .nav-container { gap: var(--space-sm); padding: 0 var(--space-md); position: relative; z-index: 102; background: rgba(245,244,237,0.96); }
  .navbar { background: rgba(245,244,237,0.96); }

  /* MENU MOBILE — fullscreen-overlay para garantir cobertura total */
  .nav-links {
    position: fixed;
    inset: 0;
    top: var(--navbar-height);
    background: var(--color-alabaster);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: var(--space-lg) var(--space-md) calc(var(--space-2xl) + env(safe-area-inset-bottom, 0px));
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 280ms;
    z-index: 99;
    box-shadow: -10px 0 30px rgba(53,30,28,0.08);
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
  }
  .nav-links[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0s;
  }
  .nav-links > li { width: 100%; list-style: none; }
  .nav-links > li > a {
    font-size: 16px;
    font-weight: var(--fw-reg);
    padding: 14px var(--space-sm);
    border-radius: var(--radius-sm);
    min-height: 52px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-charcoal-navy);
  }
  .nav-links > li > a::after { display: none; }
  .nav-links > li > a:hover,
  .nav-links > li > a[aria-current="page"],
  .nav-links > li > a.active {
    background: rgba(115,54,53,0.08);
    color: var(--color-terracotta);
    font-weight: var(--fw-bold);
  }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .dropdown {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: all;
    box-shadow: none;
    background: rgba(53,30,28,0.04);
    padding: 6px;
    margin-top: 4px;
    min-width: 0;
    grid-template-columns: 1fr !important;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
  }
  .dropdown a {
    font-size: 14px;
    padding: 12px var(--space-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  /* CTA mobile dentro do menu (injetado via JS) */
  .nav-links .nav-cta-mobile {
    display: block !important;
    margin: var(--space-md) 0 0;
    text-align: center;
    padding: 16px var(--space-md);
    background-image: var(--gradient-signature);
    background-color: var(--color-terracotta);
    background-clip: padding-box;
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: var(--fw-bold);
    font-size: 15px;
    min-height: 52px;
    line-height: 20px;
    border: 0;
  }
  body[data-nav-open="true"] { overflow: hidden; }
  /* Em mobile, o backdrop fica escondido pois o menu já é fullscreen */
  .nav-backdrop { display: none; }
}

/* Tablet — drawer lateral elegante (768-1024) */
@media (min-width: 768px) and (max-width: 1024px) {
  .nav-links {
    width: min(420px, 100%);
    left: auto;
    right: 0;
  }
  .nav-backdrop { display: block; }
}

@media (min-width: 1025px) {
  .nav-backdrop { display: none; }
  .nav-cta-mobile { display: none !important; }
}

/* ── FOOTER ── */
.footer {
  background: var(--color-espresso);
  color: rgba(245,244,237,0.8);
  padding: var(--space-2xl) 0 0;
}
.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}
.footer-brand .nav-logo { font-size: 26px; }
.footer-selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-md);
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  max-width: 260px;
}
.footer-selo-badge {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,96,55,0.15);
  border-radius: 50%;
  color: var(--color-fire-coral);
  flex-shrink: 0;
}
.footer-selo-badge svg { width: 18px; height: 18px; }
.footer-selo-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-selo-label {
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.footer-selo-text strong {
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}
.footer-selo-text em {
  font-size: 10px;
  font-style: normal;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.footer-brand p {
  margin-top: var(--space-sm);
  font-size: 14px;
  opacity: 0.6;
  max-width: 240px;
  line-height: 1.65;
}
.footer-col h4 {
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(245,244,237,0.6);
  margin-bottom: 8px;
  transition: color 200ms ease;
  line-height: 1.55;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--color-fire-coral); }
.footer-social { display: flex; gap: 10px; margin-top: var(--space-sm); }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 150ms ease;
  margin-bottom: 0;
}
.footer-social a:hover { background: var(--color-fire-coral); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(245,244,237,0.85); }
.footer-social a:hover svg { fill: #fff; }

.footer-bottom {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 13px;
  color: rgba(245,244,237,0.45);
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--color-fire-coral); }

@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-container { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--fw-bold);
  color: var(--color-espresso);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}
.section-header p { font-size: 16px; font-weight: var(--fw-light); color: var(--color-terracotta); }

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.section-badge--coral { background: rgba(255,96,55,0.12); color: var(--color-fire-coral); }
.section-badge--terracotta { background: rgba(115,54,53,0.10); color: var(--color-terracotta); }
.section-badge--light { background: rgba(255,255,255,0.15); color: #fff; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ── HERO INTERNO (compartilhado entre páginas internas) ── */
.hero-inner {
  background: var(--gradient-signature);
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner .container { position: relative; z-index: 1; }
.hero-inner h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: var(--space-sm);
}
.hero-inner p {
  font-size: 18px;
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  font-weight: var(--fw-reg);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: inherit; transition: color 200ms ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb[data-theme="light"] { color: rgba(35,48,56,0.55); }
.breadcrumb[data-theme="light"] a:hover { color: var(--color-terracotta); }

/* ── FORMULÁRIOS (floating labels acessíveis) ── */
.form-group {
  position: relative;
  margin-bottom: 20px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 22px 16px 8px;
  border: 1.5px solid var(--color-light-grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-weight: var(--fw-reg);
  font-size: 15px;
  background: #fff;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
  color: var(--color-charcoal-navy);
}
.form-group textarea { resize: vertical; min-height: 120px; padding-top: 24px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 4px rgba(115,54,53,0.08);
}
.form-group label {
  position: absolute;
  left: 16px;
  top: 18px;
  font-size: 15px;
  color: #999;
  transition: all 180ms ease;
  pointer-events: none;
  font-family: var(--font-family);
  background: transparent;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select.has-value ~ label {
  top: 6px;
  font-size: 11px;
  color: var(--color-terracotta);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-group .form-error {
  display: block;
  font-size: 12px;
  color: #c4302b;
  margin-top: 6px;
  min-height: 16px;
}
.form-feedback {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}
.form-feedback[data-state="success"] { display: block; background: rgba(108,184,108,0.12); color: #2e6b2e; border: 1px solid rgba(108,184,108,0.3); }
.form-feedback[data-state="error"] { display: block; background: rgba(196,48,43,0.10); color: #a02822; border: 1px solid rgba(196,48,43,0.3); }

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  font-size: 13px;
  color: var(--color-charcoal-navy);
  opacity: 0.85;
  line-height: 1.55;
}
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-terracotta); flex-shrink: 0; }
.consent-row a { color: var(--color-terracotta); text-decoration: underline; }

/* ── ICON SYSTEM (substitui emojis — PDF: "padronização elimina o ruído visual e estabelece assinatura gráfica") ── */
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-light-grey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-terracotta);
}
.icon-tile svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile--coral { background: rgba(255,96,55,0.12); color: var(--color-fire-coral); }
.icon-tile--terracotta { background: rgba(115,54,53,0.10); color: var(--color-terracotta); }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 10px; }
.icon-tile--sm svg { width: 20px; height: 20px; }

/* ── COOKIE / LGPD BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid var(--color-light-grey);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: var(--space-md) var(--space-lg);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p {
  flex: 1 1 280px;
  font-size: 13px;
  font-weight: var(--fw-reg);
  color: var(--color-charcoal-navy);
  line-height: 1.55;
}
.cookie-banner p a { color: var(--color-terracotta); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 18px; font-size: 13px; }

/* ── ACESSIBILIDADE: respeitar prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────
   NEWSLETTER POPUP (modal de inscrição)
   ───────────────────────────────────────────── */
.nl-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(53,30,28,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  z-index: 1100;
  opacity: 0;
  transition: opacity 240ms ease;
}
.nl-popup-overlay.visible { display: flex; opacity: 1; }
.nl-popup {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(53,30,28,0.35);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-popup-overlay.visible .nl-popup { transform: translateY(0) scale(1); }
.nl-popup-banner {
  background: var(--gradient-signature);
  padding: var(--space-xl) var(--space-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nl-popup-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.nl-popup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-sm);
}
.nl-popup-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: #fff;
}
.nl-popup h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
}
.nl-popup-banner > p {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  position: relative;
  max-width: 380px;
}
.nl-popup-body { padding: var(--space-lg); }
.nl-popup-body .form-group { margin-bottom: 14px; }
.nl-popup-body .form-group input { padding: 20px 14px 6px; font-size: 14px; }
.nl-popup-body .consent-row { font-size: 12px; margin-bottom: var(--space-md); }
.nl-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease;
  z-index: 2;
}
.nl-popup-close:hover { background: rgba(255,255,255,0.30); transform: rotate(90deg); }
.nl-popup-close svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.nl-popup .form-feedback { margin-top: 8px; font-size: 12px; }
@media (max-width: 480px) {
  .nl-popup-banner { padding: var(--space-lg); }
  .nl-popup-body { padding: var(--space-md); }
}

/* ─────────────────────────────────────────────
   CHATBOT FLOATING WIDGET
   ───────────────────────────────────────────── */
.cbot-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-signature);
  color: #fff;
  border: none;
  box-shadow: 0 12px 28px rgba(255,96,55,0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.cbot-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(255,96,55,0.55); }
.cbot-launcher svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms ease, opacity 200ms ease; }
.cbot-launcher .cbot-icon-close { position: absolute; opacity: 0; transform: rotate(-45deg); }
.cbot-launcher[aria-expanded="true"] .cbot-icon-chat { opacity: 0; transform: rotate(45deg); }
.cbot-launcher[aria-expanded="true"] .cbot-icon-close { opacity: 1; transform: rotate(0); }
.cbot-launcher .cbot-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-fire-coral);
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(255,96,55,0.5);
  animation: cbot-pulse 2s ease-out infinite;
}
@keyframes cbot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,96,55,0.6); }
  100% { box-shadow: 0 0 0 14px rgba(255,96,55,0); }
}
.cbot-launcher[aria-expanded="true"] .cbot-pulse { display: none; }

.cbot-panel {
  position: fixed;
  bottom: 92px;
  right: 20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 120px));
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(53,30,28,0.28);
  display: flex;
  flex-direction: column;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: 1px solid var(--color-light-grey);
}
.cbot-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.cbot-header {
  background: var(--gradient-signature);
  color: #fff;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cbot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35);
}
.cbot-header-text h3 { font-size: 15px; font-weight: var(--fw-bold); margin: 0; }
.cbot-header-text p { font-size: 12px; color: rgba(255,255,255,0.82); margin: 2px 0 0; display: flex; align-items: center; gap: 6px; }
.cbot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #44d77a;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.cbot-messages {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
  background: var(--color-alabaster);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.cbot-msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--color-light-grey);
  color: var(--color-charcoal-navy);
  border-bottom-left-radius: 4px;
}
.cbot-msg--user {
  align-self: flex-end;
  background: var(--color-terracotta);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cbot-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 var(--space-md) var(--space-sm);
  background: var(--color-alabaster);
}
.cbot-option {
  background: #fff;
  border: 1.5px solid var(--color-light-grey);
  color: var(--color-charcoal-navy);
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: var(--fw-reg);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.cbot-option:hover { border-color: var(--color-terracotta); color: var(--color-terracotta); background: #fff; }
.cbot-footer {
  display: flex;
  gap: 6px;
  padding: var(--space-sm);
  background: #fff;
  border-top: 1px solid var(--color-light-grey);
}
.cbot-footer a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: opacity 180ms ease, transform 150ms ease;
}
.cbot-footer a:hover { transform: translateY(-1px); }
.cbot-footer .cbot-wa { background: #25d366; color: #fff; }
.cbot-footer .cbot-mail { background: var(--color-light-grey); color: var(--color-charcoal-navy); }
.cbot-footer svg { width: 16px; height: 16px; }

@media (max-width: 520px) {
  .cbot-launcher { width: 56px; height: 56px; bottom: 16px; right: 16px; }
  .cbot-panel { right: 12px; left: 12px; width: auto; bottom: 84px; max-height: calc(100vh - 110px); }
}

/* ─────────────────────────────────────────────
   BLOG POST (template compartilhado)
   ───────────────────────────────────────────── */
.post-article { padding: var(--space-2xl) 0 var(--space-3xl); background: var(--color-alabaster); }
.post-wrap { max-width: 760px; margin: 0 auto; }
.post-header { margin-bottom: var(--space-xl); }
.post-category { display: inline-flex; padding: 5px 14px; border-radius: var(--radius-full); background: rgba(115,54,53,0.10); color: var(--color-terracotta); font-size: 11px; font-weight: var(--fw-bold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.post-title { font-size: clamp(30px, 4vw, 48px); font-weight: var(--fw-bold); color: var(--color-espresso); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--color-charcoal-navy); opacity: 0.7; }
.post-author { display: inline-flex; align-items: center; gap: 8px; }
.post-author-photo { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--color-terracotta), var(--color-fire-coral)); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: var(--fw-bold); }
.post-cover { aspect-ratio: 16/9; border-radius: var(--radius-md); margin-bottom: var(--space-xl); position: relative; overflow: hidden; background: var(--color-light-grey); }
.post-cover-inner { position: absolute; inset: 0; background: var(--gradient-signature); opacity: 0.85; display: flex; align-items: center; justify-content: center; }
.post-cover-inner svg { width: 80px; height: 80px; stroke: rgba(255,255,255,0.95); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.post-body p, .post-body li { font-size: 17px; line-height: 1.75; color: var(--color-charcoal-navy); font-weight: var(--fw-reg); margin-bottom: var(--space-md); }
.post-body h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: var(--fw-bold); color: var(--color-espresso); letter-spacing: -0.01em; margin: var(--space-xl) 0 var(--space-sm); line-height: 1.25; }
.post-body h3 { font-size: 20px; font-weight: var(--fw-bold); color: var(--color-charcoal-navy); margin: var(--space-lg) 0 var(--space-xs); }
.post-body ul, .post-body ol { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.post-body li { margin-bottom: 6px; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body strong { font-weight: var(--fw-bold); color: var(--color-espresso); }
.post-body a { color: var(--color-terracotta); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--color-fire-coral); }
.post-body blockquote {
  border-left: 4px solid var(--color-fire-coral);
  padding: var(--space-sm) var(--space-md);
  background: #fff;
  border-radius: var(--radius-sm);
  font-style: italic;
  margin: var(--space-md) 0;
  color: var(--color-charcoal-navy);
}
.post-key {
  background: linear-gradient(135deg, rgba(115,54,53,0.06), rgba(255,96,55,0.06));
  border-left: 4px solid var(--color-terracotta);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}
.post-key strong { color: var(--color-terracotta); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 4px; }
/* Tabelas em posts */
.post-body table { width: 100%; border-collapse: collapse; margin: var(--space-md) 0; background: #fff; border-radius: var(--radius-sm); overflow: hidden; font-size: 14px; border: 1px solid var(--color-light-grey); }
.post-body th, .post-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--color-light-grey); line-height: 1.5; }
.post-body th { background: var(--color-alabaster); font-weight: var(--fw-bold); color: var(--color-espresso); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
.post-body tr:last-child td { border-bottom: none; }
.post-body td { color: var(--color-charcoal-navy); font-weight: var(--fw-reg); }
@media (max-width: 600px) { .post-body table { font-size: 13px; } .post-body th, .post-body td { padding: 10px 8px; } }

.post-share { display: flex; gap: 10px; align-items: center; margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid var(--color-light-grey); }
.post-share span { font-size: 12px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-charcoal-navy); opacity: 0.55; }
.post-share a { width: 36px; height: 36px; border-radius: 50%; background: var(--color-light-grey); display: inline-flex; align-items: center; justify-content: center; transition: background 200ms ease; }
.post-share a:hover { background: var(--color-terracotta); }
.post-share svg { width: 16px; height: 16px; fill: var(--color-charcoal-navy); }
.post-share a:hover svg { fill: #fff; }

.post-related { padding: var(--space-2xl) 0 var(--space-3xl); background: var(--color-light-grey); }
.post-related h2 { font-size: clamp(22px, 3vw, 32px); font-weight: var(--fw-bold); color: var(--color-espresso); margin-bottom: var(--space-lg); letter-spacing: -0.01em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: #fff; border-radius: var(--radius-md); padding: var(--space-md); border: 1.5px solid var(--color-light-grey); text-decoration: none; color: inherit; transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease; display: flex; flex-direction: column; gap: 8px; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--color-fire-coral); }
.related-card .post-category { margin-bottom: 0; align-self: flex-start; }
.related-card h3 { font-size: 16px; font-weight: var(--fw-bold); color: var(--color-charcoal-navy); line-height: 1.35; }
.related-card .related-meta { font-size: 12px; color: var(--color-charcoal-navy); opacity: 0.6; margin-top: auto; }

.post-cta { padding: var(--space-2xl) 0; background: var(--color-espresso); color: #fff; text-align: center; }
.post-cta h2 { font-size: clamp(24px, 3vw, 36px); font-weight: var(--fw-bold); color: #fff; margin-bottom: var(--space-sm); letter-spacing: -0.01em; }
.post-cta p { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: var(--space-lg); font-weight: var(--fw-light); }

/* ── UTILS ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-coral { color: var(--color-fire-coral); }
.text-terracotta { color: var(--color-terracotta); }
