/* Shrisha Header Menu - Frontend Styles */

.shm-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	background: transparent;
}

.shm-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	padding: 20px 40px;
	box-sizing: border-box;
}

.shm-logo img {
	display: block;
	width: 140px;
	height: auto;
}

/* BUGFIX: hamburger position control (Content tab) had no matching CSS before.
   Flip order so the button visually moves to the left when selected. */
.shm-hamburger-left .shm-hamburger {
	order: -1;
}

.shm-logo-text {
	font-weight: 700;
	letter-spacing: 3px;
	text-decoration: none;
	color: #fff;
}

/* Hamburger */
.shm-hamburger {
	position: relative;
	width: 34px;
	height: 22px;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	z-index: 1001;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.shm-hamburger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #fff;
	border-radius: 2px;
	transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.3s ease;
}

.shm-hamburger span:nth-child(1) {
	transform: translateY(-8px);
}

.shm-hamburger span:nth-child(2) {
	transform: translateY(0);
}

.shm-hamburger span:nth-child(3) {
	transform: translateY(8px);
}

.shm-hamburger.is-active span:nth-child(1) {
	transform: translateY(0) rotate(45deg);
}

.shm-hamburger.is-active span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.shm-hamburger.is-active span:nth-child(3) {
	transform: translateY(0) rotate(-45deg);
}

/* Popup */
.shm-popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background-color: #0d0d0d;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.shm-popup::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: transparent;
	pointer-events: none;
}

.shm-popup.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

/* Animation variants (class toggled by JS based on data-shm animation type) */
.shm-popup[data-anim="fade"] {
	transition: opacity var(--shm-duration, 500ms) ease;
}

.shm-popup[data-anim="fade-scale"] {
	transition: opacity var(--shm-duration, 500ms) ease;
}
.shm-popup[data-anim="fade-scale"] .shm-popup-nav-wrap {
	transform: scale(0.85);
	opacity: 0;
	transition: transform var(--shm-duration, 500ms) cubic-bezier(0.16, 1, 0.3, 1), opacity var(--shm-duration, 500ms) ease;
}
.shm-popup[data-anim="fade-scale"].is-open .shm-popup-nav-wrap {
	transform: scale(1);
	opacity: 1;
}

.shm-popup[data-anim="slide-down"] {
	clip-path: inset(0 0 100% 0);
	transition: clip-path var(--shm-duration, 500ms) cubic-bezier(0.65, 0, 0.35, 1);
	opacity: 1;
}
.shm-popup[data-anim="slide-down"].is-open {
	clip-path: inset(0 0 0 0);
}

.shm-popup[data-anim="slide-left"] {
	transform: translateX(100%);
	opacity: 1;
	transition: transform var(--shm-duration, 500ms) cubic-bezier(0.65, 0, 0.35, 1);
}
.shm-popup[data-anim="slide-left"].is-open {
	transform: translateX(0);
}

.shm-popup-nav-wrap {
	width: 100%;
	max-width: 900px;
	padding: 0 40px;
	box-sizing: border-box;
}

.shm-popup-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.shm-popup-nav-item {
	opacity: 1;
	transform: translateY(0);
}

.shm-popup.stagger .shm-popup-nav-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	transition-delay: calc(var(--shm-i, 0) * 70ms);
}

.shm-popup.stagger.is-open .shm-popup-nav-item {
	opacity: 1;
	transform: translateY(0);
}

.shm-popup-nav a {
	display: inline-block;
	text-decoration: none;
	color: #fff;
	font-weight: 700;
	font-size: 42px;
	line-height: 1.5;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.shm-popup-nav a:hover {
	color: #ff5722;
}

/* Close button */
.shm-close {
	position: absolute;
	top: 30px;
	right: 40px;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 0;
	cursor: pointer;
	z-index: 1002;
}

.shm-close span {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #fff;
	transition: background-color 0.3s ease;
}

.shm-close span:nth-child(1) {
	transform: rotate(45deg);
}

.shm-close span:nth-child(2) {
	transform: rotate(-45deg);
}

.shm-close:hover span {
	background-color: #ff5722;
}

/* Lock body scroll when popup open */
body.shm-scroll-lock {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
	.shm-popup-nav a {
		font-size: 34px;
	}
}

@media (max-width: 767px) {
	.shm-header-inner {
		padding: 16px 20px;
	}

	.shm-logo img {
		width: 100px;
	}

	.shm-popup-nav a {
		font-size: 26px;
	}

	.shm-popup-nav-wrap {
		padding: 0 20px;
	}

	.shm-close {
		top: 18px;
		right: 20px;
	}
}

@media (max-width: 480px) {
	.shm-popup-nav a {
		font-size: 22px;
	}
}
