/* EverydayEase CSS  and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Mobile-specific optimizations */
@media (max-width: 640px) {
  .hero-image {
    background-attachment: scroll; /* Better performance on mobile */
  }
  
  .product-card:hover {
    transform: none; /* Disable hover effects on mobile */
  }
  
  .feature-card:hover {
    transform: none; /* Disable hover effects on mobile */
  }
}

/* Touch device optimizations */
.touch-device .product-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.touch-device .feature-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Mobile menu animations */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  transform: translateY(-10px);
  opacity: 0;
}

#mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* Improved mobile button sizing */
@media (max-width: 640px) {
  button, .btn {
    min-height: 44px; /* iOS recommended touch target size */
    min-width: 44px;
  }
  
  a[role="button"] {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile typography improvements */
@media (max-width: 640px) {
  h1 {
    line-height: 1.2;
  }
  
  h2 {
    line-height: 1.3;
  }
  
  p {
    line-height: 1.6;
  }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
  
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Mobile-specific spacing */
@media (max-width: 640px) {
  .py-16 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .py-20 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  .py-24 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* EZKL */
