/* ════════════════════════════════════════════════════════════
   SERVICES HUB PAGE — services-hub.css
   ME91 Digital
════════════════════════════════════════════════════════════ */

/* Compatibility aliases: this file was authored against token names that
   were never defined in style.css's :root (--text-primary/--text-secondary/
   --text-muted/--border-subtle), which left several rules resolving to
   invalid/transparent values. Map them onto the real tokens so borders and
   text colors actually render. */
:root {
  --text-primary:   var(--white);
  --text-secondary: var(--white-70);
  --text-muted:     var(--white-40);
  --border-subtle:  var(--border);
}

/* ── Hero ─────────────────────────────────────────── */
.sh-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--bg-deep);
}

.sh-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sh-hero-orbs .orb1 {
  top: 10%;
  left: 10%;
}

.sh-hero-orbs .orb2 {
  bottom: 20%;
  right: 5%;
}

.sh-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sh-hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 16px 0 20px;
}

.sh-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.sh-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.sh-stat strong {
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.sh-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sh-stat-div {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* ── Filter Bar ───────────────────────────────────── */
.sh-filter-bar {
  background: rgba(10, 12, 25, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.sh-filter-bar.sticky {
  position: sticky;
  top: 70px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.sh-filter-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.sh-filter-inner::-webkit-scrollbar {
  display: none;
}

.sh-filter-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.sh-filter-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.sh-filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* ── Main Content ─────────────────────────────────── */
.sh-main {
  padding: 60px 0 100px;
  background: var(--bg-deep);
}

/* ── Category Section ─────────────────────────────── */
.sh-category {
  margin-bottom: 80px;
}

.sh-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding: 28px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.sh-cat-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.sh-cat-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.sh-cat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.sh-cat-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.2;
}

.sh-cat-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.sh-cat-count {
  margin-left: auto;
  flex-shrink: 0;
  text-align: center;
}

.sh-cat-count span {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
}

.sh-cat-count::after {
  content: 'Services';
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Services Grid ────────────────────────────────── */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* ── Service Card ─────────────────────────────────── */
.sh-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.sh-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.sh-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.sh-card:hover::before {
  opacity: 1;
}

.sh-card:hover .sh-arrow {
  transform: translateX(4px);
}

.sh-card-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.sh-card-info {
  flex: 1;
  min-width: 0;
}

.sh-card-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  line-height: 1.3;
}

.sh-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.sh-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* Featured card variant */
.sh-card-featured {
  border-color: rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.06);
}

.sh-card-featured:hover {
  border-color: rgba(59,130,246,0.6);
}

/* ── Service Tags ─────────────────────────────────── */
.sh-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(59,130,246,0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(59,130,246,0.3);
  margin-top: 5px;
}

.sh-tag-purple {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.3);
}

.sh-tag-red {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border-color: rgba(239,68,68,0.3);
}

/* ── Sub-categories (Industry) ────────────────────── */
.sh-subcat {
  margin-bottom: 32px;
}

.sh-subcat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .sh-hero {
    padding: 100px 0 60px;
    text-align: left;
  }

  .sh-hero-content {
    text-align: left;
  }

  .sh-hero-sub {
    margin: 0 0 32px;
    text-align: left;
  }

  .sh-stats {
    justify-content: flex-start;
  }

  .sh-cat-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
  }

  .sh-cat-count {
    margin-left: 0;
  }

  .sh-grid {
    grid-template-columns: 1fr;
  }

  .sh-cat-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .sh-hero-content h1 {
    font-size: 1.9rem;
  }

  .sh-stat strong {
    font-size: 1.5rem;
  }
}
