/* CSS Variables - Defina no início do arquivo */
:root {
    --primary-green: #84FF00;
    --secondary-green: #6CD000;
    --light-green: #E8FFC4;
    --bg-secondary: #f8f9fa;
    --text-primary: #1f2937;
    --text-medium: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Services Page Styles */
.services-hero {
    background: linear-gradient(135deg, #84FF00 0%, #6CD000 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

/* CORREÇÃO 1: SUBTÍTULO CENTRALIZADO E RESPONSIVO */
.page-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 700px; /* Reduzido de 800px para melhor proporção */
    margin: 0 auto 2rem auto; /* Garantir centralização */
    opacity: 0.95; /* Melhor contraste */
    text-align: center; /* ADICIONADO para garantir centralização */
    padding: 0 1rem; /* ADICIONADO para espaçamento em mobile */
}

.services-overview {
    padding: 80px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* CORREÇÃO 2: GRID CENTRALIZADO */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px; /* Reduzido de 1200px para melhor centralização */
    margin: 0 auto;
    padding: 0 1rem; /* ADICIONADO para espaçamento lateral */
    justify-items: center; /* ADICIONADO para centralizar cards */
}

/* CORREÇÃO 3: CARDS COM LARGURA LIMITADA E BORDA SUPERIOR */
.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px; /* ADICIONADO para limitar largura máxima */
    position: relative; /* ADICIONADO para efeitos visuais */
}

/* ADICIONADO: Borda superior verde nos cards */
.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    border-radius: 1rem 1rem 0 0;
}

/* CORREÇÃO 4: HOVER APRIMORADO */
.overview-card:hover {
    transform: translateY(-8px); /* Aumentado de -5px para -8px */
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* CORREÇÃO 5: ÍCONE COM SOMBRA VERDE */
.overview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #84FF00, #6CD000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(132, 255, 0, 0.3); /* ADICIONADO: sombra verde */
}

/* CORREÇÃO 6: TIPOGRAFIA APRIMORADA */
.overview-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3; /* ADICIONADO para melhor espaçamento */
}

.overview-card p {
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 0;
    flex-grow: 1;
    font-size: 0.95rem; /* ADICIONADO para melhor proporção */
}

.card-link {
    color: #6CD000;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #84FF00;
}

.service-detail {
    padding: 80px 0;
}

.service-detail.alternate {
    background: #f8f9fa;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #E8FFC4;
    color: #6CD000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.service-content h2 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #6b7280;
}

.service-features h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #6b7280;
}

.features-list i {
    color: #6CD000;
    font-size: 0.9rem;
    width: 16px;
    flex-shrink: 0;
}

.service-specs {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.spec-item {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-item strong {
    color: #1f2937;
}

.service-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.service-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #6CD000;
    color: white;
    border: 2px solid #6CD000;
}

.btn-primary:hover {
    background: #84FF00;
    border-color: #84FF00;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #6CD000;
    border: 2px solid #6CD000;
}

.btn-outline:hover {
    background: #6CD000;
    color: white;
}

.service-actions .btn i {
    font-size: 1rem;
}

.service-visual {
    position: relative;
}

.service-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    background: #f8f9fa;
}

.visual-stats {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    justify-content: space-around;
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6CD000;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

.additional-services {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

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

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.additional-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.additional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.additional-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #84FF00, #6CD000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.additional-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.additional-card p {
    margin-bottom: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

.additional-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-card ul li {
    padding: 0.5rem 0;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

.additional-card ul li:last-child {
    border-bottom: none;
}

.additional-card ul li::before {
    content: '•';
    color: #6CD000;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* CTA Section Styles */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #84FF00 0%, #6CD000 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-buttons .btn i {
    font-size: 1rem;
}

/* CORREÇÃO 7: RESPONSIVIDADE APRIMORADA */
@media (max-width: 1024px) {
    .service-layout {
        gap: 3rem;
    }
    
    .additional-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* CORREÇÃO 8: SUBTÍTULO MOBILE APRIMORADO */
    .page-subtitle {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 1.5rem; /* Mais espaçamento em mobile */
        margin-bottom: 3rem;
    }
    
    .services-overview,
    .service-detail,
    .additional-services,
    .cta-section {
        padding: 60px 0;
    }
    
    .service-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-actions .btn {
        justify-content: center;
    }
    
    /* CORREÇÃO 9: GRID MOBILE CENTRALIZADO */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
        max-width: 400px; /* Centralizar melhor em mobile */
    }
    
    .overview-card {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .additional-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .visual-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        padding: 0.5rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .stat:last-child {
        border-bottom: none;
    }
}

/* CORREÇÃO 10: MOBILE PEQUENO OTIMIZADO */
@media (max-width: 480px) {
    .services-hero {
        padding: 80px 0 50px;
    }
    
    /* CORREÇÃO 11: TÍTULO E SUBTÍTULO MOBILE PEQUENO */
    .page-title {
        font-size: 1.8rem; /* Reduzido para mobile pequeno */
        margin-bottom: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
    
    .overview-card,
    .additional-card {
        padding: 1.25rem; /* Reduzido de 1.5rem */
    }
    
    /* CORREÇÃO 12: ÍCONE RESPONSIVO */
    .overview-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }
    
    .service-detail,
    .services-overview,
    .additional-services,
    .cta-section {
        padding: 50px 0;
    }
    
    .service-layout {
        gap: 1.5rem;
    }
    
    .cta-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}