/************************* header *************************/
.header {
	display: flex;
    justify-content: space-between;
    align-items: center;
	width: 85%;
	max-width: 85%;
	margin: auto;
	border-radius: 100px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
	padding: 10px 15px;
	background: rgba(255, 255, 255, 0.35); /* شفافیت بیشتر برای تست */
	backdrop-filter: blur(4px) saturate(180%);
	-webkit-backdrop-filter: blur(4px) saturate(180%);
	position: sticky;
	top: 20px;
	z-index: 2;
}
.header .logo {
	width: 110px;
	height: auto;
}

.header .logo img {
	width: 100%;
	height: auto;
	aspect-ratio: 500 / 155;
}

@media (max-width: 900px) {
	.header {
		width: 95%;
		max-width: 95%;
	}
}


/************************* header>nav *************************/

.header nav .needForMobile>ul {
	display: flex;
	list-style: none;
	padding: 0;
}

.header nav .needForMobile>ul>li {
	margin: 0 5px;
	position: relative;
}

.header nav .needForMobile>ul>li>a {
	display: block;
	padding: 8px 5px;
	font-weight: bold;
	font-variation-settings: "wght" 700;
	font-size: 13px;
	color: #333;
}

.header nav .needForMobile>ul>li:hover>ul {
	display: block;
}

.header nav .needForMobile>ul>li>ul {
	padding: 5px;
	list-style: none;
	display: none;
	position: absolute;
	right: 0;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	z-index: 1;
	width: 250px;
	border-radius: 7px;
	font-weight: bold;
	font-variation-settings: "wght" 700;
	font-size: 0.9rem;
}

.header nav .needForMobile>ul>li>ul>li>a {
	padding: 7px 20px;
	display: block;
	color: #333;
	margin: 2px 0;
	border-radius: 5px;
	transition: .3s;
	font-size: 0.7rem;
}
.header nav .needForMobile>ul>li>ul>li>a:hover {
	background-color: #f0f0f0;
	color: #000;
}

.header nav .closeBtn {
	display: none; /* مخفی کردن دکمه بستن در حالت دسکتاپ */
}

@media (max-width: 900px) {
	.header nav {
		width: 250px;
		width: 70%;
		max-width: 70%;
		position: fixed;
		height: 80vh;
		right: 0;
		top: 10%;
		bottom: 10%;
		/* Glassmorphism effect */
		background: rgba(255, 255, 255, 0.9); /* شفافیت بیشتر برای تست */
		backdrop-filter: blur(200px) saturate(200%);
		-webkit-backdrop-filter: blur(200px) saturate(200%);
		border-bottom-left-radius: 70px;
		border-top-left-radius: 70px;
		padding: 15px;
		padding-right: 10px;
		padding-left: 30px;
		color: #222;
		box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
		border: 1px solid rgba(255, 255, 255, 0.18);
		z-index: 1000; /* مطمئن شو منو بالاتر از بقیه باشه */
		display: block; /* همیشه block باشد تا transition کار کند */
		visibility: hidden;
		opacity: 0;
		transform: translateX(60px) scale(0.98);
		transition:
			opacity 0.3s cubic-bezier(.4,0,.2,1),
			transform 0.3s cubic-bezier(.4,0,.2,1),
			visibility 0s linear 0.3s;
		pointer-events: none;
		margin-right: -25px;
	}

	.header nav.active {
		visibility: visible;
		opacity: 1;
		transform: translateX(0) translateY(0) scale(1);
		transition:
			opacity 0.3s cubic-bezier(.4,0,.2,1),
			transform 0.3s cubic-bezier(.4,0,.2,1),
			visibility 0s linear 0s;
		pointer-events: auto;
	}

	.header nav .needForMobile {
		width: 100%;
		height: 100%;
		position: relative;
	}
	.header nav .needForMobile>ul {
		display: flex;
		flex-direction: column;
		list-style: none;
		padding: 0;
		overflow-y: scroll;
		scrollbar-width: thin; /* برای فایرفاکس */
		scrollbar-color: transparent; /* هنگام اسکرول کردن */
		height: 100%;
	}
	.header nav .needForMobile>ul a {
		color: #222; /* خوانایی بیشتر روی پس‌زمینه شفاف */
	}
	
	.header nav .needForMobile>ul>li>ul {
		padding-right: 15px !important;
		width: auto;
		background: none;
		box-shadow: none;
		border: none;
		display: block;
		position: relative;
		padding: 5px;
		font-weight: bold;
		font-variation-settings: "wght" 700;
		font-size: 0.9rem;
	}

	.header nav .needForMobile>ul>li>ul>li>a:hover {
		background: none;
	}

	/* حالت پیش‌فرض که اسکرول‌بار مخفی باشه */
	.header nav>ul::-webkit-scrollbar {
		width: 6px;
		height: 6px;
		background-color: transparent;
	}

	/* حالت هنگام اسکرول کردن */
	.header nav .needForMobile>ul:hover::-webkit-scrollbar-thumb {
		background-color: rgba(0, 0, 0, 0.3); /* رنگ مینیمال برای thumb */
		border-radius: 3px;
	}

	/* بدون hover هم thumb مخفی می‌مونه */
	.header nav .needForMobile>ul::-webkit-scrollbar-thumb {
		background-color: transparent;
	}

	/* برای حذف track هم می‌تونی اضافه کنی */
	.header nav .needForMobile>ul::-webkit-scrollbar-track {
		background-color: transparent;
	}
	.header nav .closeBtn {
		display: block;
		border: none;
		width: 35px;
		height: 35px;
		margin-left: 5px;
		position: absolute;
		top: 50%;
		left: -52px;
		transform: translateY(-50%);
		background: rgba(255, 255, 255, 0.7); /* شفافیت بیشتر برای تست */
		backdrop-filter: blur(20px) saturate(180%);
		-webkit-backdrop-filter: blur(20px) saturate(180%);
		box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
		border: 1px solid rgba(255, 255, 255, 0.18);
		padding: 10px;
		border-radius: 50%;
	}

	.closeBtn svg {
		width: 100%;
		height: 100%;
	}
}



/************************* header>BTN *************************/
.headerBtn {
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: stretch;
}

.headerBtn a.call {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #fff;
	font-weight: bold;
	font-variation-settings: "wght" 700;
	border-radius: 7px;
	padding: 6px 10px;
	background: rgba(167, 131, 101, 0.8); /* شفافیت بیشتر برای تست */
		backdrop-filter: blur(1px) saturate(180%);
		-webkit-backdrop-filter: blur(1px) saturate(180%);
}

.headerBtn a.call svg {
	width: 15px;
	height: 15px;
	margin-left: 5px;
}

.headerBtn a.call pre {
	direction: ltr;
	font-weight: bold;
	font-variation-settings: "wght" 700;
}

.headerBtn select {
	border-radius: 7px;
	padding: 2px;
	margin-left: 5px;
}

#mobileMenuOpen {
	background-color: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	display: none;
}
@media screen and (max-width: 900px) {
	.headerBtn {
		gap: 7px;
	}

	#mobileMenuOpen {
		display: block;
	}
	
	.headerBtn a.call {
		font-size: .65rem;
		padding: 4px 8px;
	}

	.headerBtn a.call pre {
		display: none;
	}

	.headerBtn a.call svg {
		width: 14px;
		height: 14px;
		margin-left: auto;
	}

	.headerBtn select {
		padding: 1px;
	}
	
}




/* wrapper */
.lang {
  position: relative;
  display: inline-block;
}

/* button */
.lang__btn {
  	display: flex;
  	align-items: stretch;
	gap: 10px;
	background: none;
	border: none;
	cursor: pointer;
	transition: 0.2s ease;
	align-content: center;
	justify-content: center;
	padding-top: 7px;
	font-size: 0.8rem;
}

.lang__btn:hover {
  border-color: #cbd5e1;
}

/* dropdown */
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 200px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  display: none;
  z-index: 100;
}

/* item */
.lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #111827;
  transition: 0.15s;
  font-size: 0.8rem;
}

.lang__item:hover {
  background: #f3f4f6;
}

/* open */
.lang__menu.is-open {
  display: block;
}

/* flag */
.flag {
  font-size: 1rem;
}