/* Xtradite Digital square logo system */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  line-height: 0;
  overflow: visible;
}

.logo-img {
  display: block;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  aspect-ratio: 1 / 1;
}

.site-header {
  width: 100%;
  isolation: isolate;
}

/*
 * The source artwork contains generous transparent space around the mark.
 * A 120px rendered box gives the visible logo the intended prominence without
 * making the navigation header disproportionately tall.
 */
.site-header .header-inner {
  min-height: 124px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header .logo {
  width: 120px;
  min-width: 120px;
  min-height: 108px;
}

.site-header .logo-img,
.site-header .logo img {
  width: 120px;
  height: 120px;
}

.site-footer {
  width: 100%;
  overflow: hidden;
}

.site-footer .footer-inner,
.site-footer .footer-bottom,
.footer-brand {
  min-width: 0;
}

/* The footer has more space, so the logo acts as a stronger brand anchor. */
.site-footer .logo {
  width: 132px;
  min-width: 132px;
  min-height: 132px;
}

.site-footer .logo-img,
.site-footer .logo img,
.footer-brand .logo-img {
  width: 132px;
  height: 132px;
}

.logo-img[data-image-error="true"] {
  visibility: hidden;
}

@media (max-width: 1150px) {
  .site-header .header-inner {
    min-height: 100px;
  }

  .site-header .logo {
    width: 92px;
    min-width: 92px;
    min-height: 88px;
  }

  .site-header .logo-img,
  .site-header .logo img {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    min-height: 82px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .site-header .logo {
    width: 72px;
    min-width: 72px;
    min-height: 72px;
  }

  .site-header .logo-img,
  .site-header .logo img {
    width: 72px;
    height: 72px;
  }

  .site-footer .logo {
    width: 104px;
    min-width: 104px;
    min-height: 104px;
  }

  .site-footer .logo-img,
  .site-footer .logo img,
  .footer-brand .logo-img {
    width: 104px;
    height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-nav,
  .nav-toggle span {
    transition: none !important;
  }
}
