/* Contabilidade Gestão Estratégica — visual sóbrio: grafite, marfim e dourado */
:root {
  --ink: #12151a;
  --ink-2: #1c2128;
  --ink-3: #2a313b;
  --paper: #f7f5f0;
  --white: #ffffff;
  --line: #e4dfd3;
  --text: #2b2f36;
  --muted: #666d78;
  --gold: #b08d57;
  --gold-2: #c9a96b;
  --ok: #2f7d57;
  --err: #a3372f;
  --radius: 10px;
  --sombra: 0 10px 30px rgba(18, 21, 26, .08);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* aviso */
.aviso { background: var(--gold); color: #1a1408; font-size: .9rem; padding: 8px 0; text-align: center; }
.aviso a { font-weight: 600; }

/* topo */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(18, 21, 26, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #2a313b; }
.topo .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.marca img { height: 40px; width: auto; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca-texto strong { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .08em; font-weight: 600; }
.marca-texto span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { color: #d8dce2; text-decoration: none; font-size: .92rem; letter-spacing: .02em; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.ativo { color: #fff; border-color: var(--gold); }
.menu .btn { border-bottom: 0; }
.menu-btn { display: none; background: none; border: 1px solid #3a424e; color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 1rem; cursor: pointer; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 6px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); transition: .2s; }
.btn-ouro { background: var(--gold); color: #17120a; }
.btn-ouro:hover { background: var(--gold-2); }
.btn-escuro { background: var(--ink); color: #fff; }
.btn-escuro:hover { background: var(--ink-3); }
.btn-borda { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-borda:hover { background: rgba(255,255,255,.1); }
.btn-borda-escura { border-color: var(--ink); color: var(--ink); }
.btn-borda-escura:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-perigo { background: transparent; border-color: var(--err); color: var(--err); }
.btn-perigo:hover { background: var(--err); color: #fff; }

/* hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,21,26,.96) 30%, rgba(18,21,26,.55)); }
.hero .container { position: relative; z-index: 1; padding: clamp(70px, 11vw, 140px) 0; max-width: 1160px; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .4em; }
.hero p { max-width: 58ch; color: #d3d8df; font-size: 1.12rem; }
.hero .acoes { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.selo { display: inline-block; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; border-top: 1px solid var(--gold); padding-top: 10px; }
.cabeca-pagina { background: var(--ink); color: #fff; padding: 64px 0 56px; border-bottom: 3px solid var(--gold); }
.cabeca-pagina h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .25em; }
.cabeca-pagina p { color: #c4cad3; max-width: 62ch; margin: 0; }
.migalha { font-size: .8rem; color: var(--gold-2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.migalha a { text-decoration: none; }

/* seções */
.secao { padding: clamp(56px, 8vw, 96px) 0; }
.secao.branca { background: var(--white); }
.secao.escura { background: var(--ink); color: #c8ced7; }
.secao.escura h2, .secao.escura h3 { color: #fff; }
.titulo-sec { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.titulo-sec .selo { border-top: 0; padding-top: 0; }
.titulo-sec p { color: var(--muted); }
.escura .titulo-sec p { color: #aab1bc; }
.grade { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.dividido { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.foto { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4/3; background: var(--ink-3); }
.foto img { width: 100%; height: 100%; object-fit: cover; }

.cartao { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: .25s; }
.cartao:hover { box-shadow: var(--sombra); transform: translateY(-3px); border-color: var(--gold-2); }
.cartao h3 { font-size: 1.35rem; }
.cartao p { color: var(--muted); font-size: .95rem; margin: 0; }
.escura .cartao { background: var(--ink-2); border-color: #2d343f; }
.escura .cartao p { color: #a9b0bb; }
.icone { width: 46px; height: 46px; border-radius: 10px; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 18px; }
.icone svg { width: 24px; height: 24px; }
.escura .icone { background: #262d37; }
.lista-check { list-style: none; padding: 0; margin: 14px 0 0; }
.lista-check li { padding-left: 24px; position: relative; font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--gold); }

.numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.numeros strong { display: block; font-family: var(--serif); font-size: 3rem; color: var(--gold-2); line-height: 1; }
.numeros span { font-size: .85rem; letter-spacing: .06em; color: #b3bac4; }

.passos { counter-reset: p; }
.passo { position: relative; padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.passo::before { counter-increment: p; content: "0" counter(p); font-family: var(--serif); font-size: 2.2rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; }
.passo h3 { font-size: 1.2rem; }
.passo p { color: var(--muted); font-size: .92rem; margin: 0; }

.faixa-cta { background: linear-gradient(110deg, var(--ink) 40%, var(--ink-3)); color: #fff; padding: 56px 0; border-top: 3px solid var(--gold); }
.faixa-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.faixa-cta h2 { color: #fff; margin: 0 0 .2em; }
.faixa-cta p { color: #c0c7d1; margin: 0; }

.depo { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.5; }
.depo-autor { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.depo-autor strong { color: var(--ink); display: block; font-size: .95rem; }
.aspas { font-family: var(--serif); font-size: 3.4rem; color: var(--gold); line-height: .6; }

.equipe .foto { aspect-ratio: 1; border-radius: 50%; width: 150px; margin: 0 auto 16px; }
.equipe .cartao { text-align: center; }

.vencimento { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vencimento:last-child { border-bottom: 0; }
.vencimento .dia { flex: none; width: 58px; text-align: center; background: var(--ink); color: #fff; border-radius: 8px; padding: 6px 0; line-height: 1.1; }
.vencimento .dia b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-2); }
.vencimento .dia small { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.vencimento strong { color: var(--ink); display: block; }
.vencimento small { color: var(--muted); }
.tag { display: inline-block; font-size: .7rem; padding: 2px 9px; border-radius: 20px; background: #efe9db; color: #6c5629; letter-spacing: .04em; }
.tag.Trabalhista { background: #e3ecf5; color: #28506f; }
.tag.Municipal { background: #e6f1e9; color: #2b5b3d; }
.tag.Estadual { background: #f3e5e3; color: #7b3a33; }

/* calendário */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-nav h2 { margin: 0; }
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 6px 0; font-weight: 600; }
.cal td { background: var(--white); border: 1px solid var(--line); border-radius: 8px; height: 104px; vertical-align: top; padding: 6px 8px; font-size: .8rem; }
.cal td.vazio { background: transparent; border: 0; }
.cal td.fim { background: #faf8f3; }
.cal td.hoje { border: 2px solid var(--gold); }
.cal .n { font-weight: 700; color: var(--ink); font-size: .85rem; }
.cal .ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 4px; background: #efe9db; color: #5d4a22; font-size: .72rem; line-height: 1.3; }
.cal .ev.Trabalhista { background: #e3ecf5; color: #28506f; }
.cal .ev.Municipal { background: #e6f1e9; color: #2b5b3d; }
.cal .ev.Estadual { background: #f3e5e3; color: #7b3a33; }
.nota { font-size: .85rem; color: var(--muted); }

/* formulários */
.form-caixa { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sombra); }
.linha { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { margin-bottom: 18px; }
.f label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.campo, .f select, .f textarea, .f input[type=text], .f input[type=email], .f input[type=url], .f input[type=number], .f input[type=date], .f input[type=password] { width: 100%; padding: 12px 14px; border: 1px solid #cfc9ba; border-radius: 7px; font: inherit; background: #fff; color: var(--text); }
.campo:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.f .erro, .erro { color: var(--err); font-size: .82rem; margin-top: 4px; list-style: none; padding: 0; }
.f .ajuda { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.f-check input { margin-top: 5px; }
.f-check label { font-weight: 400 !important; font-size: .88rem !important; margin: 0 !important; }
.opcoes ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opcoes li label { display: flex; gap: 8px; font-weight: 400; font-size: .9rem; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; margin: 0; }
.opcoes li label:hover { border-color: var(--gold); }
input[name=website] { position: absolute; left: -9999px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.msgs { list-style: none; padding: 0; margin: 0 0 22px; }
.msgs li { padding: 13px 18px; border-radius: 8px; margin-bottom: 8px; font-size: .93rem; }
.msgs .success { background: #e5f2ea; color: #1f5a3c; border: 1px solid #b9dcc8; }
.msgs .error { background: #f8e6e4; color: #7a2a24; border: 1px solid #e5b9b4; }

/* resultado simulador */
.resultado { margin-top: 34px; }
.tabela { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tabela th, .tabela td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.tabela th { background: #f0ece1; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tabela tr.melhor td { background: #fbf5e6; }
.tabela .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabela tr:last-child td { border-bottom: 0; }
.destaque { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 30px; margin-bottom: 20px; border-left: 4px solid var(--gold); }
.destaque strong { color: var(--gold-2); font-family: var(--serif); font-size: 1.6rem; }
.aviso-legal { font-size: .82rem; color: var(--muted); margin-top: 14px; border-left: 3px solid var(--line); padding-left: 12px; }
.barra { height: 8px; border-radius: 4px; background: #ece7da; margin-top: 8px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--gold); }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* blog */
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.post-card:hover { box-shadow: var(--sombra); transform: translateY(-3px); }
.post-card .foto { border-radius: 0; box-shadow: none; aspect-ratio: 16/9; }
.post-card .corpo { padding: 4px 24px 24px; }
.post-card h3 { font-size: 1.3rem; }
.post-card small { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.artigo p { font-size: 1.08rem; color: #33383f; }

/* rodapé */
.rodape { background: var(--ink); color: #aab1bc; padding: 64px 0 0; font-size: .92rem; }
.rodape h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.rodape a { text-decoration: none; display: block; padding: 3px 0; }
.rodape a:hover { color: var(--gold-2); }
.rodape .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.rodape .logo-rodape img { width: 230px; margin-bottom: 16px; }
.rodape .base { border-top: 1px solid #2a313b; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; }

.zap { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25a65b; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: .2s; }
.zap:hover { transform: scale(1.08); }
.zap svg { width: 30px; height: 30px; fill: #fff; }

.cookies { position: fixed; left: 20px; right: 90px; bottom: 20px; z-index: 70; background: var(--ink); color: #d8dce2; padding: 16px 20px; border-radius: 10px; font-size: .86rem; display: none; gap: 18px; align-items: center; justify-content: space-between; box-shadow: 0 8px 30px rgba(0,0,0,.35); max-width: 760px; }
.cookies.ativo { display: flex; }
.cookies a { color: var(--gold-2); }

.dividido > * { min-width: 0; }
.cal-layout { grid-template-columns: 2fr 1fr; }

/* área restrita */
.restrita { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 40px 0 80px; }
.lateral { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-self: start; position: sticky; top: 96px; }
.lateral a { display: block; padding: 10px 14px; border-radius: 7px; text-decoration: none; font-size: .92rem; color: var(--text); }
.lateral a:hover, .lateral a.ativo { background: var(--ink); color: #fff; }
.lateral form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.indicador { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.indicador strong { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); display: block; line-height: 1; }
.indicador span { font-size: .82rem; color: var(--muted); }
.login-caixa { max-width: 420px; margin: 70px auto; }
.bar-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.bar-topo h1 { font-size: 2rem; margin: 0; }
.tabela-rolar { overflow-x: auto; }
.pill { font-size: .72rem; padding: 2px 10px; border-radius: 20px; }
.pill.sim { background: #e5f2ea; color: #1f5a3c; }
.pill.nao { background: #f1ece0; color: #7a6a43; }
.inline { display: inline; }

@media (max-width: 980px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .numeros { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .rodape .cols { grid-template-columns: 1fr 1fr; }
  .restrita { grid-template-columns: 1fr; }
  .lateral { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .lateral form { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 20px; gap: 8px; border-bottom: 1px solid #2a313b; }
  .menu.aberto { display: flex; }
  .menu a { width: 100%; padding: 10px 0; }
  .dividido, .g2, .linha, .opcoes ul { grid-template-columns: 1fr; }
  .cal td { height: 76px; padding: 4px; font-size: .7rem; }
  .cal .ev { font-size: .62rem; padding: 1px 3px; }
  .cookies { right: 20px; bottom: 90px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .g3, .g4, .rodape .cols { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .marca-texto span { display: none; }
}
@media print { .topo, .rodape, .zap, .cookies, .aviso { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 820px) {
  .cal-nav h2 { font-size: 1.3rem; text-align: center; }
  .cal-nav .btn { white-space: nowrap; padding: 8px 10px; }
}
