/*
 * Pesquisa de Qualidade dos Serviços Públicos — Agenda Pública
 * Design system enxuto (HTML/CSS/JS puro).
 * Paleta derivada do "X" da logo: laranja, amarelo, teal, roxo.
 * Cor principal: transição azul → roxo (indigo).
 */

:root {
  --radius: 0.875rem;

  /* Paleta da marca (logo) + azul→roxo principal */
  --brand-orange: oklch(0.71 0.18 45);       /* ~#F26A2E */
  --brand-yellow: oklch(0.82 0.16 78);       /* ~#F4B826 */
  --brand-teal: oklch(0.70 0.11 210);        /* ~#2BB3C0 */
  --brand-blue: oklch(0.55 0.19 250);        /* ~#2563EB */
  --brand-purple: oklch(0.45 0.17 285);      /* ~#4F46E5 */
  --brand-purple-dark: oklch(0.25 0.12 285); /* ~#1E1B4B */

  --background: oklch(0.985 0.005 80);
  --foreground: oklch(0.18 0.02 280);

  --card: oklch(1 0 0);
  --primary: oklch(0.55 0.19 250);
  --primary-foreground: oklch(0.99 0.005 80);

  --secondary: oklch(0.95 0.015 260);
  --muted-foreground: oklch(0.45 0.03 280);
  --accent: oklch(0.71 0.18 45);

  --border: oklch(0.55 0.19 250 / 0.18);

  --font-display: "Archivo Black", "Manrope", sans-serif;
  --font-sans: "Manrope", "Inter", system-ui, sans-serif;
}

/* ===================== Reset / base ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  color: var(--brand-purple-dark);
  line-height: 1.1;
  font-weight: 400;
}

h1 {
  font-size: clamp(1.7rem, 3.75vw, 2.8rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
}

h2.h2--md {
  font-size: clamp(1.875rem, 3.2vw, 2.25rem);
}

h2.h2--xl {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.section-desc {
  margin-top: 0.75rem;
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--foreground), transparent 20%);
}

/* ===================== Utilitários de marca ===================== */
.brand-gradient {
  background-image: linear-gradient(
    135deg,
    var(--brand-orange) 0%,
    var(--brand-yellow) 30%,
    var(--brand-teal) 65%,
    var(--brand-purple) 100%
  );
}

.brand-text-gradient {
  background-image: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title--purple-dark {
  color: var(--brand-purple-dark);
}

/* ===================== Layout ===================== */
.container {
  width: 100%;
  max-width: 72rem; /* max-w-6xl */
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 64rem; /* max-w-5xl */
}

.section {
  padding-block: 6rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border), transparent 22%);
}

.section--muted {
  background-color: color-mix(in oklab, var(--secondary), transparent 60%);
}

.mt-6 {
  margin-top: 1.5rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mt-12 {
  margin-top: 3rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ===================== Tipografia auxiliar ===================== */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.eyebrow--accent {
  color: var(--accent);
}
.eyebrow--on-orange {
  color: color-mix(in oklab, var(--primary-foreground), transparent 20%);
}

.section-lead {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.prose {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--foreground), transparent 15%);
}

/* ===================== Botões ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
}

.btn-gradient {
  color: #fff;
  background-image: linear-gradient(
    135deg,
    var(--brand-purple) 0%,
    oklch(0.62 0.13 285) 100%
  );
  box-shadow: 0 10px 20px -8px color-mix(in oklab, var(--brand-purple), transparent 55%);
}
.btn-gradient:hover {
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--brand-orange);
  border-color: color-mix(in oklab, var(--brand-orange), transparent 70%);
  background: transparent;
}
.btn-outline:hover {
  background-color: color-mix(in oklab, var(--brand-orange), transparent 95%);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.btn:disabled:hover {
  transform: none;
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid color-mix(in oklab, var(--border), transparent 40%);
  background-color: color-mix(in oklab, var(--background), transparent 15%);
  backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  transition: padding-block 0.3s ease;
}

.brand-logo img {
  height: 3rem;
  width: auto;
  transition: height 0.3s ease;
}

.site-header--scrolled {
  box-shadow: 0 4px 20px -5px rgb(0 0 0 / 0.08);
  background-color: color-mix(in oklab, var(--background), transparent 5%);
}

.site-header--scrolled .header-inner {
  padding-block: 0.5rem;
}

.site-header--scrolled .brand-logo img {
  height: 2.25rem;
}

.menu-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.site-nav a {
  color: color-mix(in oklab, var(--foreground), transparent 25%);
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: var(--primary);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in oklab, var(--border), transparent 40%);
}

.hero-strip {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
}
.hero-glow--orange {
  right: -8rem;
  top: -8rem;
  height: 28rem;
  width: 28rem;
  opacity: 0.2;
  background-image: linear-gradient(135deg, var(--brand-orange), var(--brand-purple));
}
.hero-glow--purple {
  bottom: -10rem;
  left: -8rem;
  height: 26rem;
  width: 26rem;
  opacity: 0.15;
  background-color: var(--brand-purple);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding-block: 7rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 75%);
  background-color: color-mix(in oklab, var(--primary), transparent 95%);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
}
.badge-dot {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2rem;
  opacity: 0.9;
  filter: blur(2px);
}
.hero-card {
  position: relative;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #fff;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px color-mix(in oklab, var(--primary), transparent 80%);
}
.hero-card img {
  margin-inline: auto;
  width: 100%;
  max-width: 24rem;
}

/* ===================== Cards genéricos ===================== */
.card-base {
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  background: var(--card);
}

/* Sobre — product cards */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  background: var(--card);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px color-mix(in oklab, var(--primary), transparent 80%);
}
.product-card-bar {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 6px;
  background-color: var(--bar);
  transition: width 0.2s ease;
}
.product-card:hover .product-card-bar {
  width: 8px;
}
.product-card-body {
  margin-left: 0.5rem;
}
.product-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--bar);
}
.product-card h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}
.product-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Perguntas */
.question-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  background: var(--card);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.question-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px color-mix(in oklab, var(--primary), transparent 82%);
}
.question-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}
.question-card p {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground), transparent 15%);
}

/* Marcos — framework cards */
.framework-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  background: var(--card);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.framework-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -18px color-mix(in oklab, var(--primary), transparent 80%);
}
.framework-icon {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #fff;
}
.framework-card h3 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
}
.framework-card p {
  margin-top: 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground), transparent 20%);
}
.link-arrow {
  margin-top: 1.5rem;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-orange);
  transition: color 0.2s ease;
}
.link-arrow:hover {
  color: color-mix(in oklab, var(--brand-orange), transparent 30%);
}

/* Regiões */
.grid-regions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.region-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  background: var(--card);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.region-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px color-mix(in oklab, var(--primary), transparent 80%);
}
.region-blob {
  position: absolute;
  right: 0;
  top: 0;
  height: 6rem;
  width: 6rem;
  transform: translate(3rem, -3rem);
  border-radius: 9999px;
  opacity: 0.2;
  background-color: var(--blob);
  transition: transform 0.2s ease;
}
.region-card:hover .region-blob {
  transform: translate(3rem, -3rem) scale(1.25);
}
.region-head {
  position: relative;
}
.region-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.region-card h3 {
  margin-top: 0.5rem;
  font-size: 1.875rem;
}
.region-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--foreground), transparent 25%);
}
.region-download {
  position: relative;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-orange);
}

/* ===================== Factsheets (fundo laranja) ===================== */
.section--orange {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-orange);
  border-bottom: none;
}
.orange-glow {
  pointer-events: none;
  position: absolute;
  height: 24rem;
  width: 24rem;
  border-radius: 9999px;
  filter: blur(64px);
}
.orange-glow--yellow {
  right: -8rem;
  top: -8rem;
  opacity: 0.3;
  background-color: var(--brand-yellow);
}
.orange-glow--purple {
  bottom: -10rem;
  left: -5rem;
  opacity: 0.25;
  background-color: var(--brand-purple);
}

.factsheet-featured {
  position: relative;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  border-radius: 1.5rem;
  background-color: color-mix(in oklab, var(--background), transparent 5%);
  padding: 2rem;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.25);
  outline: 1px solid color-mix(in oklab, var(--primary), transparent 80%);
  transition: transform 0.2s ease;
}
.factsheet-featured:hover {
  transform: translateY(-4px);
}
.factsheet-featured-info {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.factsheet-featured h3 {
  margin-top: 0.25rem;
  font-size: 1.5rem;
}

.icon-box {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #fff;
}
.factsheet-card .icon-box {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.75rem;
}

.factsheet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1rem;
  background-color: color-mix(in oklab, var(--background), transparent 5%);
  padding: 1.75rem;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.3);
  outline: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.factsheet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.35);
}
.factsheet-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.factsheet-card-head h3 {
  font-size: 1.125rem;
  line-height: 1.35;
}
.factsheet-card .btn {
  margin-top: 1.5rem;
  width: fit-content;
}

/* ===================== Ranking — gráfico CSS ===================== */
.chart-card {
  border-radius: 1.5rem;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  background: var(--card);
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.ranking-chart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chart-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 0.75rem;
}
.chart-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-purple-dark);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-track {
  position: relative;
  height: 1.5rem;
  border-radius: 0 8px 8px 0;
  background: color-mix(in oklab, var(--secondary), transparent 30%);
}
.chart-bar {
  height: 100%;
  border-radius: 0 8px 8px 0;
  min-width: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===================== Ranking — tabela ===================== */
.table-card {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.table-scroll {
  overflow-x: auto;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ranking-table thead tr {
  background-color: color-mix(in oklab, var(--secondary), transparent 40%);
}
.ranking-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--brand-purple-dark);
  white-space: nowrap;
}
.ranking-table th.num {
  text-align: right;
}
.ranking-table th.col-final {
  color: var(--primary);
}
.ranking-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid color-mix(in oklab, var(--border), transparent 40%);
  vertical-align: middle;
}
.ranking-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ranking-table td.col-pos {
  text-align: center;
  font-weight: 700;
  color: var(--muted-foreground);
}
.ranking-table td.col-capital {
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}
.nota-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--border), transparent 40%);
  background-color: color-mix(in oklab, var(--secondary), transparent 70%);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
}
.page-info {
  color: var(--muted-foreground);
}
.table-pager {
  display: flex;
  gap: 0.5rem;
}

/* ===================== Footer ===================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-purple-dark);
  color: var(--primary-foreground);
}
.footer-strip {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 6px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 4rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  background-color: color-mix(in oklab, var(--background), transparent 5%);
  padding: 0.75rem 1rem;
}
.footer-logo img {
  height: 2.5rem;
  width: auto;
}
.footer-about {
  margin-top: 1.25rem;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--primary-foreground), transparent 25%);
}
/* ===================== Brand Support Strip (Abaixo do Rodapé) ===================== */
.brand-support-strip {
  width: 100%;
  background-color: #ffffff;
  padding-block: 2.25rem 150px;
  border-top: 1px solid color-mix(in oklab, var(--border), transparent 45%);
}
.brand-support-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
}
.brand-support-regua {
  width: 100%;
  max-width: 52rem;
  height: auto;
  object-fit: contain;
}
.brand-support-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--foreground), transparent 40%);
  margin: 0;
}
.brand-support-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6rem;
  transform: translateX(-7%);
}
.brand-support-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-support-logo {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Aumenta o tamanho da logo da CGU para compensar o peso visual vertical (de 3.5rem para 4.75rem) */
.brand-support-logo[src*="logo_cgu"] {
  height: 4.75rem;
}
.brand-support-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.site-footer h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-foreground);
}
.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--primary-foreground), transparent 20%);
}
.footer-links a {
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: color-mix(in oklab, var(--primary-foreground), transparent 40%);
}

/* ===================== Hero — imagem ===================== */
@keyframes hero-fade {
  0%     { opacity: 1; }
  26.67% { opacity: 1; }
  33.33% { opacity: 0; }
  93.33% { opacity: 0; }
  100%   { opacity: 1; }
}
.hero-slideshow {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px color-mix(in oklab, var(--brand-purple), transparent 70%);
}
.hero-img {
  display: block;
  width: 100%;
  object-fit: cover;
  animation: hero-fade 15s infinite;
}
.hero-img:nth-child(2),
.hero-img:nth-child(3) {
  position: absolute;
  inset: 0;
  height: 100%;
}
.hero-img:nth-child(1) { animation-delay:  0s; }
.hero-img:nth-child(2) { animation-delay: -10s; }
.hero-img:nth-child(3) { animation-delay: -5s; }

/* ===================== Nav — edição especial ===================== */
.nav-highlight {
  border: 1px solid color-mix(in oklab, var(--brand-orange), transparent 60%);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  color: var(--brand-orange) !important;
  font-size: 0.8rem;
  transition: background-color 0.2s ease !important;
}
.nav-highlight:hover {
  background-color: color-mix(in oklab, var(--brand-orange), transparent 92%);
  color: var(--brand-orange) !important;
}

/* ===================== Placeholder (nota metodológica / dashboard) ===================== */
.placeholder-box {
  min-height: 220px;
  border-radius: 1.5rem;
  border: 2px dashed color-mix(in oklab, var(--primary), transparent 65%);
  background: color-mix(in oklab, var(--secondary), transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-box--tall {
  min-height: 380px;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
}
.placeholder-icon {
  opacity: 0.4;
  color: var(--primary);
}
.placeholder-inner p {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.6;
}

/* ===================== Dimensões temáticas ===================== */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.dim-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.dim-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.dim-card:hover img {
  transform: scale(1.05);
}
.dim-card-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  --_clr: var(--dim-clr, oklch(0.25 0.12 285));
  background: linear-gradient(to top,
    color-mix(in oklch, var(--_clr), transparent 6%) 0%,
    color-mix(in oklch, var(--_clr), transparent 45%) 45%,
    transparent 70%);
  color: #fff;
}
.dim-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
}
.dim-card-desc {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================== CTA Banner ===================== */
.cta-banner {
  background-color: var(--brand-purple-dark);
  background-image:
    linear-gradient(oklch(0.15 0.10 285 / 0.82), oklch(0.15 0.10 285 / 0.82)),
    url('imagens/qualidade_de_vida.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-block: 6rem;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 42rem;
  margin-inline: auto;
}
.cta-banner p {
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in oklab, #fff, transparent 25%);
}

/* ===================== Iniciativas ===================== */
.iniciativa-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 85%);
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iniciativa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px color-mix(in oklab, var(--primary), transparent 78%);
}
.iniciativa-img {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.iniciativa-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.iniciativa-card:hover .iniciativa-img img {
  transform: scale(1.04);
}
.iniciativa-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.iniciativa-body h3 {
  font-size: 1.25rem;
}
.iniciativa-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  flex: 1;
}
.iniciativa-body .btn {
  margin-top: 0.5rem;
  width: fit-content;
}

/* ===================== Formulário / Download ===================== */
.form-section {
  background-color: var(--brand-purple-dark);
  padding-block: 5rem;
}
.form-section h2 {
  max-width: 40rem;
  margin-inline: auto;
  margin-top: 0.5rem;
}
.form-lead {
  text-align: center;
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 0.95rem;
  color: color-mix(in oklab, #fff, transparent 30%);
}
.form-wrapper {
  max-width: 40rem;
  margin: 2.5rem auto 0;
  background: var(--card);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.downloads-list {
  max-width: 40rem;
  margin: 2.5rem auto 0;
}
.downloads-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in oklab, #fff, transparent 30%);
  margin-bottom: 1rem;
}
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background: color-mix(in oklab, #fff, transparent 90%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.download-btn:hover {
  background: color-mix(in oklab, #fff, transparent 82%);
}
.download-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ===================== Dimensões — interação ===================== */
.dim-card {
  cursor: pointer;
  appearance: none;
  border: none;
  padding: 0;
  background: none;
  text-align: left;
  display: block;
  width: 100%;
}
.dim-card:hover img {
  transform: scale(1.06);
}
.dim-card:focus-visible {
  outline: 3px solid var(--brand-purple);
  outline-offset: 3px;
  border-radius: 1rem;
}
.dim-card-hint {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dim-card:hover .dim-card-hint {
  opacity: 1;
  transform: scale(1);
}

/* Modal */
.dim-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.dim-modal[hidden] { display: none; }
.dim-modal-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.1 0.06 285 / 0.75);
  backdrop-filter: blur(6px);
}
.dim-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 680px;
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--background);
  box-shadow: 0 30px 60px -20px oklch(0.1 0.1 285 / 0.5);
  animation: modal-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
.dim-modal-img-wrap {
  aspect-ratio: auto;
  min-height: 260px;
  overflow: hidden;
}
.dim-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dim-modal-body {
  padding: 2.25rem 2rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}
.dim-modal-body h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--brand-purple-dark);
}
.dim-modal-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: color-mix(in oklab, var(--foreground), transparent 15%);
  margin-bottom: 1rem;
}
.dim-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 260px;
  overflow-y: auto;
  overflow-anchor: none;
  padding-right: 0.25rem;
}
.dim-modal-list li {
  font-size: 0.82rem;
  line-height: 1.55;
  color: color-mix(in oklab, var(--foreground), transparent 10%);
  padding-left: 1rem;
  position: relative;
}
.dim-modal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brand-purple);
  font-weight: 700;
}
.dim-modal-list li strong {
  color: var(--brand-purple-dark);
}
.dim-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--border), transparent 30%);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  transition: background-color 0.15s ease;
}
.dim-modal-close:hover {
  background-color: color-mix(in oklab, var(--secondary), transparent 20%);
}
@media (max-width: 600px) {
  .dim-modal {
    padding: 1rem;
  }
  .dim-modal-panel {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
  }
  .dim-modal-img-wrap {
    display: none;
  }
  .dim-modal-body {
    padding: 1.75rem 1.25rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .dim-modal-list {
    max-height: none;
    overflow-y: visible;
  }
}

/* ===================== Nota metodológica ===================== */
.metod-lead {
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--foreground);
  max-width: 48rem;
}
.metod-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 82%);
  background: color-mix(in oklab, var(--primary), transparent 82%);
}
.metod-stats-vertical {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--primary), transparent 82%);
  background: color-mix(in oklab, var(--primary), transparent 82%);
  height: 100%;
}
.metod-stats-vertical .metod-stat {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  padding: 0.5rem 1.75rem;
  background: var(--card);
  text-align: left;
}
.metod-stats-vertical .metod-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  min-width: 2.25rem;
  text-align: right;
}
.metod-stats-vertical .metod-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-foreground);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.metod-stat {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.75rem 1rem;
  background: var(--card);
  text-align: center;
}
.metod-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  font-weight: 900;
}
.metod-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metod-body {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 3rem;
  align-items: stretch;
}
.metod-text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.metod-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: color-mix(in oklab, var(--foreground), transparent 10%);
}
.metod-geo {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--primary), transparent 82%);
  border-radius: 1.25rem;
  padding: 1.75rem;
}
.metod-geo-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}
.metod-bars {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.metod-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 28px;
  align-items: center;
  gap: 0.6rem;
}
.metod-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-purple-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metod-bar-track {
  height: 10px;
  border-radius: 99px;
  background: color-mix(in oklab, var(--secondary), transparent 20%);
  overflow: hidden;
}
.metod-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.metod-bar-val {
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  text-align: right;
}
.metod-geo-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  border-top: 1px solid color-mix(in oklab, var(--border), transparent 40%);
  padding-top: 1rem;
}
.metod-source {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in oklab, var(--muted-foreground), transparent 25%);
}

/* ===================== Responsivo ===================== */
@media (max-width: 1024px) {
  .grid-regions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: 4rem;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  }
  .site-nav.active {
    display: flex;
  }
  .site-nav a {
    font-size: 1rem;
    padding-block: 0.5rem;
    width: 100%;
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 4rem;
    gap: 2.5rem;
  }
  .grid-2,
  .grid-3,
  .grid-regions,
  .dim-grid {
    grid-template-columns: 1fr;
  }
  .factsheet-featured {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .chart-row {
    grid-template-columns: 110px 1fr;
  }
  .chart-label {
    font-size: 0.6875rem;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .metod-body {
    grid-template-columns: 1fr;
  }
  .metod-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .metod-stat {
    flex: 1 1 calc(33% - 2px);
  }
  .cta-banner {
    padding-block: 4rem;
    background-attachment: scroll;
  }
}
