/*
Theme Name:     Chaberton Energy
Theme URI:      n/a
Template:       kadence
Author:         Globe Runner
Author URI:     https://globerunner.com
Description:    This is a Kadence child theme created for Chaberton Energy by Globe Runner.
Version:        1.3.2
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/*****************
* CUSTOM
*****************/
h1 span, h2 span {
	color: #ecc11b;
}
.white {
	color: #fff;
}
.yellow {
	color: #ecc11b;
}
.header-angled {
	clip-path: polygon(0% 0%, 97% 0%, 100% 100%, 3% 100%);
	margin-bottom: 40px !important;
}
@media (min-width: 1024px) {
	.header-angled {
		margin-left: -40px !important;
	}
}
.header-angled.header-slider {
	text-align: left;
	position: absolute;
	top: 82%;
	transform: translateY(-50%);
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 6% 100%);
	width: 100%;
	margin: 0;
	z-index: 9;
}
@media (min-width: 768px) {
	.header-angled.header-slider {
		left: 60px;
	}
}
.img-angled-left img {
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 35% 100%);
}
.single-content p {
	margin-bottom: 24px;
}
.hero,
.bg-angled-right {
	position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background: #fff;
    width: 50%;
    height: 100%;
    clip-path: polygon(0% 0%, 62% 0%, 100% 100%, 0% 100%);
}
.bg-angled-right {
	background-size: 45% 100% !important;
}
.bg-angled-right::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    background: #fff;
    width: 50%;
    height: 100%;
    clip-path: polygon(50% 0%, 0% 0%, 0% 100%, 10% 100%);
}
.bg-angled-left::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    background: #fff;
    width: 50%;
    height: 100%;
    clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 35% 100%);
}
@media (max-width: 767px) {
	.hero .kt-inside-inner-col {
		background-image: none !important;
		background-color: #273f63;
		border-top: solid 16px #ecc11b !important;
		border-right: solid 16px #ecc11b;
		border-bottom: solid 16px #ecc11b;
	}
}

@media (min-width: 1024px) {
	.hero-text .kt-inside-inner-col::before {
		content: '';
		position: absolute;
		border-top: 30px solid #ECC11B;
		width: 100%;
		height: 100%;
		top: 0;
		right: 0;
		background: #273F63;
		z-index: -1;
		clip-path: polygon(0% 0%, 62% 1%, 80% 100%, 0% 100%);
	}
	.hero-text .kt-inside-inner-col::after {
		content: '';
		position: absolute;
		right: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background: #ECC11B;
		z-index: -2;
		clip-path: polygon(0% 0%, 65% 1%, 83% 100%, 0% 100%);
	}
	.bg-angled-right .kt-row-column-wrap.kt-has-2-columns.kt-row-layout-equal.kt-tab-layout-row.kt-mobile-layout-row.kt-row-valign-top::before {
		content: '';
		position: absolute;
		border: 15px solid #ECC11B;
		width: 24.5%;
		height: 20px;
		top: 0;
		right: 0;
	}
	/* 	.wp-block-kadence-column.kadence-column142_276b7d-17.kvs-md-false.kvs-sm-false::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: -20px;
	background-color: #ECC11B;
	clip-path: polygon(77% 0%, 77% -9%, 55% 98%, 56% 102%);
	z-index: -1;
} */
	.bg-angled-right .wp-block-kadence-column.kvs-md-false.kvs-sm-false::before {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: -20px;
		background-color: #ECC11B;
		clip-path: polygon(77% 0%, 77% -9%, 55% 98%, 56% 102%);
		z-index: -1;
	}
	.bg-angled-right::after {
		content: '';
		position: absolute;
		border: 15px solid #ECC11B;
		width: 55.5%;
		height: 20px;
		bottom: 0;
	}
}
.hero-text .kt-inside-inner-col {
	padding-top: 5rem;
	padding-bottom: 5rem;
}
@media (max-width: 1200px) {
	.hero-text .kt-inside-inner-col {
		padding-left: 2rem;
	}
}
@media (max-width: 1024px) {
	.hero-text .kt-inside-inner-col {
		background-image: none !important;
		background-color: #273f63;
		border-top: solid 16px #ecc11b !important;
		border-right: solid 16px #ecc11b;
		border-bottom: solid 16px #ecc11b;
	}
}
@media (max-width: 1024px) {
	h2 br {
		display: none;
	}
}

/*****************
* HOME
*****************/
.home-hero {
	background-image: url(https://chabertonpro.wpenginepowered.com/wp-content/uploads/2024/08/home-accent-bg.png);
	background-size: 700px;
	background-repeat: no-repeat;
	background-position: 0 100%;
}
.home-hero h1 {
	text-transform: uppercase;
}
.home-ctas .kt-infobox-textcontent {
	text-align: left;
}
.home-blog .kt-blocks-post-grid-item-inner-wrap {
	position: relative;
}
.home-blog .kt-blocks-post-grid-item-inner {
	position: absolute;
	bottom: 0;
	left: 16px;
}

/*****************
* SLIDER
*****************/
.splide__arrows {
	left: 40% !important;
	bottom: -5px !important;
}
.home-slider .splide__arrows {
	left: 0 !important;
	bottom: 8% !important;
}
.splide__arrow {
	background: #fff !important;
	border: none !important;
	border-radius: 50px !important;
	box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.2) !important;
	opacity: 1 !important;
	width: 40px !important;
	height: 40px !important;
}
.home-slider .splide__arrow {
	background: #273F63 !important;
}
.splide__arrow:hover {
	background: #ecc11b !important;
}
.home-slider .splide__arrow:hover {
	background: #fff !important;
}
.kb-splide .splide__arrow svg {
	fill: #273F63 !important;
}
.home-slider .kb-splide .splide__arrow svg {
	fill: #fff !important;
}
.kb-splide .splide__arrow:hover svg {
	fill: #273F63 !important;
}
.home-slider .kb-splide .splide__arrow:hover svg {
	fill: #ecc11b !important;
}

/*****************
* FORMS
*****************/
.gform_heading {
	display: none;
}
.gform_drop_area {
	padding: 16px !important;
}

/*****************
* FORM CTA
*****************/
.form-cta .gfield_radio {
	flex-direction: row !important;
}
.form-cta .gfield_description {
	margin-bottom: 4px !important;
}
.form-cta .gform-theme--foundation .gform_fields {
	row-gap: 24px !important;
}

/*****************
* NUMBER GRID
*****************/
.number-grid {
	position: relative;
}
.number-grid .kt-infobox-textcontent {
	display: flex;    
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
}

/*****************
* ANGLED CTAs
*****************/
.angled-cta {
	position: relative;
}
.angled-cta h3 {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 6% 100%);
	left: -24px;
	margin: 0;
}
.angled-cta figure {
	margin: 0 !important;
}
.angled-cta img {
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 10% 100%);
	max-height: 155px;
	object-fit: cover;
}
.angled-cta .kt-row-column-wrap {
	margin-right: 0 !important;
}

/*****************
* ACCORDION
*****************/
.kt-accordion-header-wrap {
	clip-path: polygon(0% 0%, 97% 0%, 100% 100%, 3% 100%);
}

/*****************
* FOOTER
*****************/
footer p {
	margin: 8px 0 8px !important;
}
.footer-widget-area .wp-block-kadence-image img {
	max-width: 300px;
	margin: 0 auto;
}
@media (min-width: 768px) {
	.site-footer-top-section-2,
	.site-footer-bottom-section-2 {
		justify-content: flex-end;
		align-items: center;
	}
	.footer-widget-area .wp-block-kadence-image img {
		margin: 0;
	}
}
@media (max-width: 767px) {
	.ft-ro-dir-row .footer-section-inner-items-2 .footer-widget-area {
		margin-left: 0 !important;
	}
	.ft-ro-dir-row .footer-section-inner-items-2 .footer-widget-area.content-tablet-align-center:first-child~.footer-widget-area:last-child {
		margin: 0 auto !important;
	}
}

/* Additional CSS from appearance*/
.mobile-navigation ul li {
	font-size: 18px;
}

@media (min-width: 1025px) {
svg.kadence-svg-icon.kadence-arrow-down-svg {
    display: none;
}
}

@media (min-width: 1025px) and (max-width: 1236px) {
	.main-navigation .primary-menu-container > ul li.menu-item > a {
		padding-left: 5px;
    	padding-right: 5px;
		font-size: 15px;
	}
}

.popup-drawer .drawer-inner {
	background: #273f63;
	border-left: 5px solid #ecc11b;
	max-width: 60%;
}
