

@font-face {   
    font-family: "Montserrat-style";
    src: url("fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-optical-sizing: auto;
    font-display: swap;
}

@font-face {   
    font-family: "Kurale";
    src: url("fonts/Kurale/Kurale-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    font-display: swap;
}

:root{
    --color1: #508927;
    --color2: #729D51;
    --color3: #A1CB46;
    --color4: #83B330;
    --color5: #9FC95D;
    --color6: #eef1e9;
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: #eff2f8;
}

.view{
    max-width: 1400px;
    margin: 0 auto;
}

.section-p1{
    padding: 22px 90px;
}

h1, h2{
    font-family: "Montserrat-style";
    font-size: 1.8rem;
}

a{
    font-family: "Montserrat-style";
    font-size: 1.2rem;
}

h3{
    font-family: "Montserrat-style";
    font-size: 1.8rem;
    font-weight: 400;
}

 p, ul{
    font-family: "Montserrat-style", serif;
    font-weight: 300;
    font-size: 19px;
}
 /*MARK: NavBar
 */

 #header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 80px;
    height: 95px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
    transition: height 0.5s ease-in-out, background-color 0.3s ease-in-out;
}

/* Logo */
#mainLogo {
    height: 95px;
    padding-top: 10px;
    transition: height 0.5s ease-in-out, opacity 0.3s ease-in-out, transform 0.6s ease-in-out;
}

#mainLogo:hover {
    transform: rotate(360deg);
}

/* Navigace */
#navbar {
    text-align: right;
    margin-left: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#navbar li {
    list-style: none;
    padding: 0 15px;
    margin-right: 25px;
    position: relative;
}

#navbar li a {
    color: black;
    font-weight: 400;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.02rem;
    transition: 0.6s ease;
}

#navbar li:hover {
    padding: 34px 15px;
    background-color: yellow;
}

/* Při scrollování */
#header.scrolled {
    height: 50px;
    background-color: #444;
}

#header.scrolled li:hover {
    padding: 14px 15px;
    background-color: #444;
}

#header.scrolled a {
    color: yellow;
}

#header.scrolled #menuToggle {
    color: yellow;
}


#mainLogo.scrolled-logo {
    height: 40px;
    padding: 0;
    opacity: 0.8;
}

#menuToggle {
    display: none;
    cursor: pointer;
    font-size: 2rem;
}


/*MARK:MainImg
*/

#main {
    text-align: center;
    position: relative;
    width: 100%;
    height: auto; /* Dynamická výška podle obsahu */
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-img, .main-logo {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 800;
}


.main-img img{
    width: 100%;
}

.main-logo img{
    margin-top: 2%;
    width: 40%;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20%;
    transition: opacity 2s ease-in-out;
}

/* Ujistíme se, že #main drží výšku prvního obrázku */
/* #main::after {
    content: "";
    display: block;
    width: 100%;
    padding-top: 56.25%; /* Poměr stran 16:9 (změň podle potřeby) 
}
 */



/*MARK:About
*/

#about{
    background-color: #444;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.info-about{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
}

.info-imgch {
    order: 1;
}

.infoch {
    order: 2;
}

.info{
    padding: 12px;
    width: 50%;
}


.info-img img{
   height: 350px;
    width: 99%;
    padding: 8px;
    border-radius:16px;
    mask-image: radial-gradient(circle, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 0) 100%);
}

.info-box{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    gap: 20px;
    width: 100%;
    position: relative;
}

#about span{
    color: yellow;
}

.info-box .info-text{
    width: 50%;
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.5;
    background: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.granulat, .granulat1, .linka1, .linka2{
    width: 45%;
    height: 220px;
    position: absolute;
    z-index: 2;
}

.granulat{
    top: 70px;
    left: 10%;
    transform: rotate(-7deg);
}

.granulat1{
    top: -10px;
    right: 10%;
    transform: rotate(4deg);
}

.granulat img, .granulat1 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.granul2{
    display: none;
}

/* MARK:Servis
*/

#servis {
    margin-top: 150px;
    margin-bottom: 50px;
    text-align: center;
}

.servis-box {
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
}

.servis-info {
    margin: 12px;
    max-width: 300px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.servis-info h3 {
    padding: 12px 0px;
    width: 280px;
    background-color: yellow; /* Žluté tlačítko */
    color: black;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover efekt na tlačítko */
.servis-info h3:hover {
    background-color: #e6b800; /* Tmavší žlutá */
    transform: scale(1.05);
}

/* Původně skrytý text */
.servis-info p{
    display: none;
    padding: 10px 18px;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #333;
    transition: all 0.3s ease-in-out;
}

.arrow {
    width: 5px;
    height: 5px;
    padding: 0 6px;
    background-color: #444;
    border-radius: 25px;
    color:yellow;
    font-size: 1rem;
    transition: color 0.3s ease;
}



/*MARK:Contact
*/

#contact{
    padding: 28px 90px;
    background-color: #444;
    color: white;
}

#contact h2{
    font-weight: 300;
    font-size:  1.4rem;
    margin: 12px 0;
    border-bottom: 1px solid #797d7f;
}

.contact-info{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    padding: 1.4rem 0;
    border-bottom: 1px solid #797d7f;
}

#contact .contact-info h3{
    padding: 0;
    font-size: 1.3rem;
}

.contact-detail a{
    color: #efef47;
}

.contact-detail p{
    font-size: 18px;
}

.contact-detail a{
    text-decoration: none;
    color: #efef47;
}

/*MARK:Customer
*/

#customer{
    margin: 22px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}


#customer img{
    padding: 12px 40px;
    max-height: 80px;
}

/*MARK:Product
*/


#co-main img{
 width: 100%;
 display: block;

}

#product{
    background-color: #444;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 0 22px;
}


.bag{
    max-width: 800px;
    margin-top: 22px;
    text-align: center;
}

.bag-list{
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.bag-info{
    width: 50%;
}

.bag h2{
    margin-bottom: 22px;
    color: yellow;
}

.bag-info p{
    color: yellow;
}

.bag-info ul{
    margin: 8px 12px;
    font-size: 1.2rem;
    text-align: left;
    line-height: 1.8rem;
    list-style-position: inside;
    max-width: 800px; /* Zarovnání seznamu a zajištění správné šířky */
    padding-left: 20px; /* Odsazení od levého okraje */
}

.bag-info ul li {
    text-indent: -26px; /* Posune první řádek zpět, takže odrážka zůstane vlevo */
    padding-left: 10px;
    line-height: 1.4rem;
    margin-top: 8px; /* Odsazení textu pod odrážkou */
}

.bag-img{
    text-align: center;
    padding: 8px;
}

.bag-img img{
    display: block;
    width: 100%;
    mask-image: radial-gradient(circle, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 0) 100%);
}

#product-foto{
    margin: 32px auto;
}

.bag-foto{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: 8px;
}

.bag-foto div{
    position: relative;
    width: 25%;
    overflow: hidden;

}

.bag-foto img{
    width: 100%;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.bag-foto div:hover img {
    transform: scale(1.05);
}

/* Přidání poloprůhledného filtru */
.bag-foto div::after {
    content: "";
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 0, 0.5);
    transition: bottom 0.3s ease-in-out;
}

.bag-foto div:nth-child(1)::after{ background: rgba(209, 169, 35, 0.5);; } /* Červená */
.bag-foto div:nth-child(2)::after{ background: rgba(255, 0, 0, 0.5); } /* Zelená */
.bag-foto div:nth-child(3)::after{ background: rgba(255, 255, 0, 0.5); } /* Modrá */
.bag-foto div:nth-child(4)::after{ background: rgba(255, 192, 203, 0.5); } /* Oranžová */
.bag-foto div:nth-child(5)::after{ background: rgba(0, 0, 255, 0.5); } /* Fialová */
.bag-foto div:nth-child(6)::after{ background: rgba(0, 0, 0, 0.5); } /* Azurová */
.bag-foto div:nth-child(7)::after{ background: rgba(0, 255, 255, 0.5); } /* Žlutá */
.bag-foto div:nth-child(8)::after{ background: rgba(209, 169, 35, 0.5); } /* Růžová */

/* Aktivace efektu při hoveru */
.bag-foto div:hover::after{
    bottom: 0;
}


@media (max-width: 1144px) {
    .info-imgch {
        order: 2;
    }
    .infoch {
        order: 1;
    }
}

/*MARK:MEDIA QUERY
*/
@media screen and (max-width: 1401px) {
    .bag-foto{
        overflow: none;
        border-radius: 0px;
    }
}

/* Mobilní menu */
@media screen and (max-width: 768px) {
    
    #menuToggle {
        display: block;
    }

    #header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        right: 0;
        width: 200px;
        background-color: white;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        align-items: center;
    }

    #navbar.active {
        display: flex;
    }

    #navbar ul {
        flex-direction: column;
        padding: 0;
        text-align: left;
        justify-content: center;
    }

    #navbar li{
        text-align: center;
        align-items: center;
        width: 150px;
        height: 60px;
        margin: 0;
        padding: 18px 0 0 0;
        border-bottom: 1px solid #ddd;
    }


    #navbar li:hover{
        padding: 18px 0 0 0;
        margin: 0;
        background-color: yellow;

    }

    
    #navbar li a{
        font-size: 1rem;
    }

    /* Když se stránka scrolluje dolů */
    #header.scrolled {
        height: 50px;
    }

    #header.scrolled li:hover {
        background-color: yellow;
        padding: 18px 0 0 0; 
    }

    #header.scrolled a {
        color: black;
    }

    #navbar.scrolled {
        top: 50px;
    }

    #about{
        padding-top: 0;
        padding-bottom: 40px;
    }

    .info {
        padding: 20px 30px;
        width: 100%;
    }

    .info-box{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin-top: 0px;
        width: 100%;
    }

    .info-box .info-text {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        background-color: rgb(68, 68, 68);
    }

    .granul{
        display: none;
    } 

    .granul2{
        display: flex;
        padding: 0px 8px;       
    }

    .granul2 img{
        text-align: center;
        display: block;
        height: 350px;
        width: 99%;
        border-radius: 16px;
    }

    #servis{
        margin: 32px;
    }

    .bag {
        max-width: 100%;
        padding: 20px 12px;
        margin-top: 12px;
        text-align: center;
    }

    .bag-info {
        width: 100%;
    }

    .section-p1{
        padding: 0;
    }

    .bag-img {
        width: 100%;
        padding: 8px;
    }

    .work{
        display: none;
    }
}

@media screen and (max-width: 501px) {
    
    .main-logo img{
        margin-top: 3%;
        width: 70%;

    }

    #servis {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    #contact {
        padding: 18px 30px;
        background-color: #444;
        color: white;
    }

    #contact .contact-info h3{
        font-size: 18px;
        padding-right: 12px;
    }

    .contact-detail a,
    .contact-detail p{
        text-decoration: none;
        font-size: 16px;
    }
    
    .bag {
        max-width: 100%;
        padding: 20px 8px;
        margin-top: 12px;
        text-align: center;
    }

    .bag-info {
        width: 100%;
        padding: 0;
    }

    .section-p1{
        padding: 0;
    }

    .bag-img {
        width: 100%;
        padding: 8px;
    }

    .granul2 img{
        text-align: center;
        display: block;
        height: 350px;
        width: 100%;
        border-radius: 16px;
    }
}