/* ==========================================================================
   Page — General Services index (GeneralServices/Index)
   Requires: modules/page-hero.css
   Blocks: .gs-hero · .gs-count · .gs-cat (category card) · .gs-why (dark trio)
   ========================================================================== */

.gs-hero .page-hero__title { max-width: 20ch; }

/* Sector counter beside the section head */
.gs-count {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem 1.25rem .8rem .9rem; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--sh-sm);
}
.gs-count__num {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: #fff; background: var(--grad-brand); box-shadow: var(--sh-brand);
}
.gs-count__label { font-size: .88rem; font-weight: 600; color: var(--ink-700); max-width: 12ch; line-height: 1.3; }

/* Empty state */
.gs-empty {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
  padding: 3rem 1.5rem; border-radius: var(--r-xl); border: 1.5px dashed var(--ink-200); background: var(--ink-50);
  color: var(--c-muted);
}
.gs-empty p { margin: 0; }

/* Category card */
.gs-cat {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-xl);
  box-shadow: var(--sh-sm); overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) ease;
}
.gs-cat:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--ink-200); }

.gs-cat__media {
  position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden;
  margin: .5rem .5rem 0; border-radius: calc(var(--r-xl) - 8px); background: var(--ink-100);
}
.gs-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gs-cat:hover .gs-cat__media img { transform: scale(1.06); }
.gs-cat__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,22,.15) 0%, transparent 40%, rgba(7,11,22,.45) 100%);
}
.gs-cat__badge { position: absolute; top: .9rem; left: .9rem; z-index: 2; }
.gs-cat__badge .bi { color: var(--teal-500); }

.gs-cat__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 clamp(1.25rem, 1rem + 1vw, 1.9rem) clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.gs-cat__icon { margin-top: -30px; position: relative; z-index: 2; border: 4px solid #fff; box-sizing: content-box; }
.gs-cat__title { font-size: var(--fs-xl); margin: 1rem 0 .2rem; }
.gs-cat__title a { color: var(--ink-900); }
.gs-cat__title a:hover { color: var(--brand-600); }
.gs-cat__alt { font-size: .88rem; font-weight: 600; color: var(--brand-600); margin-bottom: .75rem; }
.gs-cat__desc { font-size: .93rem; color: var(--c-muted); margin: 0 0 1.5rem; }
.gs-cat__foot {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px dashed var(--ink-200);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
}
.gs-cat__spec { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600; color: var(--ink-600); }
.gs-cat__spec .bi { color: var(--brand-500); }
.gs-cat__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Advantage trio (on dark) */
.gs-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gs-why__item {
  padding: 2rem 1.75rem; border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease;
}
.gs-why__item:hover { transform: translateY(-4px); border-color: rgba(255,130,83,.4); }
.gs-why__title { font-size: 1.15rem; margin: 1.4rem 0 .55rem; color: #fff; }
.gs-why__text { font-size: .93rem; margin: 0; color: var(--ink-400); }

@media (max-width: 991.98px) {
  .gs-why { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 575.98px) {
  .gs-cat__media { aspect-ratio: 16 / 9; }
  .gs-cat__actions { width: 100%; }
  .gs-cat__actions .btn-sz { flex: 1; }
}
