/* ============================================================================
   Consultor Contabilidade — site institucional
   MOBILE-FIRST: tudo daqui até "TELAS MAIORES" descreve o CELULAR.
   As adaptações ficam no fim, em @media (min-width), em ordem crescente:
   560 / 700 / 960 para a grade, e 1024 só para o menu horizontal.
   Tokens espelham app/static/app/css/ds.bundle.css e SiteEstatico-LP/.
   ============================================================================ */

/* Inter hospedada aqui (licença SIL OFL em fonts/LICENSE-Inter.txt). Um arquivo
   variável cobre os pesos 400–800. Sai do Google Fonts: dois domínios externos
   a menos e nenhuma transferência de IP do visitante a terceiros. O recorte
   "latin" cobre o português inteiro (Latin-1 + travessão, ×, −). */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
                 U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary-blue:        #596589;
  --primary-blue-hover:  #4A5775;
  --primary-blue-tint:   rgba(89, 101, 137, 0.10);
  --primary-blue-soft:   rgba(89, 101, 137, 0.20);
  --primary-black:       #342028;
  --secondary-gray:      #5C5D5F;

  --text-main:           var(--primary-black);
  --text-muted:          var(--secondary-gray);
  --bg-page:             #F8FAFC;
  --surface:             #FFFFFF;
  --border-ui:           rgba(52, 32, 40, 0.12);
  --border-strong:       rgba(52, 32, 40, 0.20);
  --title-color:         #1e3a8a;

  /* Azul profundo tirado da própria logo (#486084 escurecido). */
  --ink-deep:            #25324A;
  --ink-deeper:          #1E2739;
  --dark-grad:           linear-gradient(135deg, var(--ink-deep) 0%, #596589 100%);
  --dark-grad-rev:       linear-gradient(315deg, var(--ink-deep) 0%, #596589 100%);
  /* Branco puro sobre #596589 = 5,76:1 (AA). Texto secundário não desce de .86. */
  --on-dark:             #FFFFFF;
  --on-dark-muted:       rgba(255, 255, 255, 0.86);
  --on-dark-faint:       rgba(255, 255, 255, 0.62);
  --on-dark-line:        rgba(255, 255, 255, 0.16);

  --ok:    #15803d;
  --ok-bg: rgba(21, 128, 61, 0.10);
  --late:    #b91c1c;
  --late-bg: rgba(185, 28, 28, 0.10);
  /* Brilho dos efeitos: o azul da marca clareado, nunca um neon de fora. */
  --glow:  #9AA8CF;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;

  --elev-1: 0 1px 2px rgba(52,32,40,.04), 0 1px 3px rgba(52,32,40,.06);
  --elev-2: 0 4px 6px -1px rgba(52,32,40,.08), 0 2px 4px -2px rgba(52,32,40,.06);
  --elev-3: 0 20px 25px -5px rgba(52,32,40,.10), 0 8px 10px -6px rgba(52,32,40,.06);
  --elev-4: 0 32px 64px -12px rgba(52,32,40,.28);

  --bar-h: 60px;
  --wrap: 1180px;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: var(--text-main); background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------------------------------------------------------------- tipografia */
.h1 { font-size: clamp(1.95rem, 1.2rem + 3.1vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.032em; }
.h2 { font-size: clamp(1.5rem, 1.14rem + 1.6vw, 2.2rem); font-weight: 700; line-height: 1.17; letter-spacing: -.024em; }
.h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--primary-blue); }
.eyebrow--dark { color: var(--on-dark-muted); }
.lead { font-size: clamp(1.02rem, .96rem + .34vw, 1.15rem); line-height: 1.62; color: var(--text-muted); }
.lead--dark { color: var(--on-dark-muted); }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr:focus {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  width: auto; height: auto; margin: 0; padding: 11px 18px; clip: auto; overflow: visible;
  background: #fff; color: var(--primary-black); font-size: .875rem; font-weight: 600;
  border-radius: var(--r-sm); box-shadow: var(--elev-3);
}

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(50px, 6.6vw, 88px); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--dark-grad); color: var(--on-dark); position: relative; overflow: hidden; }
.section--dark-rev { background: var(--dark-grad-rev); color: var(--on-dark); position: relative; overflow: hidden; }
.section--dark > .wrap, .section--dark-rev > .wrap { position: relative; z-index: 1; }
/* Duas seções escuras seguidas viram um bloco só sem um fio separando. */
.section--dark + .section--dark,
.section--dark + .section--dark-rev,
.section--dark-rev + .section--dark { border-top: 1px solid var(--on-dark-line); }
main > section[id] { scroll-margin-top: calc(var(--bar-h) + 20px); }

.grid-tex::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  rgba(255,255,255,.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.sec-head > .h2 { margin-top: 12px; }
.sec-head > .lead { margin-top: 16px; }
.sec-head--c { text-align: center; max-width: 62ch; margin-inline: auto; }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .9375rem; letter-spacing: -.01em;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn--primary { background: var(--primary-blue); color: #fff; box-shadow: var(--elev-2); }
.btn--primary:hover { background: var(--primary-blue-hover); }
.btn--light { background: #fff; color: var(--primary-black); box-shadow: var(--elev-2); }
.btn--light:hover { background: #f1f1f4; }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text-main); }
.btn--ghost:hover { background: var(--primary-blue-tint); border-color: var(--primary-blue); }
.btn--ghost-dark { border: 1px solid var(--on-dark-line); color: var(--on-dark); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.34); }
.btn--sm { padding: 9px 17px; font-size: .875rem; }
.btn--xl { padding: 16px 30px; font-size: 1.0625rem; }
.btn-row { display: flex; flex-direction: column; gap: 11px; }
.btn-row .btn { width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-blue); outline-offset: 3px; border-radius: 6px;
}
.section--dark a:focus-visible, .section--dark-rev a:focus-visible,
.topbar a:focus-visible, .topbar button:focus-visible, .foot a:focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- icon box */
.icon-box {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--primary-blue-tint);
  border: 1px solid var(--border-ui); color: var(--primary-blue);
}
.icon-box svg { width: 19px; height: 19px; }
.icon-box--lg { width: 46px; height: 46px; flex-basis: 46px; border-radius: var(--r-md); }
.icon-box--lg svg { width: 23px; height: 23px; }
.icon-box--light { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); color: #fff; }

/* ============================================================================
   CABEÇALHO
   Escuro em todas as páginas, para ancorar a marca e manter continuidade com
   a LP. No celular o menu nasce FECHADO e o JS abre alternando .topbar--open.
   Sem JavaScript o menu não abre — a navegação de reserva é o mapa do rodapé.
   Nenhum ancestral desta barra pode receber transform, filter ou perspective:
   criaria containing block novo e o sticky pararia de grudar.
   ============================================================================ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(30, 39, 57, .9);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
          backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 1px 0 var(--on-dark-line);
}
/* Barra de leitura: CSS puro, ligada à rolagem (animation-timeline). Onde o
   navegador não tem scroll timeline ela simplesmente não aparece. */
.topbar__prog {
  display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--glow), #fff);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .topbar__prog { display: block; animation: progresso linear both; animation-timeline: scroll(root); }
  @keyframes progresso { to { transform: scaleX(1); } }
}
.topbar__row { display: flex; align-items: center; gap: 14px; min-height: var(--bar-h); }
.topbar__logo img { height: 26px; width: auto; }
.topbar__burger { margin-left: auto; padding: 8px; color: #fff; display: block; }
.topbar__burger svg { width: 24px; height: 24px; }

.topbar__nav { display: none; }
.topbar--open .topbar__nav { display: block; padding: 2px 0 18px; }
.topbar__nav > ul > li > a,
.topbar__nav .drop__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 13px 2px; font-size: .9375rem; font-weight: 500;
  color: var(--on-dark-muted); border-top: 1px solid var(--on-dark-line);
  transition: color .18s;
}
.topbar__nav a:not(.btn):hover, .topbar__nav .drop__btn:hover { color: #fff; }
.topbar__nav [aria-current="page"] { color: #fff; font-weight: 600; }
.topbar__cta { margin-top: 16px; }
.topbar__cta .btn { width: 100%; }
.topbar__cta { display: grid; gap: 10px; }
.topbar__vaga { display: flex; align-items: center; gap: 10px; padding: 11px 2px; font-size: .9375rem; font-weight: 500; color: var(--on-dark-muted); }
.topbar__vaga:hover { color: #fff; }
.topbar__vaga svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* ---------------------------------------------------------------- modal */
.modal { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; padding: 16px; }
html:not(.js) .modal:target, .modal--aberto { display: flex; }
.modal__fundo { position: absolute; inset: 0; background: rgba(30, 39, 57, .62); }
.modal__caixa { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow: auto; padding: 24px 20px 20px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--elev-4); color: var(--text-main); }
.modal__caixa .h3 { margin-top: 6px; }
.modal__d { margin-top: 6px; color: var(--text-muted); font-size: .9375rem; }
.modal__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--text-muted); }
.modal__x:hover { background: var(--primary-blue-tint); color: var(--text-main); }
.modal__x svg { width: 20px; height: 20px; }
.modal__lgpd { font-size: .8125rem; color: var(--text-muted); }
.modal .form--modal { margin-top: 16px; padding: 0; border: 0; box-shadow: none; max-width: none; }
.arquivo { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--bg-page); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); }
.arquivo__in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.arquivo__btn { flex: 0 0 auto; background: var(--surface); pointer-events: none; }
.arquivo__nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 400; color: var(--text-muted); }
.arquivo:hover { border-color: var(--primary-blue); }
.arquivo:hover .arquivo__btn { background: var(--primary-blue-tint); border-color: var(--primary-blue); }
.arquivo__in:focus-visible + .arquivo__btn { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
.modal-aberto { overflow: hidden; }

.drop { position: relative; }
.drop__btn svg { width: 15px; height: 15px; transition: rotate .2s; }
.drop__btn[aria-expanded="true"] svg { rotate: 180deg; }
.drop__list { padding: 2px 0 6px 14px; }
.drop__list a { display: flex; align-items: center; gap: 8px; padding: 10px 2px; font-size: .875rem; color: var(--on-dark-faint); transition: color .18s; }
.drop__list a:hover { color: #fff; }
.drop__list svg { width: 13px; height: 13px; flex: 0 0 13px; opacity: .75; }

/* ---------------------------------------------------------------- hero (home) */
.hero { padding-block: clamp(40px, 6.4vw, 76px) 0; }
.hero .h1 { color: #fff; }
/* O H1 carrega o termo de busca; o slogan continua grande, como <p class="h1">. */
.hero__h1 { font-size: .9375rem; font-weight: 600; line-height: 1.4; color: var(--on-dark-muted); }
.hero__slogan { margin-top: 10px; }
.hero__lead { margin-top: 18px; max-width: 60ch; }
.hero__cta { margin-top: 26px; }
.hero__meta { margin-top: 20px; font-size: .8125rem; color: var(--on-dark-muted); line-height: 1.75; }
.mark { background-image: linear-gradient(transparent 87%, rgba(255,255,255,.42) 87%); white-space: nowrap; }

.trust { margin-top: clamp(34px, 5vw, 58px); border-top: 1px solid var(--on-dark-line); display: grid; grid-template-columns: 1fr 1fr; }
.trust__i { padding: 16px 14px 20px; border-right: 1px solid var(--on-dark-line); border-bottom: 1px solid var(--on-dark-line); }
.trust__i:nth-child(2n) { border-right: 0; padding-right: 0; }
.trust__i:nth-child(2n+1) { padding-left: 0; }
.trust__i:nth-last-child(-n+2) { border-bottom: 0; }
.trust__v { font-size: clamp(1.02rem, .9rem + .55vw, 1.3rem); font-weight: 700; color: #fff; line-height: 1.25; }
.trust__l { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }

/* ---------------------------------------------------------------- topo interno */
.pagehead { background: var(--surface); border-bottom: 1px solid var(--border-ui); padding-block: 26px 32px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-muted); }
.crumb a { padding-block: 4px; }
.crumb a:hover { color: var(--primary-blue); text-decoration: underline; }
.crumb svg { width: 12px; height: 12px; opacity: .5; }
.pagehead .h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin-top: 10px; }
.pagehead .lead { margin-top: 14px; max-width: 62ch; }
.pagehead .btn-row { margin-top: 24px; }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(28px, 3.6vw, 44px); }
.card {
  background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--elev-1);
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .25s, border-color .25s;
}
.card:hover { box-shadow: var(--elev-3); border-color: var(--primary-blue-soft); }
.card__d { font-size: .9375rem; color: var(--text-muted); line-height: 1.55; }
.card ul { display: flex; flex-direction: column; gap: 7px; }
.card li { font-size: .875rem; color: var(--text-muted); padding-left: 15px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-blue); opacity: .45; }
.card__go { margin-top: auto; padding-top: 8px; align-self: flex-start; font-size: .875rem; font-weight: 600; color: var(--primary-blue); display: inline-flex; align-items: center; gap: 6px; }
.card__go svg { width: 15px; height: 15px; transition: translate .2s; }
.card__go:hover svg { translate: 3px 0; }
.card--dark { background: rgba(255,255,255,.05); border-color: var(--on-dark-line); box-shadow: none; }
.card--dark:hover { border-color: rgba(255,255,255,.32); box-shadow: none; }
/* MEDIDO: o veu rgba(255,255,255,.05) do card clareia o gradiente para
   rgb(97,109,143), e ali o texto a .86 cai para 4,30:1 — abaixo do AA.
   Dentro do card o secundario sobe para .93, que mede 4,7:1. */
.card--dark .card__d, .card--dark li { color: rgba(255, 255, 255, 0.93); }
.card--dark .h3 { color: #fff; }
.card--dark li::before { background: #fff; opacity: .5; }

.checks li { display: flex; gap: 12px; align-items: flex-start; margin-top: 15px; }
.checks svg { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 3px; color: var(--primary-blue); }
.checks p { font-size: .9375rem; color: var(--text-muted); line-height: 1.55; }
.checks strong { font-weight: 600; color: var(--text-main); }
.checks--dark svg { color: #fff; }
.checks--dark p { color: var(--on-dark-muted); }
.checks--dark strong { color: #fff; }

/* ---------------------------------------------------------------- passos */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: clamp(28px, 3.6vw, 46px); }
.step { position: relative; padding-top: 40px; }
.step::before { content: ""; display: none; position: absolute; top: 14px; left: 38px; right: -26px; height: 1px; background: var(--border-ui); }
.step:last-child::before { display: none; }
.step__n { position: absolute; top: 0; left: 0; width: 29px; height: 29px; border-radius: 50%; background: var(--primary-blue); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.step .h3 { margin-bottom: 6px; }
.step p { font-size: .9375rem; color: var(--text-muted); line-height: 1.55; }

/* etapas internas, lista numerada */
.etapas { counter-reset: et; margin-top: 22px; list-style: none; padding-left: 0; max-width: 880px; }
.etapas li { counter-increment: et; position: relative; padding-left: 40px; padding-block: 13px; border-top: 1px solid var(--border-ui); }
.etapas li:last-child { border-bottom: 1px solid var(--border-ui); }
.etapas li::before {
  content: counter(et); position: absolute; left: 0; top: 13px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-blue-tint); color: var(--primary-blue);
  display: grid; place-items: center; font-size: .6875rem; font-weight: 700;
}
.etapas strong { font-weight: 600; display: block; }
.etapas span { font-size: .875rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 840px; margin-inline: auto; margin-top: clamp(24px, 3.2vw, 38px); }
.faq-item { border-bottom: 1px solid var(--border-ui); }
.faq-item:first-child { border-top: 1px solid var(--border-ui); }
.faq-item > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px; text-align: left; font-size: 1rem; font-weight: 600; letter-spacing: -.012em; }
.faq-item > button svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--primary-blue); transition: rotate .22s; }
.faq-item > button[aria-expanded="true"] svg { rotate: 45deg; }
.faq-a { padding: 0 2px 20px; font-size: .9375rem; color: var(--text-muted); max-width: 70ch; line-height: 1.62; }
.faq-a p + p, .faq-a p + ul, .faq-a ul + p { margin-top: 10px; }
.faq-a ul { list-style: disc; padding-left: 20px; }
.faq-a li + li { margin-top: 5px; }
.faq-a a { color: var(--primary-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- contato */
.contact-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
.contact-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px; background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s; }
.contact-card:hover { border-color: var(--primary-blue-soft); box-shadow: var(--elev-2); }
.contact-card__n { font-size: .9375rem; font-weight: 600; display: block; }
.contact-card__m { font-size: .8125rem; color: var(--text-muted); display: block; margin-top: 2px; }
.mapa { width: 100%; aspect-ratio: 4 / 3; max-height: 420px; border: 0; display: block; }
/* Fachada do mapa: o iframe do Google Maps (1,75 MB de JS de terceiros, MEDIDO)
   só carrega quando a pessoa pede. Sem JS, fica o link para o Maps. */
.mapa-fachada {
  display: grid; place-items: center; min-height: 250px; padding: 30px 20px; text-align: center;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(0deg, rgba(89,101,137,.07) 0 1px, transparent 1px 32px),
                    repeating-linear-gradient(90deg, rgba(89,101,137,.07) 0 1px, transparent 1px 32px);
}
.mapa-fachada__c { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 100%; }
.mapa-fachada__t { margin-top: 10px; font-weight: 600; }
.mapa-fachada__s { font-size: .875rem; color: var(--text-muted); }
.mapa-fachada__acoes { margin-top: 16px; justify-content: center; width: 100%; }
.mapa-wrap { margin-top: 22px; border: 1px solid var(--border-ui); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }

/* ---------------------------------------------------------------- serviços: planilha
   Pasta de trabalho: barra de fórmula, uma aba por serviço, grade com letras e
   números e, ao lado, a tela do sistema com PINOS apontando o diferencial.
   Sem JS as folhas ficam empilhadas e as abas são âncoras. */
.planilha { --cinza-grade: #f1f3f7; --pino: #c2410c; scroll-margin-top: 84px; margin-top: clamp(28px, 3.6vw, 44px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--elev-3); overflow: hidden; }
.planilha__fx { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--cinza-grade); border-bottom: 1px solid var(--border-ui); }
.planilha__ref { flex: 0 0 auto; min-width: 44px; padding: 3px 8px; background: var(--surface); border: 1px solid var(--border-ui); border-radius: 6px; font-size: .75rem; font-weight: 600; text-align: center; color: var(--text-muted); }
.planilha__fx-i { flex: 0 0 auto; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; color: var(--primary-blue); }
.planilha__formula { flex: 1 1 auto; min-width: 0; padding: 3px 10px; background: var(--surface); border: 1px solid var(--border-ui); border-radius: 6px; font-family: ui-monospace, Consolas, 'Courier New', monospace; font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planilha__abas { display: flex; gap: 4px; overflow-x: auto; padding: 8px 8px 0; background: var(--cinza-grade); border-bottom: 1px solid var(--border-strong); scrollbar-width: none; }
.planilha__abas::-webkit-scrollbar { display: none; }
.planilha__aba { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; position: relative; top: 1px; padding: 10px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; font-size: .8125rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: background .2s, color .2s; }
.planilha__aba svg { width: 15px; height: 15px; flex: 0 0 15px; }
.planilha__aba:hover { color: var(--text-main); background: rgba(255,255,255,.65); }
.planilha__aba[aria-selected="true"] { background: var(--surface); color: var(--title-color); border-color: var(--border-strong); box-shadow: inset 0 3px 0 var(--primary-blue); }
.planilha__folhas, .folha__grade { min-width: 0; }
.folha { padding: 22px 16px 0; scroll-margin-top: 90px; }
.folha + .folha { border-top: 8px solid var(--cinza-grade); }
.folha__cab { display: flex; align-items: flex-start; gap: 14px; }
.folha__cab .h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); }
.folha__cab .lead { margin-top: 8px; }
.folha__corpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 20px; }
.grade-wrap { border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; }
/* celular: cada linha da planilha vira um bloco, com o número da linha à esquerda */
.grade { display: block; width: 100%; border-collapse: collapse; font-size: .9375rem; }
.grade thead { display: none; }
.grade tbody { display: block; }
.grade tr { display: grid; grid-template-columns: 34px minmax(0, 1fr); border-top: 1px solid var(--border-ui); }
.grade tbody tr:first-child { border-top: 0; }
.grade tbody tr:hover { background: var(--primary-blue-tint); }
.grade__n { grid-row: 1 / span 3; padding-top: 13px; background: var(--cinza-grade); border-right: 1px solid var(--border-ui); font-size: .6875rem; font-weight: 600; color: var(--text-muted); text-align: center; font-variant-numeric: tabular-nums; }
.grade tbody th { padding: 12px 14px 2px; text-align: left; font-weight: 600; line-height: 1.4; }
.grade__quando { padding: 0 14px 4px; font-size: .8125rem; color: var(--text-muted); }
.grade__sis { padding: 4px 14px 13px; font-size: .8125rem; line-height: 1.5; }
.grade__sis:not(.grade__sis--on) { display: none; }
.grade__sis--on { position: relative; }
/* o triângulo de "comentário" do canto da célula, como na planilha */
.grade__sis--on::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent var(--pino) transparent transparent; }
.grade__chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: var(--primary-blue-tint); color: var(--primary-blue); font-size: .6875rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.grade__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-blue); }
.grade__nota { display: block; margin-top: 5px; color: var(--text-main); }
.grade__vazio { color: var(--text-muted); }
.folha__mais { margin-top: 14px; }
.folha__dif { padding: 16px; background: var(--bg-page); border: 1px solid var(--border-ui); border-radius: var(--r-md); }
.folha__dif-t { margin-top: 6px; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -.012em; }
.browser-frame--mini { margin-top: 12px; border-color: var(--border-ui); box-shadow: var(--elev-2); }
.browser-frame--mini .browser-frame__body { padding: 12px; }
.browser-frame--mini .ctxbar { margin-bottom: 12px; }
.doc__dir { flex: 0 0 auto; text-align: right; }
.rh-card.alvo, .alvo .rh-card { overflow: visible; }
.rh-cols > .alvo { outline-offset: -3px; }
.rh-cols > .alvo > .pino { right: 4px; }
.browser-frame--mini .rh-n--money { font-size: .8125rem; }
.badge--alerta { background: rgba(194,65,12,.10); border-color: rgba(194,65,12,.28); }
.badge--alerta i { background: #c2410c; }
/* PINOS: o que o sistema faz, apontado na própria tela */
.alvo { position: relative; outline: 2px dashed rgba(194,65,12,.5); outline-offset: 3px; }
.pino { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #c2410c; color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1; }
.alvo > .pino { position: absolute; top: -10px; right: -10px; z-index: 2; box-shadow: 0 0 0 3px #fff; animation: pulsar 2.4s ease-out infinite; }
@keyframes pulsar { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(194,65,12,.5); } 70%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 11px rgba(194,65,12,0); } }
.pinos { display: grid; gap: 10px; margin-top: 16px; }
.pinos li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; line-height: 1.5; }
.pinos .pino { flex: 0 0 21px; margin-top: 1px; }
.folha__dif .frame-cap { margin-top: 12px; }
.planilha__status { display: flex; justify-content: space-between; gap: 12px; margin: 22px -16px 0; padding: 7px 16px; background: var(--cinza-grade); border-top: 1px solid var(--border-ui); font-size: .75rem; color: var(--text-muted); }
.planilha__status span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ok); }

/* ---------------------------------------------------------------- notícias */
.news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s; }
.news-card:hover { border-color: var(--primary-blue-soft); box-shadow: var(--elev-2); }
.news-card__d { font-size: .75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.news-card__t { font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }
.news-card__go { margin-top: auto; padding-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--primary-blue); display: inline-flex; align-items: center; gap: 6px; }
.news-card__go svg { width: 14px; height: 14px; }
/* Página de notícias: uma por linha, com prévia e o "Ler notícia" como botão. */
.news.news--lista { grid-template-columns: minmax(0, 1fr); max-width: 920px; margin-inline: auto; }
.news--lista .news-card { padding: 22px; gap: 10px; }
.news--lista .news-card__t { font-size: 1.125rem; }
.news-card__p { font-size: .9375rem; color: var(--text-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news--lista .news-card__go { align-self: flex-start; margin-top: 6px; padding: 10px 18px; border-radius: 999px;
  background: var(--primary-blue); color: #fff; font-size: .875rem; box-shadow: var(--elev-2); transition: background .2s; }
.news--lista .news-card:hover .news-card__go { background: var(--primary-blue-hover); }

/* ---------------------------------------------------------------- formulário de contato */
.form { position: relative; max-width: 820px; margin-top: 24px; padding: 20px; background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-lg); box-shadow: var(--elev-2); display: grid; gap: 14px; }
.form__grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.form__campo { display: grid; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--text-muted); }
.form__campo input, .form__campo textarea { width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--text-main); background: var(--bg-page); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 11px 13px; }
.form__campo textarea { resize: vertical; min-height: 130px; }
.form__campo input:focus, .form__campo textarea:focus { border-color: var(--primary-blue); outline: none; box-shadow: 0 0 0 3px var(--primary-blue-soft); }
.form__isca { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__acao { display: flex; flex-direction: column; gap: 10px; }
.form__status { font-size: .9375rem; }
.form__status--ok { color: var(--ok); }
.form__status--erro { color: var(--late); }
.restrita-acao { margin-top: 26px; align-items: center; }

/* ---------------------------------------------------------------- CTA e rodapé */
.cta-band { text-align: center; }
.cta-band__acao { margin-top: 28px; display: flex; justify-content: center; }
.cta-band__alt { margin-top: 16px; font-size: .875rem; color: var(--on-dark-muted); }
.cta-band__alt a { text-decoration: underline; text-underline-offset: 3px; }
.cta-band__alt a:hover { color: #fff; }

.foot { background: var(--ink-deeper); color: var(--on-dark-muted); padding-block: 44px 22px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.foot__about img { height: 26px; width: auto; }
.foot__about p { margin-top: 13px; font-size: .875rem; line-height: 1.6; max-width: 44ch; }
.foot__id { margin-top: 14px; font-size: .8125rem; color: var(--on-dark-faint); line-height: 1.75; }
.foot h3 { font-size: .75rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 10px; }
.foot li + li { margin-top: 2px; }
.foot li a { display: inline-block; padding-block: 5px; font-size: .875rem; transition: color .18s; }
.foot li a:hover { color: #fff; }
.foot__social { display: flex; gap: 10px; margin-top: 14px; }
.foot__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--on-dark-line); border-radius: 10px; transition: background-color .2s, border-color .2s; }
.foot__social a:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.34); }
.foot__social svg { width: 18px; height: 18px; }
.foot__base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--on-dark-line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .8125rem; color: var(--on-dark-faint); }

/* ---------------------------------------------------------------- ficha (NAP) */
/* Nome-endereco-telefone identicos em toda a rede: e o que o Google usa para
   casar o site com o perfil da empresa. Mudou aqui, muda no rodape e no JSON-LD. */
.ficha { background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-lg); box-shadow: var(--elev-2); padding: 22px; margin-top: 26px; }
.ficha dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.ficha dd { margin: 4px 0 0; font-size: .9375rem; font-weight: 500; line-height: 1.5; }
.ficha dd + dt { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-ui); }

/* ---------------------------------------------------------------- servicos */
.svc { border-top: 1px solid var(--border-ui); padding-block: clamp(26px, 3.2vw, 42px); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc__head { display: flex; align-items: flex-start; gap: 14px; }
.svc__head .h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); }
.svc__body { margin-top: 6px; }
.svc__body > div + div { margin-top: 4px; }
/* link para a página que aprofunda o serviço (Reforma, Abertura) */
.svc__mais { margin-top: 16px; }

/* ---------------------------------------------------------------- faixa */
/* Sete servicos numa grade de tres deixam um cartao sozinho na ultima
   linha. O setimo e o unico dirigido a PESSOA FISICA, entao vira faixa: a
   grade fecha em 3x2 e a distincao editorial fica explicita. */
.faixa {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 16px; padding: 22px;
  background: var(--primary-blue-tint); border: 1px solid var(--primary-blue-soft);
  border-radius: var(--r-lg);
}
.faixa__t { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.012em; }
.faixa__d { font-size: .9375rem; color: var(--text-muted); line-height: 1.55; margin-top: 4px; }
.faixa .card__go { margin-top: 0; }

/* ---------------------------------------------------------------- noticias */
.news-vazio { font-size: .9375rem; color: var(--text-muted); }

/* Ancora sob a barra fixa: sem isto o titulo alvo para atras do topbar. */
[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }

/* ============================================================================
   NOVIDADES — carrossel do topo da home
   Os slides são HTML de verdade (crawler de IA não roda JS). Sem JavaScript
   a trilha é uma faixa com scroll-snap: arrasta no dedo, rola no mouse.
   O JS só acrescenta autoplay, setas, pontos e o botão de pausa (WCAG 2.2.2).
   ============================================================================ */
.novidades { position: relative; background: var(--ink-deeper); color: #fff; }
.novidades__trilho {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.novidades__trilho::-webkit-scrollbar { display: none; }
.novidade {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  min-height: 330px; display: flex; align-items: flex-end;
}
.novidade__img, .novidade__img img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
}
/* Véu para o texto: no pior pixel (branco) ainda sobra 7,8:1. */
.novidade::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,39,57,.35) 0%, rgba(30,39,57,.86) 48%, rgba(30,39,57,.97) 100%);
}
.novidade__txt { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 36px 20px 76px; }
.novidade__tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08);
  font-size: .75rem; font-weight: 600; color: #fff; margin-bottom: 12px;
}
.novidade__t { font-size: clamp(1.45rem, 1.05rem + 1.9vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; max-width: 22ch; }
.novidade__d { margin-top: 10px; font-size: .9375rem; line-height: 1.55; color: var(--on-dark-muted); max-width: 52ch; }
.novidade .btn { margin-top: 20px; }

.novidades__ctl { position: absolute; left: 0; right: 0; bottom: 18px; pointer-events: none; }
.novidades__ctl > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.novidades__pontos, .novidades__acoes { display: flex; align-items: center; gap: 2px; pointer-events: auto; }
.novidades__acoes { gap: 8px; }
.novidades__ponto { width: 30px; height: 30px; display: grid; place-items: center; }
.novidades__pg { position: relative; display: block; width: 8px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.38); overflow: hidden; transition: width .3s; }
.novidades__ponto[aria-current="true"] .novidades__pg { width: 26px; }
.novidades__pg i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: #fff; }
.novidades__ponto[aria-current="true"] .novidades__pg i { animation: encher var(--car-ms, 6500ms) linear forwards; }
/* Parado, a barra do ponto ativo fica cheia: sinaliza "este", não "carregando". */
.novidades[data-parado="1"] .novidades__ponto[aria-current="true"] .novidades__pg i { width: 100%; animation: none; }
.novidades__b {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--on-dark-line); color: #fff; background: rgba(30,39,57,.4);
  transition: background-color .2s, border-color .2s;
}
.novidades__b:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.novidades__b svg { width: 17px; height: 17px; }
.novidades a:focus-visible, .novidades button:focus-visible { outline-color: #fff; }
@keyframes encher { from { width: 0; } to { width: 100%; } }

/* ============================================================================
   EQUIPE — os contadores no hero
   ============================================================================ */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
/* Itens de grade: sem min-width:0 a moldura e as fotos estouram a trilha. */
.hero__txt, .hero__equipe, .sis__tela { min-width: 0; }
.equipe__h { font-size: .8125rem; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 12px; }
.equipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.pessoa { margin: 0; }
.equipe--sobre { max-width: 620px; margin: clamp(26px, 3.2vw, 40px) auto 0; gap: 16px; }
.pessoa__foto {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border-radius: var(--r-md); background: var(--ink-deep);
  border: 1px solid var(--on-dark-line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.7);
}
.pessoa figcaption { margin-top: 10px; }
.pessoa__n { display: block; font-size: .875rem; font-weight: 600; color: #fff; line-height: 1.3; }
.pessoa__c { display: block; font-size: .75rem; line-height: 1.45; color: var(--on-dark-muted); }

/* ============================================================================
   O SISTEMA POR DENTRO — lista de telas + moldura com borda viva
   ============================================================================ */
.sis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: clamp(28px, 3.6vw, 44px); }
/* No celular a lista é uma faixa de cartões que corre de lado, acima da
   moldura: tocar num cartão troca a tela logo abaixo, sem rolar a página.
   position:relative faz dela o offsetParent dos cartões — o JS mede por ali. */
.sis__lista {
  position: relative; display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -20px; padding: 2px 20px 6px;
}
.sis__lista::-webkit-scrollbar { display: none; }
.sis__item {
  position: relative; flex: 0 0 84%; scroll-snap-align: start;
  padding: 16px 16px 20px; border-radius: var(--r-md);
  border: 1px solid var(--on-dark-line); background: rgba(255,255,255,.04);
  transition: background-color .25s, border-color .25s;
}
.sis__item--on { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.38); }
.sis__rot { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; color: #fff; }
.sis__rot svg { width: 15px; height: 15px; flex: 0 0 15px; }
.sis__t { margin-top: 8px; font-size: 1rem; font-weight: 600; line-height: 1.35; color: #fff; letter-spacing: -.012em; }
/* O botão da aba ocupa o cartão inteiro por um ::after — área de toque grande
   sem aninhar parágrafo dentro de <button>. */
.sis__t button { font: inherit; color: inherit; text-align: left; padding: 0; }
.sis__t button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sis__t button:focus-visible { outline: 0; }
.sis__t button:focus-visible::after { outline: 2px solid #fff; outline-offset: 2px; }
/* Branco puro: a .86 mediu 3,89:1 no cartão ativo. Hierarquia vem do tamanho e do peso. */
.sis__d { margin-top: 6px; font-size: .875rem; line-height: 1.55; color: #fff; }
.sis__pg { display: none; position: absolute; left: 16px; right: 16px; bottom: 9px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.sis[data-js] .sis__pg { display: block; }
.sis__pg i { display: block; height: 100%; width: 0; background: #fff; }
.sis__item--on .sis__pg i { animation: encher var(--sis-ms, 6000ms) linear forwards; }
.sis[data-parado="1"] .sis__pg i { animation-play-state: paused; }
.frame-cap.frame-cap--dark { color: var(--on-dark-muted); }
/* Número de registro não quebra no hífen ("051050/O-" / "4"). */
.nw { white-space: nowrap; }
.slide[hidden] { display: none; }

/* Borda viva. @property registra o ângulo para o navegador conseguir
   interpolar o conic-gradient (theosoti.com/blog/animated-gradient-borders).
   Um elemento só na página inteira: é o gesto de ousadia, o resto fica quieto. */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.glow { position: relative; isolation: isolate; padding: 1.5px; border-radius: calc(var(--r-lg) + 1.5px); }
.glow::before, .glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--ang), rgba(154,168,207,.12) 0deg, var(--glow) 55deg, #fff 90deg,
                             var(--glow) 125deg, rgba(154,168,207,.12) 180deg, rgba(154,168,207,.12) 360deg);
  animation: girar 7s linear infinite;
}
.glow::after { filter: blur(26px); opacity: .5; }
.glow > .browser-frame { border: 0; }
@keyframes girar { to { --ang: 360deg; } }

/* ---------------------------------------------------------------- moldura de sistema (portada da LP) */
.browser-frame { background: var(--surface); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); box-shadow: var(--elev-4); overflow: hidden; color: var(--text-main); }
.browser-frame__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #eef0f4; border-bottom: 1px solid var(--border-ui); }
.browser-frame__dots { display: flex; gap: 6px; flex: 0 0 auto; }
.browser-frame__dots span { width: 10px; height: 10px; border-radius: 50%; background: #d2d5dd; display: block; }
.browser-frame__url { flex: 1 1 auto; min-width: 0; text-align: center; font-size: .6875rem; color: var(--text-muted); background: #fff; border: 1px solid var(--border-ui); border-radius: 999px; padding: 4px 12px; max-width: 300px; margin-inline: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-frame__pad { flex: 0 0 46px; }
.browser-frame__body { padding: 14px; background: var(--bg-page); }
.ctxbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-sm); }
.ctxbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: 0 0 7px; }
.ctxbar__nome { font-size: .75rem; font-weight: 600; letter-spacing: -.01em; }
.ctxbar__cnpj { font-size: .6875rem; color: var(--text-muted); }
.hero__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bi-card { background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-md); padding: 13px 14px; box-shadow: var(--elev-1); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; height: 100%; }
.bi-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bi-card__t { font-size: .8125rem; font-weight: 500; line-height: 1.3; }
.bi-card__s { font-size: .6875rem; color: var(--text-muted); margin-top: 1px; }
.bi-card__v { font-size: 1.5rem; font-weight: 700; color: var(--title-color); letter-spacing: -.025em; line-height: 1.08; white-space: nowrap; }
.bi-card__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.bi-card__p { font-size: .75rem; color: var(--text-muted); }
.delta { font-size: .75rem; font-weight: 600; }
.delta--good { color: var(--ok); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 66px; margin-top: 10px; padding: 8px; background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-sm); }
.spark span { flex: 1 1 0; min-width: 0; background: var(--primary-blue-soft); border-radius: 2px 2px 0 0; display: block; }
.spark span:last-child { background: var(--primary-blue); }
.frame-cap { font-size: .75rem; color: var(--text-muted); margin-top: 10px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .6875rem; font-weight: 600; color: var(--text-main); border: 1px solid var(--border-ui); background: var(--bg-page); }
.badge i { width: 6px; height: 6px; border-radius: 50%; display: block; flex: 0 0 6px; }
.badge--ok { background: var(--ok-bg); border-color: rgba(21,128,61,.26); }
.badge--ok i { background: var(--ok); }
.phone-h { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 15px 0 8px; }
.phone-h:first-child { margin-top: 4px; }
.doc { display: flex; gap: 9px; align-items: center; padding: 9px 10px; background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-sm); }
.doc + .doc { margin-top: 7px; }
.doc__ico { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; background: var(--primary-blue-tint); color: var(--primary-blue); display: grid; place-items: center; }
.doc__ico svg { width: 14px; height: 14px; }
.doc__n { font-size: .75rem; font-weight: 600; line-height: 1.25; }
.doc__m { font-size: .625rem; color: var(--text-muted); }
.doc__dl { margin-left: auto; color: var(--primary-blue); flex: 0 0 16px; }
.doc__dl svg { width: 16px; height: 16px; }
.doc--venc { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rh-card { background: var(--surface); border: 1px solid var(--border-ui); border-radius: var(--r-sm); overflow: hidden; }
.rh-card + .rh-card { margin-top: 10px; }
.rh-card__h { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid var(--border-ui); }
.rh-card__t { font-size: .75rem; font-weight: 700; color: var(--title-color); line-height: 1.2; }
.rh-card__s { font-size: .625rem; color: var(--text-muted); }
.rh-cols, .rh-mov { display: grid; }
.rh-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-mov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rh-mov > div:nth-child(3) { border-left: 0; }
.rh-mov > div:nth-child(n+3) { border-top: 1px solid var(--border-ui); }
.rh-cols > div, .rh-mov > div { padding: 11px 8px; text-align: center; min-width: 0; }
.rh-cols > div + div, .rh-mov > div + div { border-left: 1px solid var(--border-ui); }
.rh-n { font-size: 1.25rem; font-weight: 700; color: var(--title-color); line-height: 1.1; }
.rh-n--money { font-size: clamp(.82rem, .6rem + .45vw, 1rem); white-space: nowrap; }
.rh-n--adm { color: var(--ok); }
.rh-n--dem { color: var(--late); }
.rh-n--afa { color: #8a5f03; }
.rh-l { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: 3px; }

/* ============================================================================
   CABEÇALHO INTERNO COM FOTO — duotone: a foto vira textura sob o azul da marca
   ============================================================================ */
.pagehead--foto { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-deeper); border-bottom: 0; padding-block: 30px 42px; }
.pagehead__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .38; }
/* No celular o texto ocupa a largura toda: o véu é forte por inteiro. */
.pagehead--foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,39,57,.9), rgba(37,50,74,.9)); }
.pagehead--foto .h1 { color: #fff; }
.pagehead--foto .lead { color: var(--on-dark-muted); }
.pagehead--foto .crumb { color: var(--on-dark-muted); }
.pagehead--foto .crumb a:hover { color: #fff; }
.pagehead--foto a:focus-visible { outline-color: #fff; }

/* ============================================================================
   LEITURA DE NOTÍCIA — /noticias/ler/ (o corpo vem da API do sistema)
   ============================================================================ */
.artigo-sec { padding-top: 32px; }
.artigo { max-width: 760px; }
.artigo__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8125rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.artigo__capa { width: 100%; height: auto; border-radius: var(--r-lg); margin-bottom: 28px; }
.artigo__capa[hidden] { display: none; }   /* img {display:block} venceria o hidden */
.artigo__corpo { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.artigo__corpo > * + * { margin-top: 1.1em; }
.artigo__corpo h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--title-color); margin-top: 1.8em; }
.artigo__corpo h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-top: 1.5em; }
.artigo__corpo a { color: var(--primary-blue); text-decoration: underline; text-underline-offset: 2px; }
.artigo__corpo ul, .artigo__corpo ol { padding-left: 1.4em; }
.artigo__corpo ul { list-style: disc; }
.artigo__corpo ol { list-style: decimal; }
.artigo__corpo li + li { margin-top: .4em; }
.artigo__corpo img { height: auto; border-radius: var(--r-md); }
/* Alinhamento vindo do WordPress (alignleft/right/center → curso-img-*). No celular não flutua. */
.artigo__corpo .curso-img-centro { margin-inline: auto; }
.artigo__corpo blockquote { border-left: 3px solid var(--primary-blue-soft); padding-left: 16px; color: var(--text-muted); }
.artigo__corpo table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .9375rem; }
.artigo__corpo th, .artigo__corpo td { border: 1px solid var(--border-ui); padding: 8px 10px; text-align: left; }
.artigo__corpo iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-md); }
.artigo__volta { margin-top: 40px; }
/* assinatura: o contador responsável, com o registro no CRC */
.artigo__autor a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* notícia -> página do assunto (montado no servidor) */
.artigo__rel { margin-top: 36px; padding: 18px 20px; background: var(--bg-page); border: 1px solid var(--border-ui); border-left: 3px solid var(--primary-blue); border-radius: var(--r-md); }
.artigo__rel p { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.artigo__rel ul { margin-top: 8px; display: grid; gap: 6px; }
.artigo__rel a { font-weight: 600; color: var(--primary-blue); }


/* ============================================================================
   HOLOFOTE NOS CARTÕES — o brilho segue o ponteiro (--x/--y vêm do JS).
   Técnica: frontendmasters.com/blog/css-spotlight-effect. Só com mouse:
   no toque não existe "passar por cima".
   ============================================================================ */
@media (hover: hover) and (pointer: fine) {
  .card { position: relative; isolation: isolate; }
  .card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(380px circle at var(--x, 50%) var(--y, 50%), rgba(89,101,137,.13), transparent 60%);
    opacity: 0; transition: opacity .3s;
  }
  .card--dark::before { background: radial-gradient(380px circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,.12), transparent 60%); }
  .card:hover::before { opacity: 1; }
}

/* ---------------------------------------------------------------- reveal */
.reveal--armed { opacity: 0; translate: 0 14px; }
.reveal--in { opacity: 1; translate: 0 0; transition: opacity .55s cubic-bezier(.16,1,.3,1), translate .55s cubic-bezier(.16,1,.3,1); }

/* ============================================================================
   TELAS MAIORES
   Tudo acima descreve o celular. Daqui para baixo só o que telas maiores
   ACRESCENTAM, em ordem crescente — a cascata resolve pela ordem quando a
   especificidade empata.
   ============================================================================ */

@media (min-width: 560px) {
  .form__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__acao { flex-direction: row; align-items: center; }
  .restrita-acao .btn { width: auto; }
  .artigo__corpo .curso-img-esq { float: left; max-width: 45%; margin: 4px 22px 12px 0; }
  .artigo__corpo .curso-img-dir { float: right; max-width: 45%; margin: 4px 0 12px 22px; }
  .artigo__corpo h2, .artigo__corpo h3 { clear: both; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust__i { padding: 18px 16px 22px; border-bottom: 0; }
  .trust__i:nth-child(2n) { border-right: 1px solid var(--on-dark-line); padding-right: 16px; }
  .trust__i:nth-child(2n+1) { padding-left: 16px; }
  .trust__i:first-child { padding-left: 0; }
  .trust__i:last-child { border-right: 0; padding-right: 0; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 700px) {
  .folha { padding: 28px 28px 0; }
  .planilha__status { margin-inline: -28px; padding-inline: 28px; }
  .grade { display: table; table-layout: fixed; }
  .grade thead { display: table-header-group; }
  .grade tbody { display: table-row-group; }
  .grade tr { display: table-row; }
  .grade th, .grade td { display: table-cell; padding: 11px 14px; border-top: 1px solid var(--border-ui); border-left: 1px solid var(--border-ui); vertical-align: top; text-align: left; }
  .grade tr > :first-child { border-left: 0; }
  .grade thead tr:first-child > * { border-top: 0; }
  .grade__letras td { padding: 4px; background: var(--cinza-grade); font-size: .6875rem; font-weight: 600; color: var(--text-muted); text-align: center; }
  .grade thead th { background: #f8fafc; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
  .grade .grade__n { padding: 11px 0; text-align: center; background: var(--cinza-grade); }
  .grade__letras td:first-child { width: 40px; }
  .grade__letras td:nth-child(2) { width: 34%; }
  .grade__letras td:nth-child(3) { width: 21%; }
  .grade__sis:not(.grade__sis--on) { display: table-cell; }
  .form { padding: 28px; }
  .modal__caixa { padding: 30px 28px 26px; }
  .news--lista .news-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center; }
  .news--lista .news-card > :not(.news-card__go) { grid-column: 1; }
  .news--lista .news-card__go { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
  .wrap { padding-inline: 24px; }
  .ficha { padding: 26px; }
  .mapa { aspect-ratio: 21 / 9; }
  .novidade { min-height: 360px; align-items: center; }
  .novidade::before { background: linear-gradient(90deg, rgba(30,39,57,.96) 0%, rgba(30,39,57,.86) 42%, rgba(30,39,57,.38) 100%); }
  .novidade__txt { padding: 44px 24px 72px; }
  .equipe { gap: 14px; }
  .faixa { flex-direction: row; align-items: center; gap: 20px; padding: 24px 26px; }
  .faixa__c { flex: 1 1 auto; }
  .faixa .card__go { flex: 0 0 auto; }
  .svc__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 34px; align-items: start; }
  .svc__body > div + div { margin-top: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 26px; }
  .step::before { display: block; }
  .step:nth-child(2n)::before, .step:last-child::before { display: none; }
  .etapas li { padding-block: 15px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .folha__corpo { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); align-items: start; gap: 28px; }
  :root { --bar-h: 68px; }
  .topbar__logo img { height: 30px; }

  .svc__head { gap: 18px; }
  .svc__body { margin-left: 64px; gap: 0 48px; }
  .svc__mais { margin-left: 64px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Sempre 4 passos (a virada). Em 3 colunas sobrava um sozinho na 2a linha. */
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
  .step::before { display: block; right: -26px; }
  .step:nth-child(4n)::before, .step:last-child::before { display: none; }
  .news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .foot__about { grid-column: auto; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 60px); align-items: center; }
  .hero .h1 { max-width: 17ch; }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 52px; align-items: end; }
  /* a figura é filha única do <li>: o degrau vai no <li> */
  .equipe > li:nth-child(2) { margin-bottom: 26px; }
  .sis { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 40px; align-items: center; }
  .sis__lista { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .sis__item { flex: none; }
  .pagehead--foto { padding-block: 44px 56px; }
  .pagehead--foto::before { background: linear-gradient(100deg, rgba(30,39,57,.97) 0%, rgba(37,50,74,.9) 48%, rgba(89,101,137,.5) 100%); }
  .hero__lead { max-width: 54ch; }
  .hero__meta { max-width: 60ch; }
  .split--wide-l { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

/* MENU HORIZONTAL — só a partir de 1024px. MEDIDO: a 960px "Abrir empresa",
   "Migrar de contador" e "Área Restrita" quebravam em duas linhas dentro do
   link. "Trabalhe conosco" escrito (09/10) comeu a folga: até 1280px o respiro
   cai para 7px e o WhatsApp vira só ícone; o resto da folga é da fonte de reserva.
   O JS (site.js, DESKTOP) usa este mesmo número para o submenu. */
@media (min-width: 1024px) {
  .topbar__burger { display: none; }
  .topbar > .wrap { display: flex; align-items: center; gap: 18px; }
  .topbar__row { flex: 0 0 auto; }
  .topbar__nav,
  .topbar--open .topbar__nav { display: flex; align-items: center; margin-left: auto; padding: 0; }
  .topbar__nav > ul { display: flex; align-items: center; gap: 2px; }
  .topbar__nav > ul > li > a,
  .topbar__nav .drop__btn { width: auto; padding: 8px 7px; border-top: 0; border-radius: 999px; font-size: .875rem; white-space: nowrap; }
  .topbar__nav > ul > li > a:not(.btn):hover,
  .topbar__nav .drop__btn:hover { background: rgba(255,255,255,.09); }
  .topbar__nav [aria-current="page"] { background: rgba(255,255,255,.12); }
  .topbar__cta { margin: 0 0 0 6px; }
  .topbar__cta .btn { width: auto; }
  .topbar__cta { display: flex; align-items: center; gap: 4px; }
  .topbar__vaga { gap: 6px; padding: 7px 11px; font-size: .8125rem; font-weight: 600; color: var(--on-dark); white-space: nowrap; border: 1px solid var(--on-dark-line); border-radius: 999px; }
  .topbar__vaga:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.34); }
  .topbar__vaga svg { width: 17px; height: 17px; flex-basis: 17px; }
  /* Entre 1024 e 1280 não cabe "WhatsApp" escrito ao lado de "Trabalhe conosco": fica o ícone. */
  .topbar__cta .btn { width: 38px; height: 38px; padding: 0; }
  .topbar__wa-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  /* O submenu vira flutuante. Nasce fechado pelo atributo hidden, que o JS
     alterna — no celular ele é uma lista empilhada e hidden não se aplica. */
  .drop__list {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 5;
    min-width: 252px; padding: 8px;
    background: var(--ink-deeper); border: 1px solid var(--on-dark-line);
    border-radius: var(--r-md); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  }
  .drop__list a { padding: 10px 11px; border-radius: 8px; }
  .drop__list a:hover { background: rgba(255,255,255,.09); }
  .drop__list[hidden] { display: none; }
}

/* ============================================================================
   A11Y — movimento reduzido (WCAG 2.3.3)
   ============================================================================ */
@media (min-width: 1280px) {
  .topbar__nav > ul > li > a, .topbar__nav .drop__btn { padding-inline: 9px; }
  .topbar__vaga { gap: 7px; padding: 8px 14px; font-size: .875rem; }
  .topbar__cta .btn { width: auto; height: auto; padding: 9px 17px; }
  .topbar__wa-t { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar__prog { display: none !important; }
  .glow::before, .glow::after { animation: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
