/* ============================================
   HEADER DA PÁGINA DE SERVIÇOS
============================================ */
.services-header {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.9)),
                url('https://images.unsplash.com/photo-1505663912202-ac22d4cb3707?w=1600') center/cover;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
}

.services-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--dark-bg));
}

.services-header h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.services-header .lead {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   SEÇÕES PRINCIPAIS DE SERVIÇOS
============================================ */
.service-detail {
    position: relative;
    overflow: hidden;
}

.service-detail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 40%;
    height: 80%;
    transform: translateY(-50%);
    pointer-events: none;
}

.service-detail:nth-child(even)::before {
    left: auto;
    right: -10%;
}

/* ============================================
   COMPONENTES DE IMAGEM DOS SERVIÇOS
============================================ */
.service-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.service-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.2), transparent);
    z-index: 1;
    transition: var(--transition);
}

.service-image-wrapper:hover::before {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.3), transparent);
}

.service-image-wrapper img {
    transition: var(--transition);
    filter: brightness(0.8);
}

.service-image-wrapper:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* ============================================
   ÍCONES E ELEMENTOS VISUAIS
============================================ */
.service-icon-large {
    font-size: 4rem;
    color: var(--primary-color);
    line-height: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

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

/* ============================================
   LISTAS DE SERVIÇOS
============================================ */
.service-list {
    margin: 2rem 0;
}

.service-item {
    display: flex;
    align-items: start;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
    box-shadow: 0 3px 15px rgba(201, 169, 97, 0.2);
}

.service-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 30px;
    flex-shrink: 0;
}

.service-item span {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   SEÇÃO CALL TO ACTION (CTA)
============================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.05)),
                url('https://images.unsplash.com/photo-1479142506502-19b3a3b7ff33?w=1600') center/cover;
    position: relative;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.85);
}

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

.cta-section h2 {
    color: var(--text-light);
}

.cta-section .lead {
    color: var(--text-gray);
}

/* Botões de contorno claro */
.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* ============================================
   ANIMAÇÕES E TRANSIÇÕES
============================================ */
.service-detail {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Delays sequenciais para animação em cascata */
.service-detail:nth-child(1) { animation-delay: 0.1s; }
.service-detail:nth-child(2) { animation-delay: 0.2s; }
.service-detail:nth-child(3) { animation-delay: 0.3s; }
.service-detail:nth-child(4) { animation-delay: 0.4s; }
.service-detail:nth-child(5) { animation-delay: 0.5s; }
.service-detail:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ELEMENTOS DE DESTAQUE E BADGES
============================================ */
.service-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--darker-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   EFEITOS ESPECIAIS E DECORAÇÕES
============================================ */
/* Linha decorativa entre seções */
.service-detail:not(:last-of-type)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Efeito de brilho nos botões primários */
.service-detail .btn-primary {
    position: relative;
    overflow: hidden;
}

.service-detail .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.service-detail .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Texto destacado */
.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   ACESSIBILIDADE
============================================ */
/* Foco visível para navegação por teclado */
.service-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Texto oculto para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   RESPONSIVIDADE - TABLET (991px)
============================================ */
@media (max-width: 991px) {
    .services-header {
        padding: 120px 0 80px;
    }
    
    .services-header h1 {
        font-size: 2.5rem;
    }
    
    .service-icon-large {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .service-detail .row {
        flex-direction: column;
    }
    
    .service-detail .col-lg-6.order-lg-2,
    .service-detail .col-lg-6.order-lg-1 {
        order: initial !important;
    }
    
    .service-image-wrapper {
        margin-bottom: 2rem;
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE (768px)
============================================ */
@media (max-width: 768px) {
    .services-header {
        padding: 100px 0 60px;
    }
    
    .services-header h1 {
        font-size: 2rem;
    }
    
    .service-icon-large {
        font-size: 2.5rem;
    }
    
    .service-detail {
        padding: 3rem 0 !important;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-item i {
        margin: 0 0 0.5rem 0;
    }
    
    .cta-section .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .cta-section .btn {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVIDADE - SMALL MOBILE (576px)
============================================ */
@media (max-width: 576px) {
    .services-header h1 {
        font-size: 1.75rem;
    }
    
    .services-header .lead {
        font-size: 1rem;
    }
    
    h2.display-6 {
        font-size: 1.75rem;
    }
    
    .service-list {
        margin: 1.5rem 0;
    }
    
    .service-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .service-item span {
        font-size: 0.9rem;
    }
}

/* ============================================
   ESTILOS PARA IMPRESSÃO
============================================ */
@media print {
    .navbar,
    .whatsapp-float,
    .cta-section,
    .footer {
        display: none;
    }
    
    .service-detail {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
}