/**
 * @file
 * The footer components.
 *
 * It includes styles for the footer itself and its
 * components.
 */

/**
 * Global footer rules
 */

.main__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
.block-footer ul.menu a.is-active {
  color: var(--color-white);
}

/**
 * Prefooter
 */

.block-prefooter {
  background-color: var(--color-pf--4);
  border-radius: 40px 40px 0px 0px;
  overflow: hidden;
}
.block-prefooter__wrapper {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
}
.block-prefooter__content {
  padding-bottom: 4rem;
}
.block-prefooter__content p {
  color: var(--color-neutral--dark-grey);
}
.block-prefooter__link {
  display: flex;
}
.block-prefooter__link a{
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-neutral--white);
  color: var(--color-pf--1);
  border-radius: 100px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin: 1.5rem auto 0;
  transition: 0.2s;
}
.block-prefooter__link a:hover{
  background-color: var(--color-pf--1);
  color: var(--color-neutral--white);
  text-decoration: none;
}
.block-prefooter__image {
  margin: 0 -1rem;
  border-radius: 40px;
  overflow: hidden;
}
.main__prefooter-content {
  position: relative;
  z-index: 1;
}
@media all and (min-width: 750px) {
  .block-prefooter__image {
    margin: 0 auto;
  }
}
@media all and (min-width: 850px) {
  .block-prefooter__wrapper {
    display: grid;
    grid-template-columns: calc(50% - 1rem) calc(60% - 1rem);
    gap: 2rem;
  }
  .block-prefooter__image {
    margin: 0;
    border-radius: 0;
    overflow: initial;
    align-self: end;
  }
  .block-prefooter__content {
    margin: auto 0;
    max-width: 520px;
  }
  .block-prefooter__link a{
    margin: 1.5rem 0 0;
  }
}
@media all and (min-width: 1000px) {
  .block-prefooter__content h2 {
    font-size: 2.188rem;
  }
}

/**
 * Footer
 */
.main__footer-content {
  position: relative;
  z-index: 2;
}
.block-footer {
  border-radius: 24px 24px 0px 0px;
  background: var(--color-pf--1);
  margin-top: -2rem;
  padding: 1rem 0;
  color: var(--color-neutral--white);
}
.block-footer__heading {
  padding-top: 0.5rem;
}
.block-footer__logo {
  margin-bottom: 1.5rem;
}
.block-footer__logo img {
  margin: 0 auto;
}
.block-footer__notice {
  display: flex;
}
.block-footer__notice a{
  display: inline-flex;
  margin: 0 auto;
  gap: 0.25rem;
  border-bottom: 1px solid var(--color-neutral--white);
  text-decoration: underline;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  align-items: center;
  line-height: normal;
  text-decoration: none;
  transition: all .5s cubic-bezier(.475,.425,0,.995);
}
.block-footer__notice a::after {
  content: "";
  display: block;
  position: relative;
  width: 16px;
  height: 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../../images/footer/arrow.svg');
}
.block-footer__notice a:hover {
  gap: 0.75rem;
}
.block-footer__content {
  border-top: 1px solid var(--color-neutral--white);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.block-footer__menus {
  padding: 1.5rem 0 1rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
}
.block-footer__menu-footer .menu{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.block-footer__menu-footer .menu .menu__link{
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 300;
  line-height: 160%;
}
.block-footer__menu-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.block-footer__menu-social .menu{
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.block-footer__content-wrapper{
  text-align: center;
}
.block-footer__visa {
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 100;
  line-height: 160%;
}
.block-footer__link a {
  font-size: 0.875rem;
  color: var(--color-pf--3);
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
}
.block-footer__legal p{
  font-size: var(--heading-size-xs);
  font-style: normal;
  font-weight: 300;
  line-height: 130%;
  text-align: center;
}
@media all and (min-width: 750px) {
  .block-footer {
    padding: 1rem;
  }
  .block-footer__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
  }
  .block-footer__logo {
    margin-bottom: 0;
  }
  .block-footer__notice {
    margin-bottom: 0.5rem;
  }
  .block-footer__menus {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    align-items: center;
  }
  .block-footer__legal {
    margin: 0 auto;
  }
}
@media all and (min-width: 1400px) {
  .block-footer__content {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 1rem;
  }
  .block-footer__content-wrapper > div{
    display: inline;
  }
  .block-footer__visa {
    margin-right: 1rem;
  }
  .block-footer__menus {
    justify-content: initial;
    padding: 0;
  }
  .block-footer__menu-footer .menu,
  .block-footer__menus {
    gap: 2rem;
  }
}



/**
 * Social menu icon
 */

.menu-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  width: 27px;
  height: 27px;
  text-indent: -999px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.menu-icon--fb {
  background-image: url('../../images/footer/facebook.svg');
}
.menu-icon--insta {
  background-image: url('../../images/footer/instagram.svg');
}
.menu-icon--x {
  background-image: url('../../images/footer/x.svg');
}
.menu-icon--linkedin {
  background-image: url('../../images/footer/linkedin.svg');
}
.menu-icon--ytb {
  background-image: url('../../images/footer/youtube.svg');
}
@media all and (min-width: 750px) {
  .menu-icon {
    width: 20px;
    height: 20px;
  }
}
