/* ===========================
   PARALLAX HERO
=========================== */
.parallax {
    background-image: url('../assets/SOLUCOES_PARALAX.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.parallax h1 {
    position: relative;
    color: white;
    font-size: 4rem;
    text-align: center;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ===========================
   SOLUÇÕES CONTAINER
=========================== */
.solucoes {
    padding: 0;
    background-color: #f8f8f8;
}

.solucao-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 10%;
    margin-bottom: 0;
}

.solucao-section:nth-child(odd) {
    background-color: #ffffff;
}

.solucao-section:nth-child(even) {
    background-color: #f8f8f8;
}

.solucao-titulo {
    font-size: 2.5rem;
    color: #ff6a00;
    margin-bottom: 40px;
    /* text-align: center; */
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.solucao-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff6a00, transparent);
    border-radius: 2px;
    transition: transform 0.8s ease-out;
}

[data-aos="line-grow"].aos-animate::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===========================
   GRID DE CARDS
=========================== */
.solucao-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.solucao-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 400px;
    min-height: 350px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.solucao-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.solucao-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.solucao-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solucao-card:hover .solucao-card-image img {
    transform: scale(1.15);
}

.solucao-card-content {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    background-color: #ff6a00;
}

.solucao-card-title {
    font-size: 1.25rem;
    color: white;
    margin: 0;
    font-weight: 600;
    text-align: center;
}

/* ===========================
   PDF SECTION
=========================== */
.pdf {
    width: 100%;
    background-color: #ffffff;
    margin-top: 4%;
    border-top: solid 10px #ff5500;
    border-bottom: solid 10px #ff5500;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.pdf h2 {
    font-size: 2rem;
    color: #ff6a00;
    text-align: center;
    margin-bottom: 40px;
}

.gallery {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    max-width: 900px;
    width: 100%;
}

.gallery img {
    width: 210px;
    height: 297px;
    object-fit: cover;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.05);
}

.download-button {
    background-color: #ff5500;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.download-button:hover {
    background-color: #e05a00;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media screen and (max-width: 1024px) {
    .solucao-grid {
        gap: 24px;
    }
    
    .solucao-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 280px;
        min-height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .parallax {
        height: 300px;
        background-attachment: scroll;
    }

    .parallax h1 {
        font-size: 2.5rem;
    }

    .solucoes {
        padding: 60px 5%;
    }

    .solucao-titulo {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .solucao-grid {
        gap: 24px;
    }
    
    .solucao-card {
        flex: 0 0 100%;
        min-width: unset;
        max-width: 100%;
        min-height: 300px;
    }

    .solucao-card-image {
        height: 220px;
    }

    .pdf {
        padding: 40px 5%;
    }

    .gallery {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .gallery img:nth-child(3) {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .parallax h1 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .solucao-titulo {
        font-size: 1.75rem;
    }

    .solucao-card-content {
        padding: 20px;
    }

    .solucao-card-title {
        font-size: 1.1rem;
    }

    .gallery img:nth-child(2) {
        display: none;
    }
}

@media screen and (max-width: 950px) {
    .gallery img:nth-child(4) {
        display: none;
    }
}
