/* =====================================================================
   BELLA ARTE DIGITAL — folha de estilos
   Paleta (Identidade Visual Bella Arte):
   Índigo #1E2352 · Terracota #B8472F · Açafrão #E8A33D · Verde folha #2B7549 · Marfim #F6F0E4
   Títulos: Fraunces · Texto: DM Sans (fontes alojadas localmente, licença OFL)
   ===================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo: #1E2352;
  --terracota: #B8472F;
  --acafrao: #E8A33D;
  --verde: #2B7549;
  --marfim: #F6F0E4;
  --creme: #FFFBF2;            /* fundo do logótipo original */
  --tinta: #1E2352;
  --tinta-suave: #4b4f73;
  --linha: #ddd3bf;
  --erro: #9b2c1a;
  --acento: var(--terracota);
  --titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --texto: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --raio: 14px;
  --largura: 1120px;
}
.area-multiservice { --acento: var(--verde); }
.area-microcredito { --acento: var(--terracota); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--marfim);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--terracota); }
:focus-visible { outline: 3px solid var(--acafrao); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--titulos); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
code { background: #ece4d2; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

.contentor { width: min(100% - 2.5rem, var(--largura)); margin-inline: auto; }
.estreito { max-width: 760px; }
.estreito-largo { max-width: 860px; }
.muito-estreito { max-width: 480px; }
.centro { text-align: center; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.saltar:focus { left: 0; }
.sobretitulo { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--acento); margin-bottom: 0.6rem; }
.lead { font-size: 1.2rem; color: var(--tinta-suave); max-width: 46ch; }
.centro .lead { margin-inline: auto; }
.texto-grande { font-size: 1.2rem; }
.discreto { color: var(--tinta-suave); font-size: 0.92rem; }
.nota { font-size: 0.95rem; margin: 0.8rem 0 0; }
.mais { margin-top: 1.4rem; font-weight: 600; }

/* ---------- Topo ---------- */
.topo { background: var(--creme); border-bottom: 1px solid var(--linha); position: sticky; top: 0; z-index: 20; }
.topo-linha { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.marca img { height: 60px; width: auto; }
.area-nome { font-family: var(--titulos); font-style: italic; font-size: 1.05rem; color: var(--acento); border-left: 2px solid var(--acafrao); padding-left: 0.9rem; }
.menu { margin-left: auto; }
.menu ul { list-style: none; display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.menu a:not(.botao), .ligacao-botao { display: inline-block; padding: 0.5rem 0.75rem; text-decoration: none; font-weight: 500; border-radius: 8px; font-size: 0.98rem; }
.menu a:not(.botao):hover { background: var(--marfim); color: var(--indigo); }
.menu a[aria-current="page"]:not(.botao) { box-shadow: inset 0 -3px 0 var(--acafrao); border-radius: 0; }
.menu-botao { display: none; margin-left: auto; background: none; border: 2px solid var(--indigo); color: var(--indigo); border-radius: 8px; padding: 0.45rem 0.9rem; font: inherit; font-weight: 600; cursor: pointer; }
.form-sair { margin: 0; }
.ligacao-botao { background: none; border: 0; color: var(--indigo); font: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ligacao-botao:hover { color: var(--terracota); }

@media (max-width: 860px) {
  .menu-botao { display: inline-block; }
  .com-js .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--creme); border-bottom: 1px solid var(--linha); padding: 0.8rem 1.25rem 1.2rem; }
  .com-js .menu.aberto { display: block; }
  .menu { width: 100%; }
  .menu ul { flex-direction: column; align-items: stretch; }
  .topo-linha { flex-wrap: wrap; }
  html:not(.com-js) .menu-botao { display: none; }
  .marca img { height: 50px; }
}

/* ---------- Botões ---------- */
.botao {
  display: inline-block; background: var(--indigo); color: #fff; border: 2px solid var(--indigo);
  padding: 0.7rem 1.3rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; line-height: 1.2; text-align: center; transition: background-color .15s, color .15s, border-color .15s;
}
.botao:hover { background: #2c3270; border-color: #2c3270; color: #fff; }
.botao-destaque { background: var(--terracota); border-color: var(--terracota); }
.botao-destaque:hover { background: #9c3a25; border-color: #9c3a25; }
.botao-contorno { background: transparent; color: var(--indigo); }
.botao-contorno:hover { background: var(--indigo); color: #fff; }
.botao-whatsapp { background: var(--verde); border-color: var(--verde); }
.botao-whatsapp:hover { background: #215c39; border-color: #215c39; }
.accoes { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.4rem; }
.accoes-centro { justify-content: center; }
.accoes-coluna { flex-direction: column; align-items: stretch; }
.accoes-linha { display: flex; gap: 0.3rem; flex-wrap: wrap; margin: 0; }
.accoes-linha .ligacao-botao { padding: 0.2rem 0.4rem; font-size: 0.9rem; }

/* ---------- Secções ---------- */
.seccao { padding: clamp(2.2rem, 6vw, 4.5rem) 0; }
.seccao-clara { background: var(--creme); border-block: 1px solid var(--linha); }
.cabeca-pagina { padding-bottom: 1.5rem; }
.cabeca-pagina h1 { margin-bottom: 0; }
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.grelha-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.grelha-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
@media (max-width: 960px) { .grelha-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .duas-colunas, .grelha-2, .grelha-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Herói ---------- */
.heroi { padding: clamp(2.5rem, 7vw, 5.5rem) 0; overflow: hidden; }
.heroi-grelha { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.heroi h1 { max-width: 16ch; }
.heroi-portal h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.heroi-portal h1::after { content: ""; display: block; width: 96px; height: 5px; background: var(--acafrao); margin-top: 1.4rem; border-radius: 3px; }
.heroi-logo { justify-self: center; width: min(100%, 340px); border-radius: var(--raio); border: 1px solid var(--linha); }
.petala { justify-self: end; width: min(100%, 300px); aspect-ratio: 1; border-radius: 100% 0 0 0; }
.petala-verde { background: var(--verde); box-shadow: 26px 26px 0 var(--acafrao); }
.petala-acafrao { background: var(--acafrao); box-shadow: 26px 26px 0 var(--terracota); }
@media (max-width: 720px) {
  .heroi-grelha { grid-template-columns: minmax(0, 1fr); }
  .petala { display: none; }
  .heroi-logo { width: 220px; justify-self: start; }
}

/* ---------- Cartões ---------- */
.cartao { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.3rem; }
.cartao-grande { padding: clamp(1.3rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.seccao-clara .cartao { background: var(--marfim); }
.cartao h3 { margin-bottom: 0.6rem; }
.cartao ul { margin: 0; padding-left: 1.1rem; }
.cartao li { margin-bottom: 0.35rem; }
.cartao-limpeza { border-top: 6px solid var(--verde); }
.cartao-ambiente { border-top: 6px solid var(--acafrao); }
.cartao-tecnica { border-top: 6px solid var(--terracota); }
.cartao-informatica { border-top: 6px solid var(--indigo); }
.vazio { text-align: center; }
.vazio-texto { color: var(--tinta-suave); }

/* Página inicial: as duas empresas */
.empresas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
@media (max-width: 800px) { .empresas { grid-template-columns: minmax(0, 1fr); } }
.empresa { background: var(--creme); border: 1px solid var(--linha); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.4rem); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.empresa::before { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 120px; border-radius: 0 0 0 100%; }
.empresa-ms { --acento: var(--verde); }
.empresa-ms::before { background: var(--verde); }
.empresa-mc { --acento: var(--terracota); }
.empresa-mc::before { background: var(--acafrao); }
.empresa h3 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 14ch; }
.empresa .accoes { margin-top: auto; padding-top: 1.2rem; }
.nota-demo { background: #fbecc9; border-left: 4px solid var(--acafrao); padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.95rem; }

/* ---------- Dados e listas ---------- */
.dados { margin: 1rem 0 0; display: grid; gap: 0.45rem; }
.dados > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.8rem; }
.dados-largos > div { grid-template-columns: 8.5rem minmax(0, 1fr); padding: 0.45rem 0; border-bottom: 1px solid var(--linha); }
.dados-largos > div:last-child { border-bottom: 0; }
.dados dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tinta-suave); padding-top: 0.2rem; }
.dados dd { margin: 0; overflow-wrap: anywhere; }
.por-configurar { background: #fbecc9; border: 1px dashed #b98a2e; color: #5c4208; padding: 0.05rem 0.4rem; border-radius: 4px; font-size: 0.88em; font-style: normal; }
.por-configurar-bloco { display: block; padding: 0.9rem 1rem; }

.lista-valores, .lista-locais { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.lista-valores li { background: var(--creme); border: 1px solid var(--linha); border-left: 6px solid var(--acafrao); padding: 0.8rem 1rem; border-radius: 8px; font-weight: 500; }
.lista-locais { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lista-locais li { background: var(--indigo); color: #fff; padding: 0.9rem 1rem; border-radius: 10px; font-family: var(--titulos); font-size: 1.1rem; }
.lista-servicos { list-style: none; margin: 0; padding: 0; counter-reset: servico; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.4rem; }
@media (max-width: 720px) { .lista-servicos { grid-template-columns: minmax(0, 1fr); } }
.lista-servicos li { counter-increment: servico; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 0.8rem; padding: 0.9rem 0; border-bottom: 1px solid var(--linha); }
.lista-servicos li::before { content: counter(servico, decimal-leading-zero); grid-row: 1 / 3; font-family: var(--titulos); font-size: 1.6rem; color: var(--acento); line-height: 1; }
.servico-informatica { --acento: var(--indigo); }
.servico-tecnica { --acento: var(--terracota); }
.servico-ambiente { --acento: #a87214; }
.servico-limpeza { --acento: var(--verde); }
.servico-grupo { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tinta-suave); }
.servico-nome { font-weight: 500; }

.passos { list-style: none; margin: 1.6rem 0 0; padding: 0; counter-reset: passo; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) { .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .passos { grid-template-columns: minmax(0, 1fr); } }
.passos li { counter-increment: passo; background: var(--marfim); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.3rem; }
.passos li::before { content: counter(passo); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 100% 0 100% 100%; background: var(--indigo); color: #fff; font-family: var(--titulos); font-size: 1.2rem; margin-bottom: 0.9rem; }
.passos p { margin: 0; color: var(--tinta-suave); }

.chamada { background: var(--indigo); color: #fff; }
.chamada h2 { color: #fff; margin: 0; }
.chamada p { margin: 0; color: #d9dbee; }
.chamada-linha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
@media (max-width: 800px) { .chamada-linha { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Avisos ---------- */
.avisos { padding-top: 1.2rem; }
.aviso { padding: 0.85rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; overflow-wrap: anywhere; }
.aviso-sucesso { background: #e3f1e8; border-color: #9cc7ac; color: #17432a; }
.aviso-erro { background: #fbe6e1; border-color: #e0a497; color: #6e1d10; }
.aviso-aviso { background: #fbecc9; border-color: #dcb764; color: #5c4208; }
.aviso-segredo { background: var(--indigo); border-color: var(--indigo); color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95rem; }
.faixa-demo { background: var(--acafrao); color: #2a1d02; padding: 0.6rem 0; font-size: 0.95rem; }

/* ---------- Formulários ---------- */
.formulario { display: grid; gap: 1.1rem; }
.grelha-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 640px) { .grelha-campos { grid-template-columns: minmax(0, 1fr); } }
.campo label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.opcional { font-weight: 400; color: var(--tinta-suave); font-size: 0.9em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="search"], input[type="file"], select, textarea {
  width: 100%; font: inherit; color: var(--tinta); background: #fff; border: 1.5px solid #9a93a8; border-radius: 10px; padding: 0.65rem 0.8rem; min-height: 46px;
}
textarea { resize: vertical; min-height: 6rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--acafrao); outline-offset: 1px; border-color: var(--indigo); }
.ajuda { font-size: 0.9rem; color: var(--tinta-suave); margin: 0.3rem 0 0; }
.erro-campo { font-size: 0.92rem; color: var(--erro); font-weight: 600; margin: 0.3rem 0 0; }
.campo-erro input, .campo-erro select, .campo-erro textarea { border-color: var(--erro); border-width: 2px; }
.campo-caixa label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; font-weight: 400; align-items: start; }
.campo-caixa input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--indigo); }
.formulario > .botao { justify-self: start; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulario-linha { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--linha); }
.filtros { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1.2rem 0; }
.filtros .campo { min-width: 200px; flex: 0 1 280px; }

/* ---------- Tabelas ---------- */
.tabela-caixa { overflow-x: auto; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); margin-bottom: 1.2rem; }
.tabela { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.tabela th, .tabela td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tinta-suave); background: var(--creme); white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela-compacta { font-size: 0.88rem; }
.tabela-compacta td { overflow-wrap: anywhere; }
.paginacao { display: flex; gap: 1.2rem; align-items: center; justify-content: center; margin: 1rem 0; }

.etiqueta { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.etiqueta-submetido, .etiqueta-novo { background: #e4e6f5; color: #1E2352; border-color: #b9bde0; }
.etiqueta-em_analise, .etiqueta-contactado { background: #fbecc9; color: #5c4208; border-color: #dcb764; }
.etiqueta-documentacao_pendente { background: #f7dcd4; color: #6e1d10; border-color: #e0a497; }
.etiqueta-aprovado { background: #dcefe3; color: #17432a; border-color: #9cc7ac; }
.etiqueta-recusado, .etiqueta-fechado { background: #ebe6dc; color: #4a4436; border-color: #c9c0ad; }
.etiqueta-demo { background: var(--acafrao); color: #2a1d02; }

/* ---------- Conta e gestão ---------- */
.cabeca-linha { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.cabeca-linha h1 { margin-bottom: 0.2rem; font-size: clamp(1.8rem, 4vw, 2.6rem); overflow-wrap: anywhere; }
.cabeca-linha .accoes { margin-top: 0; }
.estado-grande .etiqueta { font-size: 1rem; padding: 0.35rem 1rem; }
.grelha-detalhe { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .grelha-detalhe { grid-template-columns: minmax(0, 1fr); } }
.lista-documentos { list-style: none; margin: 0; padding: 0; }
.lista-documentos li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linha); overflow-wrap: anywhere; }
.mensagens { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.7rem; }
.mensagem { background: var(--marfim); border-radius: 12px 12px 12px 2px; padding: 0.8rem 1rem; max-width: 92%; overflow-wrap: anywhere; }
.mensagem p { margin: 0; }
.mensagem-minha { background: #e4e6f5; justify-self: end; border-radius: 12px 12px 2px 12px; }
.mensagem-interna { background: #fbecc9; border: 1px dashed #b98a2e; }
.mensagem-autor { font-size: 0.8rem; color: var(--tinta-suave); margin-bottom: 0.2rem !important; }
.cronologia { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 2px solid var(--linha); }
.cronologia li { position: relative; padding-bottom: 1.1rem; }
.cronologia li::before { content: ""; position: absolute; left: calc(-1.2rem - 7px); top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--acafrao); border: 2px solid var(--creme); }
.cronologia p { margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1rem 0 2.2rem; }
.indicador { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 1.1rem; text-decoration: none; display: grid; }
.indicador:hover { border-color: var(--indigo); }
.indicador-numero { font-family: var(--titulos); font-size: 2.4rem; line-height: 1; }
.indicador-rotulo { color: var(--tinta-suave); font-size: 0.92rem; margin-top: 0.3rem; }
.separadores { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.6rem; }
.separadores a { padding: 0.4rem 0.9rem; border: 1.5px solid var(--indigo); border-radius: 999px; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.separadores a[aria-current="page"], .separadores a:hover { background: var(--indigo); color: #fff; }
.lista-pendencias { padding-left: 1.2rem; }
.prosa h2 { margin-top: 1.8em; font-size: 1.4rem; }
h2[id] { scroll-margin-top: 96px; }
.estreito-largo > h2 { margin-top: 2.2rem; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--indigo); color: #d9dbee; margin-top: auto; font-size: 0.95rem; }
.rodape-grelha { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2rem 3.5rem; padding-block: 3rem 2rem; }
.rodape-grelha > div { flex: 0 1 240px; min-width: 0; }
.rodape-grelha > .rodape-marca { flex: 0 0 auto; margin-left: auto; text-align: right; }
@media (max-width: 800px) { .rodape-grelha { flex-direction: column; } .rodape-grelha > div { flex: none; width: 100%; } .rodape-grelha > .rodape-marca { margin-left: 0; text-align: left; } }
.rodape h2 { font-family: var(--texto); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acafrao); margin-bottom: 0.8rem; font-weight: 600; }
.rodape a { color: #fff; }
.rodape a:hover { color: var(--acafrao); }
.rodape-marca img { width: 170px; display: inline-block; }
.rodape-slogan { font-family: var(--titulos); font-style: italic; font-size: 1.15rem; color: #fff; margin-top: 0.6rem; }
.rodape-dados { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; overflow-wrap: anywhere; }
.rodape-fim { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-block: 1rem; }
.rodape-fim p { margin: 0; font-size: 0.88rem; }

/* ---------- Movimento e interacção ---------- */
.progresso { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progresso span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--verde), var(--acafrao), var(--terracota)); }
.topo { transition: box-shadow .25s ease, background-color .25s ease; }
.topo-linha { transition: min-height .25s ease; }
.topo .marca img { transition: height .25s ease, width .25s ease; }
.rolado .topo { box-shadow: 0 6px 24px rgba(30, 35, 82, 0.12); background: rgba(255, 251, 242, 0.94); backdrop-filter: blur(8px); }
.rolado .topo-linha { min-height: 60px; }

.topo-voltar { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; background: var(--indigo); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 0.7rem 1rem; border-radius: 999px; box-shadow: 0 8px 22px rgba(30, 35, 82, 0.28); }
.topo-voltar::before { content: "↑ "; }
.topo-voltar:hover { background: var(--terracota); color: #fff; }
.topo-voltar[hidden] { display: none; }

/* Topo das páginas: formas da marca em movimento */
.heroi { position: relative; isolation: isolate; }
.heroi .contentor { position: relative; z-index: 1; }
.formas { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.forma { position: absolute; display: block; opacity: 0.16; animation: flutuar 9s ease-in-out infinite; }
.forma-1 { width: 220px; height: 220px; left: -70px; top: -60px; background: var(--terracota); border-radius: 0 0 100% 0; }
.forma-2 { width: 130px; height: 130px; right: 6%; top: 8%; background: var(--acafrao); border-radius: 0 0 0 100%; animation-duration: 11s; animation-delay: -3s; opacity: 0.28; }
.forma-3 { width: 170px; height: 170px; right: -50px; bottom: -60px; background: var(--verde); border-radius: 100% 0 0 0; animation-duration: 13s; animation-delay: -6s; }
.forma-4 { width: 90px; height: 90px; left: 42%; bottom: 6%; background: var(--indigo); border-radius: 0 100% 0 0; animation-duration: 10s; animation-delay: -2s; opacity: 0.1; }
@keyframes flutuar { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(14px, -18px) rotate(8deg); } }

.heroi .sobretitulo, .heroi h1, .heroi .lead, .heroi .accoes { animation: subir .7s cubic-bezier(.2, .7, .2, 1) both; }
.heroi h1 { animation-delay: .08s; }
.heroi .lead { animation-delay: .18s; }
.heroi .accoes { animation-delay: .28s; }
.heroi-logo, .heroi .petala { animation: aparecer .9s cubic-bezier(.2, .7, .2, 1) .15s both, balancar 7s ease-in-out 1.2s infinite; }
.heroi-logo { background: var(--creme); box-shadow: 0 24px 60px rgba(30, 35, 82, 0.16); }
@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: scale(.9) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes balancar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* «brilho» com reflexo a passar */
.brilho { background: linear-gradient(100deg, var(--indigo) 0%, var(--indigo) 38%, var(--acafrao) 50%, var(--indigo) 62%, var(--indigo) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: reflexo 4.5s ease-in-out infinite; }
@keyframes reflexo { 0%, 25% { background-position: 100% 0; } 75%, 100% { background-position: 0 0; } }

/* Faixa de serviços em movimento */
.faixa-servicos { background: var(--indigo); overflow: hidden; padding: 0.95rem 0; }
.faixa-pista { display: flex; gap: 2.6rem; width: max-content; animation: deslizar 60s linear infinite; }
.faixa-servicos:hover .faixa-pista { animation-play-state: paused; }
.faixa-item { color: #fff; font-family: var(--titulos); font-size: 1.05rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.7rem; }
.faixa-item::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 100% 0 0 0; background: var(--acafrao); }
.faixa-limpeza::before { background: #58b07c; }
.faixa-tecnica::before { background: #e0745c; }
.faixa-informatica::before { background: var(--marfim); }
@keyframes deslizar { to { transform: translateX(-50%); } }

/* Números */
.numeros { background: var(--indigo); color: #fff; padding: 2.2rem 0; }
.numeros-grelha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.numeros p { margin: 0; display: grid; gap: 0.2rem; }
.numeros strong { font-family: var(--titulos); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--acafrao); font-variant-numeric: tabular-nums; }
.numeros span { color: #d9dbee; font-size: 0.95rem; }
@media (max-width: 600px) { .numeros-grelha { grid-template-columns: minmax(0, 1fr); } }

/* Cartões e botões respondem ao toque */
.cartao, .empresa, .passos li, .lista-valores li, .lista-locais li { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cartao:hover, .passos li:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30, 35, 82, 0.12); }
.empresa:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(30, 35, 82, 0.16); border-color: var(--acento); }
.empresa::before { transition: width .4s cubic-bezier(.2, .7, .2, 1), height .4s cubic-bezier(.2, .7, .2, 1); }
.empresa:hover::before { width: 170px; height: 170px; }
.lista-valores li:hover { transform: translateX(8px); border-left-color: var(--terracota); }
.lista-locais li:hover { transform: translateY(-4px); background: var(--terracota); }
.lista-servicos li { transition: background-color .2s ease, padding-left .2s ease; border-radius: 8px; }
.lista-servicos li:hover { background: var(--creme); padding-left: 0.6rem; }
.botao { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.botao:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 35, 82, 0.2); }
.botao:active { transform: translateY(0); box-shadow: none; }
.botao-seta::after { content: "→"; display: inline-block; margin-left: 0.5rem; transition: transform .2s ease; }
.botao-seta:hover::after { transform: translateX(5px); }
.mais a { text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset .2s ease, color .2s ease; }
.mais a:hover { text-underline-offset: 9px; color: var(--terracota); }
.chamada { position: relative; overflow: hidden; }
.chamada::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 0 0 0 100%; background: var(--acafrao); opacity: 0.18; animation: flutuar 10s ease-in-out infinite; }
.chamada .contentor { position: relative; z-index: 1; }

/* Filtro de serviços */
.filtros { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.filtros[hidden] { display: none; }
.filtro { font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; padding: 0.55rem 1.1rem; border-radius: 999px; border: 2px solid var(--indigo); background: transparent; color: var(--indigo); transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.filtro:hover { transform: translateY(-2px); }
.filtro.activo { background: var(--indigo); color: #fff; }
.lista-servicos li[hidden] { display: none; }
.lista-servicos li.a-entrar { animation: subir .45s cubic-bezier(.2, .7, .2, 1) both; }

/* Revelar ao rolar (só com JavaScript e movimento permitido) */
.com-movimento .revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.com-movimento .revelar.visivel { opacity: 1; transform: none; }

/* ---------- Ecrã de entrada ---------- */
.entrada { position: fixed; inset: 0; z-index: 200; background: var(--creme); display: grid; place-content: center; justify-items: center; gap: 1.2rem; transition: opacity .35s ease; }
.entrada[hidden] { display: none; }
.entrada.a-sair { opacity: 0; pointer-events: none; }
.entrada-simbolo { width: 120px; height: 120px; animation: rodar 1.1s cubic-bezier(.5, .1, .3, 1) infinite; }
.entrada-texto { font-family: var(--titulos); font-size: 1.6rem; margin: 0; color: var(--indigo); }
@keyframes rodar { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .forma, .heroi .sobretitulo, .heroi h1, .heroi .lead, .heroi .accoes, .heroi-logo, .heroi .petala, .brilho, .faixa-pista, .chamada::after, .lista-servicos li.a-entrar { animation: none !important; }
  .brilho { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
  .faixa-pista { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 0.6rem; padding-inline: 1rem; }
  .cartao, .empresa, .passos li, .lista-valores li, .lista-locais li, .botao, .filtro, .formas, .topo, .topo-linha { transition: none !important; }
  .cartao:hover, .empresa:hover, .passos li:hover, .lista-valores li:hover, .lista-locais li:hover, .botao:hover, .filtro:hover { transform: none; }
  html { scroll-behavior: auto; }
  .entrada-simbolo { animation: none; }
  .entrada, .botao { transition: none; }
}

@media print {
  .topo, .rodape, .faixa-demo, .menu-botao, .entrada, .progresso, .topo-voltar, .formas, .faixa-servicos, .filtros { display: none !important; }
  body { background: #fff; }
}
