/* ALFAPOLO DATACENTER — folha de estilo única (CSS puro, sem framework).
   Cores da marca: navy #002155 · azul #0692e0 · azul claro #2bb0f5. Tema claro e escuro (prefers-color-scheme). */

:root {
  --navy: #002155;
  --azul: #0670c0;
  --azul-vivo: #0692e0;
  --fundo: #f5f8fc;
  --fundo-alt: #e9f0f8;
  --superficie: #ffffff;
  --texto: #0b1b33;
  --texto-suave: #4a5b73;
  --borda: #d3deeb;
  --titulo: #002155;
  --link: #0565b0;
  --foco: #f2a900;
  --sombra: 0 1px 2px rgb(0 33 85 / 6%), 0 8px 24px rgb(0 33 85 / 8%);
  --raio: 12px;
  --largura: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #07111f;
    --fundo-alt: #0b1a2e;
    --superficie: #0f2038;
    --texto: #e4ecf6;
    --texto-suave: #a9b8d0;
    --borda: #22385a;
    --titulo: #ffffff;
    --link: #5cc2ff;
    --azul: #2bb0f5;
    --sombra: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 1.0625rem/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
.ic { flex: none; vertical-align: middle; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--titulo); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.pular:focus { top: 12px; }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--superficie) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borda); }
.topo-in { max-width: var(--largura); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { display: block; line-height: 0; }
.marca img { width: 196px; height: auto; }
.menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 11px; border-radius: 8px; color: var(--texto); text-decoration: none; font-size: .95rem; font-weight: 500; }
.menu a:hover { background: var(--fundo-alt); }
.menu a[aria-current="page"] { color: var(--azul); background: var(--fundo-alt); font-weight: 650; }
@media (max-width: 1060px) {
  .topo-in { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 16px 6px; }
  .marca img { width: 170px; }
  .menu ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px 4px; }
  .menu ul::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; padding: 7px 10px; }
}

/* Migalhas */
.migalhas { max-width: var(--largura); margin: 0 auto; padding: 14px 20px 0; font-size: .9rem; color: var(--texto-suave); }
.migalhas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.migalhas li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--texto-suave); }
.migalhas a { color: var(--texto-suave); }

/* Estrutura das seções */
.secao { padding: clamp(48px, 6vw, 84px) 0; }
.secao-alt { background: var(--fundo-alt); }
.secao-in { max-width: var(--largura); margin: 0 auto; padding: 0 20px; }
.estreito { max-width: 820px; }
.secao-intro { color: var(--texto-suave); max-width: 760px; margin-bottom: 2em; }
.duas-colunas { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 960px) { .duas-colunas { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.lead { font-size: 1.18rem; color: var(--texto-suave); }

/* Abertura */
.abertura { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); background:
  radial-gradient(1200px 500px at 85% -10%, rgb(6 146 224 / 14%), transparent 60%),
  linear-gradient(180deg, var(--superficie), var(--fundo)); }
.abertura-in { max-width: var(--largura); margin: 0 auto; padding: 0 20px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .abertura-in { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.sobretitulo { display: inline-block; font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); margin-bottom: 1.1em; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Botões: discretos, sem animação chamativa */
.botao { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; background: var(--navy); color: #fff; border: 1px solid var(--navy); font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; }
.botao:hover { background: #00316f; }
.botao-leve { background: transparent; color: var(--titulo); border-color: var(--borda); }
.botao-leve:hover { background: var(--fundo-alt); }
@media (prefers-color-scheme: dark) { .botao { background: #0b5cb0; border-color: #0b5cb0; } .botao:hover { background: #0a6ad0; } .botao-leve { background: transparent; border-color: var(--borda); } }
.link-whats { display: inline-flex; align-items: center; gap: 8px; color: var(--texto-suave); }

/* Fotos */
.foto { margin: 0; }
.foto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); box-shadow: var(--sombra); background: var(--fundo-alt); }
.foto figcaption { font-size: .78rem; color: var(--texto-suave); margin-top: 8px; }
.foto figcaption a { color: inherit; }
.galeria { display: grid; gap: 24px; padding-bottom: 56px; }
@media (min-width: 720px) { .galeria { grid-template-columns: 1fr 1fr; } }

/* Pilares */
.pilares { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pilares li { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px; display: flex; flex-direction: column; }
.pilares p { color: var(--texto-suave); font-size: .98rem; }
.pilares .mais { margin: auto 0 0; font-size: .95rem; }
.pilar-ic { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--fundo-alt); color: var(--azul); margin-bottom: 14px; }

/* Listas */
.lista-check { list-style: none; padding: 0; margin: 0 0 1.2em; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .6em; }
.lista-check .ic { color: var(--azul-vivo); margin-top: .2em; }
.lista-check.colunas { display: grid; gap: 4px 32px; }
@media (min-width: 760px) { .lista-check.colunas { grid-template-columns: 1fr 1fr; } }
.passos { padding-left: 1.3em; }
.passos li { margin-bottom: .7em; padding-left: .3em; }

/* Artigos (páginas de conteúdo) */
.artigo-topo { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); }
.texto h2 { margin-top: 1.8em; display: flex; align-items: center; gap: 10px; }
.texto > h2:first-child, .texto section:first-child h2 { margin-top: 0; }
.texto h2 .ic { color: var(--azul-vivo); }
.texto section { scroll-margin-top: 90px; }
.indice { margin-top: 1.6em; background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px 20px; }
.indice h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: .5em; }
.indice ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Tabelas */
.tabela-rolagem { overflow-x: auto; margin: 0 0 1.4em; border-radius: var(--raio); border: 1px solid var(--borda); background: var(--superficie); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
caption { text-align: left; font-weight: 650; color: var(--titulo); padding: 14px 16px 10px; }
th, td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--borda); vertical-align: top; }
thead th { background: var(--fundo-alt); font-size: .85rem; letter-spacing: .02em; color: var(--texto-suave); font-weight: 650; white-space: nowrap; }
tbody th { font-weight: 650; color: var(--titulo); white-space: nowrap; }
.planos td { white-space: nowrap; }
.preco { font-weight: 700; color: var(--titulo); }
.grade-adicionais { display: grid; gap: 20px; }
.compacta { border: 1px solid var(--borda); border-radius: var(--raio); background: var(--superficie); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.compacta tr:first-child th { border-top: 1px solid var(--borda); }

/* Perguntas */
details { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--titulo); list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--borda); margin-bottom: 12px; }
details p { color: var(--texto-suave); }

/* Convite (fecho das páginas) */
.convite { padding: 0 0 clamp(48px, 6vw, 80px); }
.convite-in { max-width: var(--largura); margin: 0 auto; padding: 32px 20px; border-top: 1px solid var(--borda); text-align: center; }
.convite-in h2 { font-size: 1.4rem; }
.convite-in p { color: var(--texto-suave); max-width: 640px; margin-left: auto; margin-right: auto; }
.convite-acoes { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }

/* Formulário */
.contato { align-items: start; padding-bottom: 64px; }
.formulario { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: clamp(20px, 3vw, 32px); }
.formulario label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--titulo); }
.opcional { font-weight: 400; color: var(--texto-suave); font-size: .9em; }
input, select, textarea { width: 100%; font: inherit; color: var(--texto); background: var(--fundo); border: 1px solid var(--borda); border-radius: 10px; padding: 11px 13px; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--azul-vivo) 45%, transparent); border-color: var(--azul-vivo); }
[aria-invalid="true"] { border-color: #c62828; }
.erro-campo { display: block; color: #c62828; font-size: .9rem; margin-top: 4px; }
@media (prefers-color-scheme: dark) { .erro-campo { color: #ff8a80; } }
.aviso-erro { background: #fdecea; color: #8a1c1c; border-radius: 10px; padding: 12px 14px; }
.nota { font-size: .9rem; color: var(--texto-suave); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contato-lado h2 { font-size: 1.1rem; margin-top: 1.4em; }
.contato-lado h2:first-child { margin-top: 0; }
.obrigado { text-align: center; padding: 56px 20px 72px; }
.obrigado-ic { color: var(--azul-vivo); }

/* Rodapé */
.rodape { background: #001233; color: #c6d3e6; padding: 56px 0 28px; }
.rodape-in { max-width: var(--largura); margin: 0 auto; padding: 0 20px; display: grid; gap: 32px; }
@media (min-width: 860px) { .rodape-in { grid-template-columns: 1.6fr 1fr 1fr; } }
.rodape-col img { width: 210px; margin-bottom: 14px; }
.rodape h2 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin-bottom: 6px; }
.rodape a { color: #c6d3e6; }
.rodape a:hover { color: #fff; }
.rodape-copy { max-width: var(--largura); margin: 36px auto 8px; padding: 18px 20px 0; border-top: 1px solid rgb(255 255 255 / 12%); font-size: .85rem; color: #8ea2c0; text-align: center; }

/* Créditos padrão do grupo (mesmas regras do <style> do includes/creditos-rodape.php, movidas para cá) */
@media (max-width: 720px) {
  .creditos-rodape .cr-colunas { flex-direction: column !important; align-items: center !important; gap: 22px !important; }
  .creditos-rodape .cr-coluna { flex: none !important; max-width: 100% !important; padding: 0 !important; align-items: center !important; text-align: center !important; border-left: 0 !important; }
  .creditos-rodape .cr-linha { justify-content: center !important; }
}

/* Botão flutuante do WhatsApp (mesmo modelo da Cruzeiro Engenharia); abre a janela prévia */
.whats-flutuante { position: fixed; right: 20px; bottom: 24px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; box-shadow: 0 4px 12px rgb(37 211 102 / 40%); transition: transform .2s, box-shadow .2s; }
.whats-flutuante:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgb(37 211 102 / 50%); color: #fff; }
@media (max-width: 720px) {
  .whats-flutuante { right: 14px; bottom: 16px; }
  .rodape { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { .whats-flutuante { transition: none; } .whats-flutuante:hover { transform: none; } }

/* Janela prévia do WhatsApp: mesmo modelo da Cruzeiro, nas cores da marca (JS em assets/js/wa-modal.js) */
.wam { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: rgb(6 10 18 / 82%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.wam.aberta { display: flex; }
.wam-caixa { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #002155; border: 1px solid rgb(255 255 255 / 14%); border-top: 4px solid #0692e0; border-radius: 14px; padding: 28px 26px 22px; box-shadow: 0 24px 70px rgb(0 0 0 / 60%); }
.wam-fechar { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; background: none; color: rgb(255 255 255 / 70%); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.wam-fechar:hover { color: #fff; }
.wam h2 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: 0 30px 6px 0; line-height: 1.25; }
.wam h2 span { color: #5cc2ff; }
.wam-sub { color: rgb(255 255 255 / 75%); font-size: .9rem; line-height: 1.5; margin: 0 0 16px; }
.wam-campo { margin: 0 0 12px; }
.wam input, .wam textarea { width: 100%; background: #fff; color: #1a1a1a; border: 1px solid rgb(255 255 255 / 18%); border-radius: 10px; padding: 13px 14px; font-size: 1rem; font-family: inherit; box-sizing: border-box; }
.wam input:focus, .wam textarea:focus { outline: 0; border-color: #0692e0; box-shadow: 0 0 0 3px rgb(6 146 224 / 35%); }
.wam textarea { resize: vertical; min-height: 84px; }
.wam-enviar { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border: 0; border-radius: 10px; background: #25d366; color: #06301a; font-size: 1rem; font-weight: 800; font-family: inherit; cursor: pointer; transition: .2s; }
.wam-enviar:hover { background: #1da851; color: #fff; }
.wam-enviar:disabled { opacity: .65; cursor: default; }
.wam-erro { color: #ffb4a8; font-size: .86rem; margin: 0 0 10px; }
.wam-nota { color: rgb(255 255 255 / 50%); font-size: .76rem; text-align: center; margin: 12px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@media print {
  .topo, .rodape, .whats-flutuante, .convite, .wam { display: none !important; }
  body { background: #fff; color: #000; }
}
