:root {
  --navy: #12366b;
  --navy-dark: #0b2447;
  --navy-soft: #eef3fa;
  --red: #c8102e;
  --red-soft: #fbe7ea;
  --ink: #1a2433;
  --muted: #4a5568;
  --line: #d8e0eb;
  --surface: #f7f9fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 36, 71, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Barra de acessibilidade */
.a11y-bar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.8125rem;
}

.a11y-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.a11y-shortcuts,
.a11y-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.a11y-shortcuts a {
  color: var(--white);
  text-decoration: none;
}

.a11y-shortcuts a:hover {
  text-decoration: underline;
}

.a11y-label {
  margin-right: 2px;
}

.a11y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  border: 1px solid #5b7ba8;
  border-radius: 6px;
  padding: 4px 10px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.a11y-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.a11y-vlibras {
  background: #1e4c8f;
  border-color: #1e4c8f;
  font-weight: 600;
}

/* Cabeçalho */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}

.search {
  display: flex;
  flex: 1 1 320px;
  max-width: 460px;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #b8c4d6;
  border-right: none;
  border-radius: 10px 0 0 10px;
  font: inherit;
  font-size: 0.9375rem;
  background: var(--white);
  color: var(--ink);
}

.search button {
  height: 48px;
  padding: 0 18px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 0 10px 10px 0;
  font: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.search button:hover {
  background: var(--navy-dark);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--white);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: #8a0b20;
  color: var(--white);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-lg {
  height: 52px;
  padding: 0 24px;
}

/* Dropdown de Compliance no topo */
.header-dropdown {
  position: relative;
}

.btn-compliance {
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--red), 0 6px 18px rgba(18, 54, 107, 0.28);
}

.btn-compliance:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-compliance .caret {
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.header-dropdown.open .btn-compliance .caret {
  transform: rotate(180deg);
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 540px);
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(11, 36, 71, 0.24);
  display: none;
}

.header-dropdown.open .header-dropdown-menu {
  display: block;
}

.dropdown-title {
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.header-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.35;
  border-bottom: 1px solid #eef2f7;
}

.header-dropdown-menu li:last-child a {
  border-bottom: 0;
}

.header-dropdown-menu a:hover {
  background: var(--navy-soft);
  color: var(--navy);
}

/* Menu principal */
.main-nav {
  background: var(--navy);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  border: 0;
  padding: 14px 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  background: transparent;
  border: 0;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 15px 11px;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.caret {
  font-size: 0.7em;
  line-height: 1;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 280px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 28px rgba(11, 36, 71, 0.18);
  display: none;
}

.has-dropdown.open .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

@media (min-width: 981px) {
  .has-dropdown:hover .dropdown {
    display: block;
  }
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: var(--navy-soft);
  color: var(--navy);
}

.dropdown-sep {
  height: 1px;
  margin: 6px 0;
  background: var(--line);
}

/* Destaque principal */
.hero {
  background: var(--navy-soft);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.hero h1 {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.12;
  font-weight: 800;
  color: var(--navy);
}

.hero-lead {
  margin: 0;
  font-size: 1.125rem;
  color: #3b4658;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-media {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
}

.hero-photo {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #c9d6e8;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notice {
  position: absolute;
  left: -24px;
  bottom: -28px;
  max-width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice strong {
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.3;
}

.notice span:not(.eyebrow) {
  font-size: 0.875rem;
  color: var(--muted);
}

.notice a {
  font-size: 0.875rem;
  font-weight: 700;
}

/* Seções */
.section {
  padding: 64px 0;
}

.quick {
  padding-top: 88px;
}

.section h2 {
  margin: 0 0 6px;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--navy);
}

.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
}

/* Acesso rápido */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.quick-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(11, 36, 71, 0.1);
  transform: translateY(-2px);
}

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-card strong {
  font-size: 1.0625rem;
  color: var(--navy);
}

.quick-card > span:not(.icon-tile) {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Serviços */
.services {
  background: var(--surface);
  border-top: 1px solid #e3e9f2;
  border-bottom: 1px solid #e3e9f2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 100px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy);
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
}

.service-card a {
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Números */
.stats {
  background: var(--navy);
  color: var(--white);
}

.stats .container {
  padding-top: 56px;
  padding-bottom: 56px;
}

.stats h2 {
  margin: 0 0 28px;
  font-size: 1.375rem;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid #e8475e;
  padding-left: 18px;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.9375rem;
  color: #d3deee;
}

.stats-note {
  margin: 28px 0 0;
  font-size: 0.8125rem;
  color: #b9c8e0;
}

/* Notícias */
.news-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.news-main {
  flex: 999 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.link-strong {
  font-weight: 700;
}

.featured-news {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.featured-news img {
  flex: 0 1 340px;
  width: 340px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.featured-news-body {
  flex: 1 1 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.news-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
}

.featured-news h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--navy);
}

.featured-news p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(11, 36, 71, 0.1);
}

.news-card .news-meta {
  color: var(--red);
}

.news-card strong {
  font-size: 1rem;
  line-height: 1.35;
}

.news-sidebar {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.panel-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: -8px;
}

.doc-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e9f2;
  text-decoration: none;
}

.doc-link strong {
  font-size: 0.9375rem;
  color: var(--ink);
}

.doc-link span {
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-link:hover strong {
  color: var(--navy);
}

.panel .link-strong {
  font-size: 0.9375rem;
}

.supplier {
  background: var(--red-soft);
  border: 0;
}

.supplier h2 {
  color: #8a0b20;
  font-size: 1.125rem;
}

.supplier p {
  margin: 0;
  font-size: 0.875rem;
  color: #5a1220;
}

.supplier a {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #8a0b20;
}

/* Municípios */
.municipalities {
  background: var(--navy-soft);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid #c9d6e8;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.pill:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Páginas internas */
.page-hero {
  background: var(--navy-soft);
  border-bottom: 1px solid #e3e9f2;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 36px;
  padding-bottom: 44px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  color: #8a97a8;
}

.breadcrumb li:last-child::after {
  content: "";
  margin: 0;
}

.page-hero h1 {
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.0625rem;
  color: #3b4658;
}

.page-main {
  padding: 56px 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.prose {
  max-width: 72ch;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.5rem;
  color: var(--navy);
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1875rem;
  color: var(--navy);
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  font-weight: 600;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 16px 20px;
  border-left: 4px solid var(--red);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
}

.callout {
  padding: 20px 22px;
  border: 1px solid #d3deee;
  border-radius: 14px;
  background: var(--navy-soft);
}

.page-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.aside-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.aside-card h2 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--navy);
}

.aside-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.aside-card a {
  font-weight: 600;
}

@media (max-width: 980px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-hero h1 {
    font-size: 1.875rem;
  }

  .page-main {
    padding: 40px 0;
  }
}

body.high-contrast .page-hero,
body.high-contrast .page-main,
body.high-contrast .aside-card,
body.high-contrast .callout,
body.high-contrast .prose blockquote {
  background: #000;
  border-color: #fff;
}

body.high-contrast .page-hero h1,
body.high-contrast .prose h2,
body.high-contrast .prose h3,
body.high-contrast .aside-card h2 {
  color: #ffd400;
}

body.high-contrast .breadcrumb,
body.high-contrast .breadcrumb a,
body.high-contrast .page-hero p,
body.high-contrast .prose p,
body.high-contrast .prose li,
body.high-contrast .aside-card p {
  color: #fff;
}

/* Redes sociais */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.social-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.social-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(11, 36, 71, 0.1);
  transform: translateY(-2px);
}

.social-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.social-meta {
  padding: 2px 14px 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

.social-caption {
  padding: 0 14px 16px;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.high-contrast .social-card {
  background: #000;
  border-color: #fff;
}

body.high-contrast .social-meta {
  color: #ffd400;
}

body.high-contrast .social-caption {
  color: #fff;
}

/* Rodapé */
.site-footer {
  background: var(--navy-dark);
  color: #d3deee;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
  display: flex;
}

.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-brand strong {
  font-size: 1.375rem;
  color: var(--white);
}

.footer-col a {
  color: #d3deee;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-title {
  color: var(--white);
  font-size: 0.9375rem;
}

.footer-bottom {
  border-top: 1px solid #23406b;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.8125rem;
  color: #b9c8e0;
}

.footer-selo img {
  height: 54px;
  width: auto;
  display: block;
}

/* Voltar ao topo */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(11, 36, 71, 0.3);
}

.back-to-top:hover {
  background: var(--navy-dark);
  color: var(--white);
}

/* Alto contraste */
body.high-contrast {
  background: #000;
  color: #fff;
}

body.high-contrast .a11y-bar,
body.high-contrast .site-header,
body.high-contrast .main-nav,
body.high-contrast .stats,
body.high-contrast .site-footer {
  background: #000;
  border-color: #fff;
}

body.high-contrast .hero,
body.high-contrast .services,
body.high-contrast .municipalities,
body.high-contrast .quick {
  background: #000;
  border-color: #fff;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast .brand-name,
body.high-contrast .quick-card strong,
body.high-contrast .service-card h3,
body.high-contrast .panel h2,
body.high-contrast .news-card strong,
body.high-contrast .doc-link strong,
body.high-contrast .footer-brand strong,
body.high-contrast .footer-title {
  color: #ffd400;
}

body.high-contrast p,
body.high-contrast .hero-lead,
body.high-contrast .section-lead,
body.high-contrast .quick-card,
body.high-contrast .service-card p,
body.high-contrast .stat-label,
body.high-contrast .panel-sub,
body.high-contrast .doc-link span,
body.high-contrast .news-card,
body.high-contrast .news-card strong,
body.high-contrast .footer-col,
body.high-contrast .footer-col a {
  color: #fff;
}

body.high-contrast a,
body.high-contrast .link-strong {
  color: #ffd400;
  text-decoration: underline;
}

body.high-contrast .quick-card,
body.high-contrast .service-card,
body.high-contrast .featured-news,
body.high-contrast .news-card,
body.high-contrast .panel,
body.high-contrast .pill,
body.high-contrast .notice {
  background: #000;
  border-color: #fff;
  color: #fff;
}

body.high-contrast .brand-sub,
body.high-contrast .notice span:not(.eyebrow) {
  color: #fff;
}

body.high-contrast .notice strong,
body.high-contrast .notice a {
  color: #ffd400;
}

body.high-contrast .search input {
  background: #000 !important;
  border-color: #fff;
  color: #fff !important;
}

body.high-contrast .search input::placeholder {
  color: #d8d8d8;
}

body.high-contrast .header-dropdown-menu {
  background: #000;
  border-color: #fff;
}

body.high-contrast .dropdown-title,
body.high-contrast .header-dropdown-menu a {
  color: #ffd400;
  border-color: #555;
}

body.high-contrast .header-dropdown-menu a:hover {
  background: #ffd400;
  color: #000;
}

body.high-contrast .btn-compliance {
  background: #000;
  color: #ffd400;
  border-color: #fff;
  box-shadow: inset 0 -3px 0 var(--red);
}

body.high-contrast .icon-tile,
body.high-contrast .service-icon {
  background: #000;
  border: 1px solid #fff;
  color: #ffd400;
}

body.high-contrast .eyebrow,
body.high-contrast .news-meta {
  color: #ffd400;
}

body.high-contrast .nav-link:hover,
body.high-contrast .nav-link:focus-visible {
  background: #ffd400;
  color: #000;
}

body.high-contrast .supplier {
  background: #000;
  border: 1px solid #fff;
}

body.high-contrast .supplier h2,
body.high-contrast .supplier a {
  color: #ffd400;
}

body.high-contrast .supplier p {
  color: #fff;
}

/* Responsivo */
@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 12px;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-item {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
  }

  .dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 8px;
  }

  .dropdown a {
    padding: 10px 14px;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .notice {
    position: static;
    max-width: none;
    margin-top: 16px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .brand {
    justify-content: center;
    text-align: left;
  }

  .search {
    flex: 0 0 auto;
    max-width: none;
  }

  .header-actions {
    justify-content: center;
  }

  .header-dropdown-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 36px));
  }

  .quick {
    padding-top: 56px;
  }

  .section,
  .hero-inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.625rem;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .news-layout {
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-logo {
    height: 52px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn-lg {
    width: 100%;
  }

  .featured-news img {
    flex-basis: 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
