.site-footer {
  background-color: var(--surface-invert);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* --- FRAME 1: TOP (WIDGETS) --- */
.footer-top {
  display: flex;
  padding: 32px 64px;
  width: 100%;
  justify-content: center;
}

.footer-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  align-items: flex-start;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 350px;
  gap: 16px;
}

.app-link {
  color: var(--text-default);
  text-decoration: underline;
}

/* Títulos com a linha verde horizontal */
.footer-title {
  text-transform: uppercase;
}

.footer-column .barra-titulo {
  width: 100px;
}

.title-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 16px;
}

.footer-list a,
.contact-row a {
  text-decoration: none;
  color: var(--text-default);
}

/* --- CONTACTOS E ÍCONES --- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-box {
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 4px;
}

/* --- FRAME 2: BOTTOM BAR --- */
.footer-bar {
  display: flex;
  border-top: 1px solid var(--surface-contrast-heavy);
  padding: 16px 64px;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  width: 100%;
}

.partners {
  display: flex;
  flex-direction: row;
}

.partners a {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.partners img {
  height: 24px;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.social-icon {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.social-img {
  display: flex;
  width: 32px;
  height: 32px;
  padding: 4.002px 4px 3.997px 3.999px;
  justify-content: center;
  align-items: center;
}

/* --- RESPONSIVIDADE --- */

/* --- TABLET --- */

@media (max-width: 1280px) {

  .footer-tablet {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    gap: 24px;
    margin-bottom: 24px;
  }

  .footer-group {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
  }

  .footer-column {
    width: 100%;
    max-width: none;
  }

  .partners a {
    gap: 24px;
  }

  .contact-column {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 24px;
  }

  .contact-row {
    gap: 8px;
  }

  .footer-top {
    padding: 24px;
    gap: 48px;
  }

  .footer-bar {
    padding: 24px 32px;
  }

  .partners {
    justify-content: center;
  }

  .footer-list {
    flex-wrap: wrap;
    flex-direction: row;
  }
}



/* --- MOBILE --- */

@media (max-width: 768px) {

  .footer-group {
    flex-direction: column;
    gap: 32px;
  }

  .footer-top {
    padding: 16px;
  }

  .footer-flex {
    flex-direction: column;
    gap: 35px;
  }

  .footer-column {
    gap: 16px;
    text-align: center;
    align-items: center;
  }

  .footer-logo{
    width: fit-content;
    height: fit-content;
  }

  .footer-title {
    text-align: center;
  }

  .center-footer {
    align-items: center;
  }
  
  .footer-list {
    flex-wrap: nowrap;
    flex-direction: column;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-row {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .footer-bar {
    padding: 20px;
  }

  .bar-flex {
    flex-direction: column;
    gap: 20px;
  }

  .partners {
    justify-content: center;
    gap: 12px;
  }

  .partners img {
    height: 30px;
  }

  .partners a {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-img {
    width: 26px;
    height: 26px;
  }
}