/*
 * ==========================================================================
 * APOIADORES DA ACP-SG E DO MEIO AMBIENTE
 * ==========================================================================
 * Componente reutilizável.
 *
 * Todas as classes deste arquivo pertencem exclusivamente ao componente
 * de apoiadores, evitando conflitos com CSS de outras páginas.
 * ==========================================================================
 */


/* ==========================================================================
   SEÇÃO
   ========================================================================== */

.apoiadores {
    width: 100%;
    padding: 80px 0;
    background: #f7f8f5;
    box-sizing: border-box;
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.apoiadores__container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    box-sizing: border-box;
}


/* ==========================================================================
   CABEÇALHO
   ========================================================================== */

.apoiadores__heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}


.apoiadores__label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3f5f4a;
}


.apoiadores__title {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    color: #26352c;
}


.apoiadores__description {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #667069;
}


/* ==========================================================================
   SLIDER
   ========================================================================== */

.apoiadores__slider {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}


/* ==========================================================================
   ÁREA VISÍVEL
   ========================================================================== */

.apoiadores__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}


/* ==========================================================================
   TRILHO
   ========================================================================== */

.apoiadores__track {
    display: flex;
    width: 100%;
    transition: transform 0.65s ease;
    will-change: transform;
}


/* ==========================================================================
   ITEM
   ========================================================================== */

.apoiadores__item {
    flex: 0 0 25%;
    min-width: 0;
    padding: 10px;
    box-sizing: border-box;
}


/* ==========================================================================
   ÁREA DO LOGOTIPO
   ========================================================================== */

.apoiadores__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid rgba(38, 53, 44, 0.08);
    border-radius: 8px;
    box-sizing: border-box;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.apoiadores__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}


/* ==========================================================================
   HOVER DOS LOGOTIPOS
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {

    .apoiadores__logo:hover {
        transform: translateY(-3px);
        border-color: rgba(63, 95, 74, 0.18);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
    }

}


/* ==========================================================================
   BOTÕES
   ========================================================================== */

.apoiadores__prev,
.apoiadores__next {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(38, 53, 44, 0.12);
    border-radius: 50%;
    background: #ffffff;
    color: #3f5f4a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}


.apoiadores__prev:hover,
.apoiadores__next:hover {
    background: #3f5f4a;
    color: #ffffff;
    border-color: #3f5f4a;
    transform: scale(1.05);
}


.apoiadores__prev:focus-visible,
.apoiadores__next:focus-visible {
    outline: 3px solid rgba(63, 95, 74, 0.25);
    outline-offset: 3px;
}


/* ==========================================================================
   NAVEGAÇÃO / DOTS
   ========================================================================== */

.apoiadores__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}


.apoiadores__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9cec9;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        width 0.25s ease,
        background 0.25s ease;
}


.apoiadores__dot.is-active {
    width: 24px;
    border-radius: 5px;
    background: #3f5f4a;
}


.apoiadores__dot:focus-visible {
    outline: 3px solid rgba(63, 95, 74, 0.25);
    outline-offset: 4px;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .apoiadores {
        padding: 70px 0;
    }


    .apoiadores__container {
        width: min(100% - 32px, 760px);
    }


    .apoiadores__slider {
        gap: 12px;
    }


    .apoiadores__item {
        flex-basis: 33.333333%;
    }


    .apoiadores__logo {
        height: 135px;
        padding: 20px;
    }


    .apoiadores__logo img {
        max-height: 80px;
    }

}


/* ==========================================================================
   CELULAR
   ========================================================================== */

@media (max-width: 600px) {

    .apoiadores {
        padding: 60px 0;
    }


    .apoiadores__container {
        width: calc(100% - 24px);
    }


    .apoiadores__heading {
        margin-bottom: 34px;
    }


    .apoiadores__title {
        font-size: 1.7rem;
    }


    .apoiadores__description {
        font-size: 0.95rem;
        line-height: 1.6;
    }


    .apoiadores__slider {
        gap: 8px;
    }


    .apoiadores__item {
        flex-basis: 50%;
        padding: 6px;
    }


    .apoiadores__logo {
        height: 120px;
        padding: 15px;
        border-radius: 7px;
    }


    .apoiadores__logo img {
        max-height: 70px;
    }


    .apoiadores__prev,
    .apoiadores__next {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }


    .apoiadores__dots {
        margin-top: 22px;
    }

}


/* ==========================================================================
   CELULARES MUITO PEQUENOS
   ========================================================================== */

@media (max-width: 400px) {

    .apoiadores__prev,
    .apoiadores__next {
        display: none;
    }


    .apoiadores__item {
        padding: 5px;
    }

}


/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .apoiadores__track,
    .apoiadores__logo,
    .apoiadores__prev,
    .apoiadores__next,
    .apoiadores__dot {
        transition: none;
    }

}