@import url(../css/global.css);

.aluguel-venda{
    background-color: #344151;
    height: 100%;
    padding-bottom: 5rem;
}

.navegacao{
    padding: 1rem 2rem 1rem 2rem;
}

/* EQUIPAMENTOS */
.equipamentos{
    display: flex;
    text-align: left;
    background: var(--background-segmentos);
    justify-content:  center;
}

.cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin: 0 2rem;
}

.card{
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #111827;
    border-radius: 20px;
    border: 1px solid #f5f5f5;
    box-shadow: var(--box-shadow);
    flex-direction: column;
    width: 100%;
}

.card-imagem {
    display: flex;
    justify-content: center;
}

.card-imagem .slides:hover{
    border: 1px solid oklch(63.94% 0.151 219.57);
}

.card-imagem .slides{
    width: 100%;
    height: 300px;
    /* max-height: 350px; */
    border-bottom: 1px solid;
    border-top: 1px solid;
    padding: 1rem;
}

.card h2{
    text-align: center;
    padding: 1rem 0;
    font-size: 2rem;
}

.card ul{
    text-align: left;
    padding: 1rem 6rem;
    height: 500px;
    /* height: 320px; CONTROLA A ALTURA DOS BOTÕES*/ 
    border-bottom: 1px solid;
}

.card ul li{
    padding: 0.2rem;
    list-style-type: square;
    font-size: 1.4rem;
}

.card .card-content{
    align-content: center;
}

.card .button{
    display: flex;
    margin: 1rem;
    text-align: center;
    gap: 12px;
    justify-content: center;
}

.btn-comprar, .btn-alugar{
    background-color: #f5f5f5;
    display: inline-block;
    border: 1px solid black;
    padding: 0.75rem;
    min-width: 120px;
    justify-content: center;
    border-radius: 10px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
}

.btn-alugar:hover, .btn-comprar:hover{
    background-color: oklch(63.859% 0.1168 224.164);;
    border-color: black;
    border: 1px solid transparent;
    color: white;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* BANNER FINAL */
.banner-ctc{
    background: linear-gradient(to right, oklch(63.94% 0.151 219.57), oklch(38.16% 0.115 259.97));
    padding: 4rem;
    text-align: center;
}

.banner-ctc h2{
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.banner-ctc p{
    font-size: large;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.banner-ctc a{
    background: white;
    color: #0e0e10;
    font-weight: bold;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2rem;
}

.banner-ctc a:hover{
    background: oklch(63.94% 0.151 219.57);
    color: #f5f5f5;
    /* background-color: rgb(191, 195, 195); */
    transition: all 0.2s ease-in-out;
}

/* CARROSSEL */

/* --- Carrossel --- */
.slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* margin: 50px auto; */
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 400px;
}

.slide {
    min-width: 100%;
    cursor: pointer;
    display: none;
}

.slide.active {
    display: block;
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(31, 41, 55, 0.7);
    border: none;
    color: #f5f5f5;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 5px;
}

.btn:hover {
    background-color: oklch(63.94% 0.151 219.57);
}

.prev {
    left: 0.4rem;
}

.next { 
    right: 0rem; 
}

/* --- Modal --- */
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    /* max-width: 700px; */
    height: 80vh;
    /* max-height: 500px; */
    background-color: #111827;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 1rem;
    justify-content: center;
    align-items: center;
}

.modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #f5f5f5;
    cursor: pointer;
}

.prev-modal, .next-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(31,41,55,0.7);
    border: none;
    color: #f5f5f5;
    font-size: 2rem;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    border-radius: 5px;
}

.prev-modal { left: 5px; }
.next-modal { right: 5px; }

/* FUNDO DESFOCADO DO MODAL */
.modal-overlay {
    display: none; /* escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* escurece um pouco */
    backdrop-filter: blur(8px); /* desfoca */
    z-index: 999; /* abaixo do modal (1000) */
}

@media (max-width: 1580px) {

    .aluguel-venda{
        padding-bottom: 3rem;
    }
    
    .cards{
        grid-template-columns: repeat(2, 1fr);
    }

    .card{
        justify-content: center;
        width: 100%;
    }

    .card h2{
        height: 100px;
    }

    .card ul{
        padding: 1rem 2rem;
        height: 500px;
    }

    .card ul li{
        font-size: 1.3rem;
        width: fit-content;
    }
    
}


@media (max-width: 1024px) {

    .aluguel-venda{
        padding-bottom: 3rem;
    }
    
    .cards{
        grid-template-columns: repeat(2, 1fr);
    }

    .card{
        justify-content: center;
        width: 100%;
    }

    .card h2{
        height: 100px;
    }

    .card ul{
        padding: 1rem 2rem;
        height: 500px;
    }

    .card ul li{
        font-size: 1.3rem;
        width: fit-content;
    }
    
}

@media (max-width: 600px) {
    .cards{
        grid-template-columns: repeat(1, 1fr);
        display: grid;
    }

    .card{
        justify-content: center;
        margin: 0 auto;
    }

    .card ul{
        padding: 1rem 2rem;
        height: fit-content;
    }

    .card ul li{
        font-size: 1.2rem;
        width: 100%;
    }
}

