/* Footer Styles */
.site-footer {
  background: #000000;
  color: #FFFFFF;
  padding: 80px 0 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #43BDAB 50%, transparent 100%);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  /* Use responsive column sizing so remaining columns stay centered
     and evenly spaced when there are fewer columns than the original 5. */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 50px;
  justify-content: center;
  align-items: start;
  margin-bottom: 60px;
}

/* Logo Column */
.footer-col-logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-logo img {
  width: 120px;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(67, 189, 171, 0.4));
}

/* Footer Columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-heading {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #43BDAB;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(67, 189, 171, 0.2);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  position: relative;
  padding-left: 0;
}

.footer-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #CCCCCC;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #43BDAB;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #43BDAB;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  width: 100%;
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(67, 189, 171, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #43BDAB, #2A9D8F);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(67, 189, 171, 0.3);
}

.social-link:hover::before {
  opacity: 1;
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-link:hover .social-icon {
  fill: #FFFFFF;
  transform: scale(1.15);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(67, 189, 171, 0.1);
  padding: 30px 0;
  text-align: center;
}

.footer-copyright {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #666666;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Tablet Layout (2x3 Grid) */
@media (max-width: 1024px) {
  .site-footer {
    padding: 60px 0 0 0;
  }

  .footer-container {
    padding: 0 30px;
  }

  .footer-grid {
    /* tablet: allow up to three columns but keep them centered */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px 35px;
    justify-content: center;
    margin-bottom: 50px;
  }

  .footer-logo img {
    width: 110px;
  }
}

/* Mobile Tablet (768px) */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .footer-heading {
    font-size: 15px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

/* Mobile Layout (2 Columns) */
@media (max-width: 640px) {
  .site-footer {
    padding: 50px 0 0 0;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    margin-bottom: 40px;
  }

  .footer-col-logo {
    grid-column: 1 / -1;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(67, 189, 171, 0.1);
    margin-bottom: 10px;
  }

  .footer-logo img {
    width: 100px;
  }

  .footer-col {
    text-align: left;
  }

  .footer-heading {
    font-size: 14px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-links a:hover {
    transform: translateX(3px);
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-bottom {
    padding: 25px 0;
  }

  .footer-copyright {
    font-size: 12px;
  }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
  .site-footer {
    padding: 40px 0 0 0;
  }

  .footer-grid {
    gap: 25px 15px;
    margin-bottom: 30px;
  }

  .footer-logo img {
    width: 90px;
  }

  .footer-heading {
    font-size: 13px;
    padding-bottom: 8px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-icon {
    width: 22px;
    height: 22px;
  }

  .footer-bottom {
    padding: 20px 0;
  }

  .footer-copyright {
    font-size: 11px;
  }
}
