.main-footer {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--tertiary-color);
  z-index: 5;
}

.footer-wrapper {
  width: 100%;
  max-width: 1240px;
  padding: 4rem 20px;
  color: var(--white);
}

/* --- CTA SECTION --- */
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  z-index: 5;
}

.footer-cta h2 {
  font-size: 2.5rem;
  max-width: 500px;
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
}

.footer-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  z-index: 5;
}

.footer-cta-buttons a {
  width: 12rem;
  height: 3rem;
  display: grid;
  place-content: center;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #1e3a34;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 4rem;
}

/* --- LINKS GRID --- */
.footer-links-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-side .footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-brand-side p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-column a:hover {
  color: white;
  padding-left: 5px;
  /* Sutil efeito de slide no hover */
}

/* --- BOTTOM BAR --- */
.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

.footer-legal-links a:hover {
  color: white;
}

/*=========================================================
    SEÇÃO DA NUVEM NO TOPO
=========================================================*/

.footer-nuvem-top {
  position: absolute;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1360px;
  height: auto;
  margin: 0 auto;
  pointer-events: none;
  z-index: 1;
}

.footer-nuvem-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Espaçamento entre colunas no mobile */
@media (max-width: 1350px) {
  .footer-nuvem-top {
    top: -200px;
  }
}

@media (max-width: 1070px) {
  .footer-nuvem-top {
    top: -100px;
  }
}

@media (max-width: 500px) {
  .footer-nuvem-top {
    top: -50px;
  }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2.5rem;
  }

  .footer-cta h2 {
    max-width: 100%;
    font-size: 2rem;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 1rem;
  }
}