/*
Theme Name: Zafiro Child
Description: Child theme for Zafiro theme
Template: zafiro
Version: 1.0
*/

[data-bs-theme=dark] body {
	--wp--preset--color--base: #ececec;
	--wp--preset--color--contrast: #2a2b2f;
	--wp--preset--color--alt: #999797;
	--wp--preset--color--inactive: #b1b1b3;

	--bs-body-bg: #2a2b2f;
	--bs-body-color: #ececec;
}

:root.theme-dark body {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

@keyframes dropdown-show {
	from {
	  transform: scale(0.9);
	  opacity: 0;
	}
	to {
	  transform: scale(1);
	  opacity: 1;
	}
}

/* Overlays
================================================================================================= */

#preloader { background-color: #fff; }

.overlay-backdrop { background-color: #fff; }
.modal-backdrop.show, 
.offcanvas-backdrop.show { background-color: #111; opacity: .85; }

.icons-on-hover::before,
.overlay-layer, 
.overlay-before:before { background-color: rgba(0, 0, 0, 0.5); };

/* Title Bar
================================================================================================= */

.title-bar-wrapper .title-bar-content,
.title-bar-wrapper .title-bar-content .alignwide { position: relative; }
.title-bar-wrapper .title-bar-content .alignwide .wp-block-template-part { max-width: 100%; }

.title-bar-wrapper .title-bar-content.title-bar-default { position: relative; color: #333; padding-top: 25px; padding-bottom: 25px; background-color: #f6f6f6; }
.title-bar-wrapper .title-bar-content.title-bar-default a { color: #333; }
.title-bar-wrapper .title-bar-content.title-bar-default .title-bar h1.entry-title { margin: 0; color: #333; font-size: 22px; }
.title-bar-wrapper .title-bar-content.title-bar-default .breadcrumb { padding: 0; margin: 0; background-color: transparent; border-radius: 0; }
.title-bar-wrapper .title-bar-content.title-bar-default .breadcrumb li.breadcrumb-item { margin: 0; font-size: 13px; }
.title-bar-wrapper .title-bar-content.title-bar-default .nav-breadcrumb { display: inline-block; position: relative; z-index: 2; }

.title-bar-wrapper .title-bar-content.title-bar-bg,
.title-bar-wrapper .title-bar-content.title-bar-bg a { color: #FFF; }
.title-bar-wrapper .title-bar-content.title-bar-bg .grid { height: 420px; }
.title-bar-wrapper .title-bar-content.title-bar-bg .title-bar h1.entry-title { margin: 0; color: #FFF; font-size: 38px; }

/* Header Main Global
================================================================================================= */

@media (max-width: 1199px) {
	.header-wrapper.header-original .wp-block-site-logo img { width: auto !important; height: 40px !important; }
}

/* Sticky Header
================================================================================================= */

.header-wrapper.header-sticky { background-color: rgba(255, 255, 255, 1.0); box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08); }
.header-wrapper.header-sticky .wp-block-site-logo img { width: auto !important; height: 40px !important; }

.header-wrapper.header-sticky .sticky-hidden { display: none !important; }

.header-wrapper.header-original .sticky-visible { display: none !important; }
.header-wrapper.header-sticky .sticky-visible { display: block !important; }

.header-wrapper.header-sticky .wp-block-header { padding-top: 8px !important; padding-bottom: 8px !important; }

/* Block Menu Main
================================================================================================= */

.menu-container ul { display: flex; gap: 1rem; }
.menu-container ul.menu-main li:not(li li) {}
.menu-container ul.menu-main li:last-child {}
.menu-container ul.menu-main a { display: inline-block; }

.menu-container ul.menu-main > li > a { font-size: var(--wp--preset--font-size--medium); padding: 10px; }
.menu-container ul.menu-main > li > a,
.menu-container ul.menu-main > li > a:focus { color: #111; }
.menu-container ul.menu-main > li:hover > a { color: var(--wp--preset--color--primary); }

/* Nav Current */
.menu-container ul.menu-main li.current-menu-item:not(.item-scrollto) > a, 
.menu-container ul.menu-main li.current_page_item:not(.item-scrollto) > a { background-color: transparent; color: var(--wp--preset--color--primary); }
    
/* Nav Dropdown */
.menu-container ul.menu-main .menu-item-has-children ul { min-width: 12rem; background-color: #fff; box-shadow: 0 0.275rem 1.25rem rgba(19, 16, 34, 0.05), 0 0.25rem 0.5625rem rgba(19, 16, 34, 0.03); padding: .5rem; border-radius: .5rem; }
.menu-container .menu-item-has-children:hover > ul { animation: dropdown-show 0.2s; }
.menu-container ul.menu-main .menu-item-has-children ul li { background-color: #fff !important; color: #565973; transition: all 0.5s ease; }
.menu-container ul.menu-main .menu-item-has-children ul li a { color: #565973; font-size: .875rem; }
.menu-container ul.menu-main .menu-item-has-children ul li:hover > a,
.menu-container ul.menu-main .menu-item-has-children ul li.current-menu-item a, 
.menu-container ul.menu-main .menu-item-has-children ul li.current_page_item a { color: #565973 !important; }

ul li.item-scrollto:before,
ul li.item-scrollto:after { position: absolute; -webkit-transition: all 0.35s ease; transition: all 0.35s ease; }
ul li.item-scrollto:before { bottom: 0; display: block; height: 3px; width: 0%; content: ""; background-color: #666; }
ul li.item-scrollto:hover:before,
ul li.item-scrollto.active:before { opacity: 1; width: 100%; }

/* WP Block Button Style
-------------------------------------------------------- */
/* .wp-block-button__link { width: auto; min-width: 260px !important; } */
.wp-block-button.is-style-zd-button .wp-block-button__link { border-radius: 0; padding: 0; border: none; }

/* Bootstrap
================================================================================================= */

.form-control:focus { color: #565973; background-color: #fff; border-color: rgba(91, 91, 102, 0.35); outline: 0;  box-shadow: inset 0 0 0 transparent,0 .5rem 1.125rem -0.5rem rgba(91, 91, 102, 0.35); }
.accordion {
	--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='GRAY'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='GRAY'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* WP Plugins */
.joinchat { --bottom: 120px; --s: 45px; --header: 45px; }
.back-to-top { right: 25px !important; bottom: 70px; }

@media (max-width: 480px), (orientation: landscape) and (max-width: 767px) {
	.back-to-top { right: 15px !important; }
}

/* Custom
================================================================================================= */
@media (min-width: 1200px) {
	.img-showcase { min-height: 600px !important; }
}
@media (max-width: 575px) {
	.text-sm { font-size: .825rem !important; }
}

footer > * + * { margin-block-start: 0 !important; }

.text-style-01 { display: inline-block; color: transparent; background: linear-gradient(130deg, #CCC, #f9f9f9); background-clip: text; font-size: 150px; line-height: 150px; font-weight: 600; }
.border-top-graylight { border-top: 1px solid rgba(255, 255, 255,.20); }
.border-bottom-graylight { border-bottom: 1px solid rgba(255, 255, 255, .20); }

/* Text Size Clamp */
.text-2x { font-size: clamp(1.5rem, -0.0556rem + 3.2407vw, 2.375rem) !important; }
.text-3x { font-size: clamp(1.75rem, -0.4722rem + 4.6296vw, 3rem) !important; }

.text-highred { color: #111; background: linear-gradient(-107deg, #f7345e 0%,#111 50%); background-clip: border-box; text-shadow: 0px 10px 20px rgba(247,52,94,0.15); transform: skewX(-10deg); position: relative; display: inline-block; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.btn-full { width: auto; min-width: 260px !important; }

/* Gallery Size */
.gallery-w-50 figure.image-wrapper { display: flex; justify-content: center; align-items: center; }
.gallery-w-50 figure.image-wrapper img { object-fit: contain; width: auto; height: 50px; filter: saturate(0); opacity: .4; }

.gallery-w-160 figure.image-wrapper { display: flex; justify-content: center; align-items: center; }
.gallery-w-160 figure.image-wrapper img { object-fit: contain; width: auto; height: 160px; }

.gallery-logos .swiper .swiper-wrapper .swiper-slide { display: flex; align-items: center; justify-content: center; border: 1px solid #e1e1e1; border-radius: 6px; }
.gallery-logos .swiper .swiper-wrapper .swiper-slide figure img { object-fit: contain; height: 36px; width: auto; margin-top: 2rem !important; margin-bottom: 2rem !important; }

.svg-separator-wrapper svg { fill: #fff; }
.svg-separator-wrapper .svg-separator-layer-1 { transform: none; }

.text-highlight:after { background-color: var(--zd-color, --wp--custom--color--gray ) !important; }
.text-highlight.text-highlight--yellow:after { background-color: #fff300 !important; }
.text-highlight.text-highlight--green:after { background-color: #79fe0c !important; }
.text-highlight.text-highlight--blue:after { background-color: #4af1f2 !important; }
.text-highlight.text-highlight--purple:after { background-color: #df00ff !important; }
.text-highlight.text-highlight--red:after { background-color: #ff2226 !important; }
.text-highlight.text-highlight--orange:after { background-color: #ff7b19 !important; }
.text-highlight.text-highlight--pink:after { background-color: #ff70c5 !important; }

.newsletter-icon { left: 15px !important; top: 13px !important; position: absolute !important; font-size: 20px; color: #9397ad; z-index: 5; }

pre { background-color: #0f172a; }

/*
.header-wrapper.header-original { position: absolute; left: 0; top: 0; width: 100%; padding-left: var(--wp--custom--spacing--outer); padding-right: var(--wp--custom--spacing--outer); z-index: 1030; }
.header-wrapper.header-original .wp-block-header { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
*/

.input-group .form-control[type=password] { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group .input-group-text a { color: #111; }

@media (min-width: 576px) {}

@media (min-width: 768px) {}

@media (min-width: 992px) {}

@media (min-width: 1200px) {

	.wp-block-navigation { width: 100%; }
	.menu-main-1 .wp-block-navigation__container { width: 100%; margin-top: 40px; flex-direction: column; border-bottom: 1px solid #e1e1e1; flex-wrap: nowrap; width: 100%; }

	/* Site Header */
	body.is-side-header a:where(:not(.wp-element-button)) { text-decoration: none; }

	body:not(.error404).is-side-header .wp-site-blocks { margin-left: 280px !important; margin-right: 0 !important; }
	body:not(.page-id-6, .page-id-7, .page-id-55 .error404).is-side-header .wp-site-blocks { margin-left: 0 !important; margin-right: 0 !important; }
	body.is-side-header .header-wrapper .wp-block-header { padding: 50px 15px 15px !important; border-right: 1px solid #e1e1e1; width: 280px !important; position: fixed; top: 0; left: 0; height: 100vh; margin-left: 0 !important; margin-right: 0 !important; }
}