/* ==========================================================================
   Consulthábil — Design System
   Azul-Guardião · Ouro Institucional · Marfim
   ========================================================================== */

:root {
  /* Cores oficiais */
  --guardian:        #172236;
  --guardian-deep:   #101A2A;
  --guardian-soft:   #1E2C44;
  --gold:            #C79A2E;  /* apenas sobre fundo escuro */
  --gold-ink:        #9C7519;  /* apenas sobre fundo claro */
  --ivory:           #F7F4EC;
  --ivory-warm:      #F1EDE2;
  --sage:            #6E8B74;
  --ink:             #21201C;
  --ink-soft:        #4B4A45;
  --hairline:        rgba(33, 32, 28, .12);
  --hairline-dark:   rgba(247, 244, 236, .14);

  /* Tipografia */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Ritmo */
  --shell:      1240px;
  --header-h:   118px;   /* altura reservada para o cabeçalho fixo */
  --gutter:     clamp(20px, 5vw, 64px);
  --section-v:  clamp(64px, 9vw, 120px);
  --radius:     2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 0; letter-spacing: -.015em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ Utilities -- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-v); }
.bg-dark  { background: var(--guardian); color: rgba(247, 244, 236, .82); }
.bg-dark  h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--ivory); }
.bg-ivory { background: var(--ivory); }
.bg-warm  { background: var(--ivory-warm); }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
/* Dourado pleno sempre que o fundo for escuro (regra das duas camadas) */
.bg-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta .eyebrow { color: var(--gold); }

.h-display { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.05; }
.h-section { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; }
.h-card    { font-size: 21px; line-height: 1.35; }
.lead      { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.measure   { max-width: 62ch; }
.measure-s { max-width: 48ch; }

/* Wordmark textual — o "á" sempre em dourado */
.wordmark { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
.wordmark .a { color: var(--gold-ink); }
.bg-dark .wordmark .a { color: var(--gold); }

/* ---------------------------------------------------------------- Botão -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
  border: 1px solid transparent;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--gold    { background: var(--gold); color: var(--guardian); }
.btn--gold:hover { background: var(--ivory); }
.btn--ghost   { border-color: rgba(247,244,236,.32); color: var(--ivory); }
.btn--ghost:hover { background: var(--ivory); color: var(--guardian); border-color: var(--ivory); }
.btn--dark    { background: var(--guardian); color: var(--ivory); }
.btn--dark:hover { background: var(--gold-ink); }
.btn--outline { border-color: var(--hairline); color: var(--ink); }
.btn--outline:hover { border-color: var(--gold-ink); color: var(--gold-ink); }

/* Link com seta */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  color: var(--gold-ink);
  border-bottom: 1px solid rgba(156,117,25,.32);
  padding-bottom: 4px;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; flex: none; }
.link-arrow:hover { gap: 16px; border-color: var(--gold-ink); }
.bg-dark .link-arrow { color: var(--gold); border-color: rgba(199,154,46,.35); }

/* =========================================================== Cabeçalho == */
/* Fixo, não sticky: assim a mudança de altura ao rolar não desloca o conteúdo.
   O espaço é reservado pelo padding-top do .page-shell. */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 244, 236, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--hairline); background: rgba(247,244,236,.95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 118px; transition: height .4s var(--ease); }
.header.is-stuck .header__inner { height: 88px; }
.header__logo img { height: 88px; width: auto; transition: height .4s var(--ease); }
.header.is-stuck .header__logo img { height: 66px; }
.header__logo { flex: none; }

.nav { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 28px); }
.nav a {
  position: relative; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gold-ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--gold-ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.portal-link {
  font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-soft); padding: 9px 14px; white-space: nowrap;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.portal-link:hover { border-color: var(--gold-ink); color: var(--gold-ink); }

/* ======================================================= Drawer mobile == */
:root { --drawer-w: min(82vw, 360px); }

/* A página inteira desliza para revelar o painel.
   Sem `will-change: transform` — ele criaria bloco de contenção permanente e
   o cabeçalho fixo passaria a rolar junto com a página. */
.page-shell {
  padding-top: var(--header-h);
  transition: transform .58s cubic-bezier(.72, 0, .16, 1);
}
body.drawer-open { overflow: hidden; }
body.drawer-open .page-shell { transform: translateX(calc(var(--drawer-w) * -1)); }

/* Véu sobre o conteúdo empurrado */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(16, 26, 42, .55);
  opacity: 0; transition: opacity .45s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer-backdrop.is-visible { opacity: 1; }

/* Painel */
.drawer {
  position: fixed; top: 0; right: 0; z-index: 160;
  width: var(--drawer-w); height: 100dvh;
  background: var(--guardian-deep);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .58s cubic-bezier(.72, 0, .16, 1);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .35);
}
body.drawer-open .drawer { transform: none; }

/* Textura dourada de fundo, igual ao hero */
.drawer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 320px at 100% 0%, rgba(199,154,46,.16), transparent 62%),
              radial-gradient(360px 300px at 0% 100%, rgba(110,139,116,.12), transparent 66%);
}

.drawer__top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px 26px;
  border-bottom: 1px solid var(--hairline-dark);
}
.drawer__logo { height: 52px; width: auto; }
.drawer__close {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--ivory); border: 1px solid var(--hairline-dark); border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer__close:hover { background: var(--gold); color: var(--guardian); border-color: var(--gold); }

/* Links — entram escalonados */
.drawer__nav { position: relative; z-index: 2; padding: 12px 0; flex: 1; }
.drawer__nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 17px 24px;
  font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ivory);
  border-bottom: 1px solid rgba(247, 244, 236, .07);
  opacity: 0; transform: translateX(22px);
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              background .3s var(--ease), color .3s var(--ease);
}
body.drawer-open .drawer__nav a {
  opacity: 1; transform: none;
  transition-delay: calc(160ms + var(--i) * 55ms);
}
.drawer__nav a:hover,
.drawer__nav a:focus-visible { background: rgba(247, 244, 236, .05); color: var(--gold); }
.drawer__nav a.is-active { color: var(--gold); }
.drawer__nav a.is-active .drawer__num { color: var(--gold); }
.drawer__num {
  flex: none; width: 26px;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  color: rgba(199, 154, 46, .55);
}

/* Rodapé do painel */
.drawer__foot {
  position: relative; z-index: 2;
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline-dark);
  display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transition: opacity .4s var(--ease);
}
body.drawer-open .drawer__foot { opacity: 1; transition-delay: .5s; }
.drawer__portal {
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(247, 244, 236, .7);
}
.drawer__portal:hover { color: var(--gold); }
.drawer__foot .btn { width: 100%; }
.drawer__contato { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: rgba(247,244,236,.6); }
.drawer__contato a:hover { color: var(--gold); }
.drawer__contato span { font-size: 11.5px; letter-spacing: .1em; color: var(--gold); font-weight: 600; margin-top: 4px; }

/* Botão hambúrguer */
.burger {
  display: none; position: relative; z-index: 170;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.burger:hover { border-color: var(--gold-ink); }
.burger__box { display: block; width: 20px; height: 14px; position: relative; }
.burger__box i {
  position: absolute; left: 0; height: 1.6px; background: var(--ink);
  border-radius: 2px;
  transition: transform .42s cubic-bezier(.72,0,.16,1), width .42s var(--ease), opacity .25s var(--ease);
}
.burger__box i:nth-child(1) { top: 0;    width: 20px; }
.burger__box i:nth-child(2) { top: 6px;  width: 14px; }
.burger__box i:nth-child(3) { top: 12px; width: 20px; }
.burger:hover .burger__box i:nth-child(2) { width: 20px; }

body.drawer-open .burger__box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.drawer-open .burger__box i:nth-child(2) { opacity: 0; transform: translateX(-10px); }
body.drawer-open .burger__box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .page-shell, .drawer, .drawer__nav a, .drawer__foot { transition-duration: .01ms !important; }
  .drawer__nav a { opacity: 1; transform: none; }
}

/* ================================================================ Hero == */
.hero {
  position: relative;
  background: var(--guardian);
  color: rgba(247, 244, 236, .82);
  overflow: hidden;
  padding-block: clamp(72px, 12vw, 150px);
}
/* Textura sutil de "papel financeiro" + halo dourado */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(199,154,46,.13), transparent 62%),
    radial-gradient(700px 500px at 8% 88%, rgba(110,139,116,.11), transparent 65%);
  pointer-events: none;
}
/* Grade editorial de hairlines */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, var(--hairline-dark) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .45; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; text-align: left; }
.hero__inner > .reveal { max-width: 760px; }
.hero h1 { color: var(--ivory); }
.hero h1 .a { color: var(--gold); }
.hero__sub { margin-top: 26px; color: rgba(247,244,236,.72); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero__crc {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.hero__crc::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }

/* Selo institucional lateral */
.hero__aside { position: relative; display: grid; gap: 1px; background: var(--hairline-dark); border: 1px solid var(--hairline-dark); }
.hero__stat { background: var(--guardian-deep); padding: 34px 30px; }
.hero__stat b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 5vw, 58px); line-height: 1; color: var(--gold); letter-spacing: -.03em;
}
.hero__stat span { display: block; margin-top: 12px; font-size: 14px; line-height: 1.55; color: rgba(247,244,236,.62); }
.hero__mark {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: clamp(360px, 52vw, 820px); opacity: .09; pointer-events: none;
  filter: grayscale(1) brightness(2.4); z-index: 1;
}

/* Faixa de credenciais abaixo do hero */
.trustbar { background: var(--guardian-deep); border-top: 1px solid var(--hairline-dark); }
.trustbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 22px; }
.trustbar span { font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: rgba(247,244,236,.5); font-weight: 500; }
.trustbar span strong { color: var(--gold); font-weight: 600; }

/* ================================================ Hero de página interna = */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--guardian); color: rgba(247,244,236,.78);
  padding-block: clamp(56px, 8vw, 104px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(820px 460px at 82% 12%, rgba(199,154,46,.14), transparent 64%);
  pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, var(--hairline-dark) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%; opacity: .4; pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--ivory); font-size: clamp(32px, 4.6vw, 56px); line-height: 1.1; max-width: 20ch; }
.page-hero p  { margin-top: 24px; color: rgba(247,244,236,.7); }

/* Trilha de navegação */
.crumbs { font-size: 13px; letter-spacing: .06em; color: rgba(247,244,236,.45); margin-bottom: 20px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin-inline: 8px; opacity: .5; }

/* ============================================= Blocos de conteúdo comuns = */
/* Duas colunas: título à esquerda, texto à direita */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.split p + p { margin-top: 20px; }

/* Linha do tempo institucional */
.timeline { border-top: 1px solid var(--hairline); margin-top: 44px; }
.bg-dark .timeline { border-color: var(--hairline-dark); }
.timeline__item {
  display: grid; grid-template-columns: 140px 1fr; gap: 32px;
  padding-block: 28px; border-bottom: 1px solid var(--hairline);
  transition: background .35s var(--ease);
}
.bg-dark .timeline__item { border-color: var(--hairline-dark); }
.timeline__item:hover { background: rgba(33,32,28,.02); }
.timeline__year {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--gold-ink); line-height: 1.2; letter-spacing: -.02em;
}
.bg-dark .timeline__year { color: var(--gold); }
.timeline__body b { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.bg-dark .timeline__body b { color: var(--ivory); }
.timeline__body p { font-size: 15.5px; }

/* Cards de princípio / método */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 48px; }
.bg-dark .principles { background: var(--hairline-dark); border-color: var(--hairline-dark); }
.principle { background: var(--ivory); padding: 38px 32px 42px; transition: background .35s var(--ease); }
.bg-dark .principle { background: var(--guardian); }
.bg-dark .principle:hover { background: var(--guardian-soft); }
.principle__icon { color: var(--gold-ink); margin-bottom: 22px; }
.bg-dark .principle__icon { color: var(--gold); }
.principle__icon svg { width: 30px; height: 30px; }
.principle h3 { font-size: 20px; margin-bottom: 12px; }
.principle p { font-size: 15px; line-height: 1.65; }
.principles--4 { grid-template-columns: repeat(4, 1fr); }
.principle__num { display: block; font-size: 12px; letter-spacing: .18em; font-weight: 600; color: var(--gold-ink); margin-bottom: 18px; }
.bg-dark .principle__num { color: rgba(199,154,46,.65); }

/* ================================================= Página de Serviços == */
/* Índice âncora */
.toc { display: flex; flex-wrap: wrap; gap: 1px; background: var(--hairline-dark); border: 1px solid var(--hairline-dark); margin-top: 44px; }
.toc a {
  flex: 1 1 auto; min-width: 160px; background: var(--guardian-deep);
  padding: 20px 22px; font-size: 14.5px; font-weight: 500; color: rgba(247,244,236,.72);
  display: flex; align-items: center; gap: 12px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.toc a b { font-family: var(--serif); font-size: 13px; color: var(--gold); font-weight: 600; }
.toc a:hover { background: var(--guardian-soft); color: var(--ivory); }

/* Bloco de área de serviço */
.area { scroll-margin-top: calc(var(--header-h) + 16px); }
.area__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 76px); align-items: start; }
.area__aside { position: sticky; top: 108px; }
.area__icon { color: var(--gold-ink); margin-bottom: 20px; }
.bg-dark .area__icon { color: var(--gold); }
.area__num { font-size: 12px; letter-spacing: .2em; font-weight: 600; color: var(--gold-ink); display: block; margin-bottom: 14px; }
.bg-dark .area__num { color: rgba(199,154,46,.7); }
.area h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; }
.area__lead { margin-top: 18px; font-size: 16px; }

/* Lista de entregas em duas colunas */
.deliverables { columns: 2; column-gap: 40px; }
.deliverables li {
  break-inside: avoid; position: relative;
  padding: 13px 0 13px 28px; border-bottom: 1px solid var(--hairline);
  font-size: 15.5px; line-height: 1.55;
}
.bg-dark .deliverables li { border-color: var(--hairline-dark); }
.deliverables li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 12px; height: 1.5px; background: var(--gold-ink);
}
.bg-dark .deliverables li::before { background: var(--gold); }

@media (max-width: 1080px) {
  .area__grid { grid-template-columns: 1fr; }
  .area__aside { position: static; }
}
@media (max-width: 680px) {
  .deliverables { columns: 1; }
}

/* ============================================ Página de Utilitários === */
.tools__search { position: relative; max-width: 460px; margin-top: 32px; }
.tools__search input {
  width: 100%; padding: 15px 18px 15px 46px;
  font-family: var(--sans); font-size: 15px; color: var(--ivory);
  background: rgba(247,244,236,.06); border: 1px solid var(--hairline-dark);
  border-radius: var(--radius); transition: border-color .3s var(--ease), background .3s var(--ease);
}
.tools__search input::placeholder { color: rgba(247,244,236,.42); }
.tools__search input:focus { outline: none; border-color: var(--gold); background: rgba(247,244,236,.09); }
.tools__search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: rgba(247,244,236,.45); }

.tools__group + .tools__group { margin-top: clamp(48px, 6vw, 72px); }
.tools__head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.tools__head svg { width: 26px; height: 26px; color: var(--gold-ink); flex: none; }
.tools__head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.tools__head span { margin-left: auto; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); opacity: .6; white-space: nowrap; }
.tools__desc { margin-top: 14px; font-size: 15.5px; }

.tools__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 26px; }
.tool {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ivory); padding: 18px 20px;
  font-size: 15px; line-height: 1.45; color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.tool:hover { background: var(--guardian); color: var(--ivory); }
.tool__ext { flex: none; width: 16px; height: 16px; color: var(--gold-ink); opacity: .7; transition: color .3s var(--ease), transform .3s var(--ease); }
.tool:hover .tool__ext { color: var(--gold); transform: translate(2px, -2px); }
.tool[hidden] { display: none; }

.tools__empty { margin-top: 26px; padding: 32px; border: 1px dashed var(--hairline); text-align: center; font-size: 15px; }

@media (max-width: 1080px) { .tools__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .tools__list { grid-template-columns: 1fr; } }

/* ================================================ Página de Contato === */
.contact__grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(40px, 5vw, 72px); align-items: start; }

/* Cartão de dados de contato */
.contact__card { background: var(--guardian); color: rgba(247,244,236,.75); padding: 40px 36px; }
.contact__card h3 { color: var(--ivory); font-size: 21px; margin-bottom: 8px; }
.contact__block + .contact__block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hairline-dark); }
.contact__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.contact__block a, .contact__block address { font-size: 15.5px; line-height: 1.7; font-style: normal; display: block; }
.contact__block a:hover { color: var(--gold); }

/* Formulário */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.field label span { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 14px 16px; width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 148px; line-height: 1.6; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C7519' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-ink);
  box-shadow: 0 0 0 3px rgba(156,117,25,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #A8A69C; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #BA1A1A; }
.field__error { font-size: 13px; color: #BA1A1A; min-height: 0; }
.field:not(.has-error) .field__error { display: none; }

/* Honeypot */
.field--trap { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Verificação humana */
.captcha {
  grid-column: 1 / -1;
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
  background: var(--ivory-warm); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 20px 22px;
}
.captcha__q { display: flex; flex-direction: column; gap: 8px; }
.captcha__label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.captcha__sum {
  font-family: var(--serif); font-size: 27px; font-weight: 600;
  color: var(--ink); letter-spacing: .02em; line-height: 1;
}
.captcha__sum b { color: var(--gold-ink); }
.captcha input { max-width: 110px; text-align: center; font-size: 19px; font-weight: 600; letter-spacing: .04em; }
.captcha__hint { font-size: 13px; color: var(--ink-soft); flex: 1; min-width: 180px; }

.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 13px; color: var(--ink-soft); flex: 1; min-width: 200px; }

/* Estado de envio */
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* Mapa */
.map { border: 1px solid var(--hairline); line-height: 0; margin-top: 1px; }
.map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease); }
.map:hover iframe { filter: none; }

@media (max-width: 1080px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .form { grid-template-columns: 1fr; }
  .captcha { flex-direction: column; align-items: stretch; }
  .captcha input { max-width: none; }
  .map iframe { height: 320px; }
}

/* ------------------------------------------- SweetAlert na identidade --- */
.swal2-container { backdrop-filter: blur(3px); }
.swal-ch {
  border-radius: var(--radius) !important;
  background: var(--ivory) !important;
  border-top: 3px solid var(--gold-ink);
  padding: 40px 36px 34px !important;
  max-width: 460px;
}
.swal-ch__title {
  font-family: var(--serif) !important; font-weight: 600 !important;
  font-size: 27px !important; color: var(--ink) !important;
  letter-spacing: -.015em; padding: 0 !important; margin-bottom: 12px;
}
.swal-ch__text {
  font-family: var(--sans) !important; font-size: 16px !important;
  line-height: 1.65 !important; color: var(--ink-soft) !important;
  margin: 0 0 8px !important;
}
.swal-ch .swal2-actions { margin-top: 28px; }
.swal-ch .btn { padding: 15px 34px; }
.swal-ch__icon { border-width: 2px !important; margin-bottom: 26px !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(110,139,116,.4) !important; }
.swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--sage) !important; }
.swal2-icon.swal2-success { border-color: var(--sage) !important; color: var(--sage) !important; }
.swal2-icon.swal2-error { border-color: rgba(186,26,26,.45) !important; color: #BA1A1A !important; }
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background-color: #BA1A1A !important; }

/* Faixa de gancho de campanha */
.hook {
  position: relative; overflow: hidden;
  background: var(--guardian-deep); color: var(--ivory);
  padding-block: clamp(56px, 7vw, 92px);
}
.hook::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 380px at 20% 50%, rgba(110,139,116,.20), transparent 66%),
              radial-gradient(680px 380px at 85% 50%, rgba(199,154,46,.16), transparent 66%);
}
.hook__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hook__inner p:first-child {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; color: var(--ivory);
}
.hook__sub { margin-top: 18px; color: rgba(247,244,236,.7); }

/* Lista com marcador dourado */
.checklist li {
  position: relative; padding-left: 30px; padding-block: 12px;
  border-bottom: 1px solid var(--hairline); font-size: 16px;
}
.bg-dark .checklist li { border-color: var(--hairline-dark); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 21px;
  width: 12px; height: 1.5px; background: var(--gold-ink);
}
.bg-dark .checklist li::before { background: var(--gold); }

/* Faixa de citação institucional */
.pullquote {
  border-left: 3px solid var(--gold-ink);
  padding: 8px 0 8px 32px; margin-top: 44px;
  font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.4; color: var(--ink);
}
.bg-dark .pullquote { border-color: var(--gold); color: var(--ivory); }

/* =========================================================== Manifesto == */
.manifesto__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.manifesto p + p { margin-top: 22px; }
.manifesto__quote {
  margin-top: 40px; padding: 28px 32px;
  background: var(--ivory-warm); border-left: 3px solid var(--sage);
  font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink); font-style: italic;
}

/* ============================================================= Públicos == */
.audience__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 36px; }
.audience__item { background: var(--ivory); padding: 11px 18px; transition: background .35s var(--ease); }
.audience__item:hover { background: #fff; }
.audience__item b { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink); font-weight: 600; }
.audience__item b:not(:last-child) { margin-bottom: 8px; }
.audience__item small { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.audience__item--gold { border-top: 3px solid var(--gold-ink); }

/* ============================================================ Serviços == */
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.rule { flex: 1; min-width: 120px; height: 1px; background: linear-gradient(to right, var(--gold-ink), transparent); margin-bottom: 12px; }
.bg-dark .rule { background: linear-gradient(to right, var(--gold), transparent); }

.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--hairline-dark);
  border: 1px solid var(--hairline-dark); margin-top: 52px;
}
.service {
  position: relative; background: var(--guardian); padding: 42px 36px 46px;
  transition: background .4s var(--ease);
}
.service::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--gold); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.service:hover { background: var(--guardian-soft); }
.service:hover::after { transform: scaleY(1); transform-origin: top; }
.service__num { font-size: 12px; letter-spacing: .18em; color: rgba(199,154,46,.65); font-weight: 600; }
.service__icon { margin: 22px 0 20px; color: var(--gold); }
.service__icon svg { width: 30px; height: 30px; stroke-width: 1.4; }
.service h3 { color: var(--ivory); font-size: 21px; margin-bottom: 12px; }
.service p { font-size: 14.5px; line-height: 1.65; color: rgba(247,244,236,.66); }

/* ============================================================== Legado == */
.legacy { position: relative; overflow: hidden; }
.legacy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.legacy__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.legacy__stat { background: var(--ivory); padding: 34px 28px; }
.legacy__stat b { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--ink); letter-spacing: -.03em; font-weight: 600; }
.legacy__stat b em { font-style: normal; color: var(--gold-ink); }
.legacy__stat span { display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

/* =============================================================== CTA ==== */
.cta { position: relative; background: var(--guardian-deep); overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 50% 0%, rgba(199,154,46,.16), transparent 68%);
}
.cta__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { color: var(--ivory); max-width: 20ch; }
.cta p  { margin-top: 20px; color: rgba(247,244,236,.7); max-width: 54ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

/* ============================================================= Rodapé == */
.footer { background: var(--guardian); color: rgba(247,244,236,.66); }

/* Bloco final: crédito do desenvolvedor + voltar ao topo */
.footer__fim { display: inline-flex; align-items: center; gap: 20px; }

.to-top {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(247, 244, 236, .55);
  transition: color .35s var(--ease);
  white-space: nowrap;
}
.to-top:hover { color: var(--gold); }
.to-top__seta {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  border: 1px solid var(--hairline-dark); border-radius: 50%;
  transition: border-color .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), transform .35s var(--ease);
}
.to-top__seta svg { width: 14px; height: 14px; }
.to-top:hover .to-top__seta {
  border-color: var(--gold); background: var(--gold); color: var(--guardian);
  transform: translateY(-3px);
}
.to-top:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

/* Âncora do topo — compensa o cabeçalho fixo */
#topo { display: block; height: 0; scroll-margin-top: var(--header-h); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1.6fr; gap: 48px; padding-block: clamp(56px, 7vw, 88px); }
.footer__contato-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.footer__logo img { height: 62px; width: auto; margin-bottom: 26px; }
.footer__tag { font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ivory); }
.footer h5 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer li + li { margin-top: 11px; }
.footer a { font-size: 14.5px; transition: color .3s var(--ease); }
.footer a:hover { color: var(--gold); }
.footer address { font-style: normal; font-size: 14.5px; line-height: 1.65; }
.footer__bottom {
  border-top: 1px solid var(--hairline-dark); padding-block: 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: rgba(247,244,236,.42);
}
.footer__crc { color: var(--gold); font-weight: 600; letter-spacing: .05em; }
.footer__dev a {
  font-size: inherit; color: rgba(247,244,236,.62);
  border-bottom: 1px solid rgba(199,154,46,.3); padding-bottom: 1px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer__dev a:hover { color: var(--gold); border-color: var(--gold); }

/* WhatsApp flutuante — verde oficial #25D366 */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .32);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-float svg { position: relative; z-index: 2; }
.wa-float:hover {
  transform: translateY(-3px) scale(1.06);
  background: #1EBE5A;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
}
.wa-float:focus-visible { outline: 3px solid rgba(37,211,102,.5); outline-offset: 4px; }

/* Anéis de pulso */
.wa-float::before,
.wa-float::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; background: #25D366;
  z-index: 1; opacity: .65;
  animation: wa-pulse 2.4s cubic-bezier(.24, .6, .3, 1) infinite;
}
.wa-float::after { animation-delay: 1.2s; }
.wa-float:hover::before,
.wa-float:hover::after { animation-play-state: paused; opacity: 0; }

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: .6; }
  70%  { transform: scale(1.75); opacity: 0;  }
  100% { transform: scale(1.75); opacity: 0;  }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before, .wa-float::after { animation: none; opacity: 0; }
}

/* ========================================================== Animações == */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================== Responsivo = */
@media (max-width: 1080px) {
  :root { --header-h: 84px; }
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions .portal-link { display: none; }
  .manifesto__grid, .legacy__grid, .split { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles--4 { grid-template-columns: repeat(2, 1fr); }
  .hook__inner { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .audience__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .header__inner { height: 84px; }
  .header__logo img,
  .header.is-stuck .header__logo img { height: 60px; }
  .services__grid { grid-template-columns: 1fr; }
  .audience__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__contato-cols { grid-template-columns: 1fr; }
  /* Espaço para o botão flutuante do WhatsApp não cobrir os créditos */
  .footer__bottom { padding-bottom: 92px; gap: 18px; }
  .footer__fim { flex-direction: column; align-items: flex-start; gap: 14px; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; }
  .principles--4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__cta .btn, .cta__actions .btn { width: 100%; }
}
