/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #ffffff;
}

/* Custom Component Styles */

/* Navigation specific styles */
.nav-link {
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  color: #059669;
  background-color: #d1fae5;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #059669;
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border: 1px solid white;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  color: white;
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: white;
  color: #059669;
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1rem;
}

.hero-text {
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Button variants */
.btn-emerald {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: #059669;
  background-color: #d1fae5;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-emerald:hover {
  background-color: #059669;
  color: white;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border: 1px solid white;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: white;
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-white:hover {
  background-color: white;
  color: #059669;
}

/* Icon spacing */
.icon-spacing {
  margin-left: 0.5rem;
}

/* Border animation */
.border-r-2 {
  border-right-width: 2px;
}

.border-white-600 {
  border-color: rgba(255, 255, 255, 0.6);
}

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

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

/* Hero Slider Styles */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: opacity 1s ease;
}

.hero-slider .slide-title {
  animation: slideInUp 0.8s ease-out;
}

.hero-slider .slide-subtitle {
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-slider .slide a {
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-slider .progress-bar {
  height: 100%;
  background-color: white;
  transition: all 0.3s linear;
  transform-origin: left;
}

.hero-slider .nav-dot {
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.hero-slider .nav-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.hero-slider .prev-slide,
.hero-slider .next-slide {
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.hero-slider .prev-slide:hover,
.hero-slider .next-slide:hover {
  opacity: 1;
}

/* Focus styles for accessibility */
.hero-slider:focus {
  outline: none;
  box-shadow: 0 0 0 2px #10b981, 0 0 0 4px white;
}

.hero-slider .nav-dot:focus {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px black;
}

.hero-slider .prev-slide:focus,
.hero-slider .next-slide:focus {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px black;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-slider .prev-slide,
  .hero-slider .next-slide {
    display: none;
  }
  
  .hero-title {
    font-size: 2.25rem;
    min-height: 150px;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Pause animations when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide-title,
  .hero-slider .slide-subtitle,
  .hero-slider .slide a {
    animation: none;
  }
  
  .hero-slider .progress-bar {
    transition: none;
  }
  
  .hero-slider .slide {
    transition: none;
  }
  
  .animate-pulse {
    animation: none;
  }
}

/* Utility classes for common patterns */
.min-h-\[200px\] { min-height: 200px; }
.min-h-\[150px\] { min-height: 150px; }

/* Text truncation utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Products page mobile styles */
@media (max-width: 768px) {
  /* Mobile product table styles */
  .mobile-category-select {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Make sure table doesn't overflow on small screens */
  .products-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Adjust table cell spacing for mobile */
  .product-cell {
    padding: 0.5rem;
  }
  
  /* Smaller text for product details */
  .product-detail {
    font-size: 0.875rem;
  }
}

 