/**********
HEADER
**********/
.header {
  width: 100%;
  background-image: url('../assets/img/7844@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: rgba(0, 0, 0, 0.2);
}
.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;
}
/**********
HOW IT WORKS
**********/
.how-it-works {
  background-color: #fff;
  padding: 15vh 0;
}
.how-it-works__title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8vh;
}
.how-it-works__container {
  width: 70vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
}
.how-it-works__item {
  position: relative;
  padding-top: 5vh;
  padding-right: 2vw;
}
.how-it-works__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5vw;
  height: 2.5vw;
  color: #d29723;
  background-color: #fff;
  border-radius: 100%;
  border: 1px solid #dfdfdf;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  font-size: 1.5em;
  font-weight: 500;
  z-index: 100;
  animation: colorize 2000ms ease;
}
.how-it-works__item:hover .how-it-works__number {
  color: #fff;
  background-color: #d29723;
  border: 1px solid #d29723;
}
.how-it-works__step {
  font-size: 1.2em;
  color: #d29723;
  margin-bottom: 1vw;
  opacity: 0;
  animation: fadeIn 2000ms ease forwards;
}
.how-it-works__text {
  font-weight: 300;
  opacity: 0;
  animation: fadeIn 2000ms ease forwards;
}
.how-it-works__line {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: 0;
  height: 1px;
  transform: translateY(-50%);
  background-color: #dfdfdf;
  animation: lineGrowing 2000ms ease forwards;
}
@keyframes lineGrowing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes colorize {
  from {
    color: #fff;
    background-color: #d29723;
    border: 1px solid #d29723;
  }
  to {
    color: #fff;
    background-color: #d29723;
    border: 1px solid #d29723;
  }
}
/**********
FINANCING
**********/
.financing {
  background-image: url('../assets/img/3875550.jpg');
  background-position: center center;
  background-size: cover;
  position: relative;
  height: 70vh;
  width: 100%;
}
.financing::after {
  width: 100%;
  height: 100%;
  background-color: rgba(210, 152, 35, 0.6);
  content: '';
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
}
.financing__container {
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  padding: 4vw 2vw;
  padding-right: 4vw;
  position: absolute;
  z-index: 100;
  left: 8vw;
  top: 100%;
  transform: translateY(-75%);
  width: 30vw;
  height: max-content;
}
.financing__title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 2vh;
}
.financing__text {
  font-size: 1.2em;
  font-weight: 300;
}
/**********
YOUR FINANCING
**********/
.your-financing {
  width: 100%;
  padding: 15vh 0;
  padding-top: 30vh;
}
.your-financing__title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2vh;
}
.your-financing__subtitle {
  font-size: 1.4em;
  font-weight: 500;
  text-align: center;
  width: max-content;
  margin: 0 auto;
  margin-bottom: 6vh;
}
.your-financing__way {
  width: 65vw;
  height: auto;
  border: 1px solid #dfdfdf;
  border-radius: 0.25rem;
  margin: 0 auto;
  margin-bottom: 1.5vw;
  background-color: #fff;
}
.your-financing__way__head {
  width: 100%;
  padding: 2vh 1.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.your-financing__way__head > p {
  font-size: 1.3em;
  color: #d29723;
  font-weight: 700;
}
.your-financing__way__head > img {
  width: 0.5vw;
  height: auto;
}
.your-financing__way__body {
  width: 100%;
  overflow: hidden;
  font-size: 1.1em;
  font-weight: 500;
}

.your-financing__way[data-dropdown='close']
  > .your-financing__way__body.dropdown__body {
  height: 0;
  padding: 0;
}
.your-financing__way[data-dropdown='open']
  > .your-financing__way__body.dropdown__body {
  height: max-content;
  padding: 3vh 1.5vw;
  padding-bottom: 1vh;
  padding-right: 3vw;
}
.your-financing__way[data-dropdown='close'] img[data-arrow='close'] {
  display: inline-block;
}
.your-financing__way[data-dropdown='close'] img[data-arrow='open'] {
  display: none;
}
.your-financing__way[data-dropdown='open'] img[data-arrow='close'] {
  display: none;
}
.your-financing__way[data-dropdown='open'] img[data-arrow='open'] {
  display: inline-block;
}
.your-financing__way__body a {
  color: #d29723;
}
.your-financing__way__body a:hover {
  text-decoration: underline;
}
.your-financing__way__body ul {
  list-style: initial;
}
.your-financing__way__body li {
  margin-left: 2vw;
}
.your-financing__way__body p,
.your-financing__way__body table,
.your-financing__way__body ul {
  margin-bottom: 2vh;
}
.your-financing__way__body td {
  padding: 0.5vh 0.5vw;
  border: 1px solid #dfdfdf;
}

@media only screen and (max-width: 1024px) {
  .how-it-works__container {
    width: 80vw;
  }
}

@media only screen and (max-width: 768px) {
  .how-it-works {
    padding: 8vh 0;
  }
  .how-it-works__container {
    width: 70vw;
    display: block;
  }
  .how-it-works__title {
    font-size: 2.2em;
  }
  .how-it-works__item {
    width: 100%;
    font-size: 1.2em;
    padding-bottom: 3vh;
    padding-top: 3vh;
    padding-right: 0;
    padding-left: 10vw;
  }
  .how-it-works__number {
    width: 5vw;
    height: 5vw;
  }
  .how-it-works__line {
    position: absolute;
    top: 0;
    left: 2.5vw;
    width: 1px;
    height: 0;
    transform: translateX(-50%);
    animation: lineGrowing 2000ms ease forwards;
  }
  @keyframes lineGrowing {
    from {
      height: 0;
    }
    to {
      height: 100%;
    }
  }
  .financing {
    height: 50vh;
  }
  .financing__container {
    padding: 3vh 5vw;
    left: 12.5vw;
    transform: translateY(-75%);
    width: 75vw;
  }
  .your-financing {
    padding-top: 20vh;
  }
  .your-financing__title {
    font-size: 2.2em;
  }
  .your-financing__subtitle {
    width: 80vw;
  }
  .your-financing__way {
    width: 80vw;
  }
  .your-financing__way__head {
    padding: 1vh 2.5vw;
  }
  .your-financing__way__head > img {
    width: 1.5vw;
    margin-left: 2.5vw;
  }
  .your-financing__way[data-dropdown='open']
    > .your-financing__way__body.dropdown__body {
    height: max-content;
    padding: 3vh 2.5vw;
    padding-bottom: 1vh;
    padding-right: 7vw;
  }
}
