html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

h2{
	font-size: 60px;	
}

footer {
	text-align: center;
}

nav {
    background-color: #333; /* Nastaví tmavé pozadí pro celé menu */
    position: fixed; /* Fixní pozice */
    top: 0; /* Umístí menu na vrch stránky */
    left: 0; /* Zajistí, že bude zarovnáno na levý okraj */
    width: 100%; /* Menu zabírá celou šířku */
    z-index: 1000; /* Ujistí se, že bude nad jinými prvky */
}

/* Styl pro mobilní tlačítka v menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row; /* Tlačítka budou vedle sebe */
    justify-content: center; /* Tlačítka budou vycentrována */
    align-items: center; /* Vertikální centrování */
}

nav ul li {
    margin: 0 10px; /* Mezera mezi tlačítky */
}

nav ul li button {
    background: #333;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    font-size: 18px;
    cursor: pointer;
	margin:0 0;
}

nav ul li button:hover {
    background: orange; /* Barva pozadí při najetí */
}

/* Styl pro hero sekci */
.hero {
    background: url('hero_bagr.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-overlay {
    padding: 20px;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    background: #ff9900;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.btn:hover {
    background: #e68a00;
}

/* Styl pro sekce */
.section {
    padding: 40px 20px;
    text-align: center;
}

/* Mobilní navigace - skrytí ve výchozím stavu */
.mobile-nav {
    display: none;  /* Skrytí menu ve výchozím stavu */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);  /* Poloprůhledné pozadí */
    z-index: 1000;
    text-align: center;
}

/* Otevřené mobilní menu */
.mobile-nav.open {
    display: block;  /* Menu se zobrazí, když je otevřeno */
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.mobile-nav ul li {
    margin: 20px 0;
}

.mobile-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 30px;  /* Větší text pro mobil */
    text-transform: uppercase;
    padding: 10px;
    display: block;
    width: 100%;
}

.mobile-nav ul li a:hover {
    background-color: #ff9900;
}

/* Styl pro hamburger */
.hamburger {
    display: none;  /* Skrytí hamburgeru na desktopu */
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.hamburger div {
    width: 30px;
    height: 4px;
    background-color: orange;
    margin: 5px 0;
    transition: all 0.3s;
}

.reference-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.reference-box {
    width: 300px;
    height: auto;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
}

.reference-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.reference-box img:hover {
    transform: scale(1.05); /* efekt při najetí myší */
}

.reference-box p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

.technika-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.technika-box {
    display: flex;
    flex: 1 1 48%; /* dovol mírné zmenšení a mezery */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-sizing: border-box;
    padding: 20px;
}

@media (min-width: 1024px) {
    .technika-box {
        min-width: 500px;
    }
}


.technika-image {
    width: 40%;
    aspect-ratio: 1 / 1;
    border-radius: 10%;
    background: url('bagr.jpg') no-repeat center center/cover;
    flex-shrink: 0;
}

.technika-description {
    padding-left: 20px;
    flex: 1;
    text-align: left;
}



/* Styl pro tlačítko Zavolejte nám */
.call-btn {
    display: none;  /* Skrytí tlačítka ve výchozím stavu (na desktopu) */
    background: #ff6600;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.call-btn:hover {
    background: #e65c00;  /* Změna barvy při najetí */
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Zobrazí hamburger pouze na mobilních zařízeních */
        top: 15px;
        right: 15px;
    }
	
	.technika-box {
        flex: 0 0 100%;
        flex-direction: column;
        align-items: center;
    }

    .technika-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1; /* zachová čtvercový tvar */
    }

    .technika-description {
        padding-left: 0;
        text-align: center;
    }
	
	.call-btn {
        display: inline-block;  /* Zobrazení tlačítka na mobilu */
    }

    .hero {
        background-position: center;
    }

    /* Skrytí běžného menu na mobilu */
    nav ul {
        display: none;  /* Skrytí hlavního menu na mobilu */
    }

    /* Zobrazení mobilního menu */
    .mobile-nav ul {
        flex-direction: column;
    }
}

/* Show default menu on desktop */
@media (min-width: 769px) {
    .mobile-nav {
        display: none;  /* Skrytí mobilního menu na desktopu */
    }
    nav ul {
        display: flex;
    }
}

/* Styl pro jednotlivé sekce s textem */
.services, .reference-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.reference-box {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    width: 100%;
}

.service-box {
    background: #fff;
    color: #333;
    padding: 30px;
    border-left: 5px solid #ff6600; /* Barevný proužek na straně */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 320px;
    width: 100%;
    transition: all 0.3s ease-in-out;
	line-height: 1.6; /* Zvýšení mezer mezi řádky */

}

.service-box:hover {
    border-left: 8px solid #e65c00; /* Zvýraznění */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    transform: scale(1.03);
}

.kontakt-container {
    display: flex;
    justify-content: space-between; /* Lepší rozložení na desktopu */
    align-items: flex-start;
    gap: 20px; /* Menší mezera */
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: nowrap; /* NEZALOMÍ se na nový řádek */
}

.kontakt-box, 
.kontakt-formular {
    flex: 1; /* Každý zabere přesně polovinu šířky */
    padding: 20px;
    background: #f4f4f4;
    border-radius: 5px;
	box-sizing: border-box;
	padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 0; /* DŮLEŽITÉ: zabrání nucenému zalomení */
}

/* Na mobilu se prvky srovnají pod sebe */
@media (max-width: 768px) {
    .kontakt-container {
        flex-direction: column;
        align-items: center;
    }

    .kontakt-box, 
    .kontakt-formular {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.kontakt-formular {
    flex: 1 1 40%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 0;
    text-align: center;
}

.kontakt-formular h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.kontakt-formular form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kontakt-formular input,
.kontakt-formular textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
	width: 95%;
}

.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
    border-color: #ff9900;
    box-shadow: 0 0 8px rgba(255, 153, 0, 0.4);
    outline: none;
}

.kontakt-formular textarea {
    resize: vertical;
    min-height: 100px;
}

.kontakt-formular button {
    background: #ff9900;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.kontakt-formular button:hover {
    background: #e68a00;
}

/* Responzivita */
@media (max-width: 768px) {
    .kontakt-formular {
        width: 100%;
    }
}


.success-message {
    display: none;
    opacity: 0;
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 5px;
    transition: opacity 1s ease-in-out;
}

