/* Vlastní styly pro stránku DroneCore Systems */

body {
    font-family: "Helvetica Neue", sans-serif;
    color: #1a1a1a;
    background-color: #d2d2d2;
}

#main {
    max-width: 1400px;
    background-color: white;
    margin: auto;
    padding: 1rem;
    position: relative;
}

#home_wrapper {
    width: 100%;
    background-color: #626f47;
}

#home {
    max-width: 100%;
    min-height: 900px;
    position: relative;
    overflow: hidden;
    margin: auto;
    background-color: white;

    .top-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-top: 2rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        z-index: 1;
        position: relative;
        background-color: transparent;

        .icon {
            max-width: 300px;
            flex-shrink: 0;
        }

        .nav-menu {
            flex: 1;
        }

        ul {
            background-color: white;
            border-radius: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin: 0rem 1rem 0rem 1rem;
            padding: 0.3rem 1rem 0.3rem 1rem;
            flex-wrap: wrap;

            li {
                a {
                    color: #34542D;
                    font-weight: bolder;
                }
            }
        }

        img {
            height: 160px;
            width: auto;
            margin: 0px;
            margin-right: 0.3rem;
            border: none;
            filter: drop-shadow(4px 4px 4px rgba(0,0,0,1));
        }
    }

    .bg {
        z-index: 0;
        position: absolute;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        background-size: cover;

        img {
            border-radius: 55px;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .drone,
    .core {
        position: relative;
        z-index: 1;
    }

    .hero-text {
        position: absolute;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        text-align: center;
        z-index: 1;
        padding: 0 1rem;

        p {
            color: white;
            font-size: 2.5rem;
            font-weight: bold;
            text-shadow: 3px 3px 4px black;
        }
    }

    .text2 {
        max-width: 90%;
        min-width: 90%;
        margin: 0 auto;
        padding: 3rem 0 3rem 0;
        padding-left: 0px;
        padding-right: 0px;
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;

        .cell {
            padding: 1rem;
        }

        .drone,
        .core {
            min-width: 100%;
            min-height: auto;
            background-color: white;
            padding: 0.6rem;
            border-radius: 15px;
            display: inline-flex;
            position: relative;

            /* override inner Foundation grid to be image-width + fill */
            .grid-x {
                display: flex;
                flex-wrap: nowrap;
                align-items: flex-start;
                width: 100%;
            }

            /* image cell: shrink to image natural width */
            .cell:first-child {
                flex: 0 0 auto;
                width: auto;
                padding: 0;
            }

            /* headline cell: take remaining space */
            .cell.headline {
                flex: 1 1 auto;
                width: auto;
                padding: 0;
                padding-left: 0.5rem;
            }

            img {
                width: 240px;
                height: 240px;
                margin-right: 1rem;
                border-radius: 15px;
                border: 1px solid black;
                flex-shrink: 0;
                object-fit: cover;
            }

            h2 {
                font-size: 1.5rem;
                padding-top: 0.5rem;
                color: #34542D;
                text-align: left;
                margin-bottom: 0.5rem;
            }

            p {
                font-size: 1.1rem;
                text-align: left;
                margin-bottom: 1rem;
            }

            .button.custom-green {
                border-radius: 15px;
                background-color: #34542D;
                border-color: #013322;
                color: white;
                position: absolute;
                right: 1rem;
                bottom: 1rem;
            }

            .button.custom-green:hover {
                background-color: #7aa847;
                border-color: #7aa847;
                color: white;
            }

            .headline {
                padding-left: 0.5rem;
            }
        }
    }
}

.page {
    min-height: auto;
    max-width: 100%;
    padding: 3rem 1rem 0 1rem;
    background-color: white;
    margin: auto;

    h1 {
        position: relative;

        img {
            margin-right: 0.5rem;
            margin-top: 0rem;
            max-height: 1.4em;
            vertical-align: middle;
            position: absolute;
            left: 10px;
            top: 40px;
            border: none;
        }

        padding-left: 70px;
        color: #013322;
        font-size: 3rem;
        text-align: left;
        padding-bottom: 2rem;
        padding-top: 2rem;
        line-height: 120%;

        span {
            margin-left: 20%;
        }
    }

    p {
        font-size: 1.1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .htext {
        font-size: 1.2rem;
        font-weight: bolder;
    }

    img {
        vertical-align: top;
        border: 1px solid black;
        max-width: 100%;
        height: auto;
    }

    .text {
        h2 {
            font-size: 1.3rem;
            color: #5D8952;
            margin-top: 0px;
            line-height: 110%;
            text-align: left;
            font-weight: bolder;
            margin-bottom: 0px;
        }

        div {
            text-align: left;
            padding-left: 1rem;
            padding-bottom: 2rem;
            padding-top: 0px;
        }
    }

    p {
        text-align: left;
        padding-left: 1rem;
        padding-top: 1rem;
    }
}

/* Základní rámečky pro všechny tři sekce */
#monitoring,
#multispectral,
#cloud {
    border: 3px solid #5D8952;
    border-radius: 25px;
    padding: 2rem;
    margin: 1rem;
}

#monitoring {
    h1 {
        margin-left: 0rem;
        text-align: left;
        padding-top: 0.5rem;
        margin-top: 0rem;
        line-height: 1.2;
        color: #34542D;
        padding-left: 0px;
    }

    h1 img {
        margin-right: 0rem;
        margin-top: 0rem;
        vertical-align: middle;
        position: relative;
        left: 0px;
        top: 0px;
    }

    h1 span {
        margin-left: 0 !important;
        display: block;
        margin-top: 0.5rem;
    }

    .medium-3 {
        img {
            width: 100%;
            height: 420px;
            object-fit: cover;
            border-radius: 15px;
        }

        padding: 0.5rem;
        text-align: center;
    }
}

#cloud {
    h1 {
        margin-left: 0rem;
        text-align: left;
        padding-top: 0.5rem;
        margin-top: 0rem;
        line-height: 1.2;
        color: #34542D;
        padding-left: 0px;
    }

    .text {
        text-align: left;

        h2 {
            color: #5D8952;
            text-align: left;
        }

        div {
            text-align: left;
            padding-left: 1rem;
            padding-right: 0rem;
        }
    }

    .cloud-images {
        display: flex;
        justify-content: flex-end;
        gap: 1.5rem;
        padding-right: 1rem;
        flex-wrap: nowrap;
        align-items: center;

        .cloud-img {
            flex: 1 1 0;
            min-width: 0;
            max-width: 48%;
            height: auto;
            max-height: 300px;
            object-fit: contain;
            border-radius: 15px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
            border: none;
        }
    }
}

#multispectral {
    .custom-arrow {
        font-size: 2rem;
        cursor: pointer;
        color: #013322;
        padding: 10px;
        user-select: none;
    }

    h1 {
        margin-left: 0rem;
        text-align: left;
        padding-top: 0.5rem;
        margin-top: 0rem;
        line-height: 1.2;
        color: #34542D;
        padding-left: 0px;
    }

    h1 img {
        margin-right: 0rem;
        margin-top: 0rem;
        vertical-align: middle;
        position: relative;
        left: 0px;
        top: 0px;
    }

    h1 span {
        margin-left: 0 !important;
        display: block;
        margin-top: 0.5rem;
    }

    img {
        max-height: 700px;
        border-radius: 15px;
        max-width: 100%;
    }

    .text {
        div {
            padding-bottom: 1rem;
            padding-left: 1rem;
            text-align: left;
            padding-right: 0rem;
        }
    }
}

#contact {
    max-width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin: auto;
    background-color: transparent;

    .text {
        margin: 0 auto;
        z-index: 1;
        position: relative;
        background-color: transparent;
        padding-top: 5rem;
        color: white;
        max-width: 100%;

        .ftext {
            background-color: white;
            width: 100%;
            max-width: 350px;
            margin: auto;
            padding: 1rem;
            border-radius: 15px;
            opacity: 1;
            color: black;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .cell {
            text-align: center;
            padding-top: 60px;
        }

        .cell:first-child .ftext {
            margin-left: 0;
            margin-right: auto;
        }

        .cell:last-child .ftext {
            margin-left: auto;
            margin-right: 0;
        }
    }

    .bg {
        z-index: 0;
        position: absolute;
        top: 0px;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        background-size: cover;

        img {
            border-radius: 55px;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

#contact_wrapper {
    position: absolute;
    bottom: 180px;
    left: 50px;
    right: 50px;
    z-index: 2;
}

#monitoring_wrapper {
    width: 100%;
}

#cloud_wrapper {
    width: 100%;
    margin-bottom: 20rem;
}

#multispectral_wrapper {
    width: 100%;
}

.footer {
    max-width: none;
    margin: -200px auto 0 auto;
    background-color: #34542D;
    text-align: center;
    color: white;
    padding: 6rem 3rem 3rem 3rem;
    position: relative;
    left: calc(-1rem - 3px);
    width: calc(100% + 2rem + 6px);
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.footer-info {
    padding-top: 360px;
}

/* Sjednocení velikosti všech ikonek */
#monitoring h1 img,
#multispectral h1 img,
#cloud h1 img {
    width: 35px !important;
    height: 35px !important;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.your-carousel {
    position: relative;
}

.your-carousel .slick-prev,
.your-carousel .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
}

.your-carousel .slick-prev {
    left: 10px;
}

.your-carousel .slick-next {
    right: 30px;
}

.your-carousel .slick-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 99;
}

.your-carousel .slick-dots li button:before {
    color: white;
    font-size: 12px;
    opacity: 1;
}

/* ===================== RESPONSIVE ===================== */

/* Malý tablet (641px – 959px) – karty pod sebou */
@media screen and (min-width: 641px) and (max-width: 959px) {
    #home {
        min-height: auto;
        padding-bottom: 1rem;

        .hero-text {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            padding: 3rem 1rem 1rem 1rem;
            text-align: center;

            p {
                font-size: 1.8rem;
            }
        }

        .top-bar img {
            height: 120px;
        }

        .text2 {
            position: relative;
            bottom: auto;
            left: auto;
            transform: none;
            max-width: 100%;
            min-width: unset;
            padding: 0.5rem;

            /* force karty pod sebou */
            .grid-x > .cell {
                width: 100%;
            }

            .drone,
            .core {
                img {
                    width: 160px;
                    height: 160px;
                }

                h2 {
                    font-size: 1.3rem;
                }
            }
        }
    }

    .page h1 {
        font-size: 2.2rem;
    }

    #cloud .cloud-images .cloud-img {
        height: 220px;
    }
}

/* Střední desktop (960px – 1279px) – karty vedle sebe, menší obrázky */
@media screen and (min-width: 960px) and (max-width: 1279px) {
    #home .text2 .drone img,
    #home .text2 .core img {
        width: 160px;
        height: 160px;
    }

    #home .text2 .drone h2,
    #home .text2 .core h2 {
        font-size: 1.4rem;
    }

    .page h1 {
        font-size: 2.2rem;
    }

    #cloud .cloud-images .cloud-img {
        height: 220px;
    }
}

/* Velký desktop (>= 1280px) – originální design */
@media screen and (min-width: 1280px) {
    /* h2 jako v originále */
    #home .text2 .drone h2,
    #home .text2 .core h2 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    /* vnitřní grid 50/50 jako v originále (obrázek ve své buňce, text ve své) */
    #home .text2 .drone .cell:first-child,
    #home .text2 .core .cell:first-child {
        width: 50%;
    }

    #home .text2 .drone .cell.headline,
    #home .text2 .core .cell.headline {
        flex: 0 0 auto;
        width: 50%;
        padding-left: 0;
    }
}

/* Mobile (max 640px) */
@media screen and (max-width: 640px) {
    #main {
        padding: 0.5rem;
    }

    #home {
        min-height: auto;
        padding-bottom: 1rem;

        .bg img {
            border-radius: 20px;
        }

        .top-bar {
            max-width: 95%;
            margin-top: 1rem;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;

            img {
                height: 80px;
            }

            .nav-menu {
                width: 100%;
            }

            ul {
                margin: 0;
                padding: 0.3rem 0.5rem;
                flex-direction: column;

                li a {
                    font-size: 0.95rem;
                    padding: 0.4rem 0.5rem;
                    display: block;
                }
            }
        }

        .hero-text {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            padding: 3rem 1rem 1rem 1rem;
            text-align: center;

            p {
                font-size: 1.3rem;
            }
        }

        .text2 {
            position: relative;
            bottom: auto;
            left: auto;
            transform: none;
            max-width: 100%;
            min-width: unset;
            padding: 0.5rem;

            .drone,
            .core {
                display: flex;
                flex-direction: row;
                align-items: center;
                margin-bottom: 0.5rem;

                img {
                    width: 100px;
                    height: 100px;
                    flex-shrink: 0;
                    object-fit: cover;
                }

                h2 {
                    font-size: 1.1rem;
                }

                p {
                    font-size: 0.85rem;
                }

                .button.custom-green {
                    position: static;
                    margin-top: 0.3rem;
                    font-size: 0.85rem;
                    padding: 0.4rem 0.8rem;
                }
            }
        }
    }

    .page {
        padding: 1.5rem 0.5rem 0 0.5rem;

        h1 {
            font-size: 1.5rem;
            padding-left: 0;
            padding-top: 1rem;
            padding-bottom: 1rem;
        }
    }

    #monitoring,
    #multispectral,
    #cloud {
        margin: 0.5rem;
        padding: 1rem;
    }

    #monitoring h1 img,
    #multispectral h1 img,
    #cloud h1 img {
        display: none;
    }

    /* 3 obrázky vedle sebe na mobilu */
    #monitoring .cell.medium-3:not(.text) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding: 0.25rem;
    }

    #monitoring .medium-3 img {
        height: 120px;
        max-height: 120px;
    }

    #multispectral img {
        max-height: 300px;
    }

    #cloud .cloud-images {
        justify-content: center;
        padding-right: 0;
        gap: 1rem;

        .cloud-img {
            height: auto;
            width: 100%;
            max-width: 100%;
        }
    }

    #contact {
        height: auto;
        min-height: auto;

        .text {
            padding-top: 1rem;

            .cell {
                padding-top: 0.5rem;
            }

            .ftext {
                max-width: 100%;
                width: 100%;
                box-sizing: border-box;
                margin-bottom: 0.75rem;
                font-size: 0.9rem;
                overflow-wrap: break-word;
                word-break: break-all;
            }
        }

        .bg img {
            border-radius: 20px;
        }
    }

    #contact_wrapper {
        width: 100%;
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
    }

    /* Kontaktní boxy pod sebou na mobilu */
    #contact .text .cell {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #cloud_wrapper {
        margin-bottom: 0;
    }

    .footer {
        margin: 0;
        padding: 1.5rem 1rem 2rem 1rem;
        left: calc(-0.5rem - 3px);
        width: calc(100% + 1rem + 6px);
    }

    .footer-info {
        padding-top: 1rem;
    }

    .footer-info .cell {
        text-align: center;
        padding: 0.3rem 0.5rem;
    }
}
