/**
 * Hero
 * ----------------------------------------------------------------------------
 */

.hero {
    position: relative;
    color: $color-white;
    padding: $spacing--xxxlarge 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: $color-gray-85;
    display: flex;
    align-items: center;
    height: 70vh;
    text-align: left;

    .row {
        width: 100%;
    }
}

.hero__inner {
}

.hero__thumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.hero__title {
    font-size: 5.55vh;
    margin-bottom: 1rem;
    line-height: 1;
    font-weight: 900;
    font-family: $font-montserrat;
    text-transform: uppercase;
}

.hero__subtitle {
    margin-top: $spacing;
    display: block;
    margin: 0 auto;
    font-size: 2.3vh;
    font-weight: normal;
    text-transform: uppercase;
}

.hero__actions {
    margin-top: $spacing;
}

.hero__button {
    display: block;
    margin: 0 0 $spacing--small 0;
    .button {
        margin: 0;
    }
}

.hero__link {
    color: $color-white;
    font-weight: 500;

    &::after {
        @include add-arrow($color-white);

        margin-left: $spacing--xsmall;
    }

    @include link-style('white');
}

/**
 * Home hero.
 */

.hero--home {
}

.hero--title-large {
    .hero__title {
        font-size: 10.55vh;

        @include breakpoint(medium) {
            font-size: 13.55vh;
        }
    }
}

.hero--horizontal-left {
    .hero__title,
    .hero__subtitle {
        text-align: left;
    }
    .hero__actions {
        text-align: left;
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        text-align: center;

        .hero__link-container {
            display: inline-block;
            flex: none;
            order: 2;
            position: relative;
            margin-bottom: 16px;
            max-width: 100%;
            .hero__link {
                display: inline-block;
            }
        }
        .hero__button {
            max-width: 100%;
            margin-bottom: 16px;
            margin-right: 16px;
            flex: none;
            display: inline-block;
        }
    }
}

.hero--horizontal-center {
    .hero__title,
    .hero__subtitle {
        text-align: center;
    }
    .hero__actions {
        text-align: center;
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        text-align: center;

        .hero__button {
            //order: 2;
            display: block;
            flex: 0 0 100%;
            max-width: 100%;
        }
        .hero__link-container {
            display: block;
            flex: 0 0 100%;
            max-width: 100%;
            margin-bottom: 16px;
        }
    }
}

.hero--vertical-center {

}

.hero--vertical-bottom {
    position: relative;
    .hero__inner {
        position: absolute;
        bottom: 60px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        @include breakpoint(medium) {
            bottom: 80px;
        }
    }
}

/**
 * Hero animations.
 */

.hero__title[data-animated-visible] {
    animation-delay: $duration;
}

.hero__subtitle[data-animated-visible] {
    animation-delay: ($duration * 1.5);
}

.hero__actions[data-animated-visible] {
    animation-delay: ($duration * 2);
}
