.billow.home {
	header.site-header {
		position: absolute;
		z-index: 1000;
		background-repeat: no-repeat;
		background-position: center;
		background-size: cover;
	}

	&.front-bc-image-off {
		header.site-header {
			position: relative;
		}
	}
}

.billow {
	header.site-header {
		width: 100%;
		min-height: 5.5rem;
		display: flex;
		align-items: center;
		padding: 0.1rem 0;
		background-color: $color_main;
		background-repeat: no-repeat;
		background-position: center;
		background-size: cover;
		-webkit-transition: all .3s ease-out;
		-moz-transition: all .3s ease-out;
		-ms-transition: all .3s ease-out;
		-o-transition: all .3s ease-out;
		transition: all .3s ease-out;
		position: relative;
		z-index: 99;

		.header-wrap {
			margin: 0 auto;
			width: 100%;

			.container {
				display: flex;
				-webkit-align-items: center;
				-ms-flex-align: center;
				align-items: center;

				.main-info {
					display: flex;
					align-items: center;
					min-width: fit-content;

					.site-logo {
						-webkit-box-flex: 0;
						margin-right: 0.9rem;

						img.custom-logo {
							max-height: 4.5rem;
							width: auto;
							object-fit: contain;
						}
					}

					.site-branding {
						.site-title,
						.site-description {
							margin: 0;

							a {
								text-decoration: none;
							}
						}
					}
				}

				nav.main-navigation {
					-webkit-box-flex: 0;
					width: fit-content;

					ul {
						align-items: center;
						justify-content: flex-end;
						flex-wrap: wrap;

						a {
							color: $color_white;
							text-transform: uppercase;
							font-size: 0.9rem;

							span {
								color: inherit;
								font-style: inherit;
							}
						}
					}
				}
			}
		}
	}
}

.billow.siteScrolled {
	&.sticky-menu {
		header.float-header.fixed {
			position: fixed;
			top: 0;
			padding: 0.3rem 0;
			-webkit-animation: smoothScroll 1s forwards;
			animation: smoothScroll 1s forwards;
			z-index: 99;

			.header-wrap {
				.container {
					nav.main-navigation {
						.menu {
							ul.nav-menu {
								a {
									color: $color_white;
								}
							}
						}
					}
				}
			}
		}
	}
}

.billow.siteScrolled.admin-bar {
	header.float-header.fixed {
		top: 32px;
	}
}

.blw-hero-area {
	height: auto;

	.hero-bg {
		position: relative;
		height: 44rem;
		width: 100%;
		background-size: cover;
		background-position: center;

		&::after {
			@include overlay
		}

		img {
			position: relative;
			height: 44rem;
			width: 100%;
		}
	}

	.hero-content {
		position: absolute;
		top: 10%;
		left: 0;
		right: 0;
		z-index: 2;
		width: 100%;
		min-height: 15.5rem;
		height: 38rem;
		display: flex;
		flex-direction: column;
		justify-content: space-evenly;

		&.left {
			text-align: start;
		}

		&.center {
			text-align: center;
		}

		&.right {
			text-align: end;
		}

		.hero-title {
			.entry-title {
				text-shadow: 0 0 27px rgba(0, 0, 0, 0.37);
			}
		}
	}
}

@keyframes smoothScroll {
    0% {
        -webkit-transform: translateY(-40px);
        transform: translateY(-40px)
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

.home {
	&.blog {
		header.site-header {
			position: relative;
		}

		.blw-hero-area {
			display: none;
		}

		.blw-blog-content-area {
			padding-top: 5rem;
		}
	}
}

/* customizer */
.billow {
	header.site-header {
		.header-wrap {
			.container {
				margin-top: 0rem;
				margin-bottom: 0rem;

				&.header-right {
					justify-content: space-between;
				}

				&.header-center {
					flex-direction: column-reverse;
					justify-content: center;
					align-items: center;

					.main-info {
						margin-right: 0;

						.site-branding {
							text-align: center;
						}
					}

					.main-navigation {
						ul {
							& > li {
								& > ul {
									margin-top: 0.18rem;

									li {
										ul {
											margin-top: 0;
										}
									}
								}
							}
						}
					}
				}

				&.header-left {
					justify-content: space-between;

					.main-info {
						margin-right: 0;

						.site-branding {
							text-align: end;
						}
					}

					nav.main-navigation {
						order: 1;
						margin-left: 1.5rem;

						ul {
							justify-content: flex-start;
						}
					}
				}
			}
		}
	}
}

/* mobile menu */
.billow {
	&.siteScrolled {
		&.mobile-menu-active {
			header.float-header.fixed {
				position: relative;
			}
		}
	}

	.mobile-menu-container.off {
		display: none;
		z-index: 1000;
		@include transition;

		a.close {
			display: block;
			width: 100%;
			text-align: end;

			i {
				color: #000;
				cursor: pointer;
				@include transition;

				&::before {
					font-size: 1.4rem;
				}
			}
		}

		.logo {
			text-align: center;
			@include transition;

			img {
				display: inline-block;
				margin-top: 1rem;
				margin-bottom: 1.8rem;
				max-width: 50%;
			}
		}

		.mobile-menu.active {
			@include transition;

			li {
				position: relative;

				a {
					color: #fff;
					float: none;
					display: block;
					padding: 0.8rem 2.5rem;
					font-weight: 600;
					line-height: 1;
					letter-spacing: .02em;
					text-decoration: none;
					border-bottom: 1px solid rgba(0,0,0,.07);
				}

				.chevron {
					position: absolute;
					right: 0;
					top: 0;
					padding: 0.8rem 2.5rem;
					border: 0;
					color: #aaa;
					text-align: center;
					font-size: 0.8rem;
					-webkit-text-stroke: 1.2px #fff;
					line-height: 1.6;
					cursor: pointer;
				}

				&.active,
				&:focus-within {
					ul {
						opacity: 1;
						max-height: 3000px;
						transition: opacity .4s ease-in,max-height 1s ease-in;
					}

					.chevron {
						transform: rotate(180deg);
					}
				}

				ul {
					max-height: 0;
					opacity: 0;
					background: 0 0;
					overflow: hidden;
					border: 0;
					border-bottom: 1px solid rgba(0,0,0,.07);
					transition: opacity .6s ease,max-height .8s ease;

					li {
						&:last-child {
							a {
								border-bottom-color: transparent;
							}
						}
					}
				}
			}
		}
	}

	&.admin-bar {
		&.mobile-menu-container {
			padding-top: 5rem;
		}
	}

	&.mobile-menu-active {
		.header-wrap {
			.container {
				&.header-left {
					justify-content: flex-end !important;
				}

				&.header-center {
					justify-content: flex-end !important;
				}

				.main-navigation {
					button.menu-toggle {
						&::before {
							content: '\f00d' !important;
							@include transition;
						}
					}
				}
			}
		}
		.mobile-menu-container.off {
			position: relative;
			display: block;
		}

		.site-header {
			.main-info {
				display: none !important;
				@include transition;
			}
		}
	}
}

@media ( max-width: 70rem ) {
	.billow {
		header.site-header {
			min-height: auto;

			.header-wrap {
				.container {
					align-items: center;
					@include transition;

					.main-navigation {
						margin-left: 0.6rem;

						@include transition;

						button.menu-toggle {
							display: flex;
							align-items: center;
							justify-content: center;
							font-size: 0;
							padding: 0;
							background-color: transparent;
							border: none;

							&:hover {
								transform: none;
								box-shadow: none;
							}

							&::before {
								content: '\f0c9';
								font-family: "Font Awesome 5 Free";
								font-weight: 700;
								font-size: 1.5rem;
								display: inline-block;
							}
						}

						.menu-short-container,
						ul.menu,
						ul.nav-menu {
							display: none;
						}
					}
				}
			}
		}
	}
}

@media (max-width: 26rem) {
	.billow {
		.site-header {
			.header-wrap {
				.container {
					padding-top: 0.6rem !important;
					padding-bottom: 0.6rem !important;
				}
			}
		}
	}
}
