/* ==================================================
   TEKO Home Redesign: Razzi layout reset
================================================== */

body.page-template-template-home-redesign .site-content,
body.page-template-template-home-redesign-php .site-content {
  padding-top: 0;
  padding-bottom: 0;
}

body.page-template-template-home-redesign .site-content > .razzi-container,
body.page-template-template-home-redesign-php .site-content > .razzi-container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body.page-template-template-home-redesign .site-main,
body.page-template-template-home-redesign-php .site-main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.teko-home-redesign {
  background: var(--teko-neutral-50);
  color: var(--teko-neutral-1000);
  font-family: var(--teko-font-primary);
}

.teko-container {
  width: min(
    calc(100% - (var(--teko-container-padding-desktop) * 2)),
    var(--teko-container-width)
  );
  margin-inline: auto;
}

/* Hero */
.teko-hero {
  position: relative;
  min-height: 700px;
  isolation: isolate;
  overflow: hidden;
  background: var(--teko-neutral-1000);
}

.teko-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("https://preview.tekoshop.com.ua/wp-content/uploads/hero.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.teko-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.8) 0%,
    rgba(17, 17, 17, 0.58) 42%,
    rgba(17, 17, 17, 0.3) 100%
  );
}

.teko-hero__inner {
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-block: 80px;
}

.teko-hero__content {
  max-width: 872px;
  color: var(--teko-neutral-0);
}

.teko-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--teko-radius-pill);
  font-family: var(--teko-label-3-font-family);
  font-size: var(--teko-label-3-font-size-12px);
  line-height: var(--teko-label-3-line-height-16px);
  font-weight: var(--teko-weight-medium);
  letter-spacing: var(--teko-label-3-letter-spacing-minus-012px);
  text-transform: uppercase;
  color: var(--teko-neutral-0);
}

.teko-hero__eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teko-brown-400);
}

.teko-hero__title {
  max-width: 872px;
  margin: 0 0 16px;
  font-family: var(--teko-heading-h1-font-family);
  font-size: var(--teko-heading-h1-font-size-80px);
  line-height: var(--teko-heading-h1-line-height-80px);
  font-weight: var(--teko-weight-medium);
  letter-spacing: var(--teko-heading-h1-letter-spacing-minus-1px);
  color: var(--teko-neutral-0);
}

.teko-hero__text {
  max-width: 872px;
  margin: 0 0 24px;
  font-family: var(--teko-body-2-font-family);
  font-size: var(--teko-body-2-font-size-16px);
  line-height: var(--teko-body-2-line-height-24px);
  font-weight: var(--teko-weight-regular);
  color: var(--teko-neutral-0);
}

.teko-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.teko-hero__btn {
  width: 312px;
}

/* Features */
.teko-features {
  background: var(--teko-neutral-0);
}

.teko-features__grid {
  min-height: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  padding-block: 32px;
}

.teko-feature {
  text-align: center;
  color: var(--teko-neutral-1000);
}

.teko-feature__icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  background-color: var(--teko-brown-400);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.teko-feature__icon--production {
  mask-image: url("../../img/icons/feature-production.svg");
  -webkit-mask-image: url("../../img/icons/feature-production.svg");
}

.teko-feature__icon--personalization {
  mask-image: url("../../img/icons/feature-personalization.svg");
  -webkit-mask-image: url("../../img/icons/feature-personalization.svg");
}

.teko-feature__icon--warranty {
  mask-image: url("../../img/icons/feature-warranty.svg");
  -webkit-mask-image: url("../../img/icons/feature-warranty.svg");
}

.teko-feature__title {
  margin: 0 0 8px;
  font-family: var(--teko-label-1-font-family);
  font-size: var(--teko-label-1-font-size-16px);
  line-height: var(--teko-label-1-line-height-22px);
  font-weight: var(--teko-weight-medium);
  letter-spacing: var(--teko-label-1-letter-spacing-minus-018px);
  color: var(--teko-neutral-1000);
}

.teko-feature__text {
  max-width: 312px;
  margin: 0 auto;
  font-family: var(--teko-body-4-font-family);
  font-size: var(--teko-body-4-font-size-12px);
  line-height: var(--teko-body-4-line-height-16px);
  font-weight: var(--teko-weight-regular);
  color: var(--teko-neutral-700);
}

/* ==========================================================================
   TEKO Categories Slider
   ========================================================================== */

.teko-categories {
  padding: 192px 0;
  background: var(--teko-neutral-50);
}

.teko-categories__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.teko-categories__title {
  margin: 0;
  color: var(--teko-neutral-1000);
  font-family: var(--teko-heading-h2-font-family);
  font-size: var(--teko-heading-h2-font-size-64px);
  font-weight: var(--teko-weight-regular);
  line-height: var(--teko-heading-h2-line-height-68px);
  letter-spacing: var(--teko-heading-h2-letter-spacing-minus-05px);
}

/* Slider wrapper */
.teko-categories__slider {
  width: 100%;
  overflow: hidden;
}

/* Swiper track */
.teko-categories__track {
  align-items: stretch;
}

/* Category card */
.teko-category-card {
  position: relative;
  display: block;
  height: 561px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--teko-neutral-200);
  color: var(--teko-neutral-0);
  text-decoration: none;
  user-select: none;
  isolation: isolate;
}

.teko-category-card.swiper-slide {
  width: auto;
  height: 561px;
}

/* Image */
.teko-category-card__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.45s ease;
}

/* Dark gradient over image */
.teko-category-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0) 0%,
    rgba(17, 17, 17, 0.8) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Title */
.teko-category-card__title {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  display: block;
  color: var(--teko-neutral-0);
  text-align: center;
  font-family: var(--teko-heading-h5-font-family);
  font-size: var(--teko-heading-h5-font-size-24px);
  font-weight: var(--teko-weight-medium);
  line-height: var(--teko-heading-h5-line-height-30px);
  letter-spacing: var(--teko-heading-h5-letter-spacing-minus-015px);
}

/* Hover */
@media (hover: hover) {
  .teko-category-card:hover .teko-category-card__image {
    transform: scale(1.04);
  }

  .teko-category-card:hover .teko-category-card__overlay {
    opacity: 0.9;
  }
}

/* Focus */
.teko-category-card:focus-visible {
  outline: 2px solid var(--teko-brown-400);
  outline-offset: 4px;
}

/* ==========================================================================
   Slider Navigation
   ========================================================================== */

.teko-slider-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teko-slider-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 12px;
  border: 0;
  border-radius: 4px;
  background: var(--teko-neutral-500);
  color: var(--teko-neutral-0);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.teko-slider-nav__btn svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.teko-slider-nav__btn:hover {
  background: var(--teko-neutral-700);
  color: var(--teko-neutral-0);
}

.teko-slider-nav__btn:active {
  transform: scale(0.96);
  background: var(--teko-neutral-900);
}

.teko-slider-nav__btn:focus-visible {
  outline: 2px solid var(--teko-brown-400);
  outline-offset: 4px;
}

/* Disabled button */
.teko-slider-nav__btn.swiper-button-disabled,
.teko-slider-nav__btn:disabled {
  background: var(--teko-neutral-200);
  color: var(--teko-neutral-0);
  opacity: 1;
  cursor: default;
  pointer-events: none;
}
/* ==========================================================================
   Persinalization
   ========================================================================== */
.teko-personal {
  padding: 192px 0;
  background: var(--teko-neutral-100);
}

.teko-personal__title {
  margin: 0 0 60px;
  color: var(--teko-neutral-1000);
  font-family: var(--teko-heading-h2-font-family);
  font-size: var(--teko-heading-h2-font-size-64px);
  font-weight: var(--teko-weight-regular);
  line-height: var(--teko-heading-h2-line-height-68px);
  letter-spacing: var(--teko-heading-h2-letter-spacing-minus-05px);
  text-align: center;
}

.teko-personal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.teko-personal-card {
  position: relative;
  display: flex;
  min-height: 501px;
  overflow: hidden;
  color: var(--teko-neutral-0);
  text-decoration: none;
  isolation: isolate;
}

.teko-personal-card__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.teko-personal-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0) 0%,
    rgba(17, 17, 17, 0.68) 100%
  );
  transition: background-color 0.25s ease;
}

.teko-personal-card__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  padding: 60px;
}

.teko-personal-card__title {
  display: block;
  margin: 0 0 16px;
  color: var(--teko-neutral-0);
  font-family: var(--teko-heading-5-font-family);
  font-size: var(--teko-heading-5-font-size-24px);
  font-weight: var(--teko-weight-semibold);
  line-height: var(--teko-heading-5-line-height-30px);
  letter-spacing: var(--teko-heading-5-letter-spacing-minus-015px);
}

.teko-personal-card__text {
  display: block;
  max-width: 600px;
  margin: 0 0 24px;
  color: var(--teko-neutral-50);
  font-family: var(--teko-body-2-font-family);
  font-size: var(--teko-body-2-font-size-16px);
  font-weight: var(--teko-weight-regular);
  line-height: var(--teko-body-2-line-height-24px);
  letter-spacing: var(--teko-body-2-letter-spacing-0px);
}

.teko-personal-card__btn {
  width: 200px;
  pointer-events: none;
}

.teko-personal-card:hover .teko-personal-card__image {
  transform: scale(1.04);
}

.teko-personal-card:hover .teko-personal-card__overlay {
  background-color: rgba(17, 17, 17, 0.12);
}

.teko-personal-card:focus-visible {
  outline: 2px solid var(--teko-brown-400);
  outline-offset: 4px;
}

/* Tablet */
@media (max-width: 1199px) {
  .teko-personal {
    padding: 140px 0;
  }

  .teko-personal__title {
    margin-bottom: 48px;
  }

  .teko-personal-card {
    min-height: 430px;
  }

  .teko-personal-card__content {
    padding: 48px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .teko-personal {
    padding: 96px 0;
  }

  .teko-personal__title {
    margin-bottom: 32px;
    font-size: var(--teko-heading-4-font-size-32px);
    line-height: var(--teko-heading-4-line-height-38px);
    letter-spacing: var(--teko-heading-4-letter-spacing-minus-02px);
  }

  .teko-personal__grid {
    grid-template-columns: 1fr;
  }

  .teko-personal-card {
    min-height: 420px;
  }

  .teko-personal-card__content {
    padding: 32px 20px;
  }

  .teko-personal-card__text {
    max-width: 100%;
  }

  .teko-personal-card__btn {
    width: 100%;
    max-width: 240px;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
  .teko-categories {
    padding: 144px 0;
  }

  .teko-categories__head {
    margin-bottom: 40px;
  }

  .teko-category-card,
  .teko-category-card.swiper-slide {
    height: 500px;
  }
}

@media (max-width: 991px) {
  .teko-categories {
    padding: 112px 0;
  }

  .teko-categories__title {
    font-size: var(--teko-heading-h3-font-size-44px);
    line-height: var(--teko-heading-h3-line-height-48px);
    letter-spacing: var(--teko-heading-h3-letter-spacing-minus-03px);
  }

  .teko-category-card,
  .teko-category-card.swiper-slide {
    height: 460px;
  }
}

@media (max-width: 767px) {
  .teko-categories {
    padding: 80px 0;
  }

  .teko-categories__head {
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 32px;
  }

  .teko-categories__title {
    font-size: var(--teko-heading-h4-font-size-32px);
    line-height: var(--teko-heading-h4-line-height-38px);
    letter-spacing: var(--teko-heading-h4-letter-spacing-minus-02px);
  }

  .teko-slider-nav__btn {
    width: 44px;
    height: 44px;
    padding: 12px;
  }

  .teko-slider-nav__btn svg {
    width: 20px;
    height: 20px;
  }

  .teko-category-card,
  .teko-category-card.swiper-slide {
    height: 430px;
  }

  .teko-category-card__title {
    left: 24px;
    right: 24px;
    bottom: 24px;
    font-size: var(--teko-heading-h6-font-size-20px);
    line-height: var(--teko-heading-h6-line-height-24px);
    letter-spacing: var(--teko-heading-h6-letter-spacing-0px);
  }
}

@media (max-width: 479px) {
  .teko-categories {
    padding: 64px 0;
  }

  .teko-categories__head {
    gap: 16px;
    margin-bottom: 24px;
  }

  .teko-slider-nav {
    gap: 8px;
  }

  .teko-slider-nav__btn {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .teko-category-card,
  .teko-category-card.swiper-slide {
    height: 390px;
  }

  .teko-category-card__title {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .teko-categories {
    padding-top: 80px;
  }

  .teko-section-head {
    align-items: flex-end;
  }

  .teko-category-card {
    flex-basis: 78%;
    height: 420px;
  }

  .teko-category-card__title {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .teko-category-card {
    flex-basis: 86%;
    height: 360px;
  }

  .teko-slider-nav {
    display: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .teko-container {
    width: min(
      calc(100% - (var(--teko-container-padding-tablet) * 2)),
      var(--teko-container-width)
    );
  }

  .teko-hero__title {
    font-size: clamp(3.25rem, 7vw, var(--teko-heading-h1-font-size-80px));
    line-height: 1;
  }

  .teko-hero__actions {
    gap: 16px;
  }

  .teko-hero__btn {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .teko-container {
    width: calc(100% - (var(--teko-container-padding-mobile) * 2));
  }

  .teko-hero {
    min-height: 620px;
  }

  .teko-hero__inner {
    min-height: 620px;
    padding-block: 64px;
    align-items: flex-end;
  }

  .teko-hero__content {
    max-width: 100%;
  }

  .teko-hero__title {
    font-size: 3rem;
    line-height: 3.125rem;
    letter-spacing: -0.5px;
  }

  .teko-hero__text {
    font-size: var(--teko-body-3-font-size-14px);
    line-height: var(--teko-body-3-line-height-20px);
  }

  .teko-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .teko-hero__btn {
    width: 100%;
  }

  .teko-features__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 32px;
  }
}
