/* Variables (Design System) */
:root {
  /* Colors - HSL Values */
  --primary: 213, 94%, 56%;
  --primary-hover: 213, 94%, 46%;
  --government: 213, 54%, 25%;
  --government-light: 213, 54%, 95%;
  --government-foreground: 0, 0%, 100%;
  --muted: 220, 14%, 96%;
  --muted-foreground: 220, 8%, 46%;
  --background: 0, 0%, 100%;
  --foreground: 224, 71%, 4%;
  --card: 0, 0%, 100%;
  --card-foreground: 224, 71%, 4%;
  --border: 220, 13%, 91%;
  
  /* Shadows */
  --shadow-soft: 0 1px 3px 0 hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
  --shadow-medium: 0 4px 6px -1px hsl(0 0% 0% / 0.1), 0 2px 4px -2px hsl(0 0% 0% / 0.1);
  --shadow-strong: 0 10px 15px -3px hsl(0 0% 0% / 0.1), 0 4px 6px -4px hsl(0 0% 0% / 0.1);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--government)));
  --gradient-card: linear-gradient(180deg, hsl(var(--background)), hsl(var(--muted)));
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

/* Header Styles */
.header-gradient {
  background: var(--gradient-hero);
}

.logo-container {
  background: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
}

.text-government {
  color: hsl(var(--government)) !important;
}

.nav-link-custom {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.375rem !important;
  transition: var(--transition-smooth);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link-custom.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Typography */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: hsl(var(--foreground));
}

.page-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* Button Styles */
.btn-primary {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: white;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: hsl(var(--primary-hover));
  border-color: hsl(var(--primary-hover));
  transform: translateY(-1px);
}

.btn-outline-government {
  color: hsl(var(--government));
  border-color: hsl(var(--government));
  background-color: transparent;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.btn-outline-government:hover {
  background-color: hsl(var(--government-light));
  border-color: hsl(var(--government));
  color: hsl(var(--government));
}

.btn-outline-primary {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.btn-outline-primary:hover {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: white;
}

.btn-outline-primary.active {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: white;
}

/* Card Styles */
.feature-card {
  border: 1px solid hsl(var(--border));
  transition: var(--transition-smooth);
  background-color: hsl(var(--card));
}

.feature-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: hsl(var(--primary) / 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stats-card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.cta-card {
  background-color: hsl(var(--government));
  color: hsl(var(--government-foreground));
  border-radius: 1rem;
  box-shadow: var(--shadow-strong);
}

.cta-title {
  color: hsl(var(--government-foreground));
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-text {
  color: hsl(var(--government-foreground) / 0.9);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* Company Cards */
.company-card {
  transition: var(--transition-smooth);
  border: 1px solid hsl(var(--border));
}

.company-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.company-emoji {
  font-size: 2rem;
}

.company-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.rating {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.company-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.company-info .info-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.company-info .info-item:last-child {
  margin-bottom: 0;
}

/* Category Badges */
.category-saude {
  background-color: #fef2f2;
  color: #dc2626;
}

.category-educacao {
  background-color: #eff6ff;
  color: #2563eb;
}

.category-alimentacao {
  background-color: #fff7ed;
  color: #ea580c;
}

.category-vestuario {
  background-color: #faf5ff;
  color: #9333ea;
}

.category-bem-estar {
  background-color: #f0fdf4;
  color: #16a34a;
}

/* Form Styles */
.form-control-custom {
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: var(--transition-smooth);
}

.form-control-custom:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 0.2rem hsl(var(--primary) / 0.25);
}

.beneficio-item {
  background-color: hsl(var(--muted) / 0.5);
  border-color: hsl(var(--border)) !important;
}

/* Responsive Utilities */
.hero-section {
  padding: 3rem 0;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 5rem 0;
  }
}

/* Animation for cards */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empresa-card {
  animation: slideUp 0.5s ease-out;
}

/* Filter buttons */
.filter-btn {
  transition: var(--transition-smooth);
}

.filter-btn.active {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: white;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Utilities */
.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-soft) !important;
}

.shadow {
  box-shadow: var(--shadow-medium) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-strong) !important;
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .company-emoji {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}