/*
Theme Name:  ADEVOSC
Theme URI:   https://adevosc.org.br
Author:      ADEVOSC — Associação De Deficientes Visuais Do Oeste De Santa Catarina
Author URI:  https://adevosc.org.br
Description: Tema acessível oficial da ADEVOSC. WCAG 2.1 AA. Paleta institucional: amarelo #F0AD00, azul-marinho #1B2951, verde #2D5A4F. Suporte a alto contraste, controle de tamanho de fonte e navegação 100% por teclado.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adevosc
Tags:        accessibility-ready, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   TOKENS — Paleta oficial ADEVOSC
   ============================================================ */
:root {
  --yellow:     #F0AD00;
  --navy:       #1B2951;
  --green:      #2D5A4F;
  --white:      #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-text:  #555555;
  --black:      #000000;
  --red-error:  #C0392B;

  --font-base:  'Nunito', system-ui, -apple-system, sans-serif;
  --size-base:  18px;
  --lh-base:    1.65;
  --radius:     8px;
  --radius-lg:  14px;
  --max-w:      1200px;
  --shadow-sm:  0 2px 8px rgba(27,41,81,.07);
  --shadow-md:  0 6px 24px rgba(27,41,81,.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: var(--lh-base);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--green); }

ul, ol { list-style: none; }

/* ============================================================
   ACESSIBILIDADE — Alto Contraste
   ============================================================ */
body.alto-contraste {
  --yellow:     #FFFF00;
  --navy:       #000000;
  --green:      #000000;
  --white:      #FFFFFF;
  --gray-light: #111111;
  --gray-text:  #FFFFFF;
  --black:      #000000;
  background: #000;
  color: #FFFF00;
}
body.alto-contraste img { filter: grayscale(100%) contrast(140%); }
body.alto-contraste a  { color: #FFFF00; }

/* ============================================================
   FOCO — WCAG 2.4.7 / 2.4.11
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  transition: none;
}
.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  z-index: 9999;
  outline: 3px solid var(--navy);
  outline-offset: 0;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

/* Logo */
.site-branding a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  border-radius: var(--radius);
}
.site-branding img {
  height: 48px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}
.site-title {
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

/* Primary nav */
#primary-menu-container {
  display: flex;
  align-items: center;
}
#primary-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
#primary-menu li a {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .83rem;
  white-space: nowrap;
  transition: background .15s, color .15s;
  border: 2px solid transparent;
}
#primary-menu li a:hover,
#primary-menu li a:focus-visible {
  background: rgba(240,173,0,.18);
  color: var(--yellow);
  outline: none;
  border-color: var(--yellow);
}
#primary-menu li.current-menu-item > a,
#primary-menu li.current_page_item > a {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
}

/* Accessibility toolbar */
.a11y-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.a11y-toolbar button {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  border-radius: 5px;
  padding: 5px 9px;
  cursor: pointer;
  font-family: var(--font-base);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.a11y-toolbar button:hover { background: rgba(255,255,255,.1); }
.a11y-toolbar button:disabled { opacity: .4; cursor: not-allowed; }
.a11y-toolbar button[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}

/* Mobile menu button */
#mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  line-height: 0;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}
#mobile-menu-toggle svg { width: 22px; height: 22px; }

/* Mobile menu panel */
#mobile-menu-panel {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 24px;
}
#mobile-menu-panel.is-open { display: block; }
#mobile-menu-panel a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
  transition: background .12s;
}
#mobile-menu-panel a:hover,
#mobile-menu-panel a:focus-visible {
  background: rgba(240,173,0,.15);
  color: var(--yellow);
  outline: none;
}
#mobile-menu-panel .current-menu-item a,
#mobile-menu-panel .current_page_item a {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 960px) {
  #primary-menu-container { display: none; }
  #mobile-menu-toggle { display: flex; }
  .a11y-label { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
  color: var(--white);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 340px; height: 100%;
  background-image: radial-gradient(circle, var(--yellow) 2px, transparent 2px);
  background-size: 28px 28px;
  opacity: .06;
  pointer-events: none;
}
body.alto-contraste .hero::after { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 680px; }

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero p {
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

body.alto-contraste .hero { background: #000; }
body.alto-contraste .hero h1 { color: #FFFF00; }
body.alto-contraste .hero p  { color: #FFFFFF; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-base);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  line-height: 1;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(240,173,0,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,173,0,.45);
  color: var(--navy);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--green); color: var(--white); }
.btn-sm {
  padding: 10px 20px;
  font-size: .85rem;
}

/* ============================================================
   STAT BAR
   ============================================================ */
.stat-bar {
  background: var(--yellow);
  padding: 28px 24px;
}
.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--navy);
  opacity: .85;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 72px 24px; }
.section-white  { background: var(--white); }
.section-gray   { background: var(--gray-light); }
.section-navy   { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--yellow); }
.section-navy p  { color: rgba(255,255,255,.88); }

.section-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  margin-bottom: 10px;
}
body.alto-contraste .section-label { color: var(--yellow); }

.section-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-subheading {
  font-size: 1rem;
  color: var(--gray-text);
  margin-bottom: 48px;
  line-height: 1.6;
}
.section-center { text-align: center; }
.section-center .section-heading,
.section-center .section-subheading { max-width: 640px; margin-inline: auto; }

/* ============================================================
   CARDS — ACESSO RÁPIDO
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.access-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(27,41,81,.1);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  box-shadow: var(--shadow-sm);
}
.access-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
  color: var(--navy);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; color: var(--navy); }
.access-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.access-card p {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--gray-text);
  flex-grow: 1;
  margin-bottom: 20px;
}
.card-more {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
  font-size: .88rem;
}
.card-more svg { width: 15px; height: 15px; }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(27,41,81,.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.news-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.news-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.news-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--white);
}
.news-badge.cat-evento   { background: var(--green); }
.news-badge.cat-conquista { background: #7B5E00; }
.news-badge.cat-capacitacao { background: #6B35A0; }

.news-date {
  font-size: .77rem;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-date svg { width: 13px; height: 13px; }

.news-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card p {
  font-size: .88rem;
  color: var(--gray-text);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
.read-more svg { width: 15px; height: 15px; }
.read-more:hover { color: var(--navy); }

/* ============================================================
   MISSION SPLIT
   ============================================================ */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-grid img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 5/4;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.split-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-img { order: -1; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: clamp(22px, 3vw, 36px); font-weight: 800; margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.7; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }
.cta-icon { color: var(--yellow); margin-bottom: 20px; }
.cta-icon svg { width: 40px; height: 40px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(26px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,.88); font-size: 1rem; line-height: 1.7; max-width: 640px; margin-inline: auto; }
body.alto-contraste .page-hero { background: #000; }
body.alto-contraste .page-hero h1 { color: #FFFF00; }
body.alto-contraste .page-hero p  { color: #FFFFFF; }

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.team-card {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(27,41,81,.1);
  box-shadow: var(--shadow-sm);
}
.team-card img { width: 100%; height: 220px; object-fit: cover; }
.team-card-body { padding: 24px; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-role {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}
.team-card p { font-size: .88rem; color: var(--gray-text); line-height: 1.6; }

/* ============================================================
   MVV CARDS
   ============================================================ */
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-bottom: 56px; }
.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(27,41,81,.1);
  border-top: 4px solid var(--yellow);
  box-shadow: var(--shadow-sm);
}
.mvv-card.accent-navy { border-top-color: var(--navy); }
.mvv-card.accent-green { border-top-color: var(--green); }
.mvv-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.mvv-card p  { font-size: .94rem; color: var(--gray-text); line-height: 1.7; }

.valores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.valor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(27,41,81,.1);
  box-shadow: var(--shadow-sm);
}
.valor-icon {
  width: 48px; height: 48px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.valor-icon svg { width: 22px; height: 22px; color: var(--navy); }
.valor-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.valor-card p  { font-size: .83rem; color: var(--gray-text); line-height: 1.6; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(27,41,81,.1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-icon {
  width: 60px; height: 60px;
  background: var(--yellow);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.service-icon svg { width: 28px; height: 28px; color: var(--navy); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card > p { font-size: .94rem; color: var(--gray-text); line-height: 1.7; margin-bottom: 20px; flex-grow: 1; }
.service-card ul { list-style: none; margin: 0 0 20px; padding: 0; }
.service-card ul li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .88rem; color: var(--gray-text);
  margin-bottom: 6px; line-height: 1.5;
}
.service-card ul li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
  margin-top: 8px;
}
.service-public {
  font-size: .8rem;
  color: var(--gray-text);
  font-style: italic;
  padding: 10px 14px;
  background: var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 20px;
  line-height: 1.5;
}
.service-public strong { color: var(--green); font-style: normal; }

/* ============================================================
   HOW TO ACCESS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
.step-card {
  padding: 24px 20px;
  background: rgba(240,173,0,.1);
  border: 1px solid rgba(240,173,0,.25);
  border-radius: 12px;
  text-align: center;
}
.step-num {
  width: 40px; height: 40px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-card p { font-size: .88rem; color: rgba(255,255,255,.85); line-height: 1.5; margin: 0; }
.step-card strong { color: var(--white); display: block; font-size: .94rem; margin-bottom: 4px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav { margin-top: 48px; }
.pagination-nav ul {
  display: flex; gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.pagination-nav a,
.pagination-nav span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(27,41,81,.15);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  transition: background .12s, color .12s;
}
.pagination-nav a:hover { background: var(--gray-light); }
.pagination-nav .current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 700;
}

/* ============================================================
   FILTER BUTTONS
   ============================================================ */
.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}
.filter-group p { font-size: .88rem; font-weight: 700; color: var(--navy); margin-right: 4px; flex-shrink: 0; }
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid rgba(27,41,81,.2);
  background: transparent;
  color: var(--navy);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: all .12s;
}
.filter-btn:hover  { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ============================================================
   HOW TO HELP (Como Ajudar)
   ============================================================ */
.help-anchor-nav {
  background: var(--yellow);
  padding: 16px 24px;
}
.help-anchor-nav ul {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.help-anchor-nav a {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s;
}
.help-anchor-nav a:hover { background: var(--green); }

.help-section-icon {
  width: 56px; height: 56px;
  background: var(--yellow);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.help-section-icon svg { width: 26px; height: 26px; color: var(--navy); }
.help-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.help-header h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.help-header .subtitle { color: var(--green); font-weight: 700; font-size: .94rem; }

.pix-box {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(27,41,81,.1);
}
.pix-box h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.pix-key {
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid rgba(27,41,81,.15);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.pix-key code { flex: 1; font-size: .94rem; font-weight: 700; color: var(--navy); font-family: monospace; }
.copy-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--navy);
  border: none; border-radius: 6px;
  padding: 8px; cursor: pointer;
  flex-shrink: 0;
}
.copy-btn svg { width: 18px; height: 18px; }
.copy-feedback { color: var(--green); font-size: .8rem; font-weight: 700; margin-top: 8px; display: none; }
.copy-feedback.show { display: block; }

.bank-details dt { display: inline; color: var(--green); font-weight: 700; font-size: .83rem; }
.bank-details dd { display: inline; color: var(--gray-text); font-size: .88rem; margin: 0 0 8px; }
.bank-details div { margin-bottom: 8px; }

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 32px;
}
.volunteer-item {
  display: flex; gap: 10px; align-items: center;
  background: var(--white); border-radius: var(--radius);
  padding: 14px 18px;
  border: 1px solid rgba(27,41,81,.1);
  font-size: .94rem; font-weight: 600; color: var(--gray-text);
}
.volunteer-item::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.material-list { list-style: none; margin: 0 0 32px; }
.material-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27,41,81,.08);
  font-size: .94rem; color: var(--gray-text); line-height: 1.5;
}
.material-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800;
  flex-shrink: 0; margin-top: 2px;
}

.partnership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-bottom: 36px;
}
.partnership-card {
  background: rgba(240,173,0,.1);
  border: 1px solid rgba(240,173,0,.25);
  border-radius: 12px;
  padding: 24px 20px;
}
.partnership-card h3 { color: var(--yellow); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.partnership-card p  { color: rgba(255,255,255,.8); font-size: .83rem; line-height: 1.6; }

.info-note {
  padding: 14px 18px;
  background: #EBF5FB;
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--gray-text);
  line-height: 1.6;
}
.info-note strong { color: var(--navy); }
body.alto-contraste .info-note { background: #111; border-color: #FFFF00; color: #FFF; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(27,41,81,.1);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.contact-info-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 24px; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--yellow); color: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; }
.contact-item-label {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--green); margin-bottom: 4px; display: block;
}
.contact-item-value { font-size: .94rem; color: var(--gray-text); line-height: 1.5; }
.contact-item-value a { color: var(--navy); font-weight: 600; }

.a11y-note {
  background: var(--yellow); border-radius: 12px; padding: 18px 22px;
}
.a11y-note p { color: var(--navy); font-size: .88rem; line-height: 1.6; margin: 0; }
.a11y-note strong { font-weight: 700; display: block; margin-bottom: 4px; }

/* FORM */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(27,41,81,.1);
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.contact-form-wrap .form-intro { font-size: .88rem; color: var(--gray-text); margin-bottom: 28px; line-height: 1.6; }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: .94rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field .field-hint {
  font-size: .77rem;
  color: var(--gray-text);
  margin-bottom: 6px;
  display: block;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 2px solid rgba(27,41,81,.2);
  background: var(--gray-light);
  color: var(--navy);
  font-size: .94rem;
  font-family: var(--font-base);
  line-height: 1.5;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--yellow);
  background: var(--white);
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 140px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.field-error {
  display: flex; gap: 6px; align-items: center;
  color: var(--red-error);
  font-size: .8rem;
  margin-top: 6px;
}
.field-error svg { width: 14px; height: 14px; flex-shrink: 0; }
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field select[aria-invalid="true"] { border-color: var(--red-error); }

.char-count { font-size: .77rem; color: var(--gray-text); text-align: right; margin-top: 4px; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-base);
  border: none;
  cursor: pointer;
}
.btn-submit:hover { background: var(--green); }
.btn-submit:disabled { opacity: .65; cursor: wait; }
.submit-help { text-align: center; font-size: .8rem; color: var(--gray-text); margin-top: 10px; }

.form-success {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 24px;
  background: #EAFAF1;
  border: 2px solid var(--green);
  border-radius: 10px;
  margin-bottom: 24px;
}
.form-success svg { color: var(--green); flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; }
.form-success strong { color: var(--green); display: block; font-size: 1rem; margin-bottom: 4px; }
.form-success p { color: var(--gray-text); font-size: .88rem; margin: 0; }
body.alto-contraste .form-success { background: #111; border-color: #FFFF00; }
body.alto-contraste .form-success svg,
body.alto-contraste .form-success strong { color: #FFFF00; }

/* ============================================================
   PARTNERS TAG CLOUD
   ============================================================ */
.partners-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.partner-tag {
  background: var(--white);
  border: 1px solid rgba(27,41,81,.1);
  border-radius: 10px;
  padding: 18px 22px;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-base);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 56px 24px 32px;
  max-width: var(--max-w);
  margin-inline: auto;
}
.footer-col-title {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.footer-about p { color: rgba(255,255,255,.75); font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-about-note {
  padding: 12px 16px;
  background: rgba(240,173,0,.12);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .77rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}
.footer-about-note strong { color: var(--white); }

.footer-links ul { padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .88rem;
  transition: color .12s;
}
.footer-links a::before { content: '→ '; }
.footer-links a:hover { color: var(--yellow); }

.footer-contact address { font-style: normal; }
.footer-contact-item {
  display: flex; gap: 12px;
  align-items: flex-start; margin-bottom: 14px;
}
.footer-contact-item svg { color: var(--yellow); flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }
.footer-contact-item a { color: rgba(255,255,255,.8); text-decoration: underline; font-size: .88rem; }
.footer-contact-item p { color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.5; margin: 0; }

.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: all .12s;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: rgba(240,173,0,.2); color: var(--yellow); border-color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 24px;
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: .77rem; color: rgba(255,255,255,.55); margin: 0; }

/* ============================================================
   404 / GENERIC PAGE
   ============================================================ */
.error-page { text-align: center; padding: 100px 24px; }
.error-page h1 { font-size: clamp(40px, 8vw, 100px); font-weight: 800; color: var(--yellow); margin-bottom: 16px; line-height: 1; }
.error-page h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.error-page p  { font-size: 1rem; color: var(--gray-text); margin-bottom: 32px; max-width: 480px; margin-inline: auto; }

.entry-content { max-width: 780px; margin: 48px auto; }
.entry-content h2, .entry-content h3 { color: var(--navy); margin: 28px 0 14px; }
.entry-content p  { color: var(--gray-text); font-size: 1rem; line-height: 1.75; margin-bottom: 20px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.entry-content li { color: var(--gray-text); line-height: 1.7; margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 600px) {
  .section { padding: 48px 16px; }
  .hero    { padding: 56px 16px; }
  .help-header { flex-direction: column; }
  .contact-form-wrap { padding: 24px; }
  .footer-inner { padding: 40px 16px 24px; }
}

/* ============================================================
   AJUSTE 01 — HERO SLIDER NATIVO
   ============================================================ */

/* Wrapper do slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy); /* fallback enquanto carrega */
}

/* Plugin externo: garante que ocupa largura total */
.hero-plugin-wrap {
  width: 100%;
  display: block;
}

/* Track que contém todos os slides */
.slider-track {
  display: grid;
  /* empilha slides via subgrid — apenas o .is-active é visível */
}

/* Cada slide fica sobreposto */
.slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
  /* Impede que slides ocultos recebam foco por teclado */
  visibility: hidden;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Respeita prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* Remove margin/padding extras do .hero quando dentro do slider */
.slide .hero {
  margin: 0;
}

/* ── Botões anterior / próximo ── */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(27, 41, 81, 0.65);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 0;
}
.slider-btn:hover {
  background: rgba(240, 173, 0, 0.85);
  border-color: var(--yellow);
  color: var(--navy);
}
.slider-btn--prev { left: 20px; }
.slider-btn--next { right: 20px; }

/* ── Dots ── */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.slider-dot.is-active,
.slider-dot[aria-selected="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.25);
}
.slider-dot:hover {
  border-color: var(--yellow);
}

/* ── Botão pausar ── */
.slider-pause {
  position: absolute;
  bottom: 14px;
  right: 20px;
  z-index: 10;
  background: rgba(27, 41, 81, 0.55);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  transition: background 0.12s;
}
.slider-pause:hover { background: rgba(240, 173, 0, 0.75); color: var(--navy); }
.slider-pause[aria-pressed="true"] .pause-icon { display: none !important; }
.slider-pause[aria-pressed="true"] .play-icon  { display: inline !important; }

/* ── Alto contraste: garante bordas visíveis nos controles ── */
body.alto-contraste .slider-btn,
body.alto-contraste .slider-dot,
body.alto-contraste .slider-pause {
  border-color: #FFFF00;
  color: #FFFF00;
}
body.alto-contraste .slider-dot.is-active {
  background: #FFFF00;
  color: #000;
}

/* ── Mobile: botões menores ── */
@media (max-width: 600px) {
  .slider-btn { width: 36px; height: 36px; }
  .slider-btn--prev { left: 8px; }
  .slider-btn--next { right: 8px; }
  .slider-dots { bottom: 48px; } /* sobe para não colidir com pause */
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, #site-footer, .a11y-toolbar, .hero-actions { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a::after { content: ' (' attr(href) ')'; font-size: 10pt; }
}
