/* =========================================================
   EKOR – NOVÝ HERO SLIDER
   ========================================================= */

.ekor-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 90px));
  overflow: hidden;
  background: #073d2b;
  color: #fff;
}

/* ---------------------------------------------------------
   SLIDE – PŘECHOD
   --------------------------------------------------------- */

.ekor-hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: inherit;
  opacity: 0;
  visibility: hidden;
  transform: translateX(28px);
  transition:
    opacity 0.75s ease,
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0.75s ease;
    background:
    linear-gradient(
      135deg,
      var(--st-green-900),
      var(--st-green-800)
    );
}

.ekor-hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

/* ---------------------------------------------------------
   TEXT
   --------------------------------------------------------- */
/*.sekce-odpady {
  /* Zelená barva jako základ a 3x definovaný stejný obrázek vzoru */
/*  background-image: 
    url('ikona-recyklace.svg'), 
    url('ikona-recyklace.svg'), 
    url('ikona-recyklace.svg');

  /* Pro všechny tři obrázky zakážeme opakování (odděleno čárkou) */
/*  background-repeat: no-repeat, no-repeat, no-repeat;

  /* Každému obrázku určíte jeho vlastní pozici na obrazovce */
/*  background-position: 
    10% 20%,   /* První: 10% odleva, 20% odshora */
/*    85% 40%,   /* Druhý: 85% odleva, 40% odshora */
/*    50% 80%;   /* Třetí: horizontálně na středu, 80% odshora */

  /* Můžete také nastavit velikost jednotlivých ikon */
/*  background-size: 80px, 120px, 60px; /* Každá ikona může být jinak velká */
  
/*  background-color: #0b3d26; /* Výchozí tmavě zelená barva na pozadí */
/*}*/




.ekor-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 200px 80px 155px 100px;
  background: radial-gradient(circle at 80% 20%, rgba(47, 138, 76, 0.18), transparent 45%), #073d2b;

  
   /* Zelená barva jako základ a 3x definovaný stejný obrázek vzoru */
/*  background-image: 
    url(../../assets/images/ekor-original/frame-three.png), 
    url(../../assets/images/ekor-original/frame-three.png), 
    url(../../assets/images/ekor-original/frame-three.png);

  /* Pro všechny tři obrázky zakážeme opakování (odděleno čárkou) */
/*  background-repeat: no-repeat, no-repeat, no-repeat;

  /* Každému obrázku určíte jeho vlastní pozici na obrazovce */
/*  background-position: 
/*    10% 20%,   /* První: 10% odleva, 20% odshora */
/*    85% 40%,   /* Druhý: 85% odleva, 40% odshora */
/*    50% 80%;   /* Třetí: horizontálně na středu, 80% odshora */

  /* Můžete také nastavit velikost jednotlivých ikon */
/*  background-size: 80px, 120px, 160px; /* Každá ikona může být jinak velká */
  
/*  background-color: #0b3d26; /* Výchozí tmavě zelená barva na pozadí */
  
  color: #fff;


}

.ekor-hero__content h1 {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: clamp(42px, 4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #fff;
}

.ekor-hero__content p {
  max-width: 560px;
  margin: 0 0 38px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------------------------------------------------------
   TEXT – JEMNÝ NÁSTUP
   --------------------------------------------------------- */

.ekor-hero__content > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ekor-hero__slide.is-active .ekor-hero__content > * {
  opacity: 1;
  transform: translateY(0);
}

.ekor-hero__slide.is-active .ekor-hero__eyebrow {
  transition-delay: 0.1s;
}

.ekor-hero__slide.is-active .ekor-hero__content h1 {
  transition-delay: 0.18s;
}

.ekor-hero__slide.is-active .ekor-hero__content p {
  transition-delay: 0.26s;
}

.ekor-hero__slide.is-active .ekor-hero__button {
  transition-delay: 0.34s;
}

.ekor-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #8fd0a4;
}

.ekor-hero__number {
  position: absolute;
  top: 19%;
  right: 8%;
  font-size: clamp(90px, 11vw, 170px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */
.ekor-hero__button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.ekor-hero__button:hover {
  background: #2f8a4c;
  border-color: #2f8a4c;
  color: #fff;
  transform: translateY(-2px);
}

.ekor-hero__button:hover span {
  transform: translateX(4px);
}

.ekor-hero__button-arrow {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-block;
}

.ekor-hero__button-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px;
  height: 1.5px;
  background: currentColor;
}

.ekor-hero__button-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.ekor-hero__button:hover .ekor-hero__button-arrow {
  transform: translateX(4px);
}

/* =========================================================
   HERO – ANIMACE NADPISU PO PÍSMENECH
   ========================================================= */

.ekor-hero__content h1 {
  overflow: visible;
}

/* řádek musí zůstat pohromadě */
.ekor-hero__word {
  display: inline-block;
  white-space: nowrap;
}

/* mezera mezi slovy */
.ekor-hero__space {
  display: inline-block;
  width: 0.28em;
}

/* jednotlivé znaky */
.ekor-hero__char {
  display: inline-block;
  opacity: 0;
  transform:
    translateY(40px)
    scale(1.5);
  filter: blur(20px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.75s ease;
  transition-delay:
    calc(0.20s + (var(--char-index) * 0.05s));
  will-change:
    transform,
    opacity,
    filter;
}


/* aktivní slide */
.ekor-hero__slide.is-active .ekor-hero__char {
  opacity: 1;
  transform:
    translateY(0)
    scale(1);
  filter: blur(0);
}

/* První render – necháme startovní stav */
.ekor-slider.hero-loading .ekor-hero__slide.is-active .ekor-hero__char {
  opacity: 0;
  transform: translateY(40px) scale(1.5);
  filter: blur(20px);
}
/* ---------------------------------------------------------
   REDUKOVANÝ POHYB
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .ekor-hero__char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

}
/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */

.ekor-hero__visual {
  position: relative;
  overflow: hidden;
  min-height: inherit;
}

.ekor-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #073d2b 0%, rgba(7, 61, 43, 0.35) 7%, rgba(7, 61, 43, 0) 25%);
  pointer-events: none;
}

/* ---------------------------------------------------------
   FOTO – POMALÝ KAMERA EFEKT
   --------------------------------------------------------- */

.ekor-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ekor-hero__slide.is-active .ekor-hero__visual img {
  transform: scale(1);
}

/* ---------------------------------------------------------
   CONTROLS
   --------------------------------------------------------- */

.ekor-hero__controls {
  position: absolute;
  z-index: 10;
  left: max(calc((100vw - 1320px) / 2), 40px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
}
/* ---------------------------------------------------------
   CSS ŠIPKY – bez textových znaků
   --------------------------------------------------------- */

.ekor-hero__arrow {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* vodorovná část šipky */
.ekor-hero__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

/* hrot šipky */
.ekor-hero__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

/* ← */
.ekor-hero__arrow--prev::before {
  left: calc(50% - 7px);
  transform: translateY(-50%) rotate(-135deg);
}

/* → */
.ekor-hero__arrow--next::before {
  left: calc(50% + -1px);
  transform: translateY(-50%) rotate(45deg);
}

.ekor-hero__arrow:hover {
  background: #2f8a4c;
  border-color: #2f8a4c;
  transform: translateY(-2px);
}

.ekor-hero__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 10px;
  font-size: 13px;
  font-weight: 700;
}

.ekor-hero__current {
  color: #fff;
}

.ekor-hero__total {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------------------------------------------------------
   PROGRESS – ČAS SLIDU
   --------------------------------------------------------- */

.ekor-hero__line {
  position: relative;
  width: 90px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.ekor-hero__line span {
  display: block;
  width: 0;
  height: 100%;
  background: #8fd0a4;
  transform-origin: left center;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {
  .ekor-hero {
    min-height: auto;
  }

  .ekor-hero__slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ekor-hero__content {
    min-height: 500px;
    padding: 190px 40px 120px;
  }
  .ekor-hero__number {
    top: 150px;
    right: 70px;
    font-size: 80px;
  }

  .ekor-hero__visual {
    height: 420px;
    min-height: 0;
  }

  .ekor-hero__controls {
    left: 40px;
    bottom: 30px;
    padding: 6px 10px;
    background: rgba(7, 61, 43, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }
}

/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 575px) {
  .ekor-hero__content {
    min-height: 470px;
    padding: 140px 24px 70px;
  }

  .ekor-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
  }

  .ekor-hero__number {
    top: 135px;
    right: 20px;
    font-size: 80px;
  }

  .ekor-hero__content h1 {
    margin-bottom: 20px;
    font-size: 35px;
    line-height: 1.03;
  }

  .ekor-hero__content p {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.55;
  }

  .ekor-hero__visual {
    height: 300px;
  }

  .ekor-hero__visual::after {
    background: linear-gradient(180deg, #073d2b 0%, rgba(7, 61, 43, 0) 30%);
  }

  .ekor-hero__controls {
    left: 24px;
    bottom: 24px;
    padding: 6px 10px;
    background: rgba(7, 61, 43, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  }

  .ekor-hero__arrow {
    width: 38px;
    height: 38px;
  }

  .ekor-hero__line {
    width: 50px;
  }
  .ekor-hero__content > * {
    transform: translateY(10px);
  }

  .ekor-hero__visual img {
    transform: scale(1.04);
  }

  .ekor-hero__slide.is-active .ekor-hero__visual img {
    transform: scale(1);
  }
}

/* =========================================================
   EKOR SLIDER – ochrana před sticky headerem
   ========================================================= */

.ekor-slider {
  position: relative;
  z-index: 1;
}

/* =========================================================
   REDUKOVANÝ POHYB
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .ekor-hero__slide,
  .ekor-hero__content > *,
  .ekor-hero__visual img {
    transition: none !important;
    transform: none !important;
  }
}







