/* footer.css */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-lg); /* Adjust padding */
}

.footer-grid {
  display: grid;
  /* Start with mobile-first: single column */
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Slightly more visible border */
  margin-bottom: var(--spacing-lg);
}

/* Tablet and Desktop Layout */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet+ */
    gap: var(--spacing-xl);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    /* Optional: Adjust column widths for wider screens */
    grid-template-columns: 2fr 1fr 1.5fr; /* Example: Logo area wider */
  }
}

.footer-info .logo-img.footer-logo {
  /* Target footer logo specifically */
  height: 45px; /* Slightly larger footer logo */
  margin-bottom: var(--spacing-md);
}

.footer-info p {
  color: var(--text-secondary); /* Use secondary text color for description */
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
  font-size: var(--font-size-md); /* Slightly smaller heading */
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase; /* Uppercase for distinction */
  letter-spacing: 0.5px;
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm); /* Space between links */
}
.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--text-light);
  text-decoration: none; /* Keep no underline */
  padding-left: var(--spacing-xs); /* Subtle indent on hover */
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.8; /* Consistent line height */
  margin-bottom: var(--spacing-xs); /* Less space between contact lines */
  display: flex; /* Align icons and text */
  align-items: flex-start; /* Align items top */
  gap: var(--spacing-sm);
}
.footer-contact p i {
  margin-right: 0; /* Remove previous margin */
  margin-top: 0.25em; /* Adjust icon vertical alignment */
  flex-shrink: 0; /* Prevent icon shrinking */
  width: 16px; /* Ensure consistent width */
  text-align: center;
}
.footer-contact p a {
  /* Style links in contact section */
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-contact p a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

/* Social Icons in Footer */
.footer-contact .team-social {
  /* Reusing team social styles */
  /* Styles applied via inline style in HTML - can be moved here */
  /* justify-content: center;
    margin-top: var(--spacing-md);
    padding-top: 0;
    border-top: none; */
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}
.footer-contact .team-social a {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  transition: var(--transition-base);
}
.footer-contact .team-social a:hover {
  color: var(--text-light);
  transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.footer-bottom p {
  margin-bottom: var(--spacing-xs);
  color: inherit; /* Inherit color from parent */
}
.footer-bottom p:last-child {
  margin-bottom: 0;
}
.footer-bottom a {
  /* Optional link in bottom */
  color: var(--text-secondary);
  font-weight: 600;
}
.footer-bottom a:hover {
  color: var(--text-light);
}

/* Responsive Adjustments for Footer Content Alignment */
@media (max-width: 767px) {
  .footer-info,
  .footer-links,
  .footer-contact {
    text-align: center; /* Center align all content on mobile */
  }
  .footer-info .logo-img {
    margin-left: auto;
    margin-right: auto; /* Center logo */
  }
  .footer-links ul {
    padding-left: 0; /* Remove padding for centered list */
  }
  .footer-links a:hover {
    padding-left: 0; /* Disable indent on mobile hover */
  }
  .footer-contact p {
    justify-content: center; /* Center icons/text */
  }
  .footer-contact .team-social {
    justify-content: center; /* Center social icons */
  }
}
