:root {
    --primary-color: #7A665A; /* Hnědá z loga */
    --bg-color: #FCFAF8; /* Velmi světlá krémová/růžová */
    --accent-color: #D4BBAE;
    --text-color: #333;
    --white: #ffffff;
}

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

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

h1, h2, .logo-text { 
    font-family: 'Great Vibes', cursive; 
    font-weight: normal; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* =========================================
   HLAVIČKA, LOGO A MENU (PC VERZE)
   ========================================= */
header { 
    background: var(--white); 
    padding: 15px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo a { 
    display: flex;
    align-items: center;
    text-decoration: none; 
}
.logo img {
    max-height: 60px; /* Zabrání tomu, aby logo rozbilo stránku */
    width: auto;
}

nav ul { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
}
nav a { 
    text-decoration: none; 
    color: var(--text-color); 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    font-weight: 600; 
}
nav a:hover { 
    color: var(--primary-color); 
}

/* Tlačítko mobilního menu (Na PC je skryté) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* =========================================
   ÚVODNÍ SEKCE (HERO) A TLAČÍTKA
   ========================================= */
.hero { 
    text-align: center; 
    padding: 120px 20px; 
    background: linear-gradient(rgba(252,250,248,0.85), rgba(252,250,248,0.85)), url('hero-bg.jpg') center/cover; 
}
.hero h2 { 
    font-size: 4rem; 
    color: var(--primary-color); 
    margin-bottom: 10px; 
}
.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 30px; 
    font-weight: 600;
}

.btn { 
    display: inline-block; 
    background: var(--primary-color); 
    color: var(--white); 
    padding: 12px 28px; 
    text-decoration: none; 
    border-radius: 25px; 
    transition: 0.3s; 
    font-weight: 600;
}
.btn:hover { 
    background: #5c4c43; 
}

/* =========================================
   SPOLEČNÉ TŘÍDY PRO OBSAH WEBU
   ========================================= */
.section-title { 
    text-align: center; 
    font-size: 3rem; 
    color: var(--primary-color); 
    margin: 60px 0 40px; 
}
.grid { 
    display: grid; 
    gap: 30px; 
}

/* Proč si vybrat nás */
.features-grid { 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    text-align: center; 
}
.feature-card { 
    padding: 20px; 
}
.feature-card h3 { 
    font-family: 'Montserrat', sans-serif; 
    margin-bottom: 10px; 
    color: var(--primary-color); 
}

/* Naše výrobky (Kategorie) */
.categories-grid { 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}
.category-card { 
    background: var(--white); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    text-align: center; 
}
.category-info { 
    padding: 30px; 
}
.category-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* =========================================
   GALERIE FOTEK
   ========================================= */
.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 350px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* =========================================
   PATIČKA (KONTAKT)
   ========================================= */
footer { 
    background: #EFE8E3; 
    padding: 40px 0 20px; 
    margin-top: 60px; 
}
.footer-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    margin-bottom: 30px; 
}
.footer-col h2, .footer-col h3 { 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}
.footer-col a { 
    color: var(--text-color); 
    text-decoration: none; 
}
.footer-col a:hover { 
    text-decoration: underline; 
}
.footer-bottom { 
    text-align: center; 
    border-top: 1px solid #ddd; 
    padding-top: 20px; 
    font-size: 0.9rem; 
}

/* =========================================
   ÚPRAVY PRO MOBILNÍ TELEFONY
   ========================================= */
/* =========================================
   ÚPRAVY PRO MOBILNÍ TELEFONY
   ========================================= */
@media (max-width: 768px) {
    /* Udrží hlavičku relativní, aby z ní menu mohlo vyjet */
    header {
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }
    
    .header-container {
        flex-wrap: wrap; 
    }

    /* Schování odkazů a animace otevírání */
    nav {
        width: 100%;
        position: absolute;
        top: 100%; /* Posune menu přesně pod hlavičku */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); /* Jemný stín pod menu */
    }
    
    nav ul.nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        max-height: 0; /* V základu je menu zavřené (nulová výška) */
        overflow: hidden; /* Skryje obsah, který přetéká */
        transition: max-height 0.4s ease-in-out; /* Plynulá animace vyjetí */
        gap: 0;
    }
    
    /* Zobrazí menu po kliknutí (skript mu přidá třídu 'active') */
    nav ul.nav-list.active {
        max-height: 400px; /* Roztáhne menu, aby byly vidět odkazy */
    }

    /* Vzhled jednotlivých odkazů v rozbaleném menu */
    nav ul.nav-list li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f5f5f5; /* Jemná oddělovací čára */
    }

    /* Zmenšení nadpisů a oprava mřížky */
    .hero { padding: 60px 15px; }
    .hero h2 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; margin: 40px 0 20px; }
    
    .categories-grid, .gallery-grid, .features-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 250px; }
    .footer-container { text-align: center; }
}