/* Card refinement: restrained visual hierarchy for the homepage component system. */
.card,
.service-grid > article,
.process-step,
.process-panels,
.faq details {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-grid > article {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.service-grid > article:hover,
.service-grid > article:focus-within {
  transform: translateY(-2px);
  border-color: rgba(0, 147, 184, 0.38);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 147, 184, 0.22);
  border-radius: 14px;
  background-color: rgba(0, 147, 184, 0.10);
  background-image: -webkit-linear-gradient(145deg, rgba(0, 147, 184, 0.16), rgba(74, 211, 239, 0.12));
  background-image: linear-gradient(145deg, rgba(0, 147, 184, 0.16), rgba(74, 211, 239, 0.12));
  color: #0093B8;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-grid > article h3 {
  margin: 0 0 8px;
}

.service-grid > article p {
  margin-bottom: 0;
  line-height: 1.6;
}

.grid.cols-3 > .card {
  padding: 24px;
}

.grid.cols-3 > .card h3 {
  margin-bottom: 10px;
}

.grid.cols-3 > .card p {
  margin-bottom: 0;
  line-height: 1.6;
}

.section > .card {
  border-radius: 18px;
}

@media (max-width: 650px) {
  .service-grid > article,
  .grid.cols-3 > .card {
    padding: 20px;
  }

  .service-grid > article {
    gap: 10px;
  }

  .service-grid > article .service-icon {
    margin-bottom: 4px;
  }

  .service-grid > article h3 {
    margin-bottom: 4px;
  }

  .service-grid > article:hover,
  .service-grid > article:focus-within {
    transform: none;
  }
}

@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .service-grid > article,
  .process-step,
  .process-panels,
  .faq details {
    transition: none;
  }
}
