/*! -----------------------------------------------------------------------------------

Main Stylesheet v1.0.0
Quick Control Fire Safety & Services

Developed By Popway Innovation

-----------------------------------------------------------------------------------
 */
:root {
    --primary: #b90005;
    --secondary: #8D9297;
    --light: #F8F9FA;
    --dark: #182333;
}

body {
    overflow-x: hidden;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.bc-txt {
    color: #b90005;
}

.sc-txt {
    color: #182333;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.bg-primary {
    background-color: #b90005 !important;
}

.border-primary {
    border-color: #b90005 !important;
}

img {
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.spinner-grow::after {
    content: '';
    position: absolute;
    top: calc(50% - 2.5rem);
    left: calc(50% - 2.5rem);
    width: 5rem;
    height: 5rem;
    vertical-align: -0.125em;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0.1;
    animation: .75s linear infinite spinner-grow;
    animation-delay: 0.5s;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
    padding: 15px 40px;
    font-size: 18px;
}

.btn-primary {
    background-color: #b90005;
    border-color: #b90005;
}

.btn-primary:hover,
.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-primary:active {
    background-color: #182333;
    border-color: #b90005;
    color: #fff;
    box-shadow: none;
}

.btn-primary.alt-hover:hover {
    background-color: #fff;
    border-color: #b90005;
    color: #182333;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.owl-carousel:hover .owl-nav .owl-prev,
.owl-carousel:hover .owl-nav .owl-next {
    opacity: 1;
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #182333;
    border: 2px solid #b90005;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
    top: 45%;
    position: absolute;
    transform: translateY(-50%);
    opacity: 0;
}

.owl-nav .owl-prev {
    left: -20px;
}

.owl-nav .owl-next {
    right: -20px;
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: #b90005;
}

.owl-carousel .owl-dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.owl-carousel .owl-dots .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid #adadad;
    transition: all ease-in-out .4s;
    border-radius: 50%;
    margin-right: 10px;
}

.owl-carousel .owl-dots .owl-dot.active span {
    background-color: #b90005;
    border-color: #b90005;
    transform: scale(1.1);
}

.owl-carousel .owl-dots .owl-dot:hover span {
    background: #fff;
}


/*** Navbar ***/
.navbar.navbar-light {
    z-index: 999;
    padding: 0;
}

@keyframes stickySlideDown {
    0% {
        opacity: 0.7;
        transform: translateY(-100%);
    }

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

.navbar-light .navbar-brand {
    margin-bottom: -60px;
    background: #fff;
    padding: 15px 12px 15px 25px;
    border-radius: 50%;
}

.navbar-light .navbar-brand .logo {
    max-width: 130px;
}

.navbar.scrolled {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    animation: stickySlideDown 0.5s ease-in-out;
}

.navbar.scrolled .navbar-brand {
    margin-bottom: -40px;
    padding: 5px 12px 15px 20px;
    position: relative;
}

.navbar.scrolled .navbar-brand::before {
    box-shadow: 0 0.3rem 1rem rgb(0 0 0 / 15%);
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    height: 40px;
    z-index: -1;
    border-radius: 50%;
}

.navbar.scrolled .navbar-brand .logo {
    max-width: 85px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 40px;
    padding: 35px 0;
    color: #8D9297;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar.scrolled .navbar-nav .nav-link {
    padding: 25px 0;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #b90005;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .nav-item .dropdown-menu .dropdown-item {
    font-size: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.navbar .nav-item .dropdown-menu .dropdown-item + .dropdown-item {
    border-top: 1px solid #ccc;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #b90005;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 25px;
        /*        border-top: 1px solid #EEEEEE;*/
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        border-top: 2px solid #b90005;
        padding: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
#header-carousel .carousel-inner .carousel-item {
    height: 600px;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    background: rgba(0, 0, 0, .55);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
    height: auto;
    top: 45%;
    bottom: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: #182333;
    border: 15px solid #182333;
    border-radius: 50px;
}

.carousel-caption .breadcrumb-item + .breadcrumb-item::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #b90005;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 3rem;
        height: 3rem;
        border-width: 12px;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url(../img/resources/page-header-2.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
.facts-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
}

.facts-overlay h1 {
    font-size: 60px;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.facts-overlay a:hover {
    color: #b90005 !important;
}

.img-tag {
    width: 180px;
    height: 180px;
}


/*** Service ***/
.service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #b90005;
    opacity: 0;
    transition: .5s;
}

.service-item:hover .service-text::before {
    height: 100%;
    opacity: 1;
}

.service-text * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-text * {
    color: #FFFFFF !important;
}


/*** Appointment ***/
.appointment {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/resources/enquiry-bg.jpg) center center no-repeat;
    background-size: cover;
}

textarea#message {
    height: 80px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgb(185 0 5 / 30%);
}

.contact-card.card {
    min-height: 215px;
}

/***********Form Submit Elements**********/
.error-handling-messages .success-msg,
.error-handling-messages .error-msg {
    padding: 4px 15px;
    border: 2px solid;
    color: #222;
    display: none;
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

.error-handling-messages .success-msg {
        background: rgb(106 189 79 / 9%);
    border-color: #6abd4f;
    color: #6abd4f;
}

.error-handling-messages .error-msg {
    background: rgb(254 1 1 / 9%);
    border-color: #fe0101;
    color: #fe0101;
}

label.error.wobble-error {
    display: block;
    width: 100%;
    margin-bottom: 0;
    color: #fe0101;
    position: relative;
    padding: 0;
    font-size: 13px;
    transform: none !important;
    opacity: 1 !important;
}

.form-loader {
    display: none;
    padding: 10px 15px;
    font-size: 18px;
    color: #182333;
}

.form-loader.on-btn-loader {
    color: #fff;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes refresh {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-loader i {
    animation: refresh 1s linear infinite;
    display: inline-block;
}


/*** Team ***/
.team-text {
    position: absolute;
    width: 75%;
    bottom: 30px;
    left: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    width: 100%;
}

.team-text * {
    transition: .5s;
}

.team-item:hover .team-text * {
    letter-spacing: 2px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #ededed;
}

.testimonial-carousel .owl-nav {
    position: relative;
    margin-top: 25px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    opacity: 1;
    left: initial;
    right: initial;
    top: initial;
    transform: none;
}

.testimonial-carousel .owl-nav .owl-prev {
    margin-right: 15px;
}

.certificate-item,
.product-item {
    border: 4px solid #e1e1e1;
}

.certificate-item:hover .img-popup-layer,
.product-item:hover .img-popup-layer {
    opacity: 1;
}

.img-popup-layer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgb(0 0 0 / 55%);
    transition: all ease-in-out 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.img-popup-layer .popup-img {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
}

.img-popup-layer .popup-img:hover {
    background: #fff;
    color: #222;
}

.product-item {
    padding-bottom: 5px;
}

.product-item h6 {
    line-height: 1.5;
    min-height: 48px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.portfolio-inner {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.grid-box {
    padding: 12px;
    width: 20%;
}

.grid-box img {
    width: 100%;
    height: auto;
    transition: all ease-in-out 0.4s;
}

.grid-box > a {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #e5e5e5;
    padding: 10px;
    transition: all ease-in-out 0.4s;
}

.grid-box > a:hover {
    transform: scale(1.1);
    border: 2px solid #222;
}

.grid-box > a:hover .project-info {
    top: 15px;
    opacity: 1;
    transform: scale(1);
}

.filters {
    width: 100%;
    text-align: center;
}

.filters ul {
    list-style: none;
    padding: 20px 0;
}

.filters li {
    display: inline-block;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .05em;
}

.filters li:hover {
    color: #a6a6a6;
}

.filters li.active {
    color: #fff;
    background: #b90005;
}

.solution-item {
    text-align: center;
    padding: 3px;
    border: 1px solid #d7d7d7;
}

.solution-item h5 {
    margin-top: 10px;
    margin-bottom: 6px;
}

.whatsapp-floting {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    z-index: 99999;
}

.whatsapp-floting span {
    transition: all ease-in-out 0.4s;
    transform-origin: left;
    position: absolute;
    top: 50%;
    background: #0dc143;
    font-size: 13px;
    line-height: 1.3;
    left: 49px;
    width: 110px;
    padding: 4px 10px;
    border-radius: 0 30px 30px 0;
    text-align: left;
    transform: translateY(-50%) translateX(-25%)scale(0);
    color: #fff;
    z-index: -1;
}

.whatsapp-floting:hover span {
    transform: translateY(-50%) translateX(0) scale(1);
}

.whatsapp-floting::before,
.whatsapp-floting::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50% 50% 50% 0;
    background: #0dc152;
    -webkit-animation: wave-fx 1.6s linear infinite;
    animation: wave-fx 1.6s linear infinite;
    z-index: -1;
}

.whatsapp-floting::after {
    animation-delay: -.2s;
    -webkit-animation-delay: -.2s;
}

@keyframes wave-fx {
    0% {
        -webkit-transform: translate(-50%, -50%) scale(0, 0);
        transform: translate(-50%, -50%) scale(0, 0);
        opacity: .6
    }

    100% {
        -webkit-transform: translate(-50%, -50%) scale(1, 1);
        transform: translate(-50%, -50%) scale(1, 1);
        opacity: 0
    }
}

@-webkit-keyframes wave-fx {
    0% {
        -webkit-transform: scale(0, 0);
        opacity: .6
    }

    100% {
        -webkit-transform: scale(1, 1);
        opacity: 0
    }
}

/*** Footer ***/
footer {
    color: #999999;
}

footer .widget-area {
    padding-top: 80px;
    padding-bottom: 70px;
}

footer .logo {
    max-width: 180px;
}

.iso-mark {
    width: 225px;
    border: 4px solid #898989;
}

.widget-title {
    position: relative;
    margin-bottom: 30px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #b90005;
}

footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

footer .copyright a {
    color: var(--light);
}

footer .copyright a:hover {
    color: #b90005;
}

@media only screen and (min-width: 300px) and (max-width: 691px) {

    .container,
    .container-fluid,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-left: 20px;
        padding-right: 20px;
    }

    .btn.btn-primary {
        padding: 10px 28px;
        font-size: 17px;
    }

    .section-padding {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    #header-carousel h5 {
        font-size: 18px;
        line-height: 28px;
    }

    #header-carousel .display-4 {
        font-size: 30px;
    }

    .navbar-light .navbar-brand .logo {
        max-width: 120px;
    }

    .navbar.scrolled .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .img-tag {
        width: 145px;
        height: 125px;
    }

    .img-tag h1,
    .img-tag h2,
    .img-tag h5 {
        font-size: 18px;
    }

    .testimonial-carousel .owl-nav {
        margin-top: 15px;
    }

    footer .logo {
        max-width: 150px;
    }

    .btn.back-to-top {
        padding: 10px;
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 20px;
    }

    .whatsapp-floting {
        transform: scale(0.85);
        transform-origin: bottom left;
    }

    .grid-box {
        width: 50%;
    }
}

@media only screen and (min-width: 692px) and (max-width: 991px) {
    .grid-box {
        width: 25%;
    }
}
