/*
Theme Name: Protektor
Author: sense&image
Author URI: https://sense-and-image.com/
Description: Custom block theme tailored to the needs of the Protektor multsite universe.
Tags: sections, blocks
Requires at least: 6.2
Tested up to: 6.3.1
Requires PHP: 8.1
Version: 1.1.2
Text Domain: protektor
*/

/* Deaults */
@import url(/wp-content/themes/protektor/css/_buttons.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/_header.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/_forms.css?ver=1.0.2);
@import url(/wp-content/themes/protektor/css/_images.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/_modifiers.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/_icons.css?ver=1.0.1);

/* Components */
@import url(/wp-content/themes/protektor/css/card.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/shadow.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/icon.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/lightbox.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/category-icon.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/accordion.css?ver=1.0.1);

/* Patterns */
@import url(/wp-content/themes/protektor/css/patterns/pattern-footer.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-company.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-benefits.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-navigation.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-header-generic.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-new-products.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-product-category-list.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-information-contact.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-image-carrousel.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-columns-text-download-list.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-two-columns-text.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-columns-text-red-eyecatcher.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-block-content-text-image.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-block-red-content-text-image.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-four-columns-image-text.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-search-product-block.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-header-home.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-logo-presenter.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-news-carrousel.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-product-navigator.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-project-carrousel.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-promotion.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-news-list.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-product-list.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-video-carousel.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-download-big.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-video-list.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-image-gallery.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/patterns/pattern-image-gallery-slider.css?ver=1.0.1);

/* Pages */
@import url(/wp-content/themes/protektor/css/pages/post-type-archive.css?ver=1.0.1);
@import url(/wp-content/themes/protektor/css/pages/frontpage.css?ver=1.0.1);

body {
    --wp--preset--font-size--title-h-1: 48px;
    --wp--preset--font-size--headline-h-2: 36px;
    --wp--preset--font-size--headline-h-3: 32px;
    --wp--preset--font-size--headline-h-4: 24px;
    --wp--preset--font-size--headline-h-5: 20px;
    --wp--preset--font-size--pre-headline-h-6: 18px;
    --wp--preset--font-size--base: 16px;
    --wp--preset--font-size--small: 14px;
}

@media only screen and (max-width: 1400px) {
    body {
        --wp--style--root--padding-right: 30px;
        --wp--style--root--padding-left: 30px;
    }
}

@media only screen and (max-width: 1280px) {
    body {
        --wp--preset--font-size--title-h-1: 40px;
        --wp--preset--font-size--headline-h-2: 32px;
        --wp--preset--font-size--headline-h-3: 24px;
        --wp--preset--font-size--headline-h-4: 22px;
        --wp--preset--font-size--headline-h-5: 19px;
        --wp--preset--font-size--pre-headline-h-6: 17px;
        --wp--preset--font-size--base: 15px;
        --wp--preset--font-size--small: 13px;
    }
}

@media only screen and (max-width: 769px) {
    body {
        --wp--preset--font-size--title-h-1: 32px;
        --wp--preset--font-size--headline-h-2: 28px;
        --wp--preset--font-size--headline-h-3: 24px;
        --wp--preset--font-size--headline-h-4: 20px;
        --wp--preset--font-size--headline-h-5: 18px;
        --wp--preset--font-size--pre-headline-h-6: 16px;
        --wp--preset--font-size--base: 14px;
        --wp--preset--font-size--small: 12px;
    }
}

/* Default margin after pattern and block inserted in the editor */
.entry-content > section,
.entry-content > div {
    margin-bottom: var(--wp--custom--spacing--4-rem);
}

/* Add a scroll-padding to all elements that are an anchor to the heitght of the header */
*[id] {
    scroll-margin-top: 85px;
}

/* Defaults
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img.edit-site-site-icon__image {
    filter: invert(1);
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-element-button {
    transition: all 0.15s ease-in-out;
}

a,
a:focus,
a:hover,
a:not(.wp-element-button) {
    text-decoration-thickness: 1px;
}

b,
strong,
th {
    font-weight: 700;
}

mark {
    background: linear-gradient(90deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary) 100%);
    background-position: 0 85%;
    background-repeat: repeat-x;
    background-size: 100% 15%;
}

/* Code
--------------------------------------------- */

*:not(.wp-block-code) > code {
    background-color: var(--wp--preset--color--neutral);
    font-size: var(--wp--preset--font-size--small);
    padding: 5px 8px;
}

/* Group
--------------------------------------------- */

.wp-block-group.is-style-shadow-light {
    box-shadow: var(--wp--preset--shadow--light);
}

.wp-block-group.is-style-shadow-solid {
    box-shadow: var(--wp--preset--shadow--shadow);
}

/* Image
--------------------------------------------- */

.wp-block-image.is-style-shadow-light img {
    box-shadow: var(--wp--preset--shadow--light);
}

.wp-block-image.is-style-shadow-solid img {
    box-shadow: var(--wp--preset--shadow--solid);
}

/* List
--------------------------------------------- */

.is-style-no-disc {
    list-style-type: none;
    padding-left: 0;
}

/* Navigation
--------------------------------------------- */

.wp-block-navigation__responsive-container.is-menu-open {
    padding-bottom: 30px;
    padding-top: 30px;
}

.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
    border: 1px solid currentColor;
    padding: 2px;
}

.has-background .wp-block-navigation__responsive-container-open:focus,
.has-background .wp-block-navigation__responsive-container-open:hover {
    color: var(--wp--preset--color--base);
}

/* Pagination
--------------------------------------------- */
.wp-block-query-pagination {
    gap: 0px !important;
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.1);
    margin: 40px 0px;
}
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
    color: transparent;
    user-select: none;
    position: relative;
}
.wp-block-query-pagination-next:after,
.wp-block-query-pagination-previous:after {
    content: "";
    position: absolute;
    background-size: 100%;
    display: block;
    width: 24px;
    height: 24px;
    top: 0;
}
.wp-block-query-pagination-next:after {
    background-image: url(/wp-content/themes/protektor/assets/icons/arrow_forward--red.svg);
    left: 0;
}
.wp-block-query-pagination-previous:after {
    background-image: url(/wp-content/themes/protektor/assets/icons/arrow_back--red.svg);
    right: 0;
}

.wp-block-query-pagination-numbers span:first-child {
    position: relative;
    padding-left: 100px;
}
.wp-block-query-pagination-numbers span:first-child:before {
    content: "";
    background-image: url(/wp-content/themes/protektor/assets/icons/arrow_back.svg);
    background-size: 100%;
    position: absolute;
    top: -4px;
    right: 34px;
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.wp-block-query-pagination-numbers span:last-child {
    position: relative;
    padding-right: 100px;
}
.wp-block-query-pagination-numbers span:last-child:before {
    content: "";
    background-image: url(/wp-content/themes/protektor/assets/icons/arrow_forward.svg);
    background-size: 100%;
    position: absolute;
    top: -4px;
    left: 34px;
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.wp-block-query-pagination-numbers {
    padding: 15px 0px 15px 15px;
    margin-bottom: 0px !important;
}

.wp-block-query-pagination-numbers span,
.wp-block-query-pagination-numbers a {
    margin-right: 15px;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration: none !important;
}

/* Navigation Submenu
--------------------------------------------- */

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
    background-color: var(--wp--preset--color--contrast);
    border: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
    padding: 10px;
}

.wp-block-navigation :where(.wp-block-navigation__submenu-container) a {
    padding: 2px 10px;
}

/* Quote
--------------------------------------------- */

.wp-block-quote.is-style-shadow-light {
    box-shadow: var(--wp--preset--shadow--light);
}

.wp-block-quote.is-style-shadow-solid {
    box-shadow: var(--wp--preset--shadow--solid);
}

/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (max-width: 600px) {
    /* Utility
	--------------------------------------------- */

    .is-style-hidden-mobile {
        display: none !important;
    }
}

@media only screen and (max-width: 782px) {
    /* Columns
	--------------------------------------------- */

    .is-style-columns-reverse {
        flex-direction: column-reverse;
    }
}

@media only screen and (min-width: 600px) {
    /* Navigation Link
	--------------------------------------------- */

    .wp-block-navigation-item.is-style-outline a {
        border: 1px solid currentColor;
        padding: 8px 15px;
    }
}

/*Style for tables*/

.wp-block-table.is-style-regular td,
.wp-block-table.is-style-regular th {
    border: 0px;
    border-bottom: 1px solid var(--color-grey-80, #ccc) !important;
    padding: var(--wp--preset--spacing--1-5-rem) var(--wp--preset--spacing--1-rem);
}

.wp-block-table.is-style-regular td:first-child {
    font-weight: 600;
}

/*Style for product cards*/

.product-card {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 0px 0px 4px 4px;
    position: relative;
}

p.limited-3-lines,
.limited-3-lines p.wp-block-post-excerpt__excerpt {
    height: 73px;
    max-height: 73px;
    overflow: hidden;
}

/* Style for Sliders */

.slider-content-block {
    margin: 4rem 0rem 4rem 0rem;
}

/*Global pseudo elements*/

#slider-desc ul li::marker {
    color: var(--wp--preset--color--red-50) !important;
    /* Change the color */
}

/*Style for lists */

ul li::marker,
ol li::marker {
    color: var(--wp--preset--color--red-50) !important;
    /* Change the color */
}

ul.has-white-color li::marker,
ol.has-white-color li::marker {
    color: white !important;
    /* Change the color */
}

/* Style for separator */

.wp-block-separator {
    width: 100% !important;
    color: #ccc;
    margin: 5rem 0rem;
}

/* Style for back-end */

.is-root-container > .block-editor-block-list__block {
    margin: 4rem 0rem 4rem 0rem;
}

/* Style for red lines*/
.red-line-subtitle img {
    margin-bottom: 0.3rem;
    margin-right: 7px;
}
.red-line-subtitle:not(:has(img)):before {
    content: "";
    display: inline-block;
    margin-right: 12px;
    width: 64px;
    height: 2px;
    background-color: var(--wp--preset--color--red-50);
    vertical-align: middle;
}
.red-line-subtitle {
    text-transform: uppercase;
}

/* TODO: Move this to the right place */
.wp-block-ctlt-query-search-filter {
    margin-bottom: 2rem;
}

.wp-block-ctlt-query-search-filter .wp-query-filter__search-wrapper {
    display: flex;
    max-width: 312px; /* width of one individual card in a grid */
}

/* Copied from .commercial-filter-form .wp-block-search */
.wp-block-ctlt-query-search-filter .wp-query-filter__search-wrapper input {
    font-size: 1rem;
    border: solid 1px #cccccc;
    color: #808080;
    font-weight: 400;
    border-radius: 4px;
    padding: 10px 20px;
    width: 100%;
    height: 100%;
}

.wp-block-ctlt-query-search-filter .wp-query-filter__search-wrapper .spinner {
    top: 15px;
}

/* Query Loop Filter
--------------------------------------------- */
.query-filter-wrapper {
}
.wp-block-query-filter {
    max-width: 312px;
    width: 100%;
}
.wp-block-query-filter select {
    width: 100%;
    font-size: 1rem;
    padding-left: 10px;
    border: solid 1px #cccccc;
    color: #808080;
    border-radius: 4px;
    background-image: url(/wp-content/themes/protektor/assets/images/select-arrow.svg);
    background-repeat: no-repeat;
    background-position: 95% center;
    background-size: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Commercial Grid
--------------------------------------------- */
.container-main {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
}
.commercial-box-wrap {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 2rem;
    padding-top: 2rem;
}
.commercial-box-wrap .commercial-box {
    width: 100%;
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.commercial-box-wrap .commercial-box .commercial-box-image {
    margin-bottom: 0;
    display: flex;
}
.commercial-box-wrap .commercial-box .commercial-box-image img {
    object-fit: cover;
    height: 312px;
    width: 312px;
}

.commercial-box-wrap .commercial-box .commercial-box-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.commercial-box-wrap .commercial-box .commercial-box-cat {
    margin-bottom: 2rem;
}
.commercial-box-wrap .commercial-box .commercial-box-cat p {
    margin: 0;
}
.commercial-box-wrap .commercial-box .commercial-box-name {
    margin-bottom: 12px;
}
.commercial-box-wrap .commercial-box-dece {
    font-size: 1rem;
    line-height: 18.75px;
    font-weight: 400;
    margin-bottom: 57px;
}
.commercial-box-wrap .commercial-box-contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.commercial-box-wrap .commercial-box-contact a {
    font-size: 14px;
    line-height: 16.41px;
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}
.commercial-box-wrap .commercial-box-contact a img {
    width: 15px;
}
.commercial-box-wrap .commercial-box .has-red-color {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 16.41px;
    color: var(--wp--preset--color--vivid-red);
    margin-top: 0;
    margin-bottom: 16px;
}

.commercial-box-wrap .commercial-box .commercial-box-name h5 {
    margin: 0;
    font-weight: 500;
    height: calc(1.2rem * 1);
    overflow: hidden;
    width: calc(100% - 24px);
    padding-right: 10px;
    line-height: 1.2rem;
    font-size: 1.25rem;
    color: #000000;
}
.commercial-box-wrap .commercial-box .commercial-box-dece p {
    margin-bottom: 0;
    height: calc(1.2rem * 2);
    overflow: hidden;
    line-height: 1.2rem;
}

.commercial-banner-wrap {
    position: relative;
}

.commercial-block-wrap .pagination {
    background-color: #fff;
    box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}
.commercial-block-wrap .protektor-pagination {
    display: flex;
    height: 40px;
    align-items: center;
    gap: 4px;
}
.commercial-block-wrap .protektor-pagination .page-numbers {
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    padding: 10px 15px;
    color: var(--wp--preset--color--black);
}
.commercial-block-wrap .protektor-pagination svg {
    width: 24px;
    display: block;
    height: auto;
}
.commercial-block-wrap .protektor-pagination span svg {
    opacity: 0.6;
}
.commercial-block-wrap .protektor-pagination span.current {
    color: var(--wp--preset--color--red-50);
}
.commercial-block-wrap .protektor-pagination a.prev,
.commercial-block-wrap .protektor-pagination a.next {
    color: var(--wp--preset--color--red-50);
}

@media (max-width: 768px) {
    .commercial-box-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 450px) {
    .commercial-box-wrap {
        grid-template-columns: repeat(1, 1fr);
    }
    .commercial-block-wrap .protektor-pagination .page-numbers {
        padding-left: 5px;
        padding-right: 5px;
    }
}
