/*!
Theme Name: ark@DEV
Theme URI: http://www.arkdev.ba/
Author: ark@DEV
Author URI: https://www.arkdev.ba
Description: ark@DEV
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mikus
Tags: Mukis Common CSS
*/

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 8px;
}

html {
    scroll-behavior: smooth;
}

.anchor-item {
    scroll-margin-top: 250px;
}

.mobile-only {
    display: none;
}


@media (max-width: 1024px) {

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }
}


/*Page loader*/

#page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    background: #02091c6e;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    width: 100vw;
    height: 100vh;
}

#page-loader.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    touch-action: none;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid transparent;
    border-radius: 50%;
    border-right-color: var(--primary-orange);
    animation: spin 1s linear infinite;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1 / 1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.loader::after {
    margin: 8px;
    animation-duration: 3s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*Page loader END*/


.sticky-content {
    position: -webkit-sticky;
    position: sticky;
    top: 175px;
    height: fit-content;
}

a,
.menu-toggle,
.primary-menu-icon {
    transition: all 0.3 !important;
}

/*Animations*/

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: transform, opacity;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-down {
    opacity: 0;
    transform: translateY(-50px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: transform, opacity;
}

.reveal-down.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all .8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all .8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity .6s ease,
        transform .6s ease;
}

.stagger.active>*:nth-child(1) {
    transition-delay: .1s;
}

.stagger.active>*:nth-child(2) {
    transition-delay: .2s;
}

.stagger.active>*:nth-child(3) {
    transition-delay: .3s;
}

.stagger.active>* {
    opacity: 1;
    transform: translateY(0);
}

/* Hover card */
.hover-lift {
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/*Grid layout*/

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 0;
    margin: 0 0;
}

.grid-item {
    direction: ltr;
}

.grid-reverse {
    grid-auto-flow: dense;
    direction: rtl;
}

.grid-1-2 {
    grid-template-columns: repeat(auto-fill, minmax(min(550px, 50%), 1fr));
}

.grid-1-3 {
    grid-template-columns: repeat(auto-fill, minmax(min(360px, 33%), 1fr));
}

.grid-1-4 {
    /* grid-template-columns: repeat(auto-fill, minmax(min(300px, 25%), 1fr)); */
    grid-template-columns: repeat(4, 1fr);
}

.grid-1-5 {
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 20%), 1fr));
}


/*Flex*/

.flex {
    display: flex;
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-no-wrap {
    flex-wrap: nowrap;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-reverse {
    flex-direction: row-reverse;
}

.column-reverse {
    flex-direction: column-reverse;
}

.flex-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.flex-expand {
    flex-grow: 1;
}

.flex-1 {
    flex: 1;
}

.flex-1-2 {
    width: 50%;
}

.flex-1-3 {
    width: 33.33333%;
}

.flex-1-4 {
    width: 25%;
}

.flex-1-5 {
    width: 20%;
}

.center-content {
    margin-left: auto;
    margin-right: auto;
}

/*Gaps*/

.gap-1 {
    gap: 1px;
}

.gap-16 {
    gap: 16px;
}

.gap-32 {
    gap: 32px;
}

.items-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.items-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/*Text columns*/

.text-column-2 {
    column-count: 2;
}

.column-gap-16 {
    column-gap: 16px;
}

/* Tablet */
@media (max-width: 1024px) {

    .items-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .items-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .flex {
        flex-direction: column;
    }

    .flex-1-2,
    .flex-1-3,
    .flex-1-4,
    .flex-1-5 {
        width: 100%;
    }

    .grid-1-2,
    .grid-1-3,
    .grid-1-4,
    .grid-1-5 {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

/*Page Search*/

.page-search {
    .search-query-message {
        color: var(--primary-dark-blue);
        font-size: 32px;
        font-weight: 600;
        width: 100%;
        text-align: center;
        span {
            color: var(--primary-orange);
            font-weight: 700;
        }
    }
}

section.not-found {
    .page-content{
        min-height: 30vh;
    }
}

/*Page 404*/

.page-not-found {
    .page-content {
        min-height: 50vh;
        padding-bottom: 64px;
        gap: 24px;
        justify-content: center;
    }

    h2.not-found-error {
        font-size: 20vh;
        font-weight: 700;
        color: var(--primary-orange);
        text-align: center;
        width: 100%;
        margin: 24px auto;
    }

    p.not-found-message {
        font-size: 44px;
        font-weight: 600;
        width: 100%;
        text-align: center;
        color: var(--primary-dark-blue);
        margin: 12px auto;

        span.not-found {
            color: var(--primary-orange);
        }
    }

    .button-primary {
        margin: 0 auto;
    }
}