:root {
  --green: #157a43;
  --green-deep: #0f5e34;
  --teal: #1c6b73;
  --leaf: #2faf62;
  --mint: #eef6f1;
  --bg: #f4faf6;
  --ink: #14271e;
  --muted: #4d6359;
  --line: #d8e6df;
  --white: #ffffff;
  --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(20,39,30,.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* LANG */
[data-lang="pt"] .en { display: none !important; }
[data-lang="en"] .pt { display: none !important; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,250,246,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  font-size: .88rem; font-weight: 500; color: var(--muted);
  padding: 6px 14px; border-radius: 20px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--mint); color: var(--green-deep); }
.nav-links a.cta-nav {
  background: var(--green); color: #fff; font-weight: 600;
}
.nav-links a.cta-nav:hover { background: var(--green-deep); }
.lang-toggle {
  cursor: pointer; background: var(--mint); border: 1px solid var(--line);
  border-radius: 20px; padding: 5px 14px; font-size: .82rem; font-weight: 600;
  color: var(--green-deep); display: flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: background .2s;
}
.lang-toggle:hover { background: var(--line); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 16px 5vw;
}
.mobile-menu a {
  padding: 12px 0; font-size: 1rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* HERO */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 5vw; max-width: 780px;
}
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); color: #fff;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: #fff; line-height: 1.15; margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px;
  line-height: 1.7; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  font-weight: 700; font-size: .95rem;
  padding: 14px 28px; border-radius: 30px;
  transition: background .2s, transform .15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,.5);
  transition: background .2s; cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* STATS BAR */
.stats-bar {
  background: var(--green-deep); padding: 36px 5vw;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; text-align: center;
}
.stat-item { }
.stat-num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 700;
  color: #fff; line-height: 1;
}
.stat-label { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }

/* PAGE HERO (subpages) */
.page-hero {
  position: relative; min-height: 380px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.4);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 60px 5vw; width: 100%;
}
.page-hero-content .breadcrumb {
  font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 12px;
}
.page-hero-content .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero-content .breadcrumb a:hover { color: #fff; }
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff; line-height: 1.2;
}
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-top: 14px; max-width: 560px; }

/* SECTIONS */
.section { padding: 80px 5vw; }
.section-alt { background: var(--white); }
.section-dark { background: var(--green-deep); }

.section-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--green); margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  color: var(--ink); line-height: 1.25; margin-bottom: 16px;
}
.section-title.white { color: #fff; }
.section-lead {
  font-size: 1.05rem; color: var(--muted); max-width: 620px; line-height: 1.75;
}
.section-lead.white { color: rgba(255,255,255,.8); }

/* TWO-COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col.reverse { }
.two-col-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.two-col-img img { width: 100%; height: 420px; object-fit: cover; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 48px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(20,39,30,.12); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px 28px 28px; }
.card-tag {
  display: inline-block; background: var(--mint); color: var(--green-deep);
  font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 12px; margin-bottom: 12px;
}
.card-body h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 10px; line-height: 1.3; }
.card-body p { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: .88rem; font-weight: 700;
  color: var(--green); transition: gap .2s;
}
.card-link:hover { gap: 10px; }

/* BEFORE/AFTER */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.ba-item { border-radius: var(--radius); overflow: hidden; position: relative; }
.ba-item img { width: 100%; height: 320px; object-fit: cover; }
.ba-label {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 14px; border-radius: 12px;
}
.ba-full { border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.ba-full img { width: 100%; max-height: 600px; object-fit: cover; }

/* HIGHLIGHT BOX */
.highlight-box {
  background: var(--mint); border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px; margin: 32px 0;
}
.highlight-box p { color: var(--green-deep); font-size: 1rem; line-height: 1.7; }

/* FEATURE LIST */
.feature-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: .95rem; color: var(--muted); line-height: 1.6;
}
.feature-list li::before {
  content: ''; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 70%; background-position: center; background-repeat: no-repeat;
}

/* PHOTO GRID */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.photo-grid img { border-radius: 12px; width: 100%; height: 240px; object-fit: cover; }
.photo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.photo-grid-2 img { border-radius: 12px; width: 100%; height: 300px; object-fit: cover; }

/* PLACEHOLDER */
.photo-placeholder {
  border-radius: 12px; background: var(--mint); border: 2px dashed var(--line);
  height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted); font-size: .85rem; text-align: center; padding: 20px;
}
.photo-placeholder .icon { font-size: 2rem; }

/* DONATION SECTION */
.donate-box {
  background: var(--white); border-radius: var(--radius);
  padding: 48px; text-align: center; box-shadow: var(--shadow); max-width: 680px; margin: 0 auto;
}
.donate-box h2 { font-family: var(--serif); font-size: 2rem; margin-bottom: 14px; }
.donate-box p { color: var(--muted); margin-bottom: 32px; line-height: 1.7; }
.donate-impact {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px;
}
.impact-item { background: var(--mint); border-radius: 12px; padding: 20px 16px; }
.impact-val { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--green-deep); }
.impact-desc { font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.btn-donate {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0070ba; color: #fff;
  font-weight: 700; font-size: 1rem;
  padding: 16px 36px; border-radius: 30px;
  transition: background .2s, transform .15s;
}
.btn-donate:hover { background: #005ea6; transform: translateY(-1px); }
.pix-note { margin-top: 20px; font-size: .82rem; color: var(--muted); }
.cnpj-note { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-info h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--mint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-val { font-size: .95rem; color: var(--ink); margin-top: 2px; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: .92rem; font-family: var(--sans);
  background: var(--bg); color: var(--ink); outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* MISSION PILLARS */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.pillar {
  background: var(--white); border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow); text-align: center;
}
.pillar-icon { font-size: 2.5rem; margin-bottom: 16px; }
.pillar h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 10px; color: var(--ink); }
.pillar p { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* FOOTER */
footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 56px 5vw 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .88rem; margin-bottom: 10px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: 12px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
  color: rgba(255,255,255,.7); transition: background .2s, color .2s;
}
.social-link:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse .two-col-img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .ba-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .donate-impact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .page-hero { min-height: 280px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid-2 { grid-template-columns: 1fr; }
}

/* TOOL CARDS */
.tools-search {
  max-width: 640px; margin: 0 auto 48px;
  position: relative;
}
.tools-search input {
  width: 100%; padding: 16px 24px 16px 52px;
  border: 2px solid var(--line); border-radius: 30px;
  font-size: 1rem; font-family: var(--sans);
  background: var(--white); color: var(--ink);
  outline: none; transition: border-color .2s;
  box-shadow: 0 2px 16px rgba(20,39,30,.06);
}
.tools-search input:focus { border-color: var(--green); }
.tools-search::before {
  content: '\1F50D'; position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%); font-size: 1.1rem; pointer-events: none;
}
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tool-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1.5px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(20,39,30,.1); border-color: var(--leaf); }
.tool-card[hidden] { display: none; }
.tool-icon { font-size: 2.2rem; }
.tool-cat {
  display: inline-block; background: var(--mint); color: var(--green-deep);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 10px;
}
.tool-name { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: 0; }
.tool-desc { font-size: .88rem; color: var(--muted); line-height: 1.65; flex: 1; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--mint); color: var(--green-deep); border: none; cursor: pointer;
  font-size: .85rem; font-weight: 700; padding: 10px 18px; border-radius: 20px;
  font-family: var(--sans); transition: background .2s; align-self: flex-start; margin-top: auto;
}
.tool-btn:hover { background: var(--line); }

/* MODAL */
dialog {
  border: none; border-radius: var(--radius); padding: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); max-width: 600px; width: calc(100% - 40px);
  max-height: 80vh; overflow: auto;
}
dialog::backdrop { background: rgba(0,0,0,.5); }
.dialog-header {
  padding: 24px 28px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.dialog-header h3 { font-family: var(--serif); font-size: 1.3rem; }
.dialog-close {
  background: var(--mint); border: none; border-radius: 50%; width: 32px; height: 32px;
  cursor: pointer; font-size: 1rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.dialog-body { padding: 16px 28px 28px; }
.prompt-box {
  background: var(--mint); border-radius: 10px; padding: 20px;
  font-size: .88rem; line-height: 1.75; color: var(--ink);
  white-space: pre-wrap; word-break: break-word; margin: 12px 0;
  border-left: 3px solid var(--green);
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff; border: none; cursor: pointer;
  font-size: .85rem; font-weight: 700; padding: 10px 20px; border-radius: 20px;
  font-family: var(--sans); transition: background .2s;
}
.copy-btn:hover { background: var(--green-deep); }

/* EAD */
.ead-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 40px; counter-reset: ead-step; }
.ead-step { background: var(--white); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); position: relative; }
.ead-step::before { counter-increment: ead-step; content: counter(ead-step); font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--mint); position: absolute; top: 16px; right: 20px; line-height: 1; }
.ead-step h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 10px; }
.ead-step p { font-size: .88rem; color: var(--muted); line-height: 1.65; }
.ead-step-icon { font-size: 2rem; margin-bottom: 14px; }
