/* ===== ESTILOS DA PÁGINA SERVIÇOS ===== */

/* Page Banner - Serviços */
.page-banner {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Services Detail Section - Atualizada */
.services-detail {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Service Detail Individual - Atualizado */
.service-detail {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    scroll-margin-top: 100px;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-detail.reverse {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.service-info {
    flex: 1;
}

.service-info h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    position: relative;
}

.service-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.service-info p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 1.1rem;
}

.service-features {
    list-style: none;
    margin: 2rem 0;
}

.service-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-color);
}

.service-features i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(193, 72, 8, 0.1), rgba(1, 40, 64, 0.1));
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.service-image:hover::before {
    opacity: 1;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.service-image:hover img {
    transform: scale(1.05);
}

/* Placeholder para serviços */
.service-image .image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.service-image .image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.service-image .image-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.service-image .image-placeholder p {
    font-size: 1rem;
    opacity: 0.9;
    color: inherit;
    margin: 0;
}

/* Work Process Section - Atualizada */
.work-process {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    color: white;
    text-align: center;
}

.work-process .section-title {
    color: white;
    margin-bottom: 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.process-step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.process-step h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.process-step p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

/* CTA Section - Serviços */
.cta.services-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
}

.cta.services-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta.services-cta .btn {
    background: var(--secondary-color);
    color: white;
    border: 2px solid white;
}

.cta.services-cta .btn:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Estilo para destacar a seção quando a âncora é acessada */
.service-detail:target {
    animation: highlight 2s ease;
    background: rgba(255, 255, 255, 0.98);
}

@keyframes highlight {
    0% {
        background: rgba(255, 255, 255, 0.95);
        transform: scale(1);
    }
    50% {
        background: rgba(255, 255, 255, 0.98);
        transform: scale(1.02);
    }
    100% {
        background: rgba(255, 255, 255, 0.95);
        transform: scale(1);
    }
}

/* Animações para a página Serviços */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeitos de entrada para as seções */
.service-detail,
.work-process,
.cta {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animações para os banners */
.page-banner h1.animate-in {
    animation: slideInDown 0.8s ease-out;
}

.page-banner p.animate-in {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Keyframes para as animações */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Se quiser adicionar um delay diferente para o parágrafo */
.page-banner p.animate-in {
    animation-delay: 0.3s;
}

/* Responsividade para a página Serviços */
@media (max-width: 992px) {
    .service-detail {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .service-detail.reverse {
        flex-direction: column;
    }

    .service-image img,
    .service-image .image-placeholder {
        height: 250px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2.2rem;
    }

    .page-banner p {
        font-size: 1.1rem;
    }

    .service-info h2 {
        font-size: 1.8rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step {
        padding: 1.5rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-banner {
        padding: 120px 0 60px;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .services-detail {
        padding: 60px 0;
    }

    .service-detail {
        padding: 1.5rem;
    }

    .service-info h2 {
        font-size: 1.6rem;
    }

    .cta.services-cta h2 {
        font-size: 2rem;
    }

    .cta.services-cta p {
        font-size: 1.1rem;
    }
}