/*
Theme Name: MegaCPU GovTech
Theme URI: https://megacpu.com.br
Author: Seu Nome / Sua Agência
Description: Tema customizado para MegaCPU - Soluções em TI e Licitações.
Version: 1.0
Text Domain: megacpu
*/

:root {
  --bg-main: #000000;
  --bg-surface: #0A0A0A;
  --bg-card: #111111;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --text-primary: #FFFFFF;
  --text-secondary: #888888;
  --accent: #0070F3;
  --accent-glow: rgba(0, 112, 243, 0.3);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.gradient-text {
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 24px; height: 24px; background: var(--text-primary); border-radius: 4px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { background: var(--text-primary); color: var(--bg-main) !important; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 600 !important; text-decoration: none;}
.nav-cta:hover { background: #EBEBEB; }

/* HERO */
.hero { position: relative; padding: 180px 0 100px; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%); z-index: -1; opacity: 0.5; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); padding: 6px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-badge span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin-bottom: 1.5rem; max-width: 900px; margin-inline: auto; }
.hero p { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 3rem; }
.btn-group { display: flex; justify-content: center; gap: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 2rem; border-radius: 8px; font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: all 0.2s ease; border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--text-primary); color: var(--bg-main); }
.btn-primary:hover { transform: translateY(-2px); background: #EBEBEB; }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--border-hover); }

/* PARTNERS MARQUEE */
.partners { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 0; background: var(--bg-surface); overflow: hidden; position: relative; }
.partners::before, .partners::after { content: ''; position: absolute; top: 0; bottom: 0; width: 150px; z-index: 2; }
.partners::before { left: 0; background: linear-gradient(to right, var(--bg-surface), transparent); }
.partners::after { right: 0; background: linear-gradient(to left, var(--bg-surface), transparent); }
.marquee-content { display: flex; gap: 4rem; width: max-content; animation: marquee 30s linear infinite; }
.partner-logo { font-size: 1.5rem; font-weight: 800; color: var(--text-secondary); letter-spacing: -1px; opacity: 0.4; transition: opacity 0.3s; display: flex; align-items: center; gap: 8px; }
.partner-logo:hover { opacity: 1; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: 120px 0; border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 4rem; }
.section-label { color: var(--accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; display: block; }
.section-title { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; }
.section-desc { color: var(--text-secondary); font-size: 1.1rem; max-width: 500px; margin-top: 1rem; }

/* BENTO GRID */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 1.5rem; }
.bento-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; display: flex; flex-direction: column; transition: border-color 0.3s; }
.bento-card:hover { border-color: var(--border-hover); }
.bento-large { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: auto; }
.bento-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.bento-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* LICITAÇÕES */
.licitacao-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.licitacao-sticky { position: sticky; top: 120px; }
.steps { display: flex; flex-direction: column; gap: 3rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 0; bottom: 0; left: 15px; width: 1px; background: var(--border); z-index: 0; }
.step-item { position: relative; padding-left: 3rem; z-index: 1; }
.step-dot { position: absolute; left: 11px; top: 4px; width: 9px; height: 9px; background: var(--bg-main); border: 2px solid var(--accent); border-radius: 50%; }
.step-item h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 4rem; border-top: 1px solid var(--border); }
.stat-box h5 { font-size: 3rem; font-weight: 800; letter-spacing: -2px; color: var(--text-primary); }
.stat-box span { color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

/* FORMS & CTA */
.cta-section { padding: 120px 0; text-align: center; }
.cta-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 4rem 2rem; max-width: 800px; margin: 0 auto; position: relative; }
.cta-box::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

/* FOOTER */
footer { padding: 4rem 5%; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--bg-main); }
footer p { color: var(--text-secondary); font-size: 0.85rem; }

/* WHATSAPP FAB */
.fab { position: fixed; bottom: 2rem; right: 2rem; background: #FFFFFF; color: #000000; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; box-shadow: 0 4px 20px rgba(255,255,255,0.2); transition: transform 0.2s; z-index: 999; }
.fab:hover { transform: scale(1.05); }

/* RESPONSIVE */
@media (max-width: 992px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-tall, .bento-large { grid-column: span 1; grid-row: span 1; }
  .licitacao-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .licitacao-sticky { position: relative; top: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ESTILOS PARA PLUGIN DE FORMULÁRIO (WPForms ou CF7) */
.wpforms-container input, .wpforms-container select, .wpforms-container textarea,
.wpcf7 input, .wpcf7 select, .wpcf7 textarea {
    width: 100%; padding: 0.8rem 1rem; border-radius: 8px;
    background: var(--bg-main); border: 1px solid var(--border);
    color: var(--text-primary); font-family: 'Inter', sans-serif;
    margin-top: 8px;
}
.wpforms-container button[type=submit], .wpcf7-submit {
    background: var(--text-primary); color: var(--bg-main);
    padding: 1rem 2rem; border-radius: 8px; font-weight: 600;
    border: none; cursor: pointer; width: 100%; margin-top: 1rem;
}