/* Família Presente — atualização visual 2026 */
:root {
  --paper: #f5f9fc;
  --paper-2: #eaf2f8;
  --ink: #152b3b;
  --ink-soft: #40576a;
  --primary: #174f78;
  --primary-dark: #123850;
  --accent: #f0c34e;
  --sky: #2b8565;
  --line: #c9d8e2;
  --card: #ffffff;
  --danger: #a6432f;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); }
:focus-visible {
  outline: 3px solid #174f78;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}
header.site {
  background: rgb(245 249 252 / 96%);
  border-bottom-color: #c9d8e2;
}
.logo { color: #123850; }
.logo span { color: #a7461a; }
nav.primary-links a { color: #284b64; }
nav.primary-links a:hover,
nav.primary-links a:focus-visible { color: #123850; border-bottom-color: #f0c34e; }
.btn-a11y { border-color: #8eaabd; color: #174f78; }
.btn-a11y:hover { background: #eaf2f8; }
section.tinted { background: #eaf2f8; }
.section-head h2,
.hero h1,
.partner-card h3,
.tool-question { color: #123850; }
.hero-image-wrap { box-shadow: 0 20px 48px -20px rgb(18 56 80 / 38%); }
.hero-tag {
  background: #a7461a;
  color: #fff;
  border-color: #fff;
  outline-color: #a7461a;
}
.btn-primary { background: #174f78; color: #fff; }
.btn-primary:hover { background: #123850; }
.btn-ghost { border-color: #174f78; color: #174f78; }
.btn-ghost:hover { background: #174f78; color: #fff; }
.tool-option.active { background: #174f78; border-color: #174f78; color: #fff; }
.tool-result-item .label { color: #174f78; }
:root { --brand-yellow: #f0c34e; --brand-green: #237452; --brand-purple: #7552a2; --brand-orange: #a7461a; }

/* Primeira dobra: foco em dois caminhos claros; atalhos existentes continuam disponíveis. */
.brand-eyebrow,
.brand-kicker,
.service-kicker,
.issue-kicker {
  color: #174f78;
  font-family: var(--font-mono);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.4;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.brand-tagline {
  color: #237452;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  margin: -8px 0 14px;
  max-width: 30ch;
}
.brand-slogan {
  align-items: center;
  background: #fff4cf;
  border-left: 5px solid #f0c34e;
  border-radius: 0 12px 12px 0;
  color: #243e52;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 20px 0 18px;
  padding: 12px 16px;
}
.brand-slogan strong {
  color: #174f78;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
}
.brand-slogan span { font-weight: 600; }
.hero-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}
.hero-path-actions .btn {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size: 1rem;
  justify-content: center;
  min-height: 54px;
  padding: 13px 20px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-path-actions .btn:hover { box-shadow: 0 8px 18px rgb(18 56 80 / 18%); transform: translateY(-2px); }
.btn-pathway {
  background: #f0c34e;
  border: 1px solid #d2a531;
  color: #183248;
}
.btn-pathway:hover { background: #f7d36f; }
.btn-network {
  background: #237452;
  border: 1px solid #1e6046;
  color: #fff;
}
.btn-network:hover { background: #1d5e46; }
.hero-ctas { gap: 9px; }
.hero-ctas .btn {
  border-color: transparent;
  border-radius: 7px;
  color: #174f78;
  font-size: .88rem;
  min-height: 40px;
  padding: 8px 12px;
  text-decoration: underline;
  text-decoration-color: #a9bfd0;
  text-underline-offset: 3px;
}
.hero-ctas .btn:hover { background: #eaf2f8; color: #123850; }

/* Roteiro por situação */
.issue-picker {
  background: linear-gradient(135deg, #fff 0%, #f3f8fb 100%);
  border: 1px solid #c9d8e2;
  border-radius: 18px;
  margin: 0 0 28px;
  padding: 24px;
}
.issue-picker h3 {
  color: #123850;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  margin: 0 0 7px;
}
.issue-intro { color: #40576a; margin: 0 0 18px; max-width: 66ch; }
.issue-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.issue-option {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d8e2;
  border-left: 5px solid var(--issue-accent, #174f78);
  border-radius: 12px;
  color: #1c374b;
  cursor: pointer;
  display: flex;
  font: 600 .94rem/1.35 var(--font-body);
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.issue-option:nth-child(1) { --issue-accent: #2b8565; }
.issue-option:nth-child(2) { --issue-accent: #d9a72e; }
.issue-option:nth-child(2) .issue-mark { color: #152b3b; }
.issue-option:nth-child(3) { --issue-accent: #a7461a; }
.issue-option:nth-child(4) { --issue-accent: #174f78; }
.issue-option:nth-child(5) { --issue-accent: #7552a2; }
.issue-option:nth-child(6) { --issue-accent: #b94c3f; }
.issue-option:nth-child(7) { --issue-accent: #355f9a; }
.issue-option:hover { box-shadow: 0 6px 15px rgb(18 56 80 / 12%); transform: translateY(-2px); }
.issue-option[aria-pressed="true"] { background: #e4f1eb; border-color: #2b8565; color: #174a39; }
.issue-option .issue-mark {
  align-items: center;
  background: var(--issue-accent, #174f78);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: .82rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}
.issue-status { color: #40576a; font-size: .89rem; margin: 14px 0 0; min-height: 1.4em; }
.care-note {
  background: linear-gradient(120deg, #fff7df 0%, #fff 82%);
  border: 1px solid #e6d28e;
  border-left: 5px solid #a7461a;
  border-radius: 0 12px 12px 0;
  margin: 18px 0 20px;
  padding: 16px 18px;
}
.care-note-kicker { color: #174f78; font: 700 .72rem var(--font-mono); letter-spacing: .08em; margin: 0 0 6px; }
.care-note h4 { color: #123850; font: 700 1.18rem/1.25 var(--font-display); margin: 0 0 7px; }
.care-note > p:not(.care-note-kicker) { color: #40576a; line-height: 1.5; margin: 0 0 10px; }
.care-note-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.care-note-actions .btn { min-height: 44px; }
.care-note-link { color: #174f78; font-weight: 700; text-underline-offset: 3px; }
.care-note .care-note-limit { font-size: .84rem; margin: 10px 0 0; }
.tool-card { border-color: #c9d8e2; border-radius: 18px; box-shadow: 0 12px 28px rgb(18 56 80 / 6%); }
.tool-question { margin-top: 0; }
.tool-option { border-color: #b9ccd9; color: #284b64; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.tool-option:hover { border-color: #174f78; transform: translateY(-1px); }
.tool-result { border-top-color: #b6cad9; }
.tool-result-item { border-top: 3px solid #2b8565; }
.tool-result-item:nth-child(2) { border-top-color: #f0c34e; }
.tool-result-item:nth-child(3) { border-top-color: #7552a2; }
.tool-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn-copy-route {
  background: #174f78;
  border: 1px solid #123850;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font: 700 .92rem var(--font-body);
  min-height: 46px;
  padding: 11px 17px;
  transition: background .18s ease, transform .18s ease;
}
.btn-copy-route:hover { background: #123850; transform: translateY(-1px); }
.tool-copy-status { color: #236047; font-size: .9rem; margin: 0; min-height: 1.4em; }

/* Diretório/MAPA da rede local. Cartões e marcadores identificam categoria, não endereço. */
#rede-servicos.service-directory {
  background: #f1f6fa;
  border: 1px solid #c9d8e2;
  border-radius: 22px;
  margin-top: 52px;
  padding: clamp(22px, 4vw, 38px);
  scroll-margin-top: 18px;
}
#rede-servicos .service-directory-head { margin-bottom: 24px; max-width: 72ch; }
#rede-servicos h3 {
  color: #123850;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.16;
  margin: 0 0 10px;
}
.service-directory-head > p:last-child { color: #40576a; margin: 0; }
.service-filter-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.service-filter {
  background: #fff;
  border: 1px solid #96afc0;
  border-radius: 99px;
  color: #174f78;
  cursor: pointer;
  font: 650 .88rem var(--font-body);
  min-height: 42px;
  padding: 9px 15px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.service-filter:hover { transform: translateY(-1px); }
.service-filter[aria-pressed="true"] { background: #174f78; border-color: #174f78; color: #fff; }
.service-filter-status { color: #40576a; font-size: .87rem; margin: 0 0 16px; }
.service-card-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card {
  --service-color: #174f78;
  --service-wash: #eaf2f8;
  background: #fff;
  border: 1px solid #d0dce4;
  border-top: 5px solid var(--service-color);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: 0 12px 24px rgb(18 56 80 / 12%); transform: translateY(-3px); }
.service-card[hidden] { display: none !important; }
.service-card[data-service-category="saude"] { --service-color: #174f78; --service-wash: #eaf2f8; }
.service-card[data-service-category="educacao"] { --service-color: #93650a; --service-wash: #fff3d5; }
.service-card[data-service-category="assistencia"] { --service-color: #2b7058; --service-wash: #e8f3ed; }
.service-card[data-service-category="direitos"] { --service-color: #68498e; --service-wash: #f1eaf7; }
.service-card[data-service-category="transporte"] { --service-color: #a84622; --service-wash: #fff0e6; }
.service-card[data-service-category="acessibilidade"] { --service-color: #275e78; --service-wash: #e8f3f7; }
.service-card[data-service-category="beneficios"] { --service-color: #67477f; --service-wash: #f3ecf8; }
.service-card-top { align-items: center; display: flex; gap: 10px; margin-bottom: 12px; }
.service-icon {
  align-items: center;
  background: var(--service-wash);
  border: 1px solid color-mix(in srgb, var(--service-color), white 68%);
  border-radius: 50%;
  color: var(--service-color);
  display: inline-flex;
  flex: 0 0 42px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.service-card-type { color: var(--service-color); font: 700 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.service-card h4 { color: #18374d; font: 650 1.16rem/1.25 var(--font-display); margin: 0 0 8px; }
.service-card p { color: #40576a; font-size: .91rem; line-height: 1.5; margin: 0 0 16px; }
.service-card-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.service-unit-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.service-unit-links a {
  align-items: center;
  background: #f3f8fb;
  border: 1px solid #b9ccd9;
  border-radius: 8px;
  color: #174f78;
  display: flex;
  font-size: .84rem;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 10px;
  text-underline-offset: 3px;
}
.service-action { align-self: flex-start; font-size: .87rem; min-height: 42px; padding: 9px 14px; }
.service-source { align-self: flex-start; color: #174f78; font-size: .86rem; font-weight: 650; text-underline-offset: 3px; }
.service-directory-note {
  background: #fff4cf;
  border-left: 4px solid #d9a72e;
  border-radius: 0 10px 10px 0;
  color: #3f3724;
  font-size: .88rem;
  margin: 18px 0 0;
  padding: 12px 15px;
}
.service-directory-note strong { color: #3a2d0b; }

/* Atalhos de navegação e responsividade */
#ferramenta,
#parceiros,
#rede-servicos { scroll-margin-top: 20px; }
#parceiros .partner-card { border-radius: 16px; border-color: #c9d8e2; box-shadow: 0 8px 20px rgb(18 56 80 / 6%); }
#parceiros .partner-badge { border-color: #174f78; color: #174f78; }
#parceiros .community-prompt { border-radius: 14px; }
@media (max-width: 900px) {
  .service-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hero { padding-top: 36px; }
  .brand-slogan { align-items: flex-start; flex-direction: column; gap: 3px; }
  .hero-path-actions { display: grid; grid-template-columns: 1fr; }
  .hero-path-actions .btn { width: 100%; }
  .hero-ctas { gap: 4px 8px; }
  .hero-ctas .btn { font-size: .82rem; padding: 7px 5px; }
  .issue-picker { padding: 17px; }
  .issue-options { grid-template-columns: 1fr; }
  .tool-card { padding: 20px; }
  #rede-servicos.service-directory { padding: 20px 16px; }
  .service-card-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-unit-links { grid-template-columns: 1fr; }
  .service-filter-list { gap: 7px; }
  .service-filter { min-height: 40px; padding: 8px 12px; }
  .tool-actions { align-items: stretch; flex-direction: column; }
  .btn-copy-route { width: 100%; }
  .care-note-actions { align-items: stretch; flex-direction: column; }
  .care-note-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .brand-tagline { animation: fp-welcome .5s ease-out both; }
  .hero-image-wrap { animation: fp-image-in .6s ease-out both; }
  .service-card { animation: fp-card-in .35s ease-out both; }
  .service-card:nth-child(2) { animation-delay: 25ms; }
  .service-card:nth-child(3) { animation-delay: 50ms; }
  .service-card:nth-child(4) { animation-delay: 75ms; }
  .service-card:nth-child(5) { animation-delay: 100ms; }
  .service-card:nth-child(6) { animation-delay: 125ms; }
  .service-card:nth-child(7) { animation-delay: 150ms; }
}
@keyframes fp-welcome { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fp-image-in { from { opacity: .65; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fp-card-in { from { opacity: .78; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Harmonização do painel de apoio com a estrutura azul da identidade atual. */
.help-contacts { background: linear-gradient(180deg, #f5f9fc 0%, #eaf2f8 100%); border-top-color: #f0c34e; }
.help-kicker, .help-heading h2, .help-primary h3, .help-service-number, .help-service-card h3, .help-sources h3 { color: #123850; }
.help-button { border-color: #174f78; color: #174f78; }
.help-button-primary { background: #174f78; border-color: #174f78; color: #fff; }
.help-text-link { color: #174f78; }
.help-service-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.help-service-card { border-color: #c9d8e2; border-top-color: #7552a2; }
.help-service-women { border-top-color: #a43e68; }
.help-service-mg, .help-service-cvv { border-top-color: #237452; }
.help-service-cvv .help-service-number { color: #237452; }
.help-emergency { background: #123850; border-color: #174f78; }
.help-emergency-card { color: #123850; }
.help-sources { border-color: #c9d8e2; }
.btn-urgent-link { color: #123850 !important; }


/* Tratados da ONU — cards editoriais inspirados em carrosséis de educação cidadã. */
.treaty-feature {
  background: linear-gradient(135deg, #eaf2f8 0%, #f8fbfd 56%, #fff8e6 100%);
  border: 1px solid #c9d8e2;
  border-top: 6px solid #f0c34e;
  border-radius: 20px;
  margin: 30px 0 38px;
  padding: clamp(18px, 3vw, 30px);
}
.treaty-feature-heading { max-width: 74ch; }
.treaty-kicker {
  color: #174f78;
  font: 700 .74rem/1.4 var(--font-mono);
  letter-spacing: .1em;
  margin: 0 0 8px;
}
.treaty-feature-heading h3 {
  color: #123850;
  font: 700 clamp(1.55rem, 3vw, 2.15rem)/1.12 var(--font-display);
  margin: 0 0 10px;
  max-width: 24ch;
}
.treaty-feature-heading > p:last-child {
  color: #344f63;
  line-height: 1.55;
  margin: 0;
}
.treaty-carousel-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  margin: 22px 0 12px;
}
.treaty-carousel-status {
  color: #123850;
  font: 700 .88rem/1.4 var(--font-mono);
  margin: 0;
}
.treaty-carousel-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.treaty-carousel-buttons button {
  background: #174f78;
  border: 1px solid #123850;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font: 700 .9rem/1.2 var(--font-body);
  min-height: 44px;
  min-width: 96px;
  padding: 10px 14px;
}
.treaty-carousel-buttons button:hover:not(:disabled) { background: #123850; }
.treaty-carousel-buttons button:disabled { cursor: not-allowed; opacity: .5; }
.treaty-track {
  display: grid;
  gap: 16px;
  grid-auto-columns: 360px;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 16px;
  padding-inline-end: max(4px, calc(100% - 360px + 4px));
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #174f78 #dbe7ef;
  scrollbar-width: thin;
}
.treaty-card {
  background: #fff;
  border: 1px solid #c9d8e2;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgb(18 56 80 / 8%);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
}
.treaty-card img {
  aspect-ratio: 1 / 1;
  background: #123850;
  display: block;
  object-fit: cover;
  width: 100%;
}
.treaty-card-body {
  align-items: flex-start;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}
.treaty-card-label {
  border-radius: 4px;
  color: #123850;
  display: inline-block;
  font: 700 .7rem/1.25 var(--font-mono);
  letter-spacing: .04em;
  margin: 0 0 10px;
  padding: 6px 9px;
  text-transform: uppercase;
}
.treaty-label-specific { background: #f0c34e; }
.treaty-label-child { background: #f7e5a9; }
.treaty-label-social { background: #dcebe3; color: #174a39; }
.treaty-label-civic { background: #e5dcf0; color: #50346d; }
.treaty-card h4 {
  color: #123850;
  font: 700 1.2rem/1.15 var(--font-display);
  margin: 0 0 10px;
}
.treaty-card p {
  color: #344f63;
  font-size: .91rem;
  line-height: 1.52;
  margin: 0 0 16px;
}
.treaty-read-link {
  align-items: center;
  background: #174f78;
  border: 1px solid #123850;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: auto;
  min-height: 44px;
  padding: 10px 13px;
  text-decoration: underline;
  text-decoration-color: #b9d5e6;
  text-underline-offset: 3px;
}
.treaty-read-link:hover { background: #123850; color: #fff; }
.treaty-carousel-hint {
  color: #40576a;
  font-size: .83rem;
  line-height: 1.45;
  margin: 10px 0 0;
}
@media (max-width: 900px) {
  .treaty-track {
    grid-auto-columns: 340px;
    padding-inline-end: max(4px, calc(100% - 340px + 4px));
  }
}
@media (max-width: 680px) {
  .treaty-feature { border-radius: 15px; padding: 18px 14px; }
  .treaty-carousel-controls { align-items: flex-start; flex-direction: column; }
  .treaty-carousel-buttons { width: 100%; }
  .treaty-carousel-buttons button { flex: 1; }
  .treaty-track {
    grid-auto-columns: min(84vw, 340px);
    gap: 12px;
    padding-inline-end: max(4px, calc(100% - min(84vw, 340px) + 4px));
  }
  .treaty-card-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .treaty-track { scroll-behavior: auto !important; }
  .treaty-carousel-buttons button,
  .treaty-read-link { transition: none !important; }
}
