/* =========================================================
   Home Page Enhancements (drop-in)
   - Spacing, hover effects, mobile stacking
   - Works alongside Tailwind (CDN) and style.css
   - Includes compatibility for both old and new carousel class names
   ========================================================= */

/* Section spacing */
section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Hero adjustments */
.hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero h1 {
  line-height: 1.2;
}
.hero p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Product category cards */
.product-category {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.product-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.product-category img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* "Shop Now" buttons */
.shop-btn {
  display: inline-block;
  background-color: #1d4ed8; /* blue-700 */
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}
.shop-btn:hover {
  background-color: #1e40af; /* blue-800 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}

/* Service buttons (School, Hotel, Hospital, POS) */
.service-btn {
  display: inline-block;
  background-color: #f3f4f6; /* gray-100 */
  color: #111827; /* gray-900 */
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.service-btn:hover {
  background-color: #e5e7eb; /* gray-200 */
  transform: translateY(-2px);
  color: #0f172a; /* slate-900 */
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Carousel spacing */
.carousel-container {
  margin-top: 2rem;
}

/* New carousel controls (if used) */
.carousel-prev,
.carousel-next {
  background-color: #1d4ed8; /* blue-700 */
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.carousel-prev:hover,
.carousel-next:hover {
  background-color: #1e40af; /* blue-800 */
  transform: translateY(-1px);
}

/* Legacy/original carousel controls compatibility */
.prev-btn,
.next-btn {
  background-color: #1d4ed8; /* blue-700 */
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.prev-btn:hover,
.next-btn:hover {
  background-color: #1e40af; /* blue-800 */
  transform: translateY(-1px);
}

/* Carousel cards (both new and old) */
.carousel-card,
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.carousel-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Dots (legacy/original) */
.carousel-dot {
  width: 10px;
  height: 10px;
  background-color: #cbd5e1; /* slate-300 */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.carousel-dot.active {
  background-color: #1d4ed8; /* blue-700 */
  transform: scale(1.1);
}

/* Footer polish */
footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
footer h3, footer h4 {
  margin-bottom: 0.75rem;
}
footer a {
  transition: color 0.25s ease;
}
footer a:hover {
  color: #93c5fd; /* blue-300 */
}

/* Simple fade-in utility (optional) */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fade-in-up 500ms ease-out forwards;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}
@media (max-width: 768px) {
  .product-grid,
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
}
