/* Site institucional Cognivia Inteligência Pública
   Identidade aprovada: Azul Cognivia #0C60A3, Azul Profundo #0A2E52,
   Ciano Sinapse #17A9D6 (só acento), Azul Névoa #E8F1FA, Gelo #F7FAFD,
   Grafite #52627A. Sora nos títulos, Inter nos textos. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --brand: #0c60a3;
  --brand-hover: #094e86;
  --navy: #0a2e52;
  --cyan: #17a9d6;
  --mist: #e8f1fa;
  --ice: #f7fafd;
  --text: #22364d;
  --muted: #52627a;
  --border: #dce6f0;
  --white: #ffffff;
  --radius: 12px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--brand);
}
a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.icon-sm {
  width: 16px;
  height: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--brand);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 38px;
  height: 38px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.logo-via {
  color: var(--brand);
}
.logo-tag {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
}
.logo--inverse .logo-name,
.logo--inverse .logo-tag {
  color: var(--white);
}
.logo--inverse .logo-via {
  color: #7fd3ee;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--white);
}
.btn-secondary {
  background: var(--white);
  border-color: #b9cbdd;
  color: var(--navy);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-light {
  background: var(--white);
  color: var(--brand);
}
.btn-light:hover {
  background: var(--mist);
  color: var(--navy);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.header-logo {
  text-decoration: none;
}
.main-nav {
  display: flex;
  align-items: center;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}
.nav-list a:hover {
  color: var(--brand);
  background: var(--ice);
}
.nav-list a[aria-current="page"] {
  color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--brand);
  border-radius: 0;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon-close {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .nav-open .nav-panel {
    display: flex;
  }
  .nav-open .nav-toggle .icon-open {
    display: none;
  }
  .nav-open .nav-toggle .icon-close {
    display: block;
  }
  .nav-list {
    flex-direction: column;
  }
  .nav-list a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-list a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--brand);
    padding-left: 14px;
  }
}

/* ---------- Cabeçalho de página ---------- */
.page-header {
  background: var(--ice);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 48px;
}
.page-header .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 760px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #9aabbf;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------- Seções ---------- */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--ice);
  border-block: 1px solid var(--border);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 36px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.section-head-row .section-head {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 52px 0;
  }
  .container {
    padding-inline: 16px;
  }
}

/* ---------- Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card p {
  color: var(--muted);
  font-size: 15px;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--mist);
  color: var(--brand);
  margin-bottom: 4px;
}
.card-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.card-link:hover {
  border-color: var(--brand);
  color: inherit;
}
.card-link:hover h3 {
  color: var(--brand);
}
.card-more {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.card-number {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* ---------- Início: destaque ---------- */
.hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-copy h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  line-height: 1.12;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero {
    padding: 48px 0 56px;
  }
}

.flow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.flow-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 22px;
}
.flow li:last-child {
  padding-bottom: 0;
}
.flow li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--mist);
}
.flow li:last-child::before {
  display: none;
}
.flow-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}
.flow li:last-child .flow-dot {
  background: var(--brand);
  color: var(--white);
}
.flow strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}
.flow span.flow-desc {
  font-size: 14px;
  color: var(--muted);
}
.flow-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--mist);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ---------- Faixa de referências ---------- */
.trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.trust ul {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 16px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.trust .icon {
  color: var(--brand);
}
@media (max-width: 1199px) {
  .trust ul {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
@media (max-width: 520px) {
  .flow li {
    grid-template-columns: 28px 1fr;
  }
  .flow-tag {
    display: none;
  }
}

/* ---------- Listas ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.checklist .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--brand);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  font-size: 15px;
  line-height: 1.6;
}
.steps strong {
  display: block;
  color: var(--navy);
}
.steps p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Layout com menu lateral (Soluções) ---------- */
.with-sidebar {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding-block: 56px 72px;
}
.side-nav {
  position: sticky;
  top: 100px;
  align-self: start;
}
.side-nav-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.side-nav a .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.side-nav a:hover {
  background: var(--ice);
  color: var(--brand);
}
.side-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--brand);
}
.side-nav a[aria-current="page"] .icon {
  color: var(--brand);
}
.with-sidebar-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.with-sidebar-main > section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.with-sidebar-main > section > p {
  color: var(--muted);
  max-width: 760px;
}
@media (max-width: 960px) {
  .with-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 32px 56px;
  }
  .side-nav {
    position: static;
    order: 2;
    border-top: 1px solid var(--border);
    padding-top: 24px;
  }
}

/* ---------- Faixa de chamada ---------- */
.cta {
  background: var(--brand);
  color: var(--white);
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 {
  color: var(--white);
}
.cta p {
  color: #e2eefa;
  margin-top: 8px;
  max-width: 640px;
}

/* ---------- Blocos institucionais ---------- */
.statement {
  background: var(--brand);
  color: var(--white);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.statement .eyebrow {
  color: #cfe6f7;
}
.statement p.statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.panel {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-mist {
  background: var(--mist);
  border-color: var(--mist);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

/* ---------- Texto longo (privacidade) ---------- */
.prose {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prose h2 {
  font-size: 1.375rem;
  margin-top: 16px;
}
.prose ul {
  margin: 0;
  padding-left: 20px;
}

/* ---------- 404 ---------- */
.not-found {
  padding: 96px 0;
  text-align: center;
}
.not-found .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy);
  color: #c9d8e8;
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand a {
  text-decoration: none;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}
.site-footer a {
  color: #c9d8e8;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.card-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}
.card-row .card-icon {
  margin-bottom: 0;
}
.card-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust a {
  color: inherit;
  text-decoration: none;
}
.trust a:hover {
  color: var(--brand);
  text-decoration: underline;
}
#base-normativa {
  scroll-margin-top: 100px;
}
@media (min-width: 1200px) {
  .trust li {
    white-space: nowrap;
    font-size: 14.5px;
  }
}
