/* FONTS */
@font-face {
    font-family: 'Lato';
    src: url(../fonts/Lato/Lato-Regular.ttf);
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url(../fonts/Lato/Lato-Light.ttf);
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Lato';
    src: url(../fonts/Lato/Lato-Bold.ttf);
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url(../fonts/Raleway/Raleway-Light.ttf);
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url(../fonts/Raleway/Raleway-Regular.ttf);
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url(../fonts/Raleway/Raleway-Italic.ttf);
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url(../fonts/Raleway/Raleway-SemiBold.ttf);
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Raleway';
    src: url(../fonts/Raleway/Raleway-Bold.ttf);
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Italiana';
    src: url(../fonts/Italiana/Italiana-Regular.ttf);
    font-display: swap;
}

/* Klasy ogolne */
.flexContainer {
    display: flex;
}
.clear {
    clear: both;
}

/* CSS */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
}
#container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}
#mainHeader {
    z-index: 10;
    display: flex;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    border-bottom: 2px solid #64A793;
    background-color: #fff;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
}
#mainHeaderLeft {
    flex: 1;
    display: flex;
    margin-left: 10px;
    align-items: center;
    cursor: pointer;
}
#mainHeaderLeft img {
    height: 45%;
}
#mainHeaderLogo {
    flex: 1;
}
#mainHeaderLogo {
    text-align: center;
}
#mainHeaderLogo a {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
#navLogoImg {
    width: 100px;
    margin: 5px;
    transition: 0.2s;
}
#mainHeaderRight {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: right;
}
#mainHeaderRight img {
    width: 40px;
    margin-right: 3px;
}
#navbarMenu {
    display: none;
    z-index: 5;
    padding: 0;
    margin: 0;
    width: 100%;
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 0;
    text-align: center;
    border-top: 2px solid #64A793;
    box-shadow: 0 5px 5px 1px rgba(28, 28, 28, 0.832);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    background-color: #fff;
    transition: display 2s ease;
}
#navbarMenu a {
    text-decoration: none;
    color: #2a473f;
}
#navbarMenu li {
    height: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
    text-transform: uppercase;
}
#navbarMenu > a:last-of-type > li {
    padding-bottom: 10px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
#navbarMenu hr {
    border: 1px solid #64A793;
    border-radius: 2px;
    width: 70%;
    margin: 0 auto;
}
.centerText {
    display: block;
    width: max-content;
}
.projectPrev {
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.9);
    padding-bottom: 15px;
    margin: 15px;
}
.projectImg img, .projectImg picture img {
    display: block;
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
}
.projectTxt, .projectPrev a {
    padding: 0 10px;
}
.projectTxt h4 {
    font-size: 0.9em;
    font-weight: 400;
    flex: 7;
    margin: 15px 0 10px 0;
}
.projectTxt .rollDownIcon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: right;
}
.projectTxt i {
    rotate: 270deg;
}
.projectPrev a {
    display: block;
    width: max-content;
    text-decoration: none;
    color: rgb(34, 140, 106);
    font-size: 0.8em;
}

/* SLIDER */
.before, .after {
    margin: 0;
}
.before figcaption, .after figcaption {
    background: #fff;
    border: 1px solid #c0c0c0;
    border-radius: 12px;
    color: #2e3452;
    opacity: 0.8;
    padding: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    line-height: 100%;
}
.before figcaption {
    left: 12px;
}
.after figcaption {
    right: 12px;
}

/* OPINIONS */
.opinionsWrapper h1 {
    font-size: 24px;
}
.opinion {
    flex: 1;
    background-color: #fff;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.3);
}
.opinion .rating {
    margin-top: 10px;
}
.opinion .rating img {
    width: 24px;
}
.opinion p.content {
    margin: 10px 0 20px 0;
    padding: 0 30px;
    text-align: justify;
}
.opinion .author span {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}
.opinion .author .name {
    font-weight: 700;
    font-size: 16px;
}
.opinion .author .desc {
    font-size: 0.9em;
    font-style: italic;
    font-weight: 300;
}

/* FOOTER */
footer {
    margin-top: auto;
    padding-top: 20px;
    box-shadow: 0 5px 5px 5px rgba(0, 0, 0, 0.6);
}
footer .logo picture {
    display: block;
    width: 60%;
    margin: 0 auto 15px auto;
}
footer .logo picture > img {
    width: 100%;
}
footer .desktopText {
    display: none;
}
#footerNav ol {
    margin: 0;
    padding: 0;
    width: 100%;
}
#footerNav ol > a {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: inset 0 3px 5px -3px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: #000;
}
#footerNav ol > a:last-of-type {
    box-shadow: inset 0 0 5px 0px rgba(0, 0, 0, 0.4);
}
#footerNav ol > a:hover, #footerNav ol > a:focus {
    background-color:rgb(29, 122, 93);
    color: #fff;
    box-shadow: inset 0 0 5px 1px rgba(46, 46, 46, 0.795);
}
#footerNav ol > a > li {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 1.2em;
    text-transform: uppercase;
}
footer .icon {
    flex: 1;
}
footer .socials {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}
footer .socials a {
    display: block;
    width: max-content;
    text-align: center;
    font-size: 3em;
    margin: 0 auto;
}
footer .socials img {
    width: 50px;
}
footer .socials img[alt="Instagram"] {
    filter: drop-shadow(0 0 5px #c13584d2);
}
footer .socials img[alt="Facebook"] {
    filter: drop-shadow(0 0 5px #4267B2);
}
.newsletter {
    width: 100%;
    text-align: center;
    background-color: #F0F0F0;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.3);
}
.newsletterTitle {
    margin: 0 0 0.8% 0;
    font-size: 1.1em;
}
.newsletterCaption {
    margin: 0 0 3% 0;
    font-size: 0.9em;
    color: #555;
}
#inputMail {
    width: 80%;
    height: 35px;
    padding-left: 10px;
    border-radius: 20px 0 0 20px;
    border: 2px solid #333;
    box-sizing: border-box;
    border-right: none;
}
footer input[type="submit"] {
    height: 35px;
    width: 40px;
    padding: 0;
    border-radius: 0 20px 20px 0;
    border: 2px solid #333;
    background-color: #65A693;
    background-image: url(../icons/svg/arrow-right-white.svg);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
}
footer input[type="submit"]:hover {
    cursor: pointer;
    background-color: #4d8172;
}
.newsletterRodo {
    max-width: 80%;
    margin: 10px auto;
    font-size: 0.8em;
    color:rgba(0, 0, 0, 0.6);
}
footer .credits {
    font-size: 0.8em;
    padding: 5px;
    text-align: center;
    background-color: #65A693;
    color: #eee;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.3);
}

/* MEDIA */
@media screen and (min-width: 1000px) {
    #mainHeaderLogo {
        order: 1;
    }
    #mainHeaderLogo a {
        justify-content: left;
    }
    #mainHeaderLeft {
        order: 2;
        justify-content: right;
    }
    #mainHeaderLeft img {
        display: none;
    }
    #navbarMenu {
        display: flex;
        position: static;
        border: none;
        box-shadow: none;
        justify-content: right;
        height: 100%;
    }
    #navbarMenu a {
        color: #000;
    }
    #navbarMenu li {
        height: 100%;
        text-align: center;
        display: static;padding: 0 20px;
    }
    #navbarMenu > a:last-of-type > li {
        padding: 0 20px;
        border: none;
        border-radius: 0;
    }
    #navbarMenu li:hover {
        background-color: #ccc;
        transition: 1s;
    }
    #navbarMenu hr {
        display: none;
    }
    #mainHeaderRight {
        order: 3;
        width: 150px;
        flex: none;
    }
    #mainHeaderRight img {
        display: none;
    }
    #mainHeaderRight a {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100%;
        background-color: #3f7c6a;
        color: #fff;
        text-decoration: none;
        padding: 0 20px;
    }
    #mainHeaderRight a:after {
        text-align: center;
        content: "Umów konsultację";
    }
    /* FOOTER */
    footer {
        display: grid;
        grid: auto auto auto auto / 1fr auto 1fr;
        padding: 0;
        background-color: #dbdbdb;
    }
    footer .newsletter {
        grid-area: 1 / 1 / 4 / 2;
        background-color: rgba(255, 255, 255, 0);
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    #formNewsletter {
        width: 100%;
    }
    #formNewsletter input[type="email"] {
        max-width: 350px;
    }
    #formNewsletter #submitNewsletter:hover {
        background-color: #3f7c6a;
        cursor: pointer;
    }
    #footerNav {
        grid-area: 1 / 2 / 4 / 3;
        padding: 30px 30px;
        margin: 40px 50px;
        background-color: #fff;
        border-radius: 40px;
        box-shadow: 0 0 10px -1px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
    }
    #footerNav ol {
        display: flex;
    }
    #footerNav ol > a {
        box-shadow: none;
    }
    #footerNav ol > a:last-of-type {
        box-shadow: none;
    }
    #footerNav ol > a:last-of-type:hover {
        box-shadow: inset 0 0 5px 1px rgba(46, 46, 46, 0.795);
    }
    #footerNav ol > a:hover {
        border-radius: 15px;
    }
    #footerNav ol > a > li {
        font-weight: 300;
    }
    footer .logo {
        grid-area: 1 / 3 / 3 / 4;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    footer .logo > picture {
        display: none;
    }
    footer .logo .desktopText {
        display: block;
        text-align: center;
        font-size: 18px;
        font-weight: 400;
    }
    footer .logo .desktopText > h4 {
        margin: 20px 0 10px 0;
        box-sizing: border-box;
        font-size: 16px;
    }
    footer .socials {
        grid-area: 3 / 3 / 4 / 4;
        max-width: 400px;
        margin: auto;
        padding: 10px 0;
        gap: 100px;
    }
    footer .credits {
        grid-area: 4 / 1 / 5 / 4;
    }

    /* OLD DESKTOP FOOTER
    footer .logo {
        grid-area: 2 / 3;
        position: relative;
        padding-top: 20px;
    }
    footer .logo:after {
        content: "";
        position: absolute;
        top: 15%;
        right: 0;
        height: 70%;
        margin: auto 0;
        border-right: 3px solid #3f7c6a;
    }
    footer .logo > img {
        display: none;
    }
    footer .desktopText {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 26px;
        padding: 0 15px 40px 0;
        box-sizing: border-box;
        line-height: 140%;
    }
    footer .desktopText i {
        margin-right: 5px;
    }
    #footerNav {
        grid-row: 1 / 3;
        grid-column: 2;
        font-size: 24px;
    }
    footer .socials {
        grid-area: 3 / 3;
        flex-direction: column;
    }
    footer .socials img {
        width: 80px;
    }
    footer .flexItem {
        display: flex;
        align-items: center;
    }
    footer .newsletter {
        grid-row: 1 / 4;
        grid-column: 1;
    }
    .newsletterTitle {
        font-size: 28px;
        margin-bottom: 20px;
    }
    footer #inputMail {
        width: 60%;
        height: 60px;
    }
    footer input[type="submit"] {
        height: 60px;
        width: 60px;
    }
    footer .newsletterCaption {
        font-size: 18px;
    }
    footer .credits {
        grid-row: 4;
        grid-column: 1 / 4;
    }
    */
}