/*
Theme Name: Flex Bloq Bax (Multi Site)
Author: Webelephant 
Description: Core Overulling With Multisite support
Version: 1.0.0
Template: flexbloq
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: we-fxbq-dlm
*/

/* Hero Block Grid Layouts */
.hero-banner-static-block .container {
    display: grid;
    gap: 2rem;
}

/* Grid layout ratios */
.hero-banner-static-block .container.hero-grid-1-1 {
    grid-template-columns: 1fr 1fr;
}
.hero-banner-static-block .container.hero-grid-2-1 {
    grid-template-columns: 2fr 1fr;
}
.hero-banner-static-block .container.hero-grid-1-2 {
    grid-template-columns: 1fr 2fr;
}
.hero-banner-static-block .container.hero-grid-3-1 {
    grid-template-columns: 3fr 1fr;
}
.hero-banner-static-block .container.hero-grid-1-3 {
    grid-template-columns: 1fr 3fr;
}
.hero-banner-static-block .container.hero-grid-4-1 {
    grid-template-columns: 4fr 1fr;
}
.hero-banner-static-block .container.hero-grid-1-4 {
    grid-template-columns: 1fr 4fr;
}
.hero-banner-static-block .container.hero-grid-full {
    grid-template-columns: 1fr;
}

/* Override fixed width from parent theme */
.hero-banner-static-block .seo {
    max-width: none;
    margin-left: 0;
}

/* Mobile: stack vertically */
@media screen and (max-width: 767px) {
    .hero-banner-static-block .container {
        grid-template-columns: 1fr !important;
    }
}

body {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #4D4D4D;
}

.seo h1, .seo h2, .seo h3, .seo h4 {
    text-transform: none;
    color: var(--primary-color);
}

@media screen and (min-width: 1025px) {
    .template-flex {
        padding: 5rem 0;
    }
}

.has-gradient-overlay:after {
    opacity: 0.5;
}

#nav .main-nav #menu-header-nav li {
    font-size: 1.6rem;
    text-align: center;
}

.page-main {
    margin-top: 0;
}

.header-wrapper {
    background-color: #F5F8FF;
    border: 1px solid #E1E2E3;
    box-shadow: none;
    position: sticky;
}

@media screen and (min-width: 1025px) {
    .header-wrapper .custom-logo {
        max-height: 9rem;
        top: -1px;
        margin-bottom: -2px;
        position: relative;
    }
}

.header-wrapper .custom-logo-link {
    margin-right: 0;
}

.header-wrapper .contact-info .phone-number,
.header-wrapper .contact-info .email-address {
    display: none !important;
}

#nav .main-nav li.menu-item-has-children > a:after {
    transform: rotate(90deg);
}

#nav .main-nav.show #menu-header-nav li a {
    color: var(--primary-color) !important;
    padding:1rem;
}

.wpml-ls-legacy-list-horizontal a {
    display: flex;
    align-items: center;
}

.header-wrapper .contact-info li.contact-btn-1 a{
    background-color: var(--tertiary-color) !important;
}

.hero-banner-static-block .seo {
    border:1px solid #DDE7FF;
}

@media screen and (min-width: 768px) {
    .hero-banner-static-block .seo img{
        margin: 2rem auto 0;
    }
}

.hero-banner-static-block .seo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hero-banner-static-block .seo a:before {
    content:'';
    background-image:url('./images/calendar-solid-icon.svg');
    width: 1.3rem;
    display: inline-block;
    height: 1.5rem;
    margin-right: 1rem;
}

.usp-items  {
    padding: 0;
}

.usp-items ul .item .wrap {
font-size: 2rem;
color: var(--primary-color);
line-height: 1.2;
}

.usp-items .container {
    max-width: 126rem;
    padding:2rem;
    background-color: #F5F8FF;
    border: 1px solid #E1E2E3;
    border-radius: var(--border-radius);
}

.usp-items ul .item .wrap span {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #4D4D4D;
    font-weight: 400;
}

.usp-items ul .item img, .usp-items ul .item svg {
    max-width: 3.5rem;
    max-height: 3.5rem;
}

.usp-items ul .item .btn {
    background-color: var(--secondary-color);
}

.banner-items .grid-3 .item .img-responsive,
.banner-items .grid-3 .item {
    min-height:20.9rem;
}

.banner-items .grid .item.gradient-primary.item,
.banner-items .grid .item.bg-primary.item {
    overflow: hidden;
}

.banner-items .grid .item.gradient-primary.item .btn,
.banner-items .grid .item.bg-primary.item .btn{
    background-color: #fff;
    color: var(--primary-color);
    z-index: 20;
}

.banner-items .grid .item.gradient-primary .title, .banner-items .grid .item.bg-primary .title {
    text-transform: none;
}

.banner-items .grid .item.gradient-primary .title, .banner-items .grid .item.bg-primary .title .small{
    font-size: 2.5rem;
}

.banner-items .grid .item.gradient-primary.item:after, .banner-items .grid .item.bg-primary.item:after {
    content:'';
    background-image:url('./images/bax-emblem-blue.svg');
    width: 41rem;
    height: 26.9rem;
    position: absolute;
    left: 0;
    bottom: -6rem;
    z-index: 10;
}

.video-play {
    background-color: rgba(193, 187, 0, 0.9);
}

@media screen and (max-width: 767px) {
    .main-banner-slider-default .main-banner-items .item:not(.image-detached) article {
        padding: 0 0 2rem 0;
    }
}

.template-flex-product-items {
    background-color: #F5F8FF;
    border-top: 1px solid #E1E2E3;
    border-bottom: 1px solid #E1E2E3;
    padding: 2.5rem 0;
}

.product-items .price{
    color: var(--tertiary-color);
}

.banner-items .grid .item.has-title-below-img:not(.gradient-primary) .read-more {
    display: none;
}

.banner-items .grid .item.has-title-below-img:not(.gradient-primary) h3 {
    color: var(--primary-color);
    text-align: center;
}

.wpml-ls-statics-shortcode_actions {
    order: 50;
}

.wpml-ls-legacy-dropdown-click a.wpml-ls-item-toggle {
    background-color: transparent;
    border: none;
}

.wpml-ls-legacy-dropdown-click {
    width: auto;
    margin-left: 1rem;
}

.wpml-ls-legacy-dropdown-click .wpml-ls-flag {
    min-width: 33px;
    min-height: 25px;
    max-width: 33px;
}

.wpml-ls-legacy-dropdown-click a {
    padding: 1rem;
}

.banner-items .grid .item.has-title-below-img:not(.gradient-primary){
    min-height: inherit;
}

@media screen and (max-width: 1024px) {
    .header-wrapper .custom-logo {
        max-height: 7rem;
        margin-left: 1rem;
    }

    .usp-items-template-flex-media .list:not(.splide__list){
        flex-direction: column;
        align-items: flex-start;
    }

    .header-wrapper .contact-info li a.btn {
        display: flex;
    }

    .header-wrapper .contact-info {
        margin-left: auto;
        position: relative;
        right: 0;
    }

    .header-wrapper > .container {
        padding: 0;
    }

    .header-wrapper .custom-logo-link {
        order: 0;
    }

    .header-wrapper .show-nav {
        width: auto;
    }

    #nav .show-nav .inner {
        flex-direction: row;
        align-items: center;
    }

    #toggleBtn {
        margin-left:1rem;
        font-size: 1.4rem;
        padding: 0 2rem;
        border-radius: 0.5rem;
        min-height: 4rem;
        font-weight: 700;
        display: flex  !important;
        padding: 0 1rem 0;
        color: var(--primary-color);;
    }
    
    .bar-items {
        
        width: 3rem;
        height: auto;
    }

    #toggleBtn .label-text {
        display: none;
    }

    .bar-items .line{
        max-width: none !important;
        background-color: var(--primary-color);
    }
}

.wpml-ls-legacy-list-horizontal .wpml-ls-flag+span {
    display: none;
}

@media screen and (max-width: 767px) {
    .usp-items ul .item-button {
        text-align: center;
    }

    .usp-items ul .item-button a {
        margin: auto;
    }

     .hero-banner-static-block .img-responsive .desc .subtitle {
       display: none;
    }
}
.main-banner-slider{
    width: 100%;
    margin: 0 auto;
    max-width: 130rem;
    padding: 0 2rem;
}

body:not(.home) .main-banner {
    width: 100%;
    margin: 3rem auto 0 auto;
    max-width: 130rem;
    padding: 0 2rem;
}

body:not(.home) .main-banner-items > .item article h1, .page-template-default  .main-banner-items > .item article h2 {
    font-size: 3rem;
    text-align: center;
    margin: 0;
}

body:not(.home) .template-flex-form {
    padding-top: 0;
}

body:not(.home) .main-banner-items > .item:not(.image-detached),
.main-banner-items{
    height: 19.5rem; 
    min-height:19.5rem;
}

.main-banner-items > .item figure,
.main-banner-items > .item.has-gradient-overlay:after {
    border-radius: 1rem;
}

.main-banner-items > .item.has-gradient-overlay:after {
    height: 100%;
    opacity: 0.7;
}

.main-banner-items > .item article {
    margin: auto auto 0 auto;
    max-width: 100%;
}

@media screen and (max-width: 767px) {
    body:not(.home) .main-banner-items > .item article h1, body:not(.home) .main-banner-items > .item article h2 {
        font-size: 2rem;
    }
}

body:not(.home) .main-banner-items > .item article h1, .page-template-default .main-banner-items > .item article h2 {
    color:#fff;
}
.breadcrumbs{
    background-color: transparent;
    border: none;
    margin: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.breadcrumbs .container {
    padding: 0;
    padding: 1rem 0;
    margin: 0 auto;
    max-width: 126rem;
}

@media screen and (max-width: 767px) {
    .breadcrumbs .container {
        padding: 0;
    }
}

@media screen and (min-width: 1025px) {
    .banner-items.has-title-below-img .grid {
        grid-gap: 3rem;
    }
}

.flex-divider:after {
    height: 3px;
    background-color: #DDE7FF;
}

@media screen and (min-width: 768px) {
    .flex-divider {
        margin:1rem auto
    }
}

.template-flex-accordion .accordion {
    margin-top: 0;
}

.template-flex-accordion .accordion .head svg path {
    fill: var(--primary-color);
}

.template-flex-accordion .accordion .wrap table tr td {
    padding: 1rem;
}

.template-flex-accordion .accordion .wrap table tbody > tr:nth-of-type(even) > td {
  background-color: #F5F8FF;
}

.template-flex-accordion .accordion .wrap table tr > td:first-child {
  font-weight: 700;

}

#nav .main-nav.js-active {
    background-color: #fff;
}

@media screen and (max-width: 1024px) {
    #nav .main-nav.show {
        top: 7rem;
    }
    #nav.js-nav-isactive .nav-overlay {
        top:7.1rem;
    }
}

.page-footer {
    background-color: #F5F8FF;
    color:var(--primary-color);
}

.page-footer .footer-top {
    padding-top: 5rem;
}

.page-footer .footer-bottom {
margin-top: 5rem;
}

.page-footer .footer-top .menu.socialmedia,
.page-footer .footer-top .menu.contact-info,
.page-footer .footer-top .menu .head{
    display: none;
}


.page-footer .footer-top .menu.footer-logo svg {
    height: 11rem;
    width: 11rem;
}

.page-footer .footer-top .menu.footer-logo {
    margin-left: 2rem;
}

@media screen and (max-width: 820px) {
    .page-footer .footer-top .menu .wrap,
    .page-footer .footer-top .menu.is_inactive,
    .page-footer .footer-top .menu.is-active .wrap {
        display: flex !important;
        flex-direction: column;
        background-color: transparent !important;
        padding: 0;
        align-items: flex-start;
    }
    .page-footer .footer-top .menu {
        text-align: left;
    }

    .page-footer .footer-top {
        padding: 2rem;
        display: grid;
        grid-template-columns: repeat(2, 2fr);
        grid-gap: 1rem;
    }

    .page-footer .populair-links .container {
        flex-wrap: wrap;
    }

    .page-footer .footer-bottom {
        margin-top: 0;
    }
}

.template-flex.cta-block .seo {
    background-color: var(--tertiary-color) !important;
}

.template-flex.cta-block .seo h2 {
    color: #fff;
}

.template-flex.cta-block .seo .btn {
    background-color: #fff;
    color: var(--tertiary-color) ;
}

.template-flex.cta-block .seo .btn-extra {
    border-color: #fff;
    background-color: transparent;
    color:#fff;
}

.single-bax_product .template-flex-accordion {
    padding: 0;
}

.single-bax_product .template-flex-accordion .container {
    padding: 0;
}

/* Product slider styles - using custom classes to prevent parent theme interference */
.product-hero-slider {
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-hero-slider .splide__slide figure {
    border-radius: var(--border-radius);
    min-height: 55rem;
    background-size: cover;
    background-position: center;
}

@media screen and (max-width: 960px) {
    .product-hero-slider .splide__slide figure {
        min-height: 25rem;
    }
}

.product-hero-slider .splide__slide .desc {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
    color: #fff;
}

.product-hero-slider .splide__slide .desc .title {
    font-size: 2rem;
    margin: 0 0 .5rem;
}

.product-thumb-slider .splide__slide {
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;   
}

.product-thumb-slider .splide__slide img {
    width: 100%;
    height: auto;
    display: block;
}

.product-thumb-slider .splide__slide.is-active {
    border: 2px solid var(--primary-color) !important;
}

/* Unified arrow styles for both sliders */
.product-hero-slider .splide__arrow {
    background: #fff;
    opacity: 1;
    height: 4rem;
    width: 4rem;
}

.product-thumb-slider .splide__arrow {
    background: #fff;
    opacity: 1;
    height: 3rem;
    width: 3rem;
}

.product-hero-slider .splide__arrow--prev,
.product-thumb-slider .splide__arrow--prev {
    left: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.product-hero-slider .splide__arrow--next,
.product-thumb-slider .splide__arrow--next {
    right: 0;
    border-radius: 0.5rem 0 0 0.5rem;
}

.splide-arrows-dark .splide__arrow:after {
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 60% !important;
}

.splide-arrows-dark .splide__arrow--prev:after {
    content: "";
    background: url("../../themes/flexbloq/images/icons/chevron-left-solid-dark.svg");
}

.splide-arrows-dark .splide__arrow--next:after {
    content: "";
    background: url("../../themes/flexbloq/images/icons/chevron-right-solid-dark.svg");
}

.product-thumb-slider .splide__arrow:after {
    background-size: 40% !important;
}

/* Mobile: smaller arrows */
@media screen and (max-width: 767px) {
    .product-hero-slider .splide__arrow,
    .product-thumb-slider .splide__arrow {
        height: 3rem;
        width: 3rem;
    }

    .product-hero-slider .splide__arrow svg,
    .product-thumb-slider .splide__arrow svg {
        width: 1rem;
        height: 1rem;
    }

    .splide-arrows-dark .splide__arrow:after {
        background-size: 40% !important;
    }
}

/* Mobile: full width image viewer, no border radius on main image */
@media screen and (max-width: 767px) {
    .single-bax_product .template-flex-carousel-slider-items {
        margin-left: -2rem;
        margin-right: -2rem;
        width: calc(100% + 4rem);
    }

    .single-bax_product .product-hero-slider {
        border-radius: 0;
    }

    .single-bax_product .product-hero-slider .splide__slide figure {
        border-radius: 0;
    }

    .single-bax_product .product-thumb-slider {
        padding: 0 1rem;
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.video-modal__container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
}

.video-modal__controls {
    position: absolute;
    top: -5rem;
    right: 0;
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.video-modal__btn {
    background: #fff;
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.video-modal__btn:hover {
    background: #f0f0f0;
}

.video-modal__btn svg {
    width: 2rem;
    height: 2rem;
}

.video-modal__content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-modal__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 767px) {
    .video-modal__container {
        width: 100%;
    }

    .video-modal__content {
        border-radius: 0;
    }

    .video-modal__controls {
        top: -4.5rem;
        right: 1rem;
    }

    .video-modal__btn {
        width: 3.5rem;
        height: 3.5rem;
    }

    .video-modal__btn svg {
        width: 1.6rem;
        height: 1.6rem;
    }
}

/* Image Lightbox Modal */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.image-lightbox__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-lightbox__controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 2;
}

.image-lightbox__btn {
    background: #fff;
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.image-lightbox__btn:hover {
    background: #f0f0f0;
}

.image-lightbox__btn svg {
    width: 2rem;
    height: 2rem;
}

.image-lightbox__content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.image-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.image-lightbox__nav:hover {
    background: #f0f0f0;
}

.image-lightbox__nav svg {
    width: 2rem;
    height: 2rem;
}

.image-lightbox__prev {
    left: 2rem;
}

.image-lightbox__next {
    right: 2rem;
}

@media screen and (max-width: 767px) {
    .image-lightbox__controls {
        top: 1rem;
        right: 1rem;
    }

    .image-lightbox__btn,
    .image-lightbox__nav {
        width: 3.5rem;
        height: 3.5rem;
    }

    .image-lightbox__btn svg,
    .image-lightbox__nav svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .image-lightbox__prev {
        left: 1rem;
    }

    .image-lightbox__next {
        right: 1rem;
    }

    .image-lightbox__content {
        max-width: 95%;
    }
}

