:root {
    --service-1-primary: #0d6efd;
    --service-1-secondary: #6f42c1;
    --service-2-primary: #198754;
    --service-2-secondary: #20c997;
    --service-3-primary: #6f42c1;
    --service-3-secondary: #0d6efd;
    --service-4-primary: #fd7e14;
    --service-4-secondary: #ffc107;
    --service-5-primary: #198754;
    --service-5-secondary: #0dcaf0;
    --service-6-primary: #0d6efd;
    --service-6-secondary: #0dcaf0;
    --service-7-primary: #6c757d;
    --service-7-secondary: #0d6efd;
    --service-8-primary: #0d6efd;
    --service-8-secondary: #fd7e14;
    --service-9-primary: #0d6efd;
    --service-9-secondary: #198754;
    --service-10-primary: #dc3545;
    --service-10-secondary: #fd7e14;
    --service-11-primary: #0dcaf0;
    --service-11-secondary: #198754;
    --service-12-primary: #6f42c1;
    --service-12-secondary: #0d6efd;
}

/* Container principal dos serviços */
.services-modern-section {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Grade responsiva dos cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Cards modernos */
.service-card-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), box-shadow 0.4s ease;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible; /* corrigido para que botões fiquem clicáveis */
}

/* Barra de gradiente no topo */
/* Barra de gradiente no topo */
.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; /* altura padrão */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
    transition: height 0.3s ease;
}

/* Ao passar o mouse, a barra cresce um pouco */
.service-card-modern:hover::before {
    height: 12px; /* altura maior no hover */
    opacity: 1;   /* mantém visível */
}

/* Mantém os botões clicáveis e sem sobreposição */
.service-card-modern {
    overflow: visible; /* importante para que os botões fiquem interativos */
}

/* Hover suave do card sem interferir nos botões */
.service-card-modern:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Ícones dos serviços */
.service-icon-modern {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

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

/* Título */
.service-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
    line-height: 1.3;
}

/* Descrição */
.service-description-modern {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Lista de benefícios */
.service-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.service-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Botões container */
.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto; /* empurra botões para baixo */
}

/* Botões */
.btn-service {
    flex: 1 1 48%;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-service-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-service-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-service-whatsapp {
    background: #25D366;
    border: 2px solid #25D366;
    color: white;
}

.btn-service-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: white;
    transform: translateY(-2px);
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-modern {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card-modern:nth-child(1) { animation-delay: 0.1s; }
.service-card-modern:nth-child(2) { animation-delay: 0.2s; }
.service-card-modern:nth-child(3) { animation-delay: 0.3s; }
.service-card-modern:nth-child(4) { animation-delay: 0.4s; }
.service-card-modern:nth-child(5) { animation-delay: 0.5s; }
.service-card-modern:nth-child(6) { animation-delay: 0.6s; }
.service-card-modern:nth-child(7) { animation-delay: 0.7s; }
.service-card-modern:nth-child(8) { animation-delay: 0.8s; }

/* Responsividade */
@media (max-width: 576px) {
    .service-buttons {
        flex-direction: column;
    }

    .btn-service {
        flex: 1 1 100%;
    }

    .service-card-modern {
        padding: 1.5rem;
    }
}

/* Botão flutuante do catálogo WhatsApp */
.whatsapp-catalog-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25D366;
    color: #fff;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    box-shadow: 0 6px 18px rgba(37,211,102,0.18);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1050;
    text-decoration: none;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}
.whatsapp-catalog-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,0.22); }
.whatsapp-catalog-btn i { font-size: 1.2rem; }
@media (max-width: 576px) {
    .whatsapp-catalog-btn { right: 12px; bottom: 12px; padding: 0.6rem 0.85rem; }
}
