/* ===== ESPECIALISTAS EM REPAROS HIDRÁULICOS ===== */
.especialistas-hidraulicos {
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.especialistas-hidraulicos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(34, 211, 238, 0.02) 50%, rgba(59, 130, 246, 0.02) 100%);
    animation: gradient-shift 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradient-shift {
    0%, 100% { 
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(34, 211, 238, 0.02) 50%, rgba(59, 130, 246, 0.02) 100%);
    }
    50% { 
        background: linear-gradient(135deg, rgba(34, 211, 238, 0.03) 0%, rgba(59, 130, 246, 0.03) 50%, rgba(34, 211, 238, 0.03) 100%);
    }
}

.container-especialistas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header da Seção */
.especialistas-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.header-icon i {
    color: white;
}

.especialistas-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.especialistas-title .highlight {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.especialistas-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de Cards */
.especialistas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.especialista-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.especialista-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6);
    background-size: 200% 100%;
    animation: gradient-flow 3s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.especialista-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.card-image-container {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    padding: 15px;
}

/* ===== FILTROS PARA SUAVIZAR BORDAS DAS IMAGENS ===== */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.4s ease;
    
    /* Filtros para suavizar bordas e melhorar aparência */
    filter: 
        brightness(1.05) 
        contrast(1.1) 
        saturate(1.1)
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    
    /* Remove bordas pretas/escuras */
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.card-image:hover {
    transform: scale(1.05);
    filter: 
        brightness(1.1) 
        contrast(1.15) 
        saturate(1.2)
        drop-shadow(0 8px 20px rgba(59, 130, 246, 0.2));
}

/* Overlay para as imagens */
.card-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.especialista-card:hover .card-overlay {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #3b82f6;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.especialista-card:hover .card-icon {
    transform: scale(1);
}

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

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-badge {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    transform: translateY(-2px);
}

.feature-badge i {
    font-size: 0.75rem;
}

/* Call to Action */
.especialistas-cta {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.especialistas-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.especialistas-cta:hover::before {
    transform: translateX(100%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    min-width: 200px;
    justify-content: center;
}

.cta-btn.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-btn.primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: white;
    color: #1e40af;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .especialistas-hidraulicos {
        padding: 60px 0;
    }
    
    .container-especialistas {
        padding: 0 15px;
    }
    
    .especialistas-title {
        font-size: 2rem;
    }
    
    .especialistas-subtitle {
        font-size: 1rem;
    }
    
    .especialistas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .card-image {
        height: 180px;
        padding: 8px;
    }
    
    .especialista-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .especialistas-cta {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .especialistas-title {
        font-size: 1.8rem;
    }
    
    .card-image {
        height: 160px;
        padding: 6px;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* ===== CLASSES ESPECÍFICAS PARA IMAGENS DOS REPAROS ===== */
.img-reparo-hidraulico {
    /* Filtros específicos para melhorar as imagens dos produtos hidráulicos */
    filter: 
        brightness(1.08) 
        contrast(1.12) 
        saturate(1.15)
        hue-rotate(2deg)
        drop-shadow(0 6px 16px rgba(59, 130, 246, 0.15));
    
    /* Background para eliminar bordas escuras */
    background: radial-gradient(circle, #ffffff 60%, #f8fafc 100%);
    padding: 12px;
    
    /* Borda sutil para definir melhor o contorno */
    border: 1px solid rgba(59, 130, 246, 0.08);
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-reparo-hidraulico:hover {
    filter: 
        brightness(1.12) 
        contrast(1.18) 
        saturate(1.25)
        hue-rotate(3deg)
        drop-shadow(0 8px 24px rgba(59, 130, 246, 0.25));
    
    transform: scale(1.03);
    border-color: rgba(59, 130, 246, 0.15);
}
