/* Reset a základní nastavení */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2c3e50;
    background-color: #fcfdfc;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0;
}

:root {
    --primary-color: #7A8E4E; 
    --primary-dark: #586835;
    --wa-color: #25D366;
}

.mobile-action-bar { display: none; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards ease-out;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hlavička a Navigace - Skleněný efekt */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-container {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.logo span { color: var(--primary-color); }

nav { display: flex; align-items: center; }

nav a {
    text-decoration: none; color: #333; margin-left: 25px;
    font-weight: 500; transition: color 0.3s ease;
}

nav a:hover { color: var(--primary-color); }

.btn-fast-poptavka {
    border: 2px solid var(--primary-color); padding: 8px 18px;
    border-radius: 30px; color: var(--primary-color) !important;
    font-weight: 600; transition: all 0.3s ease;
}

.btn-fast-poptavka:hover { background-color: var(--primary-color); color: white !important; }

/* HERO SEKCE */
.hero {
    background: radial-gradient(circle at center, #586835 0%, #323d1d 70%, #1e2511 100%);
    min-height: 100vh; display: flex; align-items: center; color: white; padding: 120px 0 80px 0;
}

.hero-content { 
    max-width: 850px; 
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-img {
    max-width: 320px; height: auto; margin-bottom: 25px; display: block;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.hero h1 { font-size: 48px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 20px; margin-bottom: 35px; font-weight: 300; color: #e4ebe0; max-width: 700px; }

.hero-contact-buttons { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

.btn-action {
    display: inline-flex; align-items: center; padding: 14px 28px;
    border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 16px;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
}

.btn-action:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn-call { background-color: var(--primary-color); color: white; border: 2px solid var(--primary-color); }
.btn-call:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-whatsapp { background-color: transparent; color: white; border: 2px solid var(--wa-color); }
.btn-whatsapp:hover { background-color: var(--wa-color); }
.btn-action span { margin-right: 10px; font-size: 18px; }

/* Sekce nadpisy */
h2 { font-size: 36px; text-align: center; margin-bottom: 15px; font-weight: 700; color: #1e272e; }
.section-subtitle { text-align: center; color: #7f8c8d; margin-bottom: 50px; font-size: 18px; }

/* O nás */
.about { text-align: center; background-color: white; }
.about p { max-width: 800px; margin: 0 auto; font-size: 17px; color: #555; line-height: 1.8; }

/* Služby */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-card {
    background: white; padding: 50px 35px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02); text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #f0f0f0;
}

.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.service-card .icon { font-size: 45px; margin-bottom: 25px; }
.service-card h3 { margin-bottom: 15px; font-size: 22px; color: #2c3e50; }

/* Sekce Zemina a Kalkulačka */
.soil-section { background-color: #f4f7f2; }
.soil-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 50px; align-items: stretch; }
.soil-text { display: flex; flex-direction: column; justify-content: center; }
.soil-text h3 { font-size: 24px; margin-bottom: 15px; }
.soil-text p { margin-bottom: 15px; color: #555; font-size: 17px; }

.soil-photo-wrapper {
    position: relative; margin: 15px 0 25px 0;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.soil-img {
    width: 100%; height: 230px; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}

.soil-photo-wrapper:hover .soil-img { transform: scale(1.05); }

.soil-photo-tag {
    position: absolute; bottom: 12px; left: 12px;
    background-color: rgba(0, 0, 0, 0.75); color: white;
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
}

.delivery-badge {
    background-color: #e2edd5; color: #3e5622; padding: 15px 20px;
    border-radius: 8px; margin-bottom: 25px; border-left: 5px solid var(--primary-color);
}

.static-prices ul { list-style: none; margin-top: 10px; }
.static-prices li { padding: 8px 0; border-bottom: 1px solid #e0e7db; font-size: 16px; }

.soil-calculator {
    background: white; padding: 40px; border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04); border: 1px solid #eef2eb;
}

.soil-calculator h3 { font-size: 22px; margin-bottom: 25px; text-align: center; }
.calc-inputs { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 25px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; color: #7f8c8d; margin-bottom: 6px; }
.input-group input { width: 100%; padding: 12px; border: 1px solid #dcdde1; border-radius: 6px; font-size: 16px; font-weight: 600; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.result-box { background-color: #f8f9fa; padding: 15px; border-radius: 8px; text-align: center; border: 1px solid #f1f2f6; }
.result-box.highlighted { background-color: #f2f7ec; border-color: #e2eed6; }
.result-label { display: block; font-size: 12px; text-transform: uppercase; color: #7f8c8d; margin-bottom: 5px; }
.result-value { font-size: 28px; font-weight: 700; color: #2c3e50; display: block; }
.result-box.highlighted .result-value { color: var(--primary-dark); }
.result-unit { font-size: 13px; color: #7f8c8d; }
.calc-note { font-size: 12px; color: #95a5a6; text-align: center; }

/* Kariéra */
.career-section { background-color: white; }
.career-content { max-width: 900px; margin: 0 auto; text-align: center; }
.career-content > p { font-size: 17px; color: #555; line-height: 1.8; margin-bottom: 40px; }
.career-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; text-align: left; margin-bottom: 40px; }
.career-card { background: #fcfdfc; padding: 30px; border-radius: 8px; border: 1px dashed #ced6e0; }
.career-card h4 { font-size: 18px; margin-bottom: 15px; color: #2c3e50; }
.career-card ul { list-style: none; }
.career-card li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.career-card li::before { content: "•"; color: var(--primary-color); font-weight: bold; font-size: 20px; position: absolute; left: 0; top: -2px; }
.career-footer { background-color: #f4f7f2; padding: 30px; border-radius: 8px; font-size: 16px; border: 1px solid #e2edd5; }

/* Galerie & FILTRY */
.gallery { background-color: #fcfdfc; }

.gallery-filters {
    display: flex; justify-content: center; gap: 15px;
    margin-top: -20px; margin-bottom: 40px; flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px; border: 2px solid #e0e6d8; background: white;
    border-radius: 30px; font-weight: 600; color: #555; cursor: pointer;
    transition: all 0.3s ease; font-size: 15px;
}

.filter-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filter-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.gallery-item {
    position: relative; overflow: hidden; border-radius: 12px;
    height: 300px; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: opacity 0.3s ease;
    background-color: #1e2511;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.item-fit img.img-contain {
    object-fit: contain;
    padding: 10px;
}

.gallery-desc {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85)); color: white;
    padding: 20px; font-size: 16px; font-weight: 600;
    transform: translateY(5px); transition: transform 0.3s ease;
}

.card-badge {
    position: absolute; top: 15px; right: 15px;
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.badge-realizace { background-color: #d35400; }
.badge-udrzba { background-color: #27ae60; }

.gallery-item:hover img { transform: scale(1.08); }
.item-fit:hover img.img-contain { transform: scale(1.03); }
.gallery-item:hover .gallery-desc { transform: translateY(0); }

/* LIGHTBOX */
.lightbox {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; flex-direction: column;
}

.lightbox-content { max-width: 85%; max-height: 75vh; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.5); animation: zoom 0.3s ease; }

@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#lightbox-caption { color: white; margin-top: 20px; font-size: 18px; font-weight: 500; text-align: center; max-width: 80%; }
.lightbox-close { position: absolute; top: 25px; right: 35px; color: white; font-size: 45px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.lightbox-close:hover { color: #bbb; }

/* Kontakt */
.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 50px; }
.contact-info .info-item { display: flex; align-items: center; margin-top: 25px; }
.contact-info .info-item span { font-size: 24px; margin-right: 15px; background: #e8f5e9; padding: 10px; border-radius: 50%; }
.contact-info a { color: inherit; text-decoration: none; }
.contact-info a:hover { color: var(--primary-color); }

.contact-form { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; }
.contact-form h3 { margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }

.btn-submit {
    width: 100%; padding: 14px; background-color: var(--primary-color); color: white;
    font-weight: 600; border: none; border-radius: 6px; cursor: pointer; font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

footer { background-color: #1e272e; color: #85929e; text-align: center; padding: 30px 0; font-size: 14px; }

/* COOKIE LIŠTA PRO GOOGLE REKLAMY */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 25px;
    max-width: 400px;
    background-color: white;
    border: 1px solid #e0e6d8;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 99998;
    padding: 25px;
    animation: slideUpCookie 0.5s ease-out;
}

@keyframes slideUpCookie {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-content h4 { font-size: 18px; margin-bottom: 10px; color: #1e272e; text-align: left; }
.cookie-content p { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.5; text-align: left; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-cookie {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cookie-accept { background-color: var(--primary-color); color: white; }
.btn-cookie-accept:hover { background-color: var(--primary-dark); }
.btn-cookie-reject { background-color: #f1f2f6; color: #57606f; }
.btn-cookie-reject:hover { background-color: #e4e7eb; }

/* MOBILNÍ VERZE */
@media (max-width: 768px) {
    nav { display: none; }
    .hero-logo-img { max-width: 220px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-contact-buttons { flex-direction: column; }
    .btn-action { width: 100%; justify-content: center; }
    .contact-container { grid-template-columns: 1fr; }
    .soil-container { grid-template-columns: 1fr; }
    .calc-results { grid-template-columns: 1fr; }
    .lightbox-close { top: 15px; right: 20px; }
    .gallery-filters { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }
    
    body { padding-bottom: 70px; }
    
    .mobile-action-bar {
        display: flex; position: fixed; bottom: 0; left: 0;
        width: 100%; height: 65px; background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        z-index: 99999; box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
    }
    
    .action-bar-btn {
        flex: 1; display: flex; align-items: center; justify-content: center;
        text-decoration: none; color: white; font-weight: 700; font-size: 16px;
    }
    
    .call-btn { background-color: var(--primary-color); }
    .wa-btn { background-color: var(--wa-color); }
    .action-bar-btn span { margin-right: 8px; font-size: 18px; }

    /* Na mobilu se cookie lišta vysune nad spodní tlačítka Zavolat/WhatsApp */
    .cookie-banner {
        left: 15px;
        right: 15px;
        bottom: 75px; 
        max-width: none;
        padding: 20px;
    }
}