/* ===== SERVIÇOS - BOTÕES ===== */
.box-select {
    cursor: pointer;
    width: 120px;
    height: 120px;
    box-shadow: 0px 2px 20px #dce4ef;
    border-radius: 10px;
    transition: 1s;
    background-color: #ccc;
    background-image: linear-gradient(to top, #fff, #fff);
    /* Centralização com flexbox */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Melhorias para touch targets */
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

.box-select-inativo {
    cursor: default;
    width: 120px;
    height: 120px;
    box-shadow: 0px 2px 20px #dce4ef;
    border-radius: 10px;
    transition: 1s;
    background-color: #ccc;
    background-image: linear-gradient(to top, #fff, #fff);
    /* Centralização com flexbox */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Melhorias para touch targets */
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

.box-select .img2,
.box-select-inativo .img2 {
    display: none;
}

.box-select:hover {
    width: 120px;
    height: 120px;
    border-radius: 0.3em;
    background-image: linear-gradient(139deg, rgba(255, 107, 53, 1) 0%, rgba(255, 87, 34, 1) 94%);
    transition: visibility 0.3s linear, opacity 0.5s ease-out;
    color: white;
}

.box-select:hover .img1 {
    display: none;
}

.box-select:hover .img2 {
    display: block;
}

.box-select p,
.box-select-inativo p {
    position: relative;
    z-index: 3;
    font-size: 14px;
}

/* ===== RESPONSIVIDADE DOS SERVIÇOS ===== */
.services-container {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 0 20px;
    /* Base: sempre 2 colunas por padrão */
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
}

/* Desktop Grande - 5 colunas */
@media (min-width: 1400px) {
    .services-container {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 30px;
        padding: 0 40px;
    }
    
    .box-select,
    .box-select-inativo {
        width: 120px;
        height: 120px;
    }
    
    .box-select p,
    .box-select-inativo p {
        font-size: 14px;
    }
}

/* Desktop Médio - 4 colunas */
@media (min-width: 1200px) and (max-width: 1399px) {
    .services-container {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 25px;
        padding: 0 30px;
    }
    
    .box-select,
    .box-select-inativo {
        width: 110px;
        height: 110px;
    }
    
    .box-select p,
    .box-select-inativo p {
        font-size: 13px;
    }
}

/* Tablet Grande - 3 colunas */
@media (min-width: 992px) and (max-width: 1199px) {
    .services-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
        padding: 0 20px;
    }
    
    .box-select,
    .box-select-inativo {
        width: 100px;
        height: 100px;
    }
    
    .box-select p,
    .box-select-inativo p {
        font-size: 12px;
    }
}

/* Tablet Médio - 3 colunas */
@media (min-width: 768px) and (max-width: 991px) {
    .services-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
        padding: 0 15px;
    }
    
    .box-select,
    .box-select-inativo {
        width: 90px;
        height: 90px;
    }
    
    .box-select p,
    .box-select-inativo p {
        font-size: 11px;
    }
    
    .box-select img,
    .box-select-inativo img {
        height: 35px !important;
    }
}

/* iPhone e Mobile Grande - 2 colunas otimizadas */
@media (min-width: 576px) and (max-width: 767px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 0 20px;
    }
    
    .box-select,
    .box-select-inativo {
        width: 140px;
        height: 110px;
    }
    
    .box-select p,
    .box-select-inativo p {
        font-size: 14px;
        line-height: 1.2;
        font-weight: 500;
        margin: 8px 0 0 0;
    }
    
    .box-select img,
    .box-select-inativo img {
        height: 45px !important;
    }
}

/* iPhone e Mobile Médio - 2 colunas */
@media (max-width: 575px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
        padding: 0 18px;
    }
    
    .box-select,
    .box-select-inativo {
        width: 130px;
        height: 105px;
    }
    
    .box-select p,
    .box-select-inativo p {
        font-size: 13px;
        line-height: 1.2;
        font-weight: 500;
        margin: 8px 0 0 0;
    }
    
    .box-select img,
    .box-select-inativo img {
        height: 42px !important;
    }
}

/* iPhone SE e Mobile Pequeno - 2 colunas */
@media (max-width: 400px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0 15px;
    }
    
    .box-select,
    .box-select-inativo {
        width: 120px;
        height: 100px;
    }
    
    .box-select p,
    .box-select-inativo p {
        font-size: 12px;
        line-height: 1.2;
        font-weight: 500;
        margin: 8px 0 0 0;
    }
    
    .box-select img,
    .box-select-inativo img {
        height: 38px !important;
    }
}

/* Telas muito pequenas - 2 colunas mínimas */
@media (max-width: 320px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 12px;
    }
    
    .box-select,
    .box-select-inativo {
        width: 110px;
        height: 95px;
    }
    
    .box-select p,
    .box-select-inativo p {
        font-size: 11px;
        line-height: 1.2;
        font-weight: 500;
        margin: 6px 0 0 0;
    }
    
    .box-select img,
    .box-select-inativo img {
        height: 35px !important;
    }
}
