/* SM Whisker Header Menu - right-hand sliding sidebar */

.header-menu {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	z-index: 10000;
	position: relative;
}

.header-menu .hamburger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 26px;
}

.header-menu .hamburger span {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate hamburger into an X when the overlay is open */
.header-menu.sm-whm-active .hamburger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.header-menu.sm-whm-active .hamburger span:nth-child(2) {
	opacity: 0;
}
.header-menu.sm-whm-active .hamburger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Dimmed backdrop behind the sidebar */
.sm-whm-backdrop {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sm-whm-backdrop.sm-whm-active {
	opacity: 1;
	visibility: visible;
}

/* Right-hand sliding sidebar */
.sm-whm-overlay {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 420px;
	max-width: 100%;
	background: #f0ebe1;
	z-index: 9999;
	transform: translateX(100%);
	transition: transform 0.4s ease;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.sm-whm-overlay.sm-whm-active {
	transform: translateX(0);
}

.sm-whm-close {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	z-index: 10001;
}

.sm-whm-close span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 1px;
	background: #2b2b2b;
	transform-origin: center;
}

.sm-whm-close span:nth-child(1) {
	transform: translate(-50%, -50%) rotate(45deg);
}

.sm-whm-close span:nth-child(2) {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Inner content wrapper - this is what scrolls, not the overlay itself,
   so the close button (a sibling, outside this wrapper) always stays
   pinned to the top-right regardless of scroll position or content height. */
.sm-whm-inner {
	width: 100%;
	height: 100%;
	overflow-y: auto;
	padding: 90px 60px 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 36px;
	box-sizing: border-box;
}

.sm-whm-nav {
	text-align: left;
	width: 100%;
}

.sm-whm-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.sm-whm-menu-list a {
	color: #0a122e;
	font-size: 20px;
	letter-spacing: 2px;
	text-transform: capitalize;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.sm-whm-menu-list a:hover {
	color: #a48c6d;
}

.sm-whm-no-menu {
	color: #2b2b2b;
	font-size: 15px;
	opacity: 0.7;
}

/* Divider line between sections */
.sm-whm-divider {
	width: 100%;
	height: 1px;
	background: #c9beac;
}

/* Contact details block */
.sm-whm-contact p {
	margin: 0 0 14px 0;
	font-size: 17px;
	line-height: 1.6;
	color: #0a122e;
}

.sm-whm-contact p:last-child {
	margin-bottom: 0;
}

.sm-whm-contact a {
	color: #0a122e;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.sm-whm-contact a:hover {
	color: #a48c6d;
}

/* Social icons row */
.sm-whm-socials {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sm-whm-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #c9beac;
	color: #2b2b2b;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.sm-whm-social-link:hover {
	opacity: 0.7;
}

body.sm-whm-menu-open {
	overflow: hidden;
}

@media (max-width: 680px) {
	.sm-whm-overlay {
		width: 100%;
	}

	.sm-whm-inner {
		padding: 90px 40px 40px;
	}

	.sm-whm-menu-list a {
		font-size: 22px;
	}
}
