/* =================================== */
/* FOOTER (UPDATED WITH IMAGE LOGO)    */
/* =================================== */

.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 60px 80px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;

  /* FIX: top-align all columns so the logo column doesn't sink */
  align-items: start;
}

/* Fix: remove inline line-box around the logo link */
.footer-logo-link {
  display: block;
  line-height: 0;
}

/* --- Footer Logo Image --- */
.footer-logo-img {
  width: 150px; /* Controls the size of your logo image */
  height: auto;
  margin-bottom: 0;

  /* Fix: kill baseline gap under images */
  display: block;
}

.footer-column .footer-desc {
  line-height: 1.7;
  color: #bdc3c7;

  /* Fix: consistent spacing below the logo */
  margin: 12px 0 0;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;

  /* Fix: remove default margins that can shift columns */
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
  color: #bdc3c7;
}

.footer-column ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #34495e;
  color: #ecf0f1;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
}

.social-icons a:active {
  transform: translateY(1px);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-bottom p {
  color: #bdc3c7;
}

/* --- FOOTER RESPONSIVE --- */
@media (max-width: 1023px) {
  .footer {
    padding: 60px 40px 0;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 40px 20px 0;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Center the first column content on mobile */
  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}
