/* Site institucional SELFLIGHT SMDC, LDA. Cores a partir do logótipo. */
:root {
  --primaria: #0b3d5c;
  --primaria-escura: #072a40;
  --acento: #e8a33d;
  --texto: #1b2733;
  --texto-sec: #5b6670;
  --fundo: #f5f7f9;
  --fundo-suave: #e8f1f7;
  --borda: #d7dee4;
  --cartao: #ffffff;
  --sombra: 0 2px 12px rgba(11, 61, 92, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primaria); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.largura { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 3.5rem 0; }

/* topo */
.topo { position: sticky; top: 0; z-index: 10; background: var(--fundo); border-bottom: 1px solid var(--borda); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--texto); font-weight: 700; letter-spacing: 0.02em; }
.marca img { width: 58px; height: auto; border-radius: 6px; }
.menu { display: flex; gap: 0.2rem; flex-wrap: wrap; justify-content: flex-end; }
.menu a, .menu-movel nav a { color: var(--texto); text-decoration: none; padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 0.93rem; font-weight: 500; }
.menu a:hover, .menu-movel nav a:hover { background: var(--fundo-suave); }
.menu a[aria-current="page"] { color: var(--primaria); background: var(--fundo-suave); }
.menu a.lingua, .menu-movel a.lingua { border: 1px solid var(--borda); }
.menu-movel { display: none; position: relative; }
.menu-movel summary { cursor: pointer; list-style: none; padding: 0.45rem 0.9rem; border: 1px solid var(--borda); border-radius: 6px; font-weight: 600; }
.menu-movel summary::-webkit-details-marker { display: none; }
.menu-movel nav { position: absolute; right: 0; top: calc(100% + 6px); background: var(--fundo); border: 1px solid var(--borda); border-radius: 8px; box-shadow: var(--sombra); display: flex; flex-direction: column; min-width: 220px; padding: 0.4rem; }
@media (max-width: 900px) {
  .menu { display: none; }
  .menu-movel { display: block; }
}

/* botões */
.botoes { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.botao { display: inline-block; background: var(--primaria); color: #fff; text-decoration: none; padding: 0.7rem 1.2rem; border-radius: 8px; font-weight: 600; border: 2px solid var(--primaria); }
.botao:hover { background: var(--primaria-escura); border-color: var(--primaria-escura); }
.botao.secundario { background: transparent; color: var(--primaria); }
.botao.claro { background: #fff; color: #0b3d5c; border-color: #fff; }
.botao.contorno { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.8); }

/* heróis e cabeças de página */
.heroi { background: linear-gradient(135deg, var(--fundo-suave), var(--fundo)); padding: 4.5rem 0 4rem; }
.cabeca-pagina { background: var(--fundo-suave); padding: 3rem 0 2.5rem; }
.sobretitulo { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--primaria); margin-bottom: 0.5rem; }
.destaque { font-size: 1.15rem; color: var(--texto-sec); max-width: 46rem; }

/* grelhas e cartões */
.grelha-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.grelha-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.grelha-produtos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .duas-colunas { grid-template-columns: 1fr; gap: 1.2rem; } }
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; padding: 1.3rem; box-shadow: var(--sombra); }
.cartao p:last-child { margin-bottom: 0; }
.cartao-area { text-decoration: none; color: var(--texto); display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s; }
.cartao-area:hover { transform: translateY(-3px); border-color: var(--primaria); }
.cartao-area p { color: var(--texto-sec); font-size: 0.93rem; flex: 1; }
.cartao-area .mais { color: var(--primaria); font-weight: 600; font-size: 0.9rem; }
.icone { width: 40px; height: 40px; color: var(--primaria); margin-bottom: 0.8rem; }
.faixa { background: var(--fundo-suave); }
.lista-visto { list-style: none; padding: 0; margin: 0; }
.lista-visto li { padding: 0.55rem 0 0.55rem 1.8rem; position: relative; border-bottom: 1px solid var(--borda); }
.lista-visto li::before { content: ""; position: absolute; left: 0.2rem; top: 0.95rem; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--primaria); border-bottom: 2px solid var(--primaria); transform: rotate(-45deg); }

/* produtos */
.produto { margin: 0; background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; box-shadow: var(--sombra); }
.produto img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 0.6rem; }
.produto figcaption { padding: 0.9rem 1rem; font-size: 0.9rem; color: var(--texto-sec); }
.produto figcaption strong { display: block; color: var(--texto); font-size: 1rem; }

/* ficha da empresa */
.ficha { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1rem; background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; padding: 1.3rem; }
.ficha dt { font-weight: 600; color: var(--texto-sec); }
.ficha dd { margin: 0; }
@media (max-width: 480px) { .ficha { grid-template-columns: 1fr; } .ficha dd { margin-bottom: 0.4rem; } }

/* chamada final */
.chamada { background: #0b3d5c; color: #fff; text-align: center; }
.chamada .botoes { justify-content: center; }
.chamada p { color: rgba(255, 255, 255, 0.88); }

/* rodapé */
.rodape { background: var(--fundo-suave); border-top: 1px solid var(--borda); padding: 2rem 0 1rem; font-size: 0.92rem; color: var(--texto-sec); }
.rodape-grelha { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.rodape strong { color: var(--texto); }
.pequeno { font-size: 0.8rem; }

/* ---------------------------------------------------------------- versão 2: página inicial com movimento */
.botao.grande { padding: 0.85rem 1.5rem; font-size: 1.02rem; }
.centrado { align-items: center; }
.centrado-texto { text-align: center; }
.margem-topo { margin-top: 1.5rem; }
.faixa-escura { background: linear-gradient(135deg, #072a40, #0b3d5c); color: #fff; }
.faixa-escura p, .faixa-escura li { color: rgba(255, 255, 255, 0.88); }
.faixa-escura .sobretitulo { color: #ffd38a; }
.faixa-escura .lista-visto li { border-color: rgba(255, 255, 255, 0.18); }
.faixa-escura .lista-visto li::before { border-color: #ffd38a; }
.faixa-escura .botao.claro { color: #0b3d5c; }

/* herói da página inicial */
.heroi-inicio { position: relative; overflow: hidden; padding: 5rem 0 4.5rem; }
.heroi-grelha { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .heroi-grelha { grid-template-columns: 1fr; } }
.heroi-inicio h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.rotativo { color: var(--primaria); display: inline-block; transition: opacity 0.35s, transform 0.35s; }
.rotativo.a-sair { opacity: 0; transform: translateY(8px); }
.selos { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.selos li { font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--cartao); border: 1px solid var(--borda); }
.selos li::before { content: "✓ "; color: var(--primaria); }

.ecg-fundo { position: absolute; left: 0; right: 0; bottom: 8%; width: 100%; height: 160px; opacity: 0.16; }
.ecg-traco { fill: none; stroke: var(--primaria); stroke-width: 3; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: tracar 5s linear infinite; }
@keyframes tracar { to { stroke-dashoffset: 0; } }

.heroi-montra { position: relative; min-height: 380px; }
.foto-flutuante { position: absolute; margin: 0; background: #fff; border-radius: 16px; padding: 0.6rem; box-shadow: 0 18px 40px rgba(11, 61, 92, 0.18); animation: flutuar 6s ease-in-out infinite; }
.foto-flutuante img { border-radius: 10px; object-fit: contain; width: 100%; height: 100%; }
.f1 { width: 58%; height: 270px; left: 18%; top: 20px; }
.f2 { width: 30%; height: 190px; left: 0; top: 170px; animation-delay: -2s; }
.f3 { width: 40%; height: 130px; right: 0; top: 0; animation-delay: -4s; }
.cartao-flutuante { position: absolute; background: var(--cartao); border: 1px solid var(--borda); border-radius: 12px; padding: 0.7rem 0.9rem; box-shadow: var(--sombra); font-size: 0.85rem; animation: flutuar 7s ease-in-out infinite; }
.cartao-flutuante strong { display: block; color: var(--primaria); }
.cartao-flutuante span { color: var(--texto-sec); }
.c1 { right: 2%; bottom: 40px; animation-delay: -1s; }
.c2 { left: 34%; bottom: -6px; animation-delay: -3s; }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .heroi-montra { min-height: 330px; } }

/* faixa de serviços em movimento */
.passadeira { overflow: hidden; background: var(--primaria); color: #fff; padding: 0.8rem 0; }
.passadeira-faixa { display: flex; gap: 2.5rem; width: max-content; animation: deslizar 38s linear infinite; }
.passadeira span { font-weight: 600; white-space: nowrap; }
.passadeira span::after { content: "•"; margin-left: 2.5rem; opacity: 0.6; }
@keyframes deslizar { to { transform: translateX(-50%); } }

/* monitor com ECG */
.monitor { max-width: 460px; margin: 0 auto; }
.monitor-ecra { background: #071a1f; border: 10px solid #d9e3e6; border-radius: 18px; padding: 1rem; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25); }
.monitor-topo { display: flex; justify-content: space-between; color: #7fe3a5; font: 600 0.8rem monospace; }
.ponto-vivo { width: 10px; height: 10px; border-radius: 50%; background: #7fe3a5; animation: piscar 1s infinite; }
@keyframes piscar { 50% { opacity: 0.2; } }
.monitor svg { width: 100%; height: 130px; display: block; }
.ecg-monitor { fill: none; stroke: #7fe3a5; stroke-width: 2.5; stroke-dasharray: 900; stroke-dashoffset: 900; animation: tracar-monitor 3s linear infinite; }
@keyframes tracar-monitor { to { stroke-dashoffset: 0; } }
.monitor-leituras { display: flex; justify-content: space-between; color: #e6fff0; font-family: monospace; }
.monitor-leituras small { display: block; color: #7fe3a5; }
.monitor-leituras strong { font-size: 1.6rem; }
.monitor-base { width: 30%; height: 14px; margin: 0 auto; background: #c9d6da; border-radius: 0 0 10px 10px; }

/* mosaico de fotos */
.mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.mosaico img { width: 100%; height: 200px; object-fit: contain; background: #fff; border-radius: 14px; padding: 0.5rem; border: 1px solid var(--borda); box-shadow: var(--sombra); }
.mosaico img:first-child { grid-column: span 2; height: 230px; }
.inverter > :first-child { order: 0; }

/* computador com o Luar ERP */
.portatil { max-width: 520px; margin: 0 auto; }
.portatil-ecra { background: #1d2a2e; border-radius: 14px 14px 0 0; padding: 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3); }
.alternar { position: relative; aspect-ratio: 4 / 3; background: #fff; border-radius: 4px; overflow: hidden; }
.alternar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation: alternar 12s infinite; }
.alternar img:nth-child(2) { animation-delay: 4s; }
.alternar img:nth-child(3) { animation-delay: 8s; }
@keyframes alternar { 0% { opacity: 0; } 5%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
.portatil-base { height: 16px; background: linear-gradient(#c9d3d6, #9fb0b5); border-radius: 0 0 16px 16px; width: 112%; margin-left: -6%; }

/* passos e fluxo */
.passos { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.passos li { background: var(--cartao); border: 1px solid var(--borda); border-radius: 14px; padding: 1.3rem; position: relative; box-shadow: var(--sombra); }
.passos span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primaria); color: #fff; font-weight: 700; margin-bottom: 0.7rem; }
.passos p { color: var(--texto-sec); margin: 0; font-size: 0.93rem; }
.fluxo { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; counter-reset: passo; }
.fluxo li { counter-increment: passo; background: var(--fundo-suave); border-radius: 12px; padding: 1rem; border-top: 4px solid var(--primaria); }
.fluxo li::before { content: counter(passo); font-weight: 700; color: var(--primaria); display: block; }
.fluxo strong { display: block; }
.fluxo span { color: var(--texto-sec); font-size: 0.88rem; }

/* aparecer ao descer a página */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.revelar.visivel { opacity: 1; transform: none; }
.cartao-area.revelar.visivel:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .revelar { opacity: 1; transform: none; transition: none; }
  .ecg-traco, .ecg-monitor { animation: none; stroke-dashoffset: 0; }
  .foto-flutuante, .cartao-flutuante, .passadeira-faixa, .alternar img, .ponto-vivo { animation: none; }
  .alternar img:first-child { opacity: 1; }
}

/* acertos */
.alternar img { object-fit: contain; object-position: center top; }
.rotativo { display: block; min-height: 2.4em; }
.c1 { right: 0; bottom: auto; top: 300px; }
.c2 { left: 26%; bottom: auto; top: -22px; }
@media (max-width: 900px) { .c1 { top: 270px; } .rotativo { min-height: 0; } }


/* ---------------------------------------------------------------- versão 3: aspecto do Luar ERP e mais largura */
.largura { max-width: 1320px; padding: 0 24px; }
@media (max-width: 640px) { .largura { padding: 0 16px; } }
section { padding: 4rem 0; }
body { font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* cabeçalho azul-marinho, como no Luar ERP */
.topo { background: var(--primaria); border-bottom: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }
.marca, .menu a { color: #fff; }
.marca img { background: #fff; padding: 2px; }
.menu a:hover { background: rgba(255, 255, 255, 0.12); }
.menu a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.18); }
.menu a.lingua { border-color: rgba(255, 255, 255, 0.5); }
.menu-movel summary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.menu-movel nav a { color: var(--texto); }

/* herói claro e largo */
.heroi { background: linear-gradient(180deg, #ffffff 0%, var(--fundo) 100%); }
.heroi-inicio { padding: 5.5rem 0 5rem; }
.heroi-grelha { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
@media (max-width: 900px) { .heroi-grelha { grid-template-columns: 1fr; gap: 2rem; } }
.heroi-inicio h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.destaque { max-width: 52rem; }
.cabeca-pagina { background: linear-gradient(180deg, #ffffff 0%, var(--fundo-suave) 100%); }
.faixa { background: #ffffff; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.faixa-escura { background: linear-gradient(135deg, #072a40, #0b3d5c); }
.passadeira { background: var(--primaria); color: #fff; }
.chamada { background: var(--primaria); }
.botao.claro { color: var(--primaria); }
.rodape { background: #10222f; color: rgba(255, 255, 255, 0.75); border-top: none; }
.rodape strong { color: #fff; }
.rodape a { color: #9fd0ee; }

/* grelhas aproveitam a largura */
.grelha-areas { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.grelha-3 { gap: 1.2rem; }
.duas-colunas { gap: 4rem; }
@media (max-width: 760px) { .duas-colunas { gap: 1.5rem; } }
.heroi-montra { min-height: 440px; }
.f1 { height: 320px; }
.ecg-fundo { bottom: -30px; opacity: 0.12; }
.botao.secundario { background: #fff; }
.faixa-escura .botao.contorno, .chamada .botao.contorno { background: transparent; }

/* Consentimento de cookies */
.cookies { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; display: none; justify-content: center; }
.cookies.aberto { display: flex; }
.cookies-caixa { max-width: 720px; width: 100%; background: #fff; color: var(--texto); border: 1px solid var(--borda); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); padding: 1rem 1.2rem; font-size: 0.92rem; }
.cookies-caixa p { margin: 0.4rem 0 0.8rem; }
.cookies-opcoes { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.8rem; }
.cookies-botoes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookies-botoes .botao { padding: 0.5rem 0.9rem; font-size: 0.9rem; cursor: pointer; }
.botao-ligacao { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.texto-corrido { max-width: 900px; }
.texto-corrido table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.texto-corrido th, .texto-corrido td { border-bottom: 1px solid var(--borda); padding: 0.55rem; text-align: left; vertical-align: top; }
.cookies [hidden] { display: none !important; }

/* Barra a toda a largura: marca à esquerda, menu à direita; conteúdo mais largo. */
.largura { max-width: 1600px; padding: 0 clamp(16px, 3vw, 48px); }
.topo .largura { max-width: none; padding: 0 clamp(16px, 2.5vw, 40px); }
.topo-linha { justify-content: space-between; }
.menu { margin-left: auto; }

/* Receber novidades (rodapé) */
.form-novidades { display: flex; flex-direction: column; gap: 0.45rem; max-width: 340px; width: 100%; }
.form-novidades input[type=text], .form-novidades input[type=email] { padding: 0.5rem 0.65rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; }
.form-novidades input::placeholder { color: rgba(255, 255, 255, 0.6); }
.form-novidades .campo-escondido { position: absolute; left: -9999px; }
.consentimento-novidades { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8rem; line-height: 1.4; }
.consentimento-novidades input { margin-top: 0.2rem; flex: none; }
.form-novidades .botao { cursor: pointer; border: 0; align-self: flex-start; }
.novidades-estado { font-size: 0.85rem; margin: 0; color: #fff; }
.novidades-estado.erro { color: #ffb4a8; }
