/* --------------------------------

Primary style

-------------------------------- */

*,
*::after,
*::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: 'Oswald', sans-serif;
    color: #767070;
    background-color: #ffffff;
}

a {
    text-decoration: none;
}

/* --------------------------------

Slider

-------------------------------- */

.cd-slider-wrapper {
    position: relative;
    height: 100vh;
    /* margin-bottom: 55px; */
}

@media only screen and (min-width: 900px) {
    .cd-slider-wrapper {
        /* padding: 30px; */
    }
}

.cd-slider {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow: hidden;
}

.cd-slider li {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: -webkit-transform 0.6s;
    transition: -webkit-transform 0.6s;
    transition: transform 0.6s;
    transition: transform 0.6s, -webkit-transform 0.6s;
}

.cd-slider li.is-visible {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.cd-slider .cd-half-block {
    height: 100%;
    position: absolute;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
}

.half-block-inner-content {
    display: table-cell;
    vertical-align: middle;
}

.cd-slider li:first-of-type .image {
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0.3))), url(../img/img-1.jpg) center center no-repeat;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/shelton.jpg) center center no-repeat;
    background-size: cover;
}

.cd-slider li:nth-of-type(2) .image {
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0.3))), url(../img/img-2.jpg) center center no-repeat;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/westport.jpg) center center no-repeat;
    background-size: cover;
}

.cd-slider li:nth-of-type(3) .image {
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0.3))), url(../img/img-3.jpg) center center no-repeat;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/img-3.jpg) center center no-repeat;
     background-size: cover;
}

.cd-slider li:nth-of-type(4) .image {
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.3)), color-stop(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0.3))), url(../img/img-4.jpg) center center no-repeat;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/img-4.jpg) center center no-repeat;
     background-size: cover;
}

.cd-slider .image {
    background-size: cover;
    height: 100%;
}

.cd-slider .content {
    padding: 0;
    color: #ffffff;
    display: table;
    /* background-color: #8e7731; */
    /* background: rgba(0, 0, 0, 0.5); */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cd-slider .light-bg {
    color: rgba(0, 0, 0, 0.6);
}

.cd-slider .btn {
    display: inline-block;
    padding: 10px;
    text-transform: uppercase;
    font-size: 18px;
    /* border: 2px solid rgb(217, 82, 30); */
    text-align: center;
    color: #ffffff;
    font-weight: 500;
    /* border-radius: 3px; */
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.cd-slider .btn span {
    padding: 15px 10px;
    display: inline-block;
    margin: 0;
    text-transform: uppercase;
    width: 100%;
    color: #fff;
    background: rgb(217, 82, 30);
}

.no-touch .cd-slider .btn:hover {
    opacity: 0.8;
}

.cd-slider li:nth-of-type(2) .content {
    /* background-color: #cb9a2b; */
}

.cd-slider li:nth-of-type(3) .content {
    /* background-color: #d87b28; */
}

.cd-slider li:nth-of-type(4) .content {
    /* background-color: #be6328; */
}

.cd-slider h2 {
    font-size: 45px;
    margin-bottom: .4em;
}

.cd-slider p {
    font-size: 1.4rem;
}

.cd-slider h2,
.cd-slider p {
    line-height: 1.4;
    text-align: center;
}

@media only screen and (min-width: 900px) {
    .cd-slider li {
        pointer-events: none;
        z-index: 1;
        -webkit-transform: translateX(0);
        transform: translateX(0);
        -webkit-transition: z-index 0s 0.6s;
        transition: z-index 0s 0.6s;
    }
    .cd-slider li.is-visible {
        pointer-events: auto;
        z-index: 3;
        -webkit-transition: z-index 0s 0s;
        transition: z-index 0s 0s;
    }
    .cd-slider li.is-visible.covered {
        /* list item still there, but covered by the list item entering the viewport (.is-visible) */
        z-index: 2;
    }
    .cd-slider .cd-half-block {
        height: 100%;
        width: 100%;
        float: right;
        position: absolute;
    }
    .cd-slider .cd-half-block.content {
        -webkit-transform: translateX(200%);
        transform: translateX(200%);
        -webkit-transition: -webkit-transform 0.6s 0s ease-in-out;
        transition: -webkit-transform 0.6s 0s ease-in-out;
        transition: transform 0.6s 0s ease-in-out;
        transition: transform 0.6s 0s ease-in-out, -webkit-transform 0.6s 0s ease-in-out;
    }
    .cd-slider .cd-half-block.image {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
        -webkit-transition: -webkit-transform 0s 0.3s;
        transition: -webkit-transform 0s 0.3s;
        transition: transform 0s 0.3s;
        transition: transform 0s 0.3s, -webkit-transform 0s 0.3s;
    }
    .cd-slider li.is-visible .cd-half-block.content,
    .cd-slider li.is-visible .cd-half-block.image {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }
    .cd-slider li.is-visible .cd-half-block.content {
        -webkit-transition: -webkit-transform 0.6s 0s ease-in-out;
        transition: -webkit-transform 0.6s 0s ease-in-out;
        transition: transform 0.6s 0s ease-in-out;
        transition: transform 0.6s 0s ease-in-out, -webkit-transform 0.6s 0s ease-in-out;
    }
    .cd-slider .content {
        /* vertically align its content */
        display: table;
        padding: 0 40px;
    }
    .cd-slider .content > div {
        /* vertically align <div> inside div.content */
        display: table-cell;
        vertical-align: middle;
        text-align: center;
    }
    .cd-slider .btn {
        font-size: 18px;
        padding: 0;
    }

    .cd-slider p {
        font-size: 1.6rem;
    }
    .cd-slider h2 {
        font-size: 105px;
        margin-bottom: 0;
        display: table;
        width: 100%;
        text-align: center;
    }
    .cd-slider h2,
    .cd-slider p {
        line-height: 2;
    }
}

@media only screen and (max-width: 900px) {
    .cd-slider .btn span {
        padding: 10px 3%;
        margin: 4px;
    }
    .cd-slider .btn {
        padding: 0px;
    }
}

@media only screen and (max-width: 768px) {
    .cd-slider .btn span {
        padding: 0px;
        background: none;
        margin: 0px;
    }
    .cd-slider .btn {
        padding: 10px;
        background: #d9531e;
        margin: 0.5%;
        width: 49%;
    }
}

@media only screen and (min-width: 1170px) {
    .cd-slider .content {
        padding: 0;
    }
    .cd-slider h2 {
        font-weight: 300;
        line-height: 105px;
        text-transform: uppercase;
        /* text-shadow: 3px 2px 0px rgba(255, 255, 255, 0.6); */
    }

}

.cd-slider h4 {
    font-weight: 500;
    font-size: 18px;
    border-bottom: 2px solid #d9521e;
    display: table;
    width: 100%;
    max-width: fit-content;
    margin: auto;
    text-transform: uppercase;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* --------------------------------

Slider Navigation

-------------------------------- */

.js-name {
    opacity: 0;
}

.nav-js {
    background: none !important;
    z-index: 999 !IMPORTANT;
}

li.selected {
    background: rgba(217, 82, 30, 0.51) !important;
    border-top: 2px solid #d9521e !important;
}

.cd-slider-navigation {
    /* you won't see this element in the html but it will be created using jQuery */
    position: absolute;
    z-index: 99;
    width: 100%;
    left: 50%;
    right: auto;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    top: 76px;
    background: rgba(0, 0, 0, 0.6);
}

.cd-slider-navigation li {
    display: inline-block;
    /* margin: 0 .25em; */
    width: 50%;
    background: rgba(0, 0, 0, 0.07);
    float: left;
}

.cd-slider-navigation li.selected a {
    background-color: #ffffff;
    outline: 0;
}

.cd-slider-navigation a {
    color: #ffffff;
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: 10px 5px;
    font-size: 18px;
    /* display: block;
  height: 8px;
  width: 8px;
  border-radius: 50%;
  color: transparent; */
    /* image replacement */
    /* white-space: nowrap;
  text-indent: 100%;
  overflow: hidden;
  border: 1px solid #ffffff; */
}

@media only screen and (min-width: 900px) {
    .cd-slider-navigation li {
        display: inline-block;
        /* margin: 0 .25em; */
        width: 50%;
        float: left;
        position: relative;
        z-index: 2;
        border-top: 2px solid rgba(217, 82, 30, 0);
    }
    .cd-slider-navigation {
        /* padding: 0.5em 1em; */
        background-color: rgba(0, 0, 0, 0.4);
        /* fixes a bug on Firefox with ul.cd-slider-navigation z-index */
        -webkit-transform: translateZ(2px) translateX(-50%);
        transform: translateZ(2px) translateX(-50%);
        -webkit-transition: -webkit-transform 0.3s;
        transition: -webkit-transform 0.3s;
        transition: transform 0.3s;
        transition: transform 0.3s, -webkit-transform 0.3s;
        width: 100%;
    }
    .cd-slider-navigation.slider-animating {
        /* fixes a bug on Firefox with ul.cd-slider-navigation z-index */
        -webkit-transform: translateX(-50%) scale(1);
        transform: translateX(-50%) scale(1);
    }
    .cd-slider-navigation a {
        /* height: 40px; */
        width: 100%;
        display: inline-block;
        line-height: normal;
        text-align: center;
        padding: 10px;
        font-weight: 600;
        /* reset style */
        text-indent: 0;
        border: none;
        font-size: 24px;
        border-radius: 0;
        z-index: 999;
        position: relative;
        text-transform: uppercase;
        color: #ffffff;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    .cd-slider-navigation li.selected a {
        background-color: transparent;
        color: #ffffff;
    }
}
