/* NORTIA Team hero. Mobile first; breakpoints 768 / 992. Tokens: nortia-shell.css */

.nh-hero {
  position: relative;
  overflow: hidden;
  background: var(--nt-navy);
  color: #fff;
  font-family: var(--nt-font);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

.nh-hero *,
.nh-hero *::before,
.nh-hero *::after {
  box-sizing: border-box;
}

.nh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 30%;
}

.nh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 32, 54, .55) 0%, rgba(13, 32, 54, .82) 55%, var(--nt-navy) 100%);
}

.nh-hero__inner {
  display: grid;
  gap: 24px;
  max-width: calc(var(--nt-container) + 2 * var(--nt-gutter));
  margin-inline: auto;
  padding: 40px var(--nt-gutter) 64px;
}

.nh-hero__copy {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 560px;
}

.nh-hero__kicker {
  margin: 0;
  color: #b9cbe6;
  font-size: var(--nt-fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nh-hero__title {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* the member's first name in the greeting */
.nh-hero__title .nh-name {
  color: var(--nt-blue-bright);
}

.nh-hero__text {
  margin: 0;
  color: #d5deea;
  font-size: 16px;
  line-height: 1.55;
}

.nh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.nh-hero__btn {
  display: inline-flex;
  flex: 1 1 160px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 190px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}

.nh-hero__btn:active {
  transform: scale(.98);
}

.nh-hero__btn:hover,
.nh-hero__btn:focus-visible {
  transform: translateY(-1px);
}

/* original NORTIA hero buttons: blue gradient with an arrow, glassy outline */
.nh-hero__btn--primary {
  /* the gradient starts under the (transparent) border, otherwise its light end repeats as a thin line on the left */
  background: linear-gradient(90deg, #0a58ba 0%, #0c6dce 50%, #158bf0 100%) border-box;
  color: #fff;
}

.nh-hero__btn--primary::after {
  content: "→";
  font-weight: 400;
}

.nh-hero__btn--primary:hover,
.nh-hero__btn--primary:focus {
  filter: brightness(1.06);
  color: #fff;
}

.nh-hero__btn--ghost {
  border-color: rgba(255, 255, 255, .8);
  background: rgba(4, 31, 59, .38);
  color: #fff;
}

.nh-hero__btn--ghost:hover,
.nh-hero__btn--ghost:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.nh-hero__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nh-hero__tagline {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

/* member points card */
.nh-points {
  --nh-level-color: var(--nt-level-blue);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--nt-radius-lg);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55);
  color: var(--nt-text);
}

.nh-points--silver {
  --nh-level-color: var(--nt-level-silver);
}

.nh-points--gold {
  --nh-level-color: var(--nt-level-gold);
}

.nh-points__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nh-points__label {
  display: block;
  color: var(--nt-muted);
  font-size: var(--nt-fs-sm);
  font-weight: 600;
}

.nh-points__value {
  display: block;
  color: var(--nt-ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.nh-points__level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--nt-page);
  color: var(--nh-level-color);
  font-size: var(--nt-fs-sm);
  font-weight: 800;
  letter-spacing: .04em;
}

.nh-points__level img {
  width: 20px;
  height: 20px;
}

.nh-points__bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--nt-line-soft);
}

.nh-points__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--nh-level-color);
}

.nh-points__next {
  margin: 0;
  color: var(--nt-muted);
  font-size: 14px;
}

.nh-points__next b {
  color: var(--nt-ink);
}

.nh-points__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--nt-line-soft);
}

.nh-points__stats dt {
  color: var(--nt-muted);
  font-size: var(--nt-fs-xs);
  font-weight: 600;
}

.nh-points__stats dd {
  margin: 0;
  color: var(--nt-ink);
  font-size: 17px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .nh-hero::after {
    background: linear-gradient(90deg, rgba(13, 32, 54, .95) 0%, rgba(13, 32, 54, .78) 40%, rgba(13, 32, 54, .15) 75%);
  }

  .nh-hero__inner {
    padding-block: 64px 88px;
  }

  .nh-hero__title {
    font-size: 40px;
  }

  .nh-hero__text {
    font-size: 17px;
  }

  .nh-hero__btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 992px) {
  .nh-hero__inner {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    min-height: 400px;
    /* room for the quick-action tiles that can overlap the hero's bottom edge */
    padding-block: 64px 104px;
  }

  .nh-hero__title {
    font-size: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nh-hero__btn {
    transition: none;
  }
}
