footer {
  background-color: #ffffff;
  color: var(--black);
  text-align: center;
}

footer .footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  text-align: left;
  padding: 2.5rem 0 1.5rem;
  width: 100%;
  border-top: 1px solid #f1f1f1;
}

footer .footer-info {
  width: calc(35% - 2rem);
}

footer .footer-links {
  width: calc(25% - 2rem);
}

footer .footer-newsletter {
  width: calc(40% - 2rem);
}

footer .footer-info p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

footer .footer-links h3,
footer .footer-newsletter h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

footer .footer-links ul {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}

footer .footer-links li + li {
  margin-top: 0.35rem;
}

footer .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0 1rem;
}

footer .newsletter-form input[type="email"] {
  flex: 1 1 200px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cccccc;
  font-size: 0.9rem;
}

footer .newsletter-button {
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  border: none;
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

footer .newsletter-button:hover {
  opacity: 0.9;
}

footer .footer-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

footer .footer-social a {
  color: #555555;
  font-size: 1.1rem;
}

footer .footer-social a:hover {
  color: var(--primary-color);
}

footer > .container:last-of-type {
  padding: 1rem 0 2rem;
  font-size: 0.85rem;
}

footer .copyright {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  font-size: 1rem;
  padding: 1.5rem 0;
}

@media only screen and (max-width: 997px) {
  footer .footer-main {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  footer .footer-info {
    width: 52.5%;
  }

  footer .footer-links {
    width: 42.5%;
  }

  footer .footer-newsletter {
    width: max-content;
  }
}

@media only screen and (max-width: 540px) {
  footer .footer-main {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  footer .footer-info {
    width: 100%;
  }

  footer .footer-links {
    width: 100%;
  }

  footer .footer-newsletter {
    width: 100%;
  }
}
