/* Základní styly a proměnné */
:root {
    --primary-color: #003366; /* Tmavě modrá z loga ELAT */
    --secondary-color: #0055a5; /* Světlejší modrá pro kontrast */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --bg-color: #ffffff;
    --dark-bg-color: #DDDDDD; /* Velmi světle šedá */
}

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

/* Hlavička a navigace */
header {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 5px rgba(0, 33, 66, 0.2);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Přizpůsob velikost loga podle potřeby */
}

/* Mobilní menu */
#menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    background-color: var(--bg-color);
    z-index: 40;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

#menu .flex {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#menu a {
    font-size: 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0;
    transform: translateX(50px);
}

#menu:not(.translate-x-full) a {
    animation: navLinkFade 0.5s ease forwards;
}

#menu a:hover {
    color: var(--secondary-color);
}

#menu a.bg-blue-700 {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
}

#menu a.bg-blue-700:hover {
    background-color: var(--primary-color);
}

/* Hlavní sekce */
main {
    padding-top: 80px; /* Upraveno podle výšky hlavičky */
}

.hero {
    background: linear-gradient(rgba(13, 71, 161, 0.8), rgba(13, 71, 161, 0.8)), url('https://via.placeholder.com/1500x800') no-repeat center center/cover;
    color: var(--light-text-color);
    height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-color);
}

/* Společné styly pro sekce */
.content-section {
    padding: 60px 0;
}

.content-section-dark {
    background-color: var(--dark-bg-color);
    padding: 60px 0;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Sekce Služby */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.service-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Sekce Reference */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.logo-item {
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Sekce Kontakt */
.contact-flex {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Patička */
footer {
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
}

/* Responzivní design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Animace pro mobilní odkazy */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}
