@charset "UTF-8";

/* ===== SERVICOS - BOTOES ===== */
.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);
    /* Centralizacao 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;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: rgba(255, 107, 53, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-icon i {
    font-size: 36px !important;
    color: #ff6b35 !important;
    transition: color 0.3s ease;
}

.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);
    /* Centralizacao 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 .inativo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.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 .service-icon {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.box-select:hover .service-icon i {
    color: #ffffff !important;
}

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

.box-select-inativo .service-icon {
    background-color: rgba(158, 168, 184, 0.15);
}

.box-select-inativo .service-icon i {
    color: #9ea8b8;
}

/* ===== RESPONSIVIDADE DOS SERVICOS ===== */
.services-container {
    display: grid;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 0 20px;
    /* Base: sempre 2 colunas por padrao */
    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 Medio - 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 Medio - 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;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .service-icon i {
        font-size: 32px;
    }
}

/* 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;
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .service-icon i {
        font-size: 38px;
    }
}

/* iPhone e Mobile Medio - 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;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .service-icon i {
        font-size: 36px;
    }
}

/* 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;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 10px;
    }

    .service-icon i {
        font-size: 34px;
    }
}

/* Telas muito pequenas - 2 colunas minimas */
@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;
    }
    
    .service-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 10px;
    }

    .service-icon i {
        font-size: 32px;
    }
}
