:root {
    --goldies: #C5B358; /* Definice proměnné s názvem "zadek" */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: rgb(32, 30, 30);
}


    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 30px;
        text-align: end;
        justify-content: space-around;
        z-index: 5;
    }
    


.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    font-weight: bold;

}

.navbar a:hover {
    color: white; /* Barva textu při hover */
 
}

.hero {
    height: 100vh;
    background: url('/Fig/Cekarna.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
    
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2); /* tmavý překryv pro lepší čitelnost loga */
    filter: blur(3px); /* Pouze zde je rozmazání pozadí */
    z-index: 1;
}

.logo {
    z-index: 2;
    color: #fff;
    font-size: 5px;
    font-weight: bold;
    z-index: 2;
    /* Ujistěte se, že logo je správně velikostně */
}

.logo img {
    max-width: 150px; /* Nastavte maximální šířku loga */
    height: auto; /* Udržuje proporce loga */
    border-radius: 0.5rem;
    z-index: 2;
}

.phone-link{
    text-decoration: none;
    color: black;
    margin-top: 4rem;
    background-color: var(--goldies);
    padding: 1rem;
    font-weight: 800;
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
    padding-left: 5rem;
    padding-right: 5rem;
    font-size: 1.5rem;
}
.phone-link:hover,
.phone-link:active{
    color: white;
    transform: scale(1.2);
}
.firma{
    text-align: center;
    color: rgb(231, 231, 231);
    z-index: 2;
    margin-top: 3rem;
    font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  color: var(--goldies);
 
    
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    background-color: rgb(48, 38, 18);
    padding: 20px;
    border-radius: 10px;
    margin: 50px auto;
    border-top: 0.3rem solid var(--goldies);
    
    
}
    


.text-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    text-align: justify;
    color: white;
    line-height: 1.5;
}

.About {
    text-align: start;
    margin-bottom: 20px;

}

.me {
    margin-bottom: auto;
    margin-right: 3rem;
}

.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box img {
    width: 100%;
    border-radius: 10px;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.social-icons a {
    margin: 0 10px;
}

.social-icons img {
    width: 2.5rem;
    height: 2.5rem;
    transition: transform 0.3s ease;
}
.social-icons img:hover,
.social-icons img:active {
    transform: scale(1.2); /* Zvětšení ikony o 20% při najetí */
}
.barbut{
    background-color: var(--goldies);
    padding: 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
    color: black;
    
}
.barbut:hover {
    color: white; /* Barva textu při hover */
    transform: scale(1.2); /* Zvětšení odkazu při hover */
}
.barbut.sluzby {
    color: black;
}

.grid-wrapper {
    border-top: 0.3rem solid var(--goldies);
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
    max-width: 900px; /* Nastaví maximální šířku gridu */
    margin: 0 auto; /* Centerování gridu */
    background-color: rgb(48, 38, 18);
    margin-bottom: 5rem;
    color: white;
}

.info-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-direction: column;

    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    text-align: justify;
}

.info-box h2 {
    margin-top: 0;
    margin-bottom: 2rem;
}
.info-box p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.carousel-box {
    
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    border-radius: 0.5rem;
}

button {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}



.features {
    border-top: 0.3rem solid var(--goldies);
  display: flex;
  justify-content: space-around;
  padding: 5px 20px;
  background-color: #222;
  text-align: center;
  

}

.feature {
  justify-content: center;
  text-align: center;
  width: 30%;
}

.feature h2 {
    margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--goldies);
}

.feature p {
  color: #ddd;
  justify-content: space-around;
}
.feature a {
    text-decoration: none; /* Odstraní podtržení odkazu */
    color: white; /* Umožní odkazu mít stejnou barvu jako okolní text */
  }
  .feature a i {
    margin-right: 8px; /* Vzdálenost mezi ikonou a textem */
  }

.mapouter {
  display: flex;
  justify-content: center; /* Vystředění mapy */
  padding: 10px 0; /* Volitelně: přidání paddingu kolem mapy */
  justify-content: center; /* Vystředění mapy */
  width: 100%; /* Zajišťuje, že mapa se rozšiřuje na šířku svého kontejneru */
}



.contact-right {


    display: flex;
    justify-content: center; /* Zarovnání na střed horizontálně */
    margin-bottom: 3rem;
}

form {
    display: flex;
    flex-direction: column; /* Boxy pod sebou */
    width: 100%;
    max-width: 600px; /* Maximální šířka formuláře */
    margin: 0 auto; /* Zarovnání na střed */
    color: white;

}

input, textarea {
    margin-bottom: 1rem; /* Odsazení mezi jednotlivými prvky */
    padding: 1rem;
    font-size: 1rem;
    background-color: #181616;
    color: white;
}
.btn {
    background-color: var(--goldies); /* Modré tlačítko */
    color: white; /* Bílý text */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}
.textin{
    border-bottom: solid 0.3rem #C5B358;
    text-align: center;
    align-items: center;
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: #ddd;
}



.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.burger span {
    height: 3px;
    background-color: white;
    width: 100%;
    border-radius: 5px;
}

/* Skrytí navigace a zobrazení burger menu pod 768px */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 10px;
        text-align: center;
        
    }

    .navbar a {
        display: none; /* Skryj odkazy */
        margin: 10px 0;
        font-size: 18px;
        
    }

    .navbar.active a {
        display: block; /* Zobraz odkazy při aktivaci */
        padding: 1rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .burger {
        display: flex; /* Zobraz burger menu */
    }

    .hero {
        background-size: cover;
        padding: 20px;
    }

    .logo img {
        max-width: 100px;
    }

    .phone-link {
        font-size: 14px;
        padding: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .firma {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .image-box img {
        width: 100%;
        height: auto;
    }

    .grid-wrapper {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 20px auto;
        padding: 10px;
    }

    .carousel img {
        width: 100%;
    }

    .contact-right form {
        max-width: 100%;
        padding: 10px;
    }

    .features {
        flex-direction: column;
        padding: 10px;
    }

    .feature {
        width: 100%;
        margin-bottom: 20px;
    }

    .feature h2 {
        font-size: 1.5rem;
    }

    .feature p {
        font-size: 1rem;
    }
    .navbar a {
        display: none; /* Skryj odkazy */
        margin: 10px 0;
        font-size: 18px;
    }

    .navbar.active a {
        display: block; /* Zobraz odkazy při aktivaci */
    }

    .burger {
        display: flex; /* Zobraz burger menu */
    }
}
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Fixnuto pro mobily */
        background-position: center;
        background-size: cover;
    }
}
