/* styles/footer.css */

/* Variables (inherited from header.css):
   --color-primary: Accent color (e.g. #00bfff)
   --color-dark-rgb: Dark background RGB (e.g. 0, 31, 63)
   --color-white: #ffffff
*/

/* Footer Wrapper */
.site-footer {
  background: rgba(var(--color-dark-rgb), 0.9);
  color: var(--color-white);
  padding: 2rem 1rem;
  width: 100%;
}

/* Inner Flex Layout */
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

/* Brand Section */
.footer__brand {
  flex: 1 1 200px;
}
.footer__brand .footer__logo img {
  height: 40px;
  display: block;
  margin-bottom: 0.5rem;
}
.footer__brand p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Quick Links */
.footer__nav {
  flex: 1 1 200px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__links li a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer__links li a:hover {
  color: var(--color-primary);
}

/* Social Icons */
.footer__social {
  flex: 1 1 200px;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer__social a {
  color: var(--color-white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.footer__social a:hover {
  color: var(--color-primary);
}

/* Back To Top Button */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: none;
  width: 45px;
  height: 45px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}
#backToTop:hover {
  opacity: 0.8;
}

/* Responsive: Stack on Mobile */
@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__nav,
  .footer__social {
    justify-content: center;
  }
}
