/* =========================================================
   CAFÉZIA ELEMENTOR — HERO SLIDER CAFEZIA
========================================================= */

.caf-hero-slider {
  --caf-black: #000000;
  --caf-ink: #171512;
  --caf-muted: #6f675c;
  --caf-bg: #e2dbce;
  --caf-roast: #b7a997;
  --caf-green: #BBCE8E;
  --caf-white: #ffffff;
  --caf-cream: #fbfaf7;
  --caf-section-radius: 46px;
  --caf-transition-speed: 650ms;

  position: relative;
  width: 100%;
}

.caf-hero-slider__viewport {
  position: relative;
  width: 100%;
}

.caf-hero-slider__slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute !important;
  inset: 0;
  width: 100%;
  z-index: 1;
  transition:
    opacity var(--caf-transition-speed) ease,
    visibility var(--caf-transition-speed) ease;
}

.caf-hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative !important;
  z-index: 2;
}

.caf-hero-a {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  border-radius: min(var(--caf-section-radius), 80px);

  /* väčší bočný padding + viac miesta dole pre modernú slider navigáciu */
  padding: 10px clamp(42px, 4.2vw, 72px) clamp(82px, 6vw, 108px);

  background:
    radial-gradient(circle at 8% 20%, #e2dbce9e, transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(187, 206, 142, 0.13), #e2dbce4a 26%),
    #ffffff;

  box-shadow: 0 18px 55px rgb(23 21 18 / 13%);
}

.caf-hero-a::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(0,0,0,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 84%);
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  z-index: -1;
}

.caf-hero-a__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.41fr) minmax(0, 0.59fr);
  gap: clamp(30px, 3.6vw, 64px);
  align-items: center;
}

.caf-hero-a__content {
  max-width: 760px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.caf-hero-a.is-visible .caf-hero-a__content,
.caf-hero-slider.is-visible .caf-hero-slider__slide.is-active .caf-hero-a__content {
  opacity: 1;
  transform: translateY(0);
}

.caf-hero-a__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--caf-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.caf-hero-a__eyebrow span {
  width: 38px;
  height: 1px;
  background: var(--caf-roast);
}

.caf-hero-a h1 {
  margin: 0;
  max-width: none;
  color: var(--caf-ink);
  font-size: clamp(38px, 2.85vw, 50px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.caf-hero-a h1 span {
  display: inline-block;
}

.caf-hero-a h1 span:first-child {
  white-space: nowrap;
}

.caf-hero-a p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--caf-muted);
  font-size: clamp(16px, 1.04vw, 19px);
  line-height: 1.68;
  font-weight: 400;
}

.caf-hero-a__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.caf-hero-a__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none !important;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.caf-hero-a__btn--primary {
  background: var(--caf-green);
  color: #ffffff !important;
  border: 1px solid var(--caf-green);
  box-shadow: 0 14px 30px rgba(187, 206, 142, 0.34);
}

.caf-hero-a__btn--primary::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}

.caf-hero-a__btn--secondary {
  background: #fff;
  color: var(--caf-ink) !important;
  border: 1px solid rgba(183, 169, 151, 0.48);
}

.caf-hero-a__btn:hover {
  transform: translateY(-2px);
}

.caf-hero-a__btn--primary:hover {
  background: var(--caf-green);
  border-color: var(--caf-green);
  color: #ffffff !important;
  box-shadow:
    0 16px 34px rgba(187, 206, 142, 0.38),
    inset 0 0 0 1000px rgba(0, 0, 0, 0.08);
}

.caf-hero-a__btn--primary:hover::after {
  transform: translate(3px, -1px);
}

.caf-hero-a__btn--secondary:hover {
  background: var(--caf-bg);
}

/* Benefit cards */
.caf-hero-a__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  max-width: 690px;
}

.caf-hero-a__benefit-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 86px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(226, 219, 206, 0.42));
  border: 1px solid rgba(183, 169, 151, 0.24);
  box-shadow:
    0 12px 34px rgba(23, 21, 18, 0.045),
    inset 0 1px 0 rgba(255,255,255,0.78);
  color: var(--caf-muted);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease;
}

.caf-hero-a__benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(187, 206, 142, 0.22), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(183, 169, 151, 0.16), transparent 36%);
  opacity: 0.8;
}

.caf-hero-a__benefit-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -70%;
  z-index: -1;
  width: 60%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.46), transparent);
  transform: rotate(18deg);
  opacity: 0;
  transition: left 0.55s ease, opacity 0.55s ease;
}

.caf-hero-a__benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(187, 206, 142, 0.56);
  box-shadow:
    0 18px 42px rgba(23, 21, 18, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.84);
}

.caf-hero-a__benefit-card:hover::after {
  left: 112%;
  opacity: 1;
}

.caf-hero-a__benefit-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(187, 206, 142, 0.28);
  color: var(--caf-ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 8px 20px rgba(187, 206, 142, 0.18);
}

.caf-hero-a__benefit-card--collagen .caf-hero-a__benefit-icon,
.caf-hero-a__benefit-card--beauty .caf-hero-a__benefit-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(226, 219, 206, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 8px 20px rgba(183, 169, 151, 0.18);
}

.caf-hero-a__benefit-icon svg,
.caf-hero-a__benefit-icon i {
  width: 29px;
  height: 29px;
  font-size: 26px;
  overflow: visible;
  color: var(--caf-ink);
}

.caf-hero-a__benefit-card--collagen .ikona-tvar,
.caf-hero-a__benefit-card--beauty .ikona-tvar {
  width: 40px;
  height: 37px;
  color: var(--caf-ink);
  overflow: visible;
}

.caf-hero-a__benefit-icon svg path {
  fill: none;
  stroke: var(--caf-ink);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.caf-hero-a__benefit-card--collagen .ikona-tvar path,
.caf-hero-a__benefit-card--beauty .ikona-tvar path {
  stroke: currentColor;
  stroke-width: 13;
}

.caf-hero-a__benefit-icon svg .spark {
  fill: var(--caf-ink);
  stroke: none;
}

.caf-hero-a__benefit-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.caf-hero-a__benefit-text {
  min-width: 0;
}

.caf-hero-a__benefit-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--caf-ink);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
}

.caf-hero-a__benefit-text span {
  display: block;
  color: var(--caf-muted);
  font-size: 13px;
  line-height: 1.32;
  font-weight: 400;
}

/* Coffee steam animation */
.caf-hero-a__benefit-card--coffee .steam {
  animation: cafSteam 2.8s ease-in-out infinite;
  transform-origin: center bottom;
}

.caf-hero-a__benefit-card--coffee .steam-2 { animation-delay: 0.2s; }
.caf-hero-a__benefit-card--coffee .steam-3 { animation-delay: 0.4s; }
.caf-hero-a__benefit-card--coffee .bean { animation: cafTinyFloat 3.2s ease-in-out infinite; }

/* Supplement capsule animation */
.caf-hero-a__benefit-card--supplements .capsule-1 {
  animation: cafCapsuleOne 3.6s ease-in-out infinite;
  transform-origin: center;
}

.caf-hero-a__benefit-card--supplements .capsule-2 {
  animation: cafCapsuleTwo 3.4s ease-in-out infinite;
  transform-origin: center;
}

.caf-hero-a__benefit-card--supplements .spark {
  animation: cafSpark 2.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes cafSteam {
  0%, 100% { opacity: 0.65; transform: translateY(0) scaleY(1); }
  50% { opacity: 1; transform: translateY(-2px) scaleY(1.08); }
}

@keyframes cafTinyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(-3deg); }
}

@keyframes cafCapsuleOne {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(1px, -2px) rotate(-3deg); }
}

@keyframes cafCapsuleTwo {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-1px, 2px) rotate(3deg); }
}

@keyframes cafSpark {
  0%, 100% { opacity: 0.72; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

.caf-hero-a__visual-wrap {
  width: 100%;
  justify-self: stretch;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.85s ease 0.1s, transform 0.85s ease 0.1s;
}

.caf-hero-a.is-visible .caf-hero-a__visual-wrap,
.caf-hero-slider.is-visible .caf-hero-slider__slide.is-active .caf-hero-a__visual-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.caf-hero-a__visual {
  position: relative;
  width: 100%;
  min-height: clamp(430px, 42vw, 650px);
  border-radius: clamp(28px, 3vw, 46px);
  overflow: hidden;
  background: var(--caf-bg);
  box-shadow:
    0 34px 90px rgba(23, 21, 18, 0.13),
    inset 0 0 0 1px rgba(255,255,255,0.55);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease;
}

.caf-hero-a__image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.2)),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: cafHeroKenBurnsA 18s ease-in-out infinite alternate;
}

.caf-hero-a__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,0.28), transparent 25%),
    linear-gradient(90deg, rgba(0,0,0,0.15), transparent 58%);
  pointer-events: none;
}

.caf-hero-a__floating-card {
  position: absolute;
  left: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 3;
  max-width: 330px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--caf-ink);
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 760;
}

.caf-hero-a__floating-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--caf-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@keyframes cafHeroKenBurnsA {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.15) translate3d(-2%, -1.5%, 0); }
}

/* Slider navigation */
.caf-hero-slider__nav {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(183, 169, 151, 0.22);
  box-shadow:
    0 14px 36px rgba(23, 21, 18, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.caf-hero-slider__arrow {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border: 1px solid rgba(183, 169, 151, 0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: var(--caf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 21, 18, 0.08);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.caf-hero-slider__arrow::before {
  display: block;
  color: var(--caf-ink);
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
  transform: translateY(-1px);
}

.caf-hero-slider__arrow--prev::before { content: "‹"; }
.caf-hero-slider__arrow--next::before { content: "›"; }

.caf-hero-slider__arrow:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(23, 21, 18, 0.18);
  box-shadow: 0 12px 28px rgba(23, 21, 18, 0.13);
}

.caf-hero-slider__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0 2px;
}

.caf-hero-slider__dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 21, 18, 0.20);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    opacity 0.25s ease;
}

.caf-hero-slider__dot:hover {
  background: rgba(23, 21, 18, 0.36);
}

.caf-hero-slider__dot.is-active {
  width: 24px;
  background: var(--caf-green);
}

/* Menšie notebooky */
@media (max-width: 1200px) {
  .caf-hero-a__inner {
    grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
    gap: clamp(28px, 3.8vw, 54px);
  }

  .caf-hero-a h1 {
    font-size: clamp(34px, 3.45vw, 43px);
    line-height: 1.08;
  }

  .caf-hero-a p { font-size: 16px; }

  .caf-hero-a__benefit-card {
    min-height: 82px;
    padding: 13px 12px;
    gap: 10px;
  }

  .caf-hero-a__benefit-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .caf-hero-a__benefit-icon svg {
    width: 26px;
    height: 26px;
  }

  .caf-hero-a__benefit-card--collagen .caf-hero-a__benefit-icon,
  .caf-hero-a__benefit-card--beauty .caf-hero-a__benefit-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .caf-hero-a__benefit-card--collagen .ikona-tvar,
  .caf-hero-a__benefit-card--beauty .ikona-tvar {
    width: 38px;
    height: 35px;
  }
}

@media (max-width: 1024px) {
  .caf-hero-a { padding: 10px clamp(24px, 4vw, 42px) 82px; }

  .caf-hero-a__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .caf-hero-a h1 {
    max-width: 820px;
    font-size: clamp(38px, 6vw, 58px);
  }

  .caf-hero-a__benefits { max-width: 100%; }
  .caf-hero-a__visual { min-height: 520px; }
}

@media (max-width: 767px) {
  .caf-hero-a {
    padding: 10px 16px 66px;
    border-radius: 26px;
  }

  .caf-hero-a__eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .caf-hero-a h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .caf-hero-a h1 br { display: none; }

  .caf-hero-a h1 span,
  .caf-hero-a h1 span:first-child {
    display: inline;
    white-space: normal;
  }

  .caf-hero-a p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.62;
  }

  .caf-hero-a__actions {
    flex-direction: column;
    margin-top: 28px;
  }

  .caf-hero-a__btn {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }

  .caf-hero-a__benefits {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 10px;
  }

  .caf-hero-a__benefit-card {
    min-height: 76px;
    padding: 13px 14px;
    border-radius: 22px;
  }

  .caf-hero-a__benefit-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .caf-hero-a__benefit-card--collagen .caf-hero-a__benefit-icon,
  .caf-hero-a__benefit-card--beauty .caf-hero-a__benefit-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .caf-hero-a__benefit-card--collagen .ikona-tvar,
  .caf-hero-a__benefit-card--beauty .ikona-tvar {
    width: 38px;
    height: 35px;
  }

  .caf-hero-a__benefit-text strong { font-size: 15px; }
  .caf-hero-a__benefit-text span { font-size: 13px; }

  .caf-hero-a__visual {
    min-height: 420px;
    border-radius: 28px;
  }

  .caf-hero-a__floating-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    font-size: 18px;
  }

  .caf-hero-slider__nav {
    bottom: 16px;
    padding: 7px 9px;
  }

  .caf-hero-slider__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caf-hero-a *,
  .caf-hero-a__image,
  .caf-hero-slider__slide {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   v1.3.5 — HERO BENEFIT LINKS + MOBILE SIMPLIFIED LAYOUT
========================================================= */

.caf-hero-a__benefit-card {
  text-decoration: none !important;
  color: var(--caf-muted) !important;
}

.caf-hero-a__benefit-card[href] {
  cursor: pointer;
}

.caf-hero-a__benefit-card[href]:focus-visible {
  outline: 3px solid rgba(187, 206, 142, 0.44);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .caf-hero-a {
    padding: 14px 14px 72px;
  }

  .caf-hero-a__inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .caf-hero-a__visual-wrap {
    order: 1;
    width: 100%;
  }

  .caf-hero-a__content {
    order: 2;
    width: 100%;
    max-width: none;
    opacity: 1 !important;
    transform: none !important;
  }

  .caf-hero-a__content > :not(.caf-hero-a__benefits) {
    display: none !important;
  }

  .caf-hero-a__visual {
    min-height: 320px;
    border-radius: 26px;
  }

  .caf-hero-a__floating-card {
    display: none !important;
  }

  .caf-hero-a__benefits {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin-top: 0;
    gap: 10px;
  }

  .caf-hero-a__benefit-card {
    min-height: 78px;
    padding: 13px 14px;
    border-radius: 22px;
  }

  .caf-hero-a__benefit-card[href]::after {
    content: "→";
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--caf-green);
    color: var(--caf-ink);
    font-size: 17px;
    line-height: 1;
    font-weight: 600;
    box-shadow:
      0 10px 22px rgba(187, 206, 142, 0.22),
      inset 0 1px 0 rgba(255,255,255,0.62);
    transition: transform 0.25s ease;
  }

  .caf-hero-a__benefit-card[href]:hover::after,
  .caf-hero-a__benefit-card[href]:focus-visible::after {
    transform: translateX(3px);
  }

  .caf-hero-slider__nav {
    bottom: 16px;
  }
}

@media (max-width: 430px) {
  .caf-hero-a__visual {
    min-height: 285px;
  }

  .caf-hero-a__benefit-text strong {
    font-size: 14.5px;
  }

  .caf-hero-a__benefit-text span {
    font-size: 12.5px;
  }
}
