/* =============================================================================
   Vitakontrol – Főoldal v1.1.17
   ============================================================================= */

.vk-home-page {
  overflow: hidden;
  background: #fff;
}

.vk-home-container {
  width: min(1184px, calc(100% - 64px));
  margin: 0 auto;
}

/* Hero ---------------------------------------------------------------------- */
.vk-home-hero {
  position: relative;
  min-height: clamp(520px, 47vw, 710px);
  overflow: hidden;
  background-color: #374A66;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0 0 26px 26px;
  isolation: isolate;
}

.vk-home-hero__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 21, 33, .55) 0%, rgba(12, 21, 33, .26) 41%, rgba(12, 21, 33, .04) 74%);
}

.vk-home-hero__inner {
  display: flex;
  align-items: flex-end;
  min-height: inherit;
  padding-top: 72px;
  padding-bottom: clamp(54px, 7vw, 114px);
  box-sizing: border-box;
}

.vk-home-hero__content {
  max-width: 1024px;
  color: #fff;
}

.vk-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin: 0 0 14px;
  padding: 2px 14px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.vk-home-hero__title {
  max-width: 1024px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
}

/* A két címsor szándékosan nem azonos tipográfiai szint:
   az első ACF mező normál mondatként, kisebb méretben jelenik meg,
   a második pedig a Figma szerinti nagy, verzál kiemelés. */
.vk-home-hero__title span,
.vk-home-hero__title strong {
  display: block;
}

.vk-home-hero__title span {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

.vk-home-hero__title strong {
  margin-top: 2px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: uppercase;
}

.vk-home-hero__description {
  max-width: 530px;
  margin-top: 18px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.vk-home-hero__description p {
  margin: 0;
}

.vk-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.vk-home-button,
.vk-home-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  box-sizing: border-box;
  padding: 12px 24px;
  border: 1px solid #374A66;
  border-radius: 7px;
  color: #374A66;
  background: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.vk-home-button--ghost,
.vk-home-button--ghost:visited {
  border-color: rgba(255, 255, 255, .92);
  color: #fff;
  background: transparent;
}

.vk-home-button--light:hover,
.vk-home-button--light:focus-visible {
  color: #fff;
  background: #374A66;
}

.vk-home-button--ghost:hover,
.vk-home-button--ghost:focus-visible {
  color: #374A66;
  background: #fff;
}

.vk-home-button--outline,
.vk-home-button--outline:visited {
  min-height: 40px;
  border-color: #374A66;
  color: #374A66;
  background: #fff;
}

.vk-home-button--outline:hover,
.vk-home-button--outline:focus-visible {
  color: #fff;
  background: #374A66;
}

/* Aktuális kedvencek ------------------------------------------------------- */
.vk-home-favorites {
  padding: 46px 0 54px;
  border-radius: 0 0 38px 38px;
  background: #EEE8E5;
}

.vk-home-section-title {
  margin: 0;
  padding: 0;
  color: #374A66;
  font-family: "Cabin", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.vk-home-section-title--center {
  margin-bottom: 28px;
  text-align: center;
}

.vk-home-products.vk-shop {
  /* A .vk-shop az általános shop oldalon fehér hátteret és alsó paddinget kap.
     A főoldali szekciókon kizárólag a termékkártyák legyenek fehérek. */
  padding-bottom: 0;
  background: transparent;
}

.vk-home-products.vk-shop .vk-shop-results {
  width: 100%;
  background: transparent;
}

.vk-home-products .vk-products-grid.products,
.vk-home-products .vk-course-products-grid.products {
  display: grid !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.vk-home-products .vk-products-grid.products::before,
.vk-home-products .vk-products-grid.products::after {
  display: none !important;
  content: none !important;
}

.vk-home-products--favorites .vk-products-grid.products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
}

/* A főoldali kurzusblokk a kurzusarchívum közös osztályait is használja.
   Ezért itt szándékosan erősebb a szelektor, hogy a front-page rács
   (desktopon 3, tableten 2, mobilon 1 oszlop) ne örökölje az archívum
   négyoszlopos alapbeállítását. */
.vk-home-products--courses.vk-shop--course-archive .vk-course-products-grid.products {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px;
}

.vk-home-products .vk-products-grid.products > li.vk-product-card,
.woocommerce .vk-home-products ul.products.vk-products-grid > li.product.vk-product-card,
.woocommerce-page .vk-home-products ul.products.vk-products-grid > li.product.vk-product-card {
  display: flex;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

.vk-home-products .vk-product-card,
.vk-home-products .vk-course-product-card {
  border-color: #374A66;
  box-shadow: none;
  transform: none !important;
}

.vk-home-products .vk-product-card:hover,
.vk-home-products .vk-product-card:focus-within {
  border-color: #374A66;
  box-shadow: none;
  transform: none !important;
}

.vk-home-products-empty {
  padding: 34px 20px;
  border: 1px dashed rgba(55, 74, 102, .45);
  border-radius: 12px;
  color: #374A66;
  background: rgba(255, 255, 255, .58);
  text-align: center;
}

.vk-home-products-empty p {
  margin: 0;
}

/* ZO Skin Health / indokok ------------------------------------------------ */
.vk-home-story,
.vk-home-courses {
  padding: 88px 0 0;
}

.vk-home-intro {
  max-width: 740px;
}

.vk-home-intro__eyebrow {
  margin: 0 0 7px;
  color: #374A66;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.vk-home-intro__description {
  margin-top: 14px;
  color: #182231;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.vk-home-intro__description p {
  margin: 0 0 12px;
}

.vk-home-intro__description p:last-child {
  margin-bottom: 0;
}

.vk-home-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.vk-home-reason {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 7px;
  background: #d8ceca;
  isolation: isolate;
}

.vk-home-reason > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk-home-reason__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 18, 26, .02) 28%, rgba(13, 18, 26, .58) 100%);
}

.vk-home-reason__content {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  color: #fff;
}

.vk-home-reason__content h3 {
  margin: 0;
  color: #fff;
  font-family: "Cabin", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.vk-home-reason__content p {
  margin: 5px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

/* Kiemelt kurzusok --------------------------------------------------------- */
.vk-home-courses {
  padding-bottom: 92px;
}

.vk-home-course-banner {
  position: relative;
  min-height: 188px;
  margin-top: 36px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #D7A8A8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  isolation: isolate;
}

/* Desktopon a magasabb bannerben a háttérkép felső része marad látható,
   a bal oldali tartalom pedig függőlegesen középre igazodik. Mobilon a meglévő
   kisebb banner- és tartalomelrendezés változatlan marad. */
@media (min-width: 768px) {
  .vk-home-course-banner {
    display: flex;
    align-items: center;
    min-height: 320px;
    background-position: center top;
  }
}

.vk-home-course-banner__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(229, 166, 173, .96) 0%, rgba(229, 166, 173, .88) 34%, rgba(229, 166, 173, .12) 70%, rgba(229, 166, 173, 0) 100%);
}

.vk-home-course-banner__content {
  width: min(510px, 58%);
  padding: 31px 34px;
  color: #fff;
}

.vk-home-course-banner__content h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Cabin", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
}

.vk-home-course-banner__content p {
  margin: 0;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.vk-home-products--courses {
  margin-top: 16px;
}

.vk-home-courses__cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* The course archive styles are intentionally reused on the home page.
   Only the home grid width and number of columns differ from that archive. */
.vk-home-products--courses.vk-shop--course-archive .vk-course-product-card__image {
  aspect-ratio: 1.08 / 1;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1120px) {
  .vk-home-products--favorites .vk-products-grid.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .vk-home-reason {
    min-height: 260px;
  }
}

@media (max-width: 860px) {
  .vk-home-container {
    width: min(100% - 40px, 690px);
  }

  .vk-home-hero {
    min-height: 560px;
    background-position: 58% center;
  }

  .vk-home-hero__overlay {
    background: linear-gradient(90deg, rgba(12, 21, 33, .62) 0%, rgba(12, 21, 33, .31) 77%, rgba(12, 21, 33, .16) 100%);
  }

  .vk-home-products--favorites .vk-products-grid.products,
  .vk-home-products--courses.vk-shop--course-archive .vk-course-products-grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .vk-home-reasons {
    grid-template-columns: 1fr;
  }

  .vk-home-reason {
    min-height: 320px;
  }

  .vk-home-course-banner__content {
    width: min(530px, 75%);
  }
}

@media (max-width: 767px) {
  /* A hosszú hero-címke telefonon ne kapszulaként nyúljon a teljes soron át.
     Keret nélkül, legfeljebb két sorban olvasható kísérőszövegként jelenik meg. */
  .vk-home-hero__eyebrow {
    display: block;
    min-height: 0;
    max-width: 300px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
  }

  /* Kurzusok: telefonon a kártyák teljes szélességben, egymás alatt jelennek meg. */
  .vk-home-products--courses.vk-shop--course-archive .vk-course-products-grid.products {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .vk-home-container {
    width: calc(100% - 32px);
  }

  .vk-home-hero {
    min-height: 530px;
    border-radius: 0 0 18px 18px;
    background-position: 62% center;
  }

  .vk-home-hero__inner {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .vk-home-hero__title span {
    font-size: 24px;
    line-height: 1.35;
  }

  .vk-home-hero__title strong {
    font-size: 28px;
    line-height: 1.35;
  }

  .vk-home-hero__description {
    font-size: 16px;
    line-height: 1.5;
  }

  .vk-home-hero__actions {
    gap: 8px;
    margin-top: 20px;
  }

  .vk-home-button,
  .vk-home-button:visited {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .vk-home-favorites {
    padding: 34px 0 40px;
    border-radius: 0 0 28px 28px;
  }

  .vk-home-section-title--center {
    margin-bottom: 20px;
  }

  .vk-home-products--favorites .vk-products-grid.products {
    grid-template-columns: 1fr !important;
  }

  .vk-home-story,
  .vk-home-courses {
    padding-top: 58px;
  }

  .vk-home-courses {
    padding-bottom: 62px;
  }

  .vk-home-reasons {
    margin-top: 26px;
  }

  .vk-home-reason {
    min-height: 270px;
  }

  .vk-home-course-banner {
    min-height: 226px;
    margin-top: 28px;
  }

  .vk-home-course-banner__shade {
    background: linear-gradient(90deg, rgba(229, 166, 173, .96) 0%, rgba(229, 166, 173, .88) 54%, rgba(229, 166, 173, .25) 100%);
  }

  .vk-home-course-banner__content {
    width: 80%;
    padding: 26px 22px;
  }
}
