/* Základní nastavení - Hnědá verze */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #5D4037; /* Tmavě hnědá pro text */
    background-color: #FDFDFD; /* Velmi světlá základní barva */
}

.container {
    width: 85%;
    margin: 0 auto;
    max-width: 1200px;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #4E342E; /* Tmavší hnědá pro hlavní nadpisy */
}

.content-section {
    padding: 60px 0;
}

.bg-light {
    background-color: #D7CCC8; /* Teplá světle hnědá */
}

/* Navigace */
.navbar {
    background-color: transparent;
    padding: 1rem 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background-color: #D7CCC8;
    color: #4E342E;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar .logo:hover {
    background-color: #BCAAA4;
    color: #4E342E;
}

.navbar .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 25px;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.navbar .nav-links a:hover {
    color: #D7CCC8;
}

/* Úvodní sekce (Hero) */
.hero {
    background-image: linear-gradient(rgba(46, 35, 30, 0.5), rgba(46, 35, 30, 0.5)), url('schod2.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding-top: 180px;
    padding-bottom: 60px;
    transition: padding-top 0.4s ease;
}

.hero.menu-open {
    padding-top: 380px;
}

.hero-content {
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Služby */
#sluzby h2 {
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #000000;
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.service-item h3 {
    color: #000000;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}

.service-item p {
    text-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}

/* Obal pro sekce s parallaxem */
.parallax-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('stul4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Galerie uvnitř parallaxu */
#galerie {
    background: transparent;
}
#galerie h2, #galerie .gallery-intro {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Styly pro tlačítka filtru */
.filtr-controls {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    text-align: center;
}

.filtr-controls li {
    display: inline-block;
    padding: 8px 20px;
    margin: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtr-controls li:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.filtr-controls li.active {
    background-color: #D7CCC8;
    color: #4E342E;
    border-color: #D7CCC8;
}

/* ZMĚNA: Nové styly pro mřížku s fotkami */
.filtr-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.filtr-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3; /* Zajišťuje stejný poměr stran pro všechny náhledy */
}

.filtr-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zajistí, aby obrázek vyplnil box bez deformace */
    display: block;
    transition: transform 0.3s ease;
}

.filtr-item img:hover {
    transform: scale(1.1);
}

/* Sekce O nás uvnitř parallaxu */
#o-nas {
    background: transparent;
    color: #ffffff;
}

#o-nas h2 {
    color: #ffffff;
}

#o-nas p {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

/* Patička a Kontakt uvnitř parallaxu */
footer {
    background: transparent;
    color: #EFEBE9;
    text-align: center;
    padding: 60px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

footer h2 {
    color: #fff;
}

footer a {
    color: #EFEBE9;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #fff;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #E0E0E0;
}

/* Odkazy pro plynulé skrolování */
html {
    scroll-behavior: smooth;
}

/* Hamburger a mobilní menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

/* Responzivní pravidla pro menší obrazovky */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: transparent;
        align-items: center;
        padding: 10px 0;
        backdrop-filter: blur(5px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }
}

/* Pravidla pro větší obrazovky */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-content: center;
    }
}

@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}