/* === Hero Carousel Section Redesign 2025 === */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 55vh; /* Další snížení výšky */
    min-height: 400px; /* Další snížení minimální výšky */
    background-color: var(--primary-color);
}

.carousel-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative; /* Důležité pro správné pozicování */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    color: var(--white);
    will-change: transform; /* Optimalizace pro webový rendering */
    transition: opacity 0.5s ease;
    /* Odstraněna animace slowZoom, která způsobovala "ujíždění" */
}

/* Překryvná vrstva pro lepší kontrast a moderní styl */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1); /* Tmavší překryv pro lepší kontrast textu */
    z-index: 1;
}

/* Specifické obrázky pro každý slide */
#slide-1 {
    background-image: url('Obrazky/Hero/worker-processing-floor-with-laminated-flooring-boards.jpg');
}
#slide-2 {
    background-image: url('Obrazky/Hero/top-view-man-tiling-floor.jpg');
}
#slide-3 {
    background-image: url('Obrazky/Hero/choosing-parquet-woman-man-is-store-goods-home.jpg');
}

.hero-content {
    width: 100%;
    max-width: 800px; /* Stabilnější šířka */
    padding: 0 var(--spacing-xl);
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
    margin: 0 auto; /* Vycentrování obsahu */
}

/* Nadtitulek */
.hero-content .overline {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    color: var(--accent-color);
    opacity: 0.9;
    display: inline-block;
    position: relative;
    font-family: var(--font-primary); /* Explicitní použití Ubuntu */
}

/* Stylizace nadtitulku s ozdobnou linkou */
.hero-content .overline::before,
.hero-content .overline::after {
    content: '';
    position: absolute;
    height: 2px; /* Silnější čára */
    width: 3rem;
    background-color: var(--accent-color);
    top: 50%;
    opacity: 0.8;
}

.hero-content .overline::before {
    right: calc(100% + 20px);
}

.hero-content .overline::after {
    left: calc(100% + 20px);
}

.hero-content h1, .hero-content h2 {
    font-size: 3.2rem; /* Mírně menší pro lepší stabilitu */
    font-family: var(--font-primary); /* Použití Ubuntu */
    color: var(--white);
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
    font-weight: 700;
    /* Stín odstraněn na žádost klienta */
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-xxl);
    line-height: 1.6;
    max-width: 650px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    font-family: var(--font-primary); /* Explicitní použití Ubuntu */
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    font-weight: 500; /* Lehčí váha pro Ubuntu */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    border: none;
    cursor: pointer;
    min-width: 240px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-family: var(--font-primary); /* Explicitní použití Ubuntu */
}

.cta-button:hover {
    background-color: #D4AC0D;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.cta-button span {
    font-family: var(--font-primary); /* Zajištění správného fontu */
}

.cta-button i {
    transition: transform 0.3s ease;
    font-size: 0.9rem; /* Konsistentní velikost ikony */
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Scroll down indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
    animation: pulse 2s infinite;
    font-family: var(--font-primary); /* Explicitní použití Ubuntu */
}

.scroll-down-indicator span {
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400; /* Lehčí váha pro Ubuntu */
}

.scroll-down-indicator i {
    font-size: 1.1rem;
}

.scroll-down-indicator:hover {
    opacity: 1;
}

/* Ovládací prvky carouselu - modernější a více viditelné */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: var(--spacing-lg);
    right: var(--spacing-lg);
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.carousel-control {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    pointer-events: all;
    text-decoration: none;
    line-height: 1;
    opacity: 0.85;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(3px);
}

.carousel-control:hover {
    background-color: var(--accent-color);
    opacity: 1;
    transform: scale(1.05);
}

/* Indikátory carouselu (tečky) */
.carousel-indicators {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-md);
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.indicator-dot::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.indicator-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.indicator-dot.active::after {
    transform: translate(-50%, -50%) scale(1);
}

.indicator-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Responzivita pro Hero Carousel */
@media (max-width: 1200px) {
    .hero-carousel {
        height: 50vh; /* Další snížení výšky */
    }
    
    .hero-content h1, .hero-content h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .hero-carousel {
        height: 45vh; /* Další snížení výšky */
    }
    
    .hero-content {
        max-width: 650px;
    }
    
    .hero-content h1, .hero-content h2 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .hero-carousel {
        height: 50vh; /* Další snížení výšky */
        min-height: 350px; /* Další snížení minimální výšky */
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 var(--spacing-lg);
    }
    
    .hero-content .overline {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-content .overline::before,
    .hero-content .overline::after {
        width: 1.5rem;
    }
    
    .hero-content h1, .hero-content h2 {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: var(--spacing-xl);
    }
    
    .cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        min-width: 200px;
        font-size: 0.9rem;
    }

    .carousel-control {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .scroll-down-indicator {
        display: none;
    }
    
    .carousel-indicators {
        bottom: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 45vh; /* Další snížení výšky */
        min-height: 320px; /* Další snížení minimální výšky */
    }
    
    .hero-content h1, .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .carousel-controls {
        left: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
    }
}

/* Animace pro hero sekci */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
    100% { transform: translateX(-50%) translateY(0); }
}
