/* css/footer.css */
@import url("theme.css"); /* Import global theme colors */

/* Footer Styles */
.footer {
  background-color: var(--footer-background-color);
  /* color: var(--text-color); */
  color: white;
  padding: 40px 20px;
  margin-top: 40px;
  border-top: 2px solid var(--footer-background-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid; /* Change to Grid Layout */
  /* grid-template-columns: repeat(4, 1fr); Four equal columns */
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px; /* Gap between columns */
  align-items: start; /* Align items to the start */
}

/* Footer Logo and Social Media Links */
.footer-logo-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align content to the left */
  margin-bottom: 20px;
  align-items: center;
  text-align: center;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  color: var(--accent-color);
  font-size: 30px;
  text-decoration: none;
  margin: 0px 5px;
}

/* Footer Links Sections */
.footer-links {
  display: contents; /* Utilize grid layout, don't affect grid flow */
}

.footer-column {
  margin-bottom: 20px;
}

.footer-column h3 {
  /* color: var(--text-color); */
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
  display: flex;
}

.footer-icon {
  margin-right: 10px;
}

.footer-contact-element {
  text-decoration: underline;
}

.footer-column ul li a {
  color: var(--secondary-text-color);
  text-decoration: none;
  font-size: 15px;
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

/* Footer Bottom Section */
.footer-bottom {
  margin-top: 20px;
  text-align: center;
  padding: 10px 0;
  background-color: var(--footer-background-color);
  color: var(--text-color);
  font-size: 14px;
}

.locations {
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--secondary-text-color);
}

.footer-bottom p {
  color: var(--secondary-text-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Tablet */
  .footer-container {
    grid-template-columns: 1fr 1fr; /* Two columns for tablet */
  }

  .footer-logo-social {
    grid-column: span 2; /* Full width in mobile and tablet */
    align-items: start;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    grid-column: span 1; /* Two columns span */
  }

  .footer-column,
  .footer-logo-social {
    text-align: start;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  /* Mobile */
  .footer-container {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .footer-column {
    grid-column: span 1; /* Full width */
  }

  .footer-logo-social {
    align-items: center;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
  }
}
