/* ------------------------------------------
Brands lazy load
-----------------------------------------------*/

@keyframes fadeInBottom {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.pirch-brands-list__anchor {
  transform: translateY(-150px);
}

.pirch-brands-list__btn {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1.2;
  text-align: center;
  margin: 0;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  border-radius: 0;
  outline: none;
  border: 1px solid var(--e-global-color-accent);
  color: var(--e-global-color-accent);
  text-decoration: none;
  transform: translateZ(0);
  transition-property: all;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.345, 0.005, 0.07, 1);
}

.pirch-brands-list__btn:before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.3s cubic-bezier(0.345, 0.005, 0.07, 1);
  border-radius: 1px;
  background-color: var(--e-global-color-accent);
}

.pirch-brands-list__btn:active:before,
.pirch-brands-list__btn:focus:before,
.pirch-brands-list__btn:hover:before {
  transform: scaleY(1);
}

.pirch-brands-list__btn:hover {
  color: #ffffff;
}

.pirch-brands-list__cta {
  font-family: 'Avenir', sans-serif;
  min-width: 125px;
}

@media only screen and (min-width: 768px) {
  .pirch-brands-list__btn {
    padding: 0.4rem 1.4rem;
    font-size: var(--e-global-typography-2f2996b-font-size);
  }
}

.pirch-brands-list__grid {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  max-width: 100rem;
  margin: 0 auto;
}

@media only screen and (min-width: 768px) {
  .pirch-brands-list__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (min-width: 1024px) {
  .pirch-brands-list__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media only screen and (min-width: 1280px) {
  .pirch-brands-list__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.pirch-brands-list__grid:not(:first-child) {
  margin-top: 1rem;
}

.pirch-brands-list__grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
  min-height: 250px;
  padding: 2rem 1rem;
}

.pirch-brands-list__grid-wrapper {
  padding: 0 1rem 2rem;
  opacity: 0;
  animation-name: fadeInBottom;
  animation-duration: 1s;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

.pirch-brands-list__grid-wrapper:nth-of-type(odd) .pirch-brands-list__grid {
  padding-bottom: 2rem;
  border-bottom: 1px solid #cccccc;
}

.pirch-brands-list__grid-wrapper:nth-of-type(even) {
  background-color: #f2f5f7;
}

.pirch-brands-list__img {
  margin-bottom: auto;
  margin-top: auto;
  max-height: 60%;
}

.pirch-brands-list__letter {
  font-family: 'Avenir', sans-serif;
  text-transform: uppercase;
  font-size: 2.75em !important;
  grid-column: 1/-1;
  text-align: left;
  padding-top: 2rem;
}

/*
 * Navigation
 */

.pirch-brands-list__nav {
  font-family: 'Avenir', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  text-align: center;
  text-transform: uppercase;
  min-height: 6rem;
  padding-top: 1rem;
  background: #ffffff;
}

.pirch-brands-list__nav.is-sticky {
  position: fixed;
  top: 4.625rem;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
}

.pirch-brands-list__nav.is-sticky::before {
  content: '';
  position: absolute;
  width: 100vw;
  height: 100%;
  background: #ffffff;
  top: 0;
}

@media only screen and (min-width: 1024px) {
  .pirch-brands-list__nav {
    gap: 3rem;
  }
}

.pirch-brands-list__nav-dropdown {
  width: 12rem;
  display: none;
  position: relative;
}

.is-active .pirch-brands-list__nav-dropdown {
  display: block;
  animation-name: fadeIn;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

.pirch-brands-list__nav-element {
  display: flex;
  flex-direction: column-reverse;
  width: 6rem;
  align-items: center;
  cursor: pointer;
}

.pirch-brands-list__nav-label {
  font-size: 2em;
  color: #000000;
  cursor: pointer;
  position: relative;
}

.pirch-brands-list__nav-label::after {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.3em;
  background-color: var( --e-global-color-accent );
  clip-path: polygon(50% 70%, 100% 0, 100% 30%, 50% 100%, 0 30%, 0 0);
  position: absolute;
  bottom: 0.75em;
  right: -0.6em;
  transition: all 0.33s;
}

.is-active .pirch-brands-list__nav-label::after {
  transform: scale(1, -1);
}

.pirch-brands-list__nav-letter {
  display: inline-flex;
  color: var(--e-global-color-accent);
  width: 2rem;
  height: 2rem;
  justify-content: center;
  align-items: center;
  padding-top: 2px;
}

.pirch-brands-list__nav-letter:hover {
  background-color: var(--e-global-color-accent);
  color: #ffffff;
}

.pirch-brands-list__nav-letter.is-inactive {
  color: #cccccc;
}

.pirch-brands-list__nav-letter.is-inactive:hover {
  background-color: #cccccc;
  color: #ffffff;
}

@media only screen and (max-width: 767px) {
  .pirch-brands-list__nav-label {
    display: none;
  }

  .pirch-brands-list__nav-dropdown {
    display: inline-block !important;
    width: auto;
  }

  .pirch-brands-list__nav {
    gap: 0;
    flex-wrap: wrap;
  }

  .pirch-brands-list__nav-element {
    width: auto;
  }
}