/* ============================================
   HED Slider – Frontend CSS
   ============================================ */

.hed-slider-wrap {
    display: block;
    width: 100%;
    clear: both;
    isolation: isolate;
    position: relative;
    z-index: 5;
}

.hed-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 2500 / 1042;
    overflow: hidden;
    background: #000;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    z-index: 1;
    isolation: isolate;
    flex-shrink: 0;
    /* fallback gdy aspect-ratio nie działa (starsze mobile) */
    min-height: 400px;
}

@media screen and (max-width: 768px) {
    .hed-slider {
        aspect-ratio: 390 / 468;
        min-height: 468px;
    }
}

/* Track */
.hed-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slides */
.hed-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.hed-slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Media (image / video) */
.hed-slider__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop / Mobile visibility */
.hed-desktop { display: block; }
.hed-mobile  { display: none; }

@media screen and (max-width: 767px) {
    .hed-desktop { display: none; }
    .hed-mobile  { display: block; }
}

/* Overlay – heading + button, bottom-left */
.hed-slider__overlay {
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    z-index: 10;
}

.hed-slider__overlay-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

h2.hed-slider__heading {
    margin: 0;
    padding: 0;
    color: #FB6B77;
    font-family: "owners-xnarrow", sans-serif;
    font-size: 82px!important;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 68px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    h2.hed-slider__heading {
        font-size: 62px!important;
        line-height: 0.9em;
    }
}

.hed-slider__btn {
    display: inline-block;
    background-color: #fff;
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid #000;
    border-radius: 25px;
    padding: 15px 35px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

@media screen and (max-width: 768px) {
    .hed-slider__btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

.hed-slider__btn:hover,
.hed-slider__btn:focus {
    background-color: #000;
    color: #fff;
    border-color: #fff;
}

/* Dots – inline styles w PHP + te reguły jako fallback z !important vs Elementor */
.hed-slider__dots {
    position: absolute !important;
    bottom: 12px !important;
    right: 16px !important;
    display: flex !important;
    gap: 6px !important;
    z-index: 20 !important;
}

.hed-slider__dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.4) !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.hed-slider__dot.is-active {
    background: #fff !important;
    transform: scale(1.3) !important;
}

/* Prev / Next arrows (optional, hidden by default – można włączyć) */
.hed-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0,0,0,0.35);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none; /* ukryte domyślnie */
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hed-slider__arrow:hover { background: rgba(0,0,0,0.6); }
.hed-slider__arrow--prev { left: 12px; }
.hed-slider__arrow--next { right: 12px; }
