@import url('https://cdn.jsdelivr.net/gh/intel/clear-sans/stylesheet.css');

/* Reset e Estrutura Base */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
  font-family: 'Clear Sans', 'Segoe UI', sans-serif;
  background: #141e2b;
  color: #fff;
  scroll-behavior: smooth;
}

/* Container de Largura Máxima (Encapsulamento 1200px) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header e Navegação */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(8px);
  padding: 15px 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

nav.desktop-menu {
  display: flex;
  align-items: center;
}

/* Links normais do menu */
nav.desktop-menu a {
  margin-left: 25px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav.desktop-menu a:not(.btn):hover {
  color: #3b82f6;
}

/* CORREÇÃO DEFINITIVA: Botão Contato no Menu */
nav.desktop-menu a.btn {
  border: 1px solid #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  color: #ffffff !important;
  background: transparent;
  margin-left: 25px;
}

nav.desktop-menu a.btn:hover {
  background-color: #ffffff !important;
  color: #141e2b !important;
  font-weight: 700;
}

/* Botões Gerais (Hero e Formulários) */
.btn {
  background: #f3f4f6;
  color: #111827;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  background: #e5e7eb;
}

.btn.outline {
  background: transparent;
  border: 1px solid #f3f4f6;
  color: #f3f4f6;
}

.btn.outline:hover {
  background: #f3f4f6;
  color: #141e2b;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(300deg,#060657,#031f18,#3a0539);
  background-size: 180% 180%;
  animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 { font-size: 4rem; margin-bottom: 10px; }
.hero h2 { font-size: 2.2rem; margin: 10px 0 20px; }
.hero p { color: #cbd5e1; max-width: 700px; margin: 0 auto 30px; }

/* Seções e Centralização */
section { 
  padding: 90px 0; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.underline {
  width: 50px;
  height: 3px;
  background-color: #3b82f6;
  margin: 0 auto 25px;
}

.descricao {
  color: #9ca3af;
  max-width: 750px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* Grid de Serviços e Leads */
.cards, .leads-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  width: 100%;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card, .lead-item {
  background: #1b2530;
  padding: 35px 25px;
  border-radius: 12px;
  border: 1px solid #3a4a5a;
  text-align: left;
  transition: transform 0.3s ease;
}

.lead-item { background: #111827; border-bottom: 3px solid #3b82f6; }
.lead-item:hover { transform: translateY(-8px); }

.card h3 { font-size: 1.25rem; margin-top: 0; margin-bottom: 12px; }
.card p { color: #9ca3af; line-height: 1.5; margin: 0; }
.card strong { color: #3b82f6; }

/* Contato */
.contato-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 40px;
  text-align: left;
  width: 100%;
}

input, textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-family: inherit;
}

/* -------------------------------------------
   MENU MOBILE E OVERLAY (Estava faltando!)
------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Esconde o menu inicialmente */
  width: 260px;
  height: 100vh;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  padding: 80px 20px 20px;
  gap: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 10000;
  box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-menu.active {
  right: 0; /* Traz o menu para a tela */
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
}

.menu-overlay.active {
  display: block;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  nav.desktop-menu { display: none; } /* Esconde o menu desktop */
  .hamburger { display: block; } /* Mostra o ícone de hambúrguer */
  
  .contato-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 20px; }
  .hero h1 { font-size: 2.8rem; }
  .hero h2 { font-size: 1.8rem; }
}