/**
 * JOVATEC - Estilos da Página Inicial (Homepage)
 * 
 * Este arquivo contém os estilos específicos da página inicial,
 * incluindo a seção de serviços e customizações do hero/carrossel.
 * 
 * @package JOVATEC
 * @version 1.0.0
 */

/*--------------------------------------------------------------
# Seção Hero / Carrossel
--------------------------------------------------------------*/

#hero-carousel {
    min-height: 600px;
}

#hero-carousel .carousel-item {
    min-height: 600px;
}

/* Botões de Controle do Carrossel */
#hero-carousel .carousel-control-prev,
#hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#hero-carousel .carousel-control-prev {
    left: 2rem;
}

#hero-carousel .carousel-control-next {
    right: 2rem;
}

#hero-carousel .carousel-control-prev-icon,
#hero-carousel .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border: 3px solid var(--jovatec-verde-escuro);
    border-radius: 50%;
    background-size: 40%;
    background-position: center;
    filter: none;
    transition: all 0.3s ease;
}

#hero-carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003c35'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

#hero-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003c35'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#hero-carousel .carousel-control-prev-icon:hover,
#hero-carousel .carousel-control-next-icon:hover {
    background-color: var(--jovatec-verde-escuro);
    border-color: var(--jovatec-verde-escuro);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 60, 53, 0.4);
}

#hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

#hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# Seção: NOSSOS SERVIÇOS
--------------------------------------------------------------*/

/* Título da Seção */
.jovatec-roxo-escuro {
    color: var(--jovatec-roxo-escuro);
}

/* Botão Verde Escuro */
.btn-jovatec-verde {
    background-color: var(--jovatec-verde-escuro);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-jovatec-verde:hover {
    background-color: #002b26; /* Verde escuro mais intenso no hover */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 60, 53, 0.4);
}

.btn-jovatec-verde:active {
    transform: translateY(0);
}

/*--------------------------------------------------------------
# Carrossel Infinito de Serviços
--------------------------------------------------------------*/

.infinite-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 2rem 4rem;
}

.infinite-carousel-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
}

/* Card Wrapper */
.servico-card-wrapper {
    flex: 0 0 280px;
    min-width: 280px;
}

/* Cards de Serviços */
.servico-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    height: 100%;
}

.servico-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 60, 53, 0.2) !important;
    border-color: var(--jovatec-verde);
}

.servico-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.servico-card:hover .card-img-top {
    transform: scale(1.08);
}

.servico-card .card-title {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.servico-card .btn {
    font-family: 'Lato', sans-serif;
}

/* Botões de Navegação */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 60, 53, 0.95);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infinite-carousel-wrapper:hover .carousel-nav-btn {
    opacity: 1;
}

.carousel-nav-prev {
    left: 0.5rem;
}

.carousel-nav-next {
    right: 0.5rem;
}

.carousel-nav-btn:hover {
    background-color: var(--jovatec-verde);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Responsividade */
@media (max-width: 991px) {
    .infinite-carousel-wrapper {
        padding: 2rem 3rem;
    }
    
    .servico-card-wrapper {
        flex: 0 0 240px;
        min-width: 240px;
    }
    
    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .infinite-carousel-wrapper {
        padding: 2rem 2.5rem;
    }
    
    .servico-card-wrapper {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .servico-card .card-img-top {
        height: 180px;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        opacity: 1;
    }
    
    .carousel-nav-prev {
        left: 0.25rem;
    }
    
    .carousel-nav-next {
        right: 0.25rem;
    }
}

@media (max-width: 575px) {
    .infinite-carousel-wrapper {
        padding: 1.5rem 2rem;
    }
    
    .servico-card-wrapper {
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    .servico-card .card-img-top {
        height: 160px;
    }
    
    .servico-card .card-title {
        font-size: 0.9rem;
    }
}

/*--------------------------------------------------------------
# Seção: SEGMENTOS DE ATUAÇÃO
--------------------------------------------------------------*/

/* Classe de cor verde escuro para título */
.jovatec-verde-escuro {
    color: var(--jovatec-verde-escuro);
}

/* Cards de Segmentos */
.segmento-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.segmento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Imagens dos Segmentos */
.segmento-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Card de Segmento */
.segmento-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.segmento-card:hover {
    transform: translateY(-5px);
    border-color: var(--jovatec-verde-escuro) !important;
    box-shadow: 0 10px 25px rgba(0, 199, 177, 0.15) !important;
}

.segmento-card:hover .segmento-img {
    transform: scale(1.08);
}

/* Texto dos cards */
.segmento-card .card-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

/*--------------------------------------------------------------
# Responsividade Geral da Página
--------------------------------------------------------------*/

@media (max-width: 991px) {
    #hero-carousel {
        min-height: 500px;
    }
    
    #hero-carousel .carousel-item {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    #hero-carousel {
        min-height: 400px;
    }
    
    #hero-carousel .carousel-item {
        min-height: 400px;
    }
    
    /* Ajusta espaçamento do mapa em mobile */
    .mapa-wrapper {
        min-height: 300px;
    }
    
    /* Ajusta altura das imagens de segmentos em mobile */
    .segmento-img {
        height: 180px;
    }
}
