/***
*Table of contents*
Header 
|- scroll behavior
|- floating
|- logo
|- menu 
|- search

Search

Menu content
|- back button
|- close button
|- menu list
|- sub-menu background text
|-- categories
|-- solutions
|-- resources
|-- about

***/

/* menu slide test */
/* .overlay-navigation #page.closed-header .side-header {
	animation: menu-off 1s ease forwards;
}

.overlay-navigation #page.show-header .side-header {
	animation: menu-on 1s ease forwards;
}

.overlay-navigation #page.show-header .side-header::after {
	content: url(https://devbuildingbetter.fc9.sandbox.net.nz/wp-content/uploads/2023/07/HOME-poutama-1.png);
	bottom: 0;
	position: absolute;
	bottom: -295px;
	transform: rotate(180deg);
}

@keyframes menu-on {
	0% {
		transform: translateY(-100%);
		opacity: 1;
		visibility: visible;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}
}

@keyframes menu-off {
	0% {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}
	100% {
		transform: translateY(-100%);
		opacity: 1;
		visibility: visible;
	}
} */

/* ==============================
Header
============================== */
/* scroll behavior */
body #page .masthead:not(.scrolling-now) .branding,
body #page .masthead:not(.scrolling-now) .header-bar {
	top: 0;
}

body #page .masthead:not(.scrolling-now) .branding,
body #page .masthead:not(.scrolling-now) .header-bar,
body #page .masthead:not(.scrolling-now) .menu-toggle {
	opacity: 1;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-o-transition: all 0.5s;
}

body #page .masthead.scrolling-now .branding,
body #page .masthead.scrolling-now .header-bar,
body #page .masthead.scrolling-now .menu-toggle {
	top: -300px;
	opacity: 0;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	-o-transition: all 0.5s;
}

/* floating */
body #page .masthead.floating-menu .header-bar {
	position: fixed;
	width: 100%;
	height: 90px;
	background: var(--thirdly-color);
	box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.3);
}

/* logo */
body #page .branding img {
	display: none;
}

body #page .masthead .branding a {
	display: block;
	width: 122px;
	height: 240px;
	background-image: url(../../../../uploads/2023/08/BBHTC-logoTOP-default.png);
	background-repeat: no-repeat;
	transition: var(--transition);
}

body #page .masthead .branding a:hover {
	background-image: url(../../../../uploads/2023/08/BBHTC-logoTOP-hover.png);
}

body #page .masthead.floating-menu .branding {
	padding-top: 90px;
	/* padding-top: 122px; */
}

body #page .masthead.floating-menu .branding a {
	background-image: url(../../../../uploads/2023/07/logo-small.png);
	width: 111px;
	height: 100px;
}

body #page .masthead.floating-menu .branding a:hover {
	background-image: url(../../../../uploads/2023/08/logo-smaill-hover.png);
}

/* menu */
#page .header-bar {
	position: relative;
}

#page .header-bar::before {
	content: url(../../../../uploads/2023/08/Poutama-menu.png);
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

#page .branding {
	padding-top: 50px;
	padding-left: 50px;
}

#page .menu-toggle {
	padding: 0;
	right: 50%;
	/* top: 80px; */
	top: 60px;
	transition: var(--transition);
	color: #fff;
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	transform: translateX(50%);
}

#page .menu-toggle:hover {
	color: var(--secondary-color);
}

#page .menu-toggle .lines-button {
	display: none;
}

#page .menu-toggle::before,
#page .menu-toggle::after {
	background: transparent !important;
}

#page .menu-toggle span {
	padding-inline: 20px;
}

#page .menu-toggle span::before {
	content: url(../../../../uploads/2023/08/menu-deco.png);
	transition: var(--transition);
	position: absolute;
	left: 2px;
	top: -2px;
}

#page .menu-toggle:hover span::before {
	content: url(../../../../uploads/2023/08/menu-deco-hover.png);
	left: -3px;
}

#page .menu-toggle span::after {
	content: url(../../../../uploads/2023/08/menu-deco.png);
	transition: var(--transition);
	position: absolute;
	transform: rotate(180deg);
	right: 3px;
	bottom: -1px;
}

#page .menu-toggle:hover span::after {
	content: url(../../../../uploads/2023/08/menu-deco-hover.png);
	right: -2px;
}

/* search */
.search-button {
	position: absolute;
	top: 20px;
	right: 50px;
	width: 50px;
	height: 50px;
	cursor: pointer;
	background-image: url(../../../../uploads/2023/08/search.png);
	background-repeat: repeat;
	transition: var(--transition);
}

.search-button:hover {
	background-image: url(../../../../uploads/2023/08/search-hover.png);
}

#search-window {
	position: fixed;
	top: 0;
	left: 0;
	background: var(--bg-color-dark);
	height: 100vh;
	display: block;
	width: 100vw;
	z-index: 100;
}

@media only screen and (max-width: 1650px) {
	#page .branding {
		padding-top: 0;
	}

	body #page .masthead .branding a {
		width: 111px;
		height: 100px;
		background-image: url(../../../../uploads/2023/07/logo-small.png);
	}

	body #page .masthead .branding a:hover {
		background-image: url(../../../../uploads/2023/08/logo-smaill-hover.png);
	}
}

@media only screen and (max-width: 767px) {
	#page .branding {
		padding-left: 20px;
	}
	#page .header-bar::before {
		content: url(../../../../uploads/2023/09/Poutama-menu-mobile.png);
	}
	#page .menu-toggle {
		top: 30px;
		font-size: 13px;
	}
	.search-button {
		top: 10px;
		right: 20px;
		background-size: contain;
		width: 40px;
		height: 40px;
	}

	body #page .masthead .branding a,
	body #page .masthead.floating-menu .branding a {
		width: 100px;
		height: 81px;
		background-size: cover;
		background-repeat: no-repeat;
	}

	body #page .masthead .branding a:hover,
	body #page .masthead.floating-menu .branding a:hover {
		height: 91px;
	}

	body #page .masthead.floating-menu .header-bar {
		height: 70px;
	}

	body #page .masthead.floating-menu .branding {
		padding-top: 70px;
	}
}

/* ==============================
Search
============================== */
#search-window.fc-hide {
	display: none;
}

#search-window .search-close-wrapper {
	position: absolute;
	top: 100px;
	right: 140px;
}

#search-window .search-close {
	font-size: 15px;
	line-height: 16px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 700;
	color: #ffffff;
	position: relative;
	transition: var(--transition);
	cursor: pointer;
}

#search-window .search-close:hover {
	color: var(--hover-color);
}

#search-window .search-close::after {
	content: url(../../../../uploads/2023/08/close.png);
	position: absolute;
	top: -6px;
	right: -40px;
	transition: var(--transition);
}

#search-window .search-close:hover::after {
	content: url(../../../../uploads/2023/08/close-hover.png);
}

#search-window .search-wrapper {
	position: relative;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

#search-window .search-wrapper h2 {
	color: #fff;
	margin-bottom: var(--m-space);
}

#search-window .search-wrapper h2 span {
	color: var(--secondary-color);
}

.search-content-wrapper svg {
	display: none;
}

/* #search-window .searchform {
	display: flex;
	flex-direction: column;
	gap: var(--s-space);
} */

#search-window .search-submit-input {
	color: var(--hover-color);
	width: 100%;
	margin-bottom: var(--s-space);
	background: transparent;
	border-bottom: 1px solid;
}

/* WebKit, Blink, Edge browsers */
#search-window .search-submit-input::-webkit-input-placeholder {
	text-align: center;
}
/* Mozilla Firefox 19+ */
#search-window .search-submit-input::-moz-placeholder {
	text-align: center;
	opacity: 1;
}

#search-window .search-submit-button {
	margin-inline: auto;
	display: block;
	border: 1px solid var(--secondary-color);
	letter-spacing: 1.5px;
}

@media only screen and (max-width: 767px) {
	#search-window .search-content-wrapper {
		max-width: 80%;
	}
	#search-window .search-close-wrapper {
		right: 65px;
		top: 30px;
	}
}

/* ==============================
Menu content
============================== */
#fc-custom-menu.menu-overlay {
	min-height: 100vh;
	overflow-y: scroll;
	height: 100%;
	background: var(--bg-color-dark);
	z-index: 1;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

#fc-custom-menu.menu-overlay::-webkit-scrollbar {
	display: none;
}

/* #fc-custom-menu.menu-overlay {
	scrollbar-width: none;
}

#fc-custom-menu.menu-overlay {
	-ms-overflow-style: none;
} */

.masthead.side-header.content-center.fully-inside.full-height.shadow-mobile-header-decoration.sub-downwards.medium-menu-icon.hamburger-bg-enable.hamburger-bg-hover-enable.hamburger-border-enable.hamburger-border-hover-enable.small-mobile-menu-icon.dt-parent-menu-clickable.show-sub-menu-on-hover::-webkit-scrollbar,
.mCSB_dragger_bar {
	display: none;
}

#fc-custom-menu .custom-menu-inner {
	max-width: 1200px;
	margin-inline: auto;
}

/* back button */
#fc-custom-menu .back-menu {
	width: 85px;
	cursor: pointer;
	margin-top: 65px;
	margin-bottom: 70px;
	font-size: 15px;
	line-height: 16px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 700;
	visibility: hidden;
	color: #ffffff;
	padding-left: 130px;
	position: relative;
	transition: var(--transition);
}

#fc-custom-menu .back-menu:hover {
	color: var(--hover-color);
}

#fc-custom-menu .back-menu::before {
	content: url(../../../../uploads/2023/08/go-back.png);
	position: absolute;
	top: -8px;
	left: 100px;
	transition: var(--transition);
}

#fc-custom-menu .back-menu:hover::before {
	content: url(../../../../uploads/2023/08/go-back-hover.png);
}

/* close button */
#page .fc-close-button {
	padding: 0;
	padding-right: 140px;
	margin-top: 65px;
	margin-bottom: 70px;
	margin-inline: 0;
	background: transparent;
}

#page .fc-close-button::before,
#page .fc-close-button::after {
	background: transparent !important;
}
#page .close-line-wrap {
	display: none;
}

.fc-close-button .close-menu {
	font-size: 15px;
	line-height: 16px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: 700;
	color: #ffffff;
	position: relative;
	transition: var(--transition);
}

.fc-close-button:hover .close-menu {
	color: var(--hover-color);
}

.fc-close-button .close-menu::after {
	content: url(../../../../uploads/2023/08/close.png);
	position: absolute;
	top: -9px;
	right: -40px;
	transition: var(--transition);
}

.fc-close-button:hover .close-menu::after {
	content: url(../../../../uploads/2023/08/close-hover.png);
}

/* menu list */
#fc-custom-menu .menu-text {
	color: #fff;
	font-size: clamp(1.875rem, 1.4286rem + 1.4286vw, 2.5rem);
	font-weight: 700;
	line-height: clamp(2.125rem, 1.4286rem + 1.4286vw, 2.813rem);
	transition: var(--transition);
	position: relative;
}

#fc-custom-menu [data-level="1"] .menu-text::after {
	content: url(../../../../uploads/2023/08/menu-next.png);
	position: absolute;
	top: 2px;
	right: -30px;
	transition: var(--transition);
}

#fc-custom-menu [data-level="1"] .menu-text:hover::after {
	content: url(../../../../uploads/2023/08/menu-next-hover.png);
}

#fc-custom-menu .menu-text span {
	color: var(--secondary-color);
	display: block;
	font-size: clamp(1.25rem, 1.2946rem + -0.1429vw, 1.1875rem);
	font-weight: 700;
	line-height: 22px;
	text-transform: uppercase;
	transition: var(--transition);
}

#fc-custom-menu .menu-text:hover,
#fc-custom-menu .menu-text:hover span {
	color: var(--hover-color);
}

#fc-custom-menu .next-level-button {
	display: none;
}

#fc-custom-menu .sub-nav {
	display: none !important;
}

/*  sub-menu background text */
.opened-sub-menu {
	position: relative;
	padding-left: 100px;
	padding-bottom: 60px;
}

.opened-sub-menu::before {
	color: #4b0a0a;
	font-size: 65px;
	font-weight: 700;
	line-height: 69px;
	transform: rotate(-90deg);
	position: absolute;
}

.opened-sub-menu::after {
	color: #4b0a0a;
	font-size: 35px;
	font-weight: 700;
	line-height: 37px;
	text-transform: uppercase;
	transform: rotate(-90deg);
	position: absolute;
}

/* categories */
.ng_kohinga_rangahaucategories::before {
	content: "Ngā kohinga rangahau";
	top: 330px;
	left: -300px;
}

.ng_kohinga_rangahaucategories::after {
	content: "Categories";
	top: 120px;
	left: -20px;
}

/* solutions */
.he_whakataungasolutions::before {
	content: "He whakataunga";
	top: 250px;
	left: -210px;
}

.he_whakataungasolutions::after {
	content: "Solutions";
	top: 110px;
	left: -5px;
}

/* resources */
.ng_rawaresources::before {
	content: "Ngā rawa";
	top: 140px;
	left: -100px;
}

.ng_rawaresources::after {
	content: "Resources";
	top: 115px;
	left: -5px;
}

/* about */
.ko_mtou_tneiabout::before {
	content: "Ko mātou tēnei";
	top: 225px;
	left: -180px;
}

.ko_mtou_tneiabout::after {
	content: "About";
	top: 75px;
	left: 35px;
}

@media only screen and (max-width: 1250px) {
	#fc-custom-menu .custom-menu-inner {
		padding-inline: 50px;
	}

	#page .fc-close-button {
		padding-right: 90px;
	}

	#fc-custom-menu .back-menu {
		padding-left: 80px;
	}

	#fc-custom-menu .back-menu::before {
		left: 50px;
	}
}

@media only screen and (max-width: 767px) {
	#fc-custom-menu .custom-menu-inner {
		padding-inline: 20px;
	}
	#fc-custom-menu .back-menu {
		margin-top: 37px;
		padding-left: 50px;
	}
	#fc-custom-menu .back-menu::before {
		left: 20px;
	}
	#page .fc-close-button {
		margin-top: 35px;
		padding-right: 60px;
	}
}

@media only screen and (max-width: 600px) {
	#fc-custom-menu .has-children {
		padding-right: 0px;
	}
	#fc-custom-menu .has-children a {
		margin-inline: 0;
	}
	#fc-custom-menu .main-nav > li > a {
		margin: 0px 14px;
	}
	.opened-sub-menu {
		padding-left: 60px;
	}
	.opened-sub-menu::before {
		font-size: 38px;
		line-height: 42px;
	}

	.opened-sub-menu::after {
		font-size: 23px;
		line-height: 25px;
	}

	#fc-custom-menu .menu-text {
		word-break: break-word;
	}

	/* categories */
	.ng_kohinga_rangahaucategories::before {
		top: 192px;
		left: -165px;
	}
	.ng_kohinga_rangahaucategories::after {
		top: 73px;
		left: -5px;
	}

	/* solutions */
	.he_whakataungasolutions::before {
		top: 142px;
		left: -115px;
	}
	.he_whakataungasolutions::after {
		top: 68px;
		left: 0px;
	}

	/* resources */
	.ng_rawaresources::before {
		top: 78px;
		left: -50px;
	}
	.ng_rawaresources::after {
		top: 68px;
		left: 0;
	}

	/* about */
	.ko_mtou_tneiabout::before {
		top: 129px;
		left: -100px;
	}
	.ko_mtou_tneiabout::after {
		top: 42px;
		left: 25px;
	}
}
