/* 1. Afasta o corpo inteiro do site em 10% de cada lado */
body {
    padding-left: 10vw !important;
    padding-right: 10vw !important;
    overflow-x: hidden !important;
}

/* 2. Mantém o cabeçalho e fundos escuros de ponta a ponta na tela, ignorando o padding do body */
.site-header, 
.hero-section, 
.dark-mode-section, 
.cta-final-section, 
.site-footer {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding-left: 10vw !important;
    padding-right: 10vw !important;
}

/* 3. Restaura o cabeçalho para alinhar normalmente sem margem forçada lateral excessiva */
.site-header {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

:root {
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-cyan: #0284c7;
    --primary-hover: #0369a1;
    --border-color: #e2e8f0;
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 10px 30px rgba(2, 132, 199, 0.1);
}

/* RESET GLOBAL CORRIGIDO */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif !important;
}

html, body { 
    max-width: 100%; 
}

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

img, video, iframe { 
    max-width: 100%; 
}

/* =====================================================
   CONTAINER UNIFICADO E CORRIGIDO
   Garante 24px de respiro nas bordas em monitores pequenos/médios
   e centraliza perfeitamente com max-width de 1200px
   ===================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

section, .section { 
    scroll-margin-top: 90px; 
}

/* LOGO OFICIAL */
.logo-link {
    text-decoration: none;
}

.brand-logo-custom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0b1c3d;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0b1c3d;
    letter-spacing: 0.5px;
}

.logo-divider {
    width: 2px;
    height: 28px;
    background-color: #0b1c3d;
}

.logo-tagline {
    display: flex;
    flex-direction: column;
    font-size: 0.52rem;
    font-weight: 700;
    color: #0b1c3d;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* CABEÇALHO */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-cyan);
    transition: 1s;
}

.nav-projects-link {
    background-color: #e0f2fe;
    color: #0369a1 !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.whatsapp-header-btn {
    background-color: #25d366;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* HERO SECTION */
.hero-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.badge-pill {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-cyan);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-left h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.hero-left p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.hero-cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.btn-cyan {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
    transition: 1s;
}

.btn-ghost {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: translateY(-2px);
    transition: 1s;
}

.hero-stats {
    display: flex;
    gap: 35px;
}

.hero-stats h2 {
    font-size: 1.8rem;
    color: var(--primary-cyan);
    font-weight: 800;
}

.hero-stats p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* SIMULADOR RÁPIDO NA HERO */
.hero-simulator-card {
    background-color: #0f172a;
    color: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.2);
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.sim-header h3 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
}

.badge-free {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sim-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-group-sim label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    transition: 1s;
}

.input-money-wrapper {
    display: flex;
    align-items: center;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.input-money-wrapper span {
    color: #94a3b8;
    font-weight: 700;
}

.input-money-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    outline: none;
}

.sim-results {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.sim-res-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.sim-res-row:last-child {
    margin-bottom: 0;
}

.sim-res-row strong {
    color: #38bdf8;
    font-weight: 700;
}

.full-width-btn {
    width: 100%;
    text-align: center;
    display: block;
    transition: 1s;
}

.sim-legal {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 15px;
}

/* SECTIONS */
.section-container {
    padding: 80px 0;
}

.alt-bg {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.dark-mode-section {
    background-color: #0f172a;
    color: #fff;
}

.dark-mode-section .section-header h2 {
    color: #fff;
}

.dark-mode-section .section-header p,
.dark-mode-section .step-card p {
    color: #94a3b8;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* BENEFÍCIOS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.benefit-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    transition: 1s;
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.benefit-card h3 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* SOLUTIONS */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.solution-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    transition: 1s;
}

.sol-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.sol-img.res { background-image: url('/static/img/solucao-residencial.jpg'); }
.sol-img.com { background-image: url('/static/img/solucao-comercial.jpg'); }
.sol-img.rural { background-image: url('/static/img/solucao-rural.jpg'); }

.sol-content {
    padding: 24px;
}

.tag-res { color: #d97706; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.tag-com { color: #2563eb; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }
.tag-rural { color: #059669; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; }

.sol-content h3 { margin: 8px 0; color: var(--text-main); font-size: 1.1rem; font-weight: 700; }
.sol-content p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }

.link-arrow {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-arrow:hover {
    color: var(--primary-hover);
    gap: 10px;
    transition: 1s;
}

.solutions-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.solution-card-mini {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 26px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.solution-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-cyan);
    transition: 1s;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.solution-card-mini h3 { margin-bottom: 8px; font-size: 1.05rem; color: var(--text-main); font-weight: 700; }
.solution-card-mini p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 15px; }

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.step-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 24px 20px;
    border-radius: 16px;
    color: #fff;
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    transition: 1s;
}

.step-num {
    width: 35px;
    height: 35px;
    background-color: #38bdf8;
    color: #0f172a;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
    font-size: 1rem;
}

.step-card h3 { font-size: 1rem; margin-bottom: 6px; color: #fff; font-weight: 700; }
.step-card p { color: #94a3b8; font-size: 0.85rem; }

/* SIMULADOR COMPLETO & FORM */
.simulador-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.range-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    box-shadow: var(--shadow-soft);
}

.range-box label { display: block; margin-bottom: 15px; font-size: 1rem; color: var(--text-main); font-weight: 600; }
.range-box label strong { color: var(--primary-cyan); font-size: 1.25rem; float: right; font-weight: 800; }

input[type="range"] {
    width: 100%;
    accent-color: var(--primary-cyan);
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    outline: none;
}

.range-limits {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 12px;
    font-weight: 600;
}

.sim-grid-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.res-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.res-box span { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 5px; font-weight: 500; }
.res-box strong { color: var(--primary-cyan); font-size: 1.2rem; font-weight: 800; }

.sim-disclaimer { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.sim-right-form {
    background-color: #0f172a;
    color: #fff;
    border: 1px solid #334155;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.sim-right-form h3 { font-size: 1.4rem; margin-bottom: 8px; color: #fff; font-weight: 700; }
.sim-right-form p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 25px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 6px; font-weight: 600; color: #fff; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-privacy { text-align: center; font-size: 0.75rem; color: #94a3b8; margin-top: 15px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }
.about-img-box {
    height: 380px;
    background: url('/static/img/sobre-photon.jpg') center/cover;
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}
.about-badge-float {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background-color: #0f172a;
    color: #fff;
    border: 1px solid #334155;
    padding: 18px;
    border-radius: 16px;
    display: flex;
    gap: 14px;
    max-width: 300px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.about-badge-float i { font-size: 1.8rem; color: #38bdf8; }
.about-badge-float strong { display: block; font-size: 0.9rem; margin-bottom: 3px; font-weight: 700; }
.about-badge-float p { font-size: 0.78rem; color: #94a3b8; margin: 0; }

.about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.98rem; }
.about-checks { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.about-checks div { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.about-checks i { color: #059669; font-size: 1rem; }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.2s ease;
}
.faq-item:hover {
    border-color: var(--primary-cyan);
    transition: 1s;
}
.faq-question {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question h3 { font-size: 1rem; color: var(--text-main); font-weight: 700; }
.faq-question i { color: var(--primary-cyan); font-size: 1rem; }
.faq-answer {
    padding: 0 22px 20px 22px;
    color: var(--text-muted);
    font-size: 0.92rem;
    display: none;
    line-height: 1.6;
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* CTA FINAL */
.cta-final-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 85px 0;
    text-align: center;
}
.cta-final-section h2 { font-size: 2.4rem; margin-bottom: 15px; color: #fff; font-weight: 800; }
.cta-final-section p { color: #94a3b8; font-size: 1.05rem; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* RODAPÉ */
.site-footer {
    background-color: #070b14;
    color: #94a3b8;
    padding: 60px 0 20px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 40px;
}

.footer-col h3 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; font-weight: 700; }
.footer-col p { font-size: 0.9rem; margin-bottom: 12px; line-height: 1.5; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { text-decoration: none; color: #94a3b8; font-size: 0.9rem; font-weight: 500; }
.footer-col ul li a:hover { color: #38bdf8; transition: 1s; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    transition: 1s;
}


@media (max-width: 968px) {
    .hero-grid, .solutions-grid, .solutions-grid-bottom, .steps-grid, .simulador-layout, .about-grid, .footer-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    .hero-left h1 { font-size: 2.2rem; }
    .main-nav { display: none; }
}

/* Páginas secundárias / projetos */
.page-header-banner { padding: clamp(48px, 7vw, 88px) 0; }
.page-header-banner h1 { max-width: 900px; margin: 0 auto 16px; text-wrap: balance; }
.page-header-banner p { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.projects-main-content { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.categories-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0 auto clamp(28px, 4vw, 44px); }
.filter-btn { max-width: 100%; }
.projects-grid-full { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.project-card-full { min-width: 0; height: 100%; overflow: hidden; cursor: pointer; }
.project-img-container { position: relative; width: 100%; overflow: hidden; }
.project-img-container img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-details { overflow-wrap: anywhere; padding: 20px; }
.project-details h3 { line-height: 1.35; margin: 10px 0; }
.project-details p { line-height: 1.65; }
.lightbox { padding: 24px; }
.lightbox-content { width: min(100%, 1000px); max-height: calc(100vh - 48px); overflow: auto; margin-inline: auto; }
.lightbox-content img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; object-fit: contain; margin-inline: auto; }
.lightbox-close { top: 14px; right: 22px; }

@media (max-width: 980px) {
  .projects-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { gap: 28px; }
}

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .page-header-banner { padding: 44px 0 38px; }
  .page-header-banner h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1.2; }
  .projects-main-content { padding-top: 24px; padding-bottom: 48px; }
  .categories-filter { justify-content: flex-start; gap: 8px; margin-bottom: 24px; }
  .filter-btn { padding: 9px 13px; font-size: .9rem; }
  .projects-grid-full { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project-details { padding: 16px; }
  .lightbox { padding: 16px; }
  .lightbox-content { max-height: calc(100vh - 32px); }
  .lightbox-content img { max-height: 62vh; }
  .lightbox-close { top: 8px; right: 14px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}