/* Services and Industries hub pages. Cards follow the homepage industry tiles (pastel,
   white icon tile, arrow); the closing panel uses the Advanced Plan blue with a fine grid. */

.hb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hb-card { display: flex; flex-direction: column; min-height: 230px; padding: 26px; border-radius: 28px; background: var(--p-blue); color: var(--ink);
  transition: transform .3s cubic-bezier(.22, .8, .24, 1), box-shadow .3s ease; animation: hb-rise .7s cubic-bezier(.22, .8, .24, 1) var(--d, 0ms) both; }
.hb-card:nth-child(4n+2) { background: var(--p-sky); }
.hb-card:nth-child(4n+3) { background: var(--p-lav); }
.hb-card:nth-child(4n+4) { background: var(--p-mint); }
.hb-card:hover { transform: translateY(-6px); box-shadow: 0 30px 46px -32px rgba(15, 40, 110, .45); }
.hb-top { display: flex; align-items: center; justify-content: space-between; }
.hb-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--brand); }
.hb-ic svg { width: 24px; height: 24px; }
.hb-go { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--ink); transition: background-color .25s ease, color .25s ease, transform .3s cubic-bezier(.22, .8, .24, 1); }
.hb-go svg { width: 16px; height: 16px; }
.hb-card:hover .hb-go { background: var(--brand); color: #fff; transform: rotate(45deg); }
.hb-card h2, .hb-card h3 { margin-top: auto; padding-top: 28px; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.hb-blurb { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.hb-title { margin: 0 0 28px; }
.hb-grid--home { margin-top: 44px; }
.hb-more { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--brand); }

/* closing panel */
.hb-cta { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 48px; align-items: center;
  padding: clamp(36px, 5vw, 60px); border-radius: 36px; color: rgba(255, 255, 255, .85); background: linear-gradient(150deg, #587edb 0%, #1445c2 60%, #0f379e 100%); }
.hb-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(200deg, #000 15%, transparent 75%); mask-image: linear-gradient(200deg, #000 15%, transparent 75%); }
.hb-cta::after { content: ""; position: absolute; z-index: -1; right: -140px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .2), transparent); }
.hb-cta h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; color: #fff; }
.hb-cta h2 span { color: #fff; opacity: .78; }
.hb-cta p { margin-top: 16px; max-width: 560px; font-size: 17px; line-height: 1.65; }
.hb-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hb-cta-points { display: grid; gap: 12px; }
.hb-cta-points li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: 16px; font-weight: 600; color: #fff; }
.hb-cta-points li > span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand); }
.hb-cta-points svg { width: 20px; height: 20px; }

@keyframes hb-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hb-card { animation: none; } }
@media (max-width: 1100px) {
  .hb-grid { grid-template-columns: repeat(2, 1fr); }
  .hb-cta { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .hb-grid { grid-template-columns: 1fr; }
  .hb-card { min-height: 0; }
  .hb-cta { padding: 32px 22px; border-radius: 28px; }
  .hb-cta-actions .hv-btn { width: 100%; }
}
