/*
Theme Name: Solner Energia
Theme URI: https://solnerenergia.com.br
Description: Tema WordPress customizado para Solner Energia - Convertido de Webflow mantendo 100% de fidelidade visual e funcional
Author: Solner Energia
Author URI: https://solnerenergia.com.br
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solner
Tags: energia-solar, business, one-column, two-columns, custom-menu, featured-images, custom-logo

Tema desenvolvido para manter total compatibilidade com o design original exportado do Webflow.
*/

/* Este arquivo é apenas o header do tema. Os estilos reais estão em assets/css/ */

/* Fonte global */
@font-face {
    font-family: 'Noir Pro';
    src: url('assets/fonts/noir-pro-medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Noir Pro';
    src: url('assets/fonts/noir-pro-light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

/* Reset global - garante comportamento idêntico em TODAS as páginas */
*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Noir Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Sol decorativo nos títulos de seção */
.section-header h2::before,
.section-header-center h2::before {
    content: none;
}

/* ============================================
   PRELOADER PREMIUM - TODAS AS PÁGINAS
============================================ */
#solner-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #001489;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 32px;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

#solner-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 140px;
    opacity: 0;
    animation: preloader-fade-in 0.5s ease 0.1s forwards;
}

.preloader-bar-track {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    overflow: hidden;
    opacity: 0;
    animation: preloader-fade-in 0.5s ease 0.2s forwards;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFB600, #dc582a);
    border-radius: 100px;
    animation: preloader-fill 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes preloader-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes preloader-fill {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ============================================
   DEPOIMENTOS GLOBAIS (portfolio, home, etc.)
============================================ */
.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.depoimento-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}

.depoimento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0,0,0,0.15);
    border-color: #dc582a;
}

.depoimento-rating {
    font-size: 18px;
    color: #FFB600;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.depoimento-texto {
    font-size: 15px;
    color: #525252;
    line-height: 1.75;
    margin: 0 0 24px;
    font-style: italic;
}

.depoimento-autor {
    display: flex;
    align-items: center;
    gap: 16px;
}

.autor-inicial {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #001489 0%, #0a2b9e 50%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.autor-info strong {
    display: block;
    font-size: 15px;
    color: #262626;
    font-weight: 600;
}

.autor-info span {
    font-size: 13px;
    color: #737373;
}

.google-rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border: 2px solid #e5e5e5;
    max-width: fit-content;
    margin: 0 auto;
}

.google-rating-badge img { width: 36px; height: 36px; }

.google-rating-badge .rating-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.google-rating-badge .rating-info strong {
    font-size: 24px;
    font-weight: 700;
    color: #262626;
}

.google-rating-badge .rating-info span {
    font-size: 13px;
    color: #737373;
}

.ver-avaliacoes {
    padding: 8px 20px;
    background: linear-gradient(135deg, #dc582a, #ea580c);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ver-avaliacoes:hover { opacity: 0.9; transform: translateY(-1px); }

@media (max-width: 1024px) {
    .depoimentos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .depoimentos-grid { grid-template-columns: 1fr; gap: 24px; }
    .google-rating-badge { flex-wrap: wrap; padding: 20px 24px; gap: 16px; }
}
