/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* INDEX
-------------------------------------------------------------- 
00. CORE
01. SITEWIDE
02. HEADER
03. FOOTER
10. PAGES, POSTS, CPTs (Single)
20. ARCHIVE PAGES (all post types)
30. SPECIFIC PAGES
	31. Homepage
	32. Search Results
	33. Bricks Selector
50. BLOCK CUSTOMISATIONS
99. HOTFIXES & BUGS & TEMP FIXES

-------------------------------------------------------------- */

/* ---------------------------------------------------
 * 00. CORE 
 * ---------------------------------------------------*/
 :root body {
	--global-kb-font-size-xxxl: clamp(2.4rem, 2.2421rem + 0.6316vw, 3rem);
    --global-kb-font-size-xxl: clamp(1.8rem, 1.6421rem + 0.6316vw, 2.4rem); /* H1 */
    --global-kb-font-size-xl: clamp(1.8rem, 1.6947rem + 0.4211vw, 2.2rem); /* H2 */
    --global-kb-font-size-lg: clamp(1.6rem, 1.5474rem + 0.2105vw, 1.8rem); /* H3 */
    --global-kb-font-size-md: 1.4rem; /* H4 */
    --global-kb-font-size-sm: 1rem;
    --global-kb-font-size-xsm: 0.8rem;

	--fluentform-primary: var(--global-palette1);
    --fluentform-secondary: var(--global-palette2);
}

body h1 { font-size: var(--global-kb-font-size-xxl); }
body h2 { font-size: var(--global-kb-font-size-lg);  }
body h3 { font-size: var(--global-kb-font-size-md); }
body h4 { font-size: var(--global-kb-font-size-md); }
body h5 { font-size: var(--global-kb-font-size-sm); }
body h6 { font-size: var(--global-kb-font-size-xsm); }

/*Text balance */
.balance {
    text-wrap: balance;
}
body .rank-math-breadcrumb {
    font-size: 0.8rem;
}
/* ---------------------------------------------------
 * 01. SITEWIDE 
 * ---------------------------------------------------*/
div#wrapper {
    max-width: 2580px;
    margin: 0 auto;
}

/* Archive titles */
h1.archive-title {
    font-size: 2.4rem;
}
/* ---------------------------------------------------
 * 02. HEADER 
 * ---------------------------------------------------*/
@media screen and (width > 1024px) {
	.site-header-item.site-header-focus-item:has(.site-branding) {
		margin: -15px 0 15px;
	}
	.header-is-fixed .site-header-item.site-header-focus-item:has(.site-branding) {
		margin: 0;
	}
}
/* Underline top right header menu */
.site-header-top-section-right .site-header-item {
    border-bottom: 1px solid var( --global-palette7 );
}
@media ( max-width: 1024px ) {
    .site-main-header-inner-wrap {
        padding: 1.5rem;
    }
}

/**** PAGES & CPT hero sections ****/
.page .entry-hero-container-inner .entry-header,
.single-case-studies .entry-hero-container-inner .entry-header,
.post-type-archive-case-studies .entry-hero-container-inner .entry-header,
.blog .entry-hero-container-inner .entry-header,
.single-bricks-product .entry-hero-container-inner .entry-header,
.post-type-archive-bricks-products .entry-hero-container-inner .entry-header {
    justify-content: flex-end;
    padding-bottom: 2rem;
}

/**** Tagline ****/
.entry-hero-container-inner .entry-header {
	position: relative;
}

.entry-hero-container-inner .entry-header .rgb-tagline {
	position: absolute;
	right: 0;
	bottom: 2rem;
	width: fit-content;
	text-transform: uppercase;
	color: var( --global-palette9 );
}

.entry-hero-container-inner .entry-header .rgb-tagline .rgb-separator {
	color: var( --global-palette1 );
}

h1.entry-title {
	/* max-width: 600px; */
	text-wrap: balance;
}
 /* ---------------------------------------------------
 * 03. FOOTER 
 * ---------------------------------------------------*/

 /* ---------------------------------------------------
 * 10. PAGES, POSTS, CPTs (Single)
 * ---------------------------------------------------*/
/**** Single Blog Posts ****/
.single-post .primary-sidebar {
    margin-top: var( --global-kb-spacing-lg, 5rem );
}

/**** Single Product ****/
.rgb-break-left-header .kt-row-column-wrap .kt-inside-inner-col:first-child {
	padding-left: calc(var(--global-content-edge-padding) + 100% - (var( --global-content-width, 1440px ) / 2));
}
.single-bricks-product .rgb-product-highlight .kt-row-column-wrap > .wp-block-kadence-column {
	max-width: calc(100vw / 2);
	width: 100%;
}

.single-bricks-product .rgb-product-highlight.highlight-right .kt-row-column-wrap > .wp-block-kadence-column {
	margin-left: auto;
}

.single-bricks-product .rgb-product-highlight .kt-row-column-wrap > .wp-block-kadence-column > .kt-inside-inner-col > .wp-block-kadence-column {
	max-width: 645px;
	margin: 0 auto;
	padding: 0 var(--global-content-edge-padding);
}

.single-bricks-product .rgb-explore-more .kt-row-column-wrap > .wp-block-kadence-column:first-of-type {
	max-width: var(--global-calc-content-width);
	width: 100%;
	margin: 0 auto;
}

.single-bricks-product .rgb-explore-more .kadence-post-image {
	position: relative;
}

.single-bricks-product .rgb-explore-more .kt-blocks-post-grid-item-inner {
	position: absolute;
	top: 2em;
	left: 0;
	background: var( --global-palette9 );
	padding: 0.5rem 1rem;
}

.single-bricks-product .rgb-explore-more .splide .splide__arrow {
	top: 100%;
	transform: none;
	margin-top: 10px;
}

.single-bricks-product .rgb-explore-more .kb-splide .splide__arrow--prev {
	left: max(20px, calc(50% - 645px));
}

.single-bricks-product .rgb-explore-more .kb-splide .splide__arrow--next {
	right: max(20px, calc(50% - 645px));
}

/**** Single BRICK ****/
@media ( min-width: 1025px ) {
	.single-bricks .rgb-brick-attributes .kt-inside-inner-col {
		column-count: 2;
	}
}
.single-bricks .rgb-brick-attributes .kt-inside-inner-col span strong {
	width: clamp(100px, 12rem, 220px);
	display: inline-block;
}
.single-bricks form.fluent_form_5 .wpf_has_custom_css.ff-btn-submit:hover {
	background: var(--global-palette2);
	color: var(--global-palette9);
	border: 1px solid var(--global-palette2);
	opacity: 1;
}
/* ---------------------------------------------------
 * 20. ARCHIVE PAGES
 * ---------------------------------------------------*/
/**** Case Studies ****/
.case-studies-archive > .custom-archive-loop-item > .wp-block-kadence-column,
.case-studies-archive > .custom-archive-loop-item > .wp-block-kadence-column > .kt-inside-inner-col {
    height: 100%;
}

/**** Product Category Archives ****/
.tax-bricks-product-category .bricks-product-archive .bricks-product {
	position: relative;
}

.tax-bricks-product-category .bricks-product-archive .bricks-product .entry-content-wrap h2.entry-title{
	position: absolute;
	top: 1em;
	left: 0;
	background: var( --global-palette9 );
	padding: 1rem;
	margin-right: 3rem;
}

.archive.tax-bricks-product-category .bricks-product-archive .bricks-product .entry-content-wrap header,
.archive.tax-bricks-product-category .bricks-product-archive .bricks-product a {
	margin: 0;
}

.tax-bricks-product-category .bricks-product-archive {
	gap: 1rem;
}
 /* ---------------------------------------------------
 * 30. SPECIFIC PAGES 
 * ---------------------------------------------------*/
/* 31. HOMEPAGE */


/* 32. SEARCH RESULTS */

/* 33. RGB BRICKS SELECTOR */
.rgb-bricks-selector-loop-filter legend.kb-query-label {
	font-weight: 100;
	color: var(--global-palette1);
}

/* ---------------------------------------------------
 * 50. BLOCK CUSTOMISATIONS 
 * ---------------------------------------------------*/
/* ordered lists */
ol.wp-block-list li {
    margin-bottom: 1rem;
}

/**** Accordians ****/
.wp-block-kadence-accordion.rgb-custom-accordion button:focus,.wp-block-kadence-accordion button:active {
    box-shadow: none;
}
.wp-block-kadence-accordion.rgb-custom-accordion button.kt-blocks-accordion-header:hover .kt-blocks-accordion-title-wrap {
    font-weight: bold;
}


/* ---------------------------------------------------
 * 99. HOTFIXES & BUGS & TEMP FIXES
 * ---------------------------------------------------*/
