/* ==========================================================================
   BLOCO 1: VARIÁVEIS MODERNAS & RESET EM CÓDIGO PURO
   ========================================================================== */
:root {
    --bg-main: #0b0f19;       /* Fundo ultra-premium profundo */
    --bg-surface: #131c2e;    /* Superfície de cards e blocos */
    --bg-surface-light: #1e293b; /* Variação de contraste */
    --accent: #ff6b00;        /* Laranja elétrico tecnológico (Energia/WEG) */
    --accent-hover: #e05e00;  
    --text-primary: #f8fafc;  /* Texto de alta leitura */
    --text-secondary: #94a3b8;/* Texto de suporte e legendas */
    --border-color: rgba(255, 255, 255, 0.06);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Transição suave orgânica */
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}
/* ==========================================================================
   BLOCO 2: UTILITÁRIOS E MÓDULO 1 (HEADER & NAVEGAÇÃO)
   ========================================================================== */
.section-padding {
    padding: 100px 20px;
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 15px; }
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 1rem; }
}

.section-reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    padding: 5px 0;
    background-color: rgba(11, 15, 25, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span { color: var(--accent); }

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn-cta-nav {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-cta-nav:hover {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.menu-toggle { display: none; cursor: pointer; }

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--border-color);
    }
    .nav.is-active { right: 0; }
}
/* ==========================================================================
   BLOCO 3: MÓDULO 2 (HERO) & MÓDULO 3 (GRID DE ENGENHARIA)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px 20px;
    background: radial-gradient(circle at 50% 30%, #172545 0%, var(--bg-main) 70%);
    position: relative;
}

.hero-content { max-width: 900px; }

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.btn-cta {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 18px 36px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.25);
}

.btn-cta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }
    .btn-cta { padding: 15px 30px; font-size: 0.95rem; }
}

.features-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 14px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon i { font-size: 1.5rem; color: var(--accent); }

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

.finance {
    background-color: var(--bg-surface);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.finance-container { max-width: 800px; margin: 0 auto; }
.finance h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.finance p { color: var(--text-secondary); font-size: 1.2rem; }
/* ==========================================================================
   BLOCO 4: MÓDULO 5 (CALCULADORA SOLAR INTERATIVA)
   ========================================================================== */
.calc-container { max-width: var(--max-width); margin: 0 auto; }

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

@media (max-width: 992px) {
    .calc-grid { grid-template-columns: 1fr; gap: 40px; padding: 30px 20px; }
}

.calc-controls { display: flex; flex-direction: column; gap: 35px; }
.input-block { display: flex; flex-direction: column; gap: 12px; }

.input-block label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.premium-select {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    transition: var(--transition);
}

.premium-select:focus { border-color: var(--accent); }
.slider-labels { display: flex; justify-content: space-between; align-items: center; }
#bill-value { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

.premium-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-main);
    outline: none;
}

.premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.premium-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.metrics-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.metric-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 22px 15px;
    border-radius: 12px;
    text-align: center;
}

.metric-card.highlight {
    border-color: rgba(255, 107, 0, 0.2);
    background: linear-gradient(135deg, var(--bg-main) 0%, rgba(255, 107, 0, 0.03) 100%);
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.metric-value { font-size: 1.6rem; font-weight: 800; }
.metric-value small { font-size: 0.9rem; color: var(--accent); font-weight: 600; }

.calc-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    width: 100%;
    position: relative;
}

.chart-wrapper { position: relative; width: 100%; height: 100%; min-height: 300px; }
/* ==========================================================================
   BLOCO 5: MÓDULO 6 (FORMULÁRIO) & MÓDULO 7 (PROVA SOCIAL)
   ========================================================================== */
.contact-section { max-width: var(--max-width); margin: 0 auto; }

.contact-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
}

.contact-card h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.contact-card p { color: var(--text-secondary); margin-bottom: 40px; }
.premium-form { max-width: 950px; margin: 0 auto; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus { border-color: var(--accent); }

.btn-submit {
    width: 100%;
    max-width: 450px;
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 107, 0, 0.35);
}

@media (max-width: 768px) {
    .contact-card { padding: 30px 15px; }
    .form-grid { grid-template-columns: 1fr; }
}

.reviews-container { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.slider-wrapper { max-width: 800px; margin: 0 auto; position: relative; overflow: hidden; }
.custom-slider-container { display: flex; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

.review-slide { min-width: 100%; padding: 20px; opacity: 0.3; transition: opacity 0.6s ease; }
.review-slide.active { opacity: 1; }

.review-text {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #e2e8f0;
}

.review-author {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-surface-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active { background-color: var(--accent); width: 24px; border-radius: 5px; }

@media (max-width: 768px) { .review-text { font-size: 1.1rem; } }
/* ==========================================================================
   BLOCO 6: MÓDULO 8 (FOOTER AVANÇADO & DIREITOS AUTORAIS)
   ========================================================================== */
.footer {
    background-color: #060911;
    border-top: 1px solid var(--border-color);
    padding: 80px 20px 30px 20px;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

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

.footer-brand .brand-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-secondary); font-size: 0.95rem; }

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.social-icons { display: flex; gap: 15px; }

.social-icons a {
    width: 42px;
    height: 42px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-icons a:hover {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.developer-credits a { color: var(--accent); font-weight: 600; }
.developer-credits a:hover { text-decoration: underline; }

@media (max-width: 768px) { .footer-bottom { flex-direction: column; text-align: center; } }
