/* stylelint-disable swissquote/no-type-outside-scope */
/* ============================================================================
Homepage
============================================================================ */

.Container {
    margin-right: auto;
    margin-left: auto;
}
.Container--inner {
    width: 80%;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .Container {
        width: 1170px;
    }
}

@media (min-width: 992px) {
    .Container {
        width: 970px;
    }
}

@media (min-width: 769px) {
    .Container {
        width: 750px;
    }
}

.Homepage {
    padding-top: 60px !important;
    background-color: var(--homepage-hero-background);
    border-radius: 0;
    border: none;
    color: var(--homepage-hero-color);
    padding-bottom: 0;
    margin-bottom: 0;

    @include kill-box-shadow;
}

.HomepageTitle {
    h2 {
        width: 80%;
        font-size: 30px;
        margin: 20px auto;
        text-align: center;
    }
}

.HomepageImage {
    img {
        display: block;
        max-width: 80%;
        margin: 0 auto;
        height: auto;
    }
}

.HomepageButtons {
    padding: 20px 0;
    background-color: var(--hero-button-block-background);
    text-align: center;

    @include clearfix;

    .Button--hero {
        padding: 20px 30px;
        border-radius: 0;
        text-shadow: none;
        opacity: 0.8;
        margin: 0 10px;
        text-transform: uppercase;
        font-family: var(--font-family-heading);
        font-weight: 700;

        @include kill-background-image;
        @include kill-box-shadow;

        @media (max-width: 768px) {
            display: block;
            margin-bottom: 10px;
        }

        &:hover {
            opacity: 1;
        }

        &.Button--secondary {
            border: 5px solid var(--hero-button-secondary-border-color);
            background-color: var(--hero-button-secondary-background);
            color: var(--hero-button-secondary-color);
        }

        &.Button--primary {
            border: 5px solid var(--hero-button-primary-border-color);
            background-color: var(--hero-button-primary-background);
            color: var(--hero-button-primary-color);
        }
    }
}

.HomepageContent {
    background-color: var(--homepage-body-background);
    padding: 40px 0;

    ul,
    ol {
        li {
            list-style: none;
            margin-bottom: 0.5em;
            position: relative;
        }

        li:before {
            position: absolute;
            top: 50%;
            left: -1.5em;
            content: "";
            width: 0;
            height: 0;
            border: 0.5em solid transparent;
            border-left: 0.5em solid var(--homepage-bullet-color);
            float: left;
            display: block;
            margin-top: -0.5em;
        }
    }

    .HeroText {
        font-family: var(--font-family-heading);
        font-weight: 300;
        font-size: 16px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    @media (min-width: 769px) {
        padding: 40px 20px;

        .HeroText {
            font-size: 21px;
        }

        .Row {
            margin: 0 -15px;
        }

        .Row__third,
        .Row__half,
        .Row__quarter {
            float: left;
            position: relative;
            min-height: 1px;
            padding-left: 15px;
            padding-right: 15px;
        }

        .Row__third {
            width: 33.333333%;
        }

        .Row__half {
            width: 50%;
        }

        .Row__quarter {
            width: 25%;
        }
    }
}

.HomepageFooter {
    background-color: var(--homepage-footer-background);
    color: var(--homepage-footer-color);
    border: none;

    @include kill-box-shadow;
    @include clearfix;

    @media (max-width: 768px) {
        padding: 0 20px;
        text-align: center;

        .HomepageFooter__links {
            padding-left: 0;
            list-style-type: none;
        }
    }

    @media (min-width: 769px) {
        .HomepageFooter__links {
            float: left;
        }

        .HomepageFooter__twitter {
            float: right;
        }
    }
}

.HomepageFooter__links {
    margin: 40px 0;

    li a {
        line-height: 32px;
        font-size: 16px;
        font-family: var(--font-family-heading);
        font-weight: 700;
    }

    li a:hover {
        text-decoration: underline;
    }
}

.HomepageFooter__twitter {
    margin: 40px 0;
}

.HomepageFooter .Twitter__button {
    margin-bottom: 20px;
}
