/* 🌳 VARIÁVEIS DE CORES E RESET REFORÇADO */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ☀️ TEMA CLARO (padrão) */
:root {
    --color-primary: #1e8449; /* Verde Floresta */
    --color-secondary: #f39c12; /* Laranja Vívido (Para Botões e Destaques) */
    --color-secondary-hover: #e67e22;
    --color-background: #f4f8f7; /* Cinza claro suave */
    --color-surface: #ffffff; /* Fundo de cards/seções "brancas" */
    --color-text: #333333;
    --color-text-dark: #2c3e50; /* Azul escuro quase preto */
    --color-border: #dddddd;
    --card-accent-bg: #fffaf0;
    --header-bg: rgba(255, 255, 255, 0.98);
    --color-footer-bg: #2c3e50;
    --color-footer-text: #bdc3c7;
    --shadow-rgb: 0, 0, 0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* 🌙 TEMA ESCURO */
[data-theme="dark"] {
    --color-primary: #34d17c;
    --color-secondary: #f6ab2f;
    --color-secondary-hover: #ffbf5c;
    --color-background: #10161a;
    --color-surface: #1a2129;
    --color-text: #d6dde3;
    --color-text-dark: #f1f4f7;
    --color-border: #333e48;
    --card-accent-bg: #262010;
    --header-bg: rgba(16, 22, 26, 0.95);
    --color-footer-bg: #0a0d10;
    --color-footer-text: #8b97a1;
    --shadow-rgb: 0, 0, 0;
}

body { 
    font-family: var(--font-body); 
    color: var(--color-text); 
    background-color: var(--color-background); 
    line-height: 1.65; 
    scroll-behavior: smooth; 
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.35s ease, color 0.35s ease;
}
.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}
h1, h2, h3, h4 { 
    font-family: var(--font-heading); 
    color: var(--color-text-dark); 
    line-height: 1.2; 
    font-weight: 700;
    letter-spacing: -0.3px;
}
p, li, label, input, textarea, button {
    font-family: var(--font-body);
}

/* 🧭 CABEÇALHO E NAVEGAÇÃO */
.main-header { 
    background-color: var(--header-bg); 
    box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.05); /* Sombra mais suave */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(6px);
}
.main-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 0; 
}
.logo {
    display: flex;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}
.logo-link:hover { opacity: 0.85; }
.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.logo-text {
    color: var(--color-primary);
    font-size: 1.7em;
    font-weight: 800;
    letter-spacing: -0.8px;
    font-family: var(--font-heading);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
nav ul { 
    list-style: none; /* CORREÇÃO CRÍTICA: Remove as bolinhas da lista */
    display: flex; /* Alinha os itens lado a lado */
    flex-wrap: wrap; /* Evita que os itens saiam da tela em telas menores */
    justify-content: flex-end;
}
nav ul li a { 
    text-decoration: none; 
    color: var(--color-text-dark); 
    padding: 10px 15px; 
    font-weight: 500; 
    font-size: 0.98em;
    transition: color 0.3s, background-color 0.3s; 
    border-radius: 4px;
}
nav ul li a:hover { 
    color: white; 
    background-color: var(--color-primary); /* Fundo verde ao passar o mouse */
}

/* 🌗 BOTÃO DE MODO ESCURO/CLARO */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.theme-toggle:hover {
    background-color: var(--color-background);
    transform: rotate(15deg);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* 🏞️ SEÇÕES GERAIS */
section { 
    padding: 100px 0; /* Mais padding para mais espaço */
    text-align: center; 
}
section:nth-child(odd):not(.impact-page, .contact-section, .tech-page) { background-color: var(--color-background); }
section:nth-child(even):not(.impact-page, .contact-section, .tech-page) { background-color: var(--color-surface); }
section h3 { 
    font-size: 2.5em; /* Título maior */
    margin-bottom: 20px; 
    color: var(--color-primary); 
    font-weight: 700;
}
section p { 
    margin-bottom: 25px; 
    max-width: 850px; 
    margin-left: auto; 
    margin-right: auto; 
    font-size: 1.1em;
}

/* 🏷️ BOTÃO CTA */
.cta-button { 
    background-color: var(--color-secondary); 
    color: white; 
    padding: 15px 35px; /* Botão maior e mais visível */
    text-decoration: none; 
    border-radius: 50px; /* Borda arredondada (pill shape) */
    font-weight: 700; 
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.2s; 
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(var(--shadow-rgb), 0.1);
    display: inline-block; /* Garante que o botão fique alinhado na hero section */
}
.cta-button:hover { 
    background-color: var(--color-secondary-hover); 
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(var(--shadow-rgb), 0.15);
}

/* ☀️ CARDS DE SOLUÇÃO (IMAGENS E TEXTO) */
.solution-cards { 
    display: flex; 
    justify-content: space-between; 
    gap: 30px; 
    margin-top: 50px; 
}
.solution-cards .card { 
    background: var(--color-surface); 
    padding: 0; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(var(--shadow-rgb), 0.08); 
    width: 48%; 
    text-align: left; 
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.35s; 
    text-decoration: none; 
    color: inherit; 
    overflow: hidden; 
}
.solution-cards .card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(var(--shadow-rgb), 0.15);
}
.solution-cards .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.solution-cards .card h4 {
    color: var(--color-primary);
    padding: 15px 20px 5px;
    font-size: 1.4em;
}
.solution-cards .card p {
    font-size: 1em;
    padding: 0 20px 20px;
    margin: 0;
}

/* 💻 PROMO DA ABA TECH (Home) */
.tech-promo-section {
    padding: 60px 0;
}
.tech-promo-card {
    display: flex;
    align-items: stretch;
    gap: 40px;
    background-color: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(var(--shadow-rgb), 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #232b36;
}
.tech-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(var(--shadow-rgb), 0.3);
}
.tech-promo-text {
    flex: 1;
    text-align: left;
    padding: 45px 20px 45px 45px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.tech-promo-tag {
    font-family: var(--font-mono);
    color: #34d17c;
    font-size: 0.85em;
    letter-spacing: 1px;
}
.tech-promo-text h3 {
    color: #ffffff;
    font-size: 1.9em;
    margin: 0;
}
.tech-promo-text p {
    color: #a9b4c0;
    font-size: 1.05em;
    margin: 0 0 10px;
    max-width: 480px;
}
.tech-promo-code {
    flex: 1;
    background-color: #05070a;
    padding: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.tech-promo-code pre {
    font-family: var(--font-mono);
    font-size: 0.95em;
    color: #7ee787;
    white-space: pre-wrap;
    line-height: 1.7;
}
.code-comment { color: #6e7681; }
.code-kw { color: #ff7b72; }
.code-fn { color: #d2a8ff; }
.code-op { color: #79c0ff; }

/* 📊 CALCULADORA */
.calculator-form { 
    max-width: 550px; 
    margin: 40px auto; 
    padding: 40px; 
    background-color: var(--color-surface); 
    border-radius: 12px; 
    box-shadow: 0 8px 20px rgba(var(--shadow-rgb), 0.1); 
    text-align: left;
    transition: background-color 0.35s;
}
.calculator-form label {
    display: block;
    margin-top: 15px;
    font-weight: 500;
    color: var(--color-text-dark);
}
.calculator-form input { 
    width: 100%; 
    padding: 12px; 
    margin-top: 8px; 
    border: 1px solid var(--color-border); 
    border-radius: 6px; 
    font-size: 1em; 
    color: var(--color-text);
    background-color: var(--color-surface);
    transition: border-color 0.3s, background-color 0.35s, color 0.35s;
}
.calculator-form input:focus {
    border-color: var(--color-primary);
    outline: none;
}
.calculator-form button { 
    width: 100%; 
    margin-top: 30px; 
    background-color: var(--color-primary); 
    padding: 15px;
    border-radius: 6px;
    /* Usa os estilos do .cta-button para o hover */
}

.results { 
    margin-top: 50px; 
    padding: 30px; 
    border: 2px solid var(--color-secondary); 
    border-radius: 10px; 
    background-color: var(--card-accent-bg); 
    text-align: left; 
    display: none; 
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.results h4 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}
.results p {
    margin: 10px 0;
    font-size: 1.1em;
    max-width: 100%;
}
.results strong {
    font-weight: 700;
}

/* ♻️ ESTILOS DE FATOS E DICAS */
.facts-list { 
    list-style: none; 
    padding-left: 0; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-around; 
    margin-top: 40px; 
    text-align: left; 
}
.facts-list li { 
    width: 48%; 
    background: var(--color-surface); 
    padding: 20px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    border-left: 5px solid var(--color-primary); 
    box-shadow: 0 4px 8px rgba(var(--shadow-rgb), 0.05);
    font-size: 1em; 
    transition: background-color 0.35s;
}
.facts-list strong { 
    display: block; 
    margin-bottom: 5px; 
    color: var(--color-primary); 
    font-weight: 700;
}

.dicas-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 50px; 
}
.dica-card { 
    background: var(--color-surface); 
    padding: 30px; 
    border-radius: 10px; 
    text-align: left; 
    box-shadow: 0 6px 15px rgba(var(--shadow-rgb), 0.07);
    transition: transform 0.2s, background-color 0.35s;
}
.dica-card:hover {
    transform: translateY(-3px);
}
.dica-card h4 { 
    color: var(--color-secondary); 
    margin-bottom: 10px; 
    font-size: 1.3em; 
    font-weight: 700;
}

/* 🖼️ ESTILOS DE PÁGINAS DEDICADAS (IMPACTO) */
.impact-page { 
    padding: 80px 0; 
    text-align: left; 
    background-color: var(--color-surface); 
    transition: background-color 0.35s;
}
.impact-page h1 { 
    font-size: clamp(2em, 4vw, 3em); 
    margin-bottom: 25px; 
    text-align: center; 
    color: var(--color-primary); 
}
.impact-page h2 { 
    font-size: 2em; 
    margin-top: 40px; 
    margin-bottom: 15px; 
    color: var(--color-secondary); 
    border-bottom: 2px solid var(--color-background);
    padding-bottom: 5px;
}
.image-full { 
    width: 100%; 
    height: auto; 
    border-radius: 10px; 
    margin: 40px 0; 
    box-shadow: 0 6px 15px rgba(var(--shadow-rgb), 0.1); 
    max-width: 900px; 
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
}

/* ✉️ SEÇÃO DE CONTATO */
.contact-section {
    background-color: var(--color-background);
    padding: 80px 0;
}
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 40px;
    background-color: var(--color-surface);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(var(--shadow-rgb), 0.1);
    transition: background-color 0.35s;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1em;
    color: var(--color-text);
    background-color: var(--color-surface);
    font-family: var(--font-body);
    transition: border-color 0.3s, background-color 0.35s, color 0.35s;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}
.contact-form .cta-button {
    width: 100%;
    margin-top: 10px;
    background-color: var(--color-secondary); /* Botão de contato usa a cor secundária (laranja) */
}

/* 🛑 RODAPÉ */
.main-footer { 
    background-color: var(--color-footer-bg); 
    color: var(--color-footer-text); 
    text-align: center; 
    padding: 30px 0; 
    font-size: 0.95em; 
    transition: background-color 0.35s;
}

/* 📱 RESPONSIVO */
@media (max-width: 780px) {
    .main-header .container { flex-wrap: wrap; gap: 10px; }
    nav ul { justify-content: center; }
    .header-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    .solution-cards { flex-direction: column; }
    .solution-cards .card { width: 100%; }
    .facts-list li { width: 100%; }
    .tech-promo-card { flex-direction: column; }
    .tech-promo-text { padding: 30px; }
    .tech-promo-code { padding: 20px; }
}
/* =========================================================
   💻 ABA TECH — Tema "terminal" fixo (visual próprio,
   independente do modo claro/escuro do resto do site)
   ========================================================= */
.tech-page {
    background-color: #05070a;
    color: #c9d1d9;
    text-align: left;
}
.tech-page h1, .tech-page h2, .tech-page h3, .tech-page h4 {
    color: #ffffff;
    font-family: var(--font-heading);
}
.tech-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    color: #34d17c;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    font-size: 0.95em;
}
.tech-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 70px;
    text-align: center;
}
.matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    z-index: 0;
}
.tech-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}
.tech-hero h1 { font-size: clamp(2em, 4.5vw, 3em); margin-bottom: 15px; }
.tech-hero-content p.tech-subtitle { color: #a9b4c0; font-size: 1.15em; max-width: 600px; margin: 0 auto 40px; }

.terminal-window {
    background-color: #0d1117;
    border: 1px solid #232b36;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: #161b22;
    border-bottom: 1px solid #232b36;
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: #6e7681;
}
.terminal-body {
    padding: 22px;
    font-family: var(--font-mono);
    font-size: 0.95em;
    color: #7ee787;
    white-space: pre-wrap;
    min-height: 130px;
    margin: 0;
}
.cursor-blink {
    color: #7ee787;
    animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tech-grid-section { padding: 90px 0 110px; }
.tech-section-title {
    font-size: clamp(1.6em, 3vw, 2.3em);
    margin-bottom: 12px;
    text-align: center;
}
.tech-section-sub {
    text-align: center;
    color: #a9b4c0;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.05em;
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.tech-card {
    background-color: #0d1117;
    border: 1px solid #232b36;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}
.tech-card:hover {
    transform: translateY(-4px);
    border-color: #34d17c;
}
.tech-card .terminal-bar { padding: 8px 12px; }
.tech-card-body { padding: 20px 22px 22px; }
.tech-card-body h4 {
    font-size: 1.2em;
    margin-bottom: 8px;
}
.tech-card-body p {
    color: #a9b4c0;
    font-size: 0.97em;
    margin-bottom: 16px;
    max-width: 100%;
}
.tech-card-code {
    background-color: #05070a;
    border-top: 1px solid #232b36;
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: #7ee787;
    overflow-x: auto;
    margin: 0;
    line-height: 1.6;
}
.tech-cta {
    text-align: center;
    margin-top: 60px;
}
