/* ============================================
   MAIA SISTEMAS - Modern CSS Design
   Estilo: Minimalista e Clean
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Primary Colors */
  --primary-color: #4a90e2;
  --primary-dark: #357abd;
  --primary-light: #e3f2fd;
  --primary-ultra-light: #f0f7ff;

  /* Neutral Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-off-white: #fafafa;
  --bg-light: #f8f9fa;
  --bg-subtle: #f3f4f6;

  /* Border Colors */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;

  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 4px 12px rgba(74, 144, 226, 0.3);
  --shadow-primary-lg: 0 6px 16px rgba(74, 144, 226, 0.4);

  /* Animation Timing */
  --transition-fast: 150ms;
  --transition-base: 250ms;
  --transition-slow: 350ms;
  --transition-slower: 500ms;

  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* ============================================
   2. BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* ============================================
   3. TYPOGRAPHY SYSTEM
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.display-4 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* ============================================
   4. NAVBAR - Glassmorphism
   ============================================ */
.navbar {
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base) ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform var(--transition-base) ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

.navbar-brand img {
  transition: transform var(--transition-base) ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-md);
  transition: all var(--transition-base) ease;
  position: relative;
  color: var(--text-secondary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-base) ease;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background: var(--primary-ultra-light) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  transition: all var(--transition-base) ease;
}

.navbar-toggler:hover {
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================
   5. BUTTONS - Modern Design
   ============================================ */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow) ease, height var(--transition-slow) ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-ultra-light);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================
   6. CARDS - Modern Design
   ============================================ */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition-base) ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card:hover::before {
  opacity: 1;
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-img-top {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transition: transform var(--transition-slow) ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: var(--bg-white);
  transition: all var(--transition-base) ease;
  height: 100%;
}

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

.testimonial-card .fa-quote-left {
  color: var(--primary-color);
  opacity: 0.3;
  transition: opacity var(--transition-base) ease;
}

.testimonial-card:hover .fa-quote-left {
  opacity: 0.6;
}

/* ============================================
   7. FEATURE & SYSTEM ICONS
   ============================================ */
.feature-icon,
.system-icon,
.contact-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-ultra-light) 100%);
  border-radius: var(--radius-xl);
  margin: 0 auto 1.5rem;
  transition: all var(--transition-base) ease;
  box-shadow: var(--shadow-sm);
}

.card:hover .feature-icon,
.card:hover .system-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  margin: 0;
  background: var(--primary-ultra-light);
}

/* ============================================
   8. FORM ELEMENTS - Visual Only
   ============================================ */
.form-control,
.form-select {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  transition: all var(--transition-base) ease;
  background: var(--bg-white);
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
  outline: none;
  background: var(--bg-white);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-label {
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.form-control-lg {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
}

/* ============================================
   9. SECTIONS & SPACING
   ============================================ */
section {
  padding: var(--spacing-4xl) 0;
}

.hero-section {
  padding-top: 140px;
  padding-bottom: var(--spacing-4xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-ultra-light) 50%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-ultra-light) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
}

.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--primary-ultra-light) 0%, var(--bg-white) 100%);
  border-bottom: 1px solid var(--border-light);
}

/* ============================================
   10. CAROUSEL
   ============================================ */
.carousel-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.carousel {
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-slow) ease;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all var(--transition-base) ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: 1rem;
}

.carousel-control-next {
  right: 1rem;
}

.carousel-indicators {
  bottom: 1rem;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  margin: 0 4px;
  background: var(--border-light);
  border: none;
  transition: all var(--transition-base) ease;
}

.carousel-indicators button.active {
  background: var(--primary-color);
  width: 32px;
  border-radius: var(--radius-full);
}

/* ============================================
   11. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Staggered Animation for Cards */
.card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0ms; }
.card:nth-child(2) { animation-delay: 100ms; }
.card:nth-child(3) { animation-delay: 200ms; }
.card:nth-child(4) { animation-delay: 300ms; }
.card:nth-child(5) { animation-delay: 400ms; }
.card:nth-child(6) { animation-delay: 500ms; }

/* ============================================
   12. FOOTER
   ============================================ */
footer {
  background: linear-gradient(180deg, var(--text-primary) 0%, #0a0a0a 100%);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-4xl);
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   13. SOCIAL MEDIA BUTTONS
   ============================================ */
.social-media .btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base) ease;
  border: 2px solid var(--border-light);
}

.social-media .btn:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

/* ============================================
   14. CONTACT ITEMS
   ============================================ */
.contact-item {
  padding: 1rem;
  border-radius: var(--radius-lg);
  transition: background-color var(--transition-base) ease;
}

.contact-item:hover {
  background-color: var(--primary-ultra-light);
}

/* ============================================
   15. MAP CONTAINER
   ============================================ */
.map-container {
  min-height: 300px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================
   16. UTILITIES
   ============================================ */
.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.bg-white {
  background-color: var(--bg-white) !important;
}

.rounded {
  border-radius: var(--radius-xl) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.border-0 {
  border: none !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

/* Badge Styles */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.75rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

/* Product Badge */
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

/* Product Card */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ============================================
   17. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  section {
    padding: var(--spacing-3xl) 0;
  }

  .hero-section {
    padding-top: 120px;
    text-align: center;
  }

  .hero-section::before {
    display: none;
  }

  .card-body {
    padding: 1.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .feature-icon,
  .system-icon,
  .contact-icon {
    width: 56px;
    height: 56px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .page-header {
    padding: 140px 0 60px;
  }

  .carousel-item img {
    height: 250px;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-section {
    min-height: auto;
    padding: 120px 0 3rem;
  }

  .card::before {
    height: 3px;
  }
}
