@use "../../scss/globals.scss";

.hero {
  width: 100%;
  height: 180px;
  min-height: 150px;
  border-radius: 0;
  color: #dadbe1;
  overflow: hidden;
  box-shadow: 0px 0px 15px 0px #000000;
  cursor: pointer;
  border: solid 1px globals.$border-color;
  z-index: 1;
  flex-shrink: 0;

  @media (min-width: 480px) {
    height: 220px;
    min-height: 200px;
  }

  @media (min-width: 768px) {
    height: 300px;
    min-height: 300px;
  }

  @media (min-width: 1024px) and (min-height: 800px) {
    height: 400px;
    min-height: 400px;
  }

  @media (min-width: 1024px) and (max-height: 799px) {
    height: 300px;
    min-height: 250px;
  }

  &__media {
    object-fit: cover;
    object-position: center;
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    transition: all ease 0.2s;
    image-rendering: revert;
  }
  &:hover &__media {
    transform: scale(1.02);
  }

  &__backdrop {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 25%, transparent 100%);
    position: relative;
    display: flex;
    overflow: hidden;
  }

  &__description {
    max-width: 700px;
    color: globals.$muted-color;
    text-align: left;
    line-height: 20px;
    margin-top: calc(globals.$spacing-unit * 2);
  }

  &__content {
    width: 100%;
    height: 100%;
    padding: calc(globals.$spacing-unit * 2) calc(globals.$spacing-unit * 2);
    gap: calc(globals.$spacing-unit);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    @media (min-width: 768px) {
      padding: calc(globals.$spacing-unit * 3) calc(globals.$spacing-unit * 3);
      gap: calc(globals.$spacing-unit * 1.5);
    }

    @media (min-width: 1024px) {
      padding: calc(globals.$spacing-unit * 4) calc(globals.$spacing-unit * 3);
      gap: calc(globals.$spacing-unit * 2);
    }
  }

  &__logo {
    max-width: 100%;
    height: auto;
    width: 120px;

    @media (min-width: 480px) {
      width: 150px;
    }

    @media (min-width: 768px) {
      width: 200px;
    }

    @media (min-width: 1024px) and (min-height: 800px) {
      width: 250px;
    }

    @media (min-width: 1024px) and (max-height: 799px) {
      width: 200px;
    }
  }
}
