:root {
    --bg-dark: #121212;      /* Hluboká černá pro pozadí */
    --surface: #1e1e1e;      /* Antracitová pro sekce/karty */
    --accent: #d4af37;       /* Prémiová zlatá pro luxusní vzhled */
    --text-light: #e0e0e0;   /* Světle šedá pro čtení (není tak ostrá jako čistě bílá) */
    --text-muted: #999999;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hlavička */
header {
    background-color: rgba(18, 18, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
}

.header-flex { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.logo a { text-decoration: none; }
.logo h1 { color: #fff; font-size: 24px; text-transform: uppercase; font-weight: 700; }
.logo span { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: 25px; }
nav a { text-decoration: none; color: var(--text-light); font-weight: 500; font-size: 15px; text-transform: uppercase; transition: color 0.3s; }
nav a:hover { color: var(--accent); }

/* Tlačítka */
.btn { display: inline-block; padding: 15px 30px; text-decoration: none; border-radius: 3px; font-weight: 700; text-transform: uppercase; transition: 0.3s; cursor: pointer; border: none; }
.btn-primary { background-color: var(--accent); color: #000; }
.btn-primary:hover { background-color: #b5952f; transform: translateY(-2px); }
.btn-block { width: 100%; font-size: 16px; margin-top: 10px; }

/* Hero Sekce */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* SEM DEJ HEZKOU FOTKU DOVOZU */
    background: linear-gradient(rgba(18,18,18,0.7), rgba(18,18,18,0.8)), url('hero-bg.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 0 20px;
}

.hero-content h2 { font-size: 45px; color: #fff; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.hero-content p { font-size: 20px; color: #ccc; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Galerie (To hlavní) */
.gallery-section { padding: 80px 20px; }
.section-title { font-size: 32px; color: var(--accent); text-transform: uppercase; text-align: center; margin-bottom: 60px; border-bottom: 1px solid #333; padding-bottom: 20px; }

.car-block {
    margin-bottom: 60px;
    background-color: var(--surface);
    padding: 30px;
    border-radius: 5px;
    border-left: 4px solid var(--accent);
}

.car-block h3 { color: #fff; font-size: 24px; margin-bottom: 20px; }

/* Mřížka pro fotky jednoho auta - Automaticky skládá fotky vedle sebe */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* Obal pro fotku - aby nevytekla při zoomování */
.img-wrapper {
    overflow: hidden;
    border-radius: 3px;
    background-color: #000;
}

/* SAMOTNÁ FOTKA - Ta tvoje "pojistka" stejné velikosti */
.car-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* MAGIE NA OŘEZ */
    display: block;
    transition: transform 0.4s ease;
    opacity: 0.9;
}

/* Efekt při přejetí myší - jemné přiblížení fotky */
.car-grid img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Kontakt */
.contact-section { padding: 0 20px 80px 20px; }
.contact-wrapper { display: flex; gap: 40px; background-color: var(--surface); padding: 40px; border-radius: 5px; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h2 { color: var(--accent); margin-bottom: 20px; text-transform: uppercase; }

.contact-form { flex: 1; min-width: 300px; background: #181818; padding: 30px; border-radius: 5px; border: 1px solid #333; }
.modern-form .form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.modern-form label { font-size: 13px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.modern-form input, .modern-form textarea { width: 100%; padding: 15px; background-color: var(--bg-dark); border: 1px solid #333; color: #fff; border-radius: 3px; font-family: inherit; transition: 0.3s; }
.modern-form input:focus, .modern-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 8px rgba(212, 175, 55, 0.2); }

/* Hamburger (Mobilní Menu) */
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 5px; z-index: 101; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: #fff; transition: 0.3s; }

@media (max-width: 768px) {
    .header-flex { height: 70px; }
    .hero-content h2 { font-size: 30px; }
    .hamburger { display: block; }
    #nav-menu { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background-color: rgba(18,18,18,0.98); text-align: center; transition: 0.3s; z-index: 100; backdrop-filter: blur(10px); }
    #nav-menu.active { left: 0; }
    nav ul { flex-direction: column; padding: 40px 0; gap: 0; }
    nav ul li { margin: 20px 0; }
    nav a { font-size: 20px; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .contact-wrapper { flex-direction: column; gap: 30px; padding: 25px 20px; align-items: center; }
    .contact-info, .contact-form { min-width: 100%; width: 100%; }
    .contact-info { text-align: center; }
    .car-block { padding: 20px 15px; }
}