/* Service Cards Component */
/* Modern Tailwind-style cards following website color scheme */
/* Created for test page - uses primary color #ff3131 */

.service-cards-container {
  padding: 4rem 0;
  background-image: url('../../images/background/bg1.png');
  background-size: cover;
  background-position: center;
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .service-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .service-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Card Base Styles - Compact for Sub-Services */
.service-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 49, 49, 0.1);
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #ff3131 0%, #cc2525 50%, #800f0f 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 49, 49, 0.2);
}

/* Icon Container */
.service-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1);
}

/* Icon Variants */
.service-card-icon.yellow {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.service-card-icon.red {
  background: linear-gradient(135deg, #ff3131 0%, #dc2626 100%);
  box-shadow: 0 8px 20px rgba(255, 49, 49, 0.4);
}

.service-card-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.service-card-icon i {
  font-size: 1.75rem;
  color: white;
  z-index: 1;
  position: relative;
}

/* Card Content */
.service-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
  color: #ff3131;
}

.service-card-description {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Card Action Button Styles - Completely Removed for Sub-Service Tiles */
.service-card-action {
  display: none !important;
}

/* Enhanced Hover Effects */
.service-card.featured {
  background: linear-gradient(135deg, rgba(255, 49, 49, 0.02) 0%, rgba(255, 49, 49, 0.05) 100%);
}

.service-card.featured::before {
  transform: scaleX(1);
}

/* Section Header */
.service-cards-header {
  text-align: center;
  margin-bottom: 3rem;
}

.service-cards-subtitle {
  color: #ff3131;
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.service-cards-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .service-cards-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .service-cards-title {
    font-size: 2rem;
  }

  .service-card {
    padding: 1.25rem 1rem;
  }

  .service-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Animation Enhancements */
.service-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Improvements */
@media (max-width: 480px) {
  .service-cards-container {
    padding: 3rem 0;
  }

  .service-card-icon {
    width: 55px;
    height: 55px;
  }

  .service-card-icon i {
    font-size: 1.5rem;
  }

  .service-card-title {
    font-size: 1rem;
  }
}