/**
 * HELkom Hero Mosaic Styles
 */

.smort-helkom-hero-mosaic {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 0 1.2rem;
  padding-top: 0;
  background: #eef1eb;
  background: linear-gradient(
    0deg,
    rgba(238, 241, 235, 1) 27%,
    rgba(255, 255, 255, 0) 27%
  );
}

.smort-helkom-hero-mosaic__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    "main"
    "side"
    "bottom-a"
    "bottom-b";
}

.smort-helkom-hero-mosaic__main-card,
.smort-helkom-hero-mosaic__side-card,
.smort-helkom-hero-mosaic__bottom-card {
  position: relative;
  overflow: hidden;

  border-radius: var(--border-raduis-smort);
  background-color: #233226;
  isolation: isolate;
}

.smort-helkom-hero-mosaic__main-card::before,
.smort-helkom-hero-mosaic__side-card::before,
.smort-helkom-hero-mosaic__bottom-card::before,
.smort-helkom-hero-mosaic__top-slide::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-card-image);
  background-position: center;
  background-size: cover;
  content: "";
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.smort-helkom-hero-mosaic__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.smort-helkom-hero-mosaic__main-card {
  grid-area: main;
  min-height: 17rem;
}
.smort-helkom-hero-mosaic__side-card {
  grid-area: side;
  min-height: 25rem;
}

.smort-helkom-hero-mosaic__bottom-card:nth-child(3) {
  grid-area: bottom-a;
  min-height: 40rem;
}

.smort-helkom-hero-mosaic__bottom-card:nth-child(4) {
  grid-area: bottom-b;
  min-height: 40rem;
}

.smort-helkom-hero-mosaic__overlay {
  position: absolute;
  inset: 0;

  z-index: 1;
  opacity: 0.88;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.smort-helkom-hero-mosaic__main-card .smort-helkom-hero-mosaic__overlay,
.smort-helkom-hero-mosaic__top-slide-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 13, 7, 0.24) 0%,
    rgba(5, 13, 7, 0.04) 100%
  );
}

.smort-helkom-hero-mosaic__bottom-card:nth-child(3)
  .smort-helkom-hero-mosaic__overlay,
.smort-helkom-hero-mosaic__bottom-card:nth-child(4)
  .smort-helkom-hero-mosaic__overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 13, 7, 0.24) 0%,
    rgba(5, 13, 7, 0.04) 100%
  );
}

.smort-helkom-hero-mosaic__content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  padding: 1.15rem;
}

.smort-helkom-hero-mosaic__main-card .smort-helkom-hero-mosaic__content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.2rem 1.2rem 1.55rem;
  height: 25rem;
}

.smort-helkom-hero-mosaic__content--top {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  min-height: 100%;
  padding-top: 0.35rem;
  padding-bottom: 2.3rem;

  @media (max-width: 767px) {
    justify-content: center;
    height: 25rem;
  }
}

.smort-helkom-hero-mosaic__top-slider {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 100%;
}

.smort-helkom-hero-mosaic__top-slider .swiper-wrapper {
  height: 100%;
}

.smort-helkom-hero-mosaic__top-slider .swiper-slide {
  height: 100%;
}

.smort-helkom-hero-mosaic__top-slide {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.smort-helkom-hero-mosaic__top-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.88;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(
    180deg,
    rgba(7, 14, 8, 0.08) 12%,
    rgba(7, 14, 8, 0.84) 100%
  );
}

.smort-helkom-hero-mosaic__top-slide .smort-helkom-hero-mosaic__content {
  position: relative;
  z-index: 2;
}

.smort-helkom-hero-mosaic__top-slide .smort-helkom-hero-mosaic__content,
.smort-helkom-hero-mosaic__top-slide .smort-helkom-hero-mosaic__content * {
  transition: none;
}

.smort-helkom-hero-mosaic__top-slide .smort-helkom-hero-mosaic__content {
  visibility: visible;
  opacity: 1;
  transform: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.smort-helkom-hero-mosaic__main-card > .smort-helkom-hero-mosaic__content {
  position: relative;
}

.smort-helkom-hero-mosaic__content--bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  align-items: center;
}

.smort-helkom-hero-mosaic__kicker {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.smort-helkom-hero-mosaic__title,
.smort-helkom-hero-mosaic__side-title,
.smort-helkom-hero-mosaic__bottom-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  text-transform: uppercase;
}

.smort-helkom-hero-mosaic__title {
  font-size: var(--h1-sm-size);
  line-height: var(--h1-sm-height);
  letter-spacing: 0.01em;
}

.smort-helkom-hero-mosaic__side-title {
  font-size: var(--h3-sm-size);
  line-height: var(--h3-sm-height);
}

.smort-helkom-hero-mosaic__bottom-title {
  font-size: var(--h3-sm-size);
  line-height: var(--h3-sm-height);
}

.smort-helkom-hero-mosaic__text {
  margin: 0.6rem auto 0.78rem;
  font-size: 18px;
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.88);
}

.smort-helkom-hero-mosaic__main-link-wrap,
.smort-helkom-hero-mosaic__side-link-wrap {
  display: inline-flex;
}

.smort-helkom-hero-mosaic__main-link-wrap .button,
.smort-helkom-hero-mosaic__side-link-wrap .button {
  position: static;
}

.smort-helkom-hero-mosaic__main-link-wrap .button::after,
.smort-helkom-hero-mosaic__side-link-wrap .button::after {
  position: absolute;
  inset: -1000px;
  z-index: 3;
  content: "";
}

.smort-helkom-hero-mosaic__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.smort-helkom-hero-mosaic__bottom-card-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  width: 4.5rem;
  height: 4.5rem;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.75);
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}

.smort-helkom-hero-mosaic__bottom-card-cursor .icon {
  width: 2.25rem;
  height: 2.25rem;
}

@media (hover: hover) and (pointer: fine) {
  .smort-helkom-hero-mosaic__bottom-card:nth-child(3).is-linked,
  .smort-helkom-hero-mosaic__bottom-card:nth-child(4).is-linked {
    cursor: none;
  }

  .smort-helkom-hero-mosaic__bottom-card:nth-child(3).is-linked
    .smort-helkom-hero-mosaic__stretched-link,
  .smort-helkom-hero-mosaic__bottom-card:nth-child(4).is-linked
    .smort-helkom-hero-mosaic__stretched-link {
    cursor: none;
  }

  .smort-helkom-hero-mosaic__bottom-card:nth-child(3):hover
    .smort-helkom-hero-mosaic__bottom-card-cursor,
  .smort-helkom-hero-mosaic__bottom-card:nth-child(4):hover
    .smort-helkom-hero-mosaic__bottom-card-cursor {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.smort-helkom-hero-mosaic__pagination.swiper-pagination {
  z-index: 4;
}

.smort-helkom-hero-mosaic__main-link-wrap .button,
.smort-helkom-hero-mosaic__side-link-wrap .button {
  font-size: 0.8rem;
}

.smort-helkom-hero-mosaic__main-link-wrap {
  margin-top: 0.05rem;
}

.smort-helkom-hero-mosaic__side-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.28;
  font-family: var(--font-heading);
  text-transform: none;
  max-width: 30ch;
  font-weight: 600;
}

.smort-helkom-hero-mosaic__side-link-wrap {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  margin-top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.smort-helkom-hero-mosaic__pagination.swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
  bottom: 1.9rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.52rem;
}

.smort-helkom-hero-mosaic__pagination .swiper-pagination-bullet {
  width: 4rem;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.smort-helkom-hero-mosaic__pagination
  .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #f2c56e;
}

.smort-helkom-hero-mosaic__round-link {
  margin-top: 0.6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(57, 76, 58, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) {
  .smort-helkom-hero-mosaic__main-card.is-linked:hover::before,
  .smort-helkom-hero-mosaic__bottom-card.is-linked:hover::before,
  .smort-helkom-hero-mosaic__top-slide.is-linked:hover::before {
    transform: scale(1.02);
  }

  .smort-helkom-hero-mosaic__main-card.is-linked:hover
    > .smort-helkom-hero-mosaic__overlay,
  .smort-helkom-hero-mosaic__bottom-card.is-linked:hover
    > .smort-helkom-hero-mosaic__overlay,
  .smort-helkom-hero-mosaic__top-slide.is-linked:hover
    .smort-helkom-hero-mosaic__top-slide-overlay {
    opacity: 1;
  }
}

.smort-helkom-hero-mosaic__main-card.is-linked:focus-within::before,
.smort-helkom-hero-mosaic__bottom-card.is-linked:focus-within::before,
.smort-helkom-hero-mosaic__top-slide.is-linked:focus-within::before {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .smort-helkom-hero-mosaic__main-card::before,
  .smort-helkom-hero-mosaic__side-card::before,
  .smort-helkom-hero-mosaic__bottom-card::before,
  .smort-helkom-hero-mosaic__top-slide::before,
  .smort-helkom-hero-mosaic__overlay,
  .smort-helkom-hero-mosaic__top-slide-overlay {
    transition: none;
  }
}

.smort-helkom-hero-mosaic__bottom-card:nth-child(3)
  .smort-helkom-hero-mosaic__content--bottom {
  justify-content: space-between;
}

.smort-helkom-hero-mosaic__bottom-card:nth-child(3)
  .smort-helkom-hero-mosaic__bottom-title {
  text-align: center;
  margin-inline: 0;
}

.smort-helkom-hero-mosaic__bottom-card:nth-child(4)
  .smort-helkom-hero-mosaic__content--bottom {
  justify-content: flex-end;
  align-items: flex-start;
}

.smort-helkom-hero-mosaic__bottom-card:nth-child(4)
  .smort-helkom-hero-mosaic__bottom-title {
  font-size: var(--h2-lg-size);
  line-height: var(--h2-lg-height);
}

.smort-helkom-hero-mosaic__bottom-card:nth-child(4)
  .smort-helkom-hero-mosaic__kicker {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

@media (max-width: 919px) {
  .smort-helkom-hero-mosaic__grid {
    gap: 0.72rem;
  }

  .smort-helkom-hero-mosaic__main-card {
    min-height: 20rem;
  }

  .smort-helkom-hero-mosaic__side-card {
    min-height: 25rem;
  }

  .smort-helkom-hero-mosaic__bottom-card:nth-child(3),
  .smort-helkom-hero-mosaic__bottom-card:nth-child(4) {
    min-height: 20rem;
  }

  .smort-helkom-hero-mosaic__content {
    padding: 0.95rem;
  }

  .smort-helkom-hero-mosaic__main-card .smort-helkom-hero-mosaic__content {
    padding: 1rem 1rem 1.15rem;
  }

  .smort-helkom-hero-mosaic__kicker {
    font-size: 1.1rem;
  }

  .smort-helkom-hero-mosaic__text {
    margin: 0.52rem auto 0.68rem;
    max-width: 30ch;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .smort-helkom-hero-mosaic__side-text {
    font-size: 0.8rem;
    line-height: 1.34;
  }

  .smort-helkom-hero-mosaic__bottom-card:nth-child(4)
    .smort-helkom-hero-mosaic__bottom-title {
    font-size: var(--h3-sm-size);
    line-height: var(--h3-sm-height);
  }

  .smort-helkom-hero-mosaic__bottom-card:nth-child(4)
    .smort-helkom-hero-mosaic__kicker {
    font-size: 0.86rem;
  }
}

@media (min-width: 920px) {
  .smort-helkom-hero-mosaic__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "main main side"
      "bottom-a bottom-b bottom-b";
  }

  .smort-helkom-hero-mosaic__main-card,
  .smort-helkom-hero-mosaic__side-card {
    min-height: 39rem;
  }

  .smort-helkom-hero-mosaic__bottom-card {
    min-height: 39rem;
  }

  .smort-helkom-hero-mosaic__main-card .smort-helkom-hero-mosaic__content {
    padding: 1.6rem 1.9rem 2.4rem;
  }

  .smort-helkom-hero-mosaic__side-card .smort-helkom-hero-mosaic__content {
    padding: 3rem 1rem 1rem;
  }

  .smort-helkom-hero-mosaic__bottom-card .smort-helkom-hero-mosaic__content {
    padding: 3rem 1.8rem;
  }
}

@media (min-width: 1024px) {
  .smort-helkom-hero-mosaic__title {
    font-size: var(--h1-lg-size);
    line-height: var(--h1-lg-height);
  }

  .smort-helkom-hero-mosaic__side-title,
  .smort-helkom-hero-mosaic__bottom-title {
    font-size: var(--h3-lg-size);
    line-height: var(--h3-lg-height);
  }

  .smort-helkom-hero-mosaic__main-link-wrap .button,
  .smort-helkom-hero-mosaic__side-link-wrap .button {
    font-size: 0.86rem;
  }
}
