@import url("main.css");

/* Section hero */

#hero h1 {
    font-size: 5em;
    color: var(--text);
    margin: 20px 0px 20px 0px;
}

#hero h1 span {
    color: var(--modra);
}

#hero .text {
    width: 40%;
    min-width: 400px;
}

#hero .text p {
    font-size: 1.2em;
}

#hero .image {
    display: flex;
    justify-content: flex-end;
}

#hero .image img {
    height: 450px;
    object-fit: contain;
}

/* -----------------------*/


/* Section o nas */

#o-nas .wrapper {
    background-color: var(--seda-svetla);
    border-radius: 15px;
}

#o-nas img {
    height: 450px;
}

#o-nas h2 {
    font-size: 2.5em;
    font-weight: 600;
    margin: 20px 0px 20px 0px;
}

#o-nas .wrapper-text {
    padding: 0px 10px 0px 10px;
}

#o-nas .wrapper-text .text {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

#o-nas .wrapper-text .text p {
    flex: 1;
    margin: 0px;
}

#o-nas .wrapper-info {
    display: flex;
}

#o-nas .wrapper-info .info {
    position: relative;
}

#o-nas .wrapper-info .info:nth-child(1) {
    padding-right: 20px;
}


#o-nas .wrapper-info .info:nth-child(2) {
    padding-left: 20px;
    padding-right: 20px;
}

#o-nas .wrapper-info .info:nth-child(3) {
    padding-left: 15px;
}

#o-nas .wrapper-info .info:nth-child(1)::after,
#o-nas .wrapper-info .info:nth-child(2)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #ccc;
}

#o-nas .wrapper-info .info p {
    margin: 0px;
    font-weight: 800;
}

#o-nas .wrapper-info .info p:last-child {
    font-size: 0.8em;

}

#o-nas .wrapper-info .info:nth-child(1) p {
    color: var(--zluta);

}

#o-nas .wrapper-info .info:nth-child(2) p {
    color: var(--modra);
}

#o-nas .wrapper-info .info:nth-child(3) p {
    color: var(--ruzova);
}

#o-nas .wrapper-info .info p:first-child {
    font-size: 1.5em;
}


/* -----------------------*/



/* Mobile styles */
@media (max-width: 768px) {
    #hero .image {
        width: 100%;
    }

    #hero .image img {
        width: 100%;
        height: auto;
    }

    #hero .text {
        min-width: 100%;
    }

    #hero .text h1 {
        font-size: 4em;
        text-align: center;
    }

    #hero .text p {
        text-align: center;
    }

    #o-nas img {
        width: 100%;
        height: auto;
        order: 2;
    }

    #o-nas .wrapper-text h2 {
        text-align: center;
    }

    #o-nas .wrapper-text .text {
        flex-direction: column;
        text-align: center;
    }

    #o-nas .wrapper-text .wrapper-info {
        justify-content: center;
    }
}