/* =============================================
   ABRIGO SANTA HELENA — DESIGN SYSTEM
   ============================================= */

/* ---- Custom Properties ---- */
:root {
  --azul: #00478F;
  --azul-claro: #0082D6;
  --verde: #4CAF50;
  --verde-dark: #388E3C;
  --amarelo: #FFC107;
  --texto: #1A2B4A;
  --texto-muted: #5A6A82;
  --fundo-alt: #EEF5FF;
  --border: #D4E3F5;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,71,143,0.08);
  --shadow-md: 0 6px 24px rgba(0,71,143,0.12);
  --shadow-lg: 0 16px 48px rgba(0,71,143,0.16);
  --transition: 0.28s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Skip nav ---- */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--azul);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-nav:focus { left: 0; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 800px; }

/* ---- Typography ---- */
h1, h2 { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,71,143,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--azul);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo-icon { flex-shrink: 0; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-link {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texto);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--azul); background: var(--fundo-alt); }
.nav-link-active { color: var(--azul); font-weight: 600; }

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--verde);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
  margin-left: 8px;
}
.nav-cta-btn:hover { background: var(--verde-dark); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--fundo-alt); }
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.btn:active { transform: translateY(0); }

.btn-green { background: var(--verde); color: var(--white); }
.btn-green:hover { background: var(--verde-dark); box-shadow: 0 4px 16px rgba(76,175,80,0.35); }

.btn-blue { background: var(--azul); color: var(--white); }
.btn-blue:hover { background: #003575; box-shadow: 0 4px 16px rgba(0,71,143,0.3); }

.btn-outline-blue {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}
.btn-outline-blue:hover { background: var(--azul); color: var(--white); }

.btn-large { padding: 17px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; min-height: 40px; }
.btn-full { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero-section {
  position: relative;
  min-height: 92vh;
  background: linear-gradient(145deg, #00347A 0%, #00478F 45%, #005BB5 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 24px 80px;
}

/* Decorative arcs echoing the logo wings */
.hero-bg-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-arc {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.06);
}
.hero-arc-a { width: 900px; height: 900px; right: -200px; top: -300px; border-color: rgba(76,175,80,0.12); background: radial-gradient(circle, rgba(76,175,80,0.04) 0%, transparent 70%); }
.hero-arc-b { width: 600px; height: 600px; right: 100px; top: -100px; border-color: rgba(255,193,7,0.1); }
.hero-arc-c { width: 1200px; height: 1200px; right: -400px; top: -500px; border-color: rgba(255,255,255,0.04); }

.hero-body {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.hero-headline {
  color: var(--white);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: italic;
  color: var(--amarelo);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-link-sec {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.hero-link-sec:hover { color: var(--white); border-color: var(--white); }

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; }

/* ============================================
   SECTIONS — BASE
   ============================================ */
.page-section { padding: 88px 0; }
.bg-white { background: var(--white); }
.bg-alt { background: var(--fundo-alt); }
.bg-dark {
  background: var(--azul);
  color: var(--white);
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-title { color: var(--azul); margin-bottom: 20px; }
.bg-dark .section-title { color: var(--white); }

.section-body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--texto-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.bg-dark .section-body { color: rgba(255,255,255,0.75); }

.subsection-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul-claro);
  margin-bottom: 24px;
}

/* ============================================
   WAVE SEPARATORS
   ============================================ */
.wave-sep { line-height: 0; margin: 0; }
.wave-sep svg { width: 100%; display: block; }
/* Each wave-sep background = color of the section ABOVE it */
.wave-sep-to-alt   { background: var(--white); }      /* white → alt */
.wave-sep-from-alt { background: var(--white); }      /* alt → white: bottom exposes white */
.wave-sep-to-dark  { background: var(--fundo-alt); }  /* alt → dark */
.wave-sep-from-dark{ background: var(--white); }      /* dark → white: bottom exposes white */

/* ============================================
   STATS (Dobra 2)
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-icon { margin-bottom: 16px; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--azul);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.9rem; color: var(--texto-muted); font-weight: 500; }

/* ============================================
   TIMELINE (Dobra 2)
   ============================================ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 40px;
  margin-top: 16px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--azul), var(--azul-claro), var(--verde));
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}
.timeline-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--azul-claro);
  z-index: 1;
}
.tl-dot-active {
  background: var(--verde);
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(76,175,80,0.2);
}

.tl-year {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 4px;
}
.tl-content p { color: var(--texto-muted); font-size: 0.95rem; }

/* ============================================
   TESTIMONIALS (Dobra 3)
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #FFF8E1;
  color: #7B6000;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 100px;
  width: fit-content;
}
.testimonial-badge-partner { background: #E3F2FD; color: #0052A3; }

.testimonial-card blockquote p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--texto);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.t-avatar-partner { background: var(--azul-claro); }
.t-info { display: flex; flex-direction: column; }
.t-info strong { font-size: 0.9rem; }
.t-info span { font-size: 0.8rem; color: var(--texto-muted); }

/* ============================================
   TEAM GRID (Dobra 4)
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.team-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--fundo-alt);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--azul);
  transition: background var(--transition), box-shadow var(--transition);
}
.team-item:hover { background: #DDE9FA; box-shadow: var(--shadow-sm); }
.team-icon { opacity: 0.9; }

/* ============================================
   INFRA GRID (Dobra 4)
   ============================================ */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.infra-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.infra-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.infra-icon { margin-bottom: 14px; }
.infra-card h4 { color: var(--azul); margin-bottom: 8px; font-size: 1rem; }
.infra-card p { color: var(--texto-muted); font-size: 0.9rem; line-height: 1.6; }

/* ============================================
   TRANSPARENCY (Dobra 5)
   ============================================ */
.transparency-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.chart-block { text-align: center; }
#donut-chart { margin: 0 auto 24px; display: block; max-width: 220px; }

.chart-legend { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.legend-row strong { margin-left: auto; font-weight: 700; color: var(--azul); }
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.transparency-intro {
  color: var(--texto-muted);
  margin-bottom: 28px;
  font-size: 0.975rem;
  line-height: 1.7;
}

.tripe-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.tripe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.tripe-card-hl {
  border-color: var(--verde);
  background: #F1FBF2;
}

.tripe-pct {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--azul);
  line-height: 1;
  margin-bottom: 6px;
}
.tripe-card-hl .tripe-pct { color: var(--verde-dark); }
.tripe-lbl { font-size: 0.78rem; color: var(--texto-muted); font-weight: 500; line-height: 1.4; }

.tripe-crit {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--verde);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

.solar-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amarelo);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.solar-icon { flex-shrink: 0; margin-top: 2px; }
.solar-text strong { display: block; font-size: 0.95rem; color: var(--azul); margin-bottom: 4px; }
.solar-text p { font-size: 0.875rem; color: var(--texto-muted); line-height: 1.55; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--azul-claro);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--transition), color var(--transition);
}
.link-arrow:hover { border-color: var(--azul-claro); color: var(--azul); }

/* ============================================
   HOW TO HELP (Dobra 6)
   ============================================ */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.help-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.help-card:hover { background: rgba(255,255,255,0.11); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.help-icon { margin-bottom: 4px; }
.help-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.help-card p { color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.65; }
.help-detail { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: -4px; }
.help-card .btn-green { align-self: flex-start; margin-top: 8px; }

/* ============================================
   PARTNERS (Dobra 7)
   ============================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: var(--fundo-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--texto-muted);
  text-align: center;
  padding: 12px;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: default;
}
.partner-item:hover { background: #DDE9FA; box-shadow: var(--shadow-sm); color: var(--azul); }

.partners-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--texto-muted);
}
.inline-link { color: var(--azul-claro); font-weight: 600; border-bottom: 1px solid currentColor; }
.inline-link:hover { color: var(--azul); }

/* ============================================
   FAQ (Dobra 8)
   ============================================ */
.faq-list { display: flex; flex-direction: column; gap: 32px; }

.faq-group { display: flex; flex-direction: column; gap: 0; }
.faq-category {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul-claro);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--texto);
  background: none;
  transition: color var(--transition);
}
.faq-btn:hover { color: var(--azul); }
.faq-btn:focus-visible { outline: 2px solid var(--azul); border-radius: 4px; }
.faq-btn[aria-expanded="true"] { color: var(--azul); font-weight: 600; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--texto-muted);
  transition: transform var(--transition);
}
.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--azul);
}

/* Override UA `hidden=display:none` so max-height transition can animate */
.faq-panel[hidden] { display: block !important; }

.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease, padding 0.32s ease;
  padding: 0;
}
.faq-panel:not([hidden]) {
  max-height: 500px;
  padding-bottom: 18px;
}
.faq-panel p { color: var(--texto-muted); font-size: 0.95rem; line-height: 1.7; }
.faq-panel a { color: var(--azul-claro); font-weight: 500; border-bottom: 1px solid currentColor; }

/* ============================================
   EVENTS (Dobra 9)
   ============================================ */
.events-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto-muted);
  background: var(--fundo-alt);
  border: 1px solid var(--border);
  transition: all var(--transition);
  min-height: 40px;
}
.filter-btn:hover { color: var(--azul); border-color: var(--azul); }
.filter-btn.filter-active {
  background: var(--azul);
  color: var(--white);
  border-color: var(--azul);
}
.filter-btn:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.event-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-card[hidden] { display: none; }

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  height: 62px;
  border-radius: 10px;
  text-align: center;
}
.event-date-green { background: #E8F5E9; color: var(--verde-dark); }
.event-date-blue { background: #E3F2FD; color: #0052A3; }
.event-date-yellow { background: #FFF8E1; color: #7B6000; }

.ev-day { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.ev-month { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.event-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}
.tag-beneficente { background: #E8F5E9; color: #1B5E20; }
.tag-voluntariado { background: #E3F2FD; color: #0D47A1; }
.tag-educativo { background: #FFF8E1; color: #5D4037; }

.event-body h3 { font-size: 0.975rem; color: var(--azul); }
.event-body p { font-size: 0.85rem; color: var(--texto-muted); line-height: 1.55; }
.event-body time { font-size: 0.8rem; color: var(--texto-muted); font-weight: 500; }

/* ============================================
   CONTACT (Dobra 10)
   ============================================ */
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.contact-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  color: var(--texto);
}
.contact-quick:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--azul-claro); }
.contact-quick:focus-visible { outline: 3px solid var(--azul); border-radius: var(--radius-lg); }
.cq-icon { flex-shrink: 0; }
.cq-text { display: flex; flex-direction: column; gap: 2px; }
.cq-text strong { font-size: 0.875rem; color: var(--azul); }
.cq-text span { font-size: 0.85rem; color: var(--texto-muted); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 720px;
  margin: 0 auto;
}
.contact-form-wrap h3 { color: var(--azul); margin-bottom: 28px; font-size: 1.3rem; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 0.875rem; font-weight: 600; color: var(--texto); }
.form-field label span { color: var(--azul-claro); }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--texto);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
  appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0,71,143,0.1);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235A6A82' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.field-error { font-size: 0.8rem; color: #D32F2F; min-height: 16px; }

.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] { border-color: #D32F2F; }

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: #E8F5E9;
  color: #1B5E20;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--azul); color: rgba(255,255,255,0.85); }

.footer-inner { padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col > p { font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.65); margin-bottom: 20px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  transition: background var(--transition), color var(--transition);
}
.footer-socials a:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.footer-socials a:focus-visible { outline: 2px solid var(--amarelo); }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  padding: 2px 0;
}
.footer-links li a:hover { color: var(--white); }
.footer-links-sm { margin-top: 16px; }

.footer-address { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-address p { margin-bottom: 8px; }
.footer-address strong { color: rgba(255,255,255,0.85); font-size: 0.875rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom p {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-arc { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================
   RESPONSIVE — TABLET (≤ 1023px)
   ============================================ */
@media (max-width: 1023px) {
  .transparency-layout { grid-template-columns: 1fr; }
  .chart-block { order: -1; }
  #donut-chart { max-width: 200px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 960px)
   ============================================ */
@media (max-width: 960px) {
  /* Nav — activate hamburger early enough to prevent wrapping */
  .nav-toggle { display: flex; }
  .nav-logo-text { font-size: 0.95rem; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,71,143,0.1);
    gap: 4px;
    z-index: 99;
  }
  .nav-menu.nav-open { display: flex; }
  .nav-link { padding: 12px 16px; font-size: 1rem; }
  .nav-cta-btn { margin: 8px 0 0; text-align: center; justify-content: center; }

  /* Hamburger → X */
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Hero */
  .hero-section { min-height: 85vh; padding: 80px 20px 70px; }
  .hero-headline { font-size: 2.5rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  /* Sections */
  .page-section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  /* Stats */
  .stats-row { grid-template-columns: 1fr; gap: 16px; }

  /* Timeline */
  .timeline { padding-left: 32px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .team-item { padding: 16px 8px; font-size: 0.78rem; }

  /* Infra */
  .infra-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Transparency */
  .tripe-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tripe-pct { font-size: 1.4rem; }
  .tripe-lbl { font-size: 0.7rem; }

  /* How to help */
  .help-grid { grid-template-columns: 1fr; }
  .help-card { padding: 28px 24px; }
  .help-card .btn-green { width: 100%; }

  /* Partners */
  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  /* Events */
  .events-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }

  /* Contact */
  .contact-row { grid-template-columns: 1fr; gap: 12px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { padding: 48px 0 32px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 420px)
   ============================================ */
@media (max-width: 420px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-badges { flex-direction: column; align-items: center; }
}
