/* Module: Home - Hero
----------------------------------------------- */

.module--hero {
  position: relative;
  overflow: hidden;

  .layout--below & {
    overflow: visible;
  }

  h1, .hdg--1 {
    margin-bottom: 1.25rem;
    @include responsive-text((min: 35px, mid: 5.5vw, max: 82px));
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: inherit;
  }

  .slick-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 30px;
    top: 45%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 9;
    padding: 5px;
    background: transparent;
    border: 0;

    .icon {
      width: 28px;
      height: 28px;
      fill: $white;
      display: block;
      position: relative;
      left: -1px;

      @include tablet() {
        width: 42px;
        height: 42px;
      }
    }

    &.slick-next {
      left: auto;
      right: 30px;

      .icon {
        left: 1px;
      }
    }
  }

  .slick-dots {
    position: absolute;
    bottom: 30px;
    text-align: center;
    width: 100%;

    li {
      display: inline-block;
      margin: 0 6px;
    }

    button {
      appearance: none;
      border: none;
      cursor: pointer;
      width: 10px;
      height: 10px;
      padding: 0;
      display: block;
      background: $mercury;
      text-indent: -9999px;
      outline: none;
      border-radius: 20px;
    }

    .slick-active button {
      background: $tundora;
    }
  }
}

.hero {
  &__panel {
    position: relative;
    padding: 90px 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: $white;
    text-align: left;
    display: none;

    &:first-child {
      display: block;
    }

    @include tablet() {
      padding: 180px 0;
    }

    @include desktop() {
      padding: 225px 0;
    }

    &:after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: 1;
      background: $tundora;
      opacity: 0;
    }

    &--center {
      text-align: center;
    }

    &--right {
      text-align: right;
    }

    // Parallax is hidden on mobile by default unless parallax_all is enabled
    // Show parallax effect for tablet and up
    &--parallax {
      @include tablet() {
        background: transparent !important;
      }
    }
  }

  &__content {
    position: relative;
    z-index: 2;

    @include header-overlay() {
      padding-top: 60px;
    }
  }

  &__button {
    display: block;
    margin-top: 30px;
  }

  &--full {
    height: 80vh;
    display: flex;
    align-items: center;

    @include tablet() {
      padding: 125px 0 225px;

      .hero__content {
        position: absolute;
        left: 0;
        top: 45%;
        transform: translateY(-50%);
      }
    }

    @include desktop() {
      padding: 150px 0 300px;
    }
  }
}
