/* Fonte única de verdade: tema, logo, menu, rodapé, navegação e responsividade.
   Altere aqui uma vez; scripts/build.mjs propaga a todas as páginas HTML. */
:root {
  color-scheme: light;
  --bg: #f8f6f1;
  --paper: #ffffff;
  --ink: #1f2d48;
  --muted: #5b6780;
  --blue: #7190c9;
  --blue-deep: #34518c;
  --blue-soft: #e9eef8;
  --orange: #f4874d;
  --orange-soft: #fdeee4;
  --line: #e6e2d8;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  color: white;
  background: var(--blue-deep);
}
.skip-link:focus { top: 12px; }
.page {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 24px 0 32px;
}
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.site-header .brand {
  display: block;
  flex: none;
  text-decoration: none;
}
.site-header .brand img {
  display: block;
  width: 180px;
  height: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 6px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px -18px rgba(31,45,72,.45);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--blue-soft);
}
.site-nav a:last-child {
  color: white;
  background: var(--blue-deep);
}
.site-nav a:last-child:hover,
.site-nav a:last-child:focus-visible { background: #2b4478; }
.site-nav a:focus-visible,
.mobile-menu summary:focus-visible,
.mobile-menu a:focus-visible,
.language-links a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Todos os menus mobile são gerados a partir do mesmo componente HTML. */
.mobile-menu { display: none; }
.mobile-menu summary {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--blue-deep);
  background: white;
  box-shadow: 0 6px 20px -12px rgba(31,45,72,.4);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::marker { content: ""; }
.mobile-menu[open] summary {
  color: white;
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}
.mobile-menu .menu-icon { width: 24px; height: 24px; }
.mobile-menu .menu-icon-close { display: none; }
.mobile-menu[open] .menu-icon-bars { display: none; }
.mobile-menu[open] .menu-icon-close { display: block; }
.mobile-menu-links {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(270px, calc(100vw - 24px));
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 45px -22px rgba(31,45,72,.4);
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible { background: var(--blue-soft); }
.mobile-menu-links a:last-child {
  margin-top: 5px;
  color: white;
  background: var(--blue-deep);
}
.mobile-menu-links a:last-child:hover,
.mobile-menu-links a:last-child:focus-visible { background: #2b4478; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.language-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.language-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.page-locale .cta { background: var(--blue-deep); }
.page-locale .cta:hover { background: #2b4478; }

@media (max-width: 760px) {
  .page { width: calc(100% - 24px); padding: 12px 0 26px; }
  .site-header { flex-wrap: nowrap; gap: 12px; }
  .site-header .brand img { width: 122px; max-width: 100%; }
  .site-nav { display: none; }
  .mobile-menu { position: relative; display: block; flex: none; margin-left: auto; }
  .page-home .hero { margin-top: 20px; }
  .page-inner .breadcrumbs { margin-top: 28px; }
  .page-locale main { padding-top: 18px; }
  .site-footer { margin-top: 42px; padding-top: 18px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .page { padding-top: 10px; }
  .site-header .brand img { width: 116px; }
  .page-home .hero { margin-top: 17px; }
  .page-home h1 { font-size: clamp(29px, 8vw, 34px); margin: 14px 0 12px; line-height: 1.12; overflow-wrap: normal; }
  .page-home .notice { font-size: 12px; line-height: 1.3; padding: 6px 12px 6px 9px; }
  .page-home .lead { font-size: 15px; line-height: 1.55; }
  .page-home .actions { margin-top: 20px; gap: 10px; }
  .page-home .btn { min-height: 46px; flex: 1 1 auto; font-size: 14px; padding: 0 12px; white-space: nowrap; }
  .page-home .btn svg { width: 18px; height: 18px; }
}
@media (max-width: 360px) {
  .site-header .brand img { width: 105px; }
  .page-home .btn { flex: 1 1 100%; }
  .page-home .notice { font-size: 11px; }
}

/* Hub de links orgânicos compartilhado entre página inicial e páginas internas. */
.seo-hub { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.seo-hub .section-head { display:flex; gap: 8px 22px; flex-wrap:wrap; align-items:baseline; justify-content:space-between; margin-bottom:20px; }
.seo-hub .section-head h2 { color:var(--ink); margin:0; font-size:clamp(24px,3vw,32px); line-height:1.2; }
.seo-hub .section-head p { margin:0; color:var(--muted); font-size:15px; }
.seo-hub .grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.seo-hub .card { min-width:0; display:flex; flex-direction:column; padding:22px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow: 0 16px 35px -32px rgba(31,45,72,.4); }
.seo-hub .card h3 { font-size:20px; line-height:1.3; margin:0 0 10px; }
.seo-hub .card h3 a { color:var(--ink); text-decoration:none; }
.seo-hub .card h3 a:hover { color:var(--blue-deep); }
.seo-hub .card p { color:var(--muted); margin:0 0 14px; }
.seo-hub .card .card-link { margin-top:auto; color:var(--blue-deep); font-weight:800; text-decoration:none; }
.seo-hub .card .card-link:hover { text-decoration:underline; }
@media (max-width:700px) {
  .seo-hub { margin-top:38px; }
  .seo-hub .grid { grid-template-columns:minmax(0,1fr); }
}
