/*
*    Theme Name: Niko-theme
*    Version:    1.0.25112025
*    Created on: 2025-11-25
*    Author:     Nikograf - Patryk Siuta
*    Author URI: https://www.nikoraf.pl
*    E-mail:     kontakt@nikograf.pl
*/
@import "./css/wp-core.css";
@import url("https://use.typekit.net/jkv6wvg.css");

:root {
    --red:          #742020;
    --dark-grey:    #26282b;
    --grey:         #898A8C;
    --light-grey:   #ececec;
    --orange:       #ff7a01;

    --container-size:  1280;
}

html,
body {
    padding: 0;
    margin: 0;
    background-color: var(--light-grey);
    overflow-x: hidden;
}

input {
    &[type="text"],
    &[type="number"],
    &[type="password"],
    &[type="email"] {
        border: 1px solid var(--grey);
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        line-height: 1.5;
        padding: 8px;
        box-sizing: border-box;
        color: var(--grey);
        font-size: 14px;
        width: 100%;
    }
    &[type="submit"] {
        border: 1px solid var(--red);
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        line-height: 1.5;
        padding: 8px;
        box-sizing: border-box;
        color: #FFFFFF;
        background-color: var(--red);
        font-size: 14px;
        transition: all .3s;
        cursor: pointer;
        min-width: 200px;
        display: block;
        margin-left: auto;
        &:hover {
            color: var(--red);
            background-color: transparent;
        }
    }
}
textarea {
    width: 100%;
    border: 1px solid var(--grey);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    line-height: 1.5;
    padding: 8px;
    box-sizing: border-box;
    color: var(--grey);
    font-family: inherit;
    font-size: inherit;
}


h1, h2, h3, h4, a, p, span, li, ol {
    font-family: "futura-pt", sans-serif;
    font-weight: 500;
    font-style: normal;
}
a {
    text-decoration: none;
}
ul {
    &.menu {
        padding: 0;
        list-style-type: none;
        li {
            a {
                color: #FFF;
                text-transform: uppercase;
                font-size: 14px;
            }
            &.menu-item-has-children {
                position: relative;
                &:after {
                    display: block;
                    content: "";
                    border-bottom: 2px solid var(--light-grey);
                    border-right: 2px solid var(--light-grey);
                    -webkit-border-radius: 2px;
                    -moz-border-radius: 2px;
                    border-radius: 2px;
                    transform: rotate(45deg);
                    position: absolute;
                    right: 8px;
                    width: 6px;
                    height: 6px;
                    transition: transform .2s;
                }
            }
        }
    }
    &.lang-switcher {
        cursor: pointer;
        position: absolute;
        top: calc(50% - 21px);
        right: 0;
        padding: 4px 24px 4px 4px;
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        transition: all .3s;
        margin: 0;
        display: flex;
        flex-direction: column;
        li {
            list-style-type: none;
            padding: 8px;
            -webkit-border-radius: 2px;
            -moz-border-radius: 2px;
            border-radius: 2px;
            transition: all .3s;
            &:not(.current-lang) {
                display: none;
                order: 1;
                &:hover {
                    background-color: var(--grey);
                }
            }
            &.current-lang {
                order: 0;
                pointer-events: none;
            }
        }
        &:after {
            content: "";
            display: block;
            border-bottom: 2px solid var(--light-grey);
            border-right: 2px solid var(--light-grey);
            transform: rotate(45deg);
            position: absolute;
            top: 15px;
            right: 6px;
            width: 5px;
            height: 5px;
            transition: all .3s;
        }
        &:hover {
            background-color: var(--light-grey);
            &:after {
                transform: rotate(-135deg);
                border-bottom: 2px solid var(--dark-grey);
                border-right: 2px solid var(--dark-grey);
                top: 19px;
            }
            li {
                display: block;
            }
        }
    }
}
p {
    a {
        color: var(--red);
    }
}

div {
    box-sizing: border-box;
}
header {
    background-color: var(--dark-grey);
    padding-left: 16px;
    padding-right: 16px;
    .menu-lang-box {
        width: fit-content;
    }
    .container {
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding-right: 85px;
    }
}
.before-footer {
    padding-top: 50px;
    padding-bottom: 50px;
    h2 {
        font-size: 18px;
        color: var(--dark-grey);
        font-weight: 700;
    }
}
footer {
    font-size: 12px;
    background-color: var(--dark-grey);
    color: var(--light-grey);
    .container {
        display: flex;
        height: 100%;
    }
    a {
        color: var(--light-grey);
        font-weight: 600;
        transition: all .3s;
        &:hover {
            color: var(--orange);
        }
    }
}
.container {
    max-width: calc(var(--container-size) * 1px);
    margin-left: auto;
    margin-right: auto;
}
.container-80 {
    max-width: calc((var(--container-size)* 0.8) * 1px);
    margin-left: auto;
    margin-right: auto;
}

section {
    & > h1 {
        display: block;
        background-size: cover;
        padding: 24px;
        color: var(--red);
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
    }
    &:not(.front-page) {
        p {
            font-weight: 400;
        }
    }
}

.hero {
    h1 {
        width: fit-content;
    }
    figure {
        &.wp-block-image {
            -webkit-box-shadow: 0px 8px 80px 0px rgba(0, 0, 0, 0.5);
            -moz-box-shadow: 0px 8px 80px 0px rgba(0, 0, 0, 0.5);
            box-shadow: 0px 8px 80px 0px rgba(0, 0, 0, 0.5);
            img {
                aspect-ratio: 9 / 6;
                -webkit-border-bottom-right-radius: 4px;
                -webkit-border-bottom-left-radius: 4px;
                -moz-border-radius-bottomright: 4px;
                -moz-border-radius-bottomleft: 4px;
                border-bottom-right-radius: 4px;
                border-bottom-left-radius: 4px;
            }
        }
    }
    img {
        object-fit: cover;
    }
}
.offer-box {
    figure {
        &.wp-block-image {
            img {
                object-fit: cover;
            }
        }
    }

}

.alignwide {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left:  calc(50vw - 50%);
    padding-right:  calc(50vw - 50%);
    max-width: 100vw;
    box-sizing: border-box;
}

.alignfull {
    margin: 0 calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.grecaptcha-badge {
   visibility: collapse !important;
}

@media screen and (min-width: 992px) {
    ul {
        &.menu {
            display: flex;
            flex-direction: row;
            margin: 0;
            width: fit-content;
            & > li {
                &:last-of-type {
                    background-color: var(--light-grey);
                    -webkit-border-radius: 4px;
                    -moz-border-radius: 4px;
                    border-radius: 4px;
                    a {
                        color: var(--red);
                        font-weight: 600;
                    }
                }
            }
            li {
                margin: 0 5px;
                a {
                    display: block;
                    padding: 8px;
                }
                &.menu-item-has-children {
                    &:after {
                        top: 30%;
                    }
                    a {
                        padding-right: 24px;
                    }
                    &:hover {
                        &:after {
                            transform: rotate(225deg);
                            top: 42%;
                        }
                        & > ul {
                            z-index: 10;
                            opacity: 1;
                            visibility: visible;
                            top: 100%;
                        }
                    }
                    ul {
                        position: absolute;
                        z-index: -1;
                        opacity: 0;
                        visibility: hidden;
                        list-style-type: none;
                        padding: 35px 25px;
                        top: calc(100% + 15px);
                        left: 50%;
                        transform: translateX( -50% );
                        transition: all .2s;
                        background-color: #FFF;
                        -webkit-border-radius: 4px;
                        -moz-border-radius: 4px;
                        border-radius: 4px;
                    }
                }
            }
        }
        &.sub-menu {
            li {
                position: relative;
                a {
                    color: var(--dark-grey);
                    white-space: nowrap;
                    text-align: center;
                    padding-right: 5px !important;
                    padding-left: 5px;
                    padding-top: 16px;
                    padding-bottom: 16px;
                    transition: color .2s;
                    &:hover {
                        color: var(--red);
                    }
                }
                &:not(:last-of-type):before {
                    height: 1px;
                    width: 30%;
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    background-color: var(--red);
                    content: "";
                    display: block;
                }
            }
        }
    }
    header {
        height: 100px;
        svg {
            display: none;
        }
    }
    section {
        padding-left: 16px;
        padding-right: 16px;
    }
    footer {
        height: 50px;
        padding: 10px 16px;
        .container {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
    }
    .col-half {
        width: 49%;
    }
    .hero {
        padding-top: 0;
        figure {
            &.wp-block-image {
                margin-bottom: -30px;
            }
        }
    }
    .offer-box {
        width: 85%;
        margin: auto;
        &.right,
        &.left {
            .wp-block-column {
                &:first-of-type {
                    margin-bottom: 30px;
                    position: relative;
                }
                &:last-of-type {
                    margin-top: 30px;
                }
            }
            figure {
                &.wp-block-image {
                    img {
                        aspect-ratio: 64 / 40;
                    }
                }
            }
        }
        &.right {
            .wp-block-column {
                &:first-of-type {
                    z-index: 20;
                }
                &:last-of-type {
                    z-index: 10;
                    position: relative;
                    &:after {
                        display: block;
                        content: "";
                        height: 100%;
                        position: absolute;
                        top: 0;
                        right: 99%;
                        width: 50px;
                        background-color: #FFF;
                        -webkit-border-radius: 4px;
                        -moz-border-radius: 4px;
                        border-radius: 4px;
                    }
                }
            }
        }
        &.left {
            .wp-block-column {
                &:first-of-type {
                    z-index: 10;
                    &:after {
                        display: block;
                        content: "";
                        height: 100%;
                        position: absolute;
                        top: 0;
                        left: 99%;
                        width: 50px;
                        background-color: #FFF;
                        -webkit-border-radius: 4px;
                        -moz-border-radius: 4px;
                        border-radius: 4px;
                    }
                }
                &:last-of-type {
                    z-index: 20;
                }
            }
        }
    }
    .before-footer {
        .container-80 {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .widgets-area {
            display: flex;
            justify-content: space-between;
            align-items: center;
            line-height: 1.5;
            .widget-area {
                padding-left: 30px;
            }
        }
    }
}
@media screen and (max-width: 991px) {
    header {
        position: fixed;
        top:0;
        height: 60px;
        width: 100vw;
        box-sizing: border-box;
        z-index: 100;
        .custom-logo-link img {
            max-width: 180px;
            height: auto;
        }
        ul {
            &.menu {
                position: absolute;
                top: 30px;
                right: 0;
                left: 0;
                height: auto;
                display: none;
                background-color: var(--dark-grey);
                padding: 0 32px 32px;
                -webkit-box-shadow: 0px 24px 24px 0px rgba(0, 0, 0, .4);
                -moz-box-shadow: 0px 24px 24px 0px rgba(0, 0, 0, .4);
                box-shadow: 0px 24px 24px 0px rgba(0, 0, 0, .4);
                li {
                    text-align: right;
                    position: relative;
                    &:not(:last-of-type):before {
                        content: "";
                        display: block;
                        width: 40px;
                        height: 1px;
                        background-color: var(--light-grey);
                        position: absolute;
                        bottom: 0;
                        right: 0;
                    }
                    a {
                        line-height: 64px;
                        font-size: 18px;
                    }
                    &.menu-item-has-children {
                        padding-right: 26px;
                        &:after {
                            top: 26px;
                        }
                    }
                }
            }
            &.sub-menu {
                list-style-type: none;
                padding-left: 0;
                padding-right: 15px;
                padding-bottom: 30px;
                li {
                    line-height: 54px;
                    a {
                        font-size: 16px;
                    }
                }
            }
        }
        .menu-lang-box {
            svg {
                fill: var(--light-grey);
                width: 20px;
                height: auto;
                display: none;
                &.active {
                    display: block;
                }
            }
        }
        & + section {
            min-height: calc(100dvh - 159px);
            padding: 60px 16px 0;

        }
    }
    .before-footer {
        padding-left:16px;
        padding-right: 16px;
    }
    footer {
        font-size: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
        .copyrights {
            flex-direction: column;
            span {
                display: block;
                padding:  5px 0;
                text-align: center;
            }
        }
    }

    .hero {
        padding-top: 30px;
        figure {
            img {
                margin-bottom: -50px;
            }
        }
        .wp-block-button {
            width: 100%;
        }
        a.wp-block-button__link {
            width: 80%;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
    }
    .offer-box {
        &.right {
            flex-direction: column-reverse;
        }
    }
}