/* =========================================
   AJUSTE CIRÚRGICO - SOLUTION SECTION
   Não altera outras seções da página
   ========================================= */

@keyframes elementGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 107, 0, 0.2);
    }
    50% {
        box-shadow: 0 12px 32px rgba(255, 107, 0, 0.4);
    }
}

/* SEÇÃO SOLUTION - Layout e Estrutura */
.solution-section {
    padding: 80px 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.solution-content {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* BLOCO DE TEXTO - Centralização e Hierarquia */
.solution-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0;
    text-align: center;
    align-items: center;
}

.solution-text .section-tag {
    display: inline-block;
    background: rgba(255, 107, 0, 0.15);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.solution-text h2 {
    font-family: var(--font-headings);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 100%;
    text-align: center;
}

.solution-text .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 100%;
    text-align: center;
}

/* CARDS DOS PILARES - Grid 2x2 */
.system-4p-infographic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 0;
}

.pillar-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 28px 24px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    justify-content: flex-start;
}

.pillar-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 0, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.2);
}

/* Bordas coloridas para cada pilar */
.pillar-item:nth-child(1) { 
    border-top: 3px solid #FF6B00; 
}
.pillar-item:nth-child(2) { 
    border-top: 3px solid #FFB800; 
}
.pillar-item:nth-child(3) { 
    border-top: 3px solid #00D4FF; 
}
.pillar-item:nth-child(4) { 
    border-top: 3px solid #00CC66; 
}

/* Ícones dos Pilares */
.pillar-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
    animation: elementGlow 1s ease-in-out infinite;
    flex-shrink: 0;
}

.pillar-item:nth-child(2) .pillar-icon {
    background: linear-gradient(135deg, #FFB800 0%, #FF8800 100%);
    box-shadow: 0 4px 20px rgba(255, 184, 0, 0.3);
}

.pillar-item:nth-child(3) .pillar-icon {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.pillar-item:nth-child(4) .pillar-icon {
    background: linear-gradient(135deg, #00CC66 0%, #008844 100%);
    box-shadow: 0 4px 20px rgba(0, 204, 102, 0.3);
}

/* Conteúdo dos Pilares */
.pillar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pillar-content h4 {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    line-height: 1.3;
}

.pillar-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* MOCKUP DO EBOOK - Lado Direito */
.solution-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
}

.book-mockup {
    perspective: 1200px;
    position: relative;
    z-index: 2;
}

.book-cover {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.5));
    transform: rotateY(-8deg) rotateX(3deg);
    transition: transform 0.6s ease, filter 0.6s ease;
    border-radius: 8px;
}

.book-mockup:hover .book-cover {
    transform: rotateY(0deg) rotateX(0deg);
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6));
}

/* RESPONSIVIDADE - TABLET */
@media (max-width: 1024px) {
    .solution-content {
        gap: 60px;
    }
    
    .solution-text {
        padding-right: 20px;
    }
    
    .solution-text h2 {
        font-size: 2.4rem;
    }
    
    .book-cover {
        max-width: 360px;
    }
}

/* RESPONSIVIDADE - TABLET VERTICAL */
@media (max-width: 900px) {
    .solution-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .solution-text {
        padding-right: 0;
        text-align: center;
        align-items: center;
    }
    
    .solution-text .section-tag,
    .solution-text h2,
    .solution-text .lead {
        max-width: 100%;
    }
    
    .solution-text .section-tag {
        margin-left: auto;
        margin-right: auto;
    }
    
    .system-4p-infographic {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .solution-image {
        padding-left: 0;
        order: 2;
    }
    
    .book-cover {
        max-width: 400px;
    }
}

/* RESPONSIVIDADE - MOBILE */
@media (max-width: 640px) {
    .solution-section {
        padding: 80px 0;
    }
    
    .solution-content {
        gap: 48px;
    }
    
    .solution-text h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .solution-text .lead {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 36px;
    }
    
    /* Cards empilhados em coluna única */
    .system-4p-infographic {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pillar-item {
        padding: 24px 20px;
        min-height: auto;
    }
    
    .pillar-icon {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
        margin-bottom: 14px;
    }
    
    .pillar-content h4 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }
    
    .pillar-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .book-cover {
        max-width: 280px;
    }
}

/* MOBILE PEQUENO */
@media (max-width: 400px) {
    .solution-text h2 {
        font-size: 1.75rem;
    }
    
    .solution-text .lead {
        font-size: 1rem;
    }
    
    .book-cover {
        max-width: 240px;
    }
    
    .pillar-item {
        padding: 20px 16px;
    }
}
