@import "settings.colors";
@import "settings.fonts";
@import "settings.z-index";

@import "mixins/tools.functions";
@import "mixins/tools.mixins";

.c-package--subscribe {
  border-width: 0;
  border-bottom: rem(2) solid $color-stone-300;
  display: none;
  margin: 0 auto;
  background-color: $color-grey-50;
  width: 100%;

  @include mq($from: tablet) {
    display: block;
  }

  .c-package__stories {
    width: rem(768);
    justify-content: space-between;
    margin: 0 auto;
    @include mq($from: tabletMedium) {
      width: rem(976);
    }
    @include mq($from: desktop) {
      width: rem(1165);
    }
  }

  .u-wrapper {
    border-width: 0;
    flex-basis: calc(25% - #{rem(8)});
    margin: rem(4) rem(8) rem(4) 0;
    height: rem(107);
    &:last-of-type {
      margin-right: 0;

      .c-card__content__title {
        padding-top: rem(30);
      }
      .c-card__content__img {
        height: rem(30);
        transition: height 1s;
      }

      .c-card__content:hover {
        .c-card__content__img {
          height: rem(35);
        }
      }
    }
  }

  .c-card {
    padding: 0;
    display: block;
    background: $color-grey-800;
    border-radius: rem(5);
    margin: 0;
    background-size: cover;
    border-width: 0;
  }

  .c-card__link {
    display: block;
  }

  .c-card__content {
    display: block;
    height: rem(107);
    color: $color-white;
    text-align: center;
    position: relative;
    flex: 3;
    margin-right: 0;
    perspective: 1000;
    transform-style: preserve-3d;

    &.c-card__flip:hover {
      .c-card__content__front {
        transform: rotateY(180deg);
      }
      .c-card__content__back {
        transform: rotateY(0deg);
      }
    }
  }

  .c-card__content__title {
    @include font-gm-sans-bold;
    font-size: rem(14);
    letter-spacing: rem(1);
    line-height: 1;
    text-transform: uppercase;
    display: inline-block;
    padding: rem(8) 0 0;
    background-color: transparent;
  }

  .c-card__content__subtitle {
    @include font-gm-sans;
    font-size: rem(12);
    letter-spacing: rem(1);
    line-height: line-height(12, 13);
    display: block;
  }

  .c-card__content__text {
    @include font-gm-sans;
    font-size: rem(12);
    letter-spacing: rem(1);
    line-height: line-height(12, 13);
    margin-top: rem(5);
    padding: 0 rem(10);
  }

  .c-package--subscribe__globe2go {
    @include font-pratt-bold;
    white-space: nowrap;
  }

  .c-card__content__icon {
    width: rem(16);
    height: rem(16);
    fill: $color-white;
    margin: 0 auto rem(8);
    display: block;

    &.c-card__content__icon--inline {
      display: inline-block;
      width: rem(8);
      height: rem(8);
      margin: 0;
    }
  }

  .c-card__content__img {
    height: rem(77);
    width: auto;
    display: block;
    margin: rem(6) auto 0;
    &.c-card__content__img--subtitle {
      height: rem(65);
    }
  }

  .c-card__content__front,
  .c-card__content__back {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
  }

  .c-card__content__front {
    z-index: 2;
    transform: rotateY(0);
  }

  .c-card__content__back {
    transform: rotateY(-180deg);
  }
}
