/**
 * Starbox — Silvaro header, language switcher, footer.
 */

@font-face {
	font-family: "entypo-fontello";
	font-weight: normal;
	font-style: normal;
	font-display: swap;
	src:
		url("../fonts/entypo-fontello/entypo-fontello.woff2") format("woff2"),
		url("../fonts/entypo-fontello/entypo-fontello.woff") format("woff");
}

/* Enfold icon font (entypo-fontello) for header/footer chrome */
.starbox-icon.avia-iconfont,
.starbox-icon.avia-font-entypo-fontello,
html body .starbox-icon[data-av_iconfont="entypo-fontello"] {
	font-family: "entypo-fontello" !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.starbox-icon[data-av_icon]::before,
html body .starbox-icon[data-av_iconfont="entypo-fontello"]::before {
	content: attr(data-av_icon);
	font-family: "entypo-fontello" !important;
	font-weight: normal;
	font-style: normal;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Legacy switcher in meta bar (disabled) */
.starbox-lang-switcher:not([data-starbox-lang-switcher]) {
	display: none !important;
}

body.starbox-silvaro-chrome #header_meta {
	display: none !important;
}

/* Template inline + Enfold set 88–154px header/menu metrics — reset for custom nav */
body.starbox-silvaro-chrome #top #header_main > .container,
body.starbox-silvaro-chrome #top #wrap_all .av-logo-container,
body.starbox-silvaro-chrome.html_top_nav_header .av-logo-container {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.4 !important;
}

body.starbox-silvaro-chrome #header_main > .container .main_menu .av-main-nav > li > a {
	height: auto !important;
	line-height: normal !important;
}

body.starbox-silvaro-chrome #header_main .av-logo-container .inner-container {
	height: auto !important;
	min-height: 0 !important;
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
}

body.starbox-silvaro-chrome .av-logo-container .inner-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

body.starbox-silvaro-chrome .av-logo-container .logo img {
	max-height: 72px;
	width: auto;
	height: auto;
}

body.starbox-silvaro-chrome .av-logo-container .noLightbox.social_bookmarks {
	display: none !important;
}

body.starbox-silvaro-chrome #main {
	--starbox-header-offset: 80px;
}

body.starbox-silvaro-chrome #main[data-scroll-offset] {
	/* Reduced header without phone bar */
}

/* —— Primary navigation (Fig.2) —— */
.starbox-primary-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1 1 auto;
	gap: 2rem;
	margin-left: auto;
}

.starbox-nav-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.starbox-nav-item {
	position: relative;
	margin: 0;
	padding: 0;
}

.starbox-nav-item > a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: #1a2b4a;
	padding: 0.25rem 0;
	line-height: 1.25;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

body.starbox-silvaro-chrome #header_main .starbox-nav-list > .starbox-nav-item > a {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.25 !important;
}

.starbox-nav-item > a:hover,
.starbox-nav-item > a:focus {
	color: #c9a227;
}

.starbox-nav-item.is-active > a {
	color: #c9a227;
	border-bottom-color: #c9a227;
}

.starbox-nav-chevron-icon {
	display: inline-block;
	margin-left: 0.1rem;
	font-size: 0.65rem;
	vertical-align: middle;
	opacity: 0.85;
}

.starbox-nav-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 200;
	min-width: 240px;
	margin: 0.35rem 0 0;
	padding: 0.25rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

body.starbox-silvaro-chrome #header_main .starbox-nav-submenu li {
	margin: 0 !important;
	padding: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.35 !important;
	float: none !important;
	display: block !important;
}

.starbox-nav-item.has-children:hover .starbox-nav-submenu,
.starbox-nav-item.has-children:focus-within .starbox-nav-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.starbox-nav-submenu a {
	display: block;
	padding: 0.4rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	color: #1a2b4a;
	white-space: nowrap;
	line-height: 1.35;
}

body.starbox-silvaro-chrome #header_main .starbox-nav-submenu a {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.35 !important;
	text-transform: none !important;
}

.starbox-nav-submenu a:hover {
	background: #f5f7fa;
	color: #c9a227;
}

/* —— Language switcher —— */
.starbox-lang-switcher[data-starbox-lang-switcher] {
	position: relative;
	flex-shrink: 0;
}

.starbox-lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.5rem;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #1a2b4a;
}

.starbox-lang-toggle:hover,
.starbox-lang-toggle:focus {
	color: #c9a227;
	outline: none;
}

.starbox-lang-globe-icon {
	display: inline-block;
	font-size: 1.05rem;
	vertical-align: middle;
	line-height: 1;
}

.starbox-lang-chevron-icon {
	display: inline-block;
	font-size: 0.6rem;
	vertical-align: middle;
	margin-left: 0.05rem;
	opacity: 0.85;
}

.starbox-lang-menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 210;
	min-width: 140px;
	margin: 0.25rem 0 0;
	padding: 0.25rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.starbox-lang-switcher:hover .starbox-lang-menu,
.starbox-lang-switcher:focus-within .starbox-lang-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.starbox-lang-menu li {
	margin: 0;
	padding: 0;
}

.starbox-lang-menu a,
.starbox-lang-menu .starbox-lang-disabled {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	color: #1a2b4a;
}

body.starbox-silvaro-chrome #header_main .starbox-lang-menu li {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.35 !important;
}

body.starbox-silvaro-chrome #header_main .starbox-lang-menu a,
body.starbox-silvaro-chrome #header_main .starbox-lang-menu .starbox-lang-disabled {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.35 !important;
}

body.starbox-silvaro-chrome #header_main .starbox-lang-toggle {
	height: auto !important;
	line-height: 1.25 !important;
}

.starbox-lang-menu a:hover {
	background: #f5f7fa;
	color: #c9a227;
}

.starbox-lang-disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.starbox-lang-name {
	font-weight: 500;
	font-size: 0.75rem;
}

/* —— Footer (Fig.2) —— */
body.starbox-silvaro-chrome #footer,
body.starbox-silvaro-chrome #socket,
body:has(#starbox-site-footer) #footer,
body:has(#starbox-site-footer) #socket {
	display: none !important;
}

.starbox-site-footer {
	background: #0b1f3a;
	color: #fff;
	padding: 2.75rem 0;
	margin-top: 0;
	border-top: none;
}

.starbox-footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 50px;
	display: grid;
	grid-template-columns: minmax(200px, 1.1fr) minmax(220px, 1.4fr) minmax(200px, 1.1fr) minmax(200px, 1fr);
	gap: 0;
	align-items: center;
}

.starbox-footer-col {
	padding: 0 2rem;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
	min-height: 100px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.starbox-footer-brand {
	border-left: none;
	padding-left: 0;
	padding-right: 2rem;
	align-items: flex-start;
}

.starbox-footer-logo-link {
	display: block;
	line-height: 0;
}

.starbox-footer-logo-link img {
	max-width: 220px;
	width: 100%;
	height: auto;
	display: block;
}

.starbox-footer-address,
.starbox-footer-contact {
	font-size: 0.875rem;
	line-height: 1.55;
}

.starbox-footer-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.starbox-footer-address-line {
	display: block;
}

.starbox-footer-line {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0 0 0.75rem;
}

.starbox-footer-line a {
	color: #fff;
	text-decoration: none;
}

.starbox-footer-line a:hover {
	color: #c9a227;
}

.starbox-footer-icon {
	flex-shrink: 0;
	display: inline-block;
	margin-top: 0.1rem;
	font-size: 1rem;
	line-height: 1;
	color: #c9a227;
	opacity: 0.95;
}

.starbox-site-footer .starbox-footer-icon::before {
	color: inherit;
}

.starbox-footer-copy {
	text-align: left;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

.starbox-footer-copyright,
.starbox-footer-rights {
	margin: 0 0 0.35rem;
}

.starbox-footer-rights {
	margin-bottom: 0;
	opacity: 0.9;
}

/* Contact form scroll target */
#starbox-contact-form {
	scroll-margin-top: 120px;
}

.starbox-back {
	margin-top: 2rem;
}

.starbox-menu-toggle {
	display: none;
}

@media (max-width: 989px) {
	.starbox-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		order: 2;
		margin-left: auto;
		width: 44px;
		height: 44px;
		padding: 0;
		border: none;
		background: transparent;
		cursor: pointer;
		color: #1a2b4a;
	}

	.starbox-menu-toggle__bars {
		display: block;
		width: 22px;
		height: 16px;
		position: relative;
	}

	.starbox-menu-toggle__bar {
		display: block;
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: currentColor;
		border-radius: 1px;
		transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
	}

	.starbox-menu-toggle__bar:nth-child(1) {
		top: 0;
	}

	.starbox-menu-toggle__bar:nth-child(2) {
		top: 7px;
	}

	.starbox-menu-toggle__bar:nth-child(3) {
		top: 14px;
	}

	.starbox-menu-toggle.is-open .starbox-menu-toggle__bar:nth-child(1) {
		top: 7px;
		transform: rotate(45deg);
	}

	.starbox-menu-toggle.is-open .starbox-menu-toggle__bar:nth-child(2) {
		opacity: 0;
	}

	.starbox-menu-toggle.is-open .starbox-menu-toggle__bar:nth-child(3) {
		top: 7px;
		transform: rotate(-45deg);
	}

	body.starbox-silvaro-chrome .av-logo-container .logo {
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
	}

	body.starbox-silvaro-chrome .av-logo-container .inner-container {
		flex-wrap: wrap;
		align-items: center;
	}

	body.starbox-silvaro-chrome .av-logo-container .logo img {
		max-height: 56px;
	}

	.starbox-primary-nav {
		order: 3;
		flex: 1 0 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin-left: 0;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s;
		border-top: 1px solid transparent;
	}

	body.starbox-nav-open .starbox-primary-nav {
		max-height: 80vh;
		overflow-y: auto;
		opacity: 1;
		visibility: visible;
		padding-top: 0.35rem;
		padding-bottom: 0.75rem;
		border-top-color: #e8e8e8;
	}

	body.starbox-nav-open #header {
		position: relative;
		z-index: 500;
	}

	.starbox-nav-list {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 0;
	}

	.starbox-nav-item {
		width: 100%;
		border-bottom: 1px solid #eef1f5;
	}

	.starbox-nav-item > a {
		display: flex;
		padding: 0.85rem .4rem;
		border-bottom: none;
	}

	.starbox-nav-item.is-active > a {
		border-bottom: none;
	}

	.starbox-nav-item.has-children:hover .starbox-nav-submenu,
	.starbox-nav-item.has-children:focus-within .starbox-nav-submenu {
		opacity: 0;
		visibility: hidden;
		transform: none;
	}

	.starbox-nav-item.has-children.is-expanded .starbox-nav-submenu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.starbox-nav-submenu {
		position: static;
		min-width: 0;
		margin: 0;
		padding: 0 0 0.5rem;
		border: none;
		box-shadow: none;
		background: transparent;
		display: none;
	}

	.starbox-nav-item.has-children.is-expanded .starbox-nav-submenu {
		display: block;
	}

	.starbox-nav-submenu a {
		padding: 0.55rem 0 0.55rem 1rem;
		white-space: normal;
	}

	.starbox-lang-switcher[data-starbox-lang-switcher] {
		align-self: flex-start;
		margin-top: 0.75rem;
		padding-top: 0.75rem;
		border-top: 1px solid #eef1f5;
		width: 100%;
	}

	.starbox-footer-inner {
		grid-template-columns: 1fr;
		text-align: left;
		padding: 0 24px;
		gap: 1.5rem;
	}

	.starbox-footer-col {
		border-left: none;
		padding: 0;
		min-height: 0;
	}

	.starbox-footer-brand {
		padding-right: 0;
	}

	.starbox-footer-line {
		justify-content: flex-start;
	}
}
