/* Services Grid Block - Frontend Styles */

.synpact-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2vw;
  margin: 2.5vh 0;
}

.service-item {
  position: relative;
  min-height: 25vw;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 30px;
  overflow: hidden;
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 3vw 2vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
}

.service-title {
  color: white;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: bold;
  margin: 0 0 5vw 0;
  line-height: 1.5;
}

.service-button {
  background-color: #f1f2eb;
  color: #232c33;
  border: none;
  padding: clamp(8px, 1vh, 20px) clamp(16px, 2vw, 30px);
  border-radius: 5vw;
  font-weight: 500;
  font-size: clamp(12px, 1.3vw, 24px);
  font-family: "Arial", sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  transition: background-color 0.3s ease;
  box-shadow: 2px 2px 6px #232c3399;
}

.service-button:hover {
  background-color: #f1f2ebcc;
  color: #232c33;
}

/* Tablet styles */
@media (max-width: 768px) {
  .synpact-services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3vw;
  }

  .service-item {
    min-height: 35vw;
  }

  .service-overlay {
    padding: 4vw 4vw;
  }

  .service-title {
    font-size: clamp(22px, 2.5vw, 28px);
  }

  .service-button {
    font-size: clamp(18px, 1.5vw, 24px);
    padding: clamp(5px, 1.2vh, 18px) clamp(20px, 3vw, 28px);
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .synpact-services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 4vw;
  }

  .service-item {
    min-height: 30vw;
  }

  .service-overlay {
    padding: 4vw 8vw;
  }
}
