/* ==========================================================================
   INSTITUTO MOSAICO RECIFE — Design System 2026
   Referência: AACD.org.br — limpo, arejado, hierarquia forte, cores vibrantes
   Paleta: verde institucional + creme/âmbar quente (identidade logo vitral)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&display=swap');

/* --- TOKENS --------------------------------------------------------------- */
:root {
  /* Verde institucional (retirado do logo + PDFs) */
  --green-900:   #0D3320;
  --green-800:   #1A4731;   /* nav ativo, hover escuro */
  --green-700:   #1E5C3C;
  --green-600:   #2D6A4F;   /* verde principal */
  --green-500:   #40916C;   /* hover links */
  --green-300:   #74C69D;
  --green-100:   #D8F3DC;   /* fundos suaves */
  --green-50:    #F0FAF3;

  /* Âmbar/Creme — do booklet e inspirado no bloco hero AACD */
  --amber-500:   #E8A020;   /* acento vibrante */
  --amber-300:   #F5C858;
  --amber-100:   #FDF3D0;
  --amber-50:    #FFFCF0;

  /* Neutros */
  --white:       #FFFFFF;
  --gray-50:     #F8F9FA;   /* fundo seções alternadas */
  --gray-100:    #F0F2F0;   /* fundo cards programas (igual AACD) */
  --gray-200:    #E2E6E2;   /* bordas suaves */
  --gray-400:    #9AA89C;   /* texto muted */
  --gray-700:    #3D4F44;   /* texto corpo */
  --gray-900:    #111814;   /* títulos */

  /* Footer escuro */
  --dark:        #111814;
  --dark-700:    #1D2D22;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Espaçamento 8pt */
  --s1:  0.25rem;  --s2:  0.5rem;   --s3:  0.75rem;  --s4:  1rem;
  --s5:  1.25rem;  --s6:  1.5rem;   --s8:  2rem;     --s10: 2.5rem;
  --s12: 3rem;     --s16: 4rem;     --s20: 5rem;     --s24: 6rem;

  /* Border radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   40px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-xs:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.12);

  /* Animações */
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:  160ms;
  --dur-base:  320ms;
  --dur-slow:  560ms;
}

/* --- RESET ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--white); color: var(--gray-700); overflow-x: hidden; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; border-radius: var(--r-sm); }

/* --- TIPOGRAFIA ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--gray-900); line-height: 1.06; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.8; color: var(--gray-700); }
a  { color: var(--green-600); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--green-800); }
em { color: var(--green-600); font-style: italic; }
strong { color: var(--gray-900); font-weight: 700; }

/* --- LAYOUT --------------------------------------------------------------- */
.container  { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s6); position: relative; z-index: 1; }
section     { padding-block: var(--s20); }

/* --- EYEBROW LABEL -------------------------------------------------------- */
.label {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: var(--s4);
}
.label::before {
  content: ''; display: block; width: 18px; height: 2px;
  background: var(--green-600); border-radius: 2px; flex-shrink: 0;
}

/* --- DIVIDER -------------------------------------------------------------- */
.divider { width: 44px; height: 3px; background: var(--green-600); border-radius: 2px; margin-block: var(--s4); }

/* --- BANNER TOPO ---------------------------------------------------------- */
.banner-top {
  background: var(--green-800); color: rgba(255,255,255,0.85);
  text-align: center; padding: var(--s2) var(--s4);
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; z-index: 1001; position: relative;
}

/* --- NAVEGAÇÃO ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--s3) 0;
  transition: box-shadow var(--dur-base);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin-inline: auto; padding-inline: var(--s6);
}

.nav__logo { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.nav__logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__logo-main { font-family: var(--font-body); font-weight: 800; font-size: 0.9rem; color: var(--gray-900); letter-spacing: 0.04em; text-transform: uppercase; }
.nav__logo-sub  { font-family: var(--font-body); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-600); }

.nav__links { display: flex; align-items: center; gap: var(--s8); list-style: none; }
.nav__links a {
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gray-700); text-decoration: none;
  transition: color var(--dur-fast);
  position: relative; padding-bottom: 2px;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--green-600); border-radius: 2px;
  transition: width var(--dur-base) var(--ease-out);
}
.nav__links a:hover, .nav__links a.active { color: var(--green-800); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; background: none; border: none; cursor: pointer; padding: 4px 0;
}
.nav__hamburger span { display: block; width: 100%; height: 2px; background: var(--gray-900); border-radius: 2px; transition: transform var(--dur-fast), opacity var(--dur-fast); }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--white);
  z-index: 999; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s6); padding-top: 80px;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gray-900); text-decoration: none; transition: color var(--dur-fast);
}
.nav__mobile-menu a:hover { color: var(--green-600); }

/* --- BOTÕES --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: var(--s4) var(--s8); border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}

/* CTA principal — verde escuro sólido (como AACD usa vermelho sólido) */
.btn-primary {
  background: var(--green-800); color: var(--white); border-color: var(--green-800);
}
.btn-primary:hover {
  background: var(--green-600); border-color: var(--green-600);
  color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* Outline */
.btn-outline {
  background: transparent; color: var(--green-800); border-color: var(--green-800);
}
.btn-outline:hover {
  background: var(--green-800); color: var(--white);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* Outline branco — sobre fundos escuros */
.btn-outline-white {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15); border-color: var(--white);
  transform: translateY(-2px);
}

/* Âmbar — destaque especial */
.btn-amber {
  background: var(--amber-500); color: var(--gray-900); border-color: var(--amber-500);
}
.btn-amber:hover {
  background: var(--amber-300); border-color: var(--amber-300);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* --- HERO ----------------------------------------------------------------- */
/* Baseado no AACD: bloco de cor vivo à esquerda + foto à direita */
.hero {
  background: var(--white);
  padding-block: 0;
  min-height: 520px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.hero__content-block {
  background: var(--green-800);   /* bloco verde sólido — como AACD usa âmbar/amarelo */
  padding: var(--s16) var(--s12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Detalhe decorativo fundo */
.hero__content-block::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero__eyebrow {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-300); margin-bottom: var(--s4);
  display: flex; align-items: center; gap: var(--s2);
}
.hero__eyebrow::before {
  content: ''; width: 16px; height: 2px;
  background: var(--green-300); border-radius: 2px; flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: var(--s5);
}
.hero__title em { color: var(--amber-300); font-style: italic; }

.hero__text {
  font-size: 1rem; color: rgba(255,255,255,0.75);
  max-width: 420px; line-height: 1.75; margin-bottom: var(--s8);
}

.hero__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

.hero__photo-block {
  position: relative; overflow: hidden;
  background: var(--gray-100);
}
.hero__photo-block img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* --- IMPACT STRIP --------------------------------------------------------- */
.impact-strip { background: var(--gray-50); padding-block: var(--s16); }
.impact-strip--border { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.impact-item {
  text-align: center; padding: var(--s6) var(--s4);
  position: relative;
}
.impact-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px;
  background: var(--gray-200);
}

.impact-number {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 900;
  color: var(--green-800); line-height: 1; letter-spacing: -0.04em;
}

.impact-label {
  display: block; font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray-400); margin-top: var(--s2);
}

/* --- CARDS DE PROGRAMA (estilo AACD: cinza-claro, simples) --------------- */
.card {
  background: var(--gray-100);   /* fundo cinza muito suave */
  border: none;
  border-radius: var(--r-md);
  padding: var(--s8) var(--s6);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base), background var(--dur-base);
}
.card:hover {
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 54px; height: 54px; background: var(--white);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; margin-bottom: var(--s5);
  box-shadow: var(--shadow-xs);
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--green-600); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.card__title { font-family: var(--font-body); font-size: 1rem; font-weight: 800; color: var(--gray-900); margin-bottom: var(--s2); }
.card__text  { font-size: 0.88rem; color: var(--gray-400); line-height: 1.75; }

/* Card featured — verde (Aldeia Soccer) */
.card--featured { background: var(--green-800); }
.card--featured:hover { background: var(--green-700); }
.card--featured .card__icon { background: rgba(255,255,255,0.12); box-shadow: none; }
.card--featured .card__icon svg { stroke: var(--green-300); }
.card--featured .card__title { color: var(--white); }
.card--featured .card__text  { color: rgba(255,255,255,0.65); }

/* --- GRIDS ---------------------------------------------------------------- */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--s4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }

/* --- SEÇÕES --------------------------------------------------------------- */
.section-white  { background: var(--white); }
.section-gray   { background: var(--gray-50); }
.section-green  { background: var(--green-800); }
.section-green2 { background: var(--green-100); }
.section-amber  { background: var(--amber-50); }

/* --- PAGE HEADER ---------------------------------------------------------- */
.page-header {
  background: var(--green-800); padding-top: var(--s20); padding-bottom: var(--s16);
}
.page-header h1, .page-header .label { color: var(--white); }
.page-header .label { color: var(--green-300); }
.page-header p    { color: rgba(255,255,255,0.7); }
.page-header em   { color: var(--amber-300); }

/* --- DONATION CTA (estilo AACD: imagem + texto lado a lado) -------------- */
.donate-banner {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
  border-bottom: 1px solid var(--green-100);
}

.donate-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.donate-banner__photo {
  position: relative; overflow: hidden;
}
.donate-banner__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.donate-banner__content {
  background: var(--green-800); padding: var(--s12);
  display: flex; flex-direction: column; justify-content: center;
}

.donate-banner__content .label { color: var(--green-300); }
.donate-banner__content h2 { color: var(--white); margin-bottom: var(--s5); }
.donate-banner__content h2 em { color: var(--amber-300); }
.donate-banner__content p { color: rgba(255,255,255,0.7); max-width: 420px; margin-bottom: var(--s8); }

/* PIX box */
.pix-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  padding: var(--s5) var(--s6);
  display: flex; align-items: center; gap: var(--s4);
  margin-top: var(--s6);
}
.pix-box__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(255,255,255,0.1); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.pix-box__icon svg { width: 20px; height: 20px; stroke: var(--amber-300); fill: none; stroke-width: 1.8; }
.pix-box__label { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-300); display: block; margin-bottom: 2px; }
.pix-box__key   { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--white); }

/* --- TIMELINE ------------------------------------------------------------- */
.timeline { position: relative; padding-left: var(--s12); }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--green-100); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: var(--s10); }
.timeline-item::before { content: ''; position: absolute; left: calc(-3rem - 3px); top: 8px; width: 10px; height: 10px; background: var(--green-600); border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green-600); }
.timeline-item__year  { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-600); margin-bottom: var(--s2); }
.timeline-item__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: var(--s3); }
.timeline-item__text  { font-size: 0.9rem; color: var(--gray-400); line-height: 1.8; }

/* --- STEP CARD ------------------------------------------------------------ */
.step-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-top: 3px solid var(--green-600); border-radius: var(--r-md);
  padding: var(--s8); position: relative;
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card__number { position: absolute; top: var(--s4); right: var(--s6); font-family: var(--font-display); font-size: 3.5rem; font-weight: 900; color: var(--green-100); line-height: 1; user-select: none; }
.step-card__title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: var(--s3); }
.step-card__text  { font-size: 0.88rem; color: var(--gray-400); line-height: 1.75; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s5); }

/* --- TEAM CARD ------------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s5); }
.team-card { text-align: center; padding: var(--s8) var(--s5); background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-md); transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card__avatar { width: 64px; height: 64px; background: var(--green-100); border-radius: 50%; margin: 0 auto var(--s4); display: flex; align-items: center; justify-content: center; }
.team-card__avatar svg { width: 24px; height: 24px; stroke: var(--green-600); fill: none; stroke-width: 1.8; }
.team-card__name { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: var(--s1); }
.team-card__role { font-size: 0.75rem; color: var(--green-600); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }

/* --- FORMULÁRIO ----------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form-full  { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: var(--s2); }
.form-group label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-700); }
.form-group input, .form-group textarea, .form-group select { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--r-md); padding: var(--s4) var(--s5); color: var(--gray-900); font-family: var(--font-body); font-size: 0.95rem; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); outline: none; width: 100%; }
.form-group select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2340916C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s4) center; padding-right: var(--s10); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(64,145,108,0.12); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* --- GALERIA -------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s3); }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; border-radius: var(--r-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-filters { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s8); }
.filter-btn { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: var(--s2) var(--s5); background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--r-pill); color: var(--gray-400); cursor: pointer; transition: all var(--dur-fast); }
.filter-btn:hover, .filter-btn.active { background: var(--green-800); border-color: var(--green-800); color: var(--white); box-shadow: var(--shadow-sm); }

/* --- LIGHTBOX ------------------------------------------------------------- */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.93); backdrop-filter: blur(16px); align-items: center; justify-content: center; padding: var(--s8); }
.lightbox.active { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--r-md); animation: lightboxIn var(--dur-base) var(--ease-spring); }
@keyframes lightboxIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.lightbox__close, .lightbox__nav { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast); }
.lightbox__close { position: absolute; top: var(--s6); right: var(--s6); width: 48px; height: 48px; font-size: 1.3rem; }
.lightbox__nav   { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.2rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(64,145,108,0.4); }
.lightbox__prev { left: var(--s4); }
.lightbox__next { right: var(--s4); }

/* --- HIGHLIGHT BOX -------------------------------------------------------- */
.highlight-box { background: var(--green-50); border: 1px solid var(--green-100); border-left: 4px solid var(--green-600); border-radius: var(--r-md); padding: var(--s6) var(--s8); }

/* --- BLOCKQUOTE ----------------------------------------------------------- */
blockquote { border-left: 3px solid var(--green-600); padding-left: var(--s6); margin-block: var(--s6); }
blockquote p { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; font-weight: 400; color: var(--gray-900); }

/* --- SCROLL REVEAL -------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal="right"] { transform: translateX(-22px); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* --- FOOTER --------------------------------------------------------------- */
.footer { background: var(--dark); color: var(--white); padding-block: var(--s16) var(--s8); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s10); margin-bottom: var(--s12); }
.footer__logo { display: flex; align-items: center; gap: var(--s3); text-decoration: none; margin-bottom: var(--s5); }
.footer__logo img { width: 40px; height: 40px; border-radius: 50%; }
.footer__logo-name { font-family: var(--font-body); font-weight: 800; font-size: 0.9rem; color: var(--white); letter-spacing: 0.04em; text-transform: uppercase; }
.footer__tagline { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.75; margin-bottom: var(--s5); }
.footer__nav h4 { font-family: var(--font-body); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-300); margin-bottom: var(--s4); }
.footer__nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.footer__nav ul a { font-size: 0.88rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color var(--dur-fast); }
.footer__nav ul a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s8); border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: var(--s3); }

/* --- SCROLL HINT ---------------------------------------------------------- */
.scroll-hint { position: absolute; bottom: var(--s6); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--s2); color: rgba(255,255,255,0.4); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; animation: bounce 2.5s ease-in-out infinite; }
.scroll-hint svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }

/* --- PARCEIROS ------------------------------------------------------------ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base), border-color var(--dur-base);
}
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
}

.partner-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s8);
  aspect-ratio: 1.6 / 1;
}

.partner-card__logo {
  max-width: 110px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--r-md);
}

.partner-card__body {
  padding: var(--s5) var(--s6) var(--s6);
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  flex: 1;
}

.partner-card__name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
}

.partner-card__desc {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.7;
  flex: 1;
}

.partner-card__handle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-600);
  margin-top: var(--s3);
  transition: color var(--dur-fast);
}
.partner-card:hover .partner-card__handle { color: var(--green-800); }
.partner-card__handle svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .partners-grid { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (min-width: 480px) and (max-width: 768px) {
  .partners-grid { grid-template-columns: 1fr 1fr; }
}


/* --- RESPONSIVO ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .impact-grid  { grid-template-columns: repeat(2, 1fr); }
  .impact-item:nth-child(2)::after { display: none; }
  .donate-banner__inner { grid-template-columns: 1fr; }
  .donate-banner__photo { min-height: 280px; }
}

@media (max-width: 768px) {
  /* Tipografia geral */
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  section { padding-block: var(--s12); }

  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Grids → coluna única */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Programas: 1 coluna */
  .programs-grid { grid-template-columns: 1fr; }

  /* Comunidade: coluna única, mosaico abaixo */
  .section-white .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--s8) !important;
  }

  /* Mosaico de fotos: 2x2 simples */
  .section-white .container > div > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Remove offsets artificiais no mobile */
  .section-white .container > div > div > div[style*="margin-top"] {
    margin-top: 0 !important;
  }

  /* Donate banner */
  .donate-banner__inner { grid-template-columns: 1fr !important; border-radius: var(--r-lg); }
  .donate-banner__photo { min-height: 220px; order: -1; }
  .donate-banner__content { padding: var(--s8); }

  /* Formulário */
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }

  /* Contato: coluna única */
  .section-white .container > div[style*="1.2fr"] {
    grid-template-columns: 1fr !important;
  }

  /* PIX box */
  .pix-box { flex-direction: column; align-items: flex-start; gap: var(--s3); }

  /* Impact strip: 2x2 */
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-item::after { display: none !important; }

  /* Timeline */
  .timeline { padding-left: var(--s8); }

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

  /* Steps grid */
  .steps-grid { grid-template-columns: 1fr; }

  /* Footer: coluna única */
  .footer__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Sobre: seções com grids antigos */
  .section-raised > .container > div[style*="grid-template-columns"],
  .section-base > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: var(--s8) !important;
  }

  /* Vision: grid 2 → 1 col */
  .grid-2[style*="max-width:780px"] { grid-template-columns: 1fr !important; }

  /* Page header */
  .page-header { padding-top: var(--s12); padding-bottom: var(--s10); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--s4); }
  section { padding-block: var(--s10); }
  .btn { font-size: 0.8rem; padding: var(--s3) var(--s5); }
  .team-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-banner__content { padding: var(--s6); }
  h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

/* Container pill — fundo da nav é BRANCO, usar cores escuras */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 3px;
}

/* Botão inativo — totalmente visível */
.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-700);       /* texto escuro e legível */
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.lang-switcher__btn:hover {
  background: var(--gray-200);
  color: var(--gray-900);
  transform: scale(1.04);
}

/* Botão ativo */
.lang-switcher__btn--active {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 1px 6px rgba(45,106,79,0.35);
}

.lang-switcher__btn--active:hover {
  background: var(--green-500);
  color: #fff;
  transform: none;
}

/* Bandeira — SVG via data URI (emoji de bandeira não funciona no Windows) */
.lang-flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.10);
  transition: transform 0.2s;
  vertical-align: middle;
}

/* Bandeira Brasil 🇧🇷 */
.lang-flag--pt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23009C3B'/%3E%3Cpolygon points='10,1.5 18.5,7 10,12.5 1.5,7' fill='%23FEDF00'/%3E%3Ccircle cx='10' cy='7' r='3.2' fill='%23002776'/%3E%3Cpath d='M7,6.5 Q10,5.2 13,6.5' stroke='white' stroke-width='0.6' fill='none'/%3E%3C/svg%3E");
}

/* Bandeira USA 🇺🇸 */
.lang-flag--en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23B22234'/%3E%3Crect y='1.08' width='20' height='1.08' fill='white'/%3E%3Crect y='3.23' width='20' height='1.08' fill='white'/%3E%3Crect y='5.38' width='20' height='1.08' fill='white'/%3E%3Crect y='7.54' width='20' height='1.08' fill='white'/%3E%3Crect y='9.69' width='20' height='1.08' fill='white'/%3E%3Crect y='11.85' width='20' height='1.08' fill='white'/%3E%3Crect width='8' height='7.54' fill='%233C3B6E'/%3E%3Cg fill='white'%3E%3Ccircle cx='1.3' cy='1.2' r='0.55'/%3E%3Ccircle cx='2.6' cy='1.2' r='0.55'/%3E%3Ccircle cx='3.9' cy='1.2' r='0.55'/%3E%3Ccircle cx='5.2' cy='1.2' r='0.55'/%3E%3Ccircle cx='6.5' cy='1.2' r='0.55'/%3E%3Ccircle cx='1.95' cy='2.4' r='0.55'/%3E%3Ccircle cx='3.25' cy='2.4' r='0.55'/%3E%3Ccircle cx='4.55' cy='2.4' r='0.55'/%3E%3Ccircle cx='5.85' cy='2.4' r='0.55'/%3E%3Ccircle cx='1.3' cy='3.6' r='0.55'/%3E%3Ccircle cx='2.6' cy='3.6' r='0.55'/%3E%3Ccircle cx='3.9' cy='3.6' r='0.55'/%3E%3Ccircle cx='5.2' cy='3.6' r='0.55'/%3E%3Ccircle cx='6.5' cy='3.6' r='0.55'/%3E%3Ccircle cx='1.95' cy='4.8' r='0.55'/%3E%3Ccircle cx='3.25' cy='4.8' r='0.55'/%3E%3Ccircle cx='4.55' cy='4.8' r='0.55'/%3E%3Ccircle cx='5.85' cy='4.8' r='0.55'/%3E%3Ccircle cx='1.3' cy='6' r='0.55'/%3E%3Ccircle cx='2.6' cy='6' r='0.55'/%3E%3Ccircle cx='3.9' cy='6' r='0.55'/%3E%3Ccircle cx='5.2' cy='6' r='0.55'/%3E%3Ccircle cx='6.5' cy='6' r='0.55'/%3E%3C/g%3E%3C/svg%3E");
}

/* Bandeira Espanha 🇪🇸 */
.lang-flag--es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%23c60b1e'/%3E%3Crect y='3.5' width='20' height='7' fill='%23ffc400'/%3E%3C/svg%3E");
}

.lang-switcher__btn:hover .lang-flag {
  transform: scale(1.18);
}

/* Código de texto ao lado da bandeira */
.lang-code {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ── Mobile variant ──────────────────────────────────────── */
/* No mobile-menu (fundo branco), mesma aparência */
.lang-switcher--mobile {
  margin: var(--s4) 0 var(--s2);
  align-self: flex-start;
  background: var(--gray-100);
  border-color: var(--gray-200);
}

/* ── Responsivo ────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Esconde o código de texto, mostra só a bandeira */
  .nav__right .lang-code { display: none; }
  .nav__right .lang-switcher__btn { padding: 5px 7px; gap: 0; }
}

@media (max-width: 768px) {
  /* Desktop switcher some no mobile */
  .nav__right {
    display: none;
  }
  /* Mobile mostra bandeira + código */
  .lang-switcher--mobile .lang-code { display: inline; }
  .lang-switcher--mobile .lang-switcher__btn { padding: 5px 10px 5px 6px; gap: 5px; }
}


