/* Header & Navigation */
.header {
	background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-white) 100%);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: 70px;
}

.navbar {
	height: 70px;
	padding: 0;
}

/* Logo container */
.logo-container {
	display: flex;
	align-items: center;
	height: 70px;
	/* gap: 15px; */
}

.navbar-toggler-container {
	display: none;
}

.logo {
	width: auto;
	height: 2.8rem;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(31, 30, 30, 0.5), 0 0 15px rgba(0, 0, 0, 0.4);
}

/* Base navigation */
.nav-link {
	position: relative;
	color: rgba(0, 0, 0, 0.85) !important;
	font-weight: 500;
	padding: 0 15px !important;
	height: 70px;
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: color 0.3s ease;
	white-space: nowrap;
	cursor: pointer;
	font-size: 16px;
}

.nav-link:hover {
	color: #ff8800 !important;
}

.nav-link.active {
	color: #ff8800 !important;
}

/* Underline effect for navigation links */
.nav-link::after {
	content: "";
	position: absolute;
	bottom: 15px;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #ff8800, #ff5722);
	transition: width 0.3s ease, transform 0.3s ease;
	transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
	width: calc(100% - 30px);
}

/* Remove default focus/active backgrounds */
.nav-link:focus,
.nav-link:active,
.nav-link.show {
	background-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Dropdown styles */
.dropdown {
	position: relative;
}

.dropdown-menu {
	display: none !important;
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	margin-top: 0;
	padding: 10px 0;
	min-width: 200px;
	transition: all 0.3s ease;
	transition-delay: 0.5s;
}

.dropdown:hover>.dropdown-menu {
	display: block !important;
	animation: fadeIn 0.3s ease;
	transition-delay: 0s;
}

.dropdown-menu:hover {
	display: block !important;
	transition-delay: 0s;
}

/* Fade in animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dropdown-item {
	padding: 8px 20px;
	color: rgb(14, 13, 13);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.3s ease;
	white-space: nowrap;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	position: relative;
	font-size: 15px;
}

.dropdown-item:hover {
	color: #ff8800;
	background-color: transparent !important;
}

/* Underline effect for dropdown items */
.dropdown-item::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #ff8800, #ff5722);
	transition: width 0.3s ease, transform 0.3s ease;
	transform: translateX(-50%);
}

.dropdown-item:hover::after {
	width: 100%;
}

/* Remove default focus/active backgrounds for dropdown items */
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item.show {
	background-color: transparent !important;
	color: #ff8800 !important;
	outline: none !important;
	box-shadow: none !important;
}

/* Dropdown arrows */
.nav-link.dropdown-toggle::after {
	content: "";
	vertical-align: middle;
	margin-left: 0.5em;
	border-top: 0.3em solid;
	border-right: 0.3em solid transparent;
	border-bottom: 0;
	border-left: 0.3em solid transparent;
	display: inline-block;
	position: static;
	top: 0;
	background: none;
	height: auto;
	width: 0;
	transform: none;
	transition: transform 0.3s ease;
}

/* Rotate arrow up when hovering dropdown */
.dropdown:hover .nav-link.dropdown-toggle::after {
	transform: rotate(180deg);
}

.nav-link.dropdown-toggle::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #ff8800, #ff5722);
	transition: width 0.3s ease, transform 0.3s ease;
	transform: translateX(-50%);
}

.nav-link.dropdown-toggle:hover::before,
.nav-link.dropdown-toggle.active::before {
	width: 100%;
}

/* Flag icons */
.flag-icon {
	width: 20px;
	height: 15px;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	margin-right: 6px;
}

#langDropdown {
	display: flex;
	align-items: center;
	max-width: 150px;
	white-space: nowrap;
	overflow: hidden;
}

/* Prevent double arrow in language dropdown */
.nav-item.dropdown .dropdown-toggle img+ ::after {
	margin-left: 0.3em;
}

/* Fix spacing between menu items */
.nav-item {
	position: relative;
	margin-right: 5px;
}

/* Desktop: 992px and above - HOVER ONLY */
@media (min-width: 992px) {

	.nav-link,
	.dropdown-menu {
		font-size: 16px;
	}

	.dropdown-submenu {
		position: relative;
	}

	.dropdown-submenu>.dropdown-menu {
		top: 0;
		left: 100%;
		margin-top: -6px;
		margin-left: -1px;
		display: none;
	}

	.dropdown-submenu:hover>.dropdown-menu {
		display: block;
	}

	.nav-item.dropdown:last-child .dropdown-menu {
		right: 0;
		left: auto;
	}

	/* Ensure full desktop layout */
	.navbar-collapse {
		position: static;
		background: transparent;
		max-height: none;
		box-shadow: none;
	}

	.navbar-nav {
		flex-direction: row;
		align-items: center;
	}

	.navbar-toggler-container {
		display: none;
	}
}

/* Mobile & Tablet: below 992px */
@media (max-width: 991.98px) {
	.logo {
		height: 45px;
	}

	.navbar-toggler-container {
		display: flex;
	}

	/* Make navbar full width */
	.navbar>.container,
	.navbar>.container-fluid {
		max-width: 100% !important;
		padding-left: 15px;
		padding-right: 15px;
	}

	/* ----------- Mobile/Tablet Navbar Styles ----------- */
	/* Navbar toggler */
	.navbar-toggler-container {
		display: flex;
		align-items: center;
		height: 70px;
	}

	.navbar-toggler {
		border: none;
		padding: 8px 12px;
		background: var(--dark-gray);
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
		transition: all 0.3s ease;
	}

	.navbar-toggler:hover {
		background: var(--dark-gray);
		box-shadow: 0 4px 12px rgba(44, 62, 80, 0.5);
		transform: translateY(-2px);
	}

	.navbar-toggler:focus {
		box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.25);
		outline: none;
	}

	.navbar-toggler-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
		width: 24px;
		height: 24px;
	}

	/* Make navbar collapse full width */
	.navbar-collapse {
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		width: 100vw !important;
		background: var(--dark-gray);
		margin: 0 !important;
		padding: 0 !important;
		max-height: 80vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	}

	/* Mobile/Tablet navigation - full width */
	.navbar-nav {
		text-align: center;
		width: 100% !important;
		margin: 0 !important;
		flex-direction: column;
	}

	.nav-item {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		margin-right: 0;
		position: relative;
	}

	/* Ensure dropdown parent has proper stacking */
	.nav-item.dropdown {
		position: static;
		z-index: 10;
	}

	.nav-link {
		height: auto;
		padding: 15px 0 !important;
		width: 100%;
		justify-content: center;
		font-size: 16px;
		min-height: 50px;
		color: rgba(255, 255, 255, 1) !important;
	}

	.nav-link:hover,
	.nav-link.active {
		color: #ff8800 !important;
		background: rgba(255, 255, 255, 0.05);
	}

	/* Remove underline effects on mobile/tablet */
	.nav-link::after,
	.nav-link::before {
		display: none;
	}

	.nav-item.dropdown {
		position: static;
	}

	/* Disable hover-based dropdowns on mobile/tablet - but respect .show class */
	.dropdown:hover>.dropdown-menu:not(.show),
	.dropdown-submenu:hover>.dropdown-menu:not(.show) {
		display: none !important;
	}

	/* Ensure dropdown shows when Bootstrap adds .show class */
	.dropdown-menu.show {
		display: block !important;
		position: relative !important;
	}

	/* Mobile/Tablet dropdowns - full width */
	.dropdown-menu {
		background: rgba(44, 62, 80, 0.95);
		border-radius: 0;
		box-shadow: none;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		font-size: 15px;
		border: none !important;
		position: static !important;
		transform: none !important;
		float: none !important;
		display: none;
		z-index: 1001;
	}

	/* Ensure dropdown items are properly displayed and clickable */
	.dropdown-menu li {
		display: block;
		width: 100%;
	}

	.dropdown-item {
		display: block;
		padding: 12px 0;
		color: rgba(255, 255, 255, 0.9);
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
		justify-content: center;
		text-align: center;
		width: 100%;
		font-size: 15px;
		min-height: 44px;
	}

	.dropdown-item:hover {
		background: rgba(255, 255, 255, 0.1);
		color: white;
	}

	.dropdown-item::after {
		display: none;
	}

	/* Mobile nested dropdowns */
	.dropdown-submenu>.dropdown-menu {
		background: rgba(44, 62, 80, 0.98);
		width: 100% !important;
	}

	.nav-item.dropdown:last-child,
	#langDropdown {
		width: 100%;
		max-width: none;
	}

	/* Ensure toggler is visible */
	.navbar-toggler {
		display: block !important;
	}
}

/* Extra small devices: tweak font sizes if needed */
@media (max-width: 575.98px) {
	.nav-link {
		font-size: 15px;
	}

	.dropdown-item {
		font-size: 14px;
	}
}

/* Prevent horizontal scroll */
body,
html {
	overflow-x: hidden;
	width: 100%;
	max-width: 100%;
}

/* Body scroll lock when navbar is open */
body.navbar-open {
	overflow: hidden;
	position: fixed;
	width: 100%;
}

/* Ensure all nav-links are black, except active and hover */
.navbar-dark .nav-link {
	color: rgba(0, 0, 0, 0.85) !important;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
	color: #ff8800 !important;
}

/* Mobile & Tablet: Override nav-link color to white */
@media (max-width: 991.98px) {
	.navbar-dark .nav-link {
		color: rgba(255, 255, 255, 1) !important;
	}

	.navbar-dark .nav-link:hover,
	.navbar-dark .nav-link.active {
		color: #ff8800 !important;
	}
}

/*Logo Styling*/
.brand-text {
	font-size: 1.8rem;
	font-weight: bold;
	margin-left: 0.5rem;
}

.brand-laki {
	color: var(--dark-orange);
	/* dark-orange */
}

.brand-131 {
	color: var(--light-blue);
	/* dark-gray */
}