/********** Template CSS **********/
:root {
    --primary: #FF5E14;
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #02245B;
    --bs-success: #198754;
    --bs-danger: #6a1d1c;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}



h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** 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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.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;
}


.topbar-right {
    position: relative;
    background: var(--bs-danger);
    /*var(--primary) */
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--bs-danger);
    /*var(--primary) */
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;

}


.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);

}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 40px 0;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {

    .navbar-collapse {
        background: #fff;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 15px;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #eee;
    }
}


/* @media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
} */

@media (max-width: 991.98px) {

    .navbar {
        padding: 10px 15px !important;
    }

    .navbar-brand img {
        width: 170px !important;
    }

    .navbar-toggler {
        margin-left: auto;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;

    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--bs-success);
    border: 15px solid var(--bs-success);
    border-radius: 3.5rem;
}



/* Facts Box */
.fact-box {
    min-height: 300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Number */
.fact-box .fact-number {
    color: #6a1d1c;
    font-weight: 700;
    min-width: 0;
    /* IMPORTANT */
    font-size: 45px;
    line-height: 1.2;
    display: inline !important;
    white-space: nowrap;
    /* IMPORTANT */
}

/* Percentage number group */
.fact-box h1 {
    white-space: nowrap;
}

/* Text */
.fact-box>span {
    color: #6a1d1c;
}

/* Mobile */
@media (max-width: 576px) {
    .fact-box .fact-number {
        font-size: 32px;
    }
}

/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(2, 36, 91, .7);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Project ***/
.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-success);
    transition: .5s;
}

.project-item:hover .project-title {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--bs-success);
    transition: .5s;
}


/*** Client ***/
.client-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.client-logo img {
    width: 100px;
}

.client-logo small {
    display: block;
}

.client-item a {
    transition: .5s;
}

.client-item a:hover {
    color: var(--primary);
    letter-spacing: 1px;
}


.product-page {
    --brand: #6a1d1c;
    --green: #00923f;
    --light: #f7f8f6;
    --dark: #222;
}

.product-hero {
    background:
        linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .58)),
        url("../img/product-03.jpg");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    min-height: 430px;
    display: flex;
    align-items: center;
    color: #fff;
}

.product-hero h1 {
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.section-title {
    color: var(--brand);
    font-weight: 700;
}

.product-card {
    height: 100%;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .13);
}

.product-card .icon {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 28px;
    margin-bottom: 18px;
}

.project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}


.gallery-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    transition: .3s;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.project-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .08);
    height: 100%;
}

.project-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.project-card .project-body {
    padding: 20px;
}

.capacity-badge {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 13px;
    margin-top: 7px;
}

.stats-section {
    background: var(--brand);
    color: #fff;
}

.stats-number {
    font-size: 2.6rem;
    font-weight: 700;
}

.address-box {
    background: var(--light);
    border-radius: 15px;
    padding: 28px;
    height: 100%;
}

.contact-cta {
    background: linear-gradient(135deg, var(--green), #006d30);
    color: #fff;
    border-radius: 18px;
    padding: 45px 30px;
}

@media (max-width: 767px) {
    .product-hero {
        min-height: 350px;
    }

    .product-card {
        margin-bottom: 5px;
    }

    .gallery-image,
    .project-card img {
        height: 210px;
    }
}


    .happy-client-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .happy-client-card:hover {
        transform: translateY(-6px);
    }

    .happy-client-image {
        height: 250px;
        overflow: hidden;
    }

    .happy-client-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .happy-client-card:hover .happy-client-image img {
        transform: scale(1.06);
    }

    .happy-client-card h5 {
        color: #6a1d1c;
        font-weight: 700;
    }


/*** Footer ***/
.footer {
    color: #B0B9AE;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;

}

.footer p:last-child {
    margin-bottom: 0 !important;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 3px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

@media screen and (max-width: 768px) {
  .hero-head {
     margin-top: 15px;
    font-size: medium;
  }
}
