/* Base
   -------------------------------------------------------------------------- */
:root {
  --color-text: #1a1a1a;
  --color-muted: #555555;
  --color-white: #ffffff;
  --color-black: #1a1a1a;
  --color-footer: #f2f3f6;
  --color-donation: #668b55;
  --container: 1224px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: "Open Sans", "Montserrat", "Poppins", Arial, sans-serif;
  background: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section-white {
  background: var(--color-white);
}

/* A imagem real fica em assets/img/fundo-floresta.jpg.
   Caso precise trocar, mantenha o mesmo nome ou ajuste esta URL. */
.image-cover {
  position: relative;
  overflow: hidden;
  background-color: #142117;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("assets/img/fundo-floresta.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  line-height: 1;
  transition: background-color var(--transition), color var(--transition), transform var(--transition), opacity var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

/* Header / Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 545px;
  color: var(--color-white);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding-top: 24px;
}

.header-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  width: 130px;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.84;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 41px;
  min-height: 58px;
  padding-top: 16px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 6px 0 9px;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link--arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-link--arrow::before {
  content: "";
  order: 2;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 4px;
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 178px;
  padding-bottom: 36px;
}

.hero-content h1 {
  max-width: 1056px;
  margin: 0 0 22px;
  font-size: clamp(34px, 3.55vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 540px;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.button--light {
  min-width: 130px;
  min-height: 50px;
  padding: 0 28px;
  color: #000000;
  background: var(--color-white);
  font-size: 14px;
  font-weight: 500;
}

.button--light:hover {
  background: #eae8e8;
}

/* Projetos
   -------------------------------------------------------------------------- */
.projects {
  min-height: 1040px;
  padding: 20px 0 36px;
}

.section-title {
  margin: 0 0 22px;
  color: var(--color-text);
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-title--muted {
  color: #4f4f4f;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 924px);
  margin: 0 auto;
}

.project-card,
.partner-logo {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, #f5f5f5, #e7e7e7);
}

.project-card {
  aspect-ratio: 1 / 1;
}

.project-card img,
.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback::after {
  content: attr(data-missing);
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  padding: 24px;
  color: #5a5a5a;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

/* Parceiros
   -------------------------------------------------------------------------- */
.partners {
  padding: 22px 0 56px;
}

.partners-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 180px;
}

.partner-logo {
  background: transparent;
}

.partner-logo--federal {
  width: 298px;
  height: 168px;
}

.partner-logo--tocantins {
  width: 336px;
  height: 63px;
}

.partner-logo img {
  object-fit: contain;
}

/* Doação
   -------------------------------------------------------------------------- */
.donation {
  height: auto;
  padding: 76px 0 86px;
  overflow: visible;
  background: #f4f5f4;
}

.donation-header {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.donation-header .section-title {
  margin-bottom: 14px;
}

.donation-header p {
  margin: 0;
  color: #3f3f3f;
  font-size: 17px;
  line-height: 1.6;
}

.donation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: stretch;
}

.donation-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 620px;
  min-width: 0;
  padding: 34px;
  color: #1b1b1b;
  background: var(--color-white);
  border: 1px solid rgba(102, 139, 85, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(19, 44, 19, 0.09);
}

.donation-card--international,
.donation-card-content--donorbox {
  min-width: 0;
  overflow: visible;
}

.donation-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.donation-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.donation-card-footer {
  margin-top: auto;
  padding-top: 28px;
}

.donation-card__label {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: #4f7040;
  background: rgba(102, 139, 85, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.donation-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.donation-card p {
  margin: 0;
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.55;
}

.donation-card .donation-card__support-text {
  margin-top: 12px;
  color: #596458;
}

.donation-card .button {
  margin-top: 0;
}

.donation-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.donation-benefits li {
  padding: 7px 10px;
  color: #45643a;
  background: rgba(102, 139, 85, 0.1);
  border: 1px solid rgba(102, 139, 85, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.donation-national-options {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.pix-payment,
.bank-payment {
  padding: 18px;
  background: #f7f9f6;
  border: 1px solid rgba(102, 139, 85, 0.16);
  border-radius: 8px;
}

.pix-payment h4,
.bank-payment h4 {
  margin: 0 0 14px;
  color: #1b1b1b;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.pix-payment img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  border: 8px solid #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(27, 27, 27, 0.1);
}

.bank-payment dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.bank-payment dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.bank-payment dt {
  color: #5d6a59;
  font-size: 13px;
  font-weight: 800;
}

.bank-payment dd {
  margin: 0;
  color: #1b1b1b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.button--donation {
  align-self: flex-start;
  min-height: 52px;
  padding: 0 28px;
  color: var(--color-white);
  background: var(--color-donation);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.button--donation:hover {
  background: #4f7040;
}

.donorbox-widget-shell {
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  overflow: visible;
  border: 1px solid #e8ebe7;
  border-radius: 8px;
  background: #ffffff;
}

.donorbox-wrapper {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  margin-top: 24px;
}

.donorbox-wrapper dbox-widget,
.donorbox-widget-shell dbox-widget,
.donorbox-widget-shell iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.donorbox-widget-shell iframe {
  border: 0;
}

.donation-security {
  margin-top: 14px !important;
  color: #667066 !important;
  font-size: 13px !important;
}

/* Banner e missão
   -------------------------------------------------------------------------- */
.forest-banner {
  min-height: 384px;
  display: flex;
  align-items: center;
  text-align: center;
}

.forest-banner h2 {
  width: min(100%, 858px);
  margin: 0 auto;
  color: #e5e5e5;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.forest-banner h2 span {
  display: block;
}

.mission {
  display: flex;
  align-items: center;
  min-height: 224px;
  padding: 38px 0;
  color: var(--color-white);
  background: var(--color-black);
  text-align: center;
}

.mission p {
  max-width: 967px;
  margin: 0 auto;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

/* Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  min-height: 342px;
  padding: 58px 0 24px;
  background: var(--color-footer);
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.footer-instagram {
  display: inline-flex;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: #1a1a1a;
  transition: color var(--transition), transform var(--transition);
}

.footer-instagram:hover {
  color: #668b55;
  transform: translateY(-1px);
}

.footer-instagram svg,
.whatsapp-float svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #2e2f31;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.site-footer address {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 34px;
  color: var(--color-text);
  font-style: normal;
  font-size: 16px;
  line-height: 1.3;
}

.site-footer address a {
  transition: color var(--transition);
}

.site-footer address a:hover {
  color: #668b55;
}

.copyright {
  margin: 0;
  color: #404040;
  font-size: 14px;
  line-height: 1.3;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--color-white);
  background: #008c63;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), background-color var(--transition);
}

.whatsapp-float:hover {
  background: #007452;
  transform: translateY(-2px);
}

/* Return pages
   -------------------------------------------------------------------------- */
.return-page {
  min-height: 100vh;
  background: var(--color-black);
}

.return-main {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px 20px;
  overflow: hidden;
  background-color: #142117;
  background-image: url("assets/img/fundo-floresta.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.return-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 24, 20, 0.88), rgba(17, 24, 20, 0.58)),
    rgba(17, 24, 20, 0.32);
}

.return-card {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.return-logo {
  display: inline-flex;
  width: 112px;
  margin-bottom: 28px;
  padding: 10px;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 18px 44px rgba(19, 44, 19, 0.12);
}

.return-card .section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--color-donation);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.return-card .section-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.return-card h1 {
  margin: 0;
  color: var(--color-black);
  font-family: "Montserrat", "Open Sans", Arial, sans-serif;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.return-card p {
  max-width: 600px;
  margin: 22px auto 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.6;
}

.return-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.return-actions .button {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 800;
  text-align: center;
}

.button-primary {
  color: var(--color-white);
  background: var(--color-donation);
  box-shadow: 0 14px 26px rgba(102, 139, 85, 0.24);
}

.button-primary:hover {
  background: #4f7040;
}

.button-outline-dark {
  color: #4f7040;
  border-color: rgba(102, 139, 85, 0.32);
  background: var(--color-white);
}

.button-outline-dark:hover {
  border-color: var(--color-donation);
}

/* Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-nav {
    gap: 26px;
  }

  .hero-content h1 {
    max-width: 860px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    width: min(100%, 720px);
  }

  .projects {
    min-height: auto;
    padding-bottom: 64px;
  }
}

@media (max-width: 900px) {
  .donation {
    height: auto;
    padding: 64px 0 72px;
    overflow: visible;
  }

  .donation-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .donation-card {
    width: 100%;
    min-height: auto;
    overflow: visible;
    padding: 30px;
  }

  .donorbox-wrapper {
    width: 100%;
    min-height: 720px;
    overflow: visible;
  }

  .donorbox-wrapper dbox-widget {
    display: block;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 780px) {
  .hero {
    min-height: 590px;
  }

  .site-header {
    padding-top: 18px;
  }

  .header-wrapper {
    align-items: flex-start;
  }

  .brand {
    width: 112px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-top: 6px;
  }

  .site-nav {
    position: absolute;
    top: 88px;
    right: 16px;
    display: grid;
    width: min(260px, calc(100% - 32px));
    gap: 0;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: rgba(26, 26, 26, 0.94);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    padding: 14px 18px;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-content {
    padding-top: 165px;
    text-align: center;
  }

  .hero-content h1,
  .hero-content p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-content h1 {
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1.18;
  }

  .hero-content p {
    font-size: 15px;
  }

  .partners-list {
    flex-direction: column;
    gap: 26px;
    min-height: 0;
    padding-top: 8px;
  }

  .forest-banner {
    min-height: 320px;
  }

  .mission p {
    font-size: 19px;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 32px), 328px);
  }

  .donation .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero {
    min-height: 606px;
  }

  .hero-content {
    padding-top: 150px;
  }

  .hero-content h1 {
    font-size: 25px;
  }

  .hero-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .projects {
    padding: 56px 0 64px;
  }

  .section-title {
    font-size: 28px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .partners {
    padding: 44px 0 46px;
  }

  .partner-logo--federal,
  .partner-logo--tocantins {
    width: 100%;
    height: auto;
    min-height: 96px;
  }

  .partner-logo--tocantins {
    min-height: 48px;
  }

  .donation {
    padding: 54px 0 62px;
  }

  .donation-header {
    margin-bottom: 26px;
  }

  .donation-header p {
    font-size: 15px;
  }

  .donation-card {
    padding: 22px;
  }

  .pix-payment,
  .bank-payment {
    padding: 16px;
  }

  .pix-payment img {
    width: min(100%, 236px);
  }

  .bank-payment dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .donation-card h3 {
    font-size: 22px;
  }

  .button--donation {
    width: 100%;
    align-self: stretch;
    min-height: 52px;
    font-size: 18px;
  }

  .donorbox-widget-shell {
    min-height: 720px;
    overflow: visible;
  }

  .forest-banner {
    min-height: 260px;
  }

  .forest-banner h2 {
    font-size: 25px;
    line-height: 1.24;
  }

  .mission {
    min-height: 190px;
    padding: 42px 0;
  }

  .mission p {
    font-size: 16px;
  }

  .site-footer {
    padding-top: 50px;
  }

  .site-footer address {
    font-size: 14px;
  }

  .copyright {
    font-size: 12px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 18px;
  }

  .return-card {
    padding: 34px 24px;
  }

  .return-card h1 {
    font-size: 32px;
  }

  .return-card p {
    font-size: 16px;
  }

  .return-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .return-actions .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .donorbox-wrapper,
  .donorbox-widget-shell {
    min-height: 760px;
  }
}
