/* Lorain.ai Design System */
/* Based on design-system.md and Lorain.ai brand guidelines */

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

:root {
  /* Font families */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
  
  /* ============================================
     BRAND COLORS - Lorain.ai
     ============================================ */
  
  /* Primary - Lorain Orange */
  --primary: #ff8600;
  --primary-hover: #e67700;
  --primary-light: #ffab47;
  --primary-dark: #cc6b00;
  
  /* Secondary - Green */
  --secondary: #79c38e;
  --secondary-hover: #6bb07f;
  --secondary-light: #9ed4ad;
  
  /* Accent - Light Orange */
  --accent: #ffc255;
  --accent-hover: #ffb03d;
  
  /* Destructive - Red */
  --destructive: #fe0000;
  --destructive-hover: #d90000;
  
  /* Neutral - Navy/Dark */
  --navy: #192028;
  --navy-light: #2a3540;
  --navy-lighter: #3d4a58;
  
  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background & Foreground */
  --background: #ffffff;
  --foreground: #192028;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  
  /* Borders & Dividers */
  --border: #e5e7eb;
  --border-radius: 0.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Spacing scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--foreground);
}

h1, h2, h3, h4, h5, h6,
.heading {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
}

.text-hero {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  .text-hero { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .text-hero { font-size: 4.5rem; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-lorain {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.card-header-primary {
  background-color: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.card-header-navy {
  background-color: var(--navy);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

/* ============================================
   NAV PILLS (TAB NAVIGATION)
   ============================================ */
.nav-pills-lorain .nav-link {
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 2px solid transparent;
}

.nav-pills-lorain .nav-link:hover {
  background-color: rgba(255, 134, 0, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

.nav-pills-lorain .nav-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 8px rgba(255, 134, 0, 0.3);
}

.nav-pills-lorain .nav-link i {
  vertical-align: middle;
  margin-right: 4px;
}

/* Mobile condensed navigation tabs */
@media (max-width: 576px) {
  .nav-pills-lorain .nav-link {
    padding: 0.4rem 0.65rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    border-width: 1px;
  }
  
  .nav-pills-lorain .nav-link i,
  .nav-pills-lorain .nav-link svg {
    width: 14px !important;
    height: 14px !important;
    margin-right: 3px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, #2a3540 0%, #3d4a58 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 134, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 6rem 1rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  line-height: 1.1;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-weight: 400;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-section {
  padding: 4rem 1rem;
  background: var(--gray-50);
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  color: var(--navy);
}

.feature-description {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--primary);
  color: white;
  padding: 3rem 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

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

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-badge {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 1rem 0;
}

.pricing-price-small {
  font-size: 1.25rem;
  color: var(--gray-600);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--gray-700);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: bold;
  margin-right: 0.75rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-muted { background-color: var(--muted) !important; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-navy { color: var(--navy) !important; }
.text-muted { color: var(--muted-foreground) !important; }

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

/* Section spacing */
.section-padding {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 1rem;
  }
}

/* Container max widths */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.container-medium {
  max-width: 1000px;
  margin: 0 auto;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge-lorain {
  background-color: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-secondary {
  background-color: var(--secondary);
  color: white;
}

.badge-muted {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

/* ============================================
   FORMS
   ============================================ */
.form-control-lorain {
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.form-control-lorain:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 134, 0, 0.1);
}

/* ============================================
   NAVBAR CUSTOMIZATION
   ============================================ */
.navbar-lorain {
  background: white;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.navbar-lorain .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.5rem;
}

.navbar-lorain .nav-link {
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-lorain .nav-link:hover {
  color: var(--primary);
}

.navbar-lorain .btn-primary {
  padding: 0.5rem 1.25rem;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-padding {
    padding: 3rem 1rem;
  }
}
