/* ACRICA · site público v1 — um arquivo só, para não bloquear a página em 4 pedidos.
   Montado em 16/10/2026 a partir do protótipo (system design -web/css: tokens, components, site)
   + o que é só do site público (publico). Editar aqui; o protótipo não é mais a fonte. */

/* ===== tokens.css ===== */
/* ============================================================
   ACRICA · Design System — Design Tokens
   Warm, hopeful, human. Grounded in the brand logo palette.
   Light + Dark. WCAG 2.1 AA verified for text/UI pairings.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* ---- Raw brand seeds — paleta oficial ACRICA (Manual da Marca) ---- */
  --seed-azul:   #3691CE; /* confiança, ação */
  --seed-rosa:   #E883AB; /* acolhimento, doação */
  --seed-verde:  #6EBA60; /* crescer */
  --seed-amarelo:#F2CB42; /* esperança, infância */
  --seed-roxo:   #7B7CB7; /* criatividade */
  --seed-taupe:  #AF9E97; /* neutro quente */

  /* ---- Azul (confiança / marca primária) ---- */
  --blue-50:  #EFF6FB;
  --blue-100: #DEEDF7;
  --blue-200: #C2DDF0;
  --blue-300: #A1CAE7;
  --blue-400: #6EADDA;
  --blue-500: #3A90CD; /* oficial (Mari, 19/10) */
  --blue-600: #296FA1; /* o azul oficial escurecido até passar AA: links, botões, faixas com texto branco */
  --blue-700: #225C85;
  --blue-800: #1A4868;
  --blue-900: #13344C;

  /* ---- Rosa (acolhimento / acento) ---- */
  --pink-50:  #FCEEF3;
  --pink-100: #F8DDE8;
  --pink-200: #F2BFD4;
  --pink-300: #EB9DBD;
  --pink-400: #E682AA; /* oficial (Mari, 19/10) */
  --pink-500: #DC4F87;
  --pink-600: #C62867; /* o rosa oficial escurecido até passar AA: texto pequeno e fundo com texto branco */
  --pink-700: #A92258;
  --pink-800: #8B1C48;
  --pink-900: #6D1639;

  /* ---- Amarelo (esperança / destaque) ---- */
  --yellow-50:  #FEFAEC;
  --yellow-100: #FCF3D4;
  --yellow-200: #F9E8A9;
  --yellow-300: #F5DA75;
  --yellow-400: #F1CB43; /* oficial (Mari, 19/10) */
  --yellow-500: #EFC015;
  --yellow-600: #C8A00E;
  --yellow-700: #9D7E0B;
  --yellow-800: #775F08; /* "sun ink" — usável como texto sobre claro */
  --yellow-900: #514106;

  /* ---- Verde (crescer — uso secundário/sucesso) ---- */
  --green:      #6FB85F; /* oficial (Mari, 19/10) */
  --green-soft: #E8F4E6;
  --green-ink:  #386A2F;

  /* ---- Roxo (criatividade — uso terciário/decorativo) ---- */
  --purple:      #7C7BB4; /* oficial (Mari, 19/10) */
  --purple-soft: #E8E8F2;
  --purple-ink:  #37376A;

  /* ---- Taupe (neutro quente — fundo & texto) ---- */
  --taupe-0:   #FFFFFF;
  --taupe-50:  #F8F7F6;
  --taupe-100: #F0ECEB;
  --taupe-200: #E0D9D7;
  --taupe-300: #CABFBA;
  --taupe-400: #AF9E97; /* oficial */
  --taupe-500: #99847B;
  --taupe-600: #7F6A62;
  --taupe-700: #62524B;
  --taupe-800: #483C37;
  --taupe-900: #312926;
  --taupe-950: #201B18;

  /* ---- Typography ---- */
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-display:   clamp(2.75rem, 1.6rem + 4.6vw, 4.75rem); /* 44 → 76 */
  --fs-h1:        clamp(2.1rem, 1.4rem + 2.8vw, 3.25rem);  /* 34 → 52 */
  --fs-h2:        clamp(1.6rem, 1.2rem + 1.8vw, 2.35rem);  /* 26 → 38 */
  --fs-h3:        clamp(1.3rem, 1.1rem + 1vw, 1.7rem);     /* 21 → 27 */
  --fs-h4:        1.25rem;
  --fs-lead:      clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --fs-body:      1.0625rem; /* 17px — generous for readability */
  --fs-sm:        0.9375rem;
  --fs-xs:        0.8125rem;

  --lh-tight:   1.08;
  --lh-snug:    1.25;
  --lh-normal:  1.6;

  --tracking-tight: -0.02em;
  --tracking-wide:  0.04em;
  --tracking-caps:  0.12em;

  /* ---- Spacing (4px base) ---- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* ---- Radii ---- */
  --r-xs: 6px;  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Layout ---- */
  --maxw: 1200px;
  --maxw-prose: 68ch;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 420ms;
}

/* ============================================================
   LIGHT THEME (default)
   ============================================================ */
:root,
[data-theme="light"] {
  color-scheme: light;

  --bg:          var(--taupe-50);
  --bg-tint:     var(--taupe-100);
  --surface:     var(--taupe-0);
  --surface-2:   var(--taupe-100);
  --surface-3:   var(--taupe-200);

  --text:        var(--taupe-950);
  --text-muted:  var(--taupe-700);
  --text-subtle: var(--taupe-600);
  --text-onbrand:#FFFFFF;

  --border:        var(--taupe-200);
  --border-strong: var(--taupe-300);

  /* Brand roles — 600/500 falharam AA com texto branco (contraste <4.5:1
     nos tons oficiais mais claros); usar 700+ garante ≥6:1 para texto/botão */
  --brand:        var(--blue-600);
  --brand-hover:  var(--blue-700);
  --brand-soft:   var(--blue-50);
  --brand-ink:    var(--blue-900);

  --accent:       var(--pink-600);
  --accent-hover: var(--pink-700);
  --accent-soft:  var(--pink-50);
  --accent-ink:   var(--pink-900);

  --sun:          var(--yellow-400);
  --sun-soft:     var(--yellow-50);
  --sun-ink:      var(--yellow-800);

  /* Feedback */
  --success: var(--green-ink); --success-soft: var(--green-soft);
  --warning: var(--yellow-800); --warning-soft: var(--yellow-100);
  --danger:  #B3261E;  --danger-soft:  #FBE7E4;
  --info:    var(--blue-600); --info-soft: var(--blue-50);

  /* Focus */
  --focus-ring: var(--pink-600);

  /* Shadows (warm tint) */
  --shadow-sm: 0 1px 2px rgba(42,39,34,0.06), 0 1px 3px rgba(42,39,34,0.08);
  --shadow-md: 0 4px 10px rgba(42,39,34,0.07), 0 10px 24px rgba(42,39,34,0.08);
  --shadow-lg: 0 12px 28px rgba(42,39,34,0.10), 0 24px 56px rgba(42,39,34,0.12);
  --shadow-brand: 0 10px 28px rgba(41,111,161,0.22);
  --shadow-accent: 0 10px 28px rgba(230,130,170,0.38);
}

/* ============================================================
   DARK THEME — warm dark, not cold grey
   ============================================================ */
/* Corrigido em 04/09/2026. O escuro anterior usava taupe-700/600/500 como fundo e
   superfície — tons médios, não escuros. Resultado medido com axe-core: 285 nós
   reprovando 1.4.3 nas 7 páginas (ex.: lang-switch a 3,01:1; cartões a 3,9:1).
   A rampa desceu para 950/900/800/700: o fundo virou fundo de verdade e o texto
   voltou a ter para onde contrastar. Ver auditoria no ESTADO-ATUAL. */
[data-theme="dark"] {
  color-scheme: dark;

  --bg:          var(--taupe-950);
  --bg-tint:     var(--taupe-900);
  --surface:     var(--taupe-900);
  --surface-2:   var(--taupe-800);
  --surface-3:   var(--taupe-700);

  --text:        #FFFFFF;
  --text-muted:  var(--taupe-200);
  --text-subtle: var(--taupe-300);
  --text-onbrand:var(--taupe-950);

  --border:        var(--taupe-700);
  --border-strong: var(--taupe-600);

  --brand:        var(--blue-100);
  --brand-hover:  var(--blue-50);
  --brand-soft:   rgba(43,123,177,0.38);
  --brand-ink:    var(--blue-50);

  --accent:       var(--pink-200);
  --accent-hover: var(--pink-100);
  --accent-soft:  rgba(225,91,145,0.42);
  --accent-ink:   var(--pink-50);

  --sun:          var(--yellow-300);
  --sun-soft:     rgba(242,203,66,0.28);
  --sun-ink:      var(--yellow-100);

  --success: #C5E3BF;  --success-soft: rgba(56,106,47,0.34);
  --warning: var(--yellow-300);  --warning-soft: rgba(242,203,66,0.28);
  --danger:  #F8B3AA;  --danger-soft:  rgba(179,38,30,0.36);
  --info:    var(--blue-200); --info-soft: rgba(43,123,177,0.38);

  --focus-ring: var(--pink-200);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.45), 0 12px 28px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 36px rgba(0,0,0,0.55), 0 28px 64px rgba(0,0,0,0.6);
  --shadow-brand: 0 10px 28px rgba(0,0,0,0.5);
  --shadow-accent: 0 10px 28px rgba(0,0,0,0.5);
}

/* ============================================================
   BASE RESET + PRIMITIVES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); font-weight: 700; text-wrap: balance; color: var(--text); }
p { text-wrap: pretty; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

img, svg { display: block; max-width: 100%; }

/* Accessible focus — always visible, never removed */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--sun-soft); color: var(--text); }

.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;
}

/* Skip link */
.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  top: 12px; z-index: 999; background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color:#fff; }

/* ===== components.css ===== */
/* ============================================================
   ACRICA · Design System — Components
   Buttons, cards, inputs, badges, chips, nav, toggles, stats.
   Depends on tokens.css.
   ============================================================ */

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --_bg: var(--brand); --_fg: var(--text-onbrand); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body);
  line-height: 1; letter-spacing: 0.005em;
  padding: 0.85em 1.5em; min-height: 48px; /* AA touch target */
  border: 1.5px solid var(--_bd); border-radius: var(--r-pill);
  background: var(--_bg); color: var(--_fg); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary  { --_bg: var(--brand); --_fg: var(--text-onbrand); box-shadow: var(--shadow-brand); }
.btn--primary:hover { --_bg: var(--brand-hover); }
.btn--donate   { --_bg: var(--accent); --_fg: var(--text-onbrand); box-shadow: var(--shadow-accent); }
.btn--donate:hover { --_bg: var(--accent-hover); }
.btn--sun      { --_bg: var(--sun); --_fg: #3a2600; }
.btn--secondary{ --_bg: transparent; --_fg: var(--brand); --_bd: var(--brand); }
.btn--secondary:hover { --_bg: var(--brand-soft); }
.btn--ghost    { --_bg: transparent; --_fg: var(--text); --_bd: var(--border-strong); }
.btn--ghost:hover { --_bg: var(--surface-2); }
.btn--lg { font-size: var(--fs-lead); padding: 1em 2em; min-height: 58px; }
.btn--sm { font-size: var(--fs-sm); padding: 0.6em 1.1em; min-height: 40px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* Em tela estreita o `white-space: nowrap` fazia o botao largo empurrar a
   coluna inteira: o Doar.html rolava na horizontal no celular (WCAG 1.4.10).
   Botao largo quebra linha; os curtos continuam numa linha so. */
@media (max-width: 620px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn--lg, .btn--block { text-wrap: balance; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card__media { aspect-ratio: 16 / 10; background: var(--surface-2); position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--sp-5); }
.card__title { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.card__text { color: var(--text-muted); font-size: var(--fs-sm); }

/* Project / story card overlay tag */
.card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
}

/* People grid (diretoria / equipe) */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--sp-4); }
.person { padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.person b { display: block; font-size: var(--fs-body); }
.person span { color: var(--text-muted); font-size: var(--fs-sm); }

/* ============================================================
   BADGES & CHIPS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; padding: 0.4em 0.85em; border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand-ink);
}
.badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge--sun    { background: var(--sun-soft); color: var(--sun-ink); }
.badge--neutral{ background: var(--surface-2); color: var(--text-muted); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--fs-sm); font-weight: 500; padding: 0.5em 1em;
  border-radius: var(--r-pill); border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); color: var(--text-onbrand); border-color: var(--brand); }

/* ============================================================
   FORM INPUTS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.label { font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.label .req { color: var(--accent); }
.hint { font-size: var(--fs-xs); color: var(--text-subtle); }
.input, .textarea, .select {
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 0.8em 1em; width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.textarea { min-height: 120px; resize: vertical; }
.error-msg { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }

/* ============================================================
   STAT / IMPACT NUMBERS
   ============================================================ */
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 3.6rem); line-height: 1;
  color: var(--brand); letter-spacing: var(--tracking-tight);
}
.stat__num--accent { color: var(--accent); }
.stat__num--sun { color: var(--sun-ink); }
.stat__label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--sp-2); font-weight: 500; }

/* ============================================================
   THEME + LANGUAGE CONTROLS
   ============================================================ */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; min-width: 44px; padding: 0 0.85em;
  border-radius: var(--r-pill); border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600;
  font-size: var(--fs-sm); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--r-pill); border: 1px solid var(--border); }
.lang-switch button {
  min-height: 38px; padding: 0 0.9em; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--r-pill); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide); color: var(--text-muted); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

/* ============================================================
   ALERTS / CALLOUTS
   ============================================================ */
.alert {
  display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
}
.alert__icon { flex: none; width: 24px; height: 24px; }
.alert--info { background: var(--info-soft); border-color: transparent; }
.alert--success { background: var(--success-soft); border-color: transparent; }
.alert--warning { background: var(--warning-soft); border-color: transparent; }
.alert--danger  { background: var(--danger-soft); border-color: transparent; }

/* ============================================================
   PROGRESS (campaign goal)
   ============================================================ */
.progress { height: 14px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.progress__bar { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand), var(--blue-400)); }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.avatar--lg { width: 72px; height: 72px; }

/* ===== site.css ===== */
/* ============================================================
   ACRICA · Site chrome — header, nav, hero, sections, footer
   Used by Home, Doar/IRPF and Projetos mockups.
   Depends on tokens.css + components.css.
   ============================================================ */

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: var(--sp-4); height: 76px; }
.site-logo { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--text); margin-right: auto; }
.site-logo img { width: 46px; height: 46px; border-radius: var(--r-sm); object-fit: contain; background: #fff; padding: 3px; }
.site-logo b { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: var(--tracking-tight); line-height: 1; }
.site-logo span { font-size: var(--fs-xs); color: var(--text-subtle); text-transform: uppercase; letter-spacing: var(--tracking-caps); }

.site-nav { display: flex; align-items: center; gap: var(--sp-2); }
.site-nav a {
  padding: 0.6em 0.9em; border-radius: var(--r-pill); text-decoration: none;
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm);
  white-space: nowrap; /* "Quem somos" quebrava em duas linhas e desalinhava o menu */
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a.is-active { color: var(--brand); background: var(--brand-soft); }

.site-tools { display: flex; align-items: center; gap: var(--sp-3); }

/* Faixa intermediaria (tablet deitado): o menu passou a ser nowrap para nao
   quebrar "Quem somos" em duas linhas, e ai deixou de caber junto com o rotulo
   do botao de tema. Aperta o menu e tira o rotulo antes de esconder o menu. */
@media (max-width: 1080px) {
  .site-tools [data-theme-label] { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: 0.65em; }
  .site-nav a::after { left: 0.65em; right: 0.65em; }
}

@media (max-width: 940px) {
  .site-nav { display: none; }
  .site-header__inner { height: 66px; }
  .site-nav.is-open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--sp-3); box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open a { padding: 0.85em 1em; }
}

/* Mobile menu button */
.nav-toggle { display: none; }
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
}

/* No celular o cabeçalho tinha 4 controles em linha — seletor de idioma, tema,
   Doar e menu — mais a logo com assinatura. Não cabia: o Doar e o menu saíam da
   tela. Reportado pela direção da ACRICA em 31/08/2026, testando no aparelho.
   A ordem de prioridade em tela pequena é: Doar > menu > tema > idioma. */
@media (max-width: 700px) {
  .site-header__inner { gap: var(--sp-2); }
  .site-logo img { width: 38px; height: 38px; }
  .site-logo span span,
  .site-logo [data-i18n="logo.tag"] { display: none; }   /* some a assinatura, fica só ACRICA */
  .site-tools [data-theme-label] { display: none; }      /* botão de tema vira só ícone */
  .site-tools { gap: var(--sp-2); }
}
@media (max-width: 560px) {
  .site-tools .lang-switch { display: none; }            /* idioma vai para dentro do menu */
  .site-nav.is-open .lang-switch-mobile { display: flex; }
  .btn--donate.btn--sm { padding-inline: 0.85em; }
}

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 6rem) 0 clamp(2.5rem,5vw,5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__eyebrow { margin-bottom: var(--sp-4); }
.hero h1 { font-size: var(--fs-display); margin-bottom: var(--sp-4); }
.hero h1 .hl { color: var(--accent); }
.hero__lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 52ch; margin-bottom: var(--sp-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.hero__trust { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; color: var(--text-subtle); font-size: var(--fs-sm); }
.hero__media { position: relative; }
.hero__media .frame {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.hero__media .frame.ph svg { width: 30%; height: 30%; }
.hero__float {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
}
.hero__float--tl { top: 8%; left: -6%; }
.hero__float--br { bottom: 8%; right: -6%; }
@media (max-width: 1080px) { .hero__float--tl { left: 4%; } .hero__float--br { right: 4%; } }
.hero__blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; filter: blur(8px); }
.hero__blob--1 { top: -10%; right: -5%; width: 400px; height: 400px; background: radial-gradient(circle, var(--sun-soft), transparent 70%); }
.hero__blob--2 { bottom: -15%; left: -10%; width: 360px; height: 360px; background: radial-gradient(circle, var(--brand-soft), transparent 70%); }

/* ---------- SECTION ---------- */
.section { padding: clamp(3rem,6vw,5.5rem) 0; }
.section--tint { background: var(--bg-tint); }
.section--brand { background: var(--brand); color: var(--text-onbrand); }
.section__head { max-width: 60ch; margin: 0 auto clamp(2rem,4vw,3rem); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.section__head p { font-size: var(--fs-lead); color: var(--text-muted); }
.section--brand .section__head p { color: color-mix(in srgb, var(--text-onbrand) 88%, transparent); }

.eyebrow { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-3); }

/* ---------- IMPACT STRIP ---------- */
.impact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 720px) { .impact-strip { grid-template-columns: repeat(2,1fr); gap: var(--sp-6) var(--sp-4); } }
.section--brand .stat__num { color: var(--text-onbrand); }
.section--brand .stat__label { color: color-mix(in srgb, var(--text-onbrand) 88%, transparent); }

/* ---------- PROGRAMS GRID ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
@media (max-width: 880px) { .prog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prog-grid { grid-template-columns: 1fr; } }

/* ---------- STORY (split) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
.story__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--shadow-md); }
.story blockquote { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; margin: var(--sp-4) 0; }
.story cite { font-style: normal; color: var(--text-muted); font-size: var(--fs-sm); display: flex; align-items: center; gap: var(--sp-3); }

/* ---------- CTA BAND ---------- */
.cta-band { border-radius: var(--r-xl); padding: clamp(2.5rem,5vw,4rem); background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255,255,255,0.94); font-size: var(--fs-lead); max-width: 50ch; margin: 0 auto var(--sp-6); }
.cta-band .btn--sun { box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: clamp(3rem,5vw,4rem) 0 var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-7); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-6); } }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3, .footer-col h4 { font-family: var(--font-body); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-subtle); margin-bottom: var(--sp-4); }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; padding: 0.35em 0; font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--brand); }
.footer-about p { color: var(--text-muted); font-size: var(--fs-sm); margin: var(--sp-3) 0; max-width: 34ch; }
.social { display: flex; gap: var(--sp-2); }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.social a:hover { background: var(--brand); color: var(--text-onbrand); }
.social svg { width: 20px; height: 20px; }
.footer-map { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/9; border: 1px solid var(--border); margin-top: var(--sp-3); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center; padding-top: var(--sp-5); border-top: 1px solid var(--border); color: var(--text-subtle); font-size: var(--fs-xs); }

/* ---------- DONATE PAGE ---------- */
.donate-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.donate-grid > * { min-width: 0; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } }
.donate-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(1.5rem,3vw,2.5rem); position: sticky; top: 96px; }
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-3); }
.amount-btn {
  border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-2); cursor: pointer; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.amount-btn:hover { border-color: var(--brand); }
.amount-btn.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.amount-btn small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); color: var(--text-subtle); margin-top: 2px; }
.freq-toggle { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: var(--r-pill); border: 1px solid var(--border); width: 100%; }
.freq-toggle button { flex: 1; border: 0; background: transparent; padding: 0.7em; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; font-size: var(--fs-sm); color: var(--text-muted); }
.freq-toggle button.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.method-row { display: flex; gap: var(--sp-3); }
.method-card { flex: 1; border: 1.5px solid var(--border-strong); border-radius: var(--r-md); padding: var(--sp-4); cursor: pointer; text-align: center; font-weight: 600; font-size: var(--fs-sm); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.method-card.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.method-card svg { width: 26px; height: 26px; margin: 0 auto var(--sp-2); display: block; }

.irpf-steps { counter-reset: step; display: grid; gap: var(--sp-4); }
.irpf-step { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-4); align-items: start; }
.irpf-step__num { counter-increment: step; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.irpf-step__num::before { content: counter(step); }
.irpf-step h3, .irpf-step h4 { font-size: var(--fs-h4); margin-bottom: 0.25em; }
.irpf-step p { color: var(--text-muted); font-size: var(--fs-sm); }

/* PIX panel */
.pix-panel { text-align: center; padding: var(--sp-5); background: var(--surface-2); border-radius: var(--r-md); }
.pix-qr { width: 168px; height: 168px; margin: 0 auto var(--sp-4); border-radius: var(--r-md); background: #fff; padding: 12px; }
.pix-key { display: flex; gap: var(--sp-2); align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 0.6em 0.9em; font-family: monospace; font-size: var(--fs-sm); }
.pix-key code { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- PROJECTS PAGE ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-bottom: clamp(2rem,4vw,3rem); }
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
@media (max-width: 880px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card__meta { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); color: var(--text-subtle); font-size: var(--fs-xs); }
.proj-card__progress { margin-top: var(--sp-4); }
.proj-card__progress .row { display: flex; justify-content: space-between; font-size: var(--fs-xs); margin-bottom: var(--sp-2); color: var(--text-muted); }
.proj-card__progress b { color: var(--brand); }

.page-hero { padding: clamp(2.5rem,5vw,4rem) 0 clamp(1.5rem,3vw,2.5rem); text-align: center; }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.page-hero p { font-size: var(--fs-lead); color: var(--text-muted); max-width: 56ch; margin: 0 auto; }

.is-hidden { display: none !important; }

/* ===== publico.css ===== */
/* ============================================================
   ACRICA · Site público v1 — o que o protótipo não tinha
   Carrega depois de tokens.css, components.css e site.css.
   ============================================================ */

/* Fontes no próprio site: nada de terceiros na abertura da página */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Títulos do rodapé em h2 (a hierarquia não salta), com o visual do h3 do protótipo */
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-subtle); margin-bottom: var(--sp-4); }

/* Logo: a imagem vem pequena, o tamanho fica fixo para não pular o layout */
.site-logo img { width: 48px; height: auto; }

/* Atalhos de seção (chips que são links) */
.atalhos { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }
.atalhos a.chip { text-decoration: none; }

/* Bloco de cada forma de ajudar */
.ajuda { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; scroll-margin-top: 90px; }
.ajuda + .ajuda { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--border); }
.ajuda > * { min-width: 0; }
.ajuda h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.ajuda h3 { font-size: var(--fs-h4); margin: var(--sp-5) 0 var(--sp-2); }
.ajuda p { color: var(--text-muted); margin-bottom: var(--sp-3); }
.ajuda .btn { margin-top: var(--sp-3); }
.ajuda__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.ajuda__media img { width: 100%; height: auto; display: block; }
@media (max-width: 880px) { .ajuda { grid-template-columns: 1fr; } }

/* Formulário do Google embutido (voluntariado). A altura é fixa porque o iframe é de outro domínio e não se
   ajusta sozinho. Medido em 16/10 dentro da página, de 320 a 1280 px de tela: nenhuma rolagem interna, e o
   fim do <form> fica de 240 a 320 px acima do fim do iframe (o rodapé do Google ocupa parte disso).
   Se a ACRICA mudar as perguntas do formulário, medir de novo. */
.ajuda__full { grid-column: 1 / -1; scroll-margin-top: 90px; }
.form-embutido { max-width: 760px; margin: var(--sp-5) auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.form-embutido iframe { display: block; width: 100%; height: 2680px; border: 0; }
@media (max-width: 880px) { .form-embutido iframe { height: 2920px; } }
@media (max-width: 680px) { .form-embutido iframe { height: 3220px; } }
@media (max-width: 440px) { .form-embutido iframe { height: 3540px; } }
@media (max-width: 380px) { .form-embutido iframe { height: 3880px; } }
@media (max-width: 340px) { .form-embutido iframe { height: 4120px; } }

/* Lista com marcador da marca */
.lista { list-style: none; padding: 0; margin: var(--sp-3) 0; display: grid; gap: var(--sp-2); }
.lista li { position: relative; padding-left: 1.6em; color: var(--text-muted); }
.lista li::before { content: ""; position: absolute; left: 0.2em; top: 0.55em; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--accent); }

/* Passo a passo numerado: reaproveita o contador do .irpf-step, em <ol> */
ol.irpf-steps { list-style: none; padding: 0; margin: var(--sp-4) 0; }

/* Ficha do projeto do FIA */
.ficha { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: var(--sp-3) 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--text-muted); }
.ficha b { color: var(--text); }

/* Perguntas frequentes */
.faq { display: grid; gap: var(--sp-3); max-width: 72ch; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: var(--r-xs); }
.faq details[open] summary { margin-bottom: var(--sp-3); }
.faq details p { color: var(--text-muted); }

/* Citação com a foto recortada (sem moldura, a imagem já tem forma) */
.story__media--livre { box-shadow: none; border-radius: 0; aspect-ratio: auto; background: none; }
.story__media--livre img { width: 100%; height: auto; display: block; }
.citacao { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1.25; margin: var(--sp-4) 0 var(--sp-3); color: var(--text); }
.citacao + cite { font-style: normal; color: var(--text-muted); }

/* Diretoria */
.governanca { margin-top: var(--sp-8); }
.governanca h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }

/* Cards de propósito, missão e visão */
.mvv h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.mvv .card__body p { color: var(--text-muted); font-size: var(--fs-sm); }

/* Cartão de contato */
.contato-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.contato-lista a { color: var(--brand); font-weight: 600; }

/* Imagem do passo a passo da Nota Paraná */
.nota-img { max-width: 360px; margin-inline: auto; }

/* Link de texto dentro de parágrafo: sempre sublinhado, não só pela cor */
main p a:not(.btn), main li a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 0.15em; }

/* ===== Paleta oficial da ACRICA — enviada pela Mari em 19/10/2026 =====
   Roxo #7C7BB4 · Azul #3A90CD · Rosa #E682AA · Verde #6FB85F · Amarelo #F1CB43.
   Nenhuma delas passa no contraste com texto branco (o azul dá 3,47:1; o mínimo é 4,5:1). Por isso:
   - elas aparecem como FUNDO com texto escuro (botão Doar, números dos passos) e em detalhe (faixa, manchas);
   - texto pequeno e fundo com texto branco usam o mesmo matiz escurecido: --blue-600 e --pink-600. */
:root {
  --acr-roxo: #7C7BB4; --acr-azul: #3A90CD; --acr-rosa: #E682AA; --acr-verde: #6FB85F; --acr-amarelo: #F1CB43;
  --acr-tinta: #201B18;
  --acr-faixa: linear-gradient(90deg, var(--acr-roxo) 0 20%, var(--acr-azul) 20% 40%, var(--acr-rosa) 40% 60%, var(--acr-verde) 60% 80%, var(--acr-amarelo) 80% 100%);
}
/* a faixa das cinco cores, como as letras do logo */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--acr-faixa); pointer-events: none; }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: var(--acr-faixa); }
/* Doar: rosa oficial, texto escuro (6,61:1) */
.btn--donate { --_bg: var(--acr-rosa); --_fg: var(--acr-tinta); }
.btn--donate:hover { --_bg: #E16899; }
/* números dos passos: as cinco cores, com número escuro (texto grande: 19 px, peso 800) */
.irpf-step__num { background: var(--acr-azul); color: var(--acr-tinta); }
.irpf-steps > :nth-child(5n+2) .irpf-step__num { background: var(--acr-rosa); }
.irpf-steps > :nth-child(5n+3) .irpf-step__num { background: var(--acr-verde); }
.irpf-steps > :nth-child(5n+4) .irpf-step__num { background: var(--acr-amarelo); }
.irpf-steps > :nth-child(5n+5) .irpf-step__num { background: var(--acr-roxo); }
/* manchas atrás da foto do hero e marcadores das listas */
.hero__blob--1 { background: radial-gradient(circle, color-mix(in srgb, var(--acr-amarelo) 45%, transparent), transparent 70%); }
.hero__blob--2 { background: radial-gradient(circle, color-mix(in srgb, var(--acr-azul) 30%, transparent), transparent 70%); }
.lista li::before { background: var(--acr-rosa); }
.lista li:nth-child(4n+2)::before { background: var(--acr-azul); }
.lista li:nth-child(4n+3)::before { background: var(--acr-verde); }
.lista li:nth-child(4n+4)::before { background: var(--acr-amarelo); }
