/* ============================================
   Brutos Solar - Site Institucional
   Design: Clean, profissional, alta conversão
   ============================================ */

:root {
    /* Paleta: energia, sustentabilidade, confiança */
    --color-primary: #F59E0B;
    --color-primary-dark: #D97706;
    --color-primary-light: #FBBF24;
    --color-secondary: #0F766E;
    --color-secondary-dark: #0D5D56;
    --color-dark: #1E293B;
    --color-dark-soft: #334155;
    --color-text: #475569;
    --color-text-light: #64748B;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #0F172A;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #20BD5A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-dark);
}

.logo-text {
    color: var(--color-dark);
}

.logo-accent {
    color: var(--color-primary);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--color-dark-soft);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--color-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white !important;
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-header {
    padding: 10px 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition);
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 30%, #FDE68A 60%, #FCD34D 100%);
    opacity: 0.4;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary {
    background: var(--color-whatsapp);
    color: white !important;
}

.btn-primary:hover {
    background: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--color-secondary) !important;
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: white !important;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 28px;
    font-size: 1.05rem;
}

/* Hero Visual - Ilustração CSS */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.solar-visual {
    position: relative;
    width: 320px;
    height: 320px;
}

.sun-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.5), 0 0 120px rgba(245, 158, 11, 0.2);
    animation: pulse-sun 3s ease-in-out infinite;
}

.energy-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 10deg,
        rgba(245, 158, 11, 0.15) 10deg 20deg
    );
    border-radius: 50%;
    animation: rotate-rays 20s linear infinite;
}

.panel-lines {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.3) 0%, rgba(15, 118, 110, 0.1) 100%);
    border-radius: 8px;
    border: 2px solid rgba(15, 118, 110, 0.2);
}

.panel-lines::before,
.panel-lines::after {
    content: '';
    position: absolute;
    top: 10px;
    width: 2px;
    height: 80px;
    background: rgba(15, 118, 110, 0.3);
}

.panel-lines::before {
    left: 33%;
}

.panel-lines::after {
    right: 33%;
}

@keyframes pulse-sun {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.95; }
}

@keyframes rotate-rays {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   SEÇÕES GERAIS
   ============================================ */

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* ============================================
   BENEFÍCIOS
   ============================================ */

.beneficios {
    background: var(--color-bg-alt);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.beneficio-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.beneficio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.beneficio-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.beneficio-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.beneficio-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.beneficios-cta {
    text-align: center;
}

/* ============================================
   COMO FUNCIONA
   ============================================ */

.passos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.passo-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.passo-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.passo-numero {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.passo-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.passo-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.passos-cta {
    text-align: center;
}

/* ============================================
   CONFIANÇA
   ============================================ */

.confianca {
    background: var(--color-bg-alt);
}

.confianca-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.confianca-card {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.confianca-card:hover {
    box-shadow: var(--shadow-md);
}

.confianca-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.confianca-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.confianca-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.confianca-frases {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.frase-destaque {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 1rem;
}

/* ============================================
   PARA QUEM
   ============================================ */

.para-quem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.para-quem-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.para-quem-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.para-quem-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.para-quem-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.para-quem-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.btn-outline {
    background: transparent;
    color: var(--color-whatsapp) !important;
    border: 2px solid var(--color-whatsapp);
}

.btn-outline:hover {
    background: var(--color-whatsapp);
    color: white !important;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--color-bg-alt);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    padding: 80px 0;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 16px;
}

.cta-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.btn-cta-final {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 20px 40px;
    font-size: 1.2rem;
    background: var(--color-whatsapp) !important;
}

.btn-cta-final:hover {
    background: var(--color-whatsapp-hover) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   RODAPÉ
   ============================================ */

.footer {
    background: var(--color-bg-dark);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-accent {
    color: var(--color-primary-light);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-size: 0.95rem;
}

.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-whatsapp);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-whatsapp:hover {
    color: var(--color-primary-light);
}

.footer-region {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credit {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-credit a:hover {
    color: var(--color-primary-light);
}

/* ============================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: var(--color-whatsapp-hover);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ============================================
   ANIMAÇÕES DE SCROLL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .solar-visual {
        width: 260px;
        height: 260px;
    }

    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .passos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .confianca-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .btn-header {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        box-shadow: var(--shadow-lg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .passos-grid {
        grid-template-columns: 1fr;
    }

    .confianca-grid {
        grid-template-columns: 1fr;
    }

    .confianca-frases {
        flex-direction: column;
        align-items: center;
    }

    .para-quem-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    section {
        padding: 60px 0;
    }
}
