/**
 * GW Elementor - Seção de Serviços CSS v1.7.5
 */

/* =============================================
   CONTAINER
   ============================================= */
.gw-services-container {
    position: relative;
    width: 100%;
}

/* =============================================
   GRID LAYOUT
   ============================================= */
.gw-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* =============================================
   CARD
   ============================================= */
.gw-service-card-wrap {
    display: flex;
}

.gw-service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

a.gw-service-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

a.gw-service-card:hover {
    text-decoration: none;
}

/* Garantir que links internos sejam clicáveis */
.gw-service-footer {
    position: relative;
    z-index: 5;
}

a.gw-service-link {
    cursor: pointer;
    position: relative;
    z-index: 5;
}

a.gw-service-link:hover {
    text-decoration: none;
}

.gw-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

/* =============================================
   TÍTULO
   ============================================= */
.gw-service-title {
    margin: 0 0 16px 0;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.4s ease;
}

/* =============================================
   IMAGEM + ÍCONE BADGE
   ============================================= */
.gw-service-image-wrap {
    position: relative;
    margin-bottom: 20px;
}

.gw-service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.gw-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gw-service-card:hover .gw-service-image img {
    transform: scale(1.05);
}

/* Ícone Badge */
.gw-service-icon-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gw-service-icon-badge i {
    font-size: 24px;
    line-height: 1;
}

.gw-service-icon-badge svg {
    width: 24px;
    height: 24px;
}

.gw-service-card:hover .gw-service-icon-badge {
    transform: scale(1.1);
}

/* Badge hover colors via JS */
.gw-service-card.gw-hovered .gw-service-icon-badge {
    color: var(--gw-hover-badge-color) !important;
    background-color: var(--gw-hover-badge-bg) !important;
}

.gw-service-card.gw-hovered .gw-service-icon-badge i {
    color: var(--gw-hover-badge-color) !important;
}

.gw-service-card.gw-hovered .gw-service-icon-badge svg {
    fill: var(--gw-hover-badge-color) !important;
}

/* =============================================
   DESCRIÇÃO
   ============================================= */
.gw-service-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 16px;
    transition: color 0.4s ease;
}

/* =============================================
   LISTA
   ============================================= */
.gw-service-list {
    flex: 1;
}

.gw-service-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.gw-service-list-item + .gw-service-list-item {
    margin-top: 12px;
}

.gw-service-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.4s ease;
}

.gw-service-list-icon i {
    font-size: 8px;
    line-height: 1;
}

.gw-service-list-icon svg {
    width: 8px;
    height: 8px;
}

.gw-service-list-text {
    transition: color 0.4s ease;
}

/* =============================================
   DIVISOR
   ============================================= */
.gw-service-divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0;
    width: 100%;
    transition: border-color 0.4s ease;
}

/* =============================================
   FOOTER / LINK
   ============================================= */
.gw-service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.gw-service-link-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888;
    transition: color 0.4s ease;
}

.gw-service-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f0f0;
    flex-shrink: 0;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.gw-service-link-icon i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.4s ease, color 0.4s ease;
}

.gw-service-link-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease, fill 0.4s ease;
}

/* Ícone rotaciona no hover do card */
.gw-service-card:hover .gw-service-link-icon i,
.gw-service-card:hover .gw-service-link-icon svg {
    transform: rotate(90deg);
}

/* =============================================
   HOVER - CORES DINÂMICAS (via JS)
   ============================================= */
.gw-service-card.gw-hovered {
    background-color: var(--gw-hover-bg) !important;
}

.gw-service-card.gw-hovered .gw-service-title,
.gw-service-card.gw-hovered .gw-service-description,
.gw-service-card.gw-hovered .gw-service-list-item,
.gw-service-card.gw-hovered .gw-service-list-text,
.gw-service-card.gw-hovered .gw-service-link-text {
    color: var(--gw-hover-text) !important;
}

.gw-service-card.gw-hovered .gw-service-list-icon i {
    color: var(--gw-hover-text) !important;
}

.gw-service-card.gw-hovered .gw-service-list-icon svg {
    fill: var(--gw-hover-text) !important;
}

.gw-service-card.gw-hovered .gw-service-divider {
    border-color: var(--gw-hover-divider, rgba(255, 255, 255, 0.2)) !important;
}

.gw-service-card.gw-hovered .gw-service-link-icon {
    background-color: var(--gw-hover-icon-bg) !important;
}

.gw-service-card.gw-hovered .gw-service-link-icon i {
    color: var(--gw-hover-icon-color) !important;
}

.gw-service-card.gw-hovered .gw-service-link-icon svg {
    fill: var(--gw-hover-icon-color) !important;
}

/* =============================================
   CARROSSEL
   ============================================= */
.gw-services-carousel-wrap {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.gw-services-carousel {
    overflow: hidden;
    width: 100%;
    order: 0;
}

.gw-carousel-track {
    display: flex;
    will-change: transform;
}

.gw-carousel-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* =============================================
   SETAS DO CARROSSEL - POSIÇÕES
   ============================================= */
.gw-carousel-arrow {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

.gw-carousel-arrow:hover {
    background-color: #1a1a2e;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gw-carousel-arrow i {
    line-height: 1;
}

/* --- Laterais (sobre os cards) --- */
.gw-carousel-arrows-sides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.gw-carousel-arrows-sides .gw-carousel-arrow {
    pointer-events: auto;
    position: relative;
}

.gw-carousel-arrows-sides .gw-carousel-arrow-prev {
    left: 10px;
}

.gw-carousel-arrows-sides .gw-carousel-arrow-next {
    right: 10px;
}

/* --- Laterais (fora dos cards) --- */
.gw-carousel-arrows-sides_outside {
    position: absolute;
    top: 0;
    left: -56px;
    right: -56px;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.gw-carousel-arrows-sides_outside .gw-carousel-arrow {
    pointer-events: auto;
}

/* --- Abaixo (centralizado) --- */
.gw-carousel-arrows-bottom_center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    order: 1;
}

/* --- Abaixo (esquerda) --- */
.gw-carousel-arrows-bottom_left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    order: 1;
}

/* --- Abaixo (direita) --- */
.gw-carousel-arrows-bottom_right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    order: 1;
}

/* --- Acima (direita) --- */
.gw-carousel-arrows-top_right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    order: -1;
}

/* --- Acima (esquerda) --- */
.gw-carousel-arrows-top_left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    order: -1;
}

/* Dots */
.gw-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    order: 2;
}

.gw-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cccccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gw-carousel-dot:hover {
    transform: scale(1.2);
}

.gw-carousel-dot.active {
    background-color: #1a1a2e;
    transform: scale(1.2);
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */
@media (max-width: 1024px) {
    .gw-carousel-arrows-sides_outside {
        left: 0;
        right: 0;
    }

    .gw-carousel-arrows-sides_outside .gw-carousel-arrow-prev {
        margin-left: 10px;
    }

    .gw-carousel-arrows-sides_outside .gw-carousel-arrow-next {
        margin-right: 10px;
    }
}

@media (max-width: 767px) {
    .gw-carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* =============================================
   ACESSIBILIDADE
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .gw-service-card,
    .gw-service-card *,
    .gw-carousel-track,
    .gw-service-link-icon i,
    .gw-service-link-icon svg,
    .gw-service-image img {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
