/********** Template CSS **********/
:root {
    --primary: #5B8C51;
    --secondary: #EDDD5E;
    --light: #F7F7F7;
    --dark: #404A3D;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.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: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.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;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@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;
    }

    /* Remove carousel caption overlay on mobile for vivid images */
    .carousel-caption {
        background: transparent;
    }
}

.page-header {
    background: url(../img/banner.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 5px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 6px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-experience {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -45px;
    bottom: -45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== SERVICES SECTION WITH HERO-STYLE BACKGROUND ===== */
.services-banner {
    position: relative;
    background: url('../images/service-bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
    margin: 0;
    padding: 0;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

/* Content wrapper */
.services-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0;
}

/* Style for section title on dark background */
.services-content .section-title {
    background: rgba(179, 46, 46, 0.9) !important;
    color: #2c5530 !important;
    padding: 8px 20px !important;
    border-radius: 30px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .services-content {
        padding: 30px 0;
    }
}

@media (max-width: 768px) {
    .services-banner {
        background-attachment: scroll;
        /* Ensure background is vivid without any darkening */
        filter: brightness(1);
    }

    /* REMOVE ALL OVERLAYS FOR MOBILE - Clear, sharp, vivid */
    .services-overlay {
        display: none;
        /* Completely removes the overlay element */
    }

    /* Remove any potential background overlays from parent elements */
    .services-banner::before,
    .services-banner::after {
        display: none !important;
    }

    .services-content {
        padding: 20px 0;
    }

    .services-content h1 {
        font-size: 32px;
        /* Ensure text remains readable against vivid background */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 576px) {
    .services-content {
        padding: 15px 0;
    }

    .services-content h1 {
        font-size: 28px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
    .services-banner {
        background-position: center top;
        filter: brightness(1);
    }

    .services-content {
        padding: 10px 0;
    }

    .services-content h1 {
        font-size: 24px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}


/*** Product ***/
.product-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.product-item .product-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    padding-top: 60px;
    transition: .5s;
}

.product-item:hover .product-overlay {
    opacity: 1;
    padding-top: 0;
}

/* Remove product overlay on mobile for vivid product images */
@media (max-width: 768px) {
    .product-item .product-overlay {
        display: none;
        /* Completely remove overlay on mobile */
    }

    /* Ensure product images are sharp and clear */
    .product-item img {
        filter: brightness(1);
        image-rendering: crisp-edges;
    }
}


/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .btn {
    border-color: transparent;
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

/* Remove any team item overlays on mobile */
@media (max-width: 768px) {
    .team-item {
        box-shadow: none;
    }

    .team-item img {
        filter: brightness(1);
    }
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
}

.testimonial-img::after {
    position: absolute;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 200px;
    color: #EEEEEE;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.testimonial-img img {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-img img:nth-child(1) {
    top: 0;
    left: 0;
}

.testimonial-img img:nth-child(2) {
    top: 60%;
    left: 20%;
}

.testimonial-img img:nth-child(3) {
    top: 20%;
    left: 60%;
}

.testimonial-img img:nth-child(4) {
    bottom: 0;
    right: 0;
}

.testimonial-img img .animated.pulse {
    animation-duration: 2s;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border-radius: 45px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
    color: var(--dark);
}

/* Remove testimonial overlay elements on mobile */
@media (max-width: 768px) {
    .testimonial-img::after {
        opacity: 0.3;
        /* Make the quote symbol more subtle */
        font-size: 150px;
    }

    .testimonial-img img {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    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;
}

/* ===== GLOBAL MOBILE OPTIMIZATIONS FOR VIVID, SHARP DISPLAY ===== */
@media (max-width: 768px) {

    /* Remove all background overlays */
    .carousel-caption {
        background: transparent !important;
    }

    /* Ensure all images are sharp and vivid */
    img {
        image-rendering: crisp-edges;
        image-rendering: -webkit-optimize-contrast;
    }

    /* Remove any dark overlays from sections */
    section::before,
    section::after,
    div[class*="overlay"] {
        display: none !important;
    }

    /* Ensure backgrounds are bright and clear */
    [class*="banner"],
    [class*="hero"],
    [class*="background"] {
        filter: brightness(1) !important;
    }

    /* Optimize text readability on vivid backgrounds */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }
}

/* Extra small devices - maximum vividness */
@media (max-width: 480px) {

    /* Remove any remaining opacity effects */
    .opacity-* {
        opacity: 1 !important;
    }

    /* Ensure all content is crisp */
    * {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}