/*
Theme Name: Versix Solutions Child
Theme URI: https://versix.solutions
Description: Child theme customizado para Versix Solutions - A Infraestrutura Crítica da Integridade Digital
Author: Versix Dev Team
Author URI: https://versix.solutions
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: versix-child
*/

/* ============================================
   VERSIX SOLUTIONS - DESIGN SYSTEM
   Baseado no Manual de Marca Oficial
   ============================================ */

/* ============================================
   1. IMPORTAÇÃO DE FONTES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/* ============================================
   2. VARIÁVEIS CSS (PALETA OFICIAL)
   ============================================ */
:root {
  /* Cores Primárias */
  --azul-institucional: #00274F;
  --azul-primario: #00509D;
  --verde-integridade: #48B784;
  --cinza-neutro: #F4F4F4;
  
  /* Gradiente Oficial (Azul → Verde) */
  --gradiente-principal: linear-gradient(135deg, #00509D 0%, #48B784 100%);
  
  /* Cores de Texto */
  --texto-principal: #333333;
  --texto-secundario: #666666;
  --texto-claro: #FFFFFF;
  
  /* Tipografia */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Espaçamentos */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 39, 79, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 39, 79, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 39, 79, 0.2);
  
  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   3. RESET & BASE
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--texto-principal);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   4. TIPOGRAFIA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--azul-institucional);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.text-gradient {
  background: var(--gradiente-principal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   5. BOTÕES (CTAs)
   ============================================ */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--azul-primario);
  color: var(--texto-claro);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--verde-integridade);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--texto-claro);
}

.btn-secondary {
  background: transparent;
  color: var(--azul-primario);
  border: 2px solid var(--azul-primario);
}

.btn-secondary:hover {
  background: var(--azul-primario);
  color: var(--texto-claro);
  border-color: var(--azul-primario);
}

.btn-gradient {
  background: var(--gradiente-principal);
  color: var(--texto-claro);
  border: none;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  opacity: 0.95;
  color: var(--texto-claro);
}

/* ============================================
   6. HEADER CUSTOMIZADO
   ============================================ */
.site-header {
  background: var(--texto-claro);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
}

.custom-logo-link img {
  max-height: 60px;
  width: auto;
  transition: all var(--transition-fast);
}

.custom-logo-link:hover img {
  opacity: 0.9;
}

.main-navigation {
  font-family: var(--font-headings);
  font-weight: 600;
}

.main-navigation a {
  color: var(--azul-institucional);
  transition: color var(--transition-fast);
  padding: var(--spacing-xs) var(--spacing-sm);
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--verde-integridade);
}

.main-navigation .current-menu-item > a {
  color: var(--azul-primario);
  border-bottom: 2px solid var(--verde-integridade);
}

/* ============================================
   7. HERO SECTION (HOME)
   ============================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, 
    rgba(0, 39, 79, 0.95) 0%, 
    rgba(0, 80, 157, 0.90) 50%,
    rgba(72, 183, 132, 0.85) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23F4F4F4" width="1200" height="600"/><path fill="%2300274F" fill-opacity="0.05" d="M0 0h1200v600H0z"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--texto-claro);
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(72, 183, 132, 0.2) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: var(--texto-claro);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-section h2 {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

/* ============================================
   8. CARDS DE VENTURES
   ============================================ */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.venture-card {
  background: var(--texto-claro);
  border-radius: 8px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--azul-primario);
}

.venture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradiente-principal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.venture-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.venture-card:hover::before {
  transform: scaleX(1);
}

.venture-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 2px 4px rgba(0, 80, 157, 0.2));
  transition: transform var(--transition-fast);
}

.venture-card:hover .venture-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.venture-card h3 {
  color: var(--azul-institucional);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.venture-card p {
  color: var(--texto-secundario);
  font-size: 1rem;
  line-height: 1.7;
}

.venture-card-cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--spacing-md);
  color: var(--azul-primario);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.venture-card-cta:hover {
  color: var(--verde-integridade);
}

.venture-card-cta::after {
  content: '→';
  margin-left: var(--spacing-xs);
  transition: transform var(--transition-fast);
}

.venture-card:hover .venture-card-cta::after {
  transform: translateX(4px);
}

/* ============================================
   9. SEÇÕES GERAIS
   ============================================ */
.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradiente-principal);
  margin: var(--spacing-md) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--texto-secundario);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.125rem;
}

/* Background alternado */
.section-gray {
  background: var(--cinza-neutro);
}

.section-gradient {
  background: var(--gradiente-principal);
  color: var(--texto-claro);
}

.section-gradient h2,
.section-gradient h3 {
  color: var(--texto-claro);
}

/* ============================================
   10. FOOTER CUSTOMIZADO
   ============================================ */
.site-footer {
  background: var(--azul-institucional);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-cta {
  background: var(--gradiente-principal);
  padding: var(--spacing-lg);
  border-radius: 8px;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.footer-cta h3 {
  color: var(--texto-claro);
  margin-bottom: var(--spacing-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   11. FORMULÁRIOS (LGPD Compliant)
   ============================================ */
.wpforms-container {
  max-width: 600px;
  margin: 0 auto;
}

.wpforms-field-label {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--azul-institucional);
  margin-bottom: var(--spacing-xs);
}

.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field select,
.wpforms-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.wpforms-field input:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus {
  outline: none;
  border-color: var(--azul-primario);
  box-shadow: 0 0 0 3px rgba(0, 80, 157, 0.1);
}

.wpforms-submit-container {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.wpforms-submit {
  background: var(--azul-primario) !important;
  color: var(--texto-claro) !important;
  padding: 16px 48px !important;
  font-family: var(--font-headings) !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all var(--transition-normal) !important;
}

.wpforms-submit:hover {
  background: var(--verde-integridade) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Checkbox LGPD */
.wpforms-field-checkbox label {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================
   12. RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 40px;
    --spacing-lg: 24px;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
  
  .ventures-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   13. ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Animação de scroll suave */
html {
  scroll-behavior: smooth;
}

/* ============================================
   14. UTILITÁRIOS
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
