/* Base Styles (Mobile First) */
.footer-container {
  background: #111;
  color: #eee;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.footer-section {
  margin: 1.5rem 0;
}

.footer-section h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #fff;
}

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

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

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.logo {
  display: block;
  text-align: left;
  max-width: 400px;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 120px;
  margin-bottom: 1rem;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}

.paragraph {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 350px;
}

.footer-socials a {
  color: #ccc;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  text-decoration: none;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-bottom {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2rem;
  text-align: center;
  width: 100%;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 7px;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 1000;
}

#backToTop:hover {
  background-color: #555;
}


/* ---------------------- */
/* Breakpoints for Layout */
/* ---------------------- */

/* Extra Large Desktops */
@media (min-width: 1280px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: left;
  }

  .footer-section {
    flex: 1 1 30%;
    max-width: 30%;
    margin: 1rem;
  }

  .footer-bottom {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
  }

  .logo-socials {
    align-items: flex-start;
  }
}

/* Desktop & Large Tablets */
@media (min-width: 1024px) and (max-width: 1279px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: left;
  }

  .footer-section {
    flex: 1 1 30%;
    max-width: 30%;
    margin: 1rem;
  }

  .footer-bottom {
    width: 100%;
    text-align: center;
  }

  .logo-socials {
    align-items: flex-start;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    max-width: 100%;
  }
}

/* Large Phones (phablets) */
@media (min-width: 576px) and (max-width: 767px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    max-width: 100%;
  }

  .footer-bottom {
    width: 100%;
    text-align: left;
  }

  #backToTop {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    cursor: none;
  }
}

/* Standard Mobile Phones */
@media (max-width: 575px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    max-width: 100%;
  }

  .footer-bottom {
    width: 100%;
    text-align: left;
  }
}

/* Small Phones */
@media (max-width: 375px) {
  .footer-logo {
    width: 100px;
  }

  .footer-socials a {
    font-size: 1rem;
    margin: 0 0.4rem;
  }

  #backToTop {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    cursor: none;
  }

  .footer-bottom {
    font-size: 0.7rem;
  }
}