/*
Theme Name: ERP Wmania - Gestão Empresarial
Theme URI: https://www.wmania.com.br
Description: Tema WordPress profissional para ERP Wmania - Sistema de gestão empresarial integrado. Desenvolvido com design corporativo dinâmico, paleta de cores azul e verde, e microinterações modernas.
Version: 1.0.0
Author: Wmania
Author URI: https://www.wmania.com.br
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wmania-theme
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================================================
   DESIGN PHILOSOPHY: Corporativo Dinâmico com Gradientes
   
   Este tema segue uma abordagem corporativa moderna com:
   - Paleta de cores: Azul profundo (#0052CC), Verde vibrante (#00CC00)
   - Tipografia: Poppins para títulos, Inter para corpo
   - Animações: Fade-in + slide-up, hover effects suaves
   - Layout: Assimétrico com seções bem definidas
   - Marca: ERP Wmania
   ============================================================================ */

/* ============================================================================
   1. RESET E CONFIGURAÇÕES BASE
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* ============================================================================
   2. TIPOGRAFIA
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #0052CC;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

a {
  color: #0052CC;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00CC00;
}

/* ============================================================================
   3. CONTAINER E LAYOUT
   ============================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* ============================================================================
   4. HEADER E NAVEGAÇÃO
   ============================================================================ */

header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1E5BA8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: #00CC00;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 500;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0052CC, #00CC00);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #1E5BA8;
}

nav a:hover::after {
  width: 100%;
}

/* ============================================================================
   5. HERO SECTION
   ============================================================================ */

.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 91, 168, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  animation: fadeInUp 0.8s ease;
}

.hero-text p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #333;
}

.feature-item::before {
  content: '✓';
  color: #00CC00;
  font-weight: 700;
  font-size: 1.2rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(30, 91, 168, 0.15);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.cta-button:hover {
  background: linear-gradient(135deg, #00CC00 0%, #00aa00 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 204, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 1rem;
  }
}

/* ============================================================================
   6. SEÇÃO DE BENEFÍCIOS
   ============================================================================ */

.benefits {
  padding: 5rem 2rem;
  background-color: #f5f7fa;
}

.benefits-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-header h2 {
  margin-bottom: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(30, 91, 168, 0.15);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, #00CC00 0%, #00aa00 100%);
  transform: scale(1.1);
}

.benefit-card h3 {
  margin-bottom: 0.8rem;
}

.benefit-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================================
   7. SEÇÃO DE APPS
   ============================================================================ */

.apps-section {
  padding: 5rem 2rem;
  background-color: #fff;
}

.apps-header {
  text-align: center;
  margin-bottom: 3rem;
}

.apps-header h2 {
  margin-bottom: 1rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.app-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #0052CC;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.app-card:hover {
  border-left-color: #00CC00;
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.app-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.app-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.app-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================================================
   8. SEÇÃO DE SEGMENTOS
   ============================================================================ */

.segments-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
}

.segments-header {
  text-align: center;
  margin-bottom: 3rem;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.segment-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.6s ease;
}

.segment-item:hover {
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 91, 168, 0.2);
}

.segment-item h4 {
  font-size: 1rem;
  margin-bottom: 0;
  color: #1E5BA8;
  transition: color 0.3s ease;
}

.segment-item:hover h4 {
  color: #fff;
}

/* ============================================================================
   9. SEÇÃO DE PRESENÇA
   ============================================================================ */

.presence-section {
  padding: 5rem 2rem;
  background-color: #fff;
}

.presence-header {
  text-align: center;
  margin-bottom: 3rem;
}

.presence-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.stat-card:hover {
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  color: #fff;
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0052CC;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.stat-card:hover .stat-number {
  color: #00CC00;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
  color: #fff;
}

/* ============================================================================
   10. SEÇÃO DE REPRESENTANTES
   ============================================================================ */

.representatives-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.representatives-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.representatives-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.representatives-content h2 {
  color: #fff;
  margin-bottom: 2rem;
}

.representatives-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.rep-benefit {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.rep-benefit:hover {
  background: rgba(0, 82, 204, 0.2);
  border-color: #0052CC;
  transform: translateY(-3px);
}

.rep-benefit h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.rep-benefit p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============================================================================
   11. FOOTER
   ============================================================================ */

footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #00CC00;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

/* ============================================================================
   12. ANIMAÇÕES
   ============================================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   13. RESPONSIVIDADE
   ============================================================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .benefits,
  .apps-section,
  .segments-section,
  .presence-section,
  .representatives-section {
    padding: 3rem 1rem;
  }

  .benefits-grid,
  .apps-grid,
  .segments-grid,
  .presence-stats,
  .representatives-benefits {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ============================================================================
   14. UTILITÁRIOS
   ============================================================================ */

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}
