/**
 * MD Solutions Technology - Service Pages CSS
 * Seguindo o padrão da página inicial
 * IMPORTANTE: Este CSS tem prioridade sobre modern-enhancements.css
 */

/* Reset e Base - Seguindo o padrão da página inicial */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sobrescreve estilos do hero da home page */
body:has(.service-hero) .hero-section,
body:has(.service-hero) .hero-slider,
body:has(.service-hero) .hero-slide {
    display: none !important;
}

:root {
    --primary: #0a20c7;
    --secondary: #0f0d1d;
    --accent: #3c72fc;
    --gradient: linear-gradient(135deg, #0a20c7, #1e3c72);
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Container System */
.service-hero .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 2 !important;
}

.main-content {
    overflow-x: hidden;
}

/* Typography */
.section-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.title-highlight {
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 32, 199, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Service Hero Section - Sobrescreve estilos do hero da home */
.service-hero {
    position: relative;
    padding: 140px 0 80px !important;
    min-height: 550px !important;
    height: auto !important;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin-top: 0;
}

.service-hero-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            135deg, 
            rgba(0, 0, 0, 0.65), 
            rgba(10, 32, 199, 0.45),
            rgba(0, 0, 0, 0.55)
        ) !important;
    z-index: 1 !important;
}

.service-hero-content {
    position: relative !important;
    z-index: 2 !important;
    text-align: center;
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
}

.service-hero-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 50px !important;
    color: var(--white) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.service-hero-title {
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: var(--white) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: -0.02em !important;
}

.service-hero-description {
    font-size: 1.25rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    max-width: 700px !important;
    margin: 0 auto 2rem !important;
    line-height: 1.7 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.service-hero-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem !important;
    justify-content: center !important;
    margin-top: 2rem !important;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: 12px;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 32, 199, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.98);
}

.btn-hero i {
    font-size: 1.125rem;
}

/* Main Content */
.service-main {
    padding: 80px 0;
    background: var(--gray-50);
}

.service-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* Service Details */
.service-details {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.service-details:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.service-details h3 i {
    color: var(--primary);
    font-size: 1.25rem;
}

.service-details p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-details p:last-child {
    margin-bottom: 0;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(10, 32, 199, 0.2);
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.feature-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Sidebar */
.service-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sidebar-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar-card h4 i {
    color: var(--primary);
    font-size: 1.125rem;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info .contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--gray-50);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.contact-info .contact-method:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info .contact-method i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.consultation-display {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
}

.consultation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.consultation-badge i {
    font-size: 1rem;
}

.consultation-text {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.consultation-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.consultation-benefits li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.consultation-benefits li:first-child {
    padding-top: 0;
}

.consultation-benefits li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.consultation-benefits i {
    color: var(--primary);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.btn-consultation {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 32, 199, 0.4);
}

.btn-consultation i {
    font-size: 1rem;
}

/* FAQ Section */
.service-faq {
    background: var(--white);
    padding: 80px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--gray-50);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.faq-item.open {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.faq-question {
    padding: 1.75rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(10, 32, 199, 0.03);
}

.faq-question h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.faq-question i {
    color: var(--primary);
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-item.open .faq-question h4 {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer-content {
    padding: 0 2rem 1.75rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Contact Section */
.service-contact {
    background: var(--gradient);
    padding: 100px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.service-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,0 1000,100 1000,0"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-method i {
    font-size: 1.25rem;
}

.contact-method-primary {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    border: 2px solid var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-method-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 32, 199, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-method-primary:hover::before {
    left: 100%;
}

.contact-method-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.98);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-sidebar {
        position: static;
        top: auto;
    }
    
    .service-hero {
        padding: 100px 0 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .service-hero {
        padding: 100px 0 60px;
        min-height: 450px;
    }
    
    .service-hero-title {
        font-size: 2.25rem;
    }
    
    .service-hero-description {
        font-size: 1.125rem;
    }
    
    .service-hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .service-main {
        padding: 60px 0;
    }
    
    .service-details {
        padding: 1.75rem;
    }
    
    .service-details h3 {
        font-size: 1.375rem;
    }
    
    .service-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar-card {
        padding: 1.75rem;
    }
    
    .service-contact {
        padding: 60px 0;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .contact-method {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .contact-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .contact-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 80px 0 50px;
        min-height: 400px;
    }
    
    .service-hero-title {
        font-size: 1.875rem;
    }
    
    .service-hero-description {
        font-size: 1rem;
    }
    
    .service-hero-badge {
        font-size: 0.8rem;
        padding: 0.625rem 1rem;
    }
    
    .btn-hero {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .service-details {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .service-details h3 {
        font-size: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-methods {
        gap: 0.625rem;
    }
    
    .contact-method {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
} 
/* Ajuste
s adicionais para melhor UX */
.service-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Smooth scroll para links internos */
html {
    scroll-behavior: smooth;
}

/* Melhorias de acessibilidade */
.btn-hero:focus,
.btn-consultation:focus,
.contact-method:focus {
    outline: 3px solid rgba(10, 32, 199, 0.5);
    outline-offset: 2px;
}

/* Animações suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-details,
.sidebar-card,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.btn-hero:active,
.btn-consultation:active {
    transform: scale(0.98);
}

/* Melhorias para telas muito pequenas */
@media (max-width: 360px) {
    .service-hero {
        padding: 70px 0 40px;
    }
    
    .service-hero-title {
        font-size: 1.625rem;
    }
    
    .service-hero-description {
        font-size: 0.9375rem;
    }
    
    .btn-hero {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
    
    .service-details,
    .sidebar-card {
        padding: 1.25rem;
    }
}

/* Melhorias para telas grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .service-hero-title {
        font-size: 3.5rem;
    }
    
    .service-hero-description {
        font-size: 1.375rem;
        max-width: 800px;
    }
}

/* Print styles */
@media print {
    .service-hero,
    .service-contact,
    .service-sidebar {
        display: none;
    }
    
    .service-content-grid {
        grid-template-columns: 1fr;
    }
}
