/* Samurai Header 2026 — measurements from Figma (1920 canvas, card 940×484 component) */
.smh {
	--smh-navy: #2e3c4c;
	--smh-ink: #1e1e1e;
	--smh-coral: #ed7d7c;
	--smh-muted: #b9b8b8;
	--smh-top: clamp(12px, 2.08vw, 40px);
	--smh-x: clamp(16px, 4.43vw, 85px);
	--smh-ease: cubic-bezier(.4, 0, .2, 1);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 0;
	z-index: 9990;
	direction: rtl;
	font-family: "SimplerPro", sans-serif;
}
.smh *,
.smh *::before,
.smh *::after { box-sizing: border-box; }
.smh ul { list-style: none; margin: 0; padding: 0; }
.smh a { text-decoration: none; }
/* Hello's [type=button]:hover/:focus paints a pink box and sticks after a tap on touch screens */
.smh .smh-card button[type="button"],
.smh .smh-card button[type="button"]:hover,
.smh .smh-card button[type="button"]:focus,
.smh .smh-card button[type="button"]:active {
	background: none;
	-webkit-tap-highlight-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.smh img { display: block; max-width: none; }

/* ---------- phone + CTA (left side) ---------- */
.smh-side {
	position: absolute;
	top: clamp(12px, 3.6vw, 69px);
	left: clamp(16px, 4.58vw, 88px);
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 28px;
}
.smh-phone {
	font-size: 15px;
	line-height: 20px;
	font-weight: 900;
	color: var(--smh-ink);
	white-space: nowrap;
}
.smh .smh-phone:hover { color: var(--smh-coral); }
.smh-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 153px;
	height: 48px;
	border-radius: 0 20px 0 20px;
	background: var(--smh-coral);
	color: #fff;
	font-size: 14px;
	line-height: 20px;
	white-space: pre;
	transition: background-color .2s var(--smh-ease);
}
.smh .smh-cta,
.smh .smh-cta:hover { color: #fff; }
.smh .smh-cta:hover { background: var(--smh-navy); }

/* ---------- card ---------- */
.smh-card {
	position: fixed;
	top: var(--smh-top);
	right: var(--smh-x);
	width: 546px;
	height: 99px;
	background: #fff;
	border-radius: 30px 0 30px 0;
	box-shadow: 0 0 12.3px rgba(0, 0, 0, .25);
	overflow: hidden;
	transition: width .35s var(--smh-ease), height .35s var(--smh-ease), translate .3s var(--smh-ease);
}
body.admin-bar .smh-card { top: calc(var(--smh-top) + 32px); }
/* hidden while scrolling down; the extra 120px clears the top offset, admin bar and shadow */
.smh.smh-hidden .smh-card { translate: 0 calc(-100% - 120px); }
@media (prefers-reduced-motion: reduce) {
	.smh-card { transition: none; }
}

.smh-bar {
	display: flex;
	align-items: center;
	height: 99px;
	padding: 0 37px 0 25px;
	white-space: nowrap;
}
.smh-logo { flex: none; }
.smh-logo img { width: 226px; height: auto; }
.smh-divider {
	flex: none;
	width: 1px;
	height: 43px;
	margin: 0 20px 0 16px;
	background: #d2d2d2;
}
.smh-toggle {
	display: flex;
	align-items: center;
	gap: 0;
	height: 48px;
}
.smh-burger { margin-left: 11px; }
.smh-toggle-text {
	width: 176px;
	font-size: 17px;
	line-height: 20px;
	font-weight: 700;
	color: var(--smh-ink);
	text-align: center;
}
.smh-toggle-tri {
	margin-right: 2px;
	transform: rotate(180deg);
	transition: transform .3s var(--smh-ease);
}
.smh[data-state="open"] .smh-toggle-tri,
.smh[data-state="mega"] .smh-toggle-tri { transform: none; }

/* ---------- panel ---------- */
.smh-panel {
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s var(--smh-ease), visibility 0s linear .25s;
}
.smh[data-state="open"] .smh-panel,
.smh[data-state="mega"] .smh-panel {
	opacity: 1;
	visibility: visible;
	transition-delay: .1s, 0s;
}
.smh .smh-list { padding: 0 299px 53px 0; }
.smh-list > li {
	width: max-content;
	display: flex;
	align-items: center;
	gap: 7px;
}
.smh-list > li + li { margin-top: 21px; }
.smh-list > li > a {
	font-size: 15px;
	line-height: 20px;
	color: var(--smh-navy);
	transition: color .2s var(--smh-ease);
}
.smh .smh-list > li > a:hover,
.smh .smh-list > li > a:focus-visible {
	color: var(--smh-coral);
	font-weight: 700;
}
.smh[data-state="mega"] .smh-list > li > a { color: var(--smh-muted); }
.smh[data-state="mega"] .smh-list > li.is-active > a {
	color: var(--smh-ink);
	font-weight: 700;
}
.smh-expand { display: flex; align-items: center; height: 20px; }
.smh-expand img {
	transform: rotate(-90deg);
	transition: transform .25s var(--smh-ease);
}
.smh-list > li.is-active > .smh-expand img { transform: rotate(90deg); }

/* mega columns: first column 523px from the card's right edge, 198px column pitch */
.smh-sub {
	position: absolute;
	right: 523px;
	align-self: flex-start; /* static position = top of the parent row */
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(4, auto);
	grid-auto-columns: 172px;
	column-gap: 26px;
	row-gap: 26px;
	align-content: start;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s var(--smh-ease), visibility 0s linear .2s;
}
.smh-list > li.is-active > .smh-sub {
	opacity: 1;
	visibility: visible;
	transition-delay: .12s, 0s;
}
.smh-sub a {
	display: block;
	font-size: 15px;
	line-height: 20px;
	color: var(--smh-ink);
	white-space: nowrap;
	transition: color .2s var(--smh-ease);
}
.smh-sub strong { display: block; font-weight: 700; }
.smh-sub span { display: block; font-weight: 400; }
.smh .smh-sub a:hover,
.smh .smh-sub a:focus-visible { color: var(--smh-coral); }

.smh-panel-contact { display: none; }

/* ---------- tablet + mobile ---------- */
@media (max-width: 1024px) {
	html.smh-locked, html.smh-locked body { overflow: hidden; }
	/* mobile: a full-width white bar fixed to the top; .smh keeps its height in the flow so content starts below it */
	.smh { --smh-top: 0px; --smh-x: 0px; position: relative; height: 64px; }
	.smh .smh-card button[type="button"]:focus-visible { outline: 2px solid var(--smh-coral); outline-offset: 2px; }
	.smh-side { display: none; }
	.smh-card {
		left: 0;
		right: 0;
		width: auto !important;
		height: auto !important;
		max-height: 100vh;
		max-height: 100dvh;
		overscroll-behavior: contain;
		overflow-y: auto;
		border-radius: 0;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	}
	body.admin-bar .smh-card { top: 46px; max-height: calc(100vh - 46px); }
	.smh-bar { height: 64px; padding: 0 18px 0 16px; }
	.smh-logo img { width: 130px; }
	.smh-divider { display: none; }
	/* push the toggle to the far (left) end; beats the button reset's margin: 0 */
	.smh .smh-card button.smh-toggle[type="button"] { margin-right: auto; }
	.smh-panel { display: none; }
	.smh[data-state="open"] .smh-panel,
	.smh[data-state="mega"] .smh-panel { display: block; }
	.smh .smh-list { padding: 0 18px 8px; }
	.smh-list > li {
		width: auto;
		flex-wrap: wrap;
		justify-content: space-between;
		border-top: 1px solid #eee;
	}
	.smh-list > li + li { margin-top: 0; }
	.smh-list > li > a { padding: 13px 0; font-size: 16px; }
	.smh[data-state="mega"] .smh-list > li > a { color: var(--smh-navy); }
	.smh-expand { height: 46px; width: 40px; justify-content: center; }
	.smh .smh-sub {
		position: static;
		display: none;
		width: 100%;
		grid-auto-flow: row;
		grid-template-rows: none;
		grid-auto-columns: auto;
		row-gap: 14px;
		padding: 2px 14px 16px 0;
		opacity: 1;
		visibility: visible;
	}
	.smh-list > li.is-active > .smh-sub { display: grid; }
	.smh-panel-contact {
		display: flex;
		align-items: center;
		gap: 20px;
		padding: 8px 18px 20px;
	}
}
@media (max-width: 767px) {
	.smh-toggle-text { display: none; }
	.smh-burger { margin-left: 6px; }
}
