/* ==========================================================================
   SREC — Header (Figma: SREC 26-27, node 4252:223 "Header - Desktop")
   ========================================================================== */

/* Mobile drawer menu (#mySidenav). ID beats the legacy ".sidenav" (orange/yellow)
   background-color rule in responsive.scss.css. Text inside is already white. */
#mySidenav.sidenav {
	background-color: #017c75;
}

.srec2-header {
	--srec2-header-primary: #017c75;
	--srec2-header-primary-dark: #015c56;
	--srec2-header-text: #212121;
	--srec2-header-text-active: #001845;
	--srec2-header-border: #e0e0e0;
	--srec2-header-placeholder: #616161;
	--srec2-header-container: 1600px;

	position: relative;
	z-index: 100;
	background: #fefefe;
	box-shadow: 0 15px 20px rgba(0, 0, 0, 0.03);
	font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

.srec2-header * {
	box-sizing: border-box;
}

.srec2-header a {
	text-decoration: none;
}

.srec2-header-top-inner,
.srec2-header-bottom-inner {
	max-width: var(--srec2-header-container);
	margin: 0 auto;
	display: flex;
	align-items: center;
}

/* ---------- Top row: logo / search / CTA ---------- */

.srec2-header-top-inner {
	gap: 24px;
	padding: 12px 46px;
}

.srec2-header-logo {
	flex-shrink: 0;
	display: block;
	width: 85px;
	height: 85px;
}

.srec2-header-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.srec2-header-search {
	flex: 1;
	max-width: 648px;
	margin: 0 auto;
	display: flex;
	align-items: stretch;
	border: 1px solid var(--srec2-header-border);
	border-radius: 8px;
	overflow: hidden;
	height: 48px;
}

/* ".srec2-header-search input.srec2-header-search-input" beats the legacy
   "input[type=text]" reset (border/margin/padding/min-height) in base.scss.css,
   which otherwise wins on specificity (an attribute selector counts as a class). */
.srec2-header-search input.srec2-header-search-input {
	flex: 1;
	width: auto;
	min-height: 0;
	border: none;
	outline: none;
	margin: 0;
	padding: 0 16px;
	font-family: "Be Vietnam Pro", "Open Sans", sans-serif;
	font-weight: 300;
	font-size: 16px;
	color: var(--srec2-header-text);
}

.srec2-header-search-input::placeholder {
	color: var(--srec2-header-placeholder);
}

.srec2-header-search-btn {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border: none;
	background: var(--srec2-header-primary);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.srec2-header-cta {
	flex-shrink: 0;
	background: var(--srec2-header-primary);
	font-size: 16px;
	padding: 4px 24px;
	border-radius: 8px;
	white-space: nowrap;
	transition: background 0.2s ease;
}

/* Beats the generic ".srec2-header a { color: inherit }" reset above on specificity. */
.srec2-header a.srec2-header-cta,
.srec2-header a.srec2-header-cta:hover {
	color: #fffdfd;
}

.srec2-header-cta:hover {
	background: var(--srec2-header-primary-dark);
}

.srec2-header-burger,
.srec2-header-search-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 20px;
	color: var(--srec2-header-primary);
	cursor: pointer;
	padding: 8px;
	flex-shrink: 0;
}

.srec2-header-search-mobile {
	display: none;
	padding: 0 16px 12px;
}

.srec2-header-search-mobile input {
	width: 100%;
	height: 44px;
	border: 1px solid var(--srec2-header-border);
	border-radius: 8px;
	padding: 0 14px;
	font-size: 14px;
}

/* ---------- Divider ---------- */

.srec2-header-divider {
	max-width: var(--srec2-header-container);
	margin: 0 auto;
	border-top: 1px solid #ececec;
}

/* ---------- Bottom row: nav / contacts ---------- */

.srec2-header-bottom-inner {
	justify-content: space-between;
	padding: 12px 24px;
	gap: 24px;
}

/* Direct child only — otherwise this also matches the nested .srec2-header-submenu
   <ul> and forces its dropdown items into a horizontal row. */
.srec2-header-nav > ul {
	display: flex;
	align-items: center;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.srec2-header-nav-item {
	position: relative;
}

.srec2-header-nav-item > a {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	font-weight: 400;
	color: var(--srec2-header-text);
	white-space: nowrap;
}

.srec2-header-nav-item.is-active > a {
	font-weight: 600;
	color: var(--srec2-header-text-active);
}

.srec2-header-nav-item > a .fa-caret-down {
	font-size: 11px;
	opacity: 0.7;
}

.srec2-header-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 8px 0 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 10;
}

.srec2-header-nav-item:hover .srec2-header-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.srec2-header-submenu li a {
	display: block;
	padding: 10px 18px;
	font-size: 14px;
	color: var(--srec2-header-text);
	white-space: nowrap;
}

.srec2-header-submenu li a:hover {
	background: #f5f5f5;
	color: var(--srec2-header-primary);
}

.srec2-header-contacts {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-shrink: 0;
}

.srec2-header-contact {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: var(--srec2-header-text);
	white-space: nowrap;
}

.srec2-header-contact i {
	color: var(--srec2-header-primary);
	font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
	.srec2-header-top-inner {
		padding: 10px 16px;
	}

	.srec2-header-logo {
		width: 48px;
		height: 48px;
	}

	.srec2-header-search,
	.srec2-header-cta {
		display: none;
	}

	.srec2-header-burger,
	.srec2-header-search-toggle {
		display: flex;
	}

	.srec2-header-search-mobile.show {
		display: block;
	}

	.srec2-header-divider,
	.srec2-header-bottom {
		display: none;
	}
}

@media (min-width: 993px) {
	.srec2-header-search-mobile {
		display: none !important;
	}
}
