/* File: assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --primary: #b87333; 
    --primary-dark: #8c5523;
    --bg-light: #151921; 
    --surface: #1e2430; 
    --surface-hover: #262d3d;
    --secondary: #f8fafc; 
    --text-main: #4a5568; 
    --text-body: #94a3b8; 
    --text-muted: #64748b;
    --border-color: #2d3748;
    --radius: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    line-height: 1.8;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.text-content p {
    white-space: pre-line;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Header & Nav */
header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    &.scrolled {
        background-color: rgba(21, 25, 33, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        padding: 5px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-container {
        max-width: 1500px;
        width: 100%;
        margin: 0 auto;
        padding: 1rem 3%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .logo-wrapper {
            display: flex;
            align-items: center;
            text-decoration: none;
            gap: 15px;
            transition: var(--transition);

            &:hover { transform: scale(1.02); }

            img {
                height: 50px;
                width: auto;
                object-fit: contain;
                filter: brightness(0) invert(1);
            }

            .logo-text {
                font-family: 'Playfair Display', serif;
                font-size: 1.5rem;
                font-weight: 700;
                color: var(--secondary);
                line-height: 1;
                
                span {
                    color: var(--primary);
                    display: block;
                    font-size: 0.8rem;
                    text-transform: uppercase;
                    letter-spacing: 3px;
                    margin-top: 4px;
                    font-family: 'Inter', sans-serif;
                }
            }
        }

        ul {
            list-style: none;
            display: flex;
            align-items: center;
            gap: 2.5rem;

            li a {
                color: var(--secondary);
                font-weight: 500;
                font-size: 0.9rem;
                text-transform: uppercase;
                letter-spacing: 1px;
                position: relative;
                padding: 5px 0;
                
                &::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 0;
                    height: 2px;
                    background-color: var(--primary);
                    transition: var(--transition);
                }

                &:hover {
                    color: var(--primary);
                    &::after { width: 100%; }
                }
            }

            .nav-btn a {
                background-color: var(--primary);
                color: #ffffff;
                padding: 12px 28px;
                border-radius: var(--radius);
                border: 2px solid var(--primary);
                font-weight: 600;

                &::after { display: none; }

                &:hover {
                    background-color: transparent;
                    color: var(--primary);
                    transform: translateY(-2px);
                    box-shadow: 0 5px 15px rgba(184, 115, 51, 0.3);
                }
            }
        }
    }
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('/assets/images/hero.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    
    &::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%);
    }

    .hero-content {
        position: relative;
        z-index: 10;
        max-width: 900px;
        margin-left: 5%;
        
        h1 {
            color: var(--secondary);
            font-size: clamp(3rem, 6vw, 6rem);
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .hero-subtitle {
            color: var(--primary);
            font-size: clamp(1.8rem, 3.5vw, 2.8rem);
            margin-bottom: 1.5rem;
        }

        p {
            font-size: clamp(1.1rem, 2vw, 1.3rem);
            margin-bottom: 2.5rem;
            max-width: 700px;
            color: #e2e8f0;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
    }

    .hero-fade {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(to bottom, transparent, var(--bg-light));
        z-index: 5;
    }
}

/* Buttons */
.btn {
    background-color: var(--primary);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;

    &:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
        color: #ffffff;
        transform: translateY(-2px);
    }
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--text-main);

    &:hover {
        background-color: rgba(255,255,255,0.05);
        border-color: var(--secondary);
    }
}

/* Expanded Sections Base */
section {
    padding: 100px 5%;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;

    .section-title {
        text-align: center;
        font-size: 2.8rem;
        margin-bottom: 4rem;
        position: relative;
        color: var(--secondary);

        &::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background-color: var(--primary);
            margin: 15px auto 0;
        }
    }
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: flex-start;
}

/* Custom Check Lists */
.check-list {
    list-style: none;
    padding: 0;
    
    li {
        position: relative;
        padding-left: 35px;
        margin-bottom: 15px;
        font-size: 1.1rem;
        color: var(--text-body);
        
        &::before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 0;
            color: var(--primary);
            font-size: 1.2rem;
            font-weight: bold;
        }
    }
    
    &.cols-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 40px;
    }
}

.content-box {
    background: var(--surface);
    padding: 50px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;

    .service-card {
        background: var(--surface);
        border-radius: var(--radius);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
        border: 1px solid var(--border-color);
        border-top: 4px solid var(--primary);
        overflow: hidden;

        &:hover {
            transform: translateY(-10px);
            background: var(--surface-hover);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
            border-color: var(--primary);
        }

        .service-img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            border-bottom: 1px solid var(--border-color);
        }

        .service-content {
            padding: 2.5rem;
            text-align: center;

            h3 {
                color: var(--secondary);
                font-size: 1.6rem;
                margin-bottom: 1rem;
            }
        }
    }
}

/* --- NOVÁ GALERIE (Filtrovatelné záložky) --- */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-tab-btn {
    background: var(--surface);
    color: var(--secondary);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 30px; /* Elegantní pilulkový tvar */
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.gallery-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface-hover);
}

.gallery-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

.gallery-panel {
    display: none;
    animation: fadeInGallery 0.6s ease forwards;
}

.gallery-panel.active {
    display: block;
}

@keyframes fadeInGallery {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;

    .gallery-item {
        position: relative;
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        aspect-ratio: 4 / 3;
        background-color: var(--surface);
        border: 1px solid var(--border-color);
        cursor: zoom-in;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0.9;

            &:hover {
                transform: scale(1.08);
                opacity: 1;
            }
        }
    }
}

/* Lightbox Modal */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;

    &.active {
        display: flex;
        opacity: 1;
    }

    img {
        max-width: 90%;
        max-height: 90vh;
        border-radius: var(--radius);
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
        object-fit: contain;
    }

    .close-lightbox {
        position: absolute;
        top: 20px;
        right: 30px;
        color: var(--secondary);
        font-size: 3rem;
        cursor: pointer;
        transition: color 0.3s;
        line-height: 1;

        &:hover { color: var(--primary); }
    }
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;

    .review-card {
        background: var(--surface);
        padding: 2.5rem;
        border-radius: var(--radius);
        border-left: 4px solid var(--primary);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        position: relative;
        border-top: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);

        &::before {
            content: '"';
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 5rem;
            font-family: 'Playfair Display', serif;
            color: rgba(184, 115, 51, 0.1);
            line-height: 1;
        }

        .stars {
            color: #fbbf24;
            font-size: 1.3rem;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        p {
            font-style: italic;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

        .author {
            font-weight: 600;
            font-size: 1.05rem;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 10px;

            &::before {
                content: '';
                display: block;
                width: 25px;
                height: 2px;
                background-color: var(--primary);
            }
        }
    }
}

/* Forms */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3.5rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);

    .form-group {
        margin-bottom: 1.8rem;

        label {
            display: block;
            margin-bottom: 0.6rem;
            font-weight: 500;
            color: var(--secondary);
        }

        input, textarea, select {
            width: 100%;
            padding: 14px 18px;
            border: 1px solid var(--text-main);
            border-radius: var(--radius);
            font-family: inherit;
            font-size: 1rem;
            transition: var(--transition);
            background-color: var(--bg-light);
            color: var(--secondary);

            &:focus {
                outline: none;
                border-color: var(--primary);
                background-color: #0b0e14;
                box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
            }
        }
    }
}

/* Footer */
.site-footer {
    background-color: #080b10;
    color: var(--text-body);
    padding: 80px 5% 0 5%;
    border-top: 4px solid var(--primary);
}

.footer-container { max-width: 1500px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 60px; }

.footer-col h4 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    &::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--primary); }
}

.footer-col.brand-col .logo-wrapper img { height: 70px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.contact-list, .links-list, .billing-list { list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 1.2rem; }
.contact-list li svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 2; margin-top: 4px; }
.contact-list li a, .links-list li a { color: var(--text-body); transition: var(--transition); }
.contact-list li a:hover, .links-list li a:hover { color: var(--primary); }
.links-list li { margin-bottom: 0.8rem; }
.billing-list li { margin-bottom: 0.8rem; }
.billing-list li strong { color: var(--secondary); font-size: 1.05rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* --- ADMIN SPECIFIC CSS --- */
.admin-container {
    max-width: 900px;
    margin: 100px auto 60px;
    padding: 40px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);

    h3 {
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        color: var(--secondary);
        font-family: 'Playfair Display', serif;
        font-size: 1.8rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;

    h2 { margin: 0; color: var(--primary); }
}

.admin-tab {
    background: var(--surface-hover);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.admin-label { color: var(--secondary); font-weight: 600; display: block; margin-bottom: 8px; font-size: 1.05rem; }
.admin-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; display: block; }
.admin-input, .admin-textarea { width: 100%; padding: 14px; margin-bottom: 20px; border: 1px solid var(--text-main); border-radius: var(--radius); background-color: var(--bg-light); color: var(--secondary); font-family: inherit; font-size: 1rem; transition: var(--transition); }
.admin-input:focus, .admin-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2); }
.admin-textarea { resize: vertical; min-height: 100px; }

.admin-service-box {
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background-color: var(--bg-light);
    display: flex;
    gap: 25px;

    .service-img-preview { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border-color); }
    .service-form-fields { flex: 1; }
}

.upload-box {
    border: 2px dashed var(--text-main);
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
    background: var(--bg-light);
    margin-bottom: 20px;
    transition: var(--transition);

    &:hover { border-color: var(--primary); }

    select { width: 100%; max-width: 300px; padding: 12px; margin-bottom: 15px; background: var(--surface); color: var(--secondary); border: 1px solid var(--text-main); border-radius: var(--radius); }
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;

    .admin-gallery-item {
        position: relative;
        border-radius: var(--radius);
        overflow: hidden;
        aspect-ratio: 1;
        border: 1px solid var(--border-color);

        img { width: 100%; height: 100%; object-fit: cover; }

        .delete-btn {
            position: absolute;
            bottom: 5px;
            right: 5px;
            background: rgba(220, 38, 38, 0.9);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: var(--radius);
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
            &:hover { background: #b91c1c; }
        }
    }
}

.review-item {
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: var(--bg-light);
    gap: 20px;
    color: var(--text-body);
    strong { color: var(--secondary); font-size: 1.1rem; }
}

.alert-success { background: rgba(34, 197, 94, 0.1); color: #4ade80; padding: 15px 20px; margin-bottom: 20px; border-radius: var(--radius); border-left: 4px solid #22c55e; font-weight: 500; }
.alert-error { background: rgba(239, 68, 68, 0.1); color: #f87171; padding: 15px 20px; margin-bottom: 20px; border-radius: var(--radius); border-left: 4px solid #ef4444; font-weight: 500; }

@media (max-width: 1200px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (max-width: 1024px) {
    header .nav-container { padding: 1rem 5%; .logo-text { display: none; } ul { gap: 1.5rem; } }
    .split-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .hero .hero-content { margin-left: 0; text-align: center; .hero-buttons { justify-content: center; } }
    header .nav-container ul { display: none; }
    .check-list.cols-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    .admin-service-box { flex-direction: column; .service-img-preview { width: 100%; height: 200px; } }
    .review-item { flex-direction: column; }
}