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

:root {
  /* Primary Colors */
  --color-primary: #2563eb; /* blue-600 */
  --color-primary-50: #eff6ff; /* blue-50 */
  --color-primary-100: #dbeafe; /* blue-100 */
  --color-primary-500: #3b82f6; /* blue-500 */
  --color-primary-600: #2563eb; /* blue-600 */
  --color-primary-700: #1d4ed8; /* blue-700 */
  --color-primary-800: #1e40af; /* blue-800 */
  --color-primary-900: #1e3a8a; /* blue-900 */
  
  /* Secondary Colors */
  --color-secondary: #64748b; /* slate-500 */
  --color-secondary-50: #f8fafc; /* slate-50 */
  --color-secondary-100: #f1f5f9; /* slate-100 */
  --color-secondary-200: #e2e8f0; /* slate-200 */
  --color-secondary-300: #cbd5e1; /* slate-300 */
  --color-secondary-400: #94a3b8; /* slate-400 */
  --color-secondary-500: #64748b; /* slate-500 */
  --color-secondary-600: #475569; /* slate-600 */
  --color-secondary-700: #334155; /* slate-700 */
  --color-secondary-800: #1e293b; /* slate-800 */
  --color-secondary-900: #0f172a; /* slate-900 */
  
  /* Accent Colors */
  --color-accent: #059669; /* emerald-600 */
  --color-accent-50: #ecfdf5; /* emerald-50 */
  --color-accent-100: #d1fae5; /* emerald-100 */
  --color-accent-500: #10b981; /* emerald-500 */
  --color-accent-600: #059669; /* emerald-600 */
  --color-accent-700: #047857; /* emerald-700 */
  
  /* Background Colors */
  --color-background: #ffffff; /* white */
  --color-surface: #f8fafc; /* slate-50 */
  
  /* Text Colors */
  --color-text-primary: #1e293b; /* slate-800 */
  --color-text-secondary: #64748b; /* slate-500 */
  
  /* Status Colors */
  --color-success: #10b981; /* emerald-500 */
  --color-warning: #f59e0b; /* amber-500 */
  --color-error: #ef4444; /* red-500 */
  
  /* Shadows */
  --shadow-cta: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-dropdown: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition-fast: 200ms ease-in-out;
}

@layer base {
  html {
    font-family: 'Inter', sans-serif;
  }
  
  body {
    color: var(--color-text-primary);
    background-color: var(--color-background);
    line-height: 1.6;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
  }
  
  .hero-headline {
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.1;
  }
  
  .section-headline {
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 1.2;
  }
  
  .subsection-headline {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

@layer components {
  .btn-primary {
    @apply bg-primary text-white font-semibold px-8 py-4 rounded-lg transition-all duration-200 hover:bg-primary-700 focus:outline-none focus:ring-4 focus:ring-primary-100 shadow-cta;
  }
  
  .btn-secondary {
    @apply bg-white text-primary border-2 border-primary font-semibold px-8 py-4 rounded-lg transition-all duration-200 hover:bg-primary-50 focus:outline-none focus:ring-4 focus:ring-primary-100;
  }
  
  .btn-success {
    @apply bg-success text-white font-semibold px-6 py-3 rounded-lg transition-all duration-200 hover:bg-accent-700 focus:outline-none focus:ring-4 focus:ring-accent-100;
  }
  
  .card {
    @apply bg-white rounded-lg shadow-card p-6 border border-secondary-200;
  }
  
  .testimonial-card {
    @apply bg-white rounded-lg shadow-card p-8 border border-secondary-200 transition-all duration-200 hover:shadow-lg;
  }
  
  .form-input {
    @apply w-full px-4 py-3 border border-secondary-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-all duration-200;
  }
  
  .form-textarea  {
    @apply w-full px-4 py-3 border border-secondary-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-all duration-200 min-h-32;
  }
  
  .section-padding {
    @apply py-16 lg:py-24;
  }
  
  .container-custom {
    @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
  }
  
  .text-gradient {
    @apply bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent;
  }
  
  .urgency-badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-warning text-white;
  }
  
  .success-badge {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-success text-white;
  }

  /* Mobile Navigation Styles */
  .mobile-nav-link {
    @apply block text-secondary-600 hover:text-primary hover:bg-primary-50 px-4 py-3 rounded-lg transition-all duration-200 border-b border-secondary-100;
  }
  
  .mobile-nav-link:last-child {
    @apply border-b-0;
  }
  
  .mobile-dropdown {
    @apply absolute top-full left-4 right-4 bg-white border-2 border-secondary-200 shadow-dropdown rounded-lg z-40;
  }
  
  /* Enhanced mobile menu animation */
  .mobile-menu-enter {
    transform: translateY(-10px);
    opacity: 0;
  }
  
  .mobile-menu-enter-active {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.3s ease-out;
  }
  
  .mobile-menu-exit {
    transform: translateY(0);
    opacity: 1;
  }
  
  .mobile-menu-exit-active {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.2s ease-in;
  }
}

@layer utilities {
  .shadow-cta {
    box-shadow: var(--shadow-cta);
  }
  
  .shadow-card {
    box-shadow: var(--shadow-card);
  }
  
  .shadow-dropdown {
    box-shadow: var(--shadow-dropdown);
  }
  
  .transition-fast {
    transition: var(--transition-fast);
  }
  
  .text-balance {
    text-wrap: balance;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary-600);
}

/* Focus visible improvements */
.focus-visible:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

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

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

.animate-pulse-subtle {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slide-down {
  animation: slideDown 0.3s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.2s ease-in;
}

/* Mobile menu specific improvements */
@media (max-width: 768px) {
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 30;
  }
  
  /* Ensure mobile menu doesn't overlap with content */
  #mobile-menu {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  
  /* Better spacing for mobile menu items */
  #mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  /* Ensure CTA button is prominent */
  #mobile-menu .btn-primary {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    font-size: 1.1rem;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .container-custom {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}