/* ============================================
   ETC AdBlue — Footer
   Multi-column layout on navy background
   ============================================ */

.footer {
  background-color: var(--color-navy);
  color: var(--color-gray-400);
  padding-top: var(--space-16);
  padding-bottom: 0;
}

.footer a {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: var(--transition-colors);
}

.footer a:hover {
  color: var(--color-white);
}

/* ── Footer Main ── */
.footer__main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Company info column */
.footer__brand {
  padding-right: var(--space-8);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.footer__logo-img {
  height: 40px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
}

.footer__description {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-gray-400);
  margin-bottom: var(--space-6);
  max-width: 320px;
}

/* Social icons */
.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-gray-400);
  transition: var(--transition-all);
}

.footer__social-link[hidden] {
  display: none !important;
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer columns */
.footer__column-title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-5);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__links a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--duration-base) var(--ease-out);
}

.footer__links a:hover::before {
  width: 12px;
}

/* Contact info in footer */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary-light);
  margin-top: 2px;
}

.footer__contact-item--text > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--color-primary-light);
  font-size: 10px;
  font-weight: 700;
}

/* ── Footer Bottom Bar ── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-gray-500);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__developer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity var(--duration-base) var(--ease-out);
}

.footer__developer-label {
  color: var(--color-gray-500);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.footer__developer:hover {
  opacity: 1;
}

.footer__developer img {
  display: block;
  width: 85px;
  height: auto;
  filter: grayscale(100%);
  transition: filter var(--duration-base) var(--ease-out);
}

.footer__developer:hover img {
  filter: grayscale(0%);
}

.footer__legal a {
  font-size: var(--fs-xs);
  color: var(--color-gray-500);
}

.footer__legal a:hover {
  color: var(--color-gray-300);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer__main {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .footer {
    padding-top: var(--space-12);
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
  }

  .footer__developer {
    max-width: 100%;
  }

  .footer__developer-label {
    white-space: normal;
  }
}
