/* ==========================================================================
   HOME SERVICES
   ========================================================================== */


/* ==========================================================================
   SECTION
   ========================================================================== */




/* ==========================================================================
   SECTION HEADING
   ========================================================================== */

.home-services__heading {
    max-width: 680px;

    margin: 0 auto 38px;

    text-align: center;
}








.home-services__intro {
    max-width: 600px;

    margin: 0 auto;

    color: #666666;

    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}


/* ==========================================================================
   GRID
   ========================================================================== */




/* ==========================================================================
   SERVICE CARD
   ========================================================================== */

.home-service-card {
    position: relative;

    min-width: 0;

    background: #FFFFFF;

    border: 1px solid #E7E7E7;
    border-radius: 8px;

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.home-service-card:hover {
    transform: translateY(-3px);

    border-color: #DDDDDD;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .07);
}


/* ==========================================================================
   IMAGE
   ========================================================================== */







.home-service-card:hover
.home-service-card__media img {
    transform: scale(1.035);
}


/*
|--------------------------------------------------------------------------
| Very subtle image overlay
|--------------------------------------------------------------------------
*/

.home-service-card__overlay {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, .16) 100%
        );

    pointer-events: none;
}


/* ==========================================================================
   FALLBACK IMAGE
   ========================================================================== */

.home-service-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #E7E7E7 0%,
            #F0F0F0 100%
        );

    color: #002EBE;

    font-size: 34px;
}


/* ==========================================================================
   CARD BODY
   ========================================================================== */

.home-service-card__body {
    padding: 20px 20px 21px;
}


/* ==========================================================================
   TITLE
   ========================================================================== */

.home-service-card__title {
    margin: 0 0 8px;

    font-family: "Raleway", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;

    text-transform: none;
}


.home-service-card__title a {
    color: #262626;

    text-decoration: none;

    transition:
        color .2s ease;
}


.home-service-card__title a:hover,
.home-service-card__title a:focus {
    color: #002EBE;
}


/* ==========================================================================
   DESCRIPTION
   ========================================================================== */

.home-service-card__text {
    display: -webkit-box;

    min-height: 42px;
    max-height: 42px;

    margin: 0 0 15px;

    overflow: hidden;

    color: #666666;

    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ==========================================================================
   CARD LINK
   ========================================================================== */

.home-service-card__link {
    display: inline-flex;
    align-items: center;

    color: #002EBE;

    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color .2s ease;
}


.home-service-card__link .fa {
    margin-left: 7px;

    font-size: 14px;

    transition:
        transform .2s ease;
}


.home-service-card__link:hover,
.home-service-card__link:focus {
    color: #006BB7;

    text-decoration: none;
}


.home-service-card__link:hover .fa,
.home-service-card__link:focus .fa {
    transform: translateX(3px);
}


/* ==========================================================================
   SECTION FOOTER
   ========================================================================== */

.home-services__footer {
    margin-top: 32px;

    text-align: center;
}


.home-services__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 18px;

    background: #FFFFFF;

    border: 1px solid #002EBE;
    border-radius: 6px;

    color: #002EBE;

    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.home-services__all .fa {
    margin-left: 8px;
}





/* ==========================================================================
   TABLET
   ========================================================================== */

@media only screen
and (min-width: 768px)
and (max-width: 991px) {

    .home-services {
        padding: 60px 0;
    }


    .home-services__heading {
        margin-bottom: 32px;
    }


    .home-services__heading h2 {
        font-size: 28px;
    }


    .home-services__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media screen and (max-width: 767px) {

    .home-services {
        padding: 48px 0;
    }


    .home-services__heading {
        margin-bottom: 27px;

        text-align: left;
    }


    .home-services__eyebrow {
        font-size: 11px;
    }


    .home-services__heading h2 {
        margin-bottom: 11px;

        font-size: 25px;
        line-height: 1.3;
    }


    .home-services__intro {
        font-size: 13px;
        line-height: 1.65;
    }


    .home-services__grid {
        display: block;
    }


    .home-service-card {
        margin-bottom: 18px;
    }


    .home-service-card:last-child {
        margin-bottom: 0;
    }


    .home-service-card__body {
        padding: 18px;
    }


    .home-service-card__title {
        font-size: 17px;
    }


    .home-service-card__text {
        min-height: 0;

        font-size: 13px;
    }


    .home-services__footer {
        margin-top: 26px;
    }


    .home-services__all {
        width: 100%;
    }

}