/**
 * HARATI main navigation — standalone (does not use theme .navbar-default).
 * Loaded last in header.php after style.css / responsive.css.
 */

/* --- Reset theme .bottomarea (style.css: line-height:13px; height:101px) --- */
header.sUp .toparea {
	height: auto !important;
	min-height: 48px;
	overflow: visible !important;
}

header.sUp .bottomarea.harati-bottomarea,
header.sUp .harati-bottomarea {
	line-height: normal !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

header.sUp {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10050;
	width: 100%;
	background: #fff;
}

/* --- Navbar bar (plain white, like reference — no shadow/fill) --- */
.harati-navbar {
	display: block;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
	box-shadow: none;
	position: relative;
	z-index: 10060;
}

.harati-navbar__inner {
	max-width: 1170px;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* Logo row (mobile) / grid participants (desktop via display:contents) */
.harati-navbar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
}

.harati-navbar__toggle {
	display: none;
	flex-shrink: 0;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.harati-navbar__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: #555;
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}

.harati-navbar.is-menu-open .harati-navbar__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.harati-navbar.is-menu-open .harati-navbar__toggle-bar:nth-child(2) {
	opacity: 0;
}

.harati-navbar.is-menu-open .harati-navbar__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.harati-navbar__menu {
	width: 100%;
}

/* --- Logo --- */
.harati-navbar__logo {
	display: block !important;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 200px;
	padding: 8px 0;
	text-decoration: none !important;
	background: none !important;
	background-image: none !important;
	text-indent: 0 !important;
	overflow: visible !important;
	position: relative;
	z-index: 10061;
	line-height: normal !important;
}

.harati-navbar__logo img {
	display: block !important;
	max-height: 44px !important;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	visibility: visible !important;
	opacity: 1 !important;
}

.harati-navbar__logo-text {
	display: none;
	color: #ff8202;
	font-size: 20px;
	font-weight: 700;
	line-height: 44px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.harati-navbar__logo img[style*="display: none"] + .harati-navbar__logo-text,
.harati-navbar__logo.is-fallback .harati-navbar__logo-text {
	display: inline-block !important;
}

/* --- Menu list --- */
.harati-navbar__list {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	list-style: none;
	float: none !important;
	width: auto;
	max-width: 100%;
}

.harati-navbar__item {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	float: none !important;
}

.harati-navbar__link {
	display: block !important;
	padding: 0 14px;
	line-height: 70px;
	height: 70px;
	font-size: 15px;
	font-weight: normal;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #888 !important;
	background: transparent;
	white-space: nowrap;
	visibility: visible !important;
	opacity: 1 !important;
	transition: color 0.2s, background 0.2s;
	box-sizing: border-box;
}

.harati-navbar__link:hover,
.harati-navbar__link:focus {
	color: #ff8202 !important;
	background: transparent !important;
	text-decoration: none !important;
}

.harati-navbar__item.is-active > .harati-navbar__link,
.harati-navbar__item--dropdown:hover > .harati-navbar__link {
	color: #ff8202 !important;
	background: transparent !important;
}

/* --- Dropdown (desktop hover) --- */
.harati-navbar__item--dropdown > .harati-navbar__link::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	vertical-align: middle;
	border: 4px solid transparent;
	border-top-color: currentColor;
}

.harati-navbar__dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #eee;
	border-top: 4px solid #ff8202;
	box-shadow: none;
	z-index: 10070;
}

.harati-navbar__item--dropdown:hover > .harati-navbar__dropdown {
	display: block;
}

.harati-navbar__dropdown .harati-navbar__link {
	line-height: 44px;
	height: auto;
	padding: 0 18px;
	font-size: 14px;
	text-transform: none;
	color: #666 !important;
}

.harati-navbar__dropdown .harati-navbar__link:hover,
.harati-navbar__dropdown .harati-navbar__link:focus {
	color: #ff8202 !important;
	background: transparent !important;
}

.harati-navbar__dropdown .harati-navbar__item.is-active > .harati-navbar__link {
	color: #ff8202 !important;
	background: transparent !important;
}

/* Fixed header offset for page content */
body.wide .wrapper,
body.boxed .wrapper {
	padding-top: 108px !important;
}

/* --- Desktop: logo left, links right (single row) --- */
@media (min-width: 992px) {
	.harati-navbar__inner {
		display: grid !important;
		grid-template-columns: minmax(140px, auto) 1fr;
		align-items: center;
		column-gap: 20px;
		min-height: 70px;
	}

	.harati-navbar__head {
		display: contents;
	}

	.harati-navbar__logo {
		grid-column: 1;
		justify-self: start;
		max-width: 220px;
		padding: 10px 0;
	}

	.harati-navbar__logo img {
		max-height: 48px !important;
		min-width: 120px;
	}

	.harati-navbar__toggle {
		display: none !important;
	}

	.harati-navbar__menu {
		grid-column: 2;
		justify-self: end;
	}

	.harati-navbar__list {
		justify-content: flex-end;
	}

	body.wide .wrapper,
	body.boxed .wrapper {
		padding-top: 120px !important;
	}
}

/* --- Mobile / tablet: hamburger + vertical menu --- */
@media (max-width: 991px) {
	.harati-navbar__toggle {
		display: flex;
	}

	.harati-navbar__menu {
		display: none;
		border-top: 1px solid #eee;
	}

	.harati-navbar__menu.is-open {
		display: block;
	}

	.harati-navbar__list {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		width: 100%;
	}

	.harati-navbar__item {
		width: 100%;
		border-bottom: 1px solid #f0f0f0;
	}

	.harati-navbar__item:last-child {
		border-bottom: 0;
	}

	.harati-navbar__link {
		line-height: 48px;
		height: auto;
		min-height: 48px;
		font-size: 14px;
		padding: 0 16px;
		white-space: normal;
	}

	.harati-navbar__item.is-active > .harati-navbar__link {
		color: #ff8202 !important;
		background: transparent !important;
		border-left: 0;
	}

	.harati-navbar__link:hover,
	.harati-navbar__link:focus {
		background: transparent !important;
	}

	.harati-navbar__item--dropdown > .harati-navbar__link::after {
		float: right;
		margin-top: 20px;
	}

	.harati-navbar__dropdown {
		display: block;
		position: static;
		box-shadow: none;
		border: 0;
		border-top: 4px solid #ff8202;
		background: #fff;
	}

	.harati-navbar__item--dropdown:hover > .harati-navbar__dropdown {
		display: block;
	}

	.harati-navbar__dropdown .harati-navbar__link {
		padding-left: 28px;
		font-size: 13px;
		min-height: 44px;
		line-height: 44px;
	}

}

@media (max-width: 480px) {
	.harati-navbar__inner {
		padding: 0 12px;
	}

	.harati-navbar__logo {
		max-width: 160px;
	}

	.harati-navbar__logo img {
		max-height: 38px !important;
	}
}
