/* Sonicar Site Header: all rules are scoped to .ssh-header */
.ssh-header {
	--ssh-bg: #fff;
	--ssh-text: #111;
	--ssh-line: #e5e5e9;
	--ssh-hover: #f1f1f5;
	--ssh-o1: #ffa032;
	--ssh-o2: #ee4a14;
	--ssh-height: 66px;
	--ssh-max: 1336px;
	position: relative;
	width: 100%;
	z-index: 9999;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

.ssh-header.ssh-sticky { position: sticky; top: 0; }
body.admin-bar .ssh-header.ssh-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ssh-header.ssh-sticky { top: 46px; } }

.ssh-header *, .ssh-header *::before, .ssh-header *::after { box-sizing: border-box; }
.ssh-header a { text-decoration: none; box-shadow: none; border-bottom: 0; }
.ssh-header ul, .ssh-header li { list-style: none; margin: 0; padding: 0; }

.ssh-header .ssh-bar {
	position: relative;
	width: 100%;
	height: var(--ssh-height);
	background: var(--ssh-bg);
	border-bottom: 1px solid var(--ssh-line);
	margin: 0;
	padding: 0;
}

.ssh-header .ssh-inner {
	position: relative;
	width: calc(100% - 48px);
	max-width: var(--ssh-max);
	height: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* logo */
.ssh-header .ssh-logo-link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Orbitron', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: .04em;
	color: var(--ssh-text);
}
.ssh-header .ssh-logo-img { display: block; max-height: calc(var(--ssh-height) - 24px); width: auto; height: auto; }
.ssh-header .ssh-bolt { width: 16px; height: 24px; flex: none; }
.ssh-header .ssh-logo-accent {
	font-style: normal;
	margin-left: -6px;
	background: linear-gradient(90deg, #f7b21c, var(--ssh-o2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

/* menu */
.ssh-header .ssh-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.ssh-header .ssh-menu { display: flex; gap: 2px; }
.ssh-header .ssh-li { position: relative; }

.ssh-header .ssh-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 13px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ssh-text);
	background: transparent;
	cursor: pointer;
	transition: background .18s;
}

.ssh-header .ssh-chev { width: 11px; height: 11px; flex: none; transition: transform .2s; }
.ssh-header .ssh-li:hover > .ssh-item,
.ssh-header .ssh-li.ssh-open > .ssh-item { background: var(--ssh-hover); color: var(--ssh-text); }
.ssh-header .ssh-li.ssh-open > .ssh-item .ssh-chev { transform: rotate(180deg); }

/* dropdown */
.ssh-header .ssh-sub {
	position: absolute;
	top: calc(100% + 7px);
	left: 0;
	display: grid;
	background: #fff;
	border: 1px solid var(--ssh-line);
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(20, 20, 40, .14), 0 2px 6px rgba(20, 20, 40, .06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px) scale(.985);
	transform-origin: top center;
	transition: opacity .18s, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s .22s;
	z-index: 10;
}
.ssh-header .ssh-open > .ssh-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ssh-header .ssh-sub.ssh-cols-1 { grid-template-columns: 1fr; width: 262px; }
.ssh-header .ssh-sub.ssh-cols-2 { grid-template-columns: 1fr 1fr; width: min(660px, 92vw); }
.ssh-header .ssh-sub.ssh-cols-3 { grid-template-columns: 1fr 1fr 1fr; width: min(960px, 94vw); }

.ssh-header .ssh-col { padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; }
.ssh-header .ssh-col + .ssh-col { border-left: 1px solid var(--ssh-line); }

.ssh-header .ssh-box {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: 10px;
	color: #111;
	transition: background-color .15s;
}
.ssh-header .ssh-box:hover { background: #f1f1f4; }
.ssh-header .ssh-open .ssh-box { animation: ssh-in .3s both; }
@keyframes ssh-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.ssh-header .ssh-icon {
	flex: none;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: linear-gradient(180deg, #fff, #f4f4f6);
	border: 1px solid var(--ssh-line);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12), inset 0 1px 0 #fff;
}
.ssh-header .ssh-icon svg { width: 16px; height: 16px; stroke: #222; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ssh-header .ssh-box-text { display: block; min-width: 0; }
.ssh-header .ssh-box-title { display: block; margin: 0 0 3px; font-size: 14px; font-weight: 500; line-height: 1.35; color: #111; }
.ssh-header .ssh-box-desc { display: block; font-size: 12.5px; line-height: 1.4; color: #6b6b73; }

/* buttons */
.ssh-header .ssh-btns { display: flex; align-items: center; gap: 11px; }
.ssh-header .ssh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 13px;
	border-radius: 7px;
	border: 1px solid var(--ssh-line);
	background: #fff;
	color: #111;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .15s, box-shadow .2s;
}
.ssh-header .ssh-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); color: #111; }
.ssh-header .ssh-btn-2,
.ssh-header .ssh-btn-2:hover {
	border: 0;
	color: #fff;
	background: linear-gradient(180deg, var(--ssh-o1), var(--ssh-o2));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(238, 74, 20, .45);
}
.ssh-header .ssh-btn-2:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 12px rgba(238, 74, 20, .35); }

/* mobile toggle */
.ssh-header .ssh-toggle {
	display: none;
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0 0 0 10px;
	border: 1px solid var(--ssh-line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.ssh-header .ssh-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #111; transition: transform .2s, opacity .2s; }
.ssh-header.ssh-nav-open .ssh-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ssh-header.ssh-nav-open .ssh-toggle span:nth-child(2) { opacity: 0; }
.ssh-header.ssh-nav-open .ssh-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.ssh-header .ssh-toggle { display: inline-flex; order: 3; }
	.ssh-header .ssh-btns { margin-left: auto; }
	.ssh-header.ssh-hide-b1 .ssh-btn-1 { display: none; }

	.ssh-header .ssh-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		transform: none;
		background: var(--ssh-bg);
		border-bottom: 1px solid var(--ssh-line);
		box-shadow: 0 18px 30px rgba(20, 20, 40, .1);
		padding: 8px 12px 14px;
		max-height: calc(100vh - var(--ssh-height));
		overflow-y: auto;
	}
	.ssh-header.ssh-nav-open .ssh-nav { display: block; }
	.ssh-header .ssh-menu { flex-direction: column; gap: 0; }

	.ssh-header .ssh-sub,
	.ssh-header .ssh-sub.ssh-cols-1,
	.ssh-header .ssh-sub.ssh-cols-2,
	.ssh-header .ssh-sub.ssh-cols-3 {
		position: static;
		display: none;
		width: 100%;
		grid-template-columns: 1fr;
		border: 0;
		box-shadow: none;
		background: transparent;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}
	.ssh-header .ssh-open > .ssh-sub { display: grid; }
	.ssh-header .ssh-col { padding: 4px 0; }
	.ssh-header .ssh-col + .ssh-col { border-left: 0; }
}
