/*
Theme Name: Portella Climatização - Final Gold
Author: Leonardo Portella
Version: 23.0 (Pinguim Restaurado)
*/

:root {
    --bg-body: #f8fafc;         
    --bg-card: #ffffff;         
    --text-main: #334155;       
    --text-light: #64748b;      
    --accent: #0284c7;          
    --accent-hover: #0369a1;    
    --dark-section: #1e293b;    
    --green-whats: #22c55e;     
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-space { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.section-pad { padding: 90px 0; } 

.section-title { 
    font-size: 2.4rem; 
    font-weight: 800; 
    margin-bottom: 15px; 
    color: var(--text-main); 
    line-height: 1.2;
}
.section-subtitle { 
    color: var(--accent); 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1.5px; 
    font-size: 0.85rem; 
    display: block; 
    margin-bottom: 10px; 
}

.top-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 10px 0; font-size: 0.9rem; }
.top-info span { margin-right: 20px; color: var(--text-light); }
.top-info i { color: var(--accent); margin-right: 5px; }

.main-header { 
    background: rgba(255, 255, 255, 0.98); 
    position: sticky; top: 0; z-index: 1000; 
    padding: 15px 0; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo img { 
    height: 88px; 
    width: auto;
    transition: 0.3s;
}

.desktop-menu a { 
    color: var(--text-main); font-weight: 600; margin-left: 30px; font-size: 1rem; 
}
.desktop-menu a:hover { color: var(--accent); }

.hero { 
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1621905252507-b354bcad4460?q=80'); 
    background-size: cover; background-position: center; 
    padding: 180px 0 140px; 
    text-align: center; 
    color: white;
}
.hero h1 { 
    font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 25px; 
}
.hero p { 
    font-size: 1.25rem; color: #e2e8f0; max-width: 750px; margin: 0 auto 45px; 
}
.btn-main { 
    background: var(--accent); color: white; padding: 18px 45px; border-radius: 50px; 
    font-weight: 700; display: inline-flex; align-items: center; gap: 10px; 
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
}
.btn-main:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* --- 3. CARROSSEL DE MARCAS (CORREÇÃO DA INTERAÇÃO) --- */
.marcas-section { 
    background: white; 
    padding: 40px 0; 
    border-bottom: 1px solid #e2e8f0; 
    overflow: hidden; 
}

.marcas-track { 
    display: flex; 
    align-items: center; 
    width: max-content; 
    animation: scrollInfinite 40s linear infinite; 
}

/* NOVO: Faz o carrossel parar exatamente onde o cursor está */
.marcas-track:hover {
    animation-play-state: paused;
}

.marca-item {
    padding: 0 40px; /* Troquei margin por padding para aumentar a área de interação */
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca-item img { 
    height: 45px; 
    opacity: 0.4; 
    filter: grayscale(100%); 
    transition: all 0.3s ease;
    transform-origin: center center;
}

/* AJUSTE: O hover agora é no item inteiro, facilitando o acerto do cursor */
.marca-item:hover img { 
    opacity: 1; 
    filter: grayscale(0%); 
    transform: scale(1.15); 
    cursor: pointer;
}

@keyframes scrollInfinite { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

.bg-light { background: #f1f5f9; } 
.bg-white { background: #ffffff; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }

.card { 
    background: white; padding: 45px 35px; border-radius: 16px; 
    border: 1px solid #f1f5f9; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.3s;
}
.card:hover { 
    transform: translateY(-7px); 
    border-color: var(--accent); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.06); 
}
.card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; display: block; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--text-main); }
.card p { color: var(--text-light); font-size: 0.95rem; }

.testimonials-section { 
    background: var(--dark-section); 
    color: white; 
    overflow: hidden; 
}
.testimonials-section .section-title { color: white; }
.testimonials-section .section-subtitle { color: #38bdf8; }

.reviews-slider { margin-top: 60px; width: 100%; }

.reviews-track { 
    display: flex; 
    width: max-content; 
    animation: scrollInfinite 80s linear infinite; 
}

.review-card {
    background: rgba(255,255,255,0.05); 
    padding: 35px; border-radius: 20px; width: 400px;
    border: 1px solid rgba(255,255,255,0.1); 
    flex-shrink: 0;
    margin-right: 30px; 
    transition: all 0.3s ease;
}

.review-card:hover {
    background: rgba(255,255,255,0.15); 
    border-color: var(--accent); 
    transform: scale(1.05); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.stars { color: #fbbf24; margin-bottom: 15px; }
.review-text { font-style: italic; color: #cbd5e1; margin-bottom: 20px; font-size: 1rem; }
.client-name { font-weight: 700; display: block; color: white; }
.client-loc { color: #94a3b8; font-size: 0.85rem; }

footer { 
    background: #ffffff; 
    color: var(--text-light); 
    padding: 80px 0 30px; 
    border-top: 1px solid #e2e8f0; 
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
footer h4 { color: #1e293b; font-size: 1.1rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

.footer-logo-link img { 
    height: 80px; width: auto; 
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
    cursor: pointer;
}

.footer-logo-link:hover img { 
    transform: scale(1.2) rotate(-15deg); 
}

.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { 
    width: 45px; height: 45px; 
    background: #f1f5f9; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    color: var(--text-main); font-size: 1.2rem; transition: 0.3s; 
}
.footer-social a:hover { background: var(--accent); color: white; transform: translateY(-3px); }

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-light); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact p { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--accent); width: 20px; text-align: center; }

.whatsapp-float { 
    position: fixed; bottom: 30px; right: 30px; background: var(--green-whats); color: white; 
    width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 35px; z-index: 999; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); transition: 0.3s; 
}
.whatsapp-float:hover { transform: scale(1.1); background: #1eb954; }

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    margin-top: 60px; 
    padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
}

.copyright { 
    font-size: 0.85rem; color: var(--text-light); opacity: 0.8; margin: 0;
}

.studio-signature { 
    display: flex; align-items: center; gap: 15px; position: relative;
}
.brand-text {
    font-family: 'Montserrat', sans-serif; font-size: 0.7rem; font-weight: 700;
    color: var(--text-light); text-align: left; line-height: 1.3; 
    text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-logo-studio img {
    height: 48px; width: auto; 
    filter: brightness(0.2); 
    transition: all 0.4s ease;
    opacity: 0.8;
    animation: floatStudio 3s ease-in-out infinite;
}
@keyframes floatStudio {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.footer-logo-studio:hover img { 
    animation: none;
    transform: scale(1.1) rotate(-5deg); 
    opacity: 1; filter: brightness(0); 
}

.footer-logo-studio::before, .footer-logo-studio::after {
    content: ''; position: absolute;
    width: 3px; height: 3px; background: var(--accent); 
    border-radius: 50%; opacity: 0; pointer-events: none;
}
.footer-logo-studio::before { top: 50%; left: 50%; }
.footer-logo-studio:hover::before { animation: magicDots 0.8s infinite ease-out; }

@keyframes magicDots {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(15px, -25px) scale(0); opacity: 0; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .logo img { height: 65px; } 
    .review-card { width: 300px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social, .footer-contact p { justify-content: center; }
    .footer-bottom { flex-direction: column-reverse; gap: 20px; text-align: center; }
    .studio-signature { justify-content: center; }
}