/*
  Autoria: Wanderson - https://wa.me/35992629025
  Projeto: SuaSolar - Site institucional de energia solar
  Versao: 1.0.0
  Ultima modificacao: 08/07/2026 20:43 (UTC-03:00)
*/

/* ================= VARIAVEIS E BASE ================= */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --dark: #0f172a;
    --dark-2: #020617;
    --light: #f8fafc;
    --text: #334155;
    --muted: #64748b;
    --green: #16a34a;
    --whats: #25d366;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
    --max-width: 1200px;
    --header-height: 78px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--light);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================= BOTOES ================= */
.btn-primario {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}
.btn-primario:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(249, 115, 22, 0.5);
}

.btn-whats {
    background: var(--whats);
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}
.btn-whats:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.5);
}

.btn-secundario {
    background: transparent;
    color: var(--dark);
    padding: 15px 34px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--border);
    transition: border-color 0.3s, color 0.3s;
}
.btn-secundario:hover { border-color: var(--primary); color: var(--primary); }

/* ================= HEADER / NAV ================= */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--primary); }
.logo .logo-icon { font-size: 22px; }

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.ativo { color: var(--primary); }

.btn-contato-nav {
    background-color: var(--dark);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s;
}
.btn-contato-nav:hover { background-color: var(--primary); }

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--dark);
    background: none;
    border: none;
    line-height: 1;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.35s ease;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    .nav-links.aberto { transform: translateY(0); }
    .nav-links a {
        width: 100%;
        padding: 16px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }
    .btn-contato-nav {
        text-align: center;
        margin-top: 14px;
        border-bottom: none !important;
    }
    .menu-toggle { display: block; }
}

/* ================= SECOES GENERICAS ================= */
.secao { padding: 90px 0; }
.secao-alt { background-color: #fff; }
.secao-escura { background-color: var(--dark); color: #fff; }

.cabecalho-secao { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.tag-secao {
    display: inline-block;
    background: rgba(249, 115, 22, 0.12);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}
.titulo-secao { font-size: clamp(26px, 4vw, 36px); color: var(--dark); font-weight: 800; line-height: 1.2; }
.secao-escura .titulo-secao { color: #fff; }
.subtitulo-secao { color: var(--muted); margin-top: 14px; font-size: 17px; }
.secao-escura .subtitulo-secao { color: #cbd5e1; }

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.9)),
                url('https://images.unsplash.com/photo-1509391366360-1e97d5261688?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    color: #fff;
    padding: calc(var(--header-height) + 40px) 0 60px;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero h1 {
    font-size: clamp(32px, 5.5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: clamp(16px, 2vw, 19px); color: #cbd5e1; margin-bottom: 36px; max-width: 640px; }
.hero-botoes { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero .btn-secundario { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn-secundario:hover { border-color: var(--primary); color: var(--primary); }

/* Faixa de indicadores */
.faixa-numeros {
    background: var(--primary);
    color: #fff;
    padding: 36px 0;
}
.grid-numeros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
}
.numero-item strong { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.numero-item span { font-size: 14px; opacity: 0.9; }

/* Hero interno (paginas secundarias) */
.hero-interno {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.92)),
                url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: #fff;
    text-align: center;
    padding: calc(var(--header-height) + 70px) 0 70px;
}
.hero-interno h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; margin-bottom: 14px; }
.hero-interno p { color: #cbd5e1; max-width: 620px; margin: 0 auto; font-size: 17px; }
.breadcrumb { color: #94a3b8; font-size: 14px; margin-top: 18px; }
.breadcrumb a:hover { color: var(--primary); }

/* ================= SIMULADOR ================= */
.secao-simulador { padding: 90px 0; background-color: var(--light); display: flex; justify-content: center; }
.sim-box {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    width: 100%;
    padding: 40px;
    border: 1px solid var(--border);
}
.sim-header { text-align: center; margin-bottom: 30px; }
.sim-header h2 { color: var(--primary); font-weight: 900; font-size: 26px; }
.sim-header p { color: var(--muted); margin-top: 5px; }

.sim-btn-abrir {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
    animation: pulse 2s infinite;
}
.sim-btn-abrir:hover { animation: none; transform: translateY(-2px); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

#area-formulario-sim { display: none; animation: slideDown 0.5s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.sim-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.sim-input {
    width: 100%; padding: 16px; border: 2px solid var(--border); border-radius: 10px;
    font-size: 16px; margin-bottom: 20px; background: var(--light); transition: 0.3s;
}
.sim-input:focus { border-color: var(--primary); outline: none; background: #fff; }
.sim-ou { text-align: center; color: #94a3b8; font-weight: bold; font-size: 12px; margin: 10px 0 20px; }

.sim-btn-calc {
    width: 100%; background: var(--dark); color: #fff; border: none;
    padding: 18px; border-radius: 10px; font-weight: 700; font-size: 16px; cursor: pointer;
    transition: background 0.3s;
}
.sim-btn-calc:hover { background: #000; }

#resultado-area-sim { display: none; margin-top: 30px; border-top: 2px dashed #cbd5e1; padding-top: 20px; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.sim-card { padding: 15px; text-align: center; border-radius: 12px; border: 1px solid var(--border); }
.sim-card h4 { font-size: 11px; text-transform: uppercase; margin-bottom: 5px; }
.sim-card.antes { background: #fef2f2; } .sim-card.antes .valor { color: #dc2626; font-size: 22px; font-weight: 800; }
.sim-card.depois { background: #f0fdf4; } .sim-card.depois h4 { color: #166534; }
.sim-card.depois .valor { color: var(--green); font-size: 22px; font-weight: 800; }
.sim-alerta { font-size: 11px; color: var(--muted); background: #f1f5f9; padding: 12px; border-radius: 8px; text-align: center; }

.sim-tabela { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.sim-tabela th { background: var(--light); padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.sim-tabela td { padding: 12px; border-bottom: 1px solid #f1f5f9; }

/* CTA WhatsApp abaixo do simulador */
.sim-cta-whats {
    display: none;
    margin-top: 24px;
    text-align: center;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 22px;
}
.sim-cta-whats p { color: #166534; font-weight: 600; margin-bottom: 14px; }
.sim-cta-whats .btn-whats { width: 100%; justify-content: center; }

/* ================= CARDS / GRIDS ================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--light);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card .icon-card { font-size: 40px; display: block; margin-bottom: 12px; }
.card h3 { color: var(--dark); margin-bottom: 10px; font-size: 20px; }
.card p { color: var(--text); font-size: 15px; }

.secao-alt .card { background: #fff; border-color: var(--border); }

/* ================= COMO FUNCIONA ================= */
.passos-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.passo { position: relative; padding: 20px; }
.passo-numero {
    width: 60px; height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}
.passo h4 { font-size: 18px; margin-bottom: 10px; }
.passo p { font-size: 14px; color: #cbd5e1; }

/* ================= DEPOIMENTOS ================= */
.grid-depoimentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.depoimento {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.depoimento .estrelas { color: #facc15; margin-bottom: 12px; font-size: 16px; }
.depoimento p { font-style: italic; color: var(--text); margin-bottom: 18px; }
.depoimento .autor { display: flex; align-items: center; gap: 12px; }
.depoimento .autor .foto {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.depoimento .autor strong { color: var(--dark); display: block; font-size: 15px; }
.depoimento .autor span { font-size: 13px; color: var(--muted); }

/* ================= GALERIA / SOBRE ================= */
.bloco-duplo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.bloco-duplo img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }
.bloco-duplo h2 { font-size: clamp(24px, 3.5vw, 34px); color: var(--dark); margin-bottom: 18px; font-weight: 800; }
.bloco-duplo p { margin-bottom: 16px; }
.lista-check li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.lista-check li::before { content: "✔"; color: var(--green); font-weight: 800; }

@media (max-width: 800px) {
    .bloco-duplo { grid-template-columns: 1fr; gap: 30px; }
    .bloco-duplo.inverter img { order: -1; }
}

/* ================= FAQ ================= */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-pergunta {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 20px; font-size: 16px; font-weight: 700; color: var(--dark);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-pergunta .sinal { color: var(--primary); font-size: 22px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.aberto .sinal { transform: rotate(45deg); }
.faq-resposta { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 20px; color: var(--text); }
.faq-item.aberto .faq-resposta { max-height: 400px; padding-bottom: 20px; }

/* ================= BLOG ================= */
.grid-blog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card img { height: 200px; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .post-cat { color: var(--primary-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.post-card h3 { color: var(--dark); font-size: 19px; margin: 8px 0 12px; line-height: 1.3; }
.post-card p { font-size: 14px; color: var(--muted); flex: 1; }
.post-card .post-link { color: var(--primary); font-weight: 700; margin-top: 16px; font-size: 15px; }

/* Artigo */
.artigo { max-width: 760px; margin: 0 auto; }
.artigo .artigo-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.artigo img.destaque { border-radius: var(--radius); margin-bottom: 30px; width: 100%; }
.artigo h2 { color: var(--dark); font-size: 26px; margin: 34px 0 14px; }
.artigo h3 { color: var(--dark); font-size: 20px; margin: 26px 0 12px; }
.artigo p { margin-bottom: 18px; font-size: 17px; }
.artigo ul { margin: 0 0 18px 22px; list-style: disc; }
.artigo ul li { margin-bottom: 8px; }
.artigo blockquote {
    border-left: 4px solid var(--primary);
    background: var(--light);
    padding: 16px 22px;
    border-radius: 8px;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--dark);
}
.artigo-cta {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 34px;
    text-align: center;
    margin-top: 40px;
}
.artigo-cta h3 { color: #fff; font-size: 22px; margin-bottom: 12px; }
.artigo-cta p { color: #cbd5e1; margin-bottom: 20px; }

/* ================= CONTATO ================= */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contato-info .info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contato-info .info-item .ic { font-size: 24px; }
.contato-info .info-item strong { display: block; color: var(--dark); margin-bottom: 4px; }
.contato-info .info-item span { color: var(--muted); }

.form-contato { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-grupo { margin-bottom: 18px; }
.form-grupo label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--dark); font-size: 14px; }
.form-grupo input, .form-grupo textarea, .form-grupo select {
    width: 100%; padding: 14px; border: 2px solid var(--border); border-radius: 10px;
    font-size: 15px; background: var(--light); transition: 0.3s;
}
.form-grupo input:focus, .form-grupo textarea:focus, .form-grupo select:focus {
    border-color: var(--primary); outline: none; background: #fff;
}
.form-grupo textarea { resize: vertical; min-height: 120px; }
.form-contato .btn-whats { width: 100%; justify-content: center; }

.mapa-wrap { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.mapa-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }

@media (max-width: 800px) { .contato-grid { grid-template-columns: 1fr; } }

/* ================= CTA FINAL ================= */
.cta-final { padding: 90px 0; text-align: center; background: linear-gradient(135deg, var(--light), #fff); }
.cta-final h2 { font-size: clamp(26px, 4vw, 36px); color: var(--dark); margin-bottom: 16px; }
.cta-final p { margin-bottom: 30px; color: var(--text); max-width: 600px; margin-left: auto; margin-right: auto; }

/* ================= RODAPE ================= */
footer {
    background-color: var(--dark-2);
    color: #94a3b8;
    padding: 56px 0 30px;
    font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col .logo { color: #fff; margin-bottom: 14px; }
.footer-col p { line-height: 1.7; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: background 0.3s;
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; line-height: 1.8; }
.footer-bottom a { color: var(--primary); }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ================= BOTAO FLUTUANTE WHATSAPP ================= */
.whats-flutuante {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--whats);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    animation: pulse-whats 2.5s infinite;
    transition: transform 0.3s;
}
.whats-flutuante:hover { transform: scale(1.08); }
@keyframes pulse-whats {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ================= UTILITARIOS ================= */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.center-btn { display: flex; justify-content: center; margin-top: 40px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
