body {
    margin: 0;
    font-family: system-ui, Arial, sans-serif;
    background: #f4f6fb;
    color: #111827;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    padding: 16px 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.2s;
    padding: 8px 14px;
    border-radius: 8px;
}



.nav-links a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

/* HERO */
.hero {
    min-height: 60vh;

    display: flex;
    flex-direction: column;   /* ?? důležité */
    align-items: center;
    justify-content: center;

    text-align: center;
    gap: 10px;

    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                url("img/hero.png");
    background-size: cover;
    background-position: center;

    color: white;
    padding: 60px 20px;
}

/* --- UNIKÁTNÍ POZADÍ PRO KAŽDOU STRÁNKU --- */

/* Domů - např. tmavě modrý gradient nebo obrázek */
.hero-home {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("img/hero_home.png");
    background-color: #1a2a6c; /* Záložní barva, pokud není obrázek */
}

/* O mně - např. zelený nádech */
.hero-omne {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("img/hero_omne.png");
    background-color: #27ae60; 
}

/* Služby - např. fialový nádech */
.hero-sluzby {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("img/hero_sluzby.png");
    background-color: #8e44ad;
}

/* Kontakt - např. cihlově červený nádech */
.hero-kontakt {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("img/hero_kontakt.png");
    background-color: #e67e22;
}

.hero-inner {
    max-width: 700px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

.button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 22px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

/* GRID */
.grid-section {
    padding: 60px 20px;
}

.grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* GRID ITEM */
.grid-item {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }
}

/* SCROLL ANIMACE */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}