/* RESET A ZÁKLAD */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #fdfdfd;
    color: #333;
}

html, body {
    height: 100%;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #77A8A8;
    border-bottom: 1px solid black;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    display: flex;
    align-items: center;
    font-weight: bold;
}

header .logo img {
    height: 100px;
    margin-right: 10px;
}

header .logo span p {
    font-size: 12px;
    margin-left: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

nav ul li a:hover {
    color: #4b7979;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    cursor: pointer;
    z-index: 150;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* MOBILE MENU */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: -100%; /* skryté nahoře */
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(119, 168, 168, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: top 0.4s ease;
        z-index: 120;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
        margin-top: 30%;
    }

    nav ul li a {
        color: black;
        font-size: 20px;
        font-weight: bold;
    }

    nav.active {
        top: 0; /* vysunuté dolů */
    }
}

/* HAMBURGER ANIMACE */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ZATAŽENÍ ZA OBSAH (nepovinné) */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 110;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
}
