/* style.css - Kompletní responzivní verze */

/* ======== ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ ======== */
:root {
    --primary-color: #Ff6600;
    --dark-color: #222;
    --text-color: #333;
    --light-color: #fff;
    --bg-light: #f8f9fa;
    --font-family: 'Inter', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --border-radius: 8px;
    --footer-bg-dark: #222;
    --footer-text-light: #bbb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); line-height: 1.6; color: var(--text-color); background-color: var(--light-color); overflow-x: hidden; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--primary-color); }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin-bottom: 1rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); } /* Dynamická velikost písma */
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.5rem; color: var(--dark-color); }
p { margin-bottom: 1rem; }

.text-center { text-align: center; }

/* TLAČÍTKA */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.5rem; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; border: none; transition: 0.3s ease; text-align: center; }
.btn-primary { background-color: var(--primary-color); color: var(--light-color); }
.btn-primary:hover { background-color: #e65c00; transform: translateY(-2px); text-decoration: none; }
.btn-secondary { background-color: var(--bg-light); color: var(--dark-color); border: 1px solid #ddd; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-full { width: 100%; }

.section-tag { display: block; color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }

/* NAVBAR */
.header { background-color: var(--light-color); box-shadow: var(--shadow); position: sticky; top: 0; width: 100%; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-logo .logo-image { height: 40px; }
.nav-menu { display: flex; list-style: none; align-items: center; }
.nav-item { margin-left: 2rem; }
.nav-link { color: var(--text-color); font-weight: 600; transition: color 0.3s ease; }
.nav-link:hover { color: var(--primary-color); text-decoration: none; }

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-color); transition: 0.3s; }

/* HERO */
.hero { background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('fotka1.png') no-repeat center center/cover; min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--light-color); padding: 2rem 0; }
.hero .subtitle { font-size: clamp(1rem, 3vw, 1.25rem); max-width: 700px; margin: 0 auto 2rem; padding: 0 1rem; }

/* ABOUT */
.about { padding: clamp(3rem, 8vw, 6rem) 0; }
.about-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--shadow); width: 100%; height: auto; max-height: 500px; object-fit: cover; }

/* SERVICES */
.services { padding: clamp(3rem, 8vw, 6rem) 0; background-color: var(--bg-light); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background-color: var(--light-color); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow); border-top: 4px solid var(--primary-color); transition: 0.3s; }

/* GALLERY */
.gallery { padding: clamp(3rem, 8vw, 6rem) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--border-radius); transition: 0.3s; }

/* ======== KONTAKTNÍ SEKCE - OPRAVENO ======== */
.contact {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    background-color: var(--light-color);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    align-items: start;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column; /* Popisky nad políčky */
    text-align: left;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: block;
}

.form-group input, 
.form-group textarea {
    width: 100% !important; /* Vynucení šířky proti rozbití */
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

/* KARTY KONTAKTŮ */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-person {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background: #fdfdfd;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.info-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

.info-text h4 {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    color: #999;
}

.info-text p, .info-text a {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1rem;
}

/* ======== CAROUSEL PARTNEŘI - BAREVNÝ & PLYNULÝ ======== */
.partners-section {
    padding: 4rem 0;
    background-color: var(--light-color);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-slider {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.logos-slider::before, .logos-slider::after {
    content: ""; height: 100%; position: absolute; width: clamp(50px, 10vw, 150px); z-index: 2; pointer-events: none;
}
.logos-slider::before { left: 0; background: linear-gradient(to right, var(--light-color), transparent); }
.logos-slider::after { right: 0; background: linear-gradient(to left, var(--light-color), transparent); }

.logos-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 45s linear infinite;
}

.logos-track:hover { animation-play-state: paused; }

.logos-track img {
    height: 65px;
    width: auto;
    margin: 0 40px;
    object-fit: contain;
    transition: transform 0.3s;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* RESPONZIVITA - MOBILY */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Pod sebou na mobilu */
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .logos-track img {
        height: 50px;
        margin: 0 25px;
    }
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-230px * 21)); } /* 160px + 70px margin */
}

/* ======== DEFINITIVNÍ RESPONZIVNÍ FOOTER ======== */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px 0;
    width: 100%;
    overflow: hidden; /* Pojistka proti přetečení */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #aaaaaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Seznamy */
.footer-contact-simple, .footer-links-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-simple li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #aaaaaa;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contact-simple i {
    color: var(--primary-color);
    width: 16px;
}

.footer-contact-simple a, .footer-links-simple a {
    color: #aaaaaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-contact-simple a:hover, .footer-links-simple a:hover {
    color: var(--primary-color);
}

.footer-links-simple li {
    margin-bottom: 10px;
}

/* Spodní lišta */
.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* 🔥 TADY SE DĚJE TA RESPONZIVITA 🔥 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Na tabletu 2 sloupce */
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr; /* Na mobilu 1 sloupec (pod sebou) */
        text-align: center; /* Vše na střed */
        gap: 40px;
    }

    .footer-contact-simple li {
        justify-content: center; /* Ikonky a text na střed */
    }
    
    .footer-bottom {
        margin-top: 30px;
    }
}

/* RESPONZIVITA - MOBILY A TABLETY */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .about-content { gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; left: -100%; top: 80px; flex-direction: column; background: var(--light-color); width: 100%; height: calc(100vh - 80px); transition: 0.3s; z-index: 999; }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1.5rem 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .logos-track img { width: 110px; margin: 0 20px; }
    @keyframes scrollLogos {
        100% { transform: translateX(calc(-150px * 21)); }
    }
}