/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .site-footer {
    padding-top: 56px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(200px, 1fr) minmax(140px, 1fr);
    gap: 48px 32px;
    padding-inline: var(--side);
  }

  .site-footer__form {
    grid-column: 1 / -1;
  }

  .site-footer__menu {
    max-width: none;
  }

  .site-footer__title {
    font-size: 28px;
  }

  .form {
    width: 100%;
    margin-left: 0;
  }

  .site-footer__bar {
    height: auto;
    margin: 56px var(--side) 0;
    padding-bottom: 32px;
  }

  .site-footer__legal,
  .site-footer__copy {
    position: static;
  }

  .site-footer__bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 960px) {
  .site-nav__link {
    padding-inline: 10px;
  }

  :root {
    --content: calc(100% - (var(--side) * 2));
    --pad-about: 72px;
    --gap-rows: 40px;
    --fs-text: 16px;
    --fs-title: 40px;
  }

  .split,
  .split--reverse,
  .split--narrow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .split::before {
    display: none;
  }

  .split + .split {
    margin-top: var(--gap-rows);
  }

  .split__title,
  .split--reverse .split__title,
  .split--narrow .split__title {
    text-align: left;
  }

  .split__text {
    padding: 4px 0 4px 20px;
    border-left: 1px solid var(--color-line);
  }

  .hero__title {
    max-width: 100%;
    font-size: 40px;
  }

  .section--goals {
    padding: 24px 0;
  }

  .section--partners {
    padding: 24px 0 72px;
  }

  .goals {
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - (var(--side) * 2));
  }

  .goal {
    padding: 32px 24px;
  }

  .goal__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .goal__title {
    margin-bottom: 14px;
  }

  .section--about::before {
    left: 60%;
    width: 80%;
  }
}

/* Mobile: barra fixa com menu em tela cheia -------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --pad-about: 56px;
  }

  .site-header__brand img {
    width: 120px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
  }

  .nav-toggle__icon {
    width: 26px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .site-header__inner {
    flex-direction: row-reverse;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-close {
    position: absolute;
    top: 10px;
    right: 14px;
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-close::before,
  .nav-close::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 9px;
    width: 26px;
    height: 2px;
    background: var(--color-text);
    transform: rotate(45deg);
  }

  .nav-close::after {
    transform: rotate(-45deg);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 12px;
  }

  .site-nav__link {
    padding: 8px 20px;
    font-size: 20px;
    text-align: center;
  }

  .site-nav__link--button {
    margin: 12px 0 0;
  }

  .hero {
    height: auto;
    min-height: 360px;
    padding: 56px 0;
  }

  .hero__title {
    font-size: 30px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__legal {
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .split__text p,
  .goal__text {
    text-align: left;
  }

}
