/**
 * Services Hover Interaction Styles
 * Modern CSS for the service boxes hover interaction
 */

/* Service Container - Remove WPBakery background */
.service {
    background: transparent !important;
    position: relative;
}

/* Create the actual service box */
.service .vc_column-inner {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #928F42 !important;
    background:
        radial-gradient(ellipse 79% 100% at center center,
            #928F42 0%,
            #545326 60%,
            #545326 100%) !important;
    box-shadow: 14px 17px 23px 0px rgba(0, 0, 0, 0.25);
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Maintain aspect ratio using a wrapper approach */
.service .vc_column-inner {
    aspect-ratio: 1 / 1;
}

/* Position content absolutely within the square */
.service .vc_column-inner .wpb_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    align-content: flex-start;
    z-index: 2;
}

/* Service Icon Styling */
.service .service-icon {
    position: relative;
    z-index: 2;
    transition: none;
    /* GSAP will handle transitions */
    display: block;
    will-change: transform, width, height;
    width: 100%;
}

.service .service-icon img {
    display: block;
    width: 100%;
    height: auto;
    transition: none;
    /* GSAP will handle transitions */
    will-change: transform;
}

/* Remove hover-wrap margin added in Salient v18 that offsets icon centering */
.service .hover-wrap {
    margin-bottom: 0 !important;
}

/* Service Info Text Styling - absolute so it doesn't push icon off-center */
.service .service-info {
    opacity: 0;
    position: absolute;
    bottom: max(20px, 2vw);
    left: 0;
    right: 0;
}

.service .service-info h4 {
    padding-left: max(20px, 3vw);
    max-width: 95%;
}

.service .service-info p {
    padding-left: max(24px, 3vw);
    max-width: 95%;
}

/* Hover state background color */
.service.is-hovered .vc_column-inner {
    background: #928F42 !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .service .service-info h4 {
        font-size: 1.3rem !important;
        line-height: 28px !important;
        margin-top: -30px
    }

    .service .service-info p {
        font-size: 1rem !important;
        line-height: 22px !important;
    }
}

@media (max-width: 820px) {
    .service .service-info h4 {
        font-size: 2rem !important;
        line-height: 34px !important;
    }

    .service .service-info p {
        font-size: 1.5rem !important;
        line-height: 34px !important;
    }
}

@media (max-width: 480px) {
    .service .service-info {
        padding: 0 !important;
    }

    .service .service-info h4 {
        font-size: 1.1rem !important;
        line-height: 26px !important;
        margin-top: -50px
    }

    .service .service-info p {
        font-size: 0.85rem !important;
        line-height: 22px !important;
    }
}

/* Performance optimizations */
.service,
.service .service-icon,
.service .service-icon img,
.service .service-info {
    transform: translateZ(0);
    /* Force hardware acceleration */
}