.site-footer {
  /* Background: A linear gradient moving from deep indigo to a slightly lighter indigo,
         simulating the 60% dominance of #162657 while blending in the 30% white/light. */
  background: linear-gradient(135deg, #162657 0%, #1e3a75 100%);
  color: #ffffff;
  padding: 60px 0 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle use of #e6e6e6 */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer Top Layout */
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* Typography & Links */
.footer-logo {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-description {
  color: #e6e6e6; /* Applying the 10% light grey to secondary text */
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

/* Decorative underline using the grey/white blend */
.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #1e3a8a, #facc15);
}

/* Social Links */
.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1); /* 30% White influence */
  color: #ffffff;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: #ffffff;
  color: #162657; /* Invert on hover */
}

/* Menus */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #e6e6e6;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #ffffff;
  padding-left: 5px;
}

/* Contact Info */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #e6e6e6;
}

.contact-info i {
  margin-right: 15px;
  color: rgba(255, 255, 255, 0.7); /* Soft white */
}

.contact-info a {
  color: #e6e6e6;
  text-decoration: none;
}

/* Newsletter */
.newsletter-text {
  color: #e6e6e6;
  margin-bottom: 15px;
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2); /* White border with low opacity */
  background: rgba(255, 255, 255, 0.05); /* White tint for input bg */
  color: #ffffff;
  border-radius: 4px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(230, 230, 230, 0.7);
}

.newsletter-form button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  background: #ffffff;
  border: none;
  color: #162657;
  width: 36px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #e6e6e6;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: #e6e6e6;
  font-size: 14px;
}

.copyright a {
  color: #ffffff;
  text-decoration: none;
}

.footer-legal {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.footer-legal a {
  color: #e6e6e6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
}

/* Back-to-top */

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(90deg, #1e3a8a, #facc15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-5px);
  background: linear-gradient(90deg, #facc15, #1e3a8a);
}
