footer {
  width: 100%;
  background-color: var(--bg-dark);
  margin-top: 120px;
  /* Let height be automatic on smaller screens */
  min-height: 404px;
  display: flex;
  flex-direction: column;
}

footer .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 20px;
  box-sizing: border-box;
}

.upper-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 40px;
  gap: 40px;
  /* flexible spacing */
  flex-wrap: wrap;
}

.upper-footer img {
  width: 200px;
  max-width: 100%;
  margin-bottom: 12px;
}

.upper-footer p {
  color: var(--text-bright-light);
  font-size: var(--font-small);
  margin-bottom: 24px;
  max-width: 400px;
}

.upper-footer .right {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav {
  min-width: 150px;
  flex: 1;
}

.footer-nav p {
  color: var(--text-bright);
  font-size: var(--font-normal);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--font-small);
}

.footer-nav li a {
  text-decoration: none;
  color: var(--text-bright-light);
}

.social-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-icons a div {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: var(--bg-semi-transparent);
}

.lower-footer {
  width: 100%;
  height: 60px;
  border-top: 1px solid var(--bg-transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.lower-footer p {
  color: var(--text-bright-light);
  font-size: var(--font-small);
}

/* ------------------ MEDIA QUERIES ------------------ */

/* Tablets */
@media (max-width: 1024px) {
  .upper-footer {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .upper-footer .right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .footer-nav {
    min-width: 120px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  footer {
    margin-top: 60px;
  }

  .upper-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .upper-footer .right {
    flex-direction: column;
    gap: 20px;
  }

  .footer-nav {
    width: 100%;
    align-items: center;
  }

  .footer-nav ul {
    align-items: center;
  }

  .lower-footer {
    height: auto;
    padding: 20px;
  }
}