/* --- Proměnné a Reset --- */
:root {
    --primary: #1a1a1a;       
    --secondary: #6e6e6e;     
    --accent: #6c7c6d;        /* Šalvějová zelená */
    --accent-dark: #4e5e4f;   
    --light: #f9f9f9;         
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Montserrat', sans-serif;     
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--primary); color: var(--white); }

/* --- Typografie --- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.text-center { text-align: center; }

/* --- Navigace --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:hover { color: var(--accent); }

/* --- Hero Sekce --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/hero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 2px; }

/* --- Tlačítka --- */
.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 14px 30px;
    display: inline-block;
    font-weight: 600;
    font-family: var(--font-heading); 
    text-transform: uppercase;         
    letter-spacing: 2px;               
    font-size: 0.9rem;
    border-radius: 2px;
}

.btn-primary:hover { 
    background: var(--accent-dark);    
    color: var(--white) !important;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    border: none;
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.btn-submit:hover { background: var(--accent-dark); }

/* --- Portfolio Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    height: 300px; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

/* --- LIGHTBOX --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: translateY(-50%) scale(0.8); opacity: 0;}
    to {transform: translateY(-50%) scale(1); opacity: 1;}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover { color: var(--accent); }

/* --- O mně --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-text { flex: 1; }
.about-img {
    flex: 1;
    height: 400px;
    background-image: url('images/krystof.webp'); /* Přidán odkaz na tvou fotku */
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

/* --- Ceník --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--white);
    padding: 40px;
    border: 1px solid #eee;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.highlight {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 2;
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 { margin-bottom: 15px; font-size: 1.5rem;}
.price { 
    font-size: 2rem; 
    color: var(--accent); 
    margin-bottom: 20px; 
    display: block; 
    font-family: var(--font-heading); 
}

.features { margin-bottom: 30px; flex-grow: 1; }
.features li { 
    margin-bottom: 12px; 
    color: var(--secondary); 
    font-size: 0.95rem; 
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}
.features li:last-child { border-bottom: none; }

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item { border-bottom: 1px solid #eee; }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-align: left;
    color: #222;
    outline: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), opacity 0.3s ease;
    opacity: 1;
}

.faq-answer p {
    padding-bottom: 25px;
    margin: 0;
    color: #666;
    line-height: 1.7;
}

.faq-icon {
    font-size: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

/* --- Kontakt --- */
.contact-container { text-align: center; max-width: 600px; }
#contact-form { margin-top: 40px; text-align: left; }
.form-group { margin-bottom: 20px; }

input, textarea, select {
    width: 100%;
    padding: 15px;
    border: 1px solid #444;
    background: #222;
    color: var(--white);
    font-family: var(--font-body);
}
::placeholder { color: #888; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

.date-label { 
    display: block; 
    margin-top: 5px; 
    font-size: 0.8rem; 
    color: #888; 
}

/* --- Patička --- */
footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 20px;
    border-top: 1px solid #222;
    text-align: left;
}

@media screen and (min-width: 769px) {
    .footer-layout {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        align-items: start;
    }
}

.footer-box h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-box p {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #bbb;
}

.f-small { font-size: 0.8rem; color: #777; }

.footer-box a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-links a { display: block; margin-bottom: 10px; }

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #666;
}

/* --- Burger Menu --- */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--primary); margin: 5px; transition: 0.3s; }

/* --- COOKIE LIŠTA (Globální styl) --- */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px 0;
    display: none;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: var(--font-body);
}

.cookie-content p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons { display: flex; gap: 10px; white-space: nowrap; }

.cookie-btn {
    padding: 10px 25px;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    font-size: 0.85rem;
}

.btn-accept { background: var(--accent); color: white; }
.btn-refuse { background: #f4f4f4; color: #777; }
.btn-accept:hover { background: var(--accent-dark); }

/* --- Media Queries (Mobilní zobrazení) --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
    }
    .nav-links li { margin: 20px 0; opacity: 0; }
    .burger { display: block; }
    .nav-active { transform: translateX(0%); }
    
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }
    
    .pricing-card.highlight { transform: scale(1); margin: 20px 0; }
    .hero h1 { font-size: 2.5rem; }

    .hero {
        background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/hero-mobil.webp') !important;
        background-position: center !important; 
        background-size: cover !important;
    }

    .about-container { flex-direction: column; }
    .about-img { width: 100%; height: 300px; }
    
    .lightbox-content { width: 100%; }
    .close-lightbox { top: 10px; right: 20px; }

    .footer-layout { display: block; text-align: center; }
    .footer-box { margin-bottom: 40px; }
    footer { text-align: center; }
    
    .cookie-content { flex-direction: column; text-align: center; }
}