/*
Theme Name:   Bricks Child Theme
Theme URI:    https://bricksbuilder.io/
Description:  Use this child theme to extend Bricks.
Author:       Bricks
Author URI:   https://bricksbuilder.io/
Template:     bricks
Version:      1.1
Text Domain:  bricks
*/

/* ***************************** Global ***************************** */

:root {
    --top-sticky: 0;
    --header-heigth: 81px;
    --full-screen: calc(100svh - var(--header-heigth));
}

@media(max-width:1024px) {
    :root {
        --header-heigth: 88px;
    }
}

@media(max-width:767px) {
    :root {
        --header-heigth: 72px;
    }
}

html {
    scroll-behavior: smooth;
    counter-reset: count 0;
    scroll-padding-top: var(--header-heigth);
}

.brxe-heading {
    text-transform: uppercase;
    color: var(--text-primary-900);
}

.splide__pagination:has(li:first-child:last-child) {
    display: none !important;
}

.brxe-text ul,
.brxe-text ol {
    padding-left: 1.5em;
    margin-block: 1.2em;
}

.brxe-text>*:last-child {
    margin-bottom: 0 !important;
}

.brxe-text>*:first-child {
    margin-top: 0 !important;
}

.brxe-text a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ***************************** Global ***************************** */

/* ***************************** White Header ***************************** */

.white-header header>.header-navigation__sec .header-navigation__logo {
    filter: brightness(0) invert(1);
}

.white-header header {
    position: fixed;
    z-index: 5;
    background: transparent;
}

.white-header header>.header-navigation__sec .header-menu .bricks-nav-menu>li>a,
.white-header header>.header-navigation__sec .header-menu li .brx-submenu-toggle,
.white-header header>.header-navigation__sec .header-menu li .brx-submenu-toggle a,
.white-header header>.header-navigation__sec .header-menu li .brx-submenu-toggle button,
.white-header header>.header-navigation__sec .header_toggle ,
.white-header .wpml-custom-switcher .wpml-active-lang .code{
    color: var(--base---white);
}

header>.header-navigation__sec .header-menu li .brx-submenu-toggle {
    transition: var(--base-transition);
}

header {
    position: sticky;
    top: 0;
    z-index: 99;
    transition: var(--base-transition);
    background: var(--base---white);
}

.white-header header.cust_sticky {
    background: var(--base---white);
}

.white-header header.cust_sticky>.header-navigation__sec .header-navigation__logo {
    filter: unset;
}

.white-header header.cust_sticky>.header-navigation__sec .header-menu li a,
.white-header header.cust_sticky>.header-navigation__sec .header_toggle,
.white-header header.cust_sticky>.header-navigation__sec .header-menu li .brx-submenu-toggle,
.white-header header.cust_sticky>.header-navigation__sec .header-menu li .brx-submenu-toggle a,
.white-header header.cust_sticky>.header-navigation__sec .header-menu li .brx-submenu-toggle button,
.white-header .cust_sticky .wpml-custom-switcher .wpml-active-lang .code {
    color: var(--text-primary-900);
}

header.cust_sticky {
    box-shadow: 0 0 16px rgb(0 0 0 / .1);

}

.white-header .wpml-custom-switcher .wpml-active-lang .arrow {
    background: var(--base---white);
}

.white-header .cust_sticky .wpml-custom-switcher .wpml-active-lang .arrow {
    background: var(--text-primary-900);
}

/* ***************************** White Header ***************************** */

/* ****************************** Form ****************************** */

.form-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
}

.form-wrap .form-item {
    position: relative;
}

.form-wrap .form-item:not(.w-half) {
    grid-column: span 2;
}

.form-wrap .form-item input,
.form-wrap .form-item textarea {
    border: 1px solid var(--border-tertiary);
    border-radius: var(--radius-xl);
    background-color: var(--bg-primary);
    line-height: var(--line-height-text-md);
    font-size: 1rem;
    color: var(--text-primary-900);
    padding-top: 0.557em;
    padding-right: 0.875em;
    padding-bottom: 0.557em;
    padding-left: 0.875em;
    outline: 2px solid transparent !important;
    outline-offset: -1px;
    transition: var(--base-transition);
    box-shadow: var(--shadows--shadow-xs);
    font-family: inherit;
    font-weight: 400;
}

.form-wrap .form-item input::placeholder,
.form-wrap .form-item textarea::placeholder {
    opacity: 1 !important;
    color: var(--text-placeholder);
}

.form-wrap .form-item input:focus,
.form-wrap .form-item textarea:focus-visible {
    outline: 2px solid var(--border-brand) !important;
}

.form-wrap .form-item textarea {
    height: 134px;
}

.wpcf7 span.wpcf7-not-valid-tip {
    margin-top: 0.4rem;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

.form-wrap .form-item label {
    line-height: var(--line-height-text-sm);
    font-weight: 500;
    text-transform: none;
    color: var(--text-secondary-700);
    font-size: 0.875rem;
    margin-bottom: 5px;
}

.form-wrap .form-item label:has(+span .wpcf7-validates-as-required):after {
    content: "*";
    padding: 0 2px;
    position: relative;
    top: 0;
    color: var(--text-brand-tertiary-600);
    margin: 0;
}

.form-wrap .wpcf7-form-control-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ************** Submit Button ************** */

.form-wrap .form-item.form-submit input[type="submit"] {
    padding-top: var(--spacing-lg);
    padding-right: 1.125em;
    padding-bottom: var(--spacing-lg);
    padding-left: 1.125em;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--button-primary-fg);
    background-color: var(--cyan--500);
    position: relative;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.18) inset, 0 -2px 0 0 rgba(10, 13, 18, 0.05) inset, 0 1px 2px 0 rgba(10, 13, 18, 0.05);
    letter-spacing: 0px;
    font-weight: 600;
    transition: var(--base-transition);
    border-radius: var(--radius-full);
    width: 100%;
    opacity: 1;
    margin-top: 0.5rem;
    border: 0;
    text-align: center;
}

.form-wrap .form-item.form-submit input[type="submit"]:hover {
    background-color: var(--cyan--600);
    color: var(--button-primary-fg);
}

.form-wrap .form-item.form-submit input[type="submit"]:focus-visible,
.form-wrap .form-item.form-submit input[type="submit"]:focus {
    box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.18) inset, 0 -2px 0 0 rgba(10, 13, 18, 0.05) inset, 0 1px 2px 0 rgba(10, 13, 18, 0.05), 0 0 0 2px #FFF, 0 0 0 4px var(--cyan--500);
}

.form-item.form-submit span.wpcf7-spinner {
    display: none;
    flex-shrink: 0;
}

form.submitting .wpcf7-spinner {
    display: block !important;
}

.form-item.form-submit p {
    display: flex;
    align-items: center;
}

/* ************** Submit Button ************** */

/* ************** Error ************** */

.wpcf7 form .wpcf7-response-output {
    margin-bottom: 0;
    margin-inline: 0;
    padding: 0.5rem 1rem;
    border-width: 1px;
    font-weight: 500;
    font-size: var(--text-md);
}

.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    color: var(--bricks-text-warning);
    background: var(--bricks-bg-warning);
    border-color: var(--bricks-text-warning);
}

.wpcf7 form.invalid .wpcf7-response-output {
    color: var(--bricks-text-danger);
    border-color: var(--bricks-text-danger);
    background: var(--bricks-bg-danger);
}

.wpcf7 form.sent .wpcf7-response-output {
    color: var(--bricks-text-success);
    border-color: var(--bricks-text-success);
    background: var(--bricks-bg-success);
}

/* ************** Error ************** */

/* ************** CheckBox ************** */

.checkbox_wrap .wpcf7-form-control-wrap {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.form_checkbox .checkbox_wrap label {
    padding: 0;
    color: var(--text-tertiary-600);
    position: relative;
    padding-left: 2em;
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.5;
    font-weight: 400;
    cursor: pointer;
}

.form_checkbox .checkbox_wrap label::before {
    position: absolute;
    content: '';
    width: 1.25em;
    height: 1.25em;
    border: 1px solid var(--gray-light-mode--300);
    border-radius: var(--spacing-sm);
    top: 0.125em;
    left: 0;
    outline: 2px solid transparent !important;
    outline-offset: 2px;
    transition: var(--base-transition);
    background: #fff;
    transform: unset;
}

.form_checkbox .checkbox_wrap label::after {
    position: absolute;
    content: '';
    width: 0.875em;
    height: 0.875em;
    opacity: 0;
    visibility: hidden;
    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%3E%3Cpath%20d='M11.6666%203.5L5.24992%209.91667L2.33325%207'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    top: 0.35em;
    left: 0.19em;
    transform: unset;
}

.form_checkbox .checkbox_wrap label a,
.cf7-info a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: var(--base-transition);
}

.checkbox_wrap {
    position: relative;
}

.form_checkbox .checkbox_wrap label a:hover,
.cf7-info a:hover {
    color: var(--cyan--900);
}

.form_checkbox .checkbox_wrap label:hover::before,
span.wpcf7-form-control-wrap:has(input:focus)+label::before,
span.wpcf7-form-control-wrap:has(input:focus-visible)+label::before {
    outline-color: var(--focus-ring) !important;
}

span.wpcf7-form-control-wrap:has(input:checked)+label::after {
    opacity: 1;
    visibility: visible;
}

span.wpcf7-form-control-wrap:has(input:checked)+label::before {
    background: var(--bg-brand-solid);
    border-color: var(--bg-brand-solid);
}

/* ************** CheckBox ************** */

/* ************** Newsletter Form ************** */

.form-wrap.newsletter-form {
    grid-template-columns: 1fr auto;
    gap: 1em;
}

.form-wrap.newsletter-form .form-item {
    grid-column: unset;
}

.form-wrap.newsletter-form label {
    display: none;
}

.form-wrap.newsletter-form input[type="submit"] {
    margin: 0 !important;
}

.form-wrap.newsletter-form .form-item input {
    min-height: 3rem;
}

.cf7-info {
    font-size: 14px;
    margin-top: 6px;
}

/* ************** Newsletter Form ************** */

@media(min-width:576px) {
    .form-wrap.newsletter-form .form-item.form-submit p {
        flex-direction: column;
        gap: 1rem;
    }
}

@media(max-width:767px) {
    .form-item {
        grid-column: 1/-1;
    }
}

@media(max-width:575px) {
    .form-wrap.newsletter-form {
        grid-template-columns: 1fr;
    }
}

/* ****************************** Form ****************************** */

/* ****************************** CG Slider ****************************** */

.cgb_slider {
    margin-bottom: 1.5rem;
}

.cgb_slider .splide__slide img {
    height: 462px;
    width: auto;
    max-width: 80vw;
    object-fit: cover;
}

.cgb_slider .splide {
    padding-bottom: 2rem;
}

.cgb_slider .splide .splide__pagination {
    bottom: 0;
    padding: 0;
}

.cgb_slider .splide .splide__pagination .splide__pagination__page {
    margin: 0 0.5rem;
    background: var(--fg-quinary-400);
    opacity: 1;
    transform: none;
    width: 0.625rem;
    height: 0.625rem;
}

.cgb_slider .splide .splide__pagination .splide__pagination__page.is-active {
    background: var(--fg-primary-900);
}

@media (max-width:767px) {
    .cgb_slider .splide__slide img {
        height: 350px;
    }
}

@media (max-width:575px) {
    .cgb_slider .splide__slide img {
        height: 250px;
    }

    .cgb_slider .splide .splide__pagination .splide__pagination__page {
        margin-inline: 6px;
        width: 8px;
        height: 8px;
    }
}

/* ****************************** CG Slider ****************************** */

/* ****************************** Language selector ****************************** */

.wpml-custom-switcher {
    position: relative;
}

.wpml-active-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none
}

.wpml-custom-switcher .flag img {
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    object-fit: cover
}

.wpml-custom-switcher .code {
    font-weight: 600;
    color: var(--text-primary-900);
    font-size: var(--text-md);
    line-height: var(--line-height-text-md);
    transition: var(--base-transition);
}

.wpml-custom-switcher .wpml-active-lang .arrow {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23A4A7AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-size: 1rem;
    mask-position: center;
    mask-repeat: no-repeat;
    transition: var(--base-transition);
    font-size: 0;
    width: 1rem;
    height: 1rem;
    display: block;
    flex-shrink: 0;
    background: var(--text-primary-900);
}

.wpml-lang-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgb(0 0 0 / .1);
    padding: 6px 0;
    min-width: 90px;
    z-index: 99
}

.wpml-custom-switcher span.flag {
    display: flex;
}

.wpml-custom-switcher.active .wpml-lang-list {
    display: block
}

.wpml-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    transition: background 0.2s ease
}

.wpml-lang-item:hover {
    background: #f6f6f6
}

.wpml-custom-switcher.active .arrow {
    transform: rotate(180deg)
}

.wpml-custom-switcher .wpml-lang-list .code {
    font-weight: 500;
}

/* ****************************** Language selector ****************************** */