/* ==========================================================================
   Central Vehicle Leasing — Animations
   Clean, subtle & professional
   ========================================================================== */

/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––

- Entrance animations
- Button hover animations
- Footer hover animations

*/


/* Entrance animations
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.button-entrance {
  animation-name: fadeSlideUp;
  animation-duration: 0.5s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
  animation-delay: calc(var(--delay) / 15);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadein {
  animation-name: fadein;
  animation-duration: 0.6s;
  animation-fill-mode: both;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Button hover animations
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.button-hover,
.credit-hover {
  display: inline-block;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  -webkit-transition-duration: 0.25s;
  transition-duration: 0.25s;
  -webkit-transition-property: transform;
  transition-property: transform;
  transition-timing-function: ease;
}

.button-hover:active,
.button-hover:focus,
.button-hover:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

.credit-hover:active,
.credit-hover:focus,
.credit-hover:hover {
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
}


/* Footer hover animations
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.footer-hover {
  color: rgba(255, 255, 255, 0.5);
  display: inline-block;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  -webkit-transition-duration: 0.25s;
  transition-duration: 0.25s;
  -webkit-transition-property: transform, color;
  transition-property: transform, color;
  transition-timing-function: ease;
}

.footer-hover:active,
.footer-hover:focus,
.footer-hover:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  color: rgba(255, 255, 255, 0.8);
}
