/* =========================================================
   UM PELO OUTRO FAZENDO O BEM — sistema de design v3
   Baseado no mockup "Início" (Canva): header creme, cartão
   azul royal com cantos bem arredondados no carrossel,
   botão de destaque dourado, CTA coral, formas orgânicas
   decorativas (blobs) nos cantos das seções.
   ========================================================= */

:root {
  /* --- paleta principal (extraída do mockup) --- */
  --cream: #f8f3e8;
  --cream-deep: #f1e9d8;
  --coral: #ee5363;
  --coral-action: #c9455a;   /* fundo de botão com texto branco — AA */
  --coral-dark: #a83549;
  --coral-light: #ff7a88;
  --navy: #0354a2;           /* azul royal vibrante do cartão/menu */
  --navy-deep: #18226d;      /* azul-tinta mais escuro — rodapé, setas do carrossel */
  --gold: #fcb117;
  --gold-dark: #d99600;
  --teal: #1a9e8f;
  --teal-deep: #0d7a6d;
  --purple: #7d3fa3;
  --orange: #f07a2e;

  /* --- neutros --- */
  --white: #ffffff;
  --black: #14110c;
  --ink: #1c2b45;
  --ink-soft: #5b6b84;
  --surface: var(--cream);
  --surface-alt: #ffffff;
  --border: rgba(28,43,69,0.12);
  --danger: #b3261e;
  --success-bg: #e7f2ea;
  --success-border: #2f8f52;

  /* --- aliases para compatibilidade com estilos inline existentes --- */
  --baltic: var(--navy);
  --baltic-light: var(--coral-light);
  --baltic-dark: var(--navy-deep);
  --porcelain: var(--surface);

  /* --- tipografia --- */
  --font-chewy: "Chewy", "Baloo 2", cursive;
  --font-display: "Comfortaa", "Nunito", "Segoe UI", sans-serif;
  --font-accent: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;

  /* --- layout --- */
  --max-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 40px;
  --font-scale: 1;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: calc(100% * var(--font-scale)); overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; color: var(--ink); }
h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* --- eyebrow --- */
.eyebrow {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-action);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--coral); display: inline-block; }
.eyebrow-plain::before { display: none; }
.eyebrow-plain { gap: 0; }
.hero .eyebrow,
.spotlight-body .eyebrow,
.quote-band .eyebrow,
.section-dark .eyebrow,
.page-hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before,
.quote-band .eyebrow::before,
.section-dark .eyebrow::before,
.page-hero .eyebrow::before { background: var(--gold); }

/* --- acessibilidade --- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-deep); color: var(--white); padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* --- ícones --- */
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node-icon .icon { width: 22px; height: 22px; }
.a11y-bar button .icon { width: 13px; height: 13px; }
.nav-toggle .icon { width: 22px; height: 22px; }
.pix-copy-btn .icon { width: 15px; height: 15px; }
.footer-social .icon { width: 17px; height: 17px; }
.spotlight-arrow .icon { width: 20px; height: 20px; }
.donation-list .icon { width: 17px; height: 17px; color: var(--gold); }
.donation-list li { display: flex; align-items: center; gap: 10px; }

/* --- botões --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  font-family: var(--font-accent);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

/* botão primário global — coral */
.btn-primary { background: var(--coral-action); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); box-shadow: 0 8px 20px rgba(201,69,90,0.35); }

/* botão primário dentro do header — dourado com texto escuro, como no mockup */
.site-header .btn-primary,
.nav .btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: none;
}
.site-header .btn-primary:hover,
.nav .btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 4px 16px rgba(252,177,23,0.45);
}

.btn-dark { background: var(--navy-deep); color: var(--white); }
.btn-dark:hover { background: var(--navy); }

.btn-outline { background: transparent; border-color: var(--coral-action); color: var(--coral-action); }
.btn-outline:hover { background: var(--coral-action); color: var(--white); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.15); }

.btn-block { width: 100%; }

/* botão branco (usado no cartão do carrossel, estilo "Saiba mais") */
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cream); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-dark); box-shadow: 0 8px 20px rgba(252,177,23,0.4); }

/* botão ícone do Instagram no header */
.btn-icon-instagram {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(3,84,162,0.35);
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.btn-icon-instagram:hover { background: rgba(3,84,162,0.08); border-color: var(--navy); }
.hero .btn-icon-instagram,
.section-dark .btn-icon-instagram { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* --- loader --- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { width: 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--white); position: relative; }
.loader-mark img { width: 56px; height: 56px; object-fit: contain; }
.loader-ring { position: absolute; inset: -10px; border-radius: 50%; animation: spin 1.1s linear infinite; }
.loader-dot { position: absolute; top: -2px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(252,177,23,0.75); }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.loader-text strong { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .loader-ring { animation: none; } }

/* --- barra de acessibilidade --- */
.a11y-bar { background: var(--navy-deep); color: var(--white); font-size: 0.78rem; }
.a11y-bar .container { display: flex; width: 100%; align-items: center; justify-content: flex-end; flex-wrap: wrap; row-gap: 6px; column-gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.a11y-bar button { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--white); border-radius: 999px; padding: 4px 12px; font-size: 0.76rem; display: inline-flex; align-items: center; gap: 6px; }
.a11y-bar button:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 480px) {
  .a11y-bar .container { justify-content: center; column-gap: 10px; }
  .a11y-bar .container > span { margin-right: 0 !important; width: 100%; text-align: center; }
}

/* --- HEADER (creme, como no mockup) --- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(28,43,69,0.07);
}
.nav { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-deep); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.brand img { width: 52px; height: 52px; object-fit: contain; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--navy); font-size: 0.96rem; font-weight: 600; padding: 6px 2px; border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s; }
.nav-links a:hover { color: var(--navy-deep); border-bottom-color: rgba(238,83,99,0.4); }
.nav-links a.active { color: var(--navy-deep); border-bottom-color: var(--coral); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); font-size: 1.6rem; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    padding: 20px 28px; gap: 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .btn-outline { display: none; }
}
@media (max-width: 420px) {
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .brand { font-size: 0.92rem; gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-icon-instagram { display: none; }
}

/* --- formas orgânicas decorativas (elementos de canto) --- */
.blob { position: absolute; z-index: 0; pointer-events: none; user-select: none; }
.blob-flip { transform: scaleX(-1); }
.spotlight .blob-br { bottom: -20px; right: -80px; width: 150px; transform: rotate(-18deg); }
.spotlight .blob-bl { bottom: -26px; left: -34px; width: 150px; }
#quem-somos .blob-bl { bottom: -18px; left: -28px; width: 150px; }
#quem-somos .blob-br { bottom: -18px; right: -26px; width: 140px; }
.page-hero .blob-tr { top: -26px; right: -18px; width: 130px; transform: scaleY(-1); }
.page-hero .blob-tr.blob-fit { transform: none; }
.page-hero .blob-bl { bottom: -26px; left: -18px; width: 120px; }
/* blobs do bloco de impacto (hero) e do mapa de navegação */
.hero { overflow: hidden; }
.hero .blob-hero-tl { top: -40px; left: -70px; width: 170px; transform: rotate(12deg); }
.hero .blob-hero-br { bottom: -60px; right: -70px; width: 200px; transform: rotate(-10deg); }
.node-section { position: relative; overflow: hidden; }
.node-section .blob-node-tr { top: -40px; right: -60px; width: 150px; transform: scaleY(-1) rotate(8deg); }
.node-section .blob-node-bl { bottom: -50px; left: -60px; width: 170px; transform: rotate(-14deg); }

/* --- SPOTLIGHT (carrossel) — cartão azul royal bem arredondado sobre fundo creme --- */
.spotlight {
  background: var(--cream);
  padding: 44px 0 36px;
  position: relative;
  overflow: hidden;
}
.spotlight-track { position: relative; z-index: 1; }
.spotlight-slide {
  display: none; grid-template-columns: 1.05fr 0.95fr; gap: 0; align-items: stretch;
  background: var(--navy);
  border-radius: 48px 48px 90px 48px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(3,84,162,0.25);
}
.spotlight-slide.is-active { display: grid; }

.spotlight-body { padding: 48px 46px; color: var(--white); position: relative; display: flex; flex-direction: column; justify-content: center; }
.spotlight-body .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  color: var(--navy-deep);
  padding: 7px 18px; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: none;
  font-weight: 700;
  margin-bottom: 18px;
  width: fit-content;
}
.spotlight-body .eyebrow::before { display: none; }

.spotlight-top-row { display: flex; align-items: center; gap: 16px; }
.spotlight-top-row .eyebrow { margin-bottom: 0; }
.spotlight-doodle {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
  padding: 7px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}

.spotlight-body h2 { font-family: var(--font-chewy); font-weight: 400; color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 14px; }
.spotlight-body p { color: rgba(255,255,255,0.88); max-width: 46ch; margin-bottom: 26px; font-size: 1rem; }
.spotlight-body .accent { color: var(--coral-light); }
.spotlight-body .btn-white,
.spotlight-body .btn-primary { background: var(--white); color: var(--navy); padding: 13px 22px 13px 26px; }
.spotlight-body .btn-white:hover,
.spotlight-body .btn-primary:hover { background: var(--cream); color: var(--navy-deep); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }

.spotlight-media {
  position: relative;
  min-height: 280px;
  background: rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--white);
  overflow: hidden;
}
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; position: absolute; inset: 0; }

.spotlight-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; position: relative; z-index: 1; }
.spotlight-arrow { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--navy-deep); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s, transform 0.15s; }
.spotlight-arrow:hover { background: var(--navy); transform: translateY(-1px); }
.spotlight-dots { display: flex; gap: 8px; }
.spotlight-dot { width: 10px; height: 10px; border-radius: 50%; background: #d8d3c7; border: none; padding: 0; transition: width 0.2s ease, background 0.2s ease; }
.spotlight-dot.is-active { background: var(--navy); width: 26px; border-radius: 999px; }

@media (max-width: 860px) {
  .spotlight-slide { grid-template-columns: 1fr; border-radius: 28px; }
  .spotlight-body { padding: 36px 28px; }
  .spotlight-media { min-height: 200px; order: -1; }
  .spotlight { padding: 32px 0 26px; }
}

/* --- HERO / IMPACTO — fundo creme claro, como a 2ª seção do mockup --- */
.hero {
  background: var(--cream);
  color: var(--ink);
  padding: 90px 0 96px;
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.8fr; gap: 50px; align-items: center; position: relative; }
.hero h1 { color: var(--ink); font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--coral-action); }
.hero p.lead { font-family: var(--font-accent); color: var(--ink-soft); font-size: 1.06rem; max-width: 48ch; margin-bottom: 30px; }
.hero .lead .highlight { color: var(--coral-action); font-weight: 700; }
.hero .eyebrow { color: var(--coral-action); }
.hero .eyebrow::before { background: var(--coral); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-outline-light { background: transparent; border-color: var(--navy); color: var(--navy); }
.hero-cta .btn-outline-light:hover { border-color: var(--navy-deep); background: rgba(3,84,162,0.08); color: var(--navy-deep); }
.hero-cta-stack { flex-direction: column; align-items: flex-start; }

/* colagem de fotos do lado direito, com selos de estatística sobrepostos */
.hero-photos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; height: 420px; }
.hero-photo { position: relative; border-radius: var(--radius-lg); }
.hero-photo-img { width: 100%; height: 100%; border-radius: inherit; overflow: hidden; box-shadow: 0 20px 40px rgba(28,43,69,0.16); }
.hero-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-main { height: 100%; border-radius: 28px 28px 28px 70px; }
.hero-photo-stack { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.hero-photo-stack .hero-photo { flex: 1; border-radius: 24px; }
.hero-photo-stack .hero-photo:first-child { border-radius: 24px 70px 24px 24px; }

.hero-photo-badge {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 45%);
  max-width: 88%;
  background: var(--white); border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 10px 24px rgba(28,43,69,0.2);
  text-align: center; white-space: normal; z-index: 2;
}
.hero-photo-badge strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.hero-photo-badge small { display: block; font-family: var(--font-accent); font-size: 0.64rem; color: var(--ink-soft); font-weight: 600; margin-top: 2px; line-height: 1.25; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 56px; }
  .hero-photos { height: 320px; margin-top: 40px; }
}
@media (max-width: 560px) {
  .hero-photos { grid-template-columns: 1fr; height: auto; gap: 44px; }
  .hero-photo-main { height: 220px; }
  .hero-photo-stack { flex-direction: row; height: 140px; }
}
@media (max-width: 480px) {
  .hero-photo-badge { padding: 7px 14px; }
  .hero-photo-badge strong { font-size: 1.02rem; }
  .hero-photo-badge small { font-size: 0.56rem; }
}

/* --- SEÇÕES --- */
section { padding: 84px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 12px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.02rem; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--navy-deep); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-head p { color: rgba(255,255,255,0.75); }

/* destaque coral inline (ex.: "8 anos") usado em textos de impacto */
.highlight { color: var(--coral-action); }

#quem-somos { overflow: hidden; }

/* --- colagem de fotos da seção "Quem somos" --- */
.quemsomos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.quemsomos-photos { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.quemsomos-grid-photos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; height: 320px; width: 100%; }
.qs-photo { border-radius: 20px; overflow: hidden; }
.qs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qs-photo-stack { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.qs-photo-stack .qs-photo { flex: 1; min-height: 0; }
@media (max-width: 860px) {
  .quemsomos-grid { grid-template-columns: 1fr; }
  .quemsomos-grid-photos { height: 280px; margin-top: 8px; }
}
@media (max-width: 560px) {
  .quemsomos-grid-photos { grid-template-columns: 1fr; height: auto; gap: 14px; }
  .qs-photo-main { height: 200px; }
  .qs-photo-stack { flex-direction: row; height: 120px; }
}

/* --- NODE MAP (hub da home) --- */
.node-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.node-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.node-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(3,84,162,0.15); border-color: var(--coral-action); }
.node-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.node-icon.icon-coral { background: rgba(238,83,99,0.14); color: var(--coral-action); }
.node-icon.icon-teal { background: rgba(26,158,143,0.14); color: var(--teal-deep); }
.node-icon.icon-gold { background: rgba(252,177,23,0.2); color: #8a5c00; }
.node-icon.icon-purple { background: rgba(125,63,163,0.14); color: var(--purple); }
.node-card h3 { font-size: 1.08rem; }
.node-card p { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.node-link { font-size: 0.86rem; font-weight: 700; color: var(--coral-action); display: inline-flex; align-items: center; gap: 6px; }
.node-card:hover .node-link { color: var(--coral-dark); }
@media (max-width: 960px) { .node-map { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .node-map { grid-template-columns: 1fr; } }

/* --- THREAD DIVIDER --- */
.thread-divider { display: flex; align-items: center; gap: 10px; margin: 8px 0 40px; color: var(--ink-soft); font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.thread-divider::before, .thread-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* --- STATS --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px 18px; text-align: center; border: 2px solid var(--border); }
.stat-number { font-family: var(--font-display); font-size: 2rem; color: var(--coral-action); font-weight: 800; }
.stat-label { margin-top: 6px; font-size: 0.84rem; color: var(--ink-soft); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- CARDS DE PROJETO --- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); border-top: 4px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(28,43,69,0.14); }
.project-card:has(.tag-teal)   { border-top-color: var(--teal); }
.project-card:has(.tag-coral)  { border-top-color: var(--coral); }
.project-card:has(.tag-purple) { border-top-color: var(--purple); }
.project-card:has(.tag-orange) { border-top-color: var(--orange); }
.project-card:has(.tag-gold)   { border-top-color: var(--gold); }
.project-card:has(.tag-teal) .project-media    { background: rgba(26,158,143,0.12); }
.project-card:has(.tag-coral) .project-media   { background: rgba(238,83,99,0.10); }
.project-card:has(.tag-purple) .project-media  { background: rgba(125,63,163,0.10); }
.project-card:has(.tag-orange) .project-media  { background: rgba(240,122,46,0.10); }
.project-card:has(.tag-gold) .project-media    { background: rgba(252,177,23,0.14); }

.project-media { height: 180px; background: var(--cream); position: relative; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; position: absolute; inset: 0; }

.project-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.project-body h3 { font-size: 1.15rem; margin-top: 6px; }
.project-body p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; flex: 1; }
.project-tag { display: inline-flex; align-self: flex-start; font-family: var(--font-body); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy-deep); background: var(--cream); padding: 4px 10px; border-radius: 999px; margin-top: 10px; }
.project-tag.tag-teal   { color: var(--teal-deep); background: rgba(26,158,143,0.12); }
.project-tag.tag-coral  { color: var(--coral-dark); background: rgba(238,83,99,0.10); }
.project-tag.tag-purple { color: var(--purple); background: rgba(125,63,163,0.10); }
.project-tag.tag-orange { color: #a84800; background: rgba(240,122,46,0.12); }
.project-tag.tag-gold   { color: #7d5900; background: rgba(252,177,23,0.16); }

.project-card[data-gallery] { cursor: pointer; }
.project-gallery-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--coral-action); margin-top: 12px; }
.project-card[data-gallery]:hover .project-gallery-hint { color: var(--coral-dark); }

/* --- QUOTE BAND --- */
.quote-band { background: var(--navy-deep); color: var(--white); padding: 66px 0; }
.quote-band blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); max-width: 780px; line-height: 1.45; }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-family: var(--font-body); font-size: 0.8rem; color: var(--gold); }

/* --- FORMULÁRIOS --- */
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 36px; }
.form-card.section-dark { background: var(--navy-deep); color: var(--white); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--cream); font-family: inherit; font-size: 0.96rem; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--coral-action); outline-offset: 1px; border-color: var(--coral-action); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .field-error { display: block; }
.form-success { display: none; background: var(--success-bg); border: 1px solid var(--success-border); color: #1d5c34; padding: 16px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 20px; }
.form-success.show { display: block; }
.form-actions { display: flex; gap: 12px; }
.form-actions .btn { flex: 1; }
@media (max-width: 480px) { .form-actions { flex-direction: column-reverse; } }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.faq-item { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--coral-action); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); margin-top: 12px; font-size: 0.92rem; line-height: 1.6; }

/* --- DOAÇÕES --- */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 560px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }
.amount-btn { padding: 16px 10px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--cream); font-family: var(--font-body); font-weight: 700; color: var(--ink); text-align: center; transition: all 0.15s ease; }
.amount-btn:hover { border-color: var(--coral-action); }
.amount-btn.selected { border-color: var(--coral-action); background: rgba(201,69,90,0.08); box-shadow: inset 0 0 0 1px var(--coral-action); }

.pay-tabs { display: flex; gap: 10px; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.pay-tab { background: none; border: none; padding: 12px 6px; font-weight: 600; color: var(--ink-soft); border-bottom: 3px solid transparent; font-size: 0.92rem; margin-bottom: -2px; }
.pay-tab.active { color: var(--coral-action); border-bottom-color: var(--coral-action); }
.pay-panel { display: none; }
.pay-panel.active { display: block; }

.pix-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--cream); border: 1.5px dashed var(--coral-action); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 16px; }
.pix-qr img { width: 180px; height: 180px; display: block; background: var(--white); padding: 10px; border-radius: var(--radius-sm); }
.pix-qr-label { font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.pix-box { background: var(--cream); border: 1.5px dashed var(--coral-action); border-radius: var(--radius-sm); padding: 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pix-key { font-family: var(--font-body); font-size: 0.92rem; overflow-wrap: anywhere; word-break: normal; flex: 1; }
.pix-copy-btn { background: var(--coral-action); color: var(--white); border: none; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; }
.pix-copy-btn:hover { background: var(--coral-dark); }
.pix-copy-btn.copied { background: #2f8f52; }

/* --- BLOCO "OUTRAS FORMAS DE AJUDAR" (doações) --- */
.support-banner {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 44px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.support-banner-text { flex: 1; min-width: 260px; }
.support-banner h2 { color: var(--white); margin-top: 10px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.support-banner p { color: rgba(255,255,255,0.85); margin-top: 12px; max-width: 54ch; }
.support-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.support-banner .btn.copied { background: #2f8f52; color: var(--white); }
@media (max-width: 760px) {
  .support-banner { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .support-banner-actions { width: 100%; }
  .support-banner-actions .btn { flex: 1; }
}

.card-preview { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--cream); padding: 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.card-preview svg { width: 34px; height: 24px; flex-shrink: 0; }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 80; background: #25D366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,0,0,0.25); transition: transform 0.15s ease; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* --- GALERIA EM POP-UP (cards de ação) --- */
.gallery-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.gallery-modal.open { display: flex; }
.gallery-modal-overlay { position: absolute; inset: 0; background: rgba(20,17,12,0.6); }
.gallery-modal-dialog {
  position: relative; background: var(--white); border-radius: var(--radius);
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 44px 40px; z-index: 1; box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.gallery-modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--cream); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.gallery-modal-close:hover { background: var(--border); }
.gallery-modal-dialog h3 { margin-top: 10px; font-size: 1.5rem; }
.gallery-modal-body { margin-top: 18px; }
.gallery-modal-body p { color: var(--ink-soft); font-size: 0.95rem; }
.gallery-modal-placeholder { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-modal-placeholder-item {
  aspect-ratio: 1; background: var(--cream); border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border); color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.78rem; text-align: center; padding: 14px;
}
.gallery-modal-placeholder-item .icon { width: 26px; height: 26px; color: var(--coral-action); }
body.gallery-open { overflow: hidden; }
@media (max-width: 560px) {
  .gallery-modal-dialog { padding: 36px 24px; }
  .gallery-modal-placeholder { grid-template-columns: 1fr; }
}

/* --- FOOTER --- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-grid h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); margin-bottom: 14px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.footer-brand img { width: 34px; height: 34px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 0.8rem; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* --- PAGE HERO (páginas internas) --- */
.page-hero { background: var(--navy); color: var(--white); padding: 60px 0 50px; position: relative; overflow: hidden; }
.page-hero .container { z-index: 1; }
.page-hero h1 { color: var(--white); margin-top: 12px; font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.82); margin-top: 12px; max-width: 62ch; }
.page-hero .hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(255,255,255,0.14);
  border-radius: 50%;
}
/* variantes por página */
body:has(.nav-links a[href="acoes.html"].active) .page-hero    { background: var(--coral-action); }
body:has(.nav-links a[href="doacoes.html"].active) .page-hero  { background: var(--navy-deep); }
body:has(.nav-links a[href="contato.html"].active) .page-hero  { background: var(--teal-deep); }

/* --- REVEAL --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.project-grid .reveal:nth-child(2), .node-map .reveal:nth-child(2), .stats-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.project-grid .reveal:nth-child(3), .node-map .reveal:nth-child(3), .stats-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.project-grid .reveal:nth-child(4), .node-map .reveal:nth-child(4), .stats-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.channel-links .reveal:nth-child(2) { transition-delay: 0.08s; }
.channel-links .reveal:nth-child(3) { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --- ALTO CONTRASTE --- */
/* Esquema único e consistente: fundo preto, texto branco,
   destaques/links em amarelo, bordas brancas. Aplicado ao site
   inteiro para evitar blocos alternados e texto escuro sobre escuro. */
body.high-contrast {
  --cream: #000000; --cream-deep: #000000;
  --white: #000000;
  --surface: #000000; --surface-alt: #000000;
  --ink: #ffffff; --ink-soft: #ffffff; --black: #ffffff;
  --border: #ffffff;
  --navy: #000000; --navy-deep: #000000;
  --coral: #ffe600; --coral-action: #ffe600; --coral-dark: #ffe600; --coral-light: #ffe600;
  --gold: #ffe600; --gold-dark: #ffe600;
  --teal: #ffe600; --teal-deep: #000000; --purple: #ffe600; --orange: #ffe600;
  background: #000000 !important;
  color: #ffffff !important;
}

/* fundos de blocos -> preto, texto -> branco */
body.high-contrast,
body.high-contrast .hero,
body.high-contrast .spotlight,
body.high-contrast .page-hero,
body.high-contrast .site-header,
body.high-contrast .section-alt,
body.high-contrast .site-footer,
body.high-contrast .spotlight-slide,
body.high-contrast .form-card,
body.high-contrast .form-card.section-dark,
body.high-contrast .project-card,
body.high-contrast .node-card,
body.high-contrast .faq-item,
body.high-contrast .pix-box,
body.high-contrast .pix-qr,
body.high-contrast .amount-btn,
body.high-contrast .project-media,
body.high-contrast .node-icon,
body.high-contrast .a11y-bar { background: #000000 !important; }

/* todos os textos legíveis em branco */
body.high-contrast,
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3,
body.high-contrast h4, body.high-contrast p, body.high-contrast span,
body.high-contrast li, body.high-contrast a, body.high-contrast label,
body.high-contrast summary, body.high-contrast strong, body.high-contrast small,
body.high-contrast .brand, body.high-contrast .nav-links a,
body.high-contrast .nav-toggle, body.high-contrast .lead,
body.high-contrast .spotlight-body h2, body.high-contrast .spotlight-body p,
body.high-contrast .page-hero h1, body.high-contrast .page-hero p,
body.high-contrast .node-card p, body.high-contrast .faq-item p,
body.high-contrast .footer-grid, body.high-contrast .footer-grid a,
body.high-contrast .pix-key, body.high-contrast .pix-qr-label { color: #ffffff !important; }

/* destaques, acentos e links de ação em amarelo */
body.high-contrast .eyebrow,
body.high-contrast .highlight,
body.high-contrast .accent,
body.high-contrast .hero h1 em,
body.high-contrast .node-link,
body.high-contrast .project-gallery-hint,
body.high-contrast .footer-grid ul li a:hover,
body.high-contrast a:hover { color: #ffe600 !important; }

/* bordas brancas em cartões, inputs, divisórias */
body.high-contrast .project-card,
body.high-contrast .node-card,
body.high-contrast .faq-item,
body.high-contrast .form-card,
body.high-contrast .amount-btn,
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select,
body.high-contrast .site-header,
body.high-contrast .spotlight-slide {
  border-color: #ffffff !important;
  border-width: 2px !important;
  border-style: solid !important;
}
body.high-contrast .project-card { border-top: 4px solid #ffe600 !important; }

/* campos de formulário */
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select { background: #000000 !important; color: #ffffff !important; }
body.high-contrast ::placeholder { color: #cccccc !important; }

/* botões: amarelo com texto preto, borda branca */
body.high-contrast .btn,
body.high-contrast .btn-primary,
body.high-contrast .btn-gold,
body.high-contrast .btn-white,
body.high-contrast .pix-copy-btn,
body.high-contrast .amount-btn.selected,
body.high-contrast .pay-tab.active {
  background: #ffe600 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}
body.high-contrast .pay-tab.active { border-bottom-color: #ffe600 !important; }

/* ícones acompanham o texto */
body.high-contrast .icon,
body.high-contrast .node-icon .icon { color: #ffffff !important; stroke: #ffffff !important; }

/* botão flutuante do WhatsApp mantém contraste proprio mas com borda */
body.high-contrast .whatsapp-float { border: 2px solid #ffffff !important; }

/* esconder decoracoes que nao somam no modo contraste */
body.high-contrast .blob,
body.high-contrast .spotlight-doodle { display: none !important; }

/* foco bem visivel */
body.high-contrast a:focus-visible,
body.high-contrast button:focus-visible,
body.high-contrast input:focus-visible,
body.high-contrast textarea:focus-visible {
  outline: 3px solid #ffe600 !important;
  outline-offset: 2px !important;
}

/* --- PRINT --- */
@media print {
  .hero, .spotlight, .page-hero, .site-header { background: white !important; }
  .hero h1, .hero p, .spotlight-body h2, .spotlight-body p, .page-hero h1, .page-hero p, .nav-links a, .brand { color: black !important; }
  .blob, .spotlight-doodle { display: none !important; }
  .section-alt { background: white !important; }
  .project-card { border-top-color: #000 !important; }
  .whatsapp-float { display: none; }
}

