/* ==========================================================================
   ACP-SG
   Associação Cidade Praia Salto Grande

   COMPONENTE: VÍDEOS
   ========================================================================== */


/* ==========================================================================
   SEÇÃO
   ========================================================================== */

.videos-componente {

    width: 100%;

    padding: 90px 0;

    background: var(--cor-fundo-claro);

    color: var(--cor-texto);
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.videos-componente__container {

    width: min(1240px, calc(100% - 80px));

    margin-inline: auto;
}


/* ==========================================================================
   BOX PRINCIPAL
   ========================================================================== */

.videos-componente__box {

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, .85fr);

    align-items: stretch;

    min-height: 420px;

    overflow: hidden;

    background: var(--cor-branco);

    border-radius: var(--raio-medio);

    box-shadow:
        0 18px 45px rgba(35, 61, 52, .08);
}


/* ==========================================================================
   IMAGEM
   ========================================================================== */

.videos-componente__image {

    position: relative;

    min-height: 420px;

    overflow: hidden;

    background: #dfe8e3;
}


.videos-componente__image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .6s ease;
}


/* ==========================================================================
   BOTÃO PLAY
   ========================================================================== */

.videos-componente__play {

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 2;

    display: grid;

    place-items: center;

    width: 76px;
    height: 76px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .94);

    color: var(--cor-agua-escura);

    font-size: 1.15rem;

    text-decoration: none;

    box-shadow:
        0 10px 30px rgba(20, 40, 34, .20);

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}


.videos-componente__play i {

    margin-left: 3px;
}


/* ==========================================================================
   EFEITO SOBRE A IMAGEM
   ========================================================================== */

.videos-componente__image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(20, 55, 45, .08),
            rgba(20, 55, 45, .30)
        );

    pointer-events: none;

    transition:
        opacity .35s ease;
}


/* ==========================================================================
   HOVER
   ========================================================================== */

.videos-componente__image:hover img {

    transform: scale(1.045);
}


.videos-componente__image:hover::after {

    opacity: .75;
}


.videos-componente__play:hover {

    transform:
        translate(-50%, -50%)
        scale(1.08);

    background: #ffffff;

    box-shadow:
        0 14px 36px rgba(20, 40, 34, .25);
}


/* ==========================================================================
   CONTEÚDO
   ========================================================================== */

.videos-componente__content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 60px 58px;

    background: var(--cor-branco);
}


/* ==========================================================================
   LABEL
   ========================================================================== */

.videos-componente__label {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    margin-bottom: 18px;

    color: var(--cor-agua-escura);

    font-size: .70rem;

    font-weight: 800;

    letter-spacing: .19em;

    line-height: 1.4;

    text-transform: uppercase;
}


.videos-componente__label::before {

    content: "";

    width: 26px;

    height: 2px;

    background: var(--cor-agua);
}


/* ==========================================================================
   TÍTULO
   ========================================================================== */

.videos-componente__title {

    max-width: 480px;

    margin: 0 0 20px;

    color: var(--cor-primaria);

    font-size: clamp(2rem, 3.4vw, 3.2rem);

    font-weight: 800;

    letter-spacing: -.04em;

    line-height: 1.08;
}


/* ==========================================================================
   DESCRIÇÃO
   ========================================================================== */

.videos-componente__description {

    max-width: 500px;

    margin: 0;

    color: var(--cor-texto-suave);

    font-size: 1rem;

    line-height: 1.75;
}


/* ==========================================================================
   LINK
   ========================================================================== */

.videos-componente__link {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    margin-top: 30px;

    color: var(--cor-agua-escura);

    font-size: .95rem;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .25s ease,
        gap .25s ease;
}


.videos-componente__link i {

    font-size: .82rem;

    transition:
        transform .25s ease;
}


.videos-componente__link:hover {

    gap: 14px;

    color: var(--cor-primaria);
}


.videos-componente__link:hover i {

    transform: translateX(3px);
}


/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

.videos-componente__play:focus-visible,
.videos-componente__link:focus-visible {

    outline:
        3px solid rgba(66, 201, 193, .45);

    outline-offset: 4px;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .videos-componente {

        padding: 70px 0;
    }


    .videos-componente__container {

        width: min(100% - 48px, 760px);
    }


    .videos-componente__box {

        grid-template-columns: 1fr;

        min-height: auto;
    }


    .videos-componente__image {

        min-height: 380px;

        aspect-ratio: 16 / 9;
    }


    .videos-componente__content {

        padding: 48px;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .videos-componente {

        padding: 55px 0;
    }


    .videos-componente__container {

        width: calc(100% - 32px);
    }


    .videos-componente__image {

        min-height: 240px;

        aspect-ratio: 16 / 10;
    }


    .videos-componente__play {

        width: 64px;

        height: 64px;

        font-size: 1rem;
    }


    .videos-componente__content {

        padding: 38px 28px 42px;
    }


    .videos-componente__label {

        margin-bottom: 14px;

        font-size: .65rem;
    }


    .videos-componente__label::before {

        width: 22px;
    }


    .videos-componente__title {

        margin-bottom: 16px;

        font-size: 2.15rem;

        line-height: 1.06;
    }


    .videos-componente__description {

        font-size: .94rem;

        line-height: 1.65;
    }


    .videos-componente__link {

        margin-top: 25px;
    }

}


/* ==========================================================================
   MOBILE PEQUENO
   ========================================================================== */

@media (max-width: 380px) {

    .videos-componente__content {

        padding-inline: 22px;
    }


    .videos-componente__title {

        font-size: 1.95rem;
    }

}


/* ==========================================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .videos-componente *,
    .videos-componente *::before,
    .videos-componente *::after {

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;
    }

}