/* =========================================================
   SCARLETT.CZ – BANNERY NA HLAVNÍ STRÁNCE (HERO) V1
   Vzhled k scarlett-hero-v1.js. Barvy a písmo ze scarlett-zaklad-v1.css.
   PC: velký banner 2/3 + dva malé 1/3 (výška 520 px).
   Mobil: velký nahoře, dva malé vedle sebe.
   ========================================================= */

.sc-hero {
  margin: 24px 0 32px;
}

.sc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  height: 520px;
}

.sc-hero__grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.sc-hero__side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.sc-hero__slot {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--sc-r-xl, 28px);
  isolation: isolate;
}

/* ---------- Společné pro všechny slidy ---------- */
.sc-hero__slide {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  background: var(--slide-bg, #EFE4D6);
  color: var(--sc-ink, #24302A);
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .7s;
  text-decoration: none !important;
}

.sc-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
  z-index: 1;
}

.sc-hero__slide.is-dark {
  color: #FFFFFF;
}

.sc-hero__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--sc-r-pill, 999px);
  background: #FFFFFF;
  color: var(--sc-red, #C8232B);
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.sc-hero__slide.is-dark .sc-hero__eyebrow {
  background: rgba(255, 255, 255, .18);
  color: #FFFFFF;
}

/* ---------- Velký banner ---------- */
.sc-hero__slide--main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 24px;
  padding: 44px 40px 56px 52px;
}

.sc-hero__slide--main.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.sc-hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 520px;
}

.sc-hero__title {
  margin: 0 !important;
  font-family: var(--sc-font-head, "Nunito", sans-serif) !important;
  font-size: 48px !important;
  font-weight: 900 !important;
  line-height: 1.02 !important;
  letter-spacing: -.02em !important;
  color: inherit !important;
}

.sc-hero__lead {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
  color: inherit !important;
  opacity: .85;
}

.sc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.sc-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--sc-r-pill, 999px);
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color .18s ease, transform .18s ease;
}

.sc-hero__btn--primary {
  background: var(--sc-red, #C8232B);
  color: #FFFFFF !important;
}

.sc-hero__btn--primary:hover {
  background: var(--sc-red-dark, #A51C23);
}

.sc-hero__btn--secondary {
  position: relative;
  z-index: 3; /* nad roztaženým odkazem celé karty */
  background: #FFFFFF;
  color: var(--sc-ink, #24302A) !important;
}

.sc-hero__btn--secondary:hover {
  background: var(--sc-sand, #F3ECE2);
}

/* Celá karta klikací přes hlavní tlačítko */
.sc-hero__stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sc-hero__slide--main:has(.sc-hero__stretch) {
  cursor: pointer;
}

.sc-hero__media {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kruh za produktem – jemná „scéna“ jako v návrhu */
.sc-hero__media::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 22%;
  border-radius: 50%;
  background: rgba(36, 48, 42, .06);
}

.sc-hero__media img {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100%;
  height: auto !important;
  object-fit: contain;
  mix-blend-mode: multiply; /* bílé pozadí fotky splyne s barvou karty */
  transition: transform .5s ease;
}

.sc-hero__slide--main:hover .sc-hero__media img {
  transform: scale(1.03);
}

/* ---------- Malé bannery ---------- */
.sc-hero__slide--small {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 28px;
  overflow: hidden;
}

.sc-hero__small-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 85%;
}

.sc-hero__slide--small.has-image .sc-hero__small-text {
  max-width: 58%;
}

.sc-hero__small-title {
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.sc-hero__small-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sc-font-head, "Nunito", sans-serif);
  font-size: 15px;
  font-weight: 800;
}

.sc-hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--sc-ink, #24302A);
  color: #FFFFFF;
  transition: transform .2s ease;
}

.sc-hero__slide.is-dark .sc-hero__arrow {
  background: #FFFFFF;
  color: var(--sc-ink, #24302A);
}

.sc-hero__slide--small:hover .sc-hero__arrow {
  transform: translateX(4px);
}

.sc-hero__small-media {
  position: absolute;
  right: -6%;
  bottom: 4%;
  width: 52%;
  height: 80%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sc-hero__small-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Na tmavé kartě by „multiply“ fotku ztmavil – dáme ji na světlý kruh */
.sc-hero__slide.is-dark .sc-hero__small-media {
  right: 6%;
  bottom: 50%;
  width: 34%;
  height: auto;
  aspect-ratio: 1 / 1;
  transform: translateY(50%);
  border-radius: 50%;
  background: #FFFFFF;
  overflow: hidden;
}

.sc-hero__slide.is-dark .sc-hero__small-media img {
  width: 84% !important;
  height: 84% !important;
  margin: auto;
}

/* ---------- Ovládání ---------- */
.sc-hero__controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(4px);
}

/* Ovládání velkého banneru vpravo dole – nepřekrývá tlačítka */
.sc-hero__slot--main .sc-hero__controls {
  left: auto;
  right: 22px;
  bottom: 20px;
  transform: none;
}

.sc-hero__slot--top .sc-hero__controls,
.sc-hero__slot--bottom .sc-hero__controls {
  left: auto;
  right: 18px;
  top: 18px;
  bottom: auto;
  transform: none;
}

.sc-hero__dots {
  display: flex;
  align-items: center;
}

/* Klikací plocha 24 px, viditelná tečka 8 px */
.sc-hero__dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sc-hero__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(36, 48, 42, .28);
  transform: translate(-50%, -50%);
  transition: width .25s ease, background-color .25s ease;
}

.sc-hero__dot.is-active::before {
  width: 20px;
  background: var(--sc-green, #4E6352);
}

.sc-hero__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sc-ink, #24302A);
  color: #FFFFFF;
  cursor: pointer;
}

.sc-hero__pause .i-play { display: none; }
.sc-hero__pause[aria-pressed="true"] .i-play { display: block; }
.sc-hero__pause[aria-pressed="true"] .i-pause { display: none; }

.sc-hero__dot:focus-visible,
.sc-hero__pause:focus-visible,
.sc-hero__btn:focus-visible,
.sc-hero__slide--small:focus-visible {
  outline: 3px solid var(--sc-green, #4E6352) !important;
  outline-offset: 2px !important;
}

/* ---------- Menší PC ---------- */
@media (max-width: 1199px) {
  .sc-hero__grid { height: 460px; gap: 12px; }
  .sc-hero__side { gap: 12px; }
  .sc-hero__slide--main { padding: 36px 28px 56px 36px; }
  .sc-hero__title { font-size: 40px !important; }
  .sc-hero__lead { font-size: 16px !important; }
  .sc-hero__small-title { font-size: 21px; }
}

/* ---------- Tablet a mobil ---------- */
@media (max-width: 991px) {
  .sc-hero {
    margin: 12px 16px 24px;
  }

  .sc-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 10px;
  }

  .sc-hero__side {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sc-hero__slot--main {
    height: 520px;
    border-radius: 24px;
  }

  .sc-hero__slot--top,
  .sc-hero__slot--bottom {
    height: 190px;
    border-radius: 20px;
  }

  /* Velký banner: fotka nahoře, text pod ní */
  .sc-hero__slide--main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 190px auto;
    align-items: start;
    gap: 8px;
    padding: 16px 20px 64px;
  }

  .sc-hero__slide--main.no-image {
    grid-template-rows: auto;
  }

  .sc-hero__media {
    grid-row: 1;
    height: 190px;
  }

  .sc-hero__text {
    grid-row: 2;
    gap: 10px;
  }

  .sc-hero__title { font-size: 28px !important; }
  .sc-hero__lead { font-size: 15px !important; }
  .sc-hero__actions { gap: 8px; margin-top: 2px; }
  .sc-hero__btn { min-height: 46px; padding: 0 20px; font-size: 15px; }

  .sc-hero__slot--main .sc-hero__controls {
    left: auto;
    right: 14px;
    top: 14px;
    bottom: auto;
  }

  /* Malé bannery */
  .sc-hero__slide--small {
    padding: 14px;
  }

  .sc-hero__small-text,
  .sc-hero__slide--small.has-image .sc-hero__small-text {
    max-width: 100%;
    gap: 6px;
  }

  .sc-hero__slide--small .sc-hero__eyebrow {
    padding: 4px 9px;
    font-size: 10px;
  }

  .sc-hero__small-title { font-size: 16px; }
  .sc-hero__small-cta { font-size: 0; gap: 0; }
  .sc-hero__arrow { width: 32px; height: 32px; }

  /* Fotka v malém banneru na mobilu – menší, v pravém horním rohu */
  .sc-hero__small-media,
  .sc-hero__slide.is-dark .sc-hero__small-media {
    top: 10px;
    right: 10px;
    bottom: auto;
    width: 64px;
    height: 64px;
    transform: none;
  }

  .sc-hero__slot--top .sc-hero__controls,
  .sc-hero__slot--bottom .sc-hero__controls {
    display: none; /* na malé ploše jen swipe; střídání běží samo */
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-hero__slide,
  .sc-hero__media img,
  .sc-hero__arrow {
    transition: none !important;
  }
}
