/* ==========================================
   VETTEZONE HERO v3 - Image-Dominant Carousel
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600&display=swap');

/* Reset */
.vzh, .vzh *, .vzh *::before, .vzh *::after { box-sizing: border-box; }

.vzh {
  --vzh-gold: #f5c400;
  --vzh-gold-h: #ffd600;
  --vzh-blk: #0a0a0b;
  --vzh-w: #ffffff;
  --vzh-g1: rgba(255,255,255,.85);
  --vzh-g2: rgba(255,255,255,.58);
  --vzh-g3: rgba(255,255,255,.38);
  --vzh-max: 1200px;

  position: relative;
  min-height: 520px;
  background: var(--vzh-blk);
  overflow: hidden;
}

/* ---- Slides container ---- */
.vzh-slides {
  position: absolute;
  inset: 0;
}

/* Individual slide */
.vzh-slide {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(0.86);
  filter: saturate(1.1) contrast(1.05);
}

.vzh-slide.vzh-slide--active {
  opacity: 1;
  animation: vzh-ken-burns 20s ease-in-out infinite alternate;
}

/* Ken Burns - subtle zoom */
@keyframes vzh-ken-burns {
  from { transform: scale(0.86); }
  to   { transform: scale(0.89); }
}

/* Gradient overlay - on top of all slides */
.vzh-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10,10,11,.82) 0%,
    rgba(10,10,11,.65) 18%,
    rgba(10,10,11,.08) 35%,
    rgba(10,10,11,0) 50%,
    rgba(10,10,11,0) 100%
  );
  pointer-events: none;
}

/* Vignette */
.vzh::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 60% 50%, transparent 40%, rgba(0,0,0,.3) 100%);
  pointer-events: none;
}

/* ---- Slide dots ---- */
.vzh-dots {
  position: absolute;
  z-index: 3;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vzh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,196,0,.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s, border-color .3s, transform .3s;
}

.vzh-dot:hover {
  border-color: var(--vzh-gold);
  transform: scale(1.3);
}

.vzh-dot.vzh-dot--active {
  background: var(--vzh-gold);
  border-color: var(--vzh-gold);
}

/* ---- Content ---- */
.vzh-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--vzh-max);
  min-height: 520px;
  margin: 0 auto;
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

/* Re-enable pointer events on interactive children */
.vzh-badge,
.vzh-cta,
.vzh-sec a,
.vzh-mob-cta,
.vzh-scroll-hint {
  pointer-events: auto;
}

/* Badge - clickable link */
.vzh-badge-row { margin: 0; }

.vzh-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vzh-blk);
  background: var(--vzh-gold);
  border-radius: 2px;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.vzh-badge:hover, .vzh-badge:focus-visible {
  background: var(--vzh-gold-h);
  color: var(--vzh-blk);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,196,0,.3);
}

/* ---- Bottom wrapper - brand + nav (desktop) ---- */
.vzh-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.vzh-bottom-left {
  max-width: 520px;
}

/* ---- Title ---- */
.vzh-title { margin: 0; }

/* ---- Description (desktop) ---- */
.vzh-desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--vzh-w);
}

.vzh-desc strong {
  color: var(--vzh-gold);
  font-weight: 600;
}

.vzh-brand {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--vzh-w);
}

.vzh-accent { color: var(--vzh-gold); }

.vzh-tagline {
  display: block;
  margin-top: 6px;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--vzh-gold);
}

/* ---- Navigation - right side of bottom (desktop) ---- */
.vzh-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Primary CTA */
.vzh-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 22px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;

  color: var(--vzh-blk);
  background: var(--vzh-gold);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.vzh-cta:hover, .vzh-cta:focus-visible {
  background: var(--vzh-gold-h);
  color: var(--vzh-blk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,196,0,.25);
}
.vzh-cta:active { transform: translateY(0); box-shadow: none; }

/* Disabled state */
.vzh-cta--disabled {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}

.vzh-cta svg { transition: transform .2s; }
.vzh-cta:hover svg { transform: translateX(3px); }

/* Secondary links */
.vzh-sec {
  display: flex;
  gap: 8px;
}

.vzh-sec a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(245,196,0,.7);
  text-decoration: none;
  border: 1px solid rgba(245,196,0,.22);
  border-radius: 2px;
  transition: color .15s, border-color .15s, background .15s;
}

.vzh-sec a:hover, .vzh-sec a:focus-visible {
  color: var(--vzh-gold);
  border-color: rgba(245,196,0,.5);
  background: rgba(245,196,0,.08);
}

/* ---- Mobile-only bottom: CTA + scroll hint (hidden on desktop) ---- */
.vzh-mob {
  display: none;
}

/* ---- Entrance animation ---- */
@keyframes vzh-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vzh-badge-row { animation: vzh-in .6s ease both .1s; }
.vzh-bottom    { animation: vzh-in .6s ease both .25s; }
.vzh-dots      { animation: vzh-dots-in .6s ease both .35s; }

@keyframes vzh-dots-in {
  from { opacity: 0; transform: translateY(-50%) translateY(18px); }
  to   { opacity: 1; transform: translateY(-50%); }
}

/* Scroll hint bounce */
@keyframes vzh-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
  .vzh {
    min-height: 0;
    height: 82vh;
    max-height: 620px;
  }

  /* Lighter gradient - image dominates */
  .vzh-slides::after {
    background: linear-gradient(
      to top,
      rgba(10,10,11,.72) 0%,
      rgba(10,10,11,.35) 20%,
      rgba(10,10,11,.05) 40%,
      rgba(10,10,11,0) 55%,
      rgba(10,10,11,.15) 90%,
      rgba(10,10,11,.3) 100%
    );
  }

  .vzh-slide {
    background-position: 55% center;
    background-size: cover;
    inset: 0;
    transform: scale(1);
  }

  .vzh-slide.vzh-slide--active {
    animation: vzh-ken-burns-mob 20s ease-in-out infinite alternate;
  }

  @keyframes vzh-ken-burns-mob {
    from { transform: scale(1.0); }
    to   { transform: scale(1.03); }
  }

  .vzh-wrap {
    padding: 20px 20px 24px;
    min-height: 0;
    height: 100%;
  }

  /* Badge - smaller */
  .vzh-badge { font-size: 10px; padding: 5px 12px; }

  /* Dots - left side on mobile */
  .vzh-dots {
    right: auto;
    left: 20px;
    top: 50%;
    bottom: auto;
  }

  .vzh-dot {
    width: 10px;
    height: 10px;
    position: relative;
  }

  /* Bigger touch target for mobile (44px minimum) */
  .vzh-dot::before {
    content: "";
    position: absolute;
    inset: -18px;
  }

  /* ---- HIDE desktop bottom (brand + full nav) ---- */
  .vzh-bottom { display: none; }

  /* ---- SHOW mobile bottom ---- */
  .vzh-mob {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: auto;
  }

  .vzh-mob-brand {
    margin: 0 0 -6px;
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: #ffffff;
  }

  .vzh-mob .vzh-accent {
    color: #f5c400;
  }

  .vzh-mob-text {
    margin: 0;
    max-width: 320px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff;
  }

  .vzh-mob-text strong {
    color: #f5c400;
    font-weight: 600;
  }

  .vzh-mob-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 28px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: var(--vzh-blk);
    background: var(--vzh-gold);
    border-radius: 2px;
    transition: background .2s;
  }

  .vzh-mob-cta:hover, .vzh-mob-cta:active {
    background: var(--vzh-gold-h);
    color: var(--vzh-blk);
  }

  .vzh-mob-cta--disabled {
    opacity: .45;
    pointer-events: none;
    cursor: default;
  }

  .vzh-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--vzh-g3);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: none;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
  }

  .vzh-scroll-hint svg {
    animation: vzh-bounce 1.8s ease-in-out infinite;
  }

  .vzh-mob { animation: vzh-in .6s ease both .3s; }
}

@media (max-width: 400px) {
  .vzh { max-height: 550px; }
  .vzh-wrap { padding: 16px 14px 20px; }
  .vzh-mob-cta { height: 40px; font-size: 11px; padding: 0 24px; }
  .vzh-dots { left: 14px; }
}

/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  .vzh-badge-row, .vzh-bottom, .vzh-mob { animation: none; }
  .vzh-dots { animation: none; transform: translateY(-50%); }
  .vzh-slide { animation: none !important; transform: scale(0.86); transition: opacity 0.3s ease; }
  .vzh-scroll-hint svg { animation: none; }
  .vzh-cta, .vzh-cta svg, .vzh-sec a, .vzh-badge, .vzh-mob-cta { transition: none; }
}

.vzh-cta:focus-visible, .vzh-sec a:focus-visible,
.vzh-badge:focus-visible, .vzh-mob-cta:focus-visible {
  outline: 2px solid var(--vzh-gold);
  outline-offset: 2px;
}

/* ============================================
   Modul vzhero - zdjecia z panelu (CSS vars) + lazy load
   ============================================ */
.vzh-slide { background-image: var(--vzh-bg); }
@media (max-width: 768px) {
  .vzh-slide { background-image: var(--vzh-bg-m, var(--vzh-bg)); }
}
/* Widget AvanamBuilder nie dodaje marginesow pod hero */
.elementor-widget-ava-module .vzh, .elementor-custom-hook .vzh { margin: 0; }

/* ============================================
   Modul vzhero 1.1 - "Rozmiar zdjecia" (oddalenie)
   Ostre zdjecie mniejsze (wysokosc = --vzh-zoom % hero), boki wypelnia
   to samo zdjecie rozmyte i przyciemnione. Tylko komputer/tablet poziomo.
   ============================================ */
@media (min-width: 769px) {
  .vzh-slide.vzh-slide--fit { background-image: none; }
  .vzh-slide--fit::before,
  .vzh-slide--fit::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--vzh-bg);
    background-repeat: no-repeat;
  }
  .vzh-slide--fit::before {
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(.38) saturate(1.15);
    transform: scale(1.15);
  }
  .vzh-slide--fit::after {
    background-size: auto var(--vzh-zoom, 100%);
    background-position: inherit;
  }
}

/* Kropki przelaczania slajdow ukryte (14.11.2026) - zdjecia zmieniaja sie automatycznie */
.vzh .vzh-dots { display: none !important; }
