/*===========================================*/
/* HOMEPAGE TREE SERVICES */
/* RELATED SERVICES STYLE */
/*===========================================*/


/*-------------------------------------------*/
/* SECTION */
/*-------------------------------------------*/

.home-tree-services-section {
    position: relative;
    overflow: hidden;

    background: var(--color-black);
}


.home-tree-services-section .es-section-inner {
    position: relative;
    z-index: 2;
}


/*-------------------------------------------*/
/* BACKGROUND DECORATION */
/*-------------------------------------------*/

.home-tree-services-section::before {
    content: "";

    position: absolute;

    top: -220px;
    right: -180px;

    width: 470px;
    height: 470px;

    border: 72px solid var(--color-dark-green);
    border-radius: 50%;

    opacity: 0.4;

    pointer-events: none;
}


.home-tree-services-section::after {
    content: "";

    position: absolute;

    left: -160px;
    bottom: -200px;

    width: 380px;
    height: 380px;

    border: 58px solid var(--color-green);
    border-radius: 50%;

    opacity: 0.1;

    pointer-events: none;
}


/*===========================================*/
/* SECTION HEADING */
/*===========================================*/

.home-tree-services-heading {
    width: 100%;
    max-width: 950px;

    margin-bottom: 45px;
}


.home-tree-services-heading h2 {
    margin: 0 0 18px;

    color: var(--color-white);
}


.home-tree-services-heading h2 span {
    color: var(--color-lime);
}


.home-tree-services-heading > p {
    max-width: 850px;

    margin: 0;

    color: rgba(255, 255, 255, 0.7);

    line-height: 1.75;
}


/*===========================================*/
/* SERVICES GRID */
/*===========================================*/

.home-tree-services-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/*===========================================*/
/* SERVICE CARD */
/*===========================================*/

.home-tree-service-card {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(200px, 0.82fr)
        minmax(0, 1.18fr);

    min-width: 0;
    min-height: 330px;

    background: var(--color-dark-green);

    border: 1px solid rgba(149, 193, 31, 0.16);

    border-radius: 28px 7px 28px 7px;

    overflow: hidden;
}


/*===========================================*/
/* IMAGE AREA */
/*===========================================*/

.home-tree-service-image-wrap {
    position: relative;

    display: block;

    min-width: 0;
    min-height: 330px;

    overflow: hidden;
}


.home-tree-service-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}


/*-------------------------------------------*/
/* IMAGE DARK OVERLAY */
/*-------------------------------------------*/

.home-tree-service-image-wrap::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(26, 26, 26, 0) 52%,
            rgba(26, 26, 26, 0.3) 100%
        );

    pointer-events: none;
}


/*-------------------------------------------*/
/* IMAGE LIME ACCENT */
/*-------------------------------------------*/

.home-tree-service-image-accent {
    position: absolute;

    top: 0;
    right: 0;

    z-index: 2;

    width: 7px;
    height: 35%;

    background: var(--color-lime);

    pointer-events: none;
}


/*===========================================*/
/* CARD CONTENT */
/*===========================================*/

.home-tree-service-content {
    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    min-width: 0;

    padding:
        34px
        30px
        27px;

    background: var(--color-dark-green);

    overflow: hidden;
}


/*-------------------------------------------*/
/* TOP LIME ACCENT */
/*-------------------------------------------*/

.home-tree-service-content::before {
    content: "";

    position: absolute;

    top: 0;
    left: 30px;

    width: 72px;
    height: 5px;

    background: var(--color-lime);

    border-radius: 0 0 5px 5px;

    pointer-events: none;
}


/*-------------------------------------------*/
/* DECORATIVE CIRCLE */
/*-------------------------------------------*/

.home-tree-service-content::after {
    content: "";

    position: absolute;

    right: -95px;
    bottom: -115px;

    width: 230px;
    height: 230px;

    border: 37px solid var(--color-green);
    border-radius: 50%;

    opacity: 0.3;

    pointer-events: none;
}


/*===========================================*/
/* CONTENT INNER */
/*===========================================*/

.home-tree-service-content-inner {
    position: relative;
    z-index: 2;
}


/*===========================================*/
/* SERVICE TITLE */
/*===========================================*/

.home-tree-service-content h3 {
    margin:
        6px
        0
        14px;

    color: var(--color-lime);

    font-family: var(--font-heading);

    font-size: clamp(22px, 2vw, 29px);
    font-weight: var(--weight-black);

    line-height: 1.15;
}


/*===========================================*/
/* SERVICE DESCRIPTION */
/*===========================================*/

.home-tree-service-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;

    line-height: 1.7;
}


/*===========================================*/
/* LEARN MORE LINK */
/*===========================================*/

.home-tree-service-link {
    position: relative;
    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    width: fit-content;

    margin-top: 26px;

    color: var(--color-white);

    font-family: var(--font-heading);

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    transition: color 0.25s ease;
}


/*-------------------------------------------*/
/* LINK ICON */
/*-------------------------------------------*/

.home-tree-service-link-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    background: var(--color-lime);

    color: var(--color-dark-green);

    border-radius: 10px 3px 10px 3px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.home-tree-service-link-icon svg {
    display: block;

    width: 16px;
    height: 16px;
}


/*===========================================*/
/* CARD HOVER */
/*===========================================*/

@media (hover: hover) and (pointer: fine) {

    .home-tree-service-card:hover
    .home-tree-service-image {
        transform: scale(1.04);
    }


    .home-tree-service-link:hover {
        color: var(--color-lime);
    }


    .home-tree-service-link:hover
    .home-tree-service-link-icon {
        background: var(--color-white);

        color: var(--color-dark-green);

        transform: translateX(3px);
    }

}


/*===========================================*/
/* RESPONSIVE - 1200PX */
/*===========================================*/

@media (max-width: 1200px) {

    .home-tree-service-card {
        grid-template-columns:
            minmax(180px, 0.78fr)
            minmax(0, 1.22fr);

        min-height: 320px;
    }


    .home-tree-service-image-wrap {
        min-height: 320px;
    }


    .home-tree-service-content {
        padding:
            31px
            26px
            25px;
    }


    .home-tree-service-content::before {
        left: 26px;
    }

}


/*===========================================*/
/* RESPONSIVE - 1080PX */
/*===========================================*/

@media (max-width: 1080px) {

    .home-tree-services-grid {
        gap: 20px;
    }


    .home-tree-service-card {
        grid-template-columns: 1fr;

        min-height: 0;
    }


    .home-tree-service-image-wrap {
        min-height: 230px;

        aspect-ratio: 16 / 9;
    }


    .home-tree-service-image-accent {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;

        width: 32%;
        height: 6px;
    }


    .home-tree-service-content {
        min-height: 270px;
    }

}


/*===========================================*/
/* RESPONSIVE - 900PX */
/*===========================================*/

@media (max-width: 900px) {

    .home-tree-services-heading {
        max-width: 800px;

        margin-bottom: 38px;
    }


    .home-tree-service-image-wrap {
        min-height: 215px;
    }

}


/*===========================================*/
/* RESPONSIVE - 768PX */
/*===========================================*/

@media (max-width: 768px) {

    .home-tree-services-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .home-tree-service-card {
        border-radius: 23px 6px 23px 6px;
    }


    .home-tree-service-image-wrap {
        min-height: 250px;
    }


    .home-tree-service-content {
        min-height: 0;

        padding:
            29px
            25px
            24px;
    }


    .home-tree-service-content::before {
        left: 25px;

        width: 65px;
    }


    .home-tree-service-content h3 {
        font-size: 25px;
    }

}


/*===========================================*/
/* RESPONSIVE - 480PX */
/*===========================================*/

@media (max-width: 480px) {

    .home-tree-services-heading {
        margin-bottom: 30px;
    }


    .home-tree-services-grid {
        gap: 15px;
    }


    .home-tree-service-card {
        border-radius: 18px 5px 18px 5px;
    }


    .home-tree-service-image-wrap {
        min-height: 205px;
    }


    .home-tree-service-image-accent {
        width: 38%;
        height: 5px;
    }


    .home-tree-service-content {
        padding:
            26px
            20px
            21px;
    }


    .home-tree-service-content::before {
        left: 20px;

        width: 55px;
        height: 4px;
    }


    .home-tree-service-content h3 {
        margin-top: 5px;

        font-size: 23px;
    }


    .home-tree-service-content p {
        font-size: 14px;

        line-height: 1.65;
    }


    .home-tree-service-link {
        margin-top: 21px;
    }


    .home-tree-service-link-icon {
        width: 33px;
        height: 33px;

        flex-basis: 33px;
    }

}


/*===========================================*/
/* REDUCED MOTION */
/*===========================================*/

@media (prefers-reduced-motion: reduce) {

    .home-tree-service-image,
    .home-tree-service-link,
    .home-tree-service-link-icon {
        transition: none;
    }

}