/* --- Global Styles & Variables --- */
:root {
    --gold: #cfa75c;
    --dark-grey: #121212;
    --light-text: #f0f0f0;
    --grey-text: #b8b8b8;
    --whatsapp-green: #227652;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 110px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('img/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);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-gold { color: var(--gold); }
.border-secondary-dark { border-color: rgba(255, 255, 255, 0.1) !important; }

.text-muted {
    color: var(--grey-text) !important;
}

.placeholder-text {
    color: #c0c0c0 !important;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

.form-label {
    color: var(--light-text) !important;
    opacity: 0.9;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

.seo-bottom-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #dedede !important;
}

.custom-navbar {
    padding: 15px 0;
    border-bottom: 1px solid rgba(207, 167, 92, 0.3);
    background-color: rgba(18, 18, 18, 0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1060 !important;
}

.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;
}

@media (min-width: 1200px) {
    .custom-navbar .nav-link {
        white-space: nowrap !important;
        font-size: 0.82rem;
        letter-spacing: 0.3px;
        transition: color 0.2s ease;
    }
}

.btn-gold {
    background-color: var(--gold);
    color: var(--dark-grey);
    border: none;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: #e0b968;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(207, 167, 92, 0.3);
    color: var(--dark-grey);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    transition: all 0.3s ease;
}
.btn-whatsapp:hover {
    background-color: #2d8b03;
    transform: translateY(-3px);
    color: white;
}

.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;
    transition: transform 0.3s, border-color 0.3s;
}

.step-card p {
    color: #cdcdcd !important;
}

.step-card:hover { transform: translateY(-5px); border-color: var(--gold) !important; }

.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);
}

.bg-dark-section {
    background-color: rgba(20, 20, 20, 0.75) !important;
}

.custom-comparison-table {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin-top: 20px;
    background-color: #161616;
}
.custom-comparison-table th {
    font-weight: 700;
    letter-spacing: 1px;
}
.custom-comparison-table td {
    padding: 15px !important;
    color: #e0e0e0;
}
.bg-gold-trans {
    background-color: rgba(207, 167, 92, 0.1) !important;
}

.ol-text {
    list-style: none;
}

.ol-text > li {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
}

.ol-text ul li {
    font-size: 1rem;
    font-weight: 400;
    color: #e0e0e0 !important;
    position: relative;
    padding-left: 25px;
}

.ol-text ul li::before {
    content: '›';
    position: absolute;
    left: 0; top: -2px;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.4rem;
}

.contact-box {
    background-color: #1a1a1a !important;
    transition: transform 0.2s ease;
}
.contact-box:hover {
    transform: scale(1.02);
}

@media (max-width: 1199px) {
    .custom-navbar .navbar-collapse {
        background-color: #121212;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        border: 1px solid rgba(207, 167, 92, 0.2);
    }
}

/* ==========================================================================
   NOVÉ STYLY: Centrování Lightboxu (Zvětšení obrázků)
   ========================================================================== */
.photo-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.04);
}

.lightbox {
    display: none; /* JavaScript přepne na flex při kliknutí */
    position: fixed;
    z-index: 2000; /* Musí být nad navigací */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--gold);
    animation: lightboxZoom 0.2s ease-in-out;
}

@keyframes lightboxZoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Ovládací prvky galerie */
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2010;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: var(--gold);
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--gold);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responzivita pro menší displeje */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 92%;
        max-height: 80vh;
    }
    .lightbox-prev, .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}