/* Site footer */

.logit-site-footer {
  width: 100%;
  padding: 3rem 0 2.5rem;
  color: #fff;
  background: linear-gradient(to bottom, #18181b, #0a0a0a);
}

@media (min-width: 768px) {
  .logit-site-footer {
    padding: 5rem 0 2.5rem;
  }
}

.logit-site-footer__inner {
  max-width: none;
  margin-inline: auto;
}

.logit-site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .logit-site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }
}

.logit-site-footer__cols {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 2.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .logit-site-footer__cols {
    gap: 3rem;
  }
}

@media (min-width: 768px) {
  .logit-site-footer__cols {
    width: fit-content;
    gap: 7rem;
  }
}

.logit-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 20rem;
}

.logit-site-footer__logo-link {
  display: inline-flex;
  line-height: 1.2;
  text-transform: uppercase;
}

.logit-site-footer__logo {
  display: inline-block;
  width: auto;
  max-width: 170px;
  min-height: 36px;
  height: auto;
  object-fit: contain;
}

.logit-site-footer__tagline {
  margin: 0;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(255 255 255 / 0.7);
}

.logit-site-footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 7rem;
}

.logit-site-footer__link {
  position: relative;
  width: fit-content;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.logit-site-footer__link:hover,
.logit-site-footer__link:focus-visible {
  opacity: 1;
}

/* Footer nav: same color on all pages (ignore global .nav-active) */
.logit-site-footer [data-nav-link].nav-active {
  color: inherit !important;
  font-weight: inherit;
  opacity: 0.7;
}

.logit-site-footer .link-hover {
  cursor: pointer;
}

.logit-site-footer .link-hover::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s cubic-bezier(0.22, 0.85, 0.25, 1);
  border-radius: 1px;
}

.logit-site-footer .link-hover--slide:hover::before,
.logit-site-footer .link-hover--slide:focus-visible::before,
.logit-site-footer .link-hover.nav-active::before {
  transform: scaleX(1);
  transform-origin: 0% 50%;
}

.logit-site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .logit-site-footer__contact {
    width: auto;
    align-items: flex-end;
  }
}

.logit-site-footer__contact-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: #fff;
}

.logit-site-footer__email {
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  transition: color 0.5s ease, opacity 0.5s ease, font-weight 0.5s ease;
}

.logit-site-footer__email:hover {
  color: #fff;
  opacity: 0.8;
  font-weight: 600;
}

@media (min-width: 768px) {
  .logit-site-footer__email {
    text-align: right;
  }
}

.logit-site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: rgb(255 255 255 / 0.55);
}

@media (min-width: 768px) {
  .logit-site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
  }
}

.logit-site-footer__copy {
  margin: 0;
  font-weight: 500;
  color: inherit;
}

.logit-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .logit-site-footer__legal {
    justify-content: flex-end;
  }
}

.logit-back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 9999px;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 10px 15px -3px rgb(37 99 235 / 0.35);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.logit-back-to-top:hover {
  background: #1d4ed8;
}

.logit-back-to-top:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
