/* ============================================================
   Hearthstone Mortgages — services (section 6)
   Flat service cards (prototype HMServiceCard), not the DS
   colour-band ServiceCard.
   ============================================================ */
.hm-services .hm-container { max-width: 1200px; }
.hm-services__lead { font-family: var(--font-body); font-size: 1.1rem; line-height: 1.6; color: var(--hm-slate-600); max-width: 52ch; margin: -1.75rem 0 2.75rem; }
.hm-services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.hm-services__cta { margin-top: 2.5rem; }

.hm-svc-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--hm-white); border-radius: 1.5rem; overflow: hidden; height: 100%;
  box-shadow: var(--shadow-md); border: 1px solid var(--hm-slate-200);
  padding: 1.85rem 1.85rem 1.65rem;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.hm-svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hm-svc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.hm-svc-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 1rem; background: var(--hm-gradient-mid); color: #fff; flex-shrink: 0; box-shadow: var(--shadow-blue); }
.hm-svc-card__tag { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.6rem; background: var(--hm-blue-100); color: var(--hm-blue-700); border-radius: var(--radius-pill); padding: 0.35rem 0.75rem; white-space: nowrap; }
.hm-svc-card__tag--gold { background: var(--hm-gold-100); color: var(--hm-gold-800); }
.hm-svc-card__title { font-family: var(--font-heading); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.2rem; color: var(--hm-ink); margin: 0 0 0.7rem; line-height: 1.1; }
.hm-svc-card__excerpt { font-family: var(--font-body); font-size: 0.92rem; line-height: 1.62; color: var(--hm-slate-600); margin: 0 0 1.4rem; flex: 1; }
.hm-svc-card__link { font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; color: var(--hm-blue-600); display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; }
.hm-svc-card__arrow { display: inline-block; transition: transform 180ms var(--ease-out); }
.hm-svc-card:hover .hm-svc-card__arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .hm-svc-card:hover { transform: none; }
  .hm-svc-card:hover .hm-svc-card__arrow { transform: none; }
}
@media (max-width: 900px) { .hm-services__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .hm-services__grid { grid-template-columns: 1fr; } .hm-services__lead { margin-top: 0; } }
