/** COMMONS **/

/*
 * Write common website styles here that you don't expect to see in the admin
 */

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Globals
2.0 Utils
3.0 Forms
3.1 Forms / Filters
4.0 Sliders
5.0 Page commons
6.0 Header
7.0 Footer

--------------------------------------------------------------*/
/*- 1.0 Globals */
[id] {
    scroll-margin-top: calc(var(--custom-theme-site-header-height-small) + 50px);
}

/*- 2.0 Utils */
.reset-nav {
    padding: 0;
    margin: 0;
}

.reset-nav li {
    display: block;
}

.reset-nav a {
    text-decoration: none;
}

.js-clickable-block {
    cursor: pointer;
}


/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
    /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
    outline: 0;
}

/*- 3.0 Forms */


/*- 4.0 Sliders */
.keen-slider--initialized {
    gap: 0!important;
}

.slider__arrows {
    display: flex;
    gap: 11px;
}
.slider__arrow__prev,
.slider__arrow__next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #FFF;
    color: #000;
}
.slider__arrow__prev:disabled,
.slider__arrow__next:disabled {
    background-color: #464646;
    color: #FFF;
    cursor: default;
}

/*- 5.0 Page commons */
.breadcrumbs {
    padding-top: 22px;
    padding-bottom: 22px;
}
.breadcrumbs > span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    font-size: 0.75rem;
}
.breadcrumbs a,
.breadcrumbs span {
    color: inherit;
    font-size: inherit;
    line-height: 1.2;
}
.breadcrumbs a {
    text-decoration: none;
    display: block;
    transition: 0.3s ease-out;
}
.breadcrumbs a:focus-visible,
.breadcrumbs a:hover {
    color: var(--wp--preset--color--red);
}
.has-red-background-color .breadcrumbs a:focus-visible,
.has-red-background-color .breadcrumbs a:hover {
    color: #000;
}
.breadcrumbs svg {
    display: block;
}

.pop-up__overlay {
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    pointer-events: none;

    display: flex;
    justify-content: center;
    align-items: center;

    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);

}
.pop-up__overlay.is-visible {
    opacity: 1;
    pointer-events: initial;
}
.pop-up__close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.875rem;
    line-height: 17px;
    font-weight: 500;
    letter-spacing: -0.03em;
    padding-right: 18px;
    height: 17px;
    width: 73px;
    transition: 0.3s ease-out;
}
.pop-up__close-btn:hover {
    color: var(--wp--preset--color--red);
}

.pop-up__close-btn::before,
.pop-up__close-btn::after {
    content: '';
    position: absolute;
    right: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transition: 0.3s ease-out;
}
.pop-up__close-btn::before {
    top: 0;
    transform: translateX(-2px);
}
.pop-up__close-btn::after {
    bottom: 0;
    transform: translateX(2px);
}

.pop-up__content {
    position: relative;
    width: fit-content;
    background: #FFF;
    border-radius: 10px;
    overflow: auto;
    max-height: 100%;
    filter: drop-shadow(0px 0px 16px rgba(0, 0, 0, 0.16));
}

.pop-up__content iframe {
    display: block;
    width: 992px;
    max-width: 100%;
    max-height: calc(100vh - var(--viewport-height-diff) - 40px );
    border: 0;
    background: #000;
}

/* Fix for select2 */
.pop-up__content .filter,
.pop-up__content .gfield {
    position: relative;
}

.pop-up__content:has(.pop-up-form-iframe) {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.pop-up__content:has(.pop-up-form-iframe.is-ready) {
    opacity: 1;
}

.wp-block-navigation a {
    color: inherit;
}

@media screen and (max-width: 767px) {
    .breadcrumbs {
        padding-top: 19px;
    }
    .breadcrumbs > span {
        font-size: 0.75rem;
    }
}


/*- 6.0 Header */
.site-header {
    position: fixed;
    z-index: var(--custom-theme-z-index-nav);
    top: 0;
    left: 0;
    width: 100%;
    height: var(--custom-theme-site-header-height);
    background-color: #F9F9F9;
    padding: 20px var(--wp--style--root--padding-right) 20px var(--wp--style--root--padding-left);
    transition: 0.3s ease-out;
}
/* Fix glitch on Firefox where a black lines appear with the transition */
.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background-color: inherit;
    opacity: 1;
    transition: 0s linear 0.5s;
}
.site-header.has-scrolled.is-scrolling-down {
    transform: translateY(-101%);
}
.site-header:has(.main-navigation[aria-hidden="false"])::after {
    opacity: 0;
    transition-delay: 0s;
}
.site {
    padding-top: var(--custom-theme-site-header-height);
}

html.is-menu-open,
html.is-menu-open body {
    overflow: hidden;
}
.site-header__inner {
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100% !important;
}
.site-header__logo {
    --custom-theme-flex-span: 2;
}
.site-header__logo {
    --custom-theme-flex-span: 2;
}
.site-header__logo img {
    width: 187px;
    height: 50px;
}

.site-header__inner > :first-child {
    --custom-theme-flex-span: 5;
}
.site-header__quick-links {
    display: flex;
    gap: 29px;
}
.site-header__quick-links .depth-0 {
    position: relative;
}
.site-header__quick-links .depth-0 > a,
.site-header__quick-links .depth-0 > .lvl {
    position: relative;
    color: inherit;
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.03em;
    cursor: pointer;
}
.site-header__quick-links .depth-0 > a::after,
.site-header__quick-links .depth-0 > .lvl::after {
    content: '';
    position: absolute;
    z-index: 1;
    bottom: -2px;
    left: 0;
    width: 100%;
    border-bottom: 1px solid;
    opacity: 0;
    transition: 0.3s ease-out;
}

.site-header__quick-links .depth-0:focus-visible > a::after,
.site-header__quick-links .depth-0:hover > a::after,
.site-header__quick-links .depth-0 > a[aria-current="page"]::after,
.site-header__quick-links .depth-0:focus-visible > .lvl::after,
.site-header__quick-links .depth-0:hover > .lvl::after,
.site-header__quick-links .depth-0 > .lvl[aria-current="page"]::after {
    opacity: 1;
}
.site-header__quick-links .sub-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    width: 163px;
    background-color: #F9F9F9;
    padding: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: 0.3s ease-out;
}
.site-header__quick-links .depth-0:not(:hover):not(:focus-visible) .sub-menu {
    opacity: 0;
}
.site-header__quick-links .depth-1 > a {
    color: inherit;
    font-size: 0.625rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.03em;
    transition: 0.3s ease-out;
}
.site-header__quick-links .depth-1 > a::before {
    content: '> ';
}
.site-header__quick-links .depth-1 > a:focus-visible,
.site-header__quick-links .depth-1 > a:hover {
    color: var(--wp--preset--color--red);
}

.site-header__controls {
    position: relative;
    margin-top: -10px;
    z-index: 10;
    --custom-theme-flex-span: 5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    transition: color 0.3s ease-out 0s;
}
.site-header__controls:has(.site-header__menu-toggle[aria-expanded="true"]) {
    color: #FFF;
}
.site-header__language-switcher {
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    line-height: 1.2;
}
.site-header__language-switcher li + li::before {
    content: '';
    display: inline-block;
    border-left: 1px solid;
    height: 0.8em;
    margin: 0 7px;
}
.site-header__language-switcher a {
    position: relative;
    color: inherit;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    font-weight: 500;
}
.site-header__language-switcher a::after {
    content: '';
    position: absolute;
    z-index: 1;
    bottom: -2px;
    left: 0;
    width: 100%;
    border-bottom: 1px solid;
    opacity: 0;
    transition: 0.3s ease-out;
}
.site-header__language-switcher a[aria-current="true"]::after,
.site-header__language-switcher a:focus-visible::after,
.site-header__language-switcher a:hover::after {
    opacity: 1;
}
.site-header__menu-toggle {
    position: relative;
    font-size: 0.9375rem;
    line-height: 17px;
    font-weight: 500;
    letter-spacing: -0.03em;
    padding-right: 18px;
    height: 17px;
    width: 73px;
}
.site-header__menu-toggle::before,
.site-header__menu-toggle::after {
    content: '';
    position: absolute;
    right: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transition: 0.3s ease-out;
}
.site-header__menu-toggle::before {
    top: 0;
}
.site-header__menu-toggle::after {
    bottom: 0;
}
.site-header__menu-toggle[aria-expanded="true"]::before {
    transform: translateX(-4px);
}
.site-header__menu-toggle[aria-expanded="true"]::after {
    transform: translateX(4px);
}
.site-header__menu-toggle__open,
.site-header__menu-toggle__close {
    transition: 0.3s ease-out;
}
.site-header__menu-toggle__close {
    position: absolute;
    top: 0;
    left: 0;
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle__open,
.site-header__menu-toggle[aria-expanded="false"] .site-header__menu-toggle__close {
    opacity: 0;
}

.main-navigation {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - var(--viewport-height-diff));
    pointer-events: none;
    transition: 0.3s ease-out;
}
/* layer to hide .navigation__menu overflow... */
.main-navigation::before {
    content: '';
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    width: max((100vw - 1440px) / 2 + 489px, 489px);
    height: 178px;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0s linear;
}
.main-navigation__menu {
    display: flex;
    flex-direction: column;
    transition: 0.5s ease-in-out;
    background: #000;
    color: #FFF;
    width: max((100vw - 1440px) / 2 + 489px, 489px);
    height: 100%;
    padding: 178px 0 20px 0;
    transform: translateX(100%);
    margin-left: auto;
    margin-right: 0;
    overflow: auto;
}
.main-navigation[aria-hidden="false"] {
    pointer-events: inherit;
    background: rgba(0, 0, 0, 0.3);
}
.main-navigation[aria-hidden="false"] .main-navigation__menu {
    transform: none;
}
.main-navigation[aria-hidden="false"]::before {
    opacity: 1;
    pointer-events: initial;
    transition-delay: 0.5s;
}

.main-navigation .depth-0:first-child {
    border-top: 1px dotted rgba(255, 255, 255, 0.5);
}
.main-navigation .depth-0 {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    padding: 10px 44px;
}
.main-navigation .depth-0 > a,
.main-navigation .depth-0 > .lvl {
    color: inherit;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 246px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s ease-out;
}
.main-navigation .depth-0 > a:focus-visible,
.main-navigation .depth-0 > .lvl:focus-visible,
.main-navigation .depth-0 > a:hover,
.main-navigation .depth-0 > .lvl:hover {
    color: var(--wp--preset--color--red);

}

.main-navigation .depth-0.menu-item-has-children > a::after,
.main-navigation .depth-0.menu-item-has-children > .lvl::after {
    content: 'v';
}
.main-navigation .depth-0.menu-item-has-children > a[aria-expanded="true"]::after,
.main-navigation .depth-0.menu-item-has-children > .lvl[aria-expanded="true"]::after {
    transform: scaleY(-1);
}

.main-navigation .sub-menu[aria-hidden="false"] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
    padding-top: 10px;
}

.main-navigation .depth-1 > a {
    color: inherit;
    font-size: 0.9375rem;
    line-height: 1.2;
    transition: 0.3s ease-out;
}
.main-navigation .depth-1 > a:focus-visible,
.main-navigation .depth-1 > a:hover {
    color: var(--wp--preset--color--red);
}
.main-navigation .depth-1 > a::before {
    content: '> ';
}

.main-navigation__menu__animation {
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
    display: block;
    flex: 1 1 auto;
    object-fit: contain;
}

.site-header__back-button {
    display: none;
}

@media screen and (max-width: 1439px) {
    .site-header__quick-links .depth-0 > a,
    .site-header__quick-links .depth-0 > .lvl {
        font-size: 0.8125rem;
    }
}
@media screen and (max-width: 1199px) {

    .site-header__inner > :first-child {
        display: none;
    }
    .site-header__logo {
        position: absolute;
        z-index: 11;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        transition: 0s opacity 0.2s;
    }
    .site-header__inner:has(.site-header__menu-toggle[aria-expanded="true"]) .site-header__logo {
        z-index: 9; /* below .site-header__controls */
        opacity: 0;
        transition-delay: 0.3s;
    }
    .site-header__controls {
        --custom-theme-flex-span: 12;
        height: 50px;
        margin-top: 0;
        align-items: flex-end;
        justify-content: space-between;
        transition: 0.3s ease-out 0s;
    }
    .site-header__contact-btn {
        position: absolute!important;
        left: 14px;
        top: 22px;
        opacity: 0;
        pointer-events: none;
    }
    .site-header__controls:has(.site-header__menu-toggle[aria-expanded="true"]) {
        padding-left: 14px;
    }
    .site-header__controls:has(.site-header__menu-toggle[aria-expanded="true"]) .site-header__contact-btn {
        opacity: 1;
        pointer-events: initial;
        transition-delay: 0.4s;
    }
    .site-header__controls:has(.site-header__menu-toggle[aria-expanded="true"]) .site-header__language-switcher {
        transform: translateY(60px);
        animation: moveLanguageSwitcher 0.7s forwards;
    }
    .main-navigation::before,
    .main-navigation__menu {
        width: 100%;
    }

    .main-navigation .depth-0.menu-item-has-children > a::after,
    .main-navigation .depth-0.menu-item-has-children > .lvl::after,
    .main-navigation .depth-0.menu-item-has-children > a[aria-expanded="true"]::after,
    .main-navigation .depth-0.menu-item-has-children > .lvl[aria-expanded="true"]::after {
        transform: rotate(-90deg);
    }
    .main-navigation .sub-menu {
        display: block!important;
        position: absolute;
        z-index: 10;
        top: 82px;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        padding: 37px 0 40px!important;

        transition: 0.5s ease-in-out;
    }
    .main-navigation .sub-menu[aria-hidden="true"] {
        display: block;
        transform: translateX(100%);
    }

    .main-navigation .depth-1 {
        border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
        padding: 10px 44px;
    }
    /* move back button out of the list visually */
    .main-navigation .depth-1:first-child {
        padding-bottom: 25px;
    }
    .main-navigation .depth-1 > a,
    .main-navigation .depth-1 > .site-header__back-button {
        color: inherit;
        font-size: 1.25rem;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: -0.03em;
        cursor: pointer;
        width: 100%;
        display: block;
        text-align: left;
    }
    .main-navigation .depth-1 > a::before {
        content: '> '
    }
    .main-navigation .depth-1 > .site-header__back-button::before {
        content: '< '
    }

}

@media screen and (max-width: 767px) {
    .site-header__logo img {
        width: 130px;
        height: auto;
    }
    .site-header__controls {
        height: 38px;
    }
    .site-header__menu-toggle {
        font-size: 0.875rem;
        text-align: right;
        width: 69px;
        padding-right: 14px;
        margin-bottom: 2px;
    }
    .site-header__controls:has(.site-header__menu-toggle[aria-expanded="false"]) .site-header__language-switcher {
        flex-direction: column;
    }

    .site-header__language-switcher {
        height: 18px;
    }
    .site-header__language-switcher li {
        transition: opacity 0.3s;
    }
    .site-header__controls:has(.site-header__menu-toggle[aria-expanded="false"]) .site-header__language-switcher li.current-lang {
        height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }
    .site-header__controls .site-header__language-switcher li + li::before {
        transition: 0.1s 0.2s;
    }
    .site-header__controls:has(.site-header__menu-toggle[aria-expanded="false"]) .site-header__language-switcher li + li::before {
        opacity: 0;
        margin: 0;
        transition-delay: 0s;
    }
    .site-header__contact-btn {
        top: 8px;
    }
}

@media screen and (max-width: 374px) {
    .main-navigation .depth-0,
    .main-navigation .depth-1 {
        padding-left: 20px;
        padding-right: 20px;
    }
}


@keyframes moveLanguageSwitcher {
    0% {
        transform: none;
        opacity: 1;
    }
    10% {
        opacity: 0;
        display: flex;
    }
    90% {
        transform: none;
        opacity: 0;
    }
    100% {
        transform: translateY(60px);
        opacity: 1;
    }
}

/*- 7.0 Footer */
.site-footer {
    padding-bottom: 22px;
}
.site-footer__nav {
    border-top: 1px dotted rgba(255, 255, 255, 0.5);
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    padding-top: 14px;
    padding-bottom: 14px;
    margin-bottom: 26px;
}
.site-footer__nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-links-menu {
    display: flex;
    gap: 10px;
}
.social-links-menu a {
    display: block;
    width: 38px;
    height: 38px;
    text-indent: -300%;
    overflow: hidden;
    white-space: nowrap;
    background: #2B2B2B center center / 16px auto no-repeat;
    border-radius: 50%;
    transition: 0.3s ease-out;
}
.social-links-menu a:focus-visible,
.social-links-menu a:hover {
    background-color: #4A4A4A;

}
.social-links-menu .icon-linkedin a {
    background-image: url("../images/linkedIn.webp");
}
.social-links-menu .icon-instagram a {
    background-image: url("../images/instagram.webp");
}


.footer-links-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 29px;
}

.footer-links-menu a {
    color: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
    transition: 0.3s ease-out;
}
.footer-links-menu a:focus-visible,
.footer-links-menu a:hover {
    color: var(--wp--preset--color--red)
}

.site-footer__copyright {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.site-footer__logo {
    display: block;
    width: var(--wp--style--global--content-size);
    max-width: 100%;
    margin: 0 auto;
    height: auto;
}

@media screen and (max-width: 1199px) {
    .site-footer__nav {
        border-top: 0;
        padding-bottom: 20px;
    }
    .site-footer__nav__inner {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .site-footer__links {
        border-top: 1px dotted rgba(255, 255, 255, 0.5);
        padding-top: 20px;
        width: 100%;
    }
    .footer-links-menu {
        justify-content: flex-start;
        gap: 13px 29px;
    }
    .site-footer__copyright {
        margin-top: 8px;
    }

}
@media screen and (max-width: 767px) {
    .footer-links-menu {
        gap: 13px;
    }
}
