/* ==========================================================================
   Hero Slider – hero-slider.css
   ========================================================================== */

/* ── Wrapper ── */
.hero-slider {
    position: relative;
    display: flex;
    width: 100%;
    height: 520px;          /* upravte dle designu */
    overflow: hidden;
    font-family: inherit;
}

/* ── Levá navigace ── */
.hero-slider__nav {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 249px;
    height: 100%;
    flex-shrink: 0;
}

.hero-slider__nav-item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: transparent;
    border: none;
    border: 1px solid #F8AA00;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: left;
    border-radius: 0px 12px 12px 0px !important;
    font-size: 18px;
}

.hero-slider__nav-item:last-child {
    border-bottom: none;
}

.hero-slider__nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Aktivní položka navigace */
.hero-slider__nav-item.is-active {
    background-color: #F5A623;   /* oranžová – změňte dle brand */
}

/* Progress linka dole u aktivní položky */
.hero-slider__nav-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #fff;
    transition: width 0s linear;
}

.hero-slider__nav-item.is-active .hero-slider__nav-line {
    width: 100%;
    transition: width var(--slide-duration, 5000ms) linear;
}

/* Text navigace */
.hero-slider__nav-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
}

/* ── Track (slidy) ── */
.hero-slider__track {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* ── Jednotlivý slide ── */
.hero-slider__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    align-items: center;
    padding-left:250px;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* Tmavý overlay na pozadí */
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.25) 60%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

/* ── Obsah slidu ── */
.hero-slider__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 60px;
    padding-right: 30px;
    color: #ffffff;
}

/* Nadpis */
.hero-slider__heading {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: #F5A623;    /* oranžová dle designu */
    margin: 0 0 20px;
}

/* Popis */
.hero-slider__text {
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 32px;
    max-width: 620px;
    padding-bottom:40px;
}

/* Tlačítka */
.hero-slider__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.hero-slider__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
    cursor: pointer;
    white-space: nowrap;
}


/* Plné tlačítko */
.hero-slider__btn--primary {
    background: #F8AA00;
    color: #ffffff;
}

.hero-slider__btn--primary:hover {
    background-color: #4F2C1D;
    color: #ffffff;
}

/* Obrysové tlačítko */
.hero-slider__btn--outline {
    background-color: #ffffff;
    color: #F8AA00;
    border: 0;
}

.hero-slider__btn--outline:hover {
    background-color: #4F2C1D;
    color: #ffffff;
}

/* ── Animace obsahu při přechodu ── */
.hero-slider__slide .hero-slider__content {
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.55s ease 0.1s, opacity 0.55s ease 0.1s;
}

.hero-slider__slide.is-active .hero-slider__content {
    transform: translateY(0);
    opacity: 1;
}

/* ── Responzivita ── */
@media (max-width: 900px) {
    .hero-slider {
        flex-direction: column;
        height: auto;
        min-height: 580px;
    }

    .hero-slider__nav {
		position: absolute;
		bottom: 0;
		top: auto;
		order: 2;
        width: 100%;
        flex-direction: row;
        height: 56px;
        flex-shrink: 0;
    
    }

    .hero-slider__nav-item {
        justify-content: center;
        padding: 0 12px;
        border-radius: 12px 12px 0 0 !important;
    }

    .hero-slider__nav-item:last-child {
        border-bottom: 1px solid #F8AA00 !important;
    }

    .hero-slider__nav-label {
        font-size: 11px;
    }

    .hero-slider__nav-line {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0;
    }

    .hero-slider__nav-item.is-active .hero-slider__nav-line {
        width: 100%;
        height: 3px;
    }

    .hero-slider__track {
		order: 1;
        flex: 1;
        min-height: 480px;
    }

    .hero-slider__content {
        padding: 16px;
        padding-top: 0;
    }

    .hero-slider__slide {
        padding-left: 14px;
		display: flex;
        align-items: flex-start; 
        padding-top: 30px;
    }
	
	.hero-slider__overlay {
    	background: rgba(79, 44, 29, 0.7) !important;
	}
	
/* HOMEPAGE HERO */
	.home .hero-slider__slide[data-slide="0"],
	.home .hero-slider__slide[data-slide="1"],
	.home .hero-slider__slide[data-slide="2"],
	.home .hero-slider__slide[data-slide="3"] {
        background-position: 90% center; 
    }
	
/* SINGLE/DOUBLE BOXII HERO */
	.page-id-822 .hero-slider__slide[data-slide="0"]{
        background-position: 90% center; 
    }
	
	.page-id-822 .hero-slider__slide[data-slide="1"] {
        background-position: 95% center; 
    }

/* BOXII 24/7 HERO */
	.page-id-481 .hero-slider__slide[data-slide="0"]{
			background-position: 90% center; 
		}

	.page-id-481 .hero-slider__slide[data-slide="1"]{
			background-position: 70% center; 
		}
	
	.page-id-481 .hero-slider__slide[data-slide="2"]{
			background-position: center center; 
		}

	.page-id-481 .hero-slider__slide[data-slide="3"]{
			background-position: 82% center; 
		}

}

@media (max-width: 480px) {
    .hero-slider__nav-label {
        font-size: 9px;
        letter-spacing: 0.04em;
    }

    .hero-slider__buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}
