/* 1- general css style */
/* #508C9B */
/* #134B70 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(../images/home/discount-cars-tx-background.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #508C9B;
}

::-webkit-scrollbar-thumb {
    background: #134B70;
}

/* rubik-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/rubik-v28-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* rubik-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/rubik-v28-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* rubik-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/rubik-v28-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* rubik-900 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/rubik-v28-latin-900.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

.line {
    display: block;
    height: 4px;
    width: 300px;
    background: #134B70;
    margin: 20px;
    transition: width .5s;
}

.line-1 {
    display: block;
    height: 4px;
    width: 300px;
    background: #508C9B;
    margin: 20px;
    transition: width .5s;
}

.text-justify {
    text-align: justify;
}

.section-title:hover .line {
    width: 150px;
}

a {
    text-decoration: none;
}

hr {
    color: #fff;
}

h1,
h2,
h3,
h4 {
    text-transform: capitalize;
}

.details {
    background-color: #134B70;
}

.social-icon {
    border-radius: 50%;
}

.social-icon:hover {
    background-color: #ffffff7d;
}

.marquee {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    animation: marquee 30s linear infinite;
    color: #eee;
}

.marquee:hover {
    animation-play-state: paused
}

/* Make it move */
@keyframes marquee {
    0% {
        text-indent: 27.5em
    }

    100% {
        text-indent: -105em
    }
}


.button-hover,
.button-hover-1 {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 25px;

    &:after {
        display: block;
        position: absolute;
        content: "";
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        border-radius: 25px;
        top: 50%;
        left: 50%;
        opacity: .4;
        transform: translate(-50%, -50%) scale(0, 0);
        transition: transform .5s ease 0s;
        z-index: 0;
        color: #fff;
    }

    &:hover {
        &:after {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1, 1);
            transition: transform .5s ease 0s;
        }
    }
}

.button-hover {
    background: #508C9B;
    color: #fff;

    &:after {
        background-color: #134B70;
    }
}

.button-hover-1 {
    background: #508C9B;
    color: #fff;

    &:after {
        background-color: #134B70;
    }
}

.btn {
    position: relative;
    text-align: center;
    z-index: 1;
    font-size: 19px;
    font-weight: bold;
    background: transparent;
    padding: 20px;
    cursor: pointer;
    color: #fff;
    font-weight: 500;

    &:hover {
        color: #fff;
    }
}

.spin {
    width: 100px;
    height: 120px;

    animation-name: spin;
    animation-duration: 4000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    /* transform: rotate(3deg); */
    /* transform: rotate(0.3rad);/ */
    /* transform: rotate(3grad); */
    /* transform: rotate(.03turn);  */
}

.logo-name {
    width: 250px;
    height: 80px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* navbar */
.bg {
    background-color: #134B70;
}

.navbar-collapse ul>li {
    display: inline-block;
    text-align: center;
    color: #fff;
    width: 120px;
}

.navbar-collapse ul>li>a {
    display: block;
    font-weight: bold;
    color: #fff;
    font-size: 12px;
    z-index: 1;
}

.navbar-collapse ul>li>a:hover {
    color: #fff;
}

.nav-link {
    position: relative;
}

.btn-group.button-hover {
    overflow: visible;
}

.dropdown-menu {
    background: none;
}

.navbar-nav .btn-group ul>li{
    width: 160px;
}
/* .nav-link::before,
.nav-link::after {
    content: "";
    position: absolute;
    border-color: #134B70;
    border-style: solid;
    top: 0;
    left: 0;
}

.nav-link::before {
    border-width: 0 4px;
    width: 100%;
    height: 100%;
    transform: scale3d(1, 0, 1);
    transition: transform 0.2s;

}

.nav-link::after {
    border-width: 4px 0;
    width: 100%;
    height: 100%;
    transform: scale3d(0, 1, 1);
    transform-origin: left;
    transition: transform 0.4s;
}

.nav-link:hover:before {
    transform: scale3d(1, 1, 1);
}

.nav-link:hover::after {
    transform: scale3d(1, 1, 1);
    transition-delay: .2s;
}

.active::after,
.active::before {
    transform: scale3d(1, 1, 1);
} */
.nav-item.active {
    background-color: #134B70;
}

.nav-icon-1 {
    width: 30px;
    height: 30px;
    position: relative;
    transition: 0.1s;
    margin: 10px 10px;
    cursor: pointer;
    display: inline-block;
}

.nav-icon-1 span {
    width: 5px;
    height: 5px;
    background-color: #fff;
    display: block;
    border-radius: 50%;
    position: absolute;
}

.nav-icon-1 span:nth-child(1) {
    left: 0;
    top: 0;
}

.nav-icon-1 span:nth-child(2) {
    left: 12px;
    top: 0;
}

.nav-icon-1 span:nth-child(3) {
    right: 0;
    top: 0;
}

.nav-icon-1 span:nth-child(4) {
    left: 0;
    top: 12px;
}

.nav-icon-1 span:nth-child(5) {
    position: absolute;
    left: 12px;
    top: 12px;
}

.nav-icon-1 span:nth-child(6) {
    right: 0px;
    top: 12px;
}

.nav-icon-1 span:nth-child(7) {
    left: 0px;
    bottom: 0px;
}

.nav-icon-1 span:nth-child(8) {
    position: absolute;
    left: 12px;
    bottom: 0px;
}

.nav-icon-1 span:nth-child(9) {
    right: 0px;
    bottom: 0px;
}

.nav-icon-1:hover span {
    transform: scale(1.2);
    transition: 350ms cubic-bezier(0.8, 0.5, 0.2, 1.4);
}

.nav-icon-1.open {
    transform: rotate(180deg);
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.8, 0.5, 0.2, 1.4);
}

.nav-icon-1.open span {
    border-radius: 50%;
    transition-delay: 200ms;
    transition: 0.5s cubic-bezier(0.8, 0.5, 0.2, 1.4);
}

.nav-icon-1.open span:nth-child(2) {
    left: 6px;
    top: 6px;
}

.nav-icon-1.open span:nth-child(4) {
    left: 6px;
    top: 18px;
}

.nav-icon-1.open span:nth-child(6) {
    right: 6px;
    top: 6px;
}

.nav-icon-1.open span:nth-child(8) {
    left: 18px;
    bottom: 6px;
}

.tb-effect,
.lt-effect {
    position: relative;
}

.tb-effect::after,
.lt-effect::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.tb-effect::after {
    height: 0;
    background-color: #134B70;
    border-radius: 50%;
    transition: height .5s;
}

.active::after {
    height: 100%;
    background-color: #508C9B;
    z-index: -1;
}

.tb-effect:hover::after {
    height: 100%;
    color: #fff;
}


.lt-effect::after {
    width: 0;
    background-color: #134B70;
    transition: width .5s;
}

.lt-effect:hover::after {
    width: 100%;
}

.move {
    position: relative;
    opacity: 0;
}

.move.active {
    opacity: 1;
}

.active.fade-bottom {
    animation: fade-bottom 1s ease-in;
}

.active.fade-left {
    animation: fade-left .7s ease-in;
}

.active.fade-right {
    animation: fade-right .7s ease-in;
}

.active.fade-top {
    animation: fade-top 1s ease-in;
}

@keyframes fade-top {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-bottom {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-left {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-right {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* hero */
.hero {
    position: relative;
    padding: 100px 0;
}


.hero-cont {
    background-color: #508C9B;
    color: #fff;
    margin-top: 250px;
    padding: 30px;
    margin-right: -180px;
    z-index: 5;
}

.hero-img {
    margin-top: 100px;
    z-index: 4;
}

/* Residential  */
.res {
    background-image: url(../images/home/residential-background.jpeg);
    background-size: cover;
}

.res-cont {
    background-color: #fff;
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    padding: 100px;
}

/* testimonial */
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

#testimonial-area {

    .section-heading h2 {
        font-size: 48px;
        line-height: 58px;
    }
}

.testi-wrap {
    position: relative;
    height: 500px;

}

.client-single {
    margin-top: 20px;
    text-align: center;
    position: absolute;
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
}

.client-info,
.client-comment {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.client-single {
    &.inactive {

        .client-comment,
        .client-info {
            display: none;
        }

        .client-comment,
        .client-info {
            opacity: 0;
            visibility: hidden;
        }
    }

    &.position-1 {
        -webkit-transform: scale(0.65);
        transform: scale(0.65);
    }


    &.position-3 {
        left: -60px;
        top: 240px;
        -webkit-transform: scale(0.4) !important;
        transform: scale(0.4) !important;
    }


    &.position-6 {
        top: 225px;
        right: -40px;
    }



    &.active {
        top: 10%;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        z-index: 10;
        width: 70%;

        .client-comment,
        .client-info {
            -webkit-transition-delay: 0.6s;
            transition-delay: 0.6s;
        }
    }

    &:not(.active) {
        -webkit-transform: scale(0.55);
        transform: scale(0.55);
        z-index: 99;
    }

    &.active .client-img {
        width: 160px;
        height: 160px;
        margin: 0 auto 24px;
        position: relative;

        &:before {
            border-radius: 100%;
            content: '';
            background-image: -webkit-gradient(linear, left top, left bottom, from(#508C9B), to(#134B70));
            background-image: linear-gradient(180deg, #508C9B 0%, #134B70 100%);
            padding: 5px;
            width: 160px;
            height: 160px;
            top: -4px;
            left: 0px;
            position: absolute;
            z-index: -1;
        }
    }

    .client-img img {
        width: 190px;
        border-radius: 50%;
        border: 8px solid #d1e9ff;
        cursor: pointer;
    }

    &.active .client-img img {
        max-width: 160px;
        margin: 0 auto 24px;
        border: 0;
    }
}

.client-comment {
    padding: 0 30px;

    h3 {
        font-size: 22px;
        line-height: 32px;
        color: #505b6d;
    }

    span i {
        font-size: 60px;
        color: #0084ff;
        margin: 40px 0 24px;
        display: inline-block;
    }
}

.client-info {
    h3 {
        color: #000;
        font-weight: 600;
        margin-bottom: 4px;
    }

    p {
        color: #0084ff;
        text-transform: uppercase;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    #testimonial-area .section-heading h2 {
        font-size: 30px;
    }

    .client-comment h3 {
        font-size: 18px;
        line-height: 28px;
    }

    .client-single.active {
        width: 60%;
    }

    .client-single:not(.active) {
        -webkit-transform: scale(0.55);
        transform: scale(0.35);
    }

    .client-single.position-3,
    .client-single.position-7 {
        -webkit-transform: scale(.30) !important;
        transform: scale(.30) !important;
    }

    .client-single.active .client-img img {
        max-width: 100px;
    }

    .client-single.active .client-img::before {
        padding: 5px;
        width: 108px;
        height: 108px;
        top: -4px;
        left: 6px;
    }

    .client-single.active .client-img {
        width: 120px;
        height: 100px;
    }

    .testi-wrap {
        height: 580px;
    }

    #testimonial-area {
        padding: 100px 0 0;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    #testimonial-area .section-heading h2 {
        font-size: 30px;
    }

    .client-comment h3 {
        font-size: 14px;
        line-height: 26px;
    }

    .client-single.active {
        width: 60%;
    }

    .client-comment span i {
        font-size: 40px;
    }

    .client-single:not(.active) {
        -webkit-transform: scale(0.55);
        transform: scale(0.35);
    }

    .client-single.position-5,
    .client-single.position-7 {
        right: 0;
    }

    .client-single.position-4 {
        left: 0;
    }

    .client-single.position-3,
    .client-single.position-7 {
        -webkit-transform: scale(.30) !important;
        transform: scale(.30) !important;
    }

    .client-single.active .client-img img {
        max-width: 80px;
    }

    .client-single.active .client-img::before {
        padding: 5px;
        width: 88px;
        height: 88px;
        top: -4px;
        left: 16px;
    }

    .client-single.active .client-img {
        width: 120px;
        height: 100px;
    }

    .testi-wrap {
        height: 630px;
    }
}

@media only screen and (min-width: 360px) and (max-width: 479px) {
    #testimonial-area .section-heading h2 {
        font-size: 30px;
        line-height: 40px
    }

    .client-comment h3 {
        font-size: 14px;
        line-height: 26px;
    }

    .client-single.active {
        width: 80%;
    }

    .client-comment span i {
        font-size: 40px;
    }

    .client-single:not(.active) {
        -webkit-transform: scale(0.25);
        transform: scale(0.25);
    }

    .client-single.position-5,
    .client-single.position-7,
    .client-single.position-6 {
        right: -70px;
    }

    .client-single.position-4 {
        left: -60px;
    }

    .client-single.position-3 {
        left: -75px;
    }

    .client-single.position-3,
    .client-single.position-7 {
        -webkit-transform: scale(.25) !important;
        transform: scale(.25) !important;
    }

    .client-single.active .client-img img {
        max-width: 80px;
    }

    .client-single.active .client-img::before {
        padding: 5px;
        width: 88px;
        height: 88px;
        top: -4px;
        left: 16px;
    }

    .client-single.active .client-img {
        width: 120px;
        height: 100px;
    }

    .testi-wrap {
        height: 600px;
    }
}

@media only screen and (min-width: 320px) and (max-width: 359px) {
    #testimonial-area .section-heading h2 {
        font-size: 30px;
    }

    .client-comment h3 {
        font-size: 14px;
        line-height: 26px;
    }

    .client-single.active {
        width: 50%;
    }

    .client-comment span i {
        font-size: 40px;
    }

    .client-single:not(.active) {
        -webkit-transform: scale(0.25);
        transform: scale(0.25);
    }

    .client-single.position-5,
    .client-single.position-7,
    .client-single.position-6 {
        right: -70px;
    }

    .client-single.position-3 {
        left: -75px;
    }

    .client-single.position-3,
    .client-single.position-7 {
        -webkit-transform: scale(.25) !important;
        transform: scale(.25) !important;
    }

    .client-single.active .client-img img {
        max-width: 80px;
    }

    .client-single.active .client-img::before {
        padding: 5px;
        width: 88px;
        height: 88px;
        top: -4px;
        left: 16px;
    }

    .client-single.active .client-img {
        width: 120px;
        height: 100px;
    }

    .testi-wrap {
        height: 550px;
    }
}

/* auto */
.auto .dis-1 {
    border-left: #508C9B 5px solid;
}

.auto .dis-2 {
    border-right: #508C9B 5px solid;
}

/* comm */
.comm {
    border: #508C9B dashed 5px;
    padding: 20px;
}

/* Emergency */
.emer-cont .dis-1 {
    border-right: #508C9B 5px solid;
}

.emer-cont .dis-2 {
    border-left: #508C9B 5px solid;
}

/* contact-us */
.contact-us input,
.contact-us textarea {
    border: none;
    border-left: #508C9B 5px solid;
}

.contact-btn {
    background-color: #134B70;
    border-radius: 25px;
}

.contact-btn:hover {
    background-color: #508C9B;
    color: #000;
}

.form-control::placeholder {
    color: #508C9B;
}

    form.CUS input.subject { display: none; }

/* info */
.info {
    background-color: #134B70;
}

.info p {
    margin: 10px 0;
}

.info-btn {
    background-color: #134B70;
    color: #fff;
    font-size: 12px;
    width: 105px;
    margin: 5px 5px;
    padding: 10px;
}

.info-btn:hover {
    background-color: #508C9B;
}

.info-element {
    border-right: 3px solid #fff;
}

.zip-btn {
    font-size: 14px;
    width: 50px;
}

.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    left: 20%;
    bottom: 10px;
    z-index: 996;
    background: #111e2b;
    font-size: 30px;
    text-align: center;
    width: 70px;
    height: 50px;
    border-radius: 4px;
    color: #fff;
    transition: all 0.4s;
}

.back-to-top:hover {
    background: #111e2b;
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

.datepicker-dropdown {
    padding: 20px !important;
}

@media (max-width:1400px) {
    .navbar-collapse ul>li {
        width: 110px;
    }

    .navbar-collapse ul>li>a {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero p {
        font-size: 15px;
    }

    .button-hover .btn {
        font-size: 14px;
    }

    .res h2 {
        font-size: 25px;
    }

    .res article {
        font-size: 14px;
    }

    .client-comment h3 {
        font-size: 15px;
    }

    .auto h2 {
        font-size: 25px;
    }

    .auto article {
        font-size: 14px;
    }

    .comm h2 {
        font-size: 25px;
    }

    .comm article {
        font-size: 14px;
    }

    .emer-cont h2 {
        font-size: 25px;
    }

    .emer-cont article {
        font-size: 14px;
    }

    .info-btn {
        width: 90px;
        font-size: 10px;
    }

    .info p {
        font-size: 15px;
    }

    .info .line-1 {
        width: 250px;
    }
}

@media (max-width:1200px) {
    .navbar-collapse ul>li {
        width: 90px;
    }

    .navbar-collapse ul>li>a {
        font-size: 9px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 12px;
    }

    .res h2 {
        font-size: 28px;
    }

    .res article {
        font-size: 10px;
    }

    .client-comment h3 {
        font-size: 12px;
    }

    .auto h2 {
        font-size: 20px;
    }

    .auto article {
        font-size: 12px;
    }

    .comm h2 {
        font-size: 20px;
    }

    .comm article {
        font-size: 12px;
    }

    .emer-cont h2 {
        font-size: 20px;
    }

    .emer-cont article {
        font-size: 10px;
    }

    .info-btn {
        width: 75px;
        font-size: 7px;
    }

    .info p {
        font-size: 12px;
    }

    .info h3 {
        font-size: 20px;
    }

    .info .line-1 {
        width: 250px;
    }

}

@media (max-width:992px) {
    .navbar-collapse ul>li {
        width: 120px;
    }

    .navbar-collapse ul>li>a {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 20px;
        margin-top: 20px;
    }

    .res-cont article {
        font-size: 12px;
    }

    .emer-cont article {
        font-size: 15px;
    }

    .comm article {
        font-size: 15px;
    }

    .navbar-brand {
        width: 50%;
    }

    .info-element {
        border-right: none;
    }

    .res .line-1 {
        width: 200px;
    }
}