.footer-main {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--footer-font);
  padding: 3rem 1rem 2rem;
}
.footer-main .container {
  max-width: 1088px;
  margin: 0 auto;
  display: grid;
  grid-template-columns:
    minmax(240px, 1fr)
    repeat(3, minmax(0, 1fr));
  gap: 2rem;
  justify-items: center;     /* center each column */
}

/* Allied Services logo, address, social */
.footer-logo-address {
  display: flex;
  flex-direction: column;
  align-items: center;       /* center logo/address/social */
  text-align: center;
  gap: 1rem;
}
.footer-logo-address .footer-logo img {
  height: 50px;
  max-width: 100%;
  display: block;
}
.footer-logo-address .footer-address {
  font-size: 0.95rem;
  line-height: 1.5;
}
.footer-logo-address .social-icons {
  display: flex;
  gap: 0.75rem;
}
.footer-logo-address .social-icons a {
  font-size: 1.25rem;
  color: var(--footer-text);
  transition: color 0.3s ease;
}
/* Brand‐colored hovers */
.footer-logo-address .social-icons a.facebook:hover  { color: var(--facebook-blue); }
.footer-logo-address .social-icons a.twitter:hover   { color: var(--twitter-blue); }
.footer-logo-address .social-icons a.linkedin:hover  { color: var(--linkedin-blue); }
.footer-logo-address .social-icons a.youtube:hover   { color: var(--youtube-red); }
.footer-logo-address .social-icons a.instagram:hover { color: var(--instagram-mag); }

/* Link columns */
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;       /* center headings + links */
  text-align: center;
}
.footer-column h4 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--footer-text);
}
.footer-column .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;       /* center each link */
}
.footer-column .footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-column .footer-links a:hover {
  color: var(--footer-link-hover);
}

/* ─── BOTTOM BAR ───────────────────────────────────────────────────── */
.footer-bottom {
  background-color: var(--footer-bottom-bg);
  color: var(--footer-bottom-text);
  font-family: var(--footer-font);
  padding: 1rem;
}
.footer-bottom .container {
  max-width: 1088px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* center bottom items */
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}
.footer-bottom .footer-copy {
  flex: 0 0 auto;
}
.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}
.footer-bottom-links a {
  color: var(--footer-bottom-text);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}
.footer-bottom-links a:hover {
  text-decoration: underline;
}
.footer-credit {
    margin-left: 20px;
}
.footer-credit a {
  display: inline-block;
}
.footer-credit img {
  height: 50px;
  max-width: 100%;
  display: block;
}

.footer-divider {
  display: none;
}

/* ─── RESPONSIVE FIXES ───────────────────────────────────────────────── */
/* Tablet & below: logo/address/social spans full width */
@media (max-width: 767.98px) {
  .footer-main .container {
    grid-template-columns: 1fr;
  }
  .footer-logo-address {
    grid-column: 1 / -1;
  }

  .footer-column h4 {
    margin-bottom: 0.5rem;
  }

  .footer-divider {
    display: block;
    border: 1px solid white;
    width: 100%;
    margin: 0 0 0.5rem 0;
  }
}
/* Mobile: tighten padding and cap logo width */
@media (max-width: 575.98px) {
  .footer-main {
    padding: 2rem 0 1rem;
  }
  .footer-logo-address .footer-logo img {
    max-width: 200px;
    max-height: 50px;
    height: auto;
  }

  .footer-bottom-links {
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .footer-credit {
    margin-left: 0;
  }
}