/* ============================================= */
/* 🎨 Globální proměnné barev */
:root {
    --primary-color: #7e2328;
    --secondary-color: #402c17;
    --background-color: #31302c;
    --text-color: #b2bfcb;
    --gray-color: #5d5a5d;
}

/* ============================================= */
/* 🌍 Základní nastavení */
html, body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

main {
    background-color: var(--gray-color);
}

section {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================= */
/* 🧭 Navigace */
.main-navbar {
    background-color: var(--background-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-navbar .navbar-brand {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navbar .navbar-brand:hover {
    color: var(--primary-color);
}

.main-navbar .nav-link {
    color: var(--text-color) !important;
    margin: 0 0.4rem;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
    color: #fff !important;
    background-color: var(--primary-color);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Efekt při scrollování */
.main-navbar.scrolled {
    background-color: #222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ============================================= */
/* 🦸 Hero sekce */
.hero {
    background: url('/img/untitled.webp') no-repeat center center;
    background-size: cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ============================================= */
/* 🎠 Carousel uvnitř hero */

#heroCarousel {
    /*
     * Carousel může zabrat maximálně 60 % výšky hero.
     * Hero má 80vh, takže carousel má maximálně 48vh.
     */
    max-height: 60%;
    max-width: 100%;

    /*
     * Šířka se přizpůsobuje obrázku.
     */
    width: auto;

    margin: auto;
}

/* Samotný carousel */
.carousel {
    border: 1px solid black;
    border-radius: 10px;
    overflow: hidden;
}

/* Carousel inner */
#heroCarousel .carousel-inner {
    height: 100%;
}

/* Jednotlivé slidy */
#heroCarousel .carousel-item {
    height: 100%;
    text-align: center;
}

/* Obrázky carouselu */
#heroCarousel .carousel-image,
.carousel-inner img {
    /*
     * Maximální výška = 60 % hero.
     * Hero = 80vh → obrázek může mít max. 48vh.
     */
    max-height: 60%;
    max-width: 100%;

    /*
     * Šířka se dopočítá podle poměru stran obrázku.
     */
    width: auto;

    /*
     * Obrázek se neořízne ani zdeformuje.
     */
    object-fit: contain;

    /*
     * Zarovnání na střed.
     */
    display: block;
    margin: 0 auto;

    border-radius: 10px;
    cursor: pointer;
}

/* ============================================= */
/* 📝 Popisek carouselu */

.carousel-caption {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.carousel-caption h5 {
    background-color: rgba(93, 90, 93, 0.8);
    color: white;
    width: 40%;
    margin: auto;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
}

/* ============================================= */
/* 📱 Responsivní úpravy hero */

@media (max-width: 768px) {

    #heroCarousel {
        max-width: 90%;
        max-height: 60%;
    }

    #heroCarousel .carousel-image,
    .carousel-inner img {
        max-width: 100%;
        max-height: 60%;
    }

    .carousel-caption h5 {
        width: 60%;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    #heroCarousel {
        max-width: 95%;
        max-height: 60%;
    }

    #heroCarousel .carousel-image,
    .carousel-inner img {
        max-width: 100%;
        max-height: 60%;
    }

    .carousel-caption h5 {
        width: 75%;
        font-size: 0.8rem;
    }
}


/* ============================================= */
/* 🔢 Sekce Numbers */
.numbers {
    background-color: #ffffff;
    color: #31302c;
    padding: 20px 0;
    border-radius: 10px;
    margin: 2rem auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.numbers h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #31302c;
}

.numbers p {
    font-size: 1rem;
    margin: 0;
    color: #555;
}

.numbers .col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ============================================= */
/* 🔥 Sekce Činnosti */
.services {
    background-color: var(--gray-color);
    border-radius: 12px;
    color: #fff;
}

.services h2 {
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Karty mají být všechny stejně vysoké */
.services .card {
    border: none;
    border-radius: 10px;
    background-color: var(--gray-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;

    height: 100%;
    display: flex;
    flex-direction: column;
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.2);
}

.services .card-icon {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Pro dorovnání výšek */
.services .card-body {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

.services .card-title {
    font-weight: 500;
    margin: 0;
}

/* =========================
   Sekce Členové
========================= */
.services {
    background-color: var(--gray-color);
    border-radius: 12px;
    color: #fff;
}

.services h2 {
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}

.services .card {
    border: none;
    border-radius: 10px;
    background-color: var(--gray-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.2);
}

.services .card-icon {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.services .card-title {
    font-weight: 500;
}

/* ============================================= */
/* 🧰 Sekce Technika */
.technika {
    background-color: var(--background-color);
    color: var(--text-color);
}

.technika ul {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.technika li {
    font-size: 18px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.technika li:last-child {
    border-bottom: none;
}

/* ============================================= */
/* 🖼️ Sekce Galerie */
.galerie .gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.galerie .gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: blur(2px);
    transition: transform 0.3s ease;
}

.galerie .gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.galerie .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.galerie .text-overlay {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
    text-align: center;
    padding: 0 10px;
}

/* ============================================= */
/* ☎️ Sekce Kontakt */
#contact {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 2rem 1rem;
}

#contact h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

#contact .contact-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact .contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

#contact p {
    color: var(--text-color);
    margin-bottom: 6px;
}

#contact strong {
    color: #fff;
}

#contact a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

#contact a:hover {
    color: var(--primary-color);
}

/* ============================================= */
/* ⚙️ Patička */
.footer-custom {
    background-color: var(--gray-color);
    color: var(--text-color);
    padding: 1.2rem 0;
}

/* ============================================= */
/* 📱 Pomocné responzivní úpravy */
@media (max-width: 992px) {

    section {
        border-radius: 10px;
    }

    #contact .contact-box {
        padding: 0.75rem;
    }
}

/* =========================
   PARTNEŘI – tmavé karty, světlý text
========================= */

.partners {
    padding: 2rem 0;
}

.partners .card {
    background-color: #2a2927;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem;
    color: var(--text-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Logo */
.partners .card img {
    max-width: 85%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Název */
.partners .card h5 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

/* Tlačítko */
.partners .card a.btn {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    transition: background-color 0.25s ease;
}

.partners .card a.btn:hover {
    background-color: #9c2d33;
}


.members .card {
    border: 1px solid #5d5a5d;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #5d5a5d;
    color: black;
    display: flex;
    flex-direction: column;
}

.members .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.members .card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.members .card-body {
    padding: 0.75rem;
    flex: 1;
}

.members .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: black;
}

.members .card-text {
    font-size: 0.9rem;
    color: black;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

/* Responsivní úpravy */
@media (max-width: 576px) {

    .members .card-img-top {
        height: 180px;
    }
}