/* ══════════════════════════════════════════════════════════════════════
   SCL — TEMPLATE C STYLESHEET
   Hubs, Directories, Practices & Insights Catalogue
   ══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   1. HERO & BREADCRUMB (TEMPLATE C)
   ───────────────────────────────────────────── */
.hub-hero {
  position: relative;
  background: linear-gradient(135deg, #0A2240 0%, #0F325C 70%, #008531 140%);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 162, 60, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hub-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--tr);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--sky);
}

.breadcrumb span.current {
  color: #6EE7B7;
  font-weight: 600;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  background: rgba(0, 162, 60, 0.2);
  border: 1px solid rgba(0, 162, 60, 0.4);
  color: #6EE7B7;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.badge-icon {
  display: inline-block;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  margin-inline-end: 0.35rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.page-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────
   2. FILTER PILLS BAR
   ───────────────────────────────────────────── */
.filter-wrapper {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 95;
  box-shadow: 0 4px 14px rgba(15, 50, 92, 0.04);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--tr);
}

.filter-btn:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: var(--sky-light);
}

.filter-btn.active {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
  box-shadow: 0 4px 14px rgba(0, 162, 60, 0.35);
}

/* ─────────────────────────────────────────────
   3. SERVICES CATALOGUE GRID
   ───────────────────────────────────────────── */
.catalog-sec {
  padding: 4.5rem 0 5rem;
  background: var(--off-white);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.85rem;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--sky-light);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.service-cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  background: rgba(15, 50, 92, 0.06);
  color: var(--navy);
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.service-card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.service-card p {
  font-size: 0.91rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 1.25rem;
}

.service-bullets li {
  font-size: 0.82rem;
  color: var(--gray-800);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-bullets li::before {
  content: '✓';
  color: var(--sky);
  font-weight: 900;
  font-size: 0.85rem;
}

.service-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--gray-100);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--tr);
}

.service-link:hover {
  color: var(--sky);
  gap: 0.7rem;
}

/* ─────────────────────────────────────────────
   4. CATALOGUE BANNER CTA
   ───────────────────────────────────────────── */
.catalog-cta {
  background: linear-gradient(135deg, #0A2240 0%, #0F325C 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 4.5rem;
}

.catalog-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 162, 60, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   5. RESPONSIVE BREAKPOINTS (TEMPLATE C)
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.85rem;
  }
  .page-lead {
    font-size: 1rem;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .catalog-cta {
    padding: 2.5rem 1.5rem;
  }
}
