@use "../../mixins" as *;
@use "../../variables" as *;

.hero {
  position: relative;
  z-index: 1;

  background-image: url("../images/bg-image.png?v=3");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 653px;

  display: grid;
  place-items: center;

  //   @include responsive(md) {
  //   min-height: 803px;
  // }

  @include responsive(lg) {
    min-height: 803px;
  }
  @include responsive(lg) {
    place-items: center;
    padding-top: 0;
  }

  color: $white-color;

  &__content-container {
    display: grid;
    place-items: start;

    gap: 2rem;
    // grid-template-columns: 1fr;
    grid-template-columns: 3fr;

    @include responsive(md) {
      grid-template-columns: 1.5fr 1fr;
    }
  }

  // &__content-container > *:first-child {
  //   order: 2;
  //   @include responsive(lg) {
  //     order: 1;
  //   }
  // }
  // &__content-container > *:last-child {
  //   order: 1;
  //   @include responsive(lg) {
  //     order: 2;
  //   }
  // }

  &__content {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-evenly;
    height: 100%;
    gap: 2rem;
    @include responsive(md){
    gap: 0;

    }
    @include responsive(lg) {
      margin-top: -0.75rem;
    }
  }

  // &__logo {
  //   max-width: 183px;
  //   max-height: 43px;
  //   margin: 2rem 0;

  //   @include responsive(md) {
  //     max-width: 283px;
  //     max-height: 63px;
  //   }
  

  //   object-fit: contain;
  // }

  &__title {
    max-width: 372px;
  
    font-size: 30.83px;
    @include responsive(md) {
      font-size: 37.83px;
      max-width: 100%;

    }
    @include responsive(lg) {
      font-size: 45.83px;
    }
    line-height: 1.3;
  }

  &__br {
    display: none;
    @include responsive(lg) {
      display: inline;
    }
  }

  &__meta {
    margin-top: 1rem;

    display: flex;
    align-items: left;
    flex-direction: column;

    @include responsive(lg) {
      flex-direction: row;
      align-items: center;
    }
    gap: 2rem;
    justify-content: space-between;
    width: 100%;
  }

  &__meta-item {
    display: flex;

    align-items: center;
    gap: 1rem;
    max-width: 180px;
    @include responsive(md) {
      max-width: 100%;
    }
  }

  &__meta-icon {
    max-width: 25px;
    max-height: 25px;
    @include responsive(md) {
      max-width: 35px;
      max-height: 35px;
    }
    @include responsive(lg) {
      max-width: 45px;
      max-height: 45px;
    }

    object-fit: contain;
    // margin-top: 0.35rem;
  }

  &__meta-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;

    // font-size: 12.45px;
    // @include responsive(lg) {
    //   font-size: 15.45px;
    // }
    // @include responsive(lg) {
    //   font-size: 18.45px;
    // }
  }

  &__meta-label {
    color: $secondary-color;
  }

  &__meta-value {
    font-weight: normal;
  }

  &__img {
    position: absolute;
    z-index: 22;
    bottom: 5rem;
    right: 1rem;
    max-width: 50%;
    max-height: 50%;
    @include responsive(md) {
      display: none; // hidden on mobile
    }
  }

  &__image {
    display: none; // hidden on mobile

    @include responsive(md) {
      display: grid; // visible starting from tablet
      place-items: center;
    }

    &-img {
      max-width: 35%;

      @include responsive(md) {
        max-width: 75%;
      }

      @include responsive(lg) {
        max-width: 100%;
      }

      height: auto;
    }
  }
}
