/* =========================================
   REFINAMENTOS PREMIUM - IDENTIDADE SOLAR
   ========================================= */

/* Animação de brilho laranja para elementos solares */
@keyframes orangeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(255, 133, 1, .4));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 133, 1, .7));
    }
}

/* Hero com imagem de fundo solar */
.hero {
    background-image: 
        linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 35, 66, 0.92) 100%),
        url('../images/hero-solar-residential.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Padrão de painéis solares no fundo - mais sutil e premium */
.hero-solar-pattern {
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(255, 107, 0, 0.02) 0px,
            transparent 1px,
            transparent 40px,
            rgba(255, 107, 0, 0.02) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 184, 0, 0.02) 0px,
            transparent 1px,
            transparent 40px,
            rgba(255, 184, 0, 0.02) 41px
        );
    background-size: 80px 80px;
}

/* Badge mais premium e solar */
.badge {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.25) 0%, rgba(255, 107, 0, 0.15) 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
    animation: elementGlow 1s ease-in-out infinite;
    backdrop-filter: blur(15px);
}

.badge i {
    filter: drop-shadow(0 2px 4px rgba(255, 107, 0, 0.5));
    animation: orangeGlow 1s ease-in-out infinite;
}

/* Indicador solar mais proeminente e elegante */
.solar-indicator {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.solar-indicator i {
    font-size: 140px;
    filter: drop-shadow(0 8px 24px rgba(255, 184, 0, 0.4));
    animation: orangeGlow 1s ease-in-out infinite;
}

/* =========================================
   INFOGRÁFICO PREMIUM: LEAD FRIO VS INDICADO
   ========================================= */

.infographic-container {
    background: white;
    border-radius: 24px;
    padding: 48px;
    margin: 64px 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.infographic-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.infographic-header {
    text-align: center;
    margin-bottom: 40px;
}

.infographic-header h3 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.infographic-header h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
}

.infographic-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}

.comparison-column {
    background: var(--bg-gray);
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
}

.comparison-column.cold-lead {
    border: 2px solid #FF4444;
}

.comparison-column.warm-lead {
    border: 2px solid #00CC66;
    background: linear-gradient(135deg, #F0FFF7 0%, var(--bg-gray) 100%);
}

.column-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.column-header i {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.cold-lead .column-header i {
    color: #FF4444;
}

.warm-lead .column-header i {
    color: #00CC66;
}

/* Imagem de tráfego pago */
.column-header .traffic-icon {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.column-header h4 {
    font-family: var(--font-headings);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-item {
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-2px);
}

.metric-item.negative {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFF 100%);
    border-left: 4px solid #FF4444;
}

.metric-item.positive {
    background: linear-gradient(135deg, #E5FFE5 0%, #FFF 100%);
    border-left: 4px solid #00CC66;
}

.metric-value {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1;
}

.metric-item.negative .metric-value {
    color: #CC0000;
}

.metric-item.positive .metric-value {
    color: #009944;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.comparison-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--primary-color) 20%,
        var(--primary-color) 80%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.vs-badge {
    background: var(--gradient-primary);
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 
        0 8px 24px rgba(255, 107, 0, 0.3),
        0 0 0 4px white,
        0 0 0 6px var(--primary-color);
    z-index: 2;
    position: relative;
}

/* =========================================
   INFOGRÁFICO: SISTEMA 4P
   ========================================= */

.system-4p-infographic {
    position: relative;
    padding: 20px 0;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.08);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pillar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar-item:hover::before {
    opacity: 1;
}

.pillar-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.2);
    animation: none;
}

.pillar-item:nth-child(1) { border-left-color: #FF6B00; }
.pillar-item:nth-child(2) { border-left-color: #FFB800; }
.pillar-item:nth-child(3) { border-left-color: #00D4FF; }
.pillar-item:nth-child(4) { border-left-color: #00CC66; }

.pillar-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.3);
    animation: elementGlow 1s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.pillar-item:nth-child(2) .pillar-icon {
    background: linear-gradient(135deg, #FFB800 0%, #FF8800 100%);
}

.pillar-item:nth-child(3) .pillar-icon {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
}

.pillar-item:nth-child(4) .pillar-icon {
    background: linear-gradient(135deg, #00CC66 0%, #008844 100%);
}

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

.pillar-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.85);
}

/* =========================================
   BOOK MOCKUP COM IDENTIDADE SOLAR
   ========================================= */

/* Estilos removidos - usando imagem real do mockup */

.book-badge {
    background: var(--gradient-primary);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
    animation: elementGlow 1s ease-in-out infinite;
}

/* =========================================
   CARDS DE PROBLEMAS - CONTEXTO SOLAR
   ========================================= */

.problem-card {
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, transparent 100%);
    transition: top 0.4s ease;
}

.problem-card:hover::before {
    top: 0;
}

/* Ícone de economia/conta de luz */
.icon-electricity {
    position: relative;
}

.icon-electricity::after {
    content: '⚡';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.2rem;
}

/* =========================================
   SEÇÃO DE BENEFÍCIOS - VISUAL SOLAR
   ========================================= */

.benefit-icon {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.benefit-card:hover .benefit-icon::before {
    opacity: 1;
}

/* =========================================
   ELEMENTOS DECORATIVOS SOLARES
   ========================================= */

.solar-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.05;
    z-index: 1;
}

.solar-decoration.top-left {
    top: 10%;
    left: 5%;
    font-size: 8rem;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 4px rgba(255, 133, 1, .4));
    animation: orangeGlow 1s ease-in-out infinite;
}

.solar-decoration.bottom-right {
    bottom: 10%;
    right: 5%;
    font-size: 8rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 4px rgba(255, 133, 1, .4));
    animation: orangeGlow 1s ease-in-out infinite;
}

/* =========================================
   SEÇÃO DE PROVA SOCIAL - LOGOS CLIENTES
   ========================================= */

.clients-section {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 184, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.clients-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 2;
}

.clients-header h2 {
    font-family: var(--font-headings);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.clients-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Container do carrossel */
.logos-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Gradiente de fade nas laterais */
.logos-carousel-container::before,
.logos-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 3;
    pointer-events: none;
}

.logos-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}

.logos-carousel-container::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, var(--bg-dark) 100%);
}

/* Track do carrossel */
.logos-carousel-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll-infinite 40s linear infinite;
    will-change: transform;
}

.logos-carousel-track:hover {
    animation-play-state: paused;
}

/* Animação de scroll infinito */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Item do logo */
.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    transition: all 0.4s ease;
}

.logo-item img {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* =========================================
   RESPONSIVIDADE PREMIUM
   ========================================= */

@media (max-width: 968px) {
    .infographic-comparison {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .comparison-divider {
        order: 2;
        height: 60px;
    }
    
    .comparison-divider::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
    }
    
    .comparison-column.cold-lead {
        order: 1;
    }
    
    .comparison-column.warm-lead {
        order: 3;
    }
    
    .pillar-item {
        flex-direction: column;
        text-align: center;
    }
    
    .pillar-icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .infographic-container {
        padding: 32px 24px;
    }
    
    .infographic-header h3 {
        font-size: 1.4rem;
    }
    
    .metric-value {
        font-size: 1.6rem;
    }
    
    .solar-indicator {
        width: 150px;
        height: 150px;
    }
    
    .solar-indicator i {
        font-size: 80px;
    }
    
    /* Logos Carousel Mobile */
    .clients-section {
        padding: 60px 0;
    }
    
    .clients-header {
        margin-bottom: 40px;
    }
    
    .logos-carousel-track {
        gap: 40px;
        animation-duration: 30s;
    }
    
    .logo-item {
        padding: 8px 16px;
    }
    
    .logo-item img {
        height: 34px;
        max-width: 140px;
    }
    
    .logos-carousel-container::before,
    .logos-carousel-container::after {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .vs-badge {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .pillar-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .infographic-container {
        padding: 24px 16px;
    }
    
    /* Logos Carousel Extra Small */
    .clients-section {
        padding: 48px 0;
    }
    
    .logos-carousel-track {
        gap: 32px;
        animation-duration: 25s;
    }
    
    .logo-item img {
        height: 28px;
        max-width: 120px;
    }
    
    .logos-carousel-container::before,
    .logos-carousel-container::after {
        width: 40px;
    }
}