/* styles/processos.css - VERSÃO CORRIGIDA */

.processo-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #121212 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.processo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold-primary) 50%,
            transparent 100%);
    opacity: 0.5;
}

.processo-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold-primary) 50%,
            transparent 100%);
    opacity: 0.5;
}

.processo-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    margin-top: 60px;
    align-items: stretch;
}

/* Linha de conexão entre os passos */
.processo-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.3) 20%,
            rgba(212, 175, 55, 0.6) 50%,
            rgba(212, 175, 55, 0.3) 80%,
            transparent 100%);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Número do passo */
.step::before {
    content: attr(data-step);
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gold-primary);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Georgia', serif;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    z-index: 3;
}

.step:nth-child(1)::before {
    content: '01';
}

.step:nth-child(2)::before {
    content: '02';
}

.step:nth-child(3)::before {
    content: '03';
}

.step:nth-child(4)::before {
    content: '04';
}

.step-content {
    background: linear-gradient(145deg,
            rgba(26, 26, 26, 0.95) 0%,
            rgba(18, 18, 18, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 15px;
    padding: 30px 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.step-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold-primary) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.step:hover .step-content {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.step:hover .step-content::after {
    opacity: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.1) 0%,
            rgba(212, 175, 55, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold-primary);
    font-size: 2rem;
    transition: all 0.5s ease;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.step-icon::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.step:hover .step-icon {
    background: linear-gradient(135deg,
            var(--gold-primary) 0%,
            var(--gold-dark) 100%);
    color: var(--black);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    font-family: 'Georgia', serif;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    text-align: center;
}

.step h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
    opacity: 1;
}

.step:hover h3::after {
    width: 60px;
}

.step p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 15px;
    font-weight: 300;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
}

.step-content * {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 1200px) {
    .processo-steps {
        gap: 25px;
    }

    .step-content {
        padding: 25px 15px;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .step h3 {
        font-size: 1.4rem;
    }

    .step p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .processo-steps::before {
        top: 35px;
    }
}

@media (max-width: 992px) {
    .processo-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .processo-steps::before {
        display: none;
    }

    .step::before {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .step-content {
        padding: 30px 20px;
    }
    
    .step:nth-child(odd) {
        margin-right: 0;
    }
    
    .step:nth-child(even) {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .processo-section {
        padding: 60px 0;
    }

    .processo-steps {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 40px;
    }

    .step {
        max-width: 100%;
        width: 100%;
    }

    .step-content {
        padding: 25px 20px;
        max-width: 100%;
        margin: 0 auto;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .step h3 {
        font-size: 1.4rem;
    }

    .step p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .step::before {
        top: -35px;
    }
}

@media (max-width: 576px) {
    .processo-section {
        padding: 50px 0;
    }

    .processo-steps {
        gap: 40px;
        margin-top: 30px;
    }

    .step-content {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .step h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .step p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .step::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: -30px;
    }
}

@media (max-width: 480px) {
    .processo-steps {
        gap: 35px;
    }

    .step-content {
        padding: 18px 12px;
    }

    .step-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .step h3 {
        font-size: 1.2rem;
    }

    .step p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .step:hover .step-content {
        transform: translateY(-5px);
    }
}

/* Corrige problemas de texto e layout em telas muito pequenas */
@media (max-width: 360px) {
    .step-content {
        padding: 15px 10px;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step::before {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
        top: -25px;
    }
}

/* Remove animações em dispositivos móveis para melhor performance */
@media (max-width: 768px) {
    .step-icon::after {
        animation: none;
    }
    
    .step:hover .step-content {
        transform: translateY(-5px);
    }
    
    .step:hover .step-icon {
        transform: scale(1.05);
    }
}

/* Garante que o texto não sobreponha */
.step-content * {
    max-width: 100%;
    word-wrap: break-word;
}