/* CSS proměnné pro konzistentní barvy (Dark / Firefighter téma) */
:root {
    --primary-color: #f3e255ff;
    --primary-dark: #b81c27;
    --bg-color: #121212;
    /* Antracitová / černá */
    --bg-light: #1e1e1e;
    --text-color: #f1f1f1;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(18, 18, 18, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Plynulé rolování bez JS */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    max-width: 1200px;
    margin: 0 auto;
}


/* --- Navigace --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo img {
    height: 50px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* CSS Checkbox Hack (Mobile Menu) */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}

.navicon {
    background: var(--text-color);
    display: block;
    height: 2px;
    position: relative;
    transition: background .2s ease-out;
    width: 24px;
}

.navicon:before,
.navicon:after {
    background: var(--text-color);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.navicon:before {
    top: 8px;
}

.navicon:after {
    top: -8px;
}

/* Mobile Menu Zobrazení */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-light);
        border-bottom: 1px solid var(--glass-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .nav-menu li {
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Toggle behavior */
    .menu-toggle:checked~.nav-menu {
        max-height: 400px;
    }

    .menu-toggle:checked~.menu-icon .navicon {
        background: transparent;
    }

    .menu-toggle:checked~.menu-icon .navicon:before {
        transform: rotate(-45deg);
        top: 0;
    }

    .menu-toggle:checked~.menu-icon .navicon:after {
        transform: rotate(45deg);
        top: 0;
    }
}


/* --- Tlačítka --- */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

/* --- Hero Sekce --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/fire1.jpg') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.7) 0%, rgba(18, 18, 18, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

.hero-logo {
    height: 500px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}


/* --- Obecné Sekce --- */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- O Nás / Historie --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Galerie --- */
.gallery {
    background-color: var(--bg-light);
}

.gallery-slider {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-window {
    overflow: hidden;
    flex: 1;
    border-radius: 8px;
}

.gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-item {
    flex: 0 0 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 620px;
    object-fit: contain;
    background: var(--bg-color);
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-button {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
}

.gallery-button:hover {
    color: var(--bg-color);
    background: var(--primary-color);
}

@media (max-width: 600px) {
    .gallery-slider { gap: 8px; }
    .gallery-button { flex-basis: 38px; width: 38px; height: 38px; font-size: 1.4rem; }
    .gallery-item img { height: 380px; }
}


/* --- Kontakt --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 57, 70, 0.5);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-card p strong {
    color: #fff;
}

/* --- Footer --- */
.footer {
    background: #0a0a0a;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    opacity: 0.5;
    margin: 0 auto 20px;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.history-wrap {
            max-width: 860px;
            margin: 100px auto 60px auto;
            padding: 0 1.5rem;
        }
        .history-wrap h1 {
            font-size: 2.4rem;
            font-weight: 800;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--primary-color);
            margin-bottom: 2.5rem;
            position: relative;
        }
        .history-wrap h1::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background: var(--primary-color);
            margin: 12px auto 0;
            border-radius: 2px;
        }
        .history-wrap h2 {
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 2.5rem 0 1rem;
            padding-bottom: 0.4rem;
            border-bottom: 1px solid var(--glass-border);
        }
        .history-wrap p {
            line-height: 1.85;
            color: var(--text-color);
            margin-bottom: 1.1rem;
            font-size: 1rem;
        }
        .history-wrap ul {
            list-style: none;
            margin: 0.5rem 0 1.2rem 0;
            padding: 0;
        }
        .history-wrap ul li {
            padding: 0.25rem 0 0.25rem 1.4rem;
            position: relative;
            color: var(--text-color);
            line-height: 1.7;
        }
        .history-wrap ul li::before {
            content: 'E2 80 93';
            content: '\2013';
            position: absolute;
            left: 0;
            color: var(--primary-color);
        }
        .hist-img-wrap {
            text-align: center;
            margin: 2rem 0;
        }
        .hist-img-wrap img {
            max-width: min(100%, 500px);
            height: auto;
            margin: 0 auto;
            border-radius: 6px;
            border: 1px solid var(--glass-border);
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        }
        .history-card {
            background: var(--bg-light);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            padding: 2.5rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        }
        .authors {
            margin-top: 3rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--glass-border);
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        .authors strong { color: var(--text-color); }
        @media (max-width: 600px) {
            .history-card { padding: 1.2rem; }
            .history-wrap h1 { font-size: 1.7rem; }
        }
