/*
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: 2024.12.30
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, 2rem); 
	--fs-h2: clamp(1.5rem, 1.617vw + 1.519rem, 1.8rem);
	--fs-h3: clamp(1.3rem, 1.386vw + 1.079rem, 1.2rem);
	--fs-h4: clamp(1.125rem, 1.155vw + 0.826rem, 1.1rem);
	--fs-h5: clamp(1rem, 0.693vw + 0.821rem, 1.125rem);
	--fs-h6: clamp(0.875rem, 0.462vw + 0.755rem, 1rem);
	
	--body-font-family: "Montserrat", serif;
	--body-font-color: #666;

	--heading-font-family: "Montserrat", serif;
	--heading-font-color: var( --primary-color);
	--heading-font-weight: 500;

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

	--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: 10px 10px 0 10px;
	/* --btn-color: #fff */
	/* --btn-text-color: #333 */
	
	
	/* Media */
	--wp--style--block-gap: 1.2rem;
	
	--theme-border-radius: 5% 5% 0 5%;
	
}
/* END Globals */



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



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

.has-border {
	border: 1px solid #DDDDDD;
}


/*	=================================
	Typography
=================================  */



/* Mobile Typography Resets */
/* let's make sure any inline font changes in WP blocks are reset for mobile */
@media(max-width:600px) {
	h1, .h1 { font-size: var(--fs-h1) !important; }
	h2, .h2 { 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; }
	span.heading-main { font-size: var(--fs-h2) !important; }
}

/* Fancy Drop Letter */
.letter-first {
	margin-top: 4em;
}

h2.letter-first:first-letter,
.widget .letter-first:first-letter,
.entry-title.letter-first:first-letter,
.letter-first .heading-main:first-letter {
	font-family: "Carattere", serif;
	font-size: 3em;
	margin-right: .2rem;
	line-height: 0;
	text-transform: none !important;
}

.uppercase {
	text-transform: uppercase;
}


@media( max-width: 768px ) {
	.entry-title.letter-first:first-letter,
	.letter-first .heading-main:first-letter {
		font-size: 2em;
	}
}


strong {
	font-weight: 600;
}


h1, h2, h3 {
	line-height: 1.1;
}

p + h2,
ul + h2 {
	margin-top: 2rem;
}

/* == List == */
.fa-ul > li {
	margin-bottom: .8rem;
}
.fa-ul.icon-check > li:before {
	content: "\f00c";
	font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
	left: calc(var(--fa-li-width, 2em)*-1);
	position: absolute;
	text-align: center;
	width: var(--fa-li-width,2em);
	line-height: inherit;
}



/* == Buttons == */
.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;
}

.is-style-3d .wp-block-button__link {
	border: 1px solid var(--text-color);
	box-shadow: -8px -5px 0px var(--text-color);
	background:  #fff;
	border-radius: 10px 10px 0 10px;
}

.is-style-3d .wp-block-button__link:hover {
	box-shadow: -8px -5px 20px rgba(0,0,0,.2);
}

.is-style-3d .wp-block-button__link .btn-icon {
	color: var(--text-color);
}

.btn,
.wp-block-button__link {
	font-size: .8rem;
	font-weight: 400;
	padding: .6rem 1.5rem;
	text-transform: uppercase;
	font-weight: 600;
}

input[type="submit"],
button[type="submit"]
 {
	border: 1px solid var(--btn-text-color);
	box-shadow: -8px -5px 0px var(--btn-text-color);
	background: #fff;
	border-radius: 10px 10px 0 10px;
}

.btn.btn-lg, .wp-block-button.btn-lg a {
	padding: .625rem 2rem !important
}

.wp-block-buttons { gap: 1rem; }


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

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

.is-style-theme-frame img {
	border-radius: 5% 5% 0 5%;
	box-shadow: -10px -10px 0px var(--secondary-color);
	transform: translateX(10px);
	margin-right: 10px;
	margin-top: 20px;
}

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

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

.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: auto;
	}
}

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: red;
	box-shadow: none;

}
ul.primary-nav .menu-btn .menu-label:before {
	content: "\f095";
	font-family:  "Font Awesome 6 Pro", "Font Awesome 6 Free";
	margin-right: .5rem;
}

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

/* == Mobile 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 );
		--menu-bg-color: #fff;
		width: 100vw;
	}
}

@media (min-width: 768px) {
	#primary-nav-wrapper {
		box-shadow: 0px 0px 3px rgba(0,0,0,.4);
		background-color: var( --menu-top-bg-color );
		/* margin: 1rem -30px 0 -30px; */
		padding: 1rem 30px;
		z-index: 2;
	}
}

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

#header-above {
	background-color: #222;
	padding: 10px 30px;
	display: none;
	color: #fff;
	font-weight: 600;
}

#header-above .social-icons {
	color: #fff;
	font-size: 1.2rem;
	margin-bottom: 0;
}

#header-wrapper {
	padding: 0;
	
}

#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;
}

.header-widget-area {
	display: none;
}

@media( min-width: 768px ) {
	#header-above {
		display: block;
	}
	
	#header-wrapper {
		padding: 1rem 30px;
	}
		
	.header-logo {
		text-align: left;
	}
	
	.header-logo img {
		max-height: var(--menu-bg-height);
		padding: 0;
	}
	
	.header-widget-area {
		display: flex;
		gap: 2rem;
		/* font-size: .9rem; */
		/* font-weight: bold; */
		align-items: center;
		/* padding-right: 1rem; */
		justify-content: end;
	}
	
	.header-widget-area p {
		margin: 0;
	}
	
	/* Widget Alignment */
	.header-widget-area .widget:last-of-type {
		/* margin-left: auto;  */
	}
	
	.header-widget-area .bne-heading,
	.header-widget-area .wp-block-buttons {
		margin-bottom: 0;
	}
	
}



/* == Transparent Header == */
@media(min-width: 768px) {
	body.has-transparent-header #header-wrapper {
		background-color: rgba(0, 0, 0, 0.2);
	}

}




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

/* Enable Mobile Sticky */
@media (max-width: 768px) {
	
	#wrapper {
		overflow: initial;
	}
	
	#header-wrapper {
		position: sticky;
		top:0;
		z-index: 3;
	}

}

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



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


/* == Page Title Wrapper ==  */
#page-title-wrapper {
	background-color: rgba(68, 115, 142, 0.18);
}
.page-id-54 #page-title-wrapper {
	background-color: rgba(68, 115, 142, 0.53);
}
#page-title-wrapper .entry-header {max-width: 80%;}
#page-title-wrapper .entry-title {
	font-weight: 600;
	
}
#page-title-wrapper .subheading {}
#page-title-wrapper .cta {}
#page-title-wrapper .btn {}

@media( min-width: 768px ) {
	#page-title-wrapper {
		background-position: center right;
	}
	
}

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


/* Blog Post */
.wp-block-query-pagination .page-numbers.current {
	background-color: var(--btn-text-color);
	border-color: var(--btn-text-color);
	color: var(--btn-color);
}





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

/* == Footer Action Bar == */
#footer-action {
	background-image: url('assets/images/mosaic_light.png');
	background-repeat: repeat-all;
	background-size: auto;
	background-color: var(--primary-color);
	padding: 60px 30px 60px 30px;
	box-shadow: 0px 0px 10px rgba(0,0,0,.3);
	z-index: 1;
}

#footer-action h2, 
#footer-action p {
	color: white;
}

#footer-action h2 {
	margin-top: 0;
	font-size: 3rem;
}



#footer-wrapper {
	background-color: #F5F5F5;
	font-size: .9rem;
}

#footer-wrapper .widget-title,
#footer-wrapper h3 {
	text-transform: uppercase;
}

#footer-wrapper p strong {
	color: #000;
}

#footer-below {
	padding: 1rem 30px;
	background-color: #000;
	color: #fff;
	--link-color: #fff;
	--link-color-hover: var(--tertiary-color);
}

.footer-copy {}

@media(max-width: 768px) {
	.footer-widgets {
		text-align: center;
	}
}



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




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

/* == Cards == */
.wp-block-bne-card.card-primary,
.wp-block-bne-card.card-secondary {
	background-color: transparent;
	box-shadow: none;
	border: none;
}
.wp-block-bne-card.card-primary .card-body,
.wp-block-bne-card.card-secondary .card-body {
	margin: 0 auto;
	width: 80%;
	margin-top: -4rem;
	border-radius: 1.5rem 1.5rem 0 1.5rem;
	background-color: var(--primary-color);
}
.wp-block-bne-card.card-secondary .card-body {
	background-color: var(--secondary-color);
}

.wp-block-bne-card.card-primary *:not(a),
.wp-block-bne-card.card-secondary *:not(a) {
	color: #fff;
}


/* == Tooth BG Container == */
.wp-block-bne-container.tooth-bg .bne-container-content {
	z-index: 2;
}
.wp-block-bne-container.tooth-bg:before {
	content: '';
	background-image: url('assets/images/tooth-icon.webp');
	position: absolute;
	right: 0;
	top: -20px;
	height: 300px;
	width: 300px;
	background-size: contain;
	background-repeat: no-repeat;
	transform: scale(1.3);
	z-index: 1;
}

/* == Container == */
@media(max-width:768px) {
	.bne-container .wp-block-media-text__content {
		padding-left: 0;
		padding-right: 0;
	}
}





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


/* == BNE Portfolio == */
.portoflio-details h2.wp-block-heading {
	font-size: 1.3rem;	
}

.portoflio-details .wp-block-post-featured-image {
	margin-top: 2rem;
	margin-bottom: 1rem;
}