/* ./css/services.css (새 팔레트 적용) */

.services-section {
  background-color: var(--quinary-color);
  padding: 80px 20px;
  color: var(--text-color);
  text-align: center;
  font-family: sans-serif;
  position: relative;
  width: 100%;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.services-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 auto 40px;
  display: inline-block;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  width: 100%;
  margin: 0;
}

.service-item {
  width: 100%;
  background-color: var(--quaternary-color);
  border: none;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    background-color 0.3s ease;
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-item:hover {
  background-color: var(--secondary-color);
  cursor: pointer;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--accent-warm);
  transition: transform 0.3s ease, fill 0.3s ease;
}

.service-item:hover .service-icon svg {
  transform: scale(1.2);
  fill: var(--accent-cool);
}

.service-content {
  flex: 1;
  text-align: left;
}

.service-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.8;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .services-section {
    padding: 60px 10px;
  }
  .services-title {
    font-size: 2.2rem;
  }
  .services-list {
    gap: 20px;
  }
  .service-item {
    padding: 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .service-icon {
    margin-bottom: 12px;
  }
}