/* ============================================================
   BrijCode — Reusable Industry Hero responsive
   Mobile pattern aligned with field-sales-automation service-hero
   ============================================================ */

@media (max-width: 1199px) {
  .industry-hero__pills {
    height: min(68vh, 540px);
    min-height: 380px;
  }

  .industry-pill {
    font-size: 0.78rem;
    padding: 0.5em 0.95em;
  }

  .industry-pill--2 {
    right: 18%;
  }

  .industry-pill--4 {
    right: 14%;
  }
}

@media (max-width: 991px) {
  .industry-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
  }

  .industry-hero__media {
    position: absolute;
    inset: 0;
  }

  .industry-hero__image {
    object-position: 62% center;
    transform: none;
    animation: none;
  }

  .industry-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 26, 51, 0.22) 0%,
      rgba(7, 26, 51, 0.12) 28%,
      rgba(7, 26, 51, 0.45) 58%,
      rgba(7, 26, 51, 0.88) 100%
    );
  }

  .industry-hero__overlay::before {
    display: none;
  }

  .industry-hero__inner {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-template-columns: none;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    width: 100%;
    gap: 14px;
    padding-top: 8px;
    padding-bottom: 16px;
  }

  .industry-hero__content {
    max-width: none;
    width: 100%;
  }

  .industry-hero__eyebrow {
    margin-bottom: 8px;
  }

  .industry-hero__title {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    line-height: 1.08;
  }

  .industry-hero__desc {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .industry-hero__cta.btn.btn-primary,
  .industry-hero__cta {
    margin-bottom: 14px;
    width: auto;
    max-width: max-content;
  }

  .industry-hero__metrics {
    gap: 10px;
  }

  .industry-metric {
    min-width: 0;
    max-width: none;
    flex: 1 1 calc(33.333% - 10px);
    padding: 12px 14px;
  }

  .industry-metric__value {
    font-size: 1.2rem;
  }

  .industry-metric__label {
    font-size: 0.76rem;
  }

  /* Hide capability pills on tablet/mobile */
  .industry-hero__pills,
  .industry-pill {
    display: none !important;
  }

  /* Hide floating signal cards on tablet/mobile (match field-sales) */
  .industry-hero__signals,
  .industry-float-card,
  .industry-float-badge {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .industry-hero__image {
    object-position: 70% 30%;
  }

  .industry-hero__inner {
    padding-top: 8px;
    padding-bottom: 14px;
    gap: 12px;
  }

  .industry-hero__title {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
  }

  .industry-hero__desc {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .industry-hero__cta.btn.btn-primary,
  .industry-hero__cta {
    width: auto;
    max-width: max-content;
    justify-content: center;
    min-height: 42px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    padding: 0.85em 1.25em;
  }

  .industry-hero__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .industry-metric {
    flex: none;
    padding: 12px 12px;
  }

  .industry-metric__value {
    font-size: 1.15rem;
  }

  .industry-metric__label {
    font-size: 0.72rem;
  }
}

@media (max-width: 575px) {
  .industry-hero__title {
    font-size: clamp(1.32rem, 5.8vw, 1.55rem);
  }

  .industry-hero__desc {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .industry-hero__inner {
    padding-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .industry-hero__title {
    font-size: 1.32rem;
  }

  .industry-hero__cta.btn.btn-primary,
  .industry-hero__cta {
    font-size: 0.8rem;
    padding: 0.8em 1.1em;
    min-height: 40px;
  }

  .industry-metric__value {
    font-size: 1.05rem;
  }

  .industry-metric__label {
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .industry-hero__metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .industry-hero__title {
    font-size: 1.2rem;
  }

  .industry-hero__desc {
    font-size: 0.76rem;
    margin-bottom: 8px;
  }

  .industry-hero__cta.btn.btn-primary,
  .industry-hero__cta {
    font-size: 0.74rem;
    min-height: 40px;
    padding: 0.75em 1em;
  }

  .industry-hero__inner {
    padding-bottom: 10px;
    gap: 10px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .industry-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .industry-hero__inner {
    padding-top: 72px;
    padding-bottom: 16px;
  }
}
