/* Scoped styles for services section in gallery snippet */
.services-list-simple {
  margin-top: 80px;
  margin-bottom: 80px;
  padding: 60px 0;
  background: white;
}

.services-list-simple h2 {
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  color: #0f172a;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.services-list-simple h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #c81010, #e63946);
  border-radius: 999px;
}

/* Grid layout for service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual service card */
.service-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(200, 16, 16, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(200, 16, 16, 0.15);
}

/* Service image */
.service-card__image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.1);
}

.service-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-card__overlay {
  opacity: 1;
}

/* Service content */
.service-card__content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card__description {
  font-size: 0.975rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Service link button */
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c81010;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.service-card__link:hover {
  color: #a00d0d;
  border-bottom-color: #c81010;
  gap: 0.75rem;
}

.service-card__link svg {
  transition: transform 0.3s ease;
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .services-list-simple {
    padding: 40px 0;
    margin-top: 60px;
    margin-bottom: 60px;
  }
  
  .services-list-simple h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card__image {
    height: 200px;
  }
  
  .service-card__content {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .services-list-simple h2 {
    font-size: 1.75rem;
  }
  
  .service-card__title {
    font-size: 1.25rem;
  }
  
  .service-card__description {
    font-size: 0.925rem;
  }
}
