:root{
  --blue:#096CAB;
  --yellow:#FFB404;
  --red:#ED1C24;
  --green:#29A76C;
  --ink:#20304a;
  --ink-soft:#4b5d78;
  --bg:#fbfaf6;
  --bg-card:#ffffff;
  --border:#e7e2d6;
  --whatsapp:#25D366;
  --instagram-start:#F58529;
  --instagram-mid:#DD2A7B;
  --instagram-end:#8134AF;
  --radius-lg:28px;
  --radius-md:18px;
  --radius-sm:12px;
  --shadow-soft:0 10px 30px -12px rgba(32,48,74,0.18);
  --shadow-lift:0 18px 44px -16px rgba(32,48,74,0.28);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Nunito Sans', system-ui, sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3{
  font-family:'Baloo 2', system-ui, sans-serif;
  margin:0;
  line-height:1.15;
}
p{ margin:0; line-height:1.65; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; border:none; background:none; }

/* ---------- Background decoration ---------- */
.bg-blob{
  position:fixed;
  border-radius:50%;
  filter:blur(60px);
  opacity:0.28;
  z-index:0;
  pointer-events:none;
}
.bg-blob.b1{ width:520px; height:520px; top:-180px; left:-160px; background:var(--blue); }
.bg-blob.b2{ width:480px; height:480px; bottom:-200px; right:-160px; background:var(--yellow); opacity:0.22; }
.bg-blob.b3{ width:360px; height:360px; top:38%; right:8%; background:var(--red); opacity:0.10; }
.bg-blob.b4{ width:340px; height:340px; bottom:8%; left:6%; background:var(--green); opacity:0.14; }

@media (prefers-reduced-motion: no-preference){
  .bg-blob{ transition:transform 0.2s ease-out; }
}

.wrap{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:32px 20px 140px;
}

/* ---------- Logos ---------- */
.logos{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  margin-top:12px;
  flex-wrap:wrap;
}
.logos img{ height:56px; width:auto; }
.logos .divider{
  width:1px;
  height:40px;
  background:var(--border);
}
.logo-afai img{ height:88px; }

/* ---------- Badge ---------- */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:44px;
  padding:9px 18px;
  border-radius:999px;
  background:var(--bg-card);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--blue);
}
.badge .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 0 rgba(41,167,108,0.55);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(41,167,108,0.45); }
  70%{ box-shadow:0 0 0 8px rgba(41,167,108,0); }
  100%{ box-shadow:0 0 0 0 rgba(41,167,108,0); }
}
@media (prefers-reduced-motion: reduce){
  .badge .dot{ animation:none; }
}

/* ---------- Hero ---------- */
.hero{
  max-width:760px;
  text-align:center;
  margin-top:22px;
}
.hero h1{
  font-size:clamp(2.2rem, 5.4vw, 3.6rem);
  color:var(--ink);
  font-weight:800;
}
.hero h1 .spectrum span{
  -webkit-text-stroke:2px #fff;
  paint-order:stroke fill;
  text-shadow:0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff;
}
.hero h1 .spectrum span:nth-child(4n+1){ color:var(--blue); }
.hero h1 .spectrum span:nth-child(4n+2){ color:var(--red); }
.hero h1 .spectrum span:nth-child(4n+3){ color:var(--yellow); }
.hero h1 .spectrum span:nth-child(4n+4){ color:var(--green); }
.hero p.lead{
  margin-top:20px;
  font-size:clamp(1rem, 2vw, 1.2rem);
  color:var(--ink-soft);
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

/* ---------- Donate CTA ---------- */
.cta-row{
  margin-top:44px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.btn-donate{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 34px;
  border-radius:999px;
  background:linear-gradient(100deg, var(--red), #f5424a);
  color:#fff;
  font-weight:700;
  font-size:1.05rem;
  box-shadow:0 14px 30px -10px rgba(237,28,36,0.55);
  cursor:pointer;
  transition:transform 200ms ease, box-shadow 200ms ease;
}
.btn-donate:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px -10px rgba(237,28,36,0.6);
}
.btn-donate:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px;
}
.btn-donate svg{ width:22px; height:22px; }
/* ---------- Contact buttons ---------- */
.contacts{
  margin-top:56px;
  display:flex;
  gap:16px;
  align-items:center;
}
.contact-btn{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 22px;
  border-radius:999px;
  background:var(--bg-card);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  font-weight:700;
  font-size:14.5px;
  color:var(--ink);
  cursor:pointer;
  transition:transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.contact-btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-lift);
  border-color:transparent;
}
.contact-btn:focus-visible{
  outline:3px solid var(--blue);
  outline-offset:2px;
}
.contact-btn .icon-circle{
  width:30px;
  height:30px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.contact-btn.whatsapp .icon-circle{ background:var(--whatsapp); }
.contact-btn.instagram .icon-circle{
  background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.contact-btn svg{ width:17px; height:17px; color:#fff; }

/* ---------- Footer ---------- */
footer{
  margin-top:70px;
  text-align:center;
}
footer .org{
  font-weight:700;
  font-size:13.5px;
  color:var(--ink);
}
footer .cnpj{
  margin-top:4px;
  font-size:12.5px;
  color:var(--ink-soft);
}

/* ---------- Modal ---------- */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(20,28,45,0.55);
  backdrop-filter:blur(3px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:100;
  opacity:0;
  pointer-events:none;
  transition:opacity 220ms ease;
}
.modal-overlay.open{
  opacity:1;
  pointer-events:auto;
}
.modal{
  background:var(--bg-card);
  border-radius:var(--radius-lg);
  max-width:380px;
  width:100%;
  padding:32px 28px 28px;
  box-shadow:0 30px 70px -20px rgba(20,28,45,0.5);
  position:relative;
  transform:translateY(14px) scale(0.97);
  transition:transform 220ms ease;
  text-align:center;
}
.modal-overlay.open .modal{
  transform:translateY(0) scale(1);
}
.modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg);
  border:1px solid var(--border);
  cursor:pointer;
  color:var(--ink-soft);
  transition:background 160ms ease, color 160ms ease;
}
.modal-close:hover{ background:#f1ede2; color:var(--ink); }
.modal-close:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
.modal-close svg{ width:16px; height:16px; }

.modal h3{
  font-size:1.35rem;
  color:var(--ink);
}
.modal p.sub{
  margin-top:6px;
  font-size:13.5px;
  color:var(--ink-soft);
}
.qr-frame{
  margin:22px auto 0;
  width:min(230px, 70vw);
  padding:10px;
  background:#fff;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
}
.qr-frame img{ width:100%; border-radius:8px; }

.pix-key-box{
  margin-top:20px;
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--bg);
  border:1px dashed var(--border);
  border-radius:var(--radius-sm);
  padding:10px 12px;
}
.pix-key-box code{
  flex:1;
  text-align:center;
  font-size:15.5px;
  font-weight:600;
  color:var(--ink);
  overflow-wrap:anywhere;
  font-family:'SFMono-Regular', Consolas, monospace;
}

.btn-copy{
  margin-top:14px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:13px 18px;
  border-radius:999px;
  background:var(--blue);
  color:#fff;
  font-weight:700;
  font-size:14.5px;
  cursor:pointer;
  transition:background 180ms ease, transform 180ms ease;
}
.btn-copy:hover{ background:#075a8e; transform:translateY(-1px); }
.btn-copy:focus-visible{ outline:3px solid var(--yellow); outline-offset:2px; }
.btn-copy.copied{ background:var(--green); }
.btn-copy svg{ width:17px; height:17px; }

.modal-org{
  margin-top:18px;
  font-size:12px;
  color:var(--ink-soft);
  line-height:1.5;
}
.modal-org strong{ color:var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width:600px){
  .logos{ gap:18px; }
  .logos img{ height:44px; }
  .logo-afai img{ height:70px; }
  .contacts{ flex-direction:column; width:100%; max-width:280px; }
  .contact-btn{ width:100%; justify-content:center; }
  .wrap{ padding-bottom:100px; }
}

.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;
}
