/* --- Global Styles & Variables --- */
:root {
    --gold: #cfa75c;
    --dark-grey: #121212;
    --light-text: #f0f0f0;
    --grey-text: #a0a0a0;
    --whatsapp-green: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    /* Ujistěte se, že obrázek existuje, jinak bude černé pozadí */
    background-image: url('./images/car-background.jpg'); 
    background-color: var(--dark-grey);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--light-text);
    position: relative;
    min-height: 100vh;
}

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 10, 0.85); /* Trochu tmavší pro lepší čitelnost */
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-gold { color: var(--gold); }

/* --- Header & Navigation --- */
header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(207, 167, 92, 0.3);
    position: sticky;
    top: 0;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
}

.logo-icon {
    height: 35px; 
    margin-right: 12px;
}

.logo-main {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.logo-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    border-left: 5px solid var(--gold);
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Hero Section --- */
#hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 900px;
}

.hero-locations {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

#hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 35px;
    max-width: 650px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    background-color: var(--gold);
    color: var(--dark-grey);
    border: none;
    padding: 15px 35px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
}

.cta-button:hover {
    background-color: #e0b968;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(207, 167, 92, 0.3);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
}
.btn-whatsapp:hover {
    background-color: #1ebc57;
}

/* --- "How it works" Section (Bonus) --- */
.how-it-works {
    background-color: rgba(255, 255, 255, 0.03);
    text-align: center;
}
.how-it-works h2 { border: none; padding: 0; margin-bottom: 50px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: #1e1e1e !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 3px solid var(--gold) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    padding: 30px 20px;
}

/* Úprava pro mobil - aby nebyly boxy nalepené na sebe, pokud grid zlobí */
@media (max-width: 800px) {
    .steps-grid {
        display: flex; /* Změna z gridu na flex pro lepší kontrolu pod sebou */
        flex-direction: column;
        gap: 25px; /* Větší mezera mezi boxy */
        padding: 0 15px; /* Odsazení od krajů displeje */
    }

    .step-card {
        width: 100%; /* Roztažení na celou šířku */
    }
}
.step-card:hover { transform: translateY(-5px); border-color: var(--gold); }

.step-number {
    width: 40px; height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    background-color: var(--gold) !important;
    color: #000 !important;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(207, 167, 92, 0.4);
}

/* --- Gallery & Slider (Nový kód) --- */
.ba-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #333;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    cursor: col-resize;
}

.ba-slider img {
    width: 100%;
    display: block;
    height: auto;
}

.resize-img {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    overflow: hidden;
    border-right: 2px solid var(--gold);
}

/* Fix pro vnitřní obrázek, aby se nedeformoval */
.resize-img img {
    max-width: none; 
    height: auto;
    /* width se nastavuje přes JS */
}

.handle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: var(--gold);
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.handle::after {
    content: "↔";
    color: #000;
    font-weight: bold;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
}

.repair-meta {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 0 0 6px 6px;
    font-size: 0.9rem;
}

/* --- Services & Lists --- */
.ol-text {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    max-width: 900px;
}

.ol-text > li {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 30px;
    padding-left: 10px;
}

.ol-text ul {
    list-style: none;
    padding-left: 15px;
    margin-top: 15px;
}

.ol-text ul li {
    font-size: 1rem;
    font-weight: 400;
    color: var(--grey-text);
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.ol-text ul li::before {
    content: '›';
    position: absolute;
    left: 0; top: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.placeholder-text {
    color: var(--grey-text);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* --- Contact Section --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #333;
}
.contact-box i { font-size: 1.5rem; color: var(--gold); margin-bottom: 10px; }
.contact-box h3 { font-size: 1.1rem; margin-bottom: 5px; color: #fff; }
.contact-box a { color: var(--grey-text); text-decoration: none; font-size: 0.95rem; }
.contact-box a:hover { color: var(--gold); }

.contact-form {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 8px; font-weight: 600; color: var(--grey-text); font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--light-text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 5px rgba(207, 167, 92, 0.3);
}

/* Form Messages */
#form-message { margin-top: 15px; padding: 15px; border-radius: 4px; display: none; }
#form-message.success { display: block; background: rgba(76, 175, 80, 0.1); border: 1px solid #4caf50; color: #81c784; }
#form-message.error { display: block; background: rgba(244, 67, 54, 0.1); border: 1px solid #f44336; color: #e57373; }
.cta-button:disabled { opacity: 0.7; cursor: wait; }

/* SEO Footer */
.seo-footer {
    padding: 30px 0;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

/* --- MOBILE STYLES --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px; height: 25px;
    background: transparent; border: none;
    cursor: pointer; padding: 0; z-index: 110;
}
.menu-toggle span {
    width: 100%; height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Hamburger Animace */
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media (max-width: 800px) {
    .menu-toggle { display: flex; }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px; left: 0; width: 100%;
        background-color: #121212;
        border-bottom: 2px solid var(--gold);
        padding: 20px 0;
    }
    .main-nav ul.open { display: flex; }
    .main-nav ul li { text-align: center; width: 100%; }
    .main-nav ul li a { display: block; padding: 15px; border: none; font-size: 1.1rem; }

    #hero { text-align: center; align-items: center; padding-top: 40px; }
    #hero h1 { font-size: 2rem; }
    .hero-buttons { justify-content: center; width: 100%; }
    .cta-button { width: 100%; max-width: 300px; text-align: center; }

    .content-section h2 { font-size: 1.8rem; border-left: none; border-bottom: 3px solid var(--gold); padding-left: 0; padding-bottom: 10px; display: inline-block; }
    
    /* Fix pro slider na mobilu */
    .resize-img img { width: 100vw; max-width: none; }
    .repair-meta { flex-direction: column; gap: 10px; text-align: center; }
}

/* --- NA MOBIL --- */
.contact-box a {
    color: var(--gold) !important;
    text-decoration: none !important;
}

/* mobil */
a[href^="tel:"], 
a[href^="mailto:"] {
    color: var(--gold) !important;
    text-decoration: none;
}