/* 🔹 Home Page Services Section (CREAM BACKGROUND) */
.services-section {
  padding: 6rem 1.5rem;
  background-color: var(--color-cream);
  color: var(--color-black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-black);
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}

.services-title::after {
  content: "";
  display: block;
  height: 4px;
  width: 60px;
  margin: 12px auto 0;
  background: var(--color-brand);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.75rem;
  min-height: 240px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

.service-card .icon {
  width: 85px;
  height: 85px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.service-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.08));
  transition: filter 0.4s ease;
}

.service-card:hover .icon {
  transform: scale(1.1) translateY(-4px);
}

.service-card:hover .icon img {
  filter: drop-shadow(0 12px 18px rgba(250, 237, 37, 0.5));
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-black);
  margin: 0;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background: var(--color-brand);
  transform: translateX(-50%);
  transition: width 0.35s ease;
}

.service-card:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .services-section {
    padding: 4rem 1rem;
  }

  .services-title {
    font-size: 2.2rem;
  }
}