﻿.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent), url('/img/truck.png') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertikálně na střed */
    align-items: flex-start; /* zarovná obsah doleva */
    text-align: left; /* zarovná texty vlevo */

    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 606px;
    border-left: 5px solid #007bff;
    min-height: 250px;
    box-sizing: border-box;
}

/*-----------------------------*/
.service-item a {
    text-decoration: none;
    color: inherit; /* zachová barvu textu */
}

    .service-item a:hover {
        text-decoration: none;
    }


.services-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.service-item {
    background-color: #ffffff;
    border-radius: 50px;
    padding: 1.5rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
    max-width: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 20rem;
    height: 18rem;
}

    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

.service-icon {
    width: 8rem;
    height: auto;
    margin-bottom: 2rem;
}
.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 2rem;
}
    .services-section h2::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.25rem;
        width: 6px;
        height: 90%;
        background-color: #007bff; /* modrý proužek */
        border-radius: 3px;
    }


    /*-----------------------------*/
.stats-banner {
    background-color: #2c2c2c;
    color: white;
    padding: 1.4rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 90rem;
    margin: 4rem auto;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1 1 200px;
}

.stat-icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    color: #1e90ff; /* modrá */
    font-weight: bold;
    font-size: 1.6rem;
    margin-right: 0.3rem;
}

/*---------------------------------------------------------*/
.about-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    max-width: 80rem;
    margin: 0 auto;
}

.about-text {
    flex: 1 1 50%;
    padding: 2rem;
    min-width: 300px;
    
}

    .about-text h2 {
        position: relative;
        font-size: 2rem;
        margin-bottom: 1.5rem;
        padding-left: 1rem;
    }

        .about-text h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.2rem;
            width: 5px;
            height: 80%;
            background-color: #007bff;
            border-radius: 3px;
        }

.about-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

    .about-list li {
        margin-bottom: 1rem;
        position: relative;
        padding-left: 1.5rem;
        font-weight: 500;
    }

        .about-list li::before {
            content: "●";
            position: absolute;
            left: 0;
            color: #007bff;
            font-size: 1.2rem;
            line-height: 1;
        }

.btn-primary {
    background-color: #0069d9; /* tmavší modrá pro dostatečný kontrast */
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.about-image {
    flex: 1 1 50%;
    max-width: 600px;
    max-height: 600px;
    overflow: hidden;
}

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.button-wrapper {
    text-align: right;
    margin-top: 1.5rem;
}

/*---------------------------------------------------------*/

.simple-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 60rem;
    margin: 4rem auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.8);
}

.stat-block {
    flex: 1;
    padding: 2rem;
    text-align: center;
    color: white;
}

    .stat-block.left {
        background-color: #0056b3; /* nebo #007bff */
    }

    .stat-block.right {
        background-color: #2c2c2c;
    }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}
/* === RESPONSIVITA === */

/* 1. Dlaždice - při 1024px dej jen 2 na řádek */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2. Dlaždice - pod 768px dej 1 na řádek */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .service-item {
        width: 90%;
        height: auto;
        aspect-ratio: unset;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1.5rem;
    }
}

/* 3. Statistiky - poskládat pod sebe na malých displejích */
@media (max-width: 768px) {
    .simple-stats {
        flex-direction: column;
    }

    .stat-block {
        width: 100%;
    }
}

/* 4. O nás sekce */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-text, .about-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

        .about-image img {
            height: auto;
        }

    .button-wrapper {
        text-align: center;
    }
}

.hero-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 8px;
    cursor: pointer;
}

    .hero-dots .dot {
        width: 10px;
        height: 10px;
        background-color: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

        .hero-dots .dot.active {
            width: 14px;
            height: 14px;
            background-color: white;
        }
