.landing-tiles {
  display: block;
  background: url(../assets/img/svg/home_bg.svg);
  background-size: cover;
  background-position: 50%;
  padding-top: 30px;
  padding-bottom: 80px;

  @include sm {
    padding-left: $gutter-mobile;
    padding-right: $gutter-mobile;
  }

  &__content {
    max-width: $max-width;
    margin: 0 auto;
  }

  &__container {
    width: 83%;
    margin: 0 auto;
    padding-top: 68px;

    @include lg {
      width: 91%;
    }

    @include md {
      width: 83%;
    }

    @include sm {
      width: 100%;
      padding-top: 35px;
    }

    > div {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
    }
  }

  &__header {
    text-align: center;

    h1, h2, h3, h4, p {
      color: $white;
    }
  }
}

.landing-tile {
  h1, h2, h3, h4, h5 {
    margin: 0;
  }

  h3 {
    font-size: 2.6rem;
    line-height: 2.6rem;
  }

  h4 {
    font-size: 30px;
    font-weight: 400;
    line-height: normal;
    color: $secondary-color;
  }

  h5 {
    font-size: 1rem;
    line-height: 1.6rem;
    font-weight: 400;
    color: $secondary-color;
  }

  &--dark {
    color: $primary-color;

    h1, h2, h3, p {
      color: $primary-color;
    }
  }

  &--light {
    color: $white;

    h1, h2, h3, p {
      color: $white;
    }
  }

  &--single {
    width: calc(100% / 3);
  }

  &--double {
    width: 50%;
  }

  &--triple {
    width: 100%;
  }

  @include md {
    &--md-single {
      width: 50%;
    }

    &--md-double {
      width: 100%;
    }
  }

  @include sm {
    &--double {
      width: 100%;
    }
    &--single {
      width: 100%;
    }
  }

  &__wrap {
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 400px;
  }

  &__bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
  }

  &__text {
    padding: 30px 30px 110px;
  }

  &__text--overlay-yes {
    &.landing-tile__text--top {
      background: url(../assets/img/svg/white_tile_overlay_top.svg) no-repeat -1px bottom;
      background-size: 102% 101%;
      margin-bottom: 75px;
    }

    &.landing-tile__text--bottom {
      background: url(../assets/img/svg/white_tile_overlay_bottom.svg) no-repeat -1px top;
      background-size: 102% 102%;
    }
  }

  &__text--bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 51px 30px 69px;
  }

  &__content {
    position: relative;
    height: 100%;
  }

  &__color-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  &__button {
    position: absolute;
    bottom: 6%;
    width: 100%;
    left: 0;
    text-align: center;
  }

  &--generic {

  }

  &--text {
    .landing-tile__wrap {
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .landing-tile__content {
      position: relative;
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
      padding: 50px 30px 40px;
      height: 100%;
    }

    .landing-tile__text {
      font-size: 16px;
      text-align: center;
      padding: 0;
    }
  }

  &--testimonial {
    .landing-tile__bg-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #fff;
      opacity: .8;
    }

    .landing-tile__content {
      display: flex;
      justify-content: center;
    }

    .landing-tile__avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      overflow: hidden;
      margin: auto auto 9%;
    }

    .landing-tile__testimonial {
      position: relative;
      width: 100%;
      max-width: 400px;
      height: 100%;
      text-align: center;
      padding: 9% 10%;
    }

    p {
      color: $primary-color;
      font-size: 1.6rem;
      font-style: italic;
      margin-top: 10px;
      overflow: hidden;
    }
  }

  ul, ul li {
    list-style: disc;
  }

  ol, ol li {
    list-style: decimal;
  }

  ul, ol {
    padding-left: 20px;
    margin: 1em 0;
  }
}
