.footer {
  font-family: var(--font-base);
  color: #fff;
  background-color: #212529;
}

.footer-main {
  background-color: #212529;
  padding: 3rem 0;
}

.footer-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  border-bottom: 1px solid var(--text-500);
  padding: 1rem 0;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 50px;
  width: 94px;
}

.footer-logo > div:first-child {
  flex-shrink: 0;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-left: auto;
}

.cta-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
}

.get-started-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--green-600);
  color: var(--text-white);
  padding: 12px 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 16px;
  font-weight: 400;
}

.get-started-btn:hover {
  background-color: var(--green-900);
}

.footer-copyright {
  background-color: var(--green-500);
  color: var(--green-1000);
}

.footer-ready {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 400px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column: span 4;

  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-grid h3 {
  color: var(--green-400);
  font-size: 18px;
  font-weight: 500;
}

.footer-copyright .footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Links section */
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.footer ul li a:hover {
  color: var(--green-400);
}

/* Contact section */
.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer bottom section */
.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--green-1000);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--green-900);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }
  .footer-ready {
    width: 150px;
  }
  .footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column: span 4;

    justify-content: space-between;
    flex-wrap: wrap;
  }
  .cta-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
  }

   .get-started-btn {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
  }
  .footer-cta {
    grid-column: 1 / -1;
    align-items: flex-start;
    margin-top: 1rem;
  }

  .footer-copyright .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-main {
    padding: 2rem 0;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-links,
  .footer-more-links,
  .footer-contact {
    margin-top: 1.5rem;
  }

  .footer ul li span img {
    width: 16px;
    height: 16px;
  }

  .footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
  }

  .get-started-btn {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
  }

  .footer-copyright {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    padding: 10px;
  }
}
