:root {
    --d: 700ms;
    --e: cubic-bezier(0.19, 1, 0.22, 1);
    --heading-1: 3rem;
    --heading-2: 2.5rem;
    --heading-3: 2rem;
    --body-text: 1.5rem;
    --nav-text: 1.25rem;
    --logo-width: 710px;
    --logo-height: 64px;
    --contact-icon-size: 70px;
}

* {
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

* body {
    margin: 0 auto;
    background-color: #f1f2f4;
}

/**
 Header CSS
 */
.header-main-container {
    margin: 0 auto;
    padding: 0 ;
    width: 100%;
}

.header-content-container {
    margin: 0 auto;
    width: 100%;
    height: 650px;
    background-image: url("img/header-bg6.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.header-nav {
    padding-top: 5px;
    margin: 0 auto;
    text-align: center;
    list-style: none;
    width: 100%;
}

.header-nav li {
    display: inline;
    color: #fff;
}

.header-nav li a {
    font-size: var(--heading-3);
    font-weight: 300;
    margin-right: 40px;
    margin-left: 40px;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    transition: all .4s ease;
}
.header-nav li a:hover {
    color: #c5d0d9;
}

.header-logo-container {
    padding-top: 14%;
}

.header-logo-container img {
    width: var(--logo-width);
    height: var(--logo-height);
}

.header-logo-container p {
    margin: 0;
    font-size: 38px;
    color: white;
}

.header-offerbtn-container {
    padding-top: 20px;
    width: 70%;
    margin: 0 auto;
}

.header-offerbtn-container p {
    font-weight: 300;
    text-align: center;
    font-size: var(--body-text);
    color: white;
    margin: 10px 0 10px 0;
    font-family: 'Montserrat', sans-serif;
}

.header-offerbtn-container a {
    margin-top: 15px;
}

.header-offerbtn-container a button {
    font-weight: 300;
    font-size: var(--heading-3);
    color: #fff;
    padding: 15px 60px;
    background-color: #0a4965;
    cursor: pointer;
    border: none;
    transition: all .4s ease;
}

.header-offerbtn-container a button:hover {
    color: #c7cfd4;
    background-color: #103546;
}

/**
 Body Css
 */
.body-main-container {
    width: 100%;
    padding: 0 ;
    margin: 0;
}

.body-content-container {
    padding: 10% 13% 10% 13%;
}

.body-discover-container {
    width: 100%;
    margin: 0;
}
.body-discover-text-container {
    width: 35%;
    float: left;
    padding-right: 20px;
}

/**
 Body Slideshow Css
 */
.body-discover-cards-container {
    width: 65%;
    float: right;
}

.page-content {
    display: grid;
    grid-gap: 1rem;
    max-width: 1024px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .page-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 800px) {
    .page-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 1rem;
    width: 100%;
    text-align: center;
    color: whitesmoke;
    background-color: whitesmoke;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
}
@media (min-width: 600px) {
    .card-container {
        height: 350px;
    }
}

.card-container:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-size: cover;
    background-position: 0 0;
    transition: transform calc(var(--d) * 1.5) var(--e);
    pointer-events: none;
}
.card-container:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.009) 11.7%, rgba(0, 0, 0, 0.034) 22.1%, rgba(0, 0, 0, 0.072) 31.2%, rgba(0, 0, 0, 0.123) 39.4%, rgba(0, 0, 0, 0.182) 46.6%, rgba(0, 0, 0, 0.249) 53.1%, rgba(0, 0, 0, 0.32) 58.9%, rgba(0, 0, 0, 0.394) 64.3%, rgba(0, 0, 0, 0.468) 69.3%, rgba(0, 0, 0, 0.54) 74.1%, rgba(0, 0, 0, 0.607) 78.8%, rgba(0, 0, 0, 0.668) 83.6%, rgba(0, 0, 0, 0.721) 88.7%, rgba(0, 0, 0, 0.762) 94.1%, rgba(0, 0, 0, 0.79) 100%);
    transform: translateY(-50%);
    transition: transform calc(var(--d) * 2) var(--e);
}
.card-container:nth-child(1):before {
    background-image: url(img/mountain-view.jpeg);
}
.card-container:nth-child(2):before {
    background-image: url(img/climbing.jpg);
}
.card-container:nth-child(3):before {
    background-image: url(img/skiing.jpg);
}
.card-container:nth-child(4):before {
    background-image: url(img/explore-winter.jpg);
}

.card-content-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform var(--d) var(--e);
    z-index: 1;
}
.card-content-container > * + * {
    margin-top: 1rem;
}

.card-title {
    font-size: var(--body-text);
    font-weight: 700;
    line-height: 1.2;
}

.card-text {
    font-size: var(--nav-text);
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.card-btn {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-size: var(--nav-text);
    letter-spacing: 0.025rem;
    text-transform: uppercase;
    color: white;
    background-color: #0a4965;
    border: none;
    transition: all .4s ease;
    font-weight: 400;
    margin: 0;
}

.card-btn:hover {
    color: #c7cfd4;
    background-color: #103546;
}

.card-btn:focus {
    outline: 1px dashed yellow;
    outline-offset: 3px;
}

@media (hover: hover) and (min-width: 600px) {
    .card-container:after {
        transform: translateY(0);
    }

    .card-content-container {
        transform: translateY(calc(100% - 4.5rem));
    }
    .card-content-container > *:not(.card-title) {
        opacity: 0;
        transform: translateY(1rem);
        transition: transform var(--d) var(--e), opacity var(--d) var(--e);
    }

    .card-container:hover,
    .card-container:focus-within {
        align-items: center;
    }
    .card-container:hover:before,
    .card-container:focus-within:before {
        transform: translateY(-4%);
    }
    .card-container:hover:after,
    .card-container:focus-within:after {
        transform: translateY(-50%);
    }
    .card-container:hover .card-content-container,
    .card-container:focus-within .card-content-container {
        transform: translateY(0);
    }
    .card-container:hover .card-content-container > *:not(.card-title),
    .card-container:focus-within .card-content-container > *:not(.card-title) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(var(--d) / 8);
    }

    .card-container:focus-within:before, .card-container:focus-within:after,
    .card-container:focus-within .card-content-container,
    .card-container:focus-within .card-content-container > *:not(.card-title) {
        transition-duration: 0s;
    }
}

.body-discover-text-container h1 {
    color: #0a4965;
    font-size: var(--heading-2);
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
}

.body-discover-text-container p {
    color: #acb4bb;
    font-size: var(--body-text);
    margin: 0;
    font-weight: 300;
}

.body-contact-info-container {
    width: 100%;
    margin: 120px 0 0 0;
    text-align: center;
}

.body-contact-info-container h1 {
    text-align: center;
    color: #0a4965;
    font-size: var(--heading-2);
    margin: 0;
    font-weight: 700;
}

.body-contact-info-article-container {
    width: 100%;
    margin: 20px 0 0 0 ;
}

.body-article {
    width: 33.3%;
    float: left;
    color: #acb4bb;
    font-size: var(--body-text);
    font-weight: 300;
}

.body-article img {
    width: var(--contact-icon-size);
    height: var(--contact-icon-size);
}

.article-border {
    border-left: #0a4965 1px solid;
    border-right: #0a4965 1px solid;
}

.body-article img,p {
    margin: 0 0 8px 0;
}

/**
 Footer
 */

.footer-main-container {
    position: relative;
    width: 100%;
    margin: 0;
    height: 420px;
    background-image: url("img/footer-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-content-container {
    padding: 5px 0;
    position: absolute;
    width: 100%;
    height: 26px;
    background-color: #0a4965;
    bottom: 10%;
}

.footer-content-container p {
    color: #fff;
    font-size: .8rem;
    text-align: left;
    font-weight: 400;
    margin-left: 10px;
}

.footer-content-container img {
    float:left;
}

/**
 Clearfix
*/

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

/**
 Media Queries
 */
@media all and (max-width: 1200px)  {
    :root {
        --d: 700ms;
        --e: cubic-bezier(0.19, 1, 0.22, 1);
        --heading-1: 3rem;
        --heading-2: 2.2rem;
        --heading-3: 1.5rem;
        --body-text: 1.2rem;
        --nav-text: 1.1rem;
        --logo-width: 620px;
        --logo-height: 56px;
        --contact-icon-size: 55px;
    }

    .header-logo-container {
        padding-top: 24%;
    }
}

@media all and (max-width: 900px) {
    :root {
        --d: 700ms;
        --e: cubic-bezier(0.19, 1, 0.22, 1);
        --heading-1: 3rem;
        --heading-2: 1.6rem;
        --heading-3: 1.3rem;
        --body-text: 1.1rem;
        --nav-text: 1.1rem;
        --logo-width: 520px;
        --logo-height: 47px;
        --contact-icon-size: 35px;
    }

    .header-logo-container {
        padding-top: 34%;
    }
}