/* Footer */
.footer {
  background: #000;
  color: #fff;
}

.footer__inner {
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.25rem) 1.25rem 1.25rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: visible;
}

.footer__logo-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-left: -0.75rem;
  margin-bottom: 0.75rem;
  overflow: visible;
  text-decoration: none;
}

.footer__logo {
  display: block;
  width: auto;
  height: var(--navbar-logo-height);
  object-fit: contain;
  object-position: left center;
  transform: scale(var(--navbar-logo-scale)) translateX(-0.9rem);
  transform-origin: left center;
  mix-blend-mode: lighten;
}

.footer__tagline {
  margin: 0;
  max-width: 20rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer__heading {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: #fff;
  outline: none;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer__contact-item--location {
  padding-left: 1.45rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact-item a:hover,
.footer__contact-item a:focus-visible {
  color: #fff;
  outline: none;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  line-height: 1.5;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer__social:hover,
.footer__social:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.footer__social-icon {
  width: 0.95rem;
  height: 0.95rem;
}

@media (max-width: 960px) {
  .footer__logo-link {
    margin-left: -0.75rem;
  }

  .footer__logo {
    height: calc(var(--navbar-height) - 0.55rem);
    transform: scale(2.1) translateX(-0.65rem);
  }
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }

  .footer__brand {
    grid-column: span 2;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 961px) {
  .footer__inner {
    padding-top: clamp(2rem, 3.5vw, 2.75rem);
  }

  .footer__grid {
    grid-template-columns: 1.55fr 0.85fr 1fr;
    gap: 2rem 3rem;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__logo-link {
    margin-left: -0.85rem;
    margin-bottom: 1rem;
  }

  .footer__tagline {
    max-width: 22rem;
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .footer__heading {
    margin-bottom: 0.85rem;
    font-size: 0.68rem;
  }

  .footer__link,
  .footer__contact-item {
    font-size: 0.84rem;
  }

  .footer__contact-item--location {
    font-size: 0.78rem;
  }

  .footer__bottom {
    margin-top: 2rem;
    padding-top: 1rem;
  }

  .footer__copy {
    font-size: 0.72rem;
  }

  .footer__social {
    width: 2.15rem;
    height: 2.15rem;
  }

  .footer__social-icon {
    width: 0.85rem;
    height: 0.85rem;
  }
}
