/* Authorized-repair hub: photo banner + visual module cards */

.svc-hub {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] .svc-hub {
  font-family: "Segoe UI", "Tahoma", "Geeza Pro", "Noto Naskh Arabic", sans-serif;
}

.wrap.svc-hub {
  max-width: none;
  margin: 0;
  padding: 0 0 18px;
}

.svc-hub > .site-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
}

.svc-hub-hero {
  position: relative;
  width: 100%;
  margin: 0 0 22px;
  min-height: min(62vh, 560px);
  border-radius: 0;
  overflow: hidden;
  background: #122033;
}

.svc-hub-hero img {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  min-height: 340px;
  object-fit: cover;
  object-position: 38% 46%;
}

.svc-hub-hero__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4.6rem max(16px, calc(50% - 490px)) 3.2rem;
  max-width: none;
  box-sizing: border-box;
  background:
    linear-gradient(105deg, rgba(10, 18, 32, .82) 0%, rgba(10, 18, 32, .42) 48%, rgba(10, 18, 32, .08) 100%),
    linear-gradient(to top, rgba(8, 14, 26, .72) 0%, transparent 58%);
  color: #fff;
  pointer-events: none;
}

.svc-hub-hero__copy > * {
  max-width: 640px;
}

html[dir="rtl"] .svc-hub-hero__copy {
  max-width: none;
  align-items: flex-end;
  text-align: right;
}

.svc-hub-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #bfdbfe;
}

.svc-hub-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}

.svc-hub-lead {
  margin: 0;
  max-width: 38em;
  color: rgba(236, 244, 255, .92);
  font-size: 15px;
  line-height: 1.7;
}

.svc-hub-back {
  max-width: 980px;
  margin: 0 auto 14px;
  padding: 0 12px;
  font-size: 13px;
}

.svc-hub-back a {
  color: var(--theme-primary-dark, #1d4ed8);
}

.svc-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.svc-hub-card {
  position: relative;
  display: block;
  min-height: 188px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
  isolation: isolate;
}

.svc-hub-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .45s ease;
}

.svc-hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 32, .18) 0%, rgba(8, 16, 32, .28) 36%, rgba(8, 16, 32, .82) 100%);
  z-index: 1;
}

.svc-hub-card:hover .svc-hub-card__media {
  transform: scale(1.08);
}

.svc-hub-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .2);
}

.svc-hub-card__icon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[dir="rtl"] .svc-hub-card__icon {
  left: auto;
  right: 14px;
}

.svc-hub-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-hub-card__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
}

.svc-hub-card__body b {
  display: block;
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

.svc-hub-card__body span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(236, 244, 255, .9);
}

@media (max-width: 760px) {
  .svc-hub-hero {
    min-height: 42vh;
  }
  .svc-hub-hero img {
    height: 42vh;
    min-height: 240px;
    object-position: 72% 40%;
  }
  .svc-hub-hero__copy {
    padding: 2.4rem 16px 1.8rem;
    max-width: none;
  }
  .svc-hub-grid {
    grid-template-columns: 1fr;
  }
  .svc-hub-card {
    min-height: 168px;
  }
}
