/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--white);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--verde-escuro-brand);
  padding: 120px 0 100px 0;
  margin-top: auto;
  position: relative;
}

/* Remove top/bottom divider lines for cleaner footer */
.site-footer::before,
.site-footer::after {
  display: none;
}

/* Home page: Don't repeat background image, just show gradient fade */
body.home .site-footer {
  background-image: linear-gradient(to top, rgba(0, 66, 34, 0.50) 0%, rgba(0, 66, 34, 0.65) 50%, rgba(0, 66, 34, 0.80) 100%), url('../assets/heroes/footer-bg.webp');
  margin-top: -50px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  background-blend-mode: darken;
}

/* Remove overlay pseudo-element - now part of background */
body.home .site-footer::before {
  display: none;
}

/* Adjust footer text colors for green background on home */
body.home .site-footer {
  color: var(--white);
}

body.home .footer-logo-text,
body.home .nav-column ul li a,
body.home .footer-copyright a {
  color: var(--white);
}

/* Use white logo on home footer */
body.home .footer-logo-image {
  filter: brightness(0) invert(1);
}

body.home .nav-column h3 {
  color: var(--white);
}

body.home .social-label,
body.home .footer-copyright p {
  color: rgba(255, 255, 255, 0.8);
}

body.home .social-link {
  background-color: rgba(213, 237, 124, 0.9);
  color: var(--verde-escuro-brand);
}

body.home .social-link:hover {
  background-color: var(--white);
  color: var(--verde-escuro-brand);
  transform: scale(1.1);
}

body.home .footer-copyright,
body.home .footer-partners {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.footer-wrapper {
  max-width: 1216px;
  margin: 0 auto;
  padding: 32px 48px 0 48px !important;
  position: relative;
  z-index: 2;
}

/* Top separator line inside container for home footer */
body.home .footer-wrapper::before {
  display: none;
}

body.home .site-footer::after {
  display: none;
}

.footer-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin-bottom: 40px;
  padding-top: 32px !important;
  border-top: 2px solid var(--color-green-200);
  align-items: start;
}

body.home .footer-section {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-social {
  min-width: 0;
  padding: 24px 24px 0 24px !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  text-align: center;
}

.footer-logo {
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-green-200);
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--verde-escuro-brand);
}

.social-label {
  font-size: 14px;
  margin-bottom: 8px;
  margin-top: 24px;
  color: var(--cinza-texto);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  justify-content: center;
}

/* 2 rows on larger screens: 3 per row (6 icons / 3 = 2 rows) */
@media (min-width: 769px) {
  .social-icons {
    max-width: 168px;
  }
}

/* 3 rows on smaller screens: 2 per row (6 icons / 2 = 3 rows) */
@media (max-width: 768px) {
  .social-icons {
    max-width: 104px;
  }
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-green-200);
  border-radius: 50%;
  color: var(--verde-escuro-brand);
  transition: all 0.2s ease;
}

.social-link:hover {
  background-color: var(--verde-escuro-brand);
  color: var(--color-green-200);
  transform: scale(1.1);
}


.footer-navigation {
  display: contents;
}

.nav-column-group {
  display: contents;
}

.nav-column-stack .stack-title {
  margin-top: 24px;
}
.nav-column {
  min-width: 0;
}

.nav-column-group {
  min-width: 0;
}

.nav-column h3 {
  color: var(--verde-medio-brand);
  font-size: 18px;
  margin-bottom: 16px;
}

.nav-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 24px;
}

.nav-column ul li {
  margin-bottom: 8px;
}

.nav-column ul li a {
  color: var(--verde-escuro-brand);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-column ul li a:hover {
  color: var(--verde-medio-brand);
}

.footer-copyright {
  border-top: 2px solid var(--color-green-200);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.footer-copyright p {
  color: var(--cinza-texto);
  margin: 0;
}

.footer-copyright a {
  color: var(--verde-escuro-brand);
  font-weight: 500;
}

.footer-copyright a:hover {
  text-decoration: underline;
  color: var(--verde-medio-brand);
}

/* Sponsors Section */
.footer-sponsors {
  padding: 24px 0 0;
  background-color: white;
  margin: 80px calc(-50vw + 50%) 0;
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-bottom: -120px;
}

.sponsors-content {
  background-color: white;
}

.sponsors-content img {
  width: 100%;
  height: auto;
  max-width: 540px;
  display: block;
  margin: 0 auto;
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.partner-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cinza-texto);
}

.partner-logo {
  height: 60px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.partner-logo:hover {
  opacity: 1;
}

/* Tablet breakpoint fix - Figma spec: 768-1024px */
@media (min-width: 768px) and (max-width: 1100px) {
  .footer-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-logo-social {
    grid-column: 1 / -1;
  }

  .footer-copyright {
    flex-direction: row;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .footer-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
