/*
  Ajustes de logomarca e carrossel de clientes.
  Este arquivo deve ser carregado DEPOIS de style.css.
*/

/* Logo principal */
.navbar .brand,
.footer .brand,
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.navbar .brand__logo,
.brand__logo {
  display: block;
  width: auto;
  height: 80px;
  max-width: 250px;
  padding: 0;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.footer .brand__logo,
.brand__logo--footer {
  display: block;
  width: auto;
  height: 80px;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.brand::before,
.brand::after,
.brand__logo::before,
.brand__logo::after {
  display: none;
  content: none;
}

/* Carrossel de clientes */
.clients-marquee {
  width: 100%;
  overflow: hidden;
  padding: 20px 0 8px;
}

.clients-marquee__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: clientsMarquee 60s linear infinite;
  will-change: transform;
}

.client-logo {
  width: 190px;
  height: 112px;
  margin-right: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 14px;
}

.client-logo__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 145px;
  max-height: 70px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: grayscale(100%);
  opacity: 0.72;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.client-logo:hover .client-logo__image {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}

.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}

@media (max-width: 767px) {
  .navbar .brand__logo,
  .brand__logo {
    height: 60px;
    max-width: 190px;
  }

  .footer .brand__logo,
  .brand__logo--footer {
    height: 64px;
    max-width: 190px;
  }

  .client-logo {
    width: 150px;
    height: 92px;
    margin-right: 12px;
    padding: 16px 20px;
  }

  .client-logo__image {
    max-width: 115px;
    max-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .client-logo {
    margin-right: 0;
  }

  .client-logo[aria-hidden="true"] {
    display: none;
  }
}

/* Logo do cabeçalho */
.navbar .brand__logo {
  width: auto;
  height: 110px;
  max-width: 360px;
  object-fit: contain;
}

/* Aumenta também a altura do menu para caber a logo */
.navbar__content {
  min-height: 125px;
}

.footer .brand__logo--footer {
  width: auto;
  height: 110px;
  max-width: 360px;
  object-fit: contain;
}