/**
 * Service Hub Widget Styles
 *
 * @package BongoHive
 */

.bh-service-hub {
  --bh-sh-font-heading: "PT Sans", "Lato", Arial, sans-serif;
  --bh-sh-font-body: "Noto Sans", "Ubuntu", Arial, sans-serif;
  --bh-sh-shark: #1d2229;
  --bh-sh-white: #ffffff;

  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  width: 100%;
}

.bh-service-hub__row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.bh-service-hub__item {
  background-color: var(--bh-sh-white);
  border: 1.875px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  color: var(--bh-sh-shark);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--bh-sh-font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  padding: 26px;
  text-align: center;
  text-decoration: none;
  width: 284px;
  max-width: 100%;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bh-service-hub__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

.bh-service-hub__item--link {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bh-service-hub__item--link:hover,
.bh-service-hub__item--link:focus-visible {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.bh-service-hub__center {
  align-items: center;
  background-color: var(--bh-sh-shark);
  border: 3.75px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  color: var(--bh-sh-white);
  display: flex;
  flex-direction: column;
  height: 192px;
  justify-content: center;
  padding: 4px 32px;
  text-align: center;
  text-decoration: none;
  width: 192px;
}

.bh-service-hub__center-title {
  font-family: var(--bh-sh-font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.bh-service-hub__center-subtitle {
  font-family: var(--bh-sh-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.8;
}

/* ==========================================================================
   Responsive — collapse to single column on small screens, hub on top
   ========================================================================== */

@media (max-width: 768px) {
  .bh-service-hub,
  .bh-service-hub__row {
    gap: 20px;
  }

  .bh-service-hub__row {
    flex-direction: column;
  }

  .bh-service-hub__row--middle {
    order: -1;
  }
}

@media (max-width: 480px) {
  .bh-service-hub__center-title {
    font-size: 22px;
  }

  .bh-service-hub__item {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-service-hub__item--link {
    transition: none;
  }
  .bh-service-hub__item--link:hover,
  .bh-service-hub__item--link:focus-visible {
    transform: none;
  }
}
