/* QBH Connector Repair — left copy, connector product photo on the right */

.qbh-hero {
  min-height: calc(72vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-10) 0 var(--space-12);
  overflow: hidden;
  background-color: var(--color-primary-container);
  background-image: url("../../assets/images/qbh-connector-hero.png");
  background-repeat: no-repeat;
  background-position: 88% 48%;
  background-size: cover;
}

.qbh-hero > .container {
  /* flex-grow must stay 0 — grow:1 stretches full-bleed and kills side gutters */
  width: min(100% - (var(--margin-desktop) * 2), var(--container-max));
  margin-inline: auto;
  flex: 0 1 auto;
}

.qbh-hero::before {
  opacity: 1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 17, 40, 0.97) 0%,
      rgba(10, 17, 40, 0.92) 34%,
      rgba(10, 17, 40, 0.55) 62%,
      rgba(10, 17, 40, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(16, 20, 23, 0.4) 0%, transparent 40%, rgba(16, 20, 23, 0.7) 100%);
}

.qbh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(580px 320px at 82% 52%, rgba(3, 86, 255, 0.16), transparent 60%);
}

.qbh-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-right: auto;
  text-align: left;
  margin-left: 40px;
}

.qbh-hero h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.qbh-hero .lede {
  color: var(--color-on-surface-variant);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1023px) {
  .qbh-hero {
    min-height: 0;
    padding: var(--space-6) 0 var(--space-5);
    background-position: 80% 48%;
  }

  .qbh-hero > .container {
    width: min(100% - (var(--margin-desktop) * 2), var(--container-max));
    margin-inline: auto;
    flex: 0 1 auto;
  }

  .qbh-hero__copy {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* Override inline 3-col on Common QBH Issues */
  .qbh-hero ~ .service-section .issue-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px;
  }
}

@media (max-width: 719px) {
  .qbh-hero {
    min-height: 0;
    padding: 28px 0 36px;
    background-position: center center;
    background-size: cover; /* full-bleed like Home */
    align-items: center;
  }

  .qbh-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(10, 17, 40, 0.78) 0%,
        rgba(10, 17, 40, 0.7) 45%,
        rgba(10, 17, 40, 0.88) 100%
      ),
      linear-gradient(
        90deg,
        rgba(10, 17, 40, 0.45) 0%,
        rgba(10, 17, 40, 0.2) 100%
      );
  }

  /* Pattern B — Home gutters (~24px) */
  .qbh-hero > .container {
    width: min(100% - 48px, var(--container-max));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    flex: 0 1 auto;
    box-sizing: border-box;
  }

  .qbh-hero__copy {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .qbh-hero .service-kicker {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .qbh-hero h1 {
    font-size: 24px;
    line-height: 1.2;
    margin: 10px 0 12px;
  }

  .qbh-hero .lede {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .qbh-hero .service-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .qbh-hero .service-hero-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
    font-size: 11px;
  }

  .qbh-hero ~ .service-section .issue-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  /* 3 issue cards: last full width (Home odd-card pattern) */
  .qbh-hero ~ .service-section .issue-grid .issue-card:last-child {
    grid-column: 1 / -1;
  }
}
