/* =========================================================
   CMORITZ ENGENHARIA — sistema de design do site
   v2 (29/11/2026): cantos arredondados, sombras suaves,
   abertura escura com traçado de rede, cartões numerados.
   Paleta da marca: azul #243BFF · azul claro #429CFF · quase preto #090C0C · cinza #373B42
   ========================================================= */

:root {
  --azul: #243BFF;
  --azul-escuro: #1A2DD6;
  --azul-claro: #429CFF;
  --azul-suave: #EEF3FF;
  --marinho: #0B1530;
  --marinho-2: #13224A;
  --preto: #0E1726;
  --cinza: #3C4454;
  --cinza-medio: #6B7385;
  --linha: #E3E8F2;
  --fundo: #F6F8FC;
  --branco: #FFFFFF;
  --raio: 16px;
  --raio-p: 10px;
  --sombra: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --sombra-forte: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 40px rgba(36, 59, 255, .12);
  --titulo: "Archivo", Arial, sans-serif;
  --texto: "Source Sans 3", Arial, sans-serif;
  --dado: "IBM Plex Mono", "Courier New", monospace;
  --largura: 1160px;
  --coluna: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fundo); color: var(--preto); font-family: var(--texto); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--titulo); line-height: 1.15; margin: 0 0 .5em; color: var(--preto); }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--largura); margin: 0 auto; padding: 0 24px; }
.coluna { max-width: var(--coluna); }
.pular { position: absolute; left: -9999px; }
.pular:focus { left: 16px; top: 16px; background: var(--branco); padding: 8px 12px; z-index: 50; border-radius: 8px; }

/* ---------- Cabeçalho ---------- */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(227, 232, 242, .9); }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.topo .logo img { width: 172px; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 16px; }
.menu a { color: var(--preto); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--azul); background: var(--azul-suave); }
.menu .botao { margin-left: 8px; padding: 10px 18px; color: var(--branco); background: var(--azul); }
.menu .botao:hover { color: var(--branco); background: var(--azul-escuro); }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--titulo); font-weight: 700; font-size: 16px;
  text-decoration: none; padding: 14px 26px; border: 1px solid var(--azul); border-radius: var(--raio-p);
  background: var(--azul); color: var(--branco); box-shadow: 0 6px 18px rgba(36, 59, 255, .25);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.botao:hover { background: var(--azul-escuro); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(36, 59, 255, .32); }
.botao.vazado { background: var(--branco); color: var(--azul); box-shadow: none; border-color: #C9D3F5; }
.botao.vazado:hover { border-color: var(--azul); background: var(--azul-suave); }
.acoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Seções ---------- */
.secao { padding: 88px 0; }
.secao.branca { background: var(--branco); }
.rotulo {
  display: inline-block; font-family: var(--dado); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--azul); background: var(--azul-suave); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; font-weight: 600;
}
.rotulo a { color: inherit; }
.lead { font-size: 21px; color: var(--cinza); max-width: var(--coluna); }
.nota { font-size: 14px; color: var(--cinza-medio); margin-top: 14px; }
.atualizado { font-family: var(--dado); font-size: 13px; color: var(--cinza-medio); }

/* ---------- Abertura (topo de cada página) ---------- */
.abertura {
  position: relative; overflow: hidden; padding: 104px 0 88px; color: #DCE4F5;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(66, 156, 255, .28), transparent 60%),
    radial-gradient(700px 420px at 10% 120%, rgba(36, 59, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--marinho) 0%, var(--marinho-2) 100%);
}
.abertura::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../img/rede.svg") right -80px center / 1100px auto no-repeat; opacity: .9;
}
.abertura::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.abertura .wrap { position: relative; z-index: 1; }
.abertura h1 { color: var(--branco); max-width: 18ch; }
.abertura .lead { color: #C3CFE8; }
.abertura .rotulo { color: #A9C8FF; background: rgba(66, 156, 255, .14); border: 1px solid rgba(66, 156, 255, .3); }
.abertura .atualizado, .abertura .nota { color: #93A3C4; }
.abertura a:not(.botao) { color: #A9C8FF; }
.abertura .botao.vazado { background: rgba(255, 255, 255, .06); color: var(--branco); border-color: rgba(255, 255, 255, .35); }
.abertura .botao.vazado:hover { background: rgba(255, 255, 255, .14); border-color: var(--branco); }

/* ---------- Números ---------- */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 56px; }
.numeros div {
  padding: 22px 22px 20px; border-radius: var(--raio); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.numeros strong { display: block; font-family: var(--titulo); font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; color: var(--branco); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 6px; }
.numeros span { font-size: 15px; color: #B8C4DD; }
.secao .numeros div { background: var(--branco); border-color: var(--linha); box-shadow: var(--sombra); }
.secao .numeros strong { color: var(--azul); }
.secao .numeros span { color: var(--cinza); }

/* ---------- Grades e cartões ---------- */
.grade { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.cartao {
  position: relative; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 28px; box-shadow: var(--sombra); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cartao:hover { transform: translateY(-3px); box-shadow: var(--sombra-forte); border-color: #C9D3F5; }
.cartao h3 { color: var(--preto); }
.cartao p { color: var(--cinza); }
.cartao p:last-child, .cartao ul:last-child { margin-bottom: 0; }
.cartao ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--cinza); }
.cartao li { margin-bottom: .3em; }
.secao.branca .cartao { background: var(--fundo); box-shadow: none; }
.secao.branca .cartao:hover { background: var(--branco); box-shadow: var(--sombra-forte); }

/* Cartões numerados (as 12 frentes) */
.frentes { counter-reset: frente; }
.numerada .cartao { padding-top: 76px; }
.numerada .cartao::before {
  counter-increment: frente; content: counter(frente, decimal-leading-zero);
  position: absolute; top: 24px; left: 28px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--dado); font-weight: 600; font-size: 15px;
  color: var(--azul); background: var(--azul-suave);
}
.grupo-titulo { display: flex; align-items: center; gap: 12px; margin: 48px 0 18px; font-size: 19px; }
.grupo-titulo::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--azul), var(--azul-claro)); }

/* ---------- Passos ---------- */
.passos { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: passo; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.passos li {
  counter-increment: passo; position: relative; padding: 76px 26px 26px; border-radius: var(--raio);
  background: var(--branco); border: 1px solid var(--linha); box-shadow: var(--sombra);
}
.secao.branca .passos li { background: var(--fundo); box-shadow: none; }
.passos li::before {
  content: counter(passo); position: absolute; top: 24px; left: 26px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--titulo); font-weight: 800; font-size: 17px; color: var(--branco);
  background: linear-gradient(135deg, var(--azul), var(--azul-claro)); box-shadow: 0 6px 16px rgba(36, 59, 255, .3);
}
.passos h3 { margin-bottom: .35em; }
.passos p { margin: 0; color: var(--cinza); font-size: 17px; }

/* ---------- Destaque ---------- */
.destaque {
  position: relative; border-radius: var(--raio); background: linear-gradient(135deg, var(--azul-suave), #F7FAFF);
  border: 1px solid #D6E1FF; padding: 26px 30px 26px 34px; overflow: hidden;
}
.destaque::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--azul), var(--azul-claro)); }
.destaque p { color: var(--preto); }
.destaque p:last-child { margin-bottom: 0; }

/* ---------- Tabelas ---------- */
.tabela-rolagem { overflow-x: auto; border: 1px solid var(--linha); background: var(--branco); border-radius: var(--raio); }
table { border-collapse: collapse; width: 100%; font-size: 16px; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--linha); vertical-align: top; }
thead th { font-family: var(--titulo); background: var(--fundo); font-size: 15px; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Perguntas frequentes ---------- */
.faq details {
  background: var(--branco); border: 1px solid var(--linha); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px;
  transition: box-shadow .2s, border-color .2s;
}
.secao.branca .faq details, .faq.secao.branca details { background: var(--fundo); }
.faq details[open] { border-color: #C9D3F5; box-shadow: var(--sombra); background: var(--branco); }
.faq summary { font-family: var(--titulo); font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; padding-right: 40px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--dado); font-size: 18px; color: var(--azul); background: var(--azul-suave);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--cinza); max-width: var(--coluna); }

/* ---------- Texto longo (páginas-guia e posts) ---------- */
.artigo { max-width: var(--coluna); }
.artigo h2 { margin-top: 64px; }
.artigo h3 { margin-top: 32px; }
.artigo ul, .artigo ol { padding-left: 1.2em; }
.artigo li { margin-bottom: .5em; }
.artigo li::marker { color: var(--azul); }
.assinatura {
  display: flex; gap: 16px; align-items: center; margin-top: 56px; padding: 20px 22px; font-size: 15px; color: var(--cinza);
  background: var(--fundo); border: 1px solid var(--linha); border-radius: var(--raio);
}
.assinatura::before {
  content: "CM"; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titulo); font-weight: 800; font-size: 15px; color: var(--branco); background: linear-gradient(135deg, var(--azul), var(--azul-claro));
}

/* ---------- FiberShare ---------- */
.fibershare { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, #0E1A2B, #16263D); color: #D7DEEA; border-radius: 24px; padding: 48px; position: relative; overflow: hidden; }
.fibershare::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 121, 32, .35), transparent 65%); }
.fibershare > * { position: relative; z-index: 1; }
.fibershare h2 { color: var(--branco); }
.fibershare .rotulo { color: #FFB27A; background: rgba(244, 121, 32, .14); border: 1px solid rgba(244, 121, 32, .35); }
.fibershare .botao.vazado { background: #F47920; color: var(--branco); border-color: #F47920; box-shadow: 0 8px 20px rgba(244, 121, 32, .3); }
.fibershare .botao.vazado:hover { background: #E06810; }
@media (max-width: 760px) { .fibershare { grid-template-columns: 1fr; padding: 32px; } }

/* ---------- Chamada final ---------- */
.chamada .wrap {
  position: relative; overflow: hidden; border-radius: 24px; padding: 56px 48px;
  background: linear-gradient(120deg, var(--azul) 0%, #3A6BFF 55%, var(--azul-claro) 100%); color: #E8EEFF;
}
.chamada .wrap::after { content: ""; position: absolute; inset: 0; background: url("../img/rede.svg") right -200px center / 900px auto no-repeat; opacity: .35; pointer-events: none; }
.chamada .wrap > * { position: relative; z-index: 1; }
.chamada h2 { color: var(--branco); max-width: 22ch; }
.chamada .lead { color: #E0E8FF; }
.chamada .rotulo { color: var(--branco); background: rgba(255, 255, 255, .16); }
.chamada .botao { background: var(--branco); color: var(--azul); border-color: var(--branco); box-shadow: 0 10px 24px rgba(9, 12, 40, .2); }
.chamada .botao:hover { background: #F0F4FF; }
.chamada .botao.vazado { background: transparent; color: var(--branco); border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.chamada .botao.vazado:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 640px) { .chamada .wrap { padding: 40px 24px; border-radius: 18px; } }

/* ---------- Rodapé ---------- */
.rodape { position: relative; background: linear-gradient(180deg, var(--marinho) 0%, #070E22 100%); color: #AEB9D0; padding: 64px 0 32px; font-size: 15px; }
.rodape::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--azul), var(--azul-claro), var(--azul)); }
.rodape a { color: var(--branco); text-decoration: none; }
.rodape a:hover { text-decoration: underline; }
.rodape .colunas { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rodape h2 { font-size: 13px; color: var(--azul-claro); font-family: var(--dado); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin-bottom: 8px; }
.rodape .legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 44px; padding-top: 22px; font-size: 13px; color: #7F8BA6; }
.rodape .legal a { color: #AEB9D0; }

/* ---------- Contato ---------- */
.contato-grade { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contato-grade { grid-template-columns: 1fr; } }
.formulario { display: grid; gap: 18px; max-width: 660px; background: var(--branco); border: 1px solid var(--linha); border-radius: 20px; padding: 32px; box-shadow: var(--sombra); }
.campo label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #CBD3E1;
  border-radius: var(--raio-p); background: var(--fundo); color: var(--preto); transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); background: var(--branco); box-shadow: 0 0 0 4px rgba(36, 59, 255, .12); }
.campo.duplo { display: grid; grid-template-columns: 1fr 96px; gap: 12px; }
.campo.marcar { display: flex; gap: 10px; align-items: flex-start; }
.campo.marcar input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--azul); }
.campo.marcar label { font-weight: 400; font-size: 15px; color: var(--cinza); }
.campo.isca { position: absolute; left: -9999px; }
.formulario .botao { justify-self: start; cursor: pointer; }
.aviso { margin: 0; font-size: 16px; }
.aviso.erro { color: #B00020; }
.aviso.ok { color: #0A6B2E; }
.canais { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.canais li { padding: 18px 20px; background: var(--fundo); border: 1px solid var(--linha); border-radius: 14px; }
blockquote.destaque { margin: 0; }

/* ---------- Blog ---------- */
.lista-posts .cartao { display: flex; flex-direction: column; }
.lista-posts h3 { font-size: 20px; }
.lista-posts h3 a { color: var(--preto); text-decoration: none; }
.lista-posts h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--raio); }
.lista-posts .cartao:hover h3 a { color: var(--azul); }
.lista-posts .atualizado { margin-bottom: 10px; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 900px) {
  .topo { position: static; }
  .abertura::before { background-position: right -380px center; opacity: .45; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .secao { padding: 64px 0; }
  .abertura { padding: 64px 0 56px; }
  .menu { gap: 2px; font-size: 15px; }
  .menu a { padding: 6px 10px; }
  .cartao { padding: 24px; }
  .formulario { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Ajustes de celular (v2.1) ---------- */
@media (max-width: 640px) {
  .topo .wrap { gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .topo .logo img { width: 150px; }
  .menu { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 24px); margin-right: -24px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; }
  .menu .botao { margin-left: 4px; padding: 8px 14px; font-size: 14px; }
  .numeros { grid-template-columns: 1fr 1fr; gap: 10px; }
  .numeros div { padding: 16px; }
  .numeros strong { font-size: 24px; }
  .numeros span { font-size: 13.5px; line-height: 1.35; display: block; }
  .abertura .botao { width: 100%; justify-content: center; }
}

/* ---------- Perfil do engenheiro responsável ---------- */
.perfil { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; max-width: 860px; }
.perfil::before {
  content: "CM"; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  font-family: var(--titulo); font-weight: 800; font-size: 22px; color: var(--branco);
  background: linear-gradient(135deg, var(--azul), var(--azul-claro)); box-shadow: 0 10px 24px rgba(36, 59, 255, .3);
}
.perfil p:last-child { margin-bottom: 0; }
.perfil .selo { display: inline-block; margin-top: 4px; font-family: var(--dado); font-size: 13px; color: var(--azul); background: var(--azul-suave); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 640px) { .perfil { grid-template-columns: 1fr; } }
