﻿.acc-wrapper {
    display: flex;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
}

.acc-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex .45s ease, filter .4s ease;
    filter: grayscale(100%);
}

    .acc-item:hover {
        flex: 2.5; /* مثل زکتون، ولی نرم‌تر و بهتر */
        filter: grayscale(0%); /* رنگی می‌شود */
        z-index: 3;
    }

    /* عکس‌ها IMG هستند، نه background-image */
    .acc-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s cubic-bezier(.3,.7,.4,1);
    }

    /* افکت slight zoom هنگام hover */
    .acc-item:hover img {
        transform: scale(1.12);
    }

/* لایه شیشه‌ای تاریک پایین عکس */
.acc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(25px);
    transition: all .45s ease;
    pointer-events: none;
}

.acc-item:hover .acc-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* آیکون */
.acc-icon {
    background: #F58220;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    opacity: 0;
    transform: scale(.65);
    transition: all .45s ease .15s;
}

.acc-item:hover .acc-icon {
    opacity: 1;
    transform: scale(1);
}

/* عنوان */
.acc-overlay h3 {
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    margin: 0 0 6px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all .4s ease .25s;
}

.acc-item:hover .acc-overlay h3 {
    opacity: 1;
    transform: translateY(0);
}

/* توضیحات */
.acc-overlay p {
    color: #e9e9e9;
    font-size: 14px;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all .4s ease .35s;
}

.acc-item:hover .acc-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* نسخه موبایل */
@media (max-width: 700px) {
    .acc-wrapper {
        flex-direction: column;
        height: auto;
    }

    .acc-item {
        flex: unset;
        height: 220px;
    }

        .acc-item:hover {
            flex: unset;
        }
}
