/**
 * Trust Hero Section — front-end styles
 */

.tsh-hero {
  --tsh-text-main: #1a3b41;
  --tsh-secondary: #529553;
  --tsh-secondary-light: #75b376;
  --tsh-title-color: #fff;
  --tsh-text-color: rgba(255, 255, 255, 0.7);
  --tsh-button-text-color: #fff;
  --tsh-tag-icon-color: #75b376;
  --tsh-content-width: 1440px;
  --tsh-hero-product-max-width: 588px;
  --tsh-hero-product-max-height: 461px;
  --tsh-hero-bg-desktop: none;
  --tsh-hero-bg-mobile: var(--tsh-hero-bg-desktop);
  --tsh-hero-bg: var(--tsh-hero-bg-desktop);
  box-sizing: border-box;
}

.tsh-hero *,
.tsh-hero *::before,
.tsh-hero *::after {
  box-sizing: inherit;
}

.tsh-section__inner {
  width: 100%;
  max-width: var(--tsh-content-width);
  margin-inline: auto;
  padding-inline: 56px;
}

.tsh-absolute {
  position: absolute;
}

.tsh-hero {
  display: flex;
  align-items: flex-start;
  margin-top: -154px;
  padding: 200px 0 300px;
  background-image: var(--tsh-hero-bg);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.tsh-hero__grid {
  display: grid;
  grid-template-columns: 3fr 4fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--tsh-content-width);
  margin-inline: auto;
  padding-inline: 56px;
  position: relative;
}

.tsh-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline-end: 100px;
}

.tsh-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tsh-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: color-mix(in srgb, var(--tsh-secondary) 10%, transparent);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--tsh-secondary-light);
  font-weight: 700;
}

.tsh-hero__tag-icon {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 1;
  color: var(--tsh-tag-icon-color, var(--tsh-secondary-light));
}

.tsh-hero__title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.5;
  color: var(--tsh-title-color);
  margin: 0;
}

.tsh-hero__title-block {
  position: relative;
  min-height: 3.75rem;
}

.tsh-hero__title-text {
  display: none;
}

.tsh-hero__title-text.is-active {
  display: block;
}

.tsh-hero__title-text.is-entering {
  animation: tsh-title-enter 0.45s ease forwards;
}

.tsh-hero__title-text.is-leaving {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: block;
  animation: tsh-title-leave 0.3s ease forwards;
}

@keyframes tsh-title-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tsh-title-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.tsh-hero__slider {
  overflow: hidden;
  width: 100%;
  max-width: var(--tsh-hero-product-max-width);
}

.tsh-hero__track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.tsh-hero__slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tsh-hero__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  list-style: none;
}

.tsh-hero .tsh-hero__nav .tsh-hero__nav-dot {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  max-height: 8px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.35) !important;
  background-image: none !important;
  box-shadow: none !important;
  font: 0/0 sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  vertical-align: middle;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.tsh-hero .tsh-hero__nav .tsh-hero__nav-dot.is-active {
  width: 28px !important;
  min-width: 28px;
  background: var(--tsh-secondary-light) !important;
}

.tsh-hero .tsh-hero__nav .tsh-hero__nav-dot:focus-visible {
  outline: 2px solid var(--tsh-secondary-light);
  outline-offset: 2px;
}

.tsh-hero__expert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-inline-start: 16px;
  border-radius: 8px;
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--tsh-secondary) 10%, transparent) 0%,
    transparent 100%
  );
}

.tsh-hero__expert-photo img {
  display: block;
  width: 48px;
  height: auto;
  border-radius: 50%;
}

.tsh-hero__expert-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--tsh-title-color);
  margin: 0;
}

.tsh-hero__expert-role {
  font-size: 1rem;
  color: var(--tsh-text-color);
  margin: 0;
}

.tsh-hero__text-block {
  position: relative;
  min-height: 3rem;
}

.tsh-hero__text {
  color: var(--tsh-text-color);
  margin: 0;
  line-height: 1.6;
}

.tsh-hero__text-item {
  display: none;
}

.tsh-hero__text-item.is-active {
  display: block;
}

.tsh-hero__text-item.is-entering {
  animation: tsh-title-enter 0.45s ease forwards;
}

.tsh-hero__text-item.is-leaving {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: block;
  animation: tsh-title-leave 0.3s ease forwards;
}

.tsh-hero .tsh-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: unset;
  padding: 12px 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--tsh-secondary) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--tsh-button-text-color) !important;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tsh-hero .tsh-hero__button:hover,
.tsh-hero .tsh-hero__button:focus-visible {
  background: color-mix(in srgb, var(--tsh-secondary) 85%, #000) !important;
  color: var(--tsh-button-text-color) !important;
}

.tsh-hero__figure--desktop {
  width: 50%;
  max-width: 50%;
  bottom: 130px;
  transform: translateX(-80%);
}

body:not(.rtl) .tsh-hero__figure--desktop {
  right: 50%;
}

body.rtl .tsh-hero__figure--desktop {
  left: 50%;
}

.tsh-hero__figure img {
  display: block;
  width: 100%;
  max-width: var(--tsh-hero-product-max-width);
  height: auto;
  max-height: var(--tsh-hero-product-max-height);
  object-fit: contain;
  object-position: center bottom;
}

.tsh-hero__figure--mobile {
  display: none;
}

@media (max-width: 1024px) {
  .tsh-section__inner,
  .tsh-hero__grid {
    padding-inline: 40px;
  }

  .tsh-hero__grid {
    grid-template-columns: 2fr 1fr;
  }

  .tsh-hero__content {
    padding-inline-end: 0;
  }

  body:not(.rtl) .tsh-hero__figure--desktop {
    right: 40%;
  }

  body.rtl .tsh-hero__figure--desktop {
    left: 40%;
  }
}

@media (max-width: 767px) {
  .tsh-hero {
    --tsh-hero-bg: var(--tsh-hero-bg-mobile);
    margin-top: -120px;
    margin-bottom: 0;
    padding: 120px 0 0;
  }

  .tsh-hero__grid {
    grid-template-columns: 1fr;
    padding-inline: 16px;
	padding-bottom: 40px;
  }

  .tsh-hero__title {
    font-size: 1.5rem;
  }

  .tsh-hero__title-block {
    min-height: 2.25rem;
  }

  .tsh-hero__expert {
    padding: 8px;
    width: fit-content;
  }

  .tsh-hero__expert-photo img {
    width: 32px;
  }

  .tsh-hero__expert-role {
    font-size: 0.875rem;
  }

  .tsh-hero__figure--desktop {
    display: none;
  }

  .tsh-hero__figure--mobile {
    display: block;
    width: 80%;
    max-width: 80%;
    align-self: flex-end;
    margin-inline-start: auto;
  }

  .tsh-hero__slider {
    max-width: 100%;
    margin-right: 33px;
  }

  .tsh-hero__figure img {
    max-width: 100%;
    max-height: min(var(--tsh-hero-product-max-height), 52vw);
  }
}

@media (min-width: 768px) {
  .tsh-hero__figure--desktop {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    top: 0;
  }
}

@media (min-width: 1441px) {
  .tsh-hero__figure--desktop {
    bottom: -12vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tsh-hero__track,
  .tsh-hero .tsh-hero__nav .tsh-hero__nav-dot,
  .tsh-hero .tsh-hero__button,
  .tsh-hero__title-text.is-entering,
  .tsh-hero__title-text.is-leaving,
  .tsh-hero__text-item.is-entering,
  .tsh-hero__text-item.is-leaving {
    transition: none;
    animation: none;
  }
}
