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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr; /* Default 3-column layout for larger screens */
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle bottom border */
  padding-bottom: var(--spacing-xl); /* Add padding above the bottom border */
}

.footer-info {
  max-width: 450px; /* Slightly wider footer info area */
}

.footer-logo {
  height: 40px; /* Slightly larger footer logo */
  margin-bottom: var(--spacing-lg);
}

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

.footer-links h3,
.footer-contact h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
  font-weight: 600; /* Slightly bolder heading */
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  line-height: 2.2; /* Adjusted line height */
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-light);
  text-decoration: underline; /* Subtle underline on hover for links in footer */
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 2.2; /* Adjusted line height */
}

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

/* Media Queries for Footer Responsiveness */

/* For tablets and smaller desktops */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* Switch to 2 columns on medium screens */
    gap: var(--spacing-lg);
  }

  .footer-info {
    max-width: 100%; /* Allow footer info to take full width in 2-column layout */
  }

  .footer-links,
  .footer-contact {
    /* No max-width needed in 2-column layout */
    width: 100%;
  }
}

/* For mobile devices */
@media (max-width: 768px) {
  .footer {
    padding: var(--spacing-lg) 0; /* Reduce footer padding on mobile */
  }

  .footer-grid {
    grid-template-columns: 1fr; /* Switch to single column on mobile */
    gap: var(--spacing-lg);
    margin-bottom: var(
      --spacing-lg
    ); /* Reduce bottom margin in single column */
    padding-bottom: var(
      --spacing-lg
    ); /* Reduce bottom padding in single column */
  }

  .footer-info {
    margin-bottom: var(
      --spacing-lg
    ); /* Add margin below footer info in single column */
    text-align: center; /* Center align footer info text on mobile */
  }
  .footer-logo {
    display: block; /* Make logo block to center it */
    margin: 0 auto var(--spacing-lg); /* Center logo and add bottom margin */
  }

  .footer-links,
  .footer-contact {
    text-align: center; /* Center align links and contact info on mobile */
  }

  .footer-links ul {
    padding-left: 0; /* Remove default padding for centered list */
  }

  .footer-bottom {
    padding-top: var(
      --spacing-md
    ); /* Reduce padding above footer bottom text */
  }
}
