/* ============================================================
   CONTABILIDADE BARCELOS — Design System "Petróleo & Latão"
   Paleta derivada do logo real: fita "B" em petróleo + latão,
   confirmada nas paredes petróleo do escritório.
   Tipografia: PROVISÓRIA — Georgia (títulos) + Arial (corpo). Ver PENDENTE nos tokens.
   Regra do acento: latão APENAS em CTAs de conversão.
   ============================================================ */

:root {
  /* ---- Núcleo semântico ---- */
  --bg: #ebefee;          /* porcelana — viés verde-cinza, não creme */
  --surface: #ffffff;     /* cards e painéis claros */
  --surface-2: #f5f7f5;   /* seção clara alternada */
  --ink: #0b2e34;         /* petróleo-tinta — títulos e texto forte */
  --body: #2a4649;        /* corpo de texto */
  --muted: #51656a;       /* texto secundário */
  --faint: #55696c;       /* rótulos terciários (AA garantido) */

  --brand: #0c6e7d;       /* petróleo vivo — cor de marca (o "B" do logo) */
  --brand-700: #0a5a67;   /* petróleo hover */
  --brand-deep: #0c4a55;  /* petróleo profundo — seções escuras */
  --brand-900: #0b2e34;   /* petróleo mais profundo — footer / CTA final */
  --brand-200: #8fc4ce;   /* aqua claro — acentos sobre fundo escuro */

  --brass: #b0812e;       /* LATÃO — acento de conversão (só CTAs) */
  --brass-hi: #c79a45;    /* latão hover */
  --brass-ink: #1c1304;   /* texto sobre latão */

  /* WhatsApp — verde de conversão (AA com texto branco); permanece
     verde em todos os estados, nunca muda de cor. */
  --whatsapp: #128c4b;
  --whatsapp-ink: #ffffff;
  --whatsapp-border: #0c6f3a;

  --line: #dbe2e0;        /* divisores sobre claro */
  --line-soft: #e6ebe9;

  --focus: #159aae;       /* anel de foco visível */

  /* ---- Aliases legados → mapeados para a nova paleta ----
     (mantêm o CSS existente funcionando; sem valores órfãos) */
  --navy-900: var(--brand-900);
  --navy-800: var(--brand-deep);
  --navy-700: var(--brand);
  --navy-600: #12869a;

  --offwhite: var(--bg);
  --offwhite-2: var(--surface-2);
  --paper: var(--surface);

  --graphite-900: var(--ink);
  --graphite-700: var(--body);
  --graphite-500: var(--muted);
  --graphite-300: var(--faint);

  /* decorativos que antes eram dourados agora falam petróleo */
  --gold: var(--brand);
  --gold-soft: var(--brand);
  --gold-line: rgba(12, 110, 125, 0.5);

  --skyblue: var(--brand);
  --skyblue-soft: var(--focus);

  /* ---- Tipografia ---- */
  /* PENDENTE: par tipográfico provisório (Georgia + Arial); aguardando aprovação final do cliente */
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --serif-display: var(--serif);

  /* ---- Espaçamento (base 8px) e formas ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(11, 46, 52, 0.05);
  --shadow: 0 10px 34px rgba(11, 46, 52, 0.09);
  --shadow-lg: 0 18px 48px rgba(11, 46, 52, 0.14);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-height: 126px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--graphite-700);
  background: var(--offwhite);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
/* Grandes afirmações → serifa display (Georgia, provisória), com contenção */
h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
}
/* Subtítulos funcionais → sans nítida (hierarquia editorial) */
h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.006em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Utilitários de layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 7.5vw, 104px);
  position: relative;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-line);
}
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-line);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 4.5vw, 54px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
}
.section-head .lead {
  margin-top: 16px;
  color: var(--graphite-500);
  font-size: 1.08rem;
  line-height: 1.7;
}
.diff-chamada {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.3;
  color: var(--brand);
}
.section-head.center .lead { max-width: 620px; margin-inline: auto; }

/* Elemento assinatura "A Dobra" — a fita dobrada do "B" do logo,
   em dois tons de petróleo. Substitui o traço dourado genérico. */
.gold-rule {
  width: 46px;
  height: 15px;
  border: none;
  margin: 0 0 22px;
  background: linear-gradient(128deg, var(--brand) 0 49%, var(--brand-deep) 49% 100%);
  clip-path: polygon(0 0, 76% 0, 100% 100%, 24% 100%);
}
.center .gold-rule { margin-inline: auto; }
/* Sobre seções escuras, a dobra clareia para permanecer visível */
.process .gold-rule,
.final-cta .gold-rule {
  background: linear-gradient(128deg, var(--brand-200) 0 49%, var(--brand) 49% 100%);
}

/* ---------- Botões ---------- */
.btn {
  --bg: var(--brand);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
              box-shadow 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Secundário forte — petróleo vivo (ações estruturais/navegacionais) */
.btn--primary { --bg: var(--brand); }
.btn--primary:hover { --bg: var(--brand-700); }

/* ===== ACENTO DE CONVERSÃO — VERDE WHATSAPP =====
   Todos os CTAs que abrem o WhatsApp usam verde. O botão permanece
   verde em default, hover, focus e active — nunca muda de cor
   (o feedback vem só da elevação/sombra herdada de .btn). */
.btn--whatsapp,
.btn--gold,
.btn--whats,
.btn.js-whats {
  --bg: var(--whatsapp);
  --fg: var(--whatsapp-ink);
  border-color: transparent;
}
.btn--whatsapp:hover, .btn--gold:hover, .btn--whats:hover, .btn.js-whats:hover,
.btn--whatsapp:focus, .btn--gold:focus, .btn--whats:focus, .btn.js-whats:focus,
.btn--whatsapp:active, .btn--gold:active, .btn--whats:active, .btn.js-whats:active {
  --bg: var(--whatsapp);
  --fg: var(--whatsapp-ink);
}
/* CTA secundário do hero: mesma cor verde, borda mais espessa */
.btn--thick { border-width: 3px; border-color: var(--whatsapp-border); }

/* Secundário/terciário — contorno petróleo */
.btn--ghost {
  --bg: transparent;
  --fg: var(--brand);
  border-color: rgba(12, 110, 125, 0.4);
}
.btn--ghost:hover {
  --bg: rgba(12, 110, 125, 0.06);
  border-color: var(--brand);
}

.btn--on-navy.btn--ghost {
  --fg: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--on-navy.btn--ghost:hover {
  --bg: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn--sm { min-height: 44px; padding: 10px 17px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(235, 239, 238, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(11,46,52,0.06), 0 6px 24px rgba(11,46,52,0.07);
  border-bottom-color: var(--line);
}
.site-header .container { max-width: 1320px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  flex: 0 0 auto;
}
.brand__mark {
  width: 118px; height: 118px;
  flex: none;
  display: block;
  object-fit: contain;
}
.brand__text { line-height: 1.05; min-width: 0; }
.brand__name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--navy-900);
  letter-spacing: 0;
  white-space: nowrap;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.brand__crc {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}
/* header sobre hero escuro: marca clara antes do scroll */
.site-header:not(.scrolled) .brand__name { color: #fff; }
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.82); }
.site-header:not(.scrolled) .nav-link:hover { color: #fff; }
.site-header:not(.scrolled) .menu-toggle span { background: #fff; }

body.home-light-hero .site-header:not(.scrolled) .brand__name { color: var(--navy-900); }
body.home-light-hero .site-header:not(.scrolled) .nav-link { color: var(--graphite-700); }
body.home-light-hero .site-header:not(.scrolled) .nav-link:hover { color: var(--navy-900); }
body.home-light-hero .site-header:not(.scrolled) .menu-toggle span { background: var(--navy-900); }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 1.7vw, 28px); }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--graphite-700);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--navy-900); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO  (split: texto à esquerda · imagem à direita)
   ============================================================ */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--graphite-700);
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
}
/* Arte anterior desligada: o hero usa a imagem em .hero__bg. */
.hero::before {
  content: "";
  display: none;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-deep);
}
.hero > .hero__bg {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 74%, var(--surface-2) 100%),
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.82) 48%, rgba(255,255,255,0.46) 72%, rgba(255,255,255,0.14) 100%),
    url("img/hero-background.png") center / cover no-repeat;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(38px, 4.5vw, 64px);
  align-items: center;
  padding-block: clamp(62px, 7.5vw, 100px);
}
.hero__content { min-width: 0; }
.hero__seal {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--gold-line);
  border-radius: 100px;
  padding: 8px 16px 8px 10px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 26px;
  background: rgba(12,110,125,0.05);
}
.hero__seal b {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--surface);
  background: var(--brand);
  padding: 3px 9px;
  border-radius: 100px;
}
.hero h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 4.3vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero h1 .accent { color: var(--brand); font-style: italic; }
.hero__tagline {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.32;
  color: var(--brand);
  max-width: 560px;
}
.hero__sub {
  margin-top: 18px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--graphite-700);
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
/* ============================================================
   HERO MEDIA — composição em camadas (foto + emblema + prova)
   ============================================================ */
.hero__media { position: relative; }
.hero__stage { position: relative; }

.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--brand), var(--brand-900));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.03);
}
/* Duotone petróleo — unifica o mosaico e faz os chips destacarem */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(155deg, rgba(12,74,85,0.30), rgba(11,46,52,0.14) 42%, rgba(6,42,49,0.58)),
    radial-gradient(130% 90% at 82% 26%, transparent 38%, rgba(6,42,49,0.42));
  mix-blend-mode: multiply;
}
.hero__photo-frame {
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  pointer-events: none;
}

/* Arcos antigos desligados: a imagem nova ja traz essa textura. */
.hero__arcs {
  display: none;
}

/* ============================================================
   NEED SELECTOR — "Como podemos ajudar"
   ============================================================ */
.needs { background: var(--offwhite-2); }
.needs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.need-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 82px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.35;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.need-card .nc-ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 9px;
  background: var(--offwhite);
  display: grid; place-items: center;
  color: var(--navy-700);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.need-card .nc-ico svg { width: 21px; height: 21px; }
.need-card .nc-arrow {
  width: 20px;
  height: 20px;
  flex: none;
  margin-left: auto;
  color: var(--graphite-300);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.need-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}
.need-card:hover .nc-ico { background: var(--navy-800); color: #fff; }
.need-card:hover .nc-arrow { transform: translateX(4px); color: var(--gold); }
.need-card.active {
  border-color: var(--navy-800);
  box-shadow: var(--shadow);
}
.need-card.active .nc-ico { background: var(--navy-800); color: #fff; }

/* painel dinâmico */
.need-panel {
  margin-top: 20px;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.need-panel.open { grid-template-rows: 1fr; }
.need-panel__inner {
  overflow: hidden;
  min-height: 0;
}
.need-panel__pad {
  padding: clamp(30px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 34px;
  align-items: center;
}
.need-panel__pad .np-eyebrow {
  color: var(--brand-200);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.need-panel__pad h3 { color: #fff; font-size: 1.6rem; margin-bottom: 14px; }
.need-panel__pad p { color: rgba(255,255,255,0.78); }
.np-steps { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.np-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.96rem; color: rgba(255,255,255,0.82);
}
.np-steps .dot {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  border-radius: 50%;
  border: 1px solid rgba(143,196,206,0.4);
  color: var(--brand-200);
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700;
}
.np-aside {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
}
.np-aside p { font-size: 0.92rem; margin-bottom: 18px; }
/* Garante que os itens do grid não extrapolem o track em telas pequenas */
.need-panel__pad > div { min-width: 0; }
/* Permite que o texto do botão quebre linha dentro do painel lateral */
.np-aside .btn { white-space: normal; word-break: break-word; }

/* ============================================================
   AUTHORITY
   ============================================================ */
.authority__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
}
.auth-item {
  background: var(--paper);
  padding: 28px 24px;
}
.auth-item .ai-ico {
  width: 36px; height: 36px;
  color: var(--gold);
  margin-bottom: 14px;
}
.auth-item .ai-ico svg { width: 100%; height: 100%; }
.auth-item h4 { font-size: 1.1rem; line-height: 1.3; min-height: 2.6em; margin-bottom: 7px; }
.auth-item p { font-size: 0.92rem; color: var(--graphite-500); }

/* ============================================================
   ABOUT + FOUNDERS
   ============================================================ */
.about { background: var(--offwhite-2); }
.about__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}
.about__text h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.about__text p + p { margin-top: 16px; }
.about__text p { color: var(--graphite-700); }

/* founders */
.founders { margin-top: clamp(52px, 6vw, 76px); }
.founders__cap {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--graphite-500);
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto clamp(28px, 3.5vw, 40px);
}
.founders__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: 820px;
  margin-inline: auto;
}
.founder-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.founder-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.founder-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy-800);
}
.founder-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  /* tratamento sóbrio frio/neutro coerente com a paleta */
  filter: grayscale(0.32) brightness(0.98) contrast(1.02);
  transition: filter 0.4s var(--ease);
}
.founder-card:hover .founder-card__photo img { filter: grayscale(0.12) brightness(1) contrast(1.02); }
.founder-card__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,46,52,0.30));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.founder-card__body {
  padding: 20px 22px 24px;
  border-top: 2px solid var(--gold);
}
.founder-card__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy-900);
}
.founder-card__role { font-size: 0.92rem; color: var(--graphite-500); margin-top: 4px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__ico {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--brand);
  margin-bottom: 18px;
}
.service-card__ico svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.22rem; line-height: 1.25; margin-bottom: 6px; }
.service-card .service-card__tagline {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--brand);
  font-size: 1rem;
  line-height: 1.3;
  flex: none;
  margin-bottom: 12px;
}
.service-card p { font-size: 0.96rem; color: var(--graphite-500); flex: 1; }
.service-card__link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand);
  cursor: pointer;
}
.service-card__link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
/* link de conversão (abre WhatsApp) → hover no verde */
.service-card__link:hover { color: var(--whatsapp); }
.service-card__link:hover svg { transform: translateX(3px); }

/* ============================================================
   TAX JOURNAL TEASER (chamada compacta na home)
   ============================================================ */
.tax-journal-teaser {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 32px;
  align-items: center;
}
.tjt-text h2 { font-size: 1.5rem; margin-bottom: 8px; }
.tjt-text .lead { font-size: 0.98rem; margin: 0; }
.tjt-headlines { display: grid; gap: 12px; }
.tjt-headline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-line);
}
.tjt-headline a {
  font-family: var(--serif);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--navy-900);
}
.tjt-headline a:hover { color: var(--gold); }
.tjt-headline span { font-size: 0.72rem; color: var(--graphite-300); }
.tjt-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.tax-journal-teaser .btn { white-space: nowrap; }

.useful-links {
  display: grid;
  gap: 10px;
}
.useful-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--offwhite-2);
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
}
.useful-link:hover {
  transform: translateY(-1px);
  border-color: var(--gold-line);
  background: var(--paper);
  color: var(--gold);
}
.useful-link__ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--gold);
  background: var(--paper);
  border: 1px solid var(--gold-line);
}
.useful-link__ico svg { width: 18px; height: 18px; }
.useful-link__title { min-width: 0; }

/* ============================================================
   JORNAL TRIBUTÁRIO — página editorial
   ============================================================ */
.journal-masthead {
  text-align: center;
  padding-top: calc(var(--header-height) + clamp(28px, 5vw, 56px));
  padding-bottom: 28px;
}
.journal-masthead__eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.journal-masthead h1 {
  font-family: var(--serif-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  margin: 10px 0 12px;
}
.journal-masthead__rule {
  width: 100%;
  border: none;
  border-top: 1px solid var(--navy-900);
  border-bottom: 1px solid var(--navy-900);
  height: 3px;
  margin: 0 0 14px;
}
.journal-edition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 56px);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--graphite-500);
}
.journal-edition b { color: var(--navy-900); }

.journal-feature {
  padding-bottom: clamp(40px, 5vw, 60px);
  margin-bottom: clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.journal-kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.journal-feature h2 {
  font-family: var(--serif-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: 800px;
  margin-bottom: 12px;
}
/* Fase 11 — data das notícias levemente menor (mantendo legibilidade) */
.journal-feature__date { font-size: 0.78rem; color: var(--graphite-300); margin-bottom: 16px; display: block; }
.journal-feature p { font-size: 1.08rem; color: var(--graphite-700); max-width: 700px; margin-bottom: 18px; }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.journal-story {
  padding: 0 28px clamp(28px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 40px);
  border-left: 1px solid var(--line);
}
.journal-story:first-child { border-left: none; padding-left: 0; }
.journal-story h3 { font-family: var(--serif-display); font-size: 1.22rem; margin-bottom: 10px; }
.journal-story__date { font-size: 0.75rem; color: var(--graphite-300); display: block; margin-bottom: 10px; }
.journal-story p { font-size: 0.94rem; color: var(--graphite-500); margin-bottom: 14px; }
.journal-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-800);
}
.journal-source svg { width: 13px; height: 13px; flex: none; }
.journal-source:hover { color: var(--gold); }
.journal-story__cta { display: flex; margin-top: 12px; }

.journal-error {
  text-align: center;
  padding: clamp(40px, 6vw, 64px) 20px;
  color: var(--graphite-500);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-bottom: clamp(40px, 5vw, 60px);
}
.journal-error .btn { margin-top: 18px; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.process { background: var(--navy-800); color: #fff; position: relative; overflow: hidden; }
.process .eyebrow { color: var(--brand-200); }
.process .eyebrow::before, .process .eyebrow::after { background: rgba(143,196,206,0.5); }
.process .section-head h2 { color: #fff; }
.process .section-head .lead { color: rgba(255,255,255,0.72); }
.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.process__timeline::before {
  content: "";
  position: absolute;
  top: 23px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143,196,206,0.4), rgba(143,196,206,0.4), transparent);
}
.proc-step { position: relative; }
.proc-step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid rgba(143,196,206,0.35);
  color: var(--brand-200);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.proc-step h4 { color: #fff; font-size: 1.16rem; line-height: 1.3; min-height: 2.6em; margin-bottom: 8px; }
.proc-step p { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

/* ============================================================
   DIAGNOSTIC FORM
   ============================================================ */
.diagnostic__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 740px;
  margin-inline: auto;
  overflow: hidden;
}
.diag__progress {
  display: flex;
  gap: 8px;
  padding: 20px clamp(26px, 3.5vw, 38px) 0;
}
.diag__progress .seg {
  flex: 1; height: 4px; border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.diag__progress .seg.done { background: var(--gold); }
.diag__body { padding: clamp(28px, 3.5vw, 40px); }
.diag-step { display: none; animation: fadeUp 0.4s var(--ease); }
.diag-step.active { display: block; }
.diag-step__q {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 10px;
}
.diag-step h3 { font-size: 1.5rem; margin-bottom: 22px; }
.diag-options { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.diag-option {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 58px;
  padding: 15px 17px;
  cursor: pointer;
  font-weight: 500;
  color: var(--graphite-700);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
  text-align: left;
  font-family: var(--sans);
  font-size: 1rem;
}
.diag-option:hover { border-color: var(--navy-600); transform: translateY(-2px); }
.diag-option.selected { border-color: var(--navy-800); background: var(--offwhite); color: var(--navy-900); font-weight: 600; }
.diag-option .tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  color: #fff; background: transparent;
  transition: all 0.2s var(--ease);
}
.diag-option.selected .tick { background: var(--navy-800); border-color: var(--navy-800); }
.diag-option .tick svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.2s; }
.diag-option.selected .tick svg { opacity: 1; }
.diag__nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; gap: 14px;
}
.diag__back {
  background: none; border: none; cursor: pointer;
  color: var(--graphite-500); font-family: var(--sans); font-weight: 500;
  font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px;
}
.diag__back:hover { color: var(--navy-800); }
.diag__back svg { width: 16px; height: 16px; }
.diag__back.hidden { visibility: hidden; }
/* result */
.diag-result { display: none; text-align: center; animation: fadeUp 0.4s var(--ease); }
.diag-result.active { display: block; }
.diag-result .res-ico {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--offwhite); border: 1px solid var(--gold-line);
  color: var(--gold); display: grid; place-items: center;
  margin: 0 auto 20px;
}
.diag-result .res-ico svg { width: 28px; height: 28px; }
.diag-result h3 { font-size: 1.6rem; margin-bottom: 14px; }
.diag-result p { color: var(--graphite-500); max-width: 480px; margin: 0 auto 20px; }
.diag-summary {
  background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; text-align: left; max-width: 480px; margin: 0 auto 26px;
  display: grid; gap: 8px;
}
.diag-summary .row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.diag-summary .row .k { color: var(--graphite-500); }
.diag-summary .row .v { color: var(--navy-900); font-weight: 600; text-align: right; }

/* ============================================================
   DIAGNÓSTICO — CTA simples · INDICADORES/DEPOIMENTOS (ocultos)
   ============================================================ */
.diagnostic__cta-actions { display: flex; justify-content: center; margin-top: 4px; }

/* Seções desabilitadas por flag (mantidas fora do ar até validação) */
.is-hidden { display: none !important; }

/* Indicadores — estrutura pronta, oculta até validação dos números */
.indicators__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.indicator {
  background: var(--paper);
  padding: 30px 24px;
  min-height: 128px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.indicator__num { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--brand); line-height: 1; }
.indicator__label { font-size: 0.92rem; color: var(--graphite-500); }

/* Depoimentos — estrutura pronta, oculta e sem conteúdo fictício */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--offwhite-2); }
.faq__list {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy-900);
  text-align: left;
}
.faq-q .ico {
  flex: none; width: 26px; height: 26px;
  position: relative;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  transition: background 0.25s var(--ease);
}
.faq-q .ico::before, .faq-q .ico::after {
  content: ""; position: absolute; background: var(--gold);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-q .ico::before { width: 11px; height: 1.5px; }
.faq-q .ico::after { width: 1.5px; height: 11px; transition: transform 0.25s var(--ease); }
.faq-item.open .faq-q .ico::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; min-height: 0; }
.faq-a p { color: var(--graphite-500); padding: 0 4px 24px; font-size: 1rem; }

/* ============================================================
   LOCATION
   ============================================================ */
.location__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}
.loc-info h2 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); margin-bottom: 22px; }
.loc-list { display: grid; gap: 16px; margin-bottom: 26px; }
.loc-row { display: flex; gap: 16px; align-items: flex-start; }
.loc-row .ico {
  width: 40px; height: 40px; flex: none;
  border-radius: 9px; background: var(--offwhite);
  border: 1px solid var(--line); color: var(--navy-800);
  display: grid; place-items: center;
}
.loc-row .ico svg { width: 20px; height: 20px; }
.loc-row .k { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite-300); font-weight: 600; margin-bottom: 2px; }
.loc-row .v { color: var(--navy-900); font-weight: 500; }
.loc-row a.v:hover { color: var(--skyblue); }
.loc-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #dfe6ec, #eef2f5);
  border: 1px solid var(--line);
  min-height: 360px;
  position: relative;
  display: grid; place-items: center;
}
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; position: absolute; inset: 0; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { background: var(--navy-900); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 760px; margin: 0 auto 20px; }
.final-cta p { color: rgba(255,255,255,0.76); max-width: 560px; margin: 0 auto 30px; font-size: 1.08rem; }
.final-cta .gold-rule { margin: 0 auto 26px; }
.final-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.6); border-top: 1px solid rgba(255,255,255,0.08); }
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.35fr 0.95fr;
  gap: 36px;
  padding-block: clamp(46px, 5.5vw, 64px);
}
.footer__brand-row { display: flex; align-items: center; gap: 12px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 16px; font-size: 0.92rem; max-width: 320px; line-height: 1.6; }
/* Fase 12 — CRC imediatamente abaixo do nome, com fonte maior e legível */
.footer__brand .brand__crc {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--brand-200);
}
.footer__brand .footer__tagline {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 320px;
  line-height: 1.55;
}
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer h5 {
  font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-200); margin-bottom: 18px; font-weight: 600;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col a, .footer__col li { font-size: 0.94rem; color: rgba(255,255,255,0.66); transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.useful-links--footer {
  gap: 12px;
}
.useful-links--footer .useful-link {
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.66);
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 500;
}
.useful-links--footer .useful-link:hover {
  transform: none;
  background: transparent;
  color: #fff;
}
.useful-links--footer .useful-link__ico {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--brand-200);
}
.useful-links--footer .useful-link__ico svg {
  width: 16px;
  height: 16px;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  /* padding-bottom extra: mantém os links legais (Política/LGPD) acima do
     botão flutuante do assistente, garantindo acesso ao clique. */
  padding: 24px 0 clamp(72px, 8vw, 88px);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  justify-content: space-between; align-items: center;
  font-size: 0.84rem;
}
.footer__bottom a:hover { color: #fff; }

/* ============================================================
   ASSISTANT CHAT (floating)
   ============================================================ */
.assistant-fab {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 90;
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--navy-800);
  color: #fff;
  border: 1px solid var(--gold-line);
  border-radius: 100px;
  padding: 11px 18px 11px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.assistant-fab:hover { transform: translateY(-2px); background: var(--navy-700); }
.assistant-fab .av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--brand-200); color: var(--brand-900);
  display: grid; place-items: center;
}
.assistant-fab .av svg { width: 18px; height: 18px; }
.assistant-fab .pulse {
  position: absolute; top: 12px; left: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-200);
  box-shadow: 0 0 0 0 rgba(21,154,174,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21,154,174,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(21,154,174,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,154,174,0); }
}
body.assistant-open .assistant-fab { transform: scale(0.9); opacity: 0; pointer-events: none; }

.assistant-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 95;
  width: min(390px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 48px));
  background: var(--offwhite-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
body.assistant-open .assistant-panel { opacity: 1; transform: none; pointer-events: auto; }
.assistant-head {
  background: var(--navy-800); color: #fff;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 13px;
}
.assistant-head .av {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--brand-200); color: var(--brand-900);
  display: grid; place-items: center;
}
.assistant-head .av svg { width: 20px; height: 20px; }
.assistant-head .t b { font-family: var(--serif); font-size: 1.05rem; display: block; }
.assistant-head .t span { font-size: 0.78rem; color: rgba(255,255,255,0.6); display: inline-flex; align-items: center; gap: 6px; }
.assistant-head .t span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-200); }
.assistant-close {
  margin-left: auto; background: rgba(255,255,255,0.1); border: none;
  width: 32px; height: 32px; border-radius: 8px; color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.assistant-close:hover { background: rgba(255,255,255,0.2); }
.assistant-close svg { width: 16px; height: 16px; }
.assistant-body {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
}
.msg { display: flex; gap: 9px; max-width: 88%; animation: fadeUp 0.35s var(--ease); }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble {
  padding: 12px 15px; border-radius: 14px; font-size: 0.93rem; line-height: 1.5;
}
.msg.bot .bubble { background: var(--paper); border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--graphite-700); }
.msg.user .bubble { background: var(--navy-800); color: #fff; border-top-right-radius: 4px; }
.assistant-options { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.assistant-options button {
  text-align: left; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 15px; cursor: pointer;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s;
}
.assistant-options button:hover { border-color: var(--gold-line); transform: translateX(3px); background: #fff; }
.assistant-options button svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.assistant-options button.whats { background: var(--whatsapp); color: var(--whatsapp-ink); border-color: var(--whatsapp); justify-content: center; }
.assistant-options button.whats:hover { background: var(--whatsapp); transform: none; }
.assistant-options button.whats svg { color: var(--whatsapp-ink); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--graphite-300); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================================
   PAGE HERO — hero simplificado para páginas internas
   ============================================================ */
.page-hero {
  position: relative;
  background: var(--navy-800);
  color: #fff;
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .eyebrow { color: var(--brand-200); }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { background: rgba(143,196,206,0.5); }
.page-hero__inner { padding-block: clamp(44px, 6vw, 72px); max-width: 760px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-top: 12px;
}
.page-hero__date {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ============================================================
   POLÍTICA DE PRIVACIDADE — conteúdo
   ============================================================ */
.policy-body {
  background: var(--offwhite-2);
  padding-block: clamp(44px, 6vw, 72px);
}
.policy-content { max-width: 800px; }

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--graphite-500);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: clamp(24px, 4vw, 36px);
  transition: color 0.2s var(--ease);
}
.policy-back svg { width: 16px; height: 16px; }
.policy-back:hover { color: var(--navy-800); }

.policy-intro {
  color: var(--graphite-700);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.policy-section { margin-top: clamp(32px, 5vw, 48px); }

.policy-section h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--navy-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--line);
}
.policy-section h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
  margin: 22px 0 8px;
}
.policy-section p {
  color: var(--graphite-700);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.policy-section p:last-child { margin-bottom: 0; }

.policy-section ul {
  margin: 8px 0 14px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.policy-section ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--graphite-700);
  line-height: 1.65;
}
.policy-section ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  margin-top: 10px;
}

.policy-contact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 14px 0 0;
}
.policy-contact p { margin-bottom: 6px; color: var(--graphite-700); font-size: 1rem; line-height: 1.65; }
.policy-contact p:last-child { margin-bottom: 0; }
.policy-contact a { color: var(--skyblue); font-weight: 500; }
.policy-contact a:hover { color: var(--navy-800); }

/* footer: indicador de página atual (política) */
.footer__current { font-size: 0.84rem; color: rgba(255, 255, 255, 0.9); }

/* ============================================================
   RESPONSIVE  —  do maior para o menor breakpoint
   ============================================================ */

/* Tablet largo: 1080px */
@media (max-width: 1080px) {
  .needs__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* Tablet e notebooks compactos: 1100px */
@media (max-width: 1100px) {
  /* Nav principal oculta; exposta como drawer mobile */
  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  /* Botão WhatsApp do header: mantido como ícone (melhor que sumir) */
  .header-cta .btn--sm {
    display: inline-flex !important;
    font-size: 0;
    gap: 0;
    padding: 10px;
    min-width: 44px;
    height: 44px;
  }
  .header-cta .btn--sm svg { width: 20px; height: 20px; flex: none; }
  /* O botão WhatsApp do header permanece verde em qualquer estado/rolagem. */

  /* Grids: colapsar para 1 coluna ou 2 */
  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { width: 100%; max-width: 760px; }
  .hero__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .about__top { grid-template-columns: 1fr; }
  .need-panel__pad { grid-template-columns: 1fr; gap: 26px; }
  .authority__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-story:nth-child(2) { border-left: none; padding-left: 0; }
  .process__timeline { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .tax-journal-teaser { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tjt-headline { border-left: none; padding-left: 0; align-items: center; }
  .process__timeline::before { display: none; }
  .location__grid { grid-template-columns: 1fr; }
  .loc-map { min-height: 300px; }

  /* Drawer de navegação mobile */
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--offwhite-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  body.nav-open .main-nav { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 14px var(--gutter); font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav-link::after { display: none; }
  .site-header:not(.scrolled) .main-nav .nav-link { color: var(--graphite-700); }
}

/* Tablet retrato: 768px */
@media (max-width: 768px) {
  .section { padding-block: 60px; }
  .hero h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .auth-item { padding: 24px 20px; }
  .service-card { padding: 24px 20px; }
  /* Opções do diagnóstico em coluna única (textos longos ficam comprimidos em 2 col) */
  .diag-options { grid-template-columns: 1fr; }
  .founders__grid { max-width: 600px; }
}

/* Mobile: 620px */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 34px; }
  .eyebrow { margin-bottom: 14px; }
  .needs__grid { grid-template-columns: 1fr; }
  .authority__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-story { border-left: none; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .journal-story:first-child { border-top: none; padding-top: 0; }
  .process__timeline { grid-template-columns: 1fr; }
  .founders__grid { grid-template-columns: 1fr; max-width: 380px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__brand p { max-width: none; }
  .hero__inner { padding-block: 50px 64px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn, .final-cta__actions .btn { width: 100%; }
  .auth-item h4, .service-card h3, .proc-step h4 { min-height: 0; }
  .assistant-fab span.lbl { display: none; }
  .assistant-fab {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    padding: 0;
  }
  .assistant-fab .pulse { top: 8px; left: 8px; }
}

/* Mobile compacto: 480px */
@media (max-width: 480px) {
  :root { --header-height: 104px; }
  .header-inner { gap: 14px; }
  .brand__mark { width: 88px; height: 88px; }
  /* Subtítulo da marca pode sumir; economiza largura no header */
  .brand__sub { display: none; }

  .hero h1 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
  .hero__seal { font-size: 0.72rem; padding: 6px 12px 6px 8px; }
  .hero__sub { font-size: 1rem; }

  .need-card { min-height: 76px; padding: 16px 18px; }
  .section-head h2 { font-size: clamp(1.6rem, 6vw, 1.9rem); }
  .faq-q { font-size: 1.05rem; padding: 20px 4px; }
  .service-card { padding: 20px 18px; }
  /* Área de toque confortável em todos os botões */
  .btn { min-height: 48px; }
  .final-cta h2 { font-size: clamp(1.55rem, 7vw, 2.2rem); }
  .assistant-panel { bottom: 12px; right: 12px; width: min(390px, calc(100vw - 24px)); }
  .loc-map { min-height: 260px; }
  .diag__progress { padding: 18px 20px 0; }
  .diag__body { padding: 24px 20px; }
  .diag-option { min-height: 54px; padding: 14px; }
  .founder-card__body { padding: 18px 20px 22px; }
  .loc-row { gap: 12px; }
  .footer__bottom { align-items: flex-start; }
}

/* Phones muito pequenos: 360px */
@media (max-width: 360px) {
  :root { --header-height: 96px; }
  .header-inner { gap: 8px; }
  .brand__mark { width: 80px; height: 80px; }
  .brand__name { font-size: 1rem; }

  .hero h1 { font-size: 1.55rem; }
  /* Seal ocupa espaço valioso em telas muito pequenas */
  .hero__seal { display: none; }

  .need-card { padding: 14px; gap: 10px; }
  .need-card .nc-ico { width: 36px; height: 36px; }

  .service-card { padding: 18px 16px; }
  .auth-item { padding: 18px 14px; }
  .diag-step h3 { font-size: 1.25rem; }
}

/* ============================================================
   CB-TRAJ — gráfico de trajetória animado (seção "A empresa")
   Componente isolado: todo seletor escopado em .cb-traj
   ============================================================ */
.cb-traj{
  position:relative;border-radius:24px;padding:38px 38px 32px;
  background:linear-gradient(155deg,var(--brand-deep),var(--brand-900));
  box-shadow:0 30px 60px -28px rgba(11,46,52,.55);
  overflow:hidden;font-family:var(--sans);
}
.cb-traj::after{content:"";position:absolute;inset:14px;border-radius:14px;border:1px solid rgba(255,255,255,.09);pointer-events:none;}
.cb-traj__head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px;position:relative;z-index:2;}
.cb-traj__label{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--brand-200);}
.cb-traj__label::before{content:"";width:22px;height:1px;background:var(--brand-200);opacity:.65;}
.cb-traj__counter{text-align:right;line-height:1;}
.cb-traj__num{font-family:var(--serif);font-weight:600;font-size:54px;color:#EAF1EF;display:inline-block;}
.cb-traj__unit{font-family:var(--serif);font-size:22px;color:var(--brand-200);margin-left:4px;}
.cb-traj__sub{display:block;margin-top:6px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:rgba(225,231,243,.45);}
.cb-traj__chart{display:block;width:100%;height:auto;position:relative;z-index:1;}
.cb-traj__grid{stroke:rgba(255,255,255,.06);stroke-width:1;}
.cb-traj__axis{fill:rgba(225,231,243,.42);font-size:11px;font-family:var(--sans);letter-spacing:.04em;}
.cb-traj__reveal{clip-path:inset(0 100% 0 0);}
.cb-traj__area{fill:url(#cbTrajGrad);}
.cb-traj__line{fill:none;stroke:var(--brand-200);stroke-width:2.5;stroke-linecap:round;}
.cb-traj__dot{fill:var(--brand-200);stroke:var(--brand-900);stroke-width:3;opacity:0;transform:scale(0);transform-origin:center;transform-box:fill-box;}
.cb-traj__dot-label{fill:rgba(235,240,250,.8);font-size:11px;font-family:var(--sans);font-weight:500;opacity:0;}
.cb-traj__pulse{fill:none;stroke:var(--brand-200);stroke-width:1.5;opacity:0;transform-origin:center;transform-box:fill-box;}
.cb-traj__chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px;position:relative;z-index:2;}
.cb-traj__chip{font-size:12.5px;color:rgba(235,240,250,.78);padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);opacity:0;transform:translateY(8px);transition:transform .5s ease,opacity .5s ease,border-color .25s ease,color .25s ease;}
.cb-traj__chip:hover{border-color:var(--brand-200);color:#fff;}

/* estados de entrada — ativados quando o JS adiciona .cb-js e .cb-in */
.cb-traj.cb-js .cb-traj__head,
.cb-traj.cb-js .cb-traj__axis,
.cb-traj.cb-js .cb-traj__grid{opacity:0;transition:opacity .6s ease;}
.cb-traj.cb-js.cb-in .cb-traj__head{opacity:1;}
.cb-traj.cb-js.cb-in .cb-traj__axis{opacity:1;transition-delay:.35s;}
.cb-traj.cb-js.cb-in .cb-traj__grid{opacity:1;transition-delay:.2s;}
.cb-traj.cb-js .cb-traj__reveal{transition:clip-path 1.7s cubic-bezier(.22,.61,.36,1);transition-delay:.3s;}
.cb-traj.cb-js.cb-in .cb-traj__reveal{clip-path:inset(0 0 0 0);}
.cb-traj.cb-js.cb-in .cb-traj__dot{animation:cbPop .5s cubic-bezier(.34,1.56,.64,1) forwards;}
.cb-traj.cb-js.cb-in .cb-traj__dot[data-cb-dot="start"]{animation-delay:.45s;}
.cb-traj.cb-js.cb-in .cb-traj__dot[data-cb-dot="end"]{animation-delay:1.75s;}
.cb-traj.cb-js .cb-traj__dot-label{transition:opacity .5s ease;}
.cb-traj.cb-js.cb-in .cb-traj__dot-label[data-cb-dotlabel="start"]{opacity:1;transition-delay:.6s;}
.cb-traj.cb-js.cb-in .cb-traj__dot-label[data-cb-dotlabel="end"]{opacity:1;transition-delay:1.9s;}
.cb-traj.cb-js.cb-in .cb-traj__pulse{animation:cbPing 2.4s ease-out 2.1s infinite;}
.cb-traj.cb-js.cb-in .cb-traj__chip{opacity:1;transform:translateY(0);}
.cb-traj.cb-js.cb-in .cb-traj__chip:nth-child(1){transition-delay:1.4s;}
.cb-traj.cb-js.cb-in .cb-traj__chip:nth-child(2){transition-delay:1.55s;}
.cb-traj.cb-js.cb-in .cb-traj__chip:nth-child(3){transition-delay:1.7s;}
.cb-traj.cb-js.cb-in .cb-traj__chip:nth-child(4){transition-delay:1.85s;}
@keyframes cbPop{to{opacity:1;transform:scale(1);}}
@keyframes cbPing{0%{opacity:.7;transform:scale(1);}70%,100%{opacity:0;transform:scale(3.2);}}
@media (max-width:880px){.cb-traj__num{font-size:46px;}}
@media (prefers-reduced-motion:reduce){
  .cb-traj.cb-js .cb-traj__reveal{clip-path:none;transition:none;}
  .cb-traj.cb-js .cb-traj__head,.cb-traj.cb-js .cb-traj__axis,.cb-traj.cb-js .cb-traj__grid,
  .cb-traj.cb-js .cb-traj__dot,.cb-traj.cb-js .cb-traj__dot-label,.cb-traj.cb-js .cb-traj__chip{opacity:1;transform:none;animation:none;transition:none;}
  .cb-traj__pulse{display:none;}
}
