﻿/* style.css - Globální styly pro Zelenou hlídku */

:root {
    --bg-main: #fdfbf7; /* Krémově béžová */
    --bg-alt: #f1f3ee; /* Lehce odlišná pro stránku O nás */
    --text-dark: #233021; /* Tmavá "vojenská" zelená pro text */
    --primary-color: #3f5939; /* Zelená pro hlavičku a prvky */
    --accent-color: #8b6b4a; /* Zemitá hnědá pro tlačítka */
    --accent-hover: #6a5036;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Zajišťuje, že patička bude dole */
}

/* Navigace a Hlavička */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-container img {
    height: 50px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 1.5rem;
}

    nav a {
        color: white;
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
        transition: color 0.2s;
    }

        nav a:hover, nav a:focus {
            color: #d1e2c9;
            text-decoration: underline;
        }

/* Hlavní obsah */
main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h1, h2, h3 {
    font-family: 'Georgia', serif; /* Robustnější font pro nadpisy - dodává na vážnosti a tradici */
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
}

/* Tlačítka */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: var(--border-radius);
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

    .btn:hover {
        background-color: var(--accent-hover);
        transform: translateY(-2px);
    }

/* Patička */
footer {
    background-color: var(--primary-color);
    color: #aebda8;
    text-align: center;
    padding: 1.5rem;
    border-top: 4px solid var(--accent-color); /* Ozdobná lišta zemitou barvou */
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- SPECIFICKÉ STYLY PRO JEDNOTLIVÉ STRÁNKY --- */

/* Homepage - Index */
.hero-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #4a5c46;
}

.scroll-down {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

    .gallery img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: var(--border-radius);
        border: 3px solid var(--primary-color);
        transition: transform 0.3s;
    }

        .gallery img:hover {
            transform: scale(1.03);
        }

/* O nás - About */
.about-page {
    background-color: var(--bg-alt); /* Mírně odlišné pozadí dle zadání */
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

    .about-content p {
        margin-bottom: 1.5rem;
    }

/* Stylový prvek pro O nás (Citát / Motto) */
.mission-quote {
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    background-color: #e6e9e1;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Nabídka - Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border: 2px solid #e1e4dc;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

    .product-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
    }

/* Status skladu */
.stock-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.status-skladem {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.status-vyprodano {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Rozbalovací nabídka (Details) */
details {
    margin-top: 1rem;
    text-align: left;
    background-color: #f9faf8;
    border: 1px solid #e1e4dc;
    border-radius: var(--border-radius);
}

summary {
    cursor: pointer;
    padding: 1rem;
    font-weight: bold;
    background-color: #f1f3ee;
    list-style: none; /* Skryje výchozí šipku */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    summary::-webkit-details-marker {
        display: none; /* Pro Safari */
    }

    summary::after {
        content: "▼";
        font-size: 0.8rem;
        transition: transform 0.3s;
    }

details[open] summary::after {
    transform: rotate(180deg);
}

details[open] summary {
    border-bottom: 1px solid #e1e4dc;
}

.details-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

/* Kontakt */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

    .contact-container p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

    .contact-item img {
        width: 30px;
        height: 30px;
    }

/* Responzivita pro mobily */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
