/**
 * Style dla Hero Slider (frontend)
 */
 
 
/* ========================================
   KONTENER SLIDERA
   ======================================== */
.tss-hero-slider {
    position: relative;
}


.tss-slider-container {

    --page-width: 1240px;
    --desktop-ratio: 3;
    --mobile-ratio: 1;

    position: relative;
    width: var(--page-width);
    height: auto;
    max-width: 100%;
    aspect-ratio: var(--desktop-ratio);
}

/* ========================================
   SLAJDY (wspólne)
   ======================================== */

.tss-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.tss-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}


/* ========================================
   VIDEO SLIDE
   ======================================== */
.tss-video {
    max-width: 100%;
}

.tss-video-slide {
    position: relative;
}

/* Link na całym video */
.tss-video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

/* Overlay (szara nakładka) */
.tss-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}


/* ========================================
   IMAGE SLIDE (statyczne JPG)
   ======================================== */

/* Link na całym slajdzie */
.tss-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}


/* ========================================
   CONTENT BOX (tytuł, opis, przyciski)
   ======================================== */

.tss-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 3rem;
    z-index: 2;
}

/* Pozycja boxa - Lewo */
.tss-content-wrapper.tss-position-left {
    justify-content: flex-start;
}

/* Pozycja boxa - Środek */
.tss-content-wrapper.tss-position-center {
    justify-content: center;
}

.tss-content-box {
    max-width: 450px;
    background: transparent;
    color: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

/* Wyrównanie tekstu - Lewo */
.tss-content-box.tss-align-left {
    text-align: left;
}

/* Wyrównanie tekstu - Środek */
.tss-content-box.tss-align-center {
    text-align: center;
}


/* ========================================
   TYTUŁ I OPIS
   ======================================== */

.tss-title {
    font-family: "Cormorant Garamond";
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #FFF;
}

.main-page p.tss-description {
    font-family: "Encode Sans";
    font-size: 18px;
    line-height: 1.4;
    color: #FFF;
}


/* ========================================
   PRZYCISKI
   ======================================== */

.tss-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Wyrównanie przycisków */
.tss-align-left .tss-buttons {
    justify-content: flex-start;
}

.tss-align-center .tss-buttons {
    justify-content: center;
}

.tss-button {
    display: flex;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

/* Button Primary (główny) */
.tss-button-primary {
    background-color: #C99A54;
    border: 1px solid #C99A54;
    color: #fff;
    font-weight: 500;
}

.tss-button-primary:hover {
    background-color: transparent;
    text-decoration-line: none;
    color: #C99A54;
}

/* Button Secondary (drugorzędny) */
.tss-button-secondary {
    color: var(--text-dark);
    border: 1px solid #FFF;
    border-radius:  var(--radius);
    background-color: #FFF;
}

.tss-button-secondary:hover {
    box-shadow: 0 12px 16px -4px rgba(0, 0, 0, 0.08);
    text-decoration-line: none;
    color: #FFF;
    background-color: var(--text-dark);
    border: 1px solid var(--text-dark);
}


/* ========================================
   NAWIGACJA - KROPKI (DOTS)
   ======================================== */

.tss-dots {
    display: flex;
    gap: 12px;
    padding: 10px 15px;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    backdrop-filter: blur(4px);
}

.tss-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.tss-dot:hover {
    background: #A1A1A1;
    border-color: #A1A1A1;
}

.tss-dot.active {
    background: #FFF;
    scale: 1.3;
}

.tss-nav-arrow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, 50%);
    z-index: 100;
    background-color: transparent;
}

.tss-nav-next {
    right: 0;
    left: unset;
    transform: translate(50%, 50%);
}


/* ========================================
   RESPONSYWNOŚĆ - TABLET
   ======================================== */

@media (max-width: 991px) {
    .tss-slider-container {
        aspect-ratio: var(--mobile-ratio);
    }
    
    .tss-content-wrapper {
        padding: 30px;
    }
    
    .tss-content-box {
        max-width: 500px;
        padding: 30px;
    }
    
    .tss-title {
        font-size: 2.5rem;
        margin-bottom: 0;
    }
    
    .tss-description {
        font-size: 16px;
    }
    
}


/* ========================================
   RESPONSYWNOŚĆ - MOBILE
   ======================================== */

@media (max-width: 768px) {
       
    .tss-content-box {
        max-width: 100%;
    }

    .tss-nav-arrow {
        display: none;
    }
}


/* ========================================
   RESPONSYWNOŚĆ - MAŁE MOBILE
   ======================================== */

@media (max-width: 480px) {
    
    .tss-content-wrapper {
        padding: 1.5rem;
    }

}


/* ========================================
   ACCESSIBILITY
   ======================================== */

.tss-button:focus,
.tss-video-link:focus,
.tss-slide-link:focus,
.tss-dot:focus {
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

/* Reduce motion dla użytkowników z preferencją */
@media (prefers-reduced-motion: reduce) {
    .tss-button,
    .tss-video,
    .tss-slide,
    .tss-dot {
        transition: none;
    }
    
    .tss-button:hover {
        transform: none;
    }
}