/*
Theme Name: BNE Minimal
Description: A starter template ready for full customizations. Inspired by Sweetness, a full fledge theme by BNE Creative.
Author: Kerry Kline
Author URI: https://www.bnecreative.com
Version: 2025.05.24
Text Domain: bne
License: GPL2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* Globals */
:root {
	/* Defined in options
	--btn-color
	--btn-text-color
	--primary-color
	--secondary-color
	--tertiary-color
	--accent-color
	*/

	/* Layout */
	--content-area-width: 1400px;
	/* Sidebar gap on desktop */
	--sidebar-gutter: 3rem;
	
	
	/* Typography */
	--fs-base: 16px;
	/* --fs-ratio: 1.3; */
		
	/* Fluid Generator: https://fluidtypography.com */
	/* Clamp: (min, fluid, max) */
	--fs-h1: clamp(2rem, 5.196vw + 1.155rem, 2.5rem); 
	--fs-h2: clamp(1.5rem, 1.617vw + 1.519rem, 2rem);
	--fs-h3: clamp(1.3rem, 1.386vw + 1.079rem, 1.5rem);
	--fs-h4: clamp(1.125rem, 1.155vw + 0.826rem, 1.3rem);
	--fs-h5: clamp(1rem, 0.693vw + 0.821rem, 1.125rem);
	--fs-h6: clamp(0.875rem, 0.462vw + 0.755rem, 1rem);
	
	--body-font-family: 'Montserrat';
	--body-font-color: #222;

	--heading-font-family: 'Montserrat';
	--heading-font-color: var(--primary-color);
	--heading-font-weight: 400;

	--link-color: var(--secondary-color);
	--link-color-hover: var(--primary-color);
	
	/* Menu */
	--menu-alignment: flex-end; /* use "center" for centering links */
	--menu-bg-color: transparent; /* wrapper */
	
	--menu-top-color: #fff;
	--menu-top-color-hover: #fff;
	--menu-top-bg-color: transparent;
	--menu-top-bg-color-hover: var(--secondary-color);
	--menu-top-color-border: transparent;

	--menu-sub-color: #333;
	--menu-sub-color-hover: #333;
	--menu-sub-bg-color: #f4f4f4;
	--menu-sub-bg-color-hover: #fff;

	/* Forms */
	--input-color: #535165;
	--input-bg-color: #f4f4f4;
	--input-border-radius: 0.5rem;
	--input-shadow: none;
	
	/* Buttons */
	--btn-submit-text-size: 1.125rem;
	--btn-submit-padding: .625rem 1rem;
	--btn-submit-width: auto;
	--btn-border-radius: .25rem;
	/* --btn-color: #fff */
	/* --btn-text-color: #333 */
	
	
	/* Media */
	--wp--style--block-gap: 1.2rem;

	/* Utility */
	--border-radius: 1rem;
	
}
/* END Globals */



/* 	=================================
	Utilities
=================================  */



/* WP Columns */
@media( min-width: 1024px ) {
	:where( .wp-block-columns.is-layout-flex ) {
		column-gap: 4em;
	}
	
	.wp-block-columns + .wp-block-columns {
		margin-top: 3rem;
	}
}

@media( max-width: 768px ) {
	.wp-block-columns.columns-sm-2 > .wp-block-column {
		flex-basis: 40% !important;
	}
	.wp-block-gallery.columns-sm-4 > .wp-block-image {
		width: 20% !important;
	}
	.group-row-sm-wrap {
		flex-wrap: wrap !important;
	}
}

.border-radius {
	border-radius: var(--border-radius) !important;
}

@media( max-width: 768px ) {
	.bne-container.no-padding-left-right,
	.bne-container.no-padding-left-right .bne-container-content {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/*	=================================
	Typography
	Self Hosted Font Generator: gwfh.mranftl.com/fonts/
=================================  */
/* montserrat-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/montserrat-v30-latin-regular.woff2') format('woff2'); 
}
/* montserrat-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('assets/fonts/montserrat-v30-latin-600.woff2') format('woff2'); 
}
/* montserrat-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('assets/fonts/montserrat-v30-latin-800.woff2') format('woff2'); 
}


/* == General == */
strong {
	font-weight: 800;
}

.heading-main {
	line-height: 1;
	font-family: var(--heading-font-family);
}
.heading-sub {
	line-height: 1.1;
}

.has-x-large-font-size {
	font-size: 5rem !important;
}



/* == Mobile Typography Resets == */
/* let's make sure any inline font changes in WP blocks are reset for mobile */
@media(max-width:600px) {
	h1, .h1, span.heading-main, .has-x-large-font-size { font-size: var(--fs-h1) !important; }
	h2, .h2, span.heading-sub { font-size: var(--fs-h2) !important; }
	h3, .h3 { font-size: var(--fs-h3) !important; }
	h4, .h4 { font-size: var(--fs-h4) !important; }
	h5, .h5 { font-size: var(--fs-h5) !important; }
	h6, .h6 { font-size: var(--fs-h6) !important; }
}



/* Buttons */
.wp-block-button__link,
.btn {
	border-radius: 0;
	text-transform: uppercase;
}
.wp-block-button.is-style-outline:hover a:not(.has-text-color) .btn-icon,
.wp-block-button.is-style-outline a:not(.has-text-color):hover {
	color: var(--btn-color) !important;
}
.wp-block-button.is-style-outline a.has-light-color:hover {
	color: #000 !important;
}


/* Forms */





/*	=================================
	Media
=================================  */

@media(max-width:500px) {
	.wp-block-image .alignleft,
	.wp-block-image .alignright {
		float: none;
	}
}


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

/* == Mobile Menu btn == */
.mobile-nav-btn {
	background-color: var(--secondary-color);
	height: 100%;
	width: fit-content;
}

.mobile-nav-btn span {
	display: block;
}


/* == Menu Button CTA == */
@media( min-width: 768px ) {
	ul.primary-nav {
		align-items: center; /* Aligns with menu btns */
	}
	.menu-btn {
		margin-left: 1rem;
	}
}

ul.primary-nav .menu-btn a {
	background-color: var(--primary-color);
	color: #fff;
	border: 1px solid transparent;
	border-radius: var(--btn-border-radius);
	font-weight: bold;
}

ul.primary-nav .menu-btn:hover a {
	background-color: #fff;
	color: var(--primary-color);
	border-color: var(--primary-color);
	box-shadow: none;

}

.wp-block-button.icon-phone a,
ul.primary-nav .menu-btn .menu-label {
	display: inline-flex;
	align-items: center;
	font-size: 1.2rem;
}

.wp-block-button.icon-phone a:before,
ul.primary-nav .menu-btn .menu-label:before {
	--size: 1.5em;
	/* SVG Phone */
	content: "";
	height: var(--size);
	width: var(--size);
	margin-right: 0.5em;
	
	background-color: var(--tertiary-color);
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: var(--size);
	mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24c-17.4 4.8-29.5 20.6-29.5 38.6 0 247.4 200.6 448 448 448 18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6l-40.4 49.3c-70.4-33.3-127.4-90.3-160.7-160.7l49.3-40.3c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>');
}

ul.primary-nav .menu-phone a {
	font-size: 1.3rem ;
}

/* == General Menu Adjustments == */
ul.primary-nav > li > a {
	font-weight: 600;
	font-size: 1.2rem;
	
}
ul.primary-nav > li > a .menu-label {}



/* == Mobile Menu Adjustments == */
@media(max-width: 768px) {
	body.has-mobile-nav.admin-bar #header-wrapper:not(.is-sticky) #primary-nav-wrapper {
		top: calc( (var(--header-height) * 1px ) + 46px);
	}
	
	/* Mobile Menu */
	body.has-mobile-nav #primary-nav-wrapper {
		top: calc( var(--header-height) * 1px );
		width: 100vw;
		--menu-bg-color: #fff;
		--menu-top-color: #000;
		--menu-top-color-hover: #fff;
		--menu-top-bg-color: transparent;
		--menu-top-bg-color-hover: var(--secondary-color);
		--menu-top-color-border: transparent;
		
	}
}



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

#header-above {
	background-color: #fff;
	padding: 0 30px 0.5rem 30px;
	display: none;
	color: var(--primary-color);
}

#header-above .wp-block-button {
	clip-path: polygon(5% 0%, 100% 0, 95% 100%, 0% 100%);
}
#header-above .wp-block-button + .wp-block-button {
	clip-path: polygon(7% 0%, 100% 0, 93% 100%, 0% 100%);
}
#header-above .wp-block-button a {
	padding-left: 2rem !important;
	padding-right: 2rem !important;
}


#header-above .wp-block-buttons {
	margin: 0;
}



#header-wrapper {
	padding: 0;
	box-shadow: 0px 0px 3px rgba(0,0,0,.4);
	background-color: var(--primary-color);
}

#header-wrapper .row {
	align-items: stretch;
	gap: 0;
	margin: 0;
}

#header-wrapper .row > * {
	padding: 0;
}

.header-logo {}

.header-logo a {
	display: block;
}

.header-logo img {
	padding: .8rem;
	max-height: 70px;
	width: auto;
	text-align: center;
}



@media( min-width: 768px ) {
	#header-above {
		display: block;
	}
	
	#header-wrapper {
		padding: 0.5rem 30px;
		border-bottom: 4px solid white;
		
	}
	
	.header-logo {
		position: absolute;
		top: -50px;
	}
	
	.header-logo, .header-logo * {
		transition: all .3s ease;
	}
	
	.header-logo:before {
		content: "";
		background: #fff;
		width: 1000px;
		height: 100%;
		position: absolute;
		right: 0;
		z-index: -1;
	}
	.header-logo:after {
		content: "";
		position: absolute;
		bottom: 0;
		right: -50px;
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 0px 0px 100px 50px;
		border-color: transparent transparent transparent #fff;
	}
	
	.header-logo img {
		max-height: calc( (var(--header-height) * 1px ) + 30px);
		padding: .5rem;
		max-width: 250px;
	}
	
	.header-widget-area {
		display: flex;
		gap: 2rem;
		padding-right: 1rem;
		align-items: center;
		justify-content: end;
		font-size: 1rem;
		font-weight: bold;		
	}
	
	.header-widget-area p {
		margin: 0;
	}
	
	/* Widget Alignment */
	/* .header-widget-area .widget:last-of-type {
		margin-left: auto; 
	} */
	
}



/* == Transparent Header == */
@media(min-width: 768px) {
	body.has-transparent-header #header-wrapper {
		background-color: rgba(0, 0, 0, 0.2);
		--menu-top-color: #fff;
		--menu-top-color-hover: #fff;
		--menu-top-bg-color: transparent;
		--menu-top-bg-color-hover: transparent;
		--menu-top-color-border: var(--primary-color);
	}
	body.has-transparent-header #header-wrapper:not(.is-sticky) {
		top: calc( var(--header-above-height) * 1px );
	}
	
	body.has-transparent-header #header-wrapper.is-sticky {
		background-color: #fff !important;
		transition: all .3s ease;
		--menu-top-color: #000;
		--menu-top-color-hover: var(--primary-color);
		--menu-top-bg-color: transparent;
		--menu-top-bg-color-hover: transparent;
		--menu-top-color-border: var(--primary-color);
	}

	body.has-transparent-header .default-logo {
		display: none;
	}
	body.has-transparent-header .transparent-logo {
		display: inline-block;
	}
	
	body.has-transparent-header #header-wrapper.is-sticky .transparent-logo {
		display: none;
	}
	body.has-transparent-header #header-wrapper.is-sticky .default-logo {
		display: inline-block;
	}

}



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

/* Enable Mobile Sticky */
@media(max-width: 768px) {

	#wrapper {
		overflow: initial;
	}
	
	#header-wrapper {
		position: sticky;
		top:0
	}

}

/* Mobile Sticky Header */
.mobile-header-btns {
	display: flex;
	align-items: stretch;
	height: 70px
}

.mobile-header-btns > * {
	box-shadow: none;
	border: none;
}

.mobile-header-btns .header-cta {
	height: 100%;
	max-width: fit-content;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	padding: .8rem 1rem;
	background-color: var(--tertiary-color);
	color: #fff;
}

.mobile-header-btns .header-cta span {
	display: block
}

@media(max-width: 768px) {
	#header-wrapper {
		background-color: white;
	}
	.logo-col {
		justify-content: center;
		display: flex;
	}
	.logo-col img {
		padding: .1rem;
	}
}

/* Desktop Sticky */
@media(min-width: 768px) {
	#header-wrapper.is-sticky .header-logo {
		top: 0;
	}
	#header-wrapper.is-sticky .header-logo img {
		max-height: calc(var(--header-height) * 1px);
	}
}

/*	=================================
	Main
=================================  */


/* == Page Title Wrapper ==  */
#page-title-wrapper {}
#page-title-wrapper .entry-header {}
#page-title-wrapper .entry-title {}
#page-title-wrapper .subheading {}
#page-title-wrapper .cta {}
#page-title-wrapper .btn {}


/* == Featured Image == */
.page-template.sidebar-none .featured-image-wrapper.alignfull {
	margin-top: -40px;
}

@media(min-width: 768px) {
	.banner-cta {
		border-left: 4px solid white;
		z-index: 1;
		transform:skew(-15deg);
		line-height: 1;
	}
	.banner-cta .bne-container-content {
		transform:skew(15deg);
	}
	.banner-cta:after {
		content: "";
		background: var(--primary-color);
		width: 1000px;
		height: 100%;
		position: absolute;
		left: 0;
		top: 0;
		z-index: -1;
		border-top: 4px solid white;
		border-bottom: 4px solid white;
	}
	
	.banner-cta .wp-block-buttons {
		position: absolute;
		left: 50%;
		transform: translateX(-50%) skew(-30deg);
	}
	
	.banner-cta .wp-block-button__link {	
		background: linear-gradient(to bottom, var(--tertiary-color), #E6780D) !important;
		border: 4px solid white;
		transform: skew(15deg);
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

}


.bne-container.has-right-bg.bg-split-angle .bne-container-image {
	clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);

}

.bne-container.has-left-bg.bg-split-angle .bne-container-image {
	clip-path: polygon(0 0, 80% 0%, 100% 100%, 0% 100%);
}


/*	=================================
	Footer
=================================  */

#footer-wrapper {
	color: #fff;
	background-color: var(--primary-color);
	--heading-font-color: var(--tertiary-color);
	--link-color: var(--tertiary-color);
	--link-color-hover: #fff;
}

#footer-wrapper .widget h3,
#footer-wrapper .widget-title {
	position: relative;
	margin-bottom: 2rem;
}

#footer-wrapper .widget h3:after,
#footer-wrapper .widget-title:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -10px;
	width: 150px;
	border-bottom: 4px solid var(--secondary-color);
}

.footer-copy {}




/*	=================================
	Widgets / Sidebar
=================================  */




/*	=================================
	Blocks
=================================  */

@media(max-width: 1430px) {
	.bne-container.has-right-bg .bne-container-content {
		padding-left: 30px;
	}
	.bne-container.has-left-bg .bne-container-content {
		padding-right: 30px;
	}
}

/* == Services == */
.bne-service-wrapper .service-icon .wp-block-boldblocks-svg-block__inner {
	border-radius: 50% !important;
	padding: 1.5rem !important;
}

@media(max-width: 768px) {
	.bne-service-wrapper .service-icon > * {
		width: 100px;
		height: 100px;
		margin: 0 auto;
	}
}

/*	=================================
	Plugins
=================================  */






