/* ── Category grid ── */
.service-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-cat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(62, 143, 117, 0.13);
  border-radius: 28px;
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

/* Accent stripe at top */
.service-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 28px 28px 0 0;
}

.service-cat-card:nth-child(1)::before { background: linear-gradient(90deg, #7FD9BC, #A8DFC4); }
.service-cat-card:nth-child(2)::before { background: linear-gradient(90deg, #5B9E8E, #7FD9BC); }
.service-cat-card:nth-child(3)::before { background: linear-gradient(90deg, #B89D65, #D4C38F); }
.service-cat-card:nth-child(4)::before { background: linear-gradient(90deg, #7FD9BC, #5B9E8E); }
.service-cat-card:nth-child(5)::before { background: linear-gradient(90deg, #D4C38F, #B89D65); }
.service-cat-card:nth-child(6)::before { background: linear-gradient(90deg, #A8DFC4, #7FD9BC); }

.service-cat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(62, 143, 117, 0.26);
  box-shadow: 0 18px 48px rgba(62, 143, 117, 0.1);
}

/* ── Icon ── */
.service-cat-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  background: rgba(127, 217, 188, 0.14);
  border: 1px solid rgba(62, 143, 117, 0.14);
}

.service-cat-card:nth-child(3) .service-cat-icon,
.service-cat-card:nth-child(5) .service-cat-icon {
  background: rgba(184, 157, 101, 0.12);
  border-color: rgba(184, 157, 101, 0.18);
}

.service-cat-card:nth-child(3) .service-cat-icon svg,
.service-cat-card:nth-child(5) .service-cat-icon svg {
  stroke: #967840;
}

.service-cat-icon svg {
  width: 26px;
  height: 26px;
  stroke: #3E8F75;
}

/* ── Card title ── */
.service-cat-card h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 800;
  color: #0D2B22;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.2;
}

/* ── Description ── */
.service-cat-card > p {
  font-size: 0.9rem;
  color: #5A7268;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* ── Sub-service list ── */
.service-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(62, 143, 117, 0.1);
}

.service-cat-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2E4A3E;
  line-height: 1.4;
}

.service-cat-list li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(127, 217, 188, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%233E8F75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
  border: 1px solid rgba(62, 143, 117, 0.18);
}

.service-cat-card:nth-child(3) .service-cat-list li::before,
.service-cat-card:nth-child(5) .service-cat-list li::before {
  background: rgba(184, 157, 101, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23967840' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
  border-color: rgba(184, 157, 101, 0.2);
}

.service-cat-card:nth-child(3) .service-cat-list li,
.service-cat-card:nth-child(5) .service-cat-list li {
  color: #3D3020;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .service-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .service-cat-grid {
    grid-template-columns: 1fr;
  }
  .service-cat-card {
    padding: 28px 22px 26px;
  }
}
