/**********
HEADER
**********/
.header {
  width: 100%;
  background-image: url('../assets/img/140@2x.png');
  background-position: center center;
  background-size: cover;
  padding-top: 20vh;
  padding-bottom: 10vh;
  color: #fff;
  position: relative;
  text-align: center;
}
.header::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0.1) 90%,
    rgba(0, 0, 0, 0.05)
  );
}
.header__title {
  font-size: 1.6em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  position: relative;
  z-index: 100;
}
.header__subtitle {
  font-size: 2em;
  font-weight: 700;
  position: relative;
  z-index: 100;
}

/**********
HISTORY
**********/
.history {
  padding: 17vh 7vw;
  padding-right: 10vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
}
.history__cover-container {
  width: 45%;
  height: 50vh;
  perspective: 70em;
}
.history__cover {
  width: 100%;
  height: 100%;
  background-image: url('../assets/img/business-people-working-in-a-meeting-room-8ZGNS3T.jpg');
  background-position: center center;
  background-size: cover;
  transform: rotateY(-18deg);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: transform 500ms linear;
}
.history__body {
  width: 45%;
}
.history__body__title {
  font-size: 2.3em;
  font-weight: 700;
  margin-bottom: 5vh;
  width: 100%;
  transform: translateX(50%);
  opacity: 0;
  transition: transform 1000ms ease, opacity 1000ms ease;
}
.history__body__text {
  color: #727272;
  font-size: 1em;
  width: 100%;
  transform: translateX(50%);
  opacity: 0;
  transition: transform 1000ms ease, opacity 1000ms ease;
  transition-delay: 200ms;
}
.history__body__text > strong {
  color: #111;
  font-size: 1.2em;
}
.history__body__text > span {
  font-weight: 700;
}
.history__body__text--bigger {
  font-size: 1.3em;
  font-size: 500;
}
.history .history__body__text:not(:last-child) {
  margin-bottom: 3vh;
}
.history__body--faded {
  transform: translateX(0);
  opacity: 1;
}

/***************
POLES
***************/
.poles {
  width: 100%;
  padding: 10vh 0;
}
.poles__title {
  font-size: 2.3em;
  text-align: center;
}
.poles__subtitle {
  font-size: 1.5em;
  color: #d29723;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
  text-align: center;
  margin-bottom: 5vh;
}
.poles__carousel {
  width: 70vw;
  height: 60vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.poles__container {
  width: 61vw;
  height: 100%;
}
.poles__inner {
  width: 100%;
  height: 100%;
}
.poles__arrow {
  width: 4.5vw;
  height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 500ms ease;
}
.poles__arrow.carousel__arrow--prev {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.poles__arrow.carousel__arrow--next {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.poles__arrow:hover {
  background-color: rgba(210, 151, 35, 0.2);
}
.poles__arrow img {
  width: 1.5vw;
  height: auto;
}
.poles__slide {
  width: 61vw;
  height: 60vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5vh 0.5vw;
  align-items: center;
}
.poles__card {
  background-color: #fff;
  border-radius: 0.25rem;
  height: 40vh;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  transition: transform 700ms ease, box-shadow 700ms ease;
  position: relative;
  z-index: 50;
}
.poles__card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: scale(1.3);
  z-index: 100;
}
.poles__card--first:hover {
  transform: scale(1.3) translateX(10%);
}
.poles__card--last:hover {
  transform: scale(1.3) translateX(-10%);
}
.poles__cover {
  width: 100%;
  height: 50%;
  background-position: center center;
  background-size: cover;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}
.poles__body {
  width: 100%;
  height: 50%;
  padding: 2vh 1vw;
  padding-bottom: 4vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.poles__name {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 1vh;
}
.poles__description {
  font-size: 0.7em;
}
.poles__link {
  width: 2vw;
  height: 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d29723;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: scale(0) translate3d(-50%, -50%, 0);
  z-index: 200;
  transition: transform 700ms ease;
}
.poles__link img {
  width: 40%;
  height: auto;
}
.poles__card:hover > .poles__link {
  transform: scale(1) translate3d(-50%, -50%, 0);
}

@media only screen and (max-width: 1024px) {
  .poles__carousel {
    width: 90vw;
  }
  .poles__container {
    width: 81vw;
  }
  .poles__slide {
    width: 81vw;
  }
  .poles__card {
    height: 45vh;
  }
  .poles__description {
    font-size: 0.85em;
  }
  .poles__card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    transform: scale(1);
  }
  .poles__card--first:hover,
  .poles__card--last:hover {
    transform: scale(1) translateX(0);
  }
  .poles__link,
  .poles__card:hover > .poles__link {
    transform: scale(1) translate3d(-50%, -50%, 0);
  }
  .poles__link {
    width: 3vw;
    height: 3vw;
  }
}

@media only screen and (max-width: 768px) {
  .header__subtitle {
    width: 60vw;
    margin: 0 auto;
  }
  .history__body__title,
  .history__body__text {
    transform: translateX(0);
    opacity: 1;
  }
  .history {
    padding: 10vh 10vw;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    font-size: 1.1em;
  }
  .history__cover-container {
    width: 100%;
    height: 50vh;
    padding: 5vw;
  }
  .history__body {
    width: 100%;
    margin-bottom: 6vh;
  }
  .stats__title {
    width: 80vw;
    margin: 0 auto;
    margin-bottom: 5vh;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4vw;
    row-gap: 4vh;
  }
  .poles__title {
    width: 80vw;
    margin: 0 auto;
    margin-bottom: 2vh;
  }
  .poles__subtitle {
    width: 80vw;
    margin: 0 auto;
    margin-bottom: 5vh;
  }
  .poles__carousel {
    width: 92vw;
    height: 70vh;
  }
  .poles__arrow {
    width: 5.5vw;
    height: 65vh;
  }
  .poles__arrow img {
    width: 3vw;
  }
  .poles__slide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3vh;
    height: 70vw;
  }
  .poles__card {
    height: 30vh;
  }
  .poles__cover {
    height: 30%;
  }
  .poles__body {
    height: 70%;
    padding: 2vh 2vw;
  }
  .poles__link {
    width: 5vw;
    height: 5vw;
  }
}
