/* 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: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* --- Aktualizovaný Header & Navigace --- */
header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition); /* Plynulý přechod barev při scrollu */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    /* Efekt při odscrollování (třída .scrolled se přidává přes JS) */
    &.scrolled {
        background-color: rgba(21, 25, 33, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        padding: 5px 0; /* Zmenšení headeru při scrollu */
        border-bottom: 1px solid var(--border-color);
    }

    .nav-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 1rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;

        /* Logo Branding */
        .logo-wrapper {
            display: flex;
            align-items: center;
            text-decoration: none;
            gap: 15px;
            transition: var(--transition);

            &:hover {
                transform: scale(1.02);
            }

            img {
                height: 50px; /* Fixní výška pro konzistenci */
                width: auto;
                object-fit: contain;
                filter: brightness(0) invert(1); /* Udělá černé logo bílým pro tmavý web, pokud je třeba */
            }

            .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; /* Rozdělení na dva řádky pro lepší vizuál */
                    font-size: 0.8rem;
                    text-transform: uppercase;
                    letter-spacing: 3px;
                    margin-top: 4px;
                }
            }
        }

        /* Navigační menu */
        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;
                
                /* Animovaná linka pod odkazem */
                &::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%;
                    }
                }
            }

            /* Speciální styl pro tlačítko Kontaktovat */
            .nav-btn a {
                background-color: var(--primary);
                color: #ffffff;
                padding: 12px 28px;
                border-radius: var(--radius);
                border: 2px solid var(--primary);
                font-weight: 600;
                transition: var(--transition);

                &::after {
                    display: none; /* U tlačítka nechceme linku */
                }

                &:hover {
                    background-color: transparent;
                    color: var(--primary);
                    transform: translateY(-2px);
                    box-shadow: 0 5px 15px rgba(184, 115, 51, 0.3);
                }
            }
        }
    }
}

/* Responzivita pro menší zařízení */
@media (max-width: 1024px) {
    header .nav-container {
        padding: 1rem;
        
        .logo-text {
            display: none; /* Na tabletech necháme jen obrázkové logo */
        }
        
        ul {
            gap: 1.5rem;
        }
    }
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('/assets/images/auto.jpg'); /* PLACEHOLDER PATH */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 20px;
    
    /* Dark gradient overlay directly from the prompt image vibe */
    &::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
    }

    .hero-content {
        position: relative;
        z-index: 10;
        max-width: 800px;
        margin-left: 10%; /* Left aligned as in design */
        
        h1 {
            color: var(--secondary);
            font-size: clamp(3rem, 6vw, 5.5rem);
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .hero-subtitle {
            color: var(--primary);
            font-size: clamp(2rem, 4vw, 3.5rem);
            margin-bottom: 1.5rem;
        }

        p {
            font-size: clamp(1.1rem, 2vw, 1.25rem);
            margin-bottom: 2.5rem;
            max-width: 600px;
            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.1);
        border-color: var(--secondary);
    }
}

/* Sections Base */
section {
    padding: 100px 20px;
    margin: 0 auto;
    position: relative;
    z-index: 10;

    .section-title {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 4rem;
        position: relative;
        color: var(--secondary);

        &::after {
            content: '';
            display: block;
            width: 80px;
            height: 3px;
            background-color: var(--primary);
            margin: 15px auto 0;
        }
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;

    .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(--text-main);
        }

        .service-img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-bottom: 1px solid var(--border-color);
        }

        .service-content {
            padding: 2rem;
            text-align: center;

            h3 {
                color: var(--secondary);
                font-size: 1.5rem;
                margin-bottom: 1rem;
            }
        }
    }
}

/* Gallery Wrapper & Categories */
.gallery-category {
    margin-bottom: 4rem;

    h3 {
        font-size: 1.8rem;
        color: var(--primary);
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;

    .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; /* Zvětšovací kurzor */

        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; /* Hidden by default */
    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(320px, 1fr));
    gap: 2.5rem;

    .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: 4rem;
            font-family: 'Playfair Display', serif;
            color: rgba(184, 115, 51, 0.15);
            line-height: 1;
        }

        .stars {
            color: #fbbf24;
            font-size: 1.25rem;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        p {
            font-style: italic;
            margin-bottom: 1.5rem;
        }

        .author {
            font-weight: 600;
            font-size: 1rem;
            color: var(--secondary);
            display: flex;
            align-items: center;
            gap: 10px;

            &::before {
                content: '';
                display: block;
                width: 20px;
                height: 2px;
                background-color: var(--primary);
            }
        }
    }
}

/* Forms */
.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    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.5rem;

        label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--secondary);
        }

        input, textarea {
            width: 100%;
            padding: 12px 15px;
            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 {
    background-color: #0b0e14;
    color: var(--text-muted);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 4px solid var(--primary);
}

/* Admin Styles */
.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: 2rem;
        margin-bottom: 1.5rem;
        color: var(--secondary);
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.admin-service-box {
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    background-color: var(--bg-light);
    display: flex;
    gap: 20px;
    
    .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;
    }

    input.admin-input, textarea.admin-input, select.admin-input {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid var(--text-main);
        border-radius: var(--radius);
        background-color: var(--surface);
        color: var(--secondary);
    }
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;

    .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: 6px 12px;
            border-radius: var(--radius);
            cursor: pointer;
        }
    }
}

.upload-box {
    border: 2px dashed var(--text-main);
    padding: 30px;
    text-align: center;
    border-radius: var(--radius);
    background: var(--bg-light);
    margin-bottom: 20px;
    
    select {
        padding: 10px;
        margin-bottom: 15px;
        width: 100%;
        max-width: 300px;
        background: var(--surface);
        color: var(--secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
    }
}

.alert-success { background: rgba(34, 197, 94, 0.1); color: #4ade80; padding: 15px; margin-bottom: 20px; border-radius: var(--radius); border-left: 4px solid #22c55e;}
.alert-error { background: rgba(239, 68, 68, 0.1); color: #f87171; padding: 15px; margin-bottom: 20px; border-radius: var(--radius); border-left: 4px solid #ef4444;}

@media (max-width: 768px) {
    .hero .hero-content {
        margin-left: 0;
        text-align: center;
        
        .hero-buttons {
            justify-content: center;
        }
    }
    
    header .nav-container {
        flex-direction: column;
        gap: 1rem;
        
        ul {
            flex-wrap: wrap;
            justify-content: center;
            gap: 1rem;
        }
    }

    .admin-service-box {
        flex-direction: column;
        .service-img-preview {
            width: 100%;
            height: 200px;
        }
    }
}
        input, textarea {
            width: 100%;
            padding: 12px 15px;
            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);
            }
        }