/*!
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
*/

/* Theme customization starts here
-------------------------------------------------------------- 
00. CORE
01. SITEWIDE
02. FOOTER
10. PAGE > HERO
30. SPECIFIC PAGES
	31. Homepage
50. BLOCK CUSTOMISATIONS
99. HOTFIXES & BUGS

/* ---------------------------------------------------
* 00. CORE 
* ---------------------------------------------------*/
:root body {
	--global-kb-font-size-xxxl: clamp(1.8rem, 1.4842rem + 1.2632vw, 3rem);
    --global-kb-font-size-xxl: clamp(1.8rem, 1.5368rem + 1.0526vw, 2.8rem); /* H1 */
    --global-kb-font-size-xl: clamp(1.8rem, 1.6947rem + 0.4211vw, 2.2rem); /* H2 */
    --global-kb-font-size-lg: clamp(1.4rem, 1.334rem + 0.3299vw, 1.6rem); /* H3 */
    --global-kb-font-size-md: 1.4rem; /* H4 */
    --global-kb-font-size-sm: 1rem;
    --global-kb-font-size-xsm: 0.8rem;
}

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

/*Text balance */
.balance {
    text-wrap: balance;
}

/* ---------------------------------------------------
 * 01. SITEWIDE
 * ---------------------------------------------------*/

@media screen and (min-width: 768px) {
	.curran-rotating-circle-row .kt-row-column-wrap > .wp-block-kadence-column:first-of-type > .kt-inside-inner-col > .wp-block-kadence-column:last-of-type {
		height: 100%;
	}
}

@media screen and (max-width: 768px) {
	.curran-rotating-circle-row .wp-block-kadence-column.kb-section-dir-horizontal > .kt-inside-inner-col > .wp-block-kadence-column {
		flex: unset;
	}

	.curran-rotating-circle-row .wp-block-kadence-column.kb-section-dir-horizontal:first-of-type > .kt-inside-inner-col > .wp-block-kadence-column:last-of-type {
		min-height: 300px;
	}
}

/* Rotating circle */
.curran-rotating-circle {
	position: absolute;
	top: -60px;
	left: 20px;
}

.curran-rotating-circle .kt-inside-inner-col {
	width: 135px;
	height: 135px;
}

.curran-rotating-circle .kt-inside-inner-col > * {
	position: absolute;
}

.curran-rotating-circle .kt-inside-inner-col figure {
	transform-origin: center center;
	will-change: transform;
	transform-style: preserve-3d;
	transform: translate3d( 0px, 0px, 0px ) rotateZ( 180deg ); /* This is overwritten in js */
	inset: 10px;
}

/* Breadcrumbs */
.nos-breadcrumbs {
	
	& span:not(.divider),
	& a {
		font-weight: bold;
	}
	
	& a {
		text-decoration: none;
	}
	
	& .nos-current-page {
		color: var( --global-palette2 );
	}
}

/* Breadcrumbs on product pages */
.single-curran_product .nos-breadcrumbs {
	& span,
	& a {
		color: var( --global-palette6 );
	}
	
	& .nos-current-page {
		color: var( --global-palette1 );
	}
}

/* Page/post headers */
.page section.entry-hero,
.archive section.entry-hero,
.blog section.entry-hero {
	max-width: var( --global-content-wide-width );
	
	& .entry-hero-container-inner {
		border-radius: 10px;
		overflow: hidden;
	}
}

.single-post section.entry-hero {
	& .entry-hero-container-inner {
		border-radius: 10px;
		overflow: hidden;
	}
}

.single-curran_product .hero-container {
	padding: 0;
}

/* Services loop */
@media screen and (min-width: 1024px) {
	.curran-services-loop-row .curran-services-explore {
		max-width: 40%;
	}
}

.curran-services-loop .kt-blocks-post-grid-item-inner-wrap {
	position: relative;
}

.curran-services-loop .wp-block-kadence-single-icon {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	cursor: pointer;
	z-index: 1;
	
	& .kb-svg-icon-wrap {
		border: solid 1px var( --global-palette9 );
		background: var( --global-palette2 );
		border-radius: 50%;
		padding: 0.5rem;
	}
	
	& i {
		color: var( --global-palette1 );
		font-size: 1.2rem;
	}
}

/* AQL adds a p tag when using shortcode - hide */
p:empty {
	display: none;
}

/* Posts loop */
.curran-loop-hover article {
	transition: box-shadow 0.3s ease;
	
	&:hover {
		box-shadow: 0px 2px 5px 1px var(--global-gray-400);
	}
}

/* Make images grow on hover if clickable */
div.wp-block-kadence-postgrid .kt-blocks-post-grid-item,
body.blog .post-thumbnail {
	overflow: hidden;
}

.kt-blocks-post-grid-item .kadence-post-image,
.wp-block-kadence-image:has(a),
body.blog .post-thumbnail-inner,
.curran-products-quad .kt-inside-inner-col:has(a) {
	transition: all 0.3s ease;
}

.wp-block-kadence-image:has(a):hover,
.kt-blocks-post-grid-item:hover .kadence-post-image,
body.blog .post-thumbnail-inner:hover {
	transform: scale(1.08);
}

.curran-products-quad .wp-block-kadence-column:hover .kt-inside-inner-col {
	background-size: 104% 104%;
}

 /* ---------------------------------------------------
 * 02. FOOTER
 * ---------------------------------------------------*/

footer#colophon {
	background-size: auto 100%;
}

 /* ---------------------------------------------------
 * 31. HOMEPAGE
 * ---------------------------------------------------*/
