/* Karim Home Widgets – shared header (logo, menu, socials, button), used by the hero and page-hero widgets */

.khw-has-header .header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px var(--pad-x) 0;
}

/* Keep the header (and its mobile dropdown) above the hero content that follows it */
.khw-has-header .hero > .header {
	position: relative;
	z-index: 20;
}

.khw-has-header .logo {
	display: inline-flex;
	flex-shrink: 0;
	padding: 8px 16px;
	background: var(--glass);
	backdrop-filter: blur(6px);
	border-radius: 8px;
}

.khw-has-header .logo img {
	width: auto;
	height: 40px;
}

.khw-has-header .nav {
	background: var(--glass);
	backdrop-filter: blur(6px);
	border-radius: 8px;
	padding: 0 14px;
}

.khw-has-header .menu {
	display: flex;
	list-style: none;
}

.khw-has-header .menu > li {
	position: relative;
}

.khw-has-header .menu > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 19px 20px;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: -0.2px;
	white-space: nowrap;
	transition: color .2s;
}

.khw-has-header .menu > li > a:hover,
.khw-has-header .menu > li > a:focus-visible,
.khw-has-header .menu > li > a[aria-current="page"] {
	color: var(--gold);
}

.khw-has-header .header-right {
	display: flex;
	align-items: center;
	gap: 36px;
}

.khw-has-header .header-right .btn-lime:hover {
	--btn-bg: var(--white);
	color: var(--dark);
}

.khw-has-header .header-right .btn-lime:hover .btn-label,
.khw-has-header .header-right .btn-lime:hover .btn-icon {
	color: var(--dark);
}

/* Service cards and details in the shared navigation dropdown */
.khw-has-header .nav-services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
}

.khw-has-header .menu-item-services {
	position: relative;
}

.khw-has-header .menu-item-services > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -3px 0 0 3px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}

.khw-has-header .menu-item-services:hover > a::after,
.khw-has-header .menu-item-services:focus-within > a::after,
.khw-has-header .menu-item-services.is-open > a::after {
	transform: rotate(225deg);
}

.khw-has-header .menu-item-services > a {
	position: relative;
}

.khw-has-header .menu-item-services:hover > a::before,
.khw-has-header .menu-item-services:focus-within > a::before {
	position: absolute;
	right: 15px;
	bottom: 10px;
	left: 15px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	content: "";
}

.khw-has-header .menu-item-services > a:focus-visible,
.khw-has-header .nav-service:focus-visible,
.khw-has-header .nav-all-card:focus-visible,
.khw-has-header .nav-service-detail a:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.khw-has-header .nav-panel {
	display: none;
}

@media (min-width: 1025px) {
	.khw-has-header .menu-item-services > .nav-panel {
		position: absolute;
		top: calc(100% + 25px);
		left: 50%;
		z-index: 30;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		gap: 14px;
		width: min(1020px, calc(100vw - 48px));
		padding: 22px;
		border: 1px solid rgba(255, 255, 255, .16);
		border-radius: 12px;
		background:
			radial-gradient(ellipse at 92% 0, rgba(255, 215, 0, .09), transparent 34%),
			linear-gradient(145deg, rgba(19, 38, 58, .99), rgba(8, 18, 28, .99));
		box-shadow: 0 28px 80px rgba(0, 0, 0, .38), 0 4px 14px rgba(0, 0, 0, .18);
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, 8px);
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
		pointer-events: none;
	}

	.khw-has-header .menu-item-services > .nav-panel::after {
		position: absolute;
		top: -26px;
		right: 0;
		left: 0;
		height: 26px;
		content: "";
	}

	.khw-has-header .menu-item-services:not(.is-collapsed):hover > .nav-panel,
	.khw-has-header .menu-item-services:not(.is-collapsed):focus-within > .nav-panel {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
		transition-delay: 0s;
		pointer-events: auto;
	}

	.khw-has-header .hero.has-open-mega {
		overflow: visible;
	}

	.khw-has-header .hero.has-open-mega::before {
		border-radius: inherit;
	}
}

.khw-has-header .nav-panel-head {
	grid-column: 1 / -1;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	padding: 0 2px 6px;
	border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.khw-has-header .nav-panel-kicker {
	display: block;
	margin-bottom: 7px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold);
}

.khw-has-header .nav-panel-head h2 {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--white);
}

.khw-has-header .nav-panel-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 3px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
	white-space: nowrap;
}

.khw-has-header .nav-panel-count span {
	color: var(--gold);
	font-size: 12px;
	font-weight: 600;
}

.khw-has-header .nav-service {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	height: 100%;
	min-height: 128px;
	padding: 17px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 7px;
	background: linear-gradient(140deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
	color: var(--white);
	transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.khw-has-header .nav-service:hover,
.khw-has-header .nav-service:focus-visible,
.khw-has-header .nav-service.is-active {
	border-color: var(--gold);
	background: linear-gradient(140deg, rgba(255, 215, 0, .12), rgba(255, 255, 255, .035));
	box-shadow: inset 3px 0 0 var(--gold), 0 8px 24px rgba(0, 0, 0, .12);
}

.khw-has-header .nav-service:hover {
	transform: translateY(-2px);
}

.khw-has-header .nav-service-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 215, 0, .38);
	border-radius: 5px;
	background: linear-gradient(145deg, #ffe05b, #ffd700);
	box-shadow: 0 4px 12px rgba(255, 215, 0, .12);
	transition: transform .3s, box-shadow .3s;
}

.khw-has-header .nav-service:hover .nav-service-icon {
	transform: translateY(-2px);
	box-shadow: 0 7px 16px rgba(255, 215, 0, .2);
}

.khw-has-header .nav-service-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--dark);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.khw-has-header .nav-service-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -.02em;
}

.khw-has-header .nav-feature {
	position: relative;
	min-width: 0;
	min-height: 100%;
}

.khw-has-header .nav-all-card,
.khw-has-header .nav-service-detail {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 7px;
	color: var(--white);
}

.khw-has-header .nav-all-card {
	position: relative;
	justify-content: center;
	gap: 16px;
	overflow: hidden;
	border-color: rgba(255, 215, 0, .5);
	background:
		radial-gradient(ellipse at 100% 0, rgba(255, 255, 255, .22), transparent 42%),
		linear-gradient(145deg, #ffe263, #ffd700 55%, #efc600);
	color: var(--dark);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .13), inset 0 1px rgba(255, 255, 255, .45);
	transition: border-color .25s, filter .25s, transform .25s, box-shadow .25s;
}

.khw-has-header .nav-all-card:hover,
.khw-has-header .nav-all-card:focus-visible {
	border-color: rgba(255, 255, 255, .8);
	filter: saturate(1.05) brightness(1.02);
	transform: translateY(-2px);
	box-shadow: 0 15px 34px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .5);
}

.khw-has-header .nav-all-kicker {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(13, 27, 42, .68);
}

.khw-has-header .nav-all-title,
.khw-has-header .nav-service-detail h3 {
	margin: 0;
	font-size: clamp(20px, 1.8vw, 28px);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--dark);
}

.khw-has-header .nav-all-text {
	max-width: 330px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(13, 27, 42, .76);
}

.khw-has-header .nav-all-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid rgba(13, 27, 42, .2);
	font-size: 13px;
	font-weight: 600;
	color: var(--dark);
}

.khw-has-header .nav-all-link > span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--dark);
	color: var(--gold);
	font-size: 17px;
	transition: transform .25s, background .25s, color .25s;
}

.khw-has-header .nav-all-card:hover .nav-all-link > span {
	transform: rotate(-45deg);
	background: var(--white);
	color: var(--dark);
}

.khw-has-header .nav-service-detail {
	position: relative;
	gap: 14px;
	border-color: rgba(255, 215, 0, .5);
	background:
		radial-gradient(ellipse at 100% 0, rgba(255, 255, 255, .2), transparent 42%),
		linear-gradient(145deg, #ffe263, #ffd700 55%, #efc600);
	color: var(--dark);
}

.khw-has-header .nav-service-detail h3 {
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(13, 27, 42, .2);
	font-size: 20px;
}

.khw-has-header .nav-service-detail ul {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.khw-has-header .nav-service-detail li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(13, 27, 42, .14);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: rgba(13, 27, 42, .83);
	transition: color .2s, padding .2s;
}

.khw-has-header .nav-service-detail li:last-child a {
	border-bottom: 0;
}

.khw-has-header .nav-service-detail li a:hover,
.khw-has-header .nav-service-detail li a:focus-visible {
	padding-left: 4px;
	color: var(--dark);
}

.khw-has-header .nav-service-detail li a span {
	flex-shrink: 0;
	color: rgba(13, 27, 42, .72);
}

.khw-has-header .nav-panel .nav-service-detail[hidden],
.khw-has-header .nav-panel .nav-all-card[hidden] {
	display: none;
}

.khw-has-header .nav-panel .btn {
	display: none;
	width: 100%;
}

.khw-has-header .nav-panel .btn-label {
	flex: 1;
	justify-content: center;
}

/* Phone link beside the menu button: tablet shows icon + number, phones the icon only */
.khw-has-header .header-phone {
	display: none;
	align-items: center;
	gap: 10px;
	height: 50px;
	padding: 0 18px 0 16px;
	border-radius: 8px;
	background: var(--glass);
	backdrop-filter: blur(6px);
	color: var(--white);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: background .25s, color .25s;
}

.khw-has-header .header-phone:hover,
.khw-has-header .header-phone:focus-visible {
	background: var(--gold);
	color: var(--dark);
}

.khw-has-header .header-phone svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.khw-has-header .menu-toggle {
	display: none;
	width: 50px;
	height: 50px;
	border: 0;
	border-radius: 8px;
	background: var(--glass);
	color: var(--white);
	cursor: pointer;
}

.khw-has-header .menu-toggle span,
.khw-has-header .menu-toggle span::before,
.khw-has-header .menu-toggle span::after {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: currentColor;
	border-radius: 2px;
	position: relative;
	transition: transform .25s, background .25s;
}

.khw-has-header .menu-toggle span::before,
.khw-has-header .menu-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.khw-has-header .menu-toggle span::before {
	top: -7px;
}

.khw-has-header .menu-toggle span::after {
	top: 7px;
}

.khw-has-header .menu-open .menu-toggle span {
	background: transparent;
}

.khw-has-header .menu-open .menu-toggle span::before {
	transform: translateY(7px) rotate(45deg);
}

.khw-has-header .menu-open .menu-toggle span::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1500px) {
	.khw-has-header .header-right {
		gap: 24px;
	}

	.khw-has-header .header .socials {
		display: none;
	}

	.khw-has-header .menu > li > a {
		padding: 19px 14px;
		font-size: 14px;
	}

	.khw-has-header .logo img {
		height: 38px;
	}
}

@media (max-width: 1400px) {
	.khw-has-header .header-right .btn {
		display: none;
	}
}

@media (max-width: 1200px) {
	.khw-has-header .menu > li > a {
		padding: 19px 11px;
	}
}

@media (max-width: 1024px) {
	.khw-has-header .header-right {
		gap: 10px;
	}

	.khw-has-header .hero.menu-open {
		overflow: visible;
	}

	.khw-has-header .hero.menu-open::before {
		border-radius: inherit;
	}

	.khw-has-header .menu-toggle {
		display: block;
	}

	.khw-has-header .header-phone {
		display: inline-flex;
	}

	.khw-has-header .nav {
		position: absolute;
		top: 86px;
		left: var(--pad-x);
		right: var(--pad-x);
		z-index: 5;
		padding: 8px;
		background: rgba(13, 27, 42, .96);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: all .25s ease;
	}

	.khw-has-header .menu-open .nav {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	/* The service panel expands below its menu item on touch-sized layouts. */
	.khw-has-header .nav {
		display: block;
		max-height: calc(100vh - 152px);
		max-height: calc(100svh - 152px);
		overflow-y: auto;
	}

	.khw-has-header .menu {
		flex-direction: column;
	}

	.khw-has-header .menu-item-services > .nav-panel {
		position: static;
		width: auto;
		margin: 0;
		padding: 14px 8px 8px;
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, .12);
		border-radius: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
	}

	.khw-has-header .menu-item-services.is-open > .nav-panel,
	.khw-has-header .menu-item-services:not(.is-collapsed):focus-within > .nav-panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: auto auto;
		align-items: stretch;
		gap: 10px;
	}

	.khw-has-header .nav-panel-head {
		padding: 0 0 10px;
	}

	.khw-has-header .nav-panel-head h2 {
		font-size: 17px;
	}

	.khw-has-header .nav-panel-count {
		font-size: 9px;
	}

	.khw-has-header .nav-panel-count span {
		font-size: 11px;
	}

	.khw-has-header .nav-services {
		align-self: start;
	}

	.khw-has-header .nav-service {
		min-height: 112px;
		padding: 14px;
	}

	.khw-has-header .nav-service-icon {
		width: 34px;
		height: 34px;
	}

	.khw-has-header .nav-feature {
		min-height: 100%;
	}

	.khw-has-header .nav-all-card,
	.khw-has-header .nav-service-detail {
		padding: 18px;
	}

	.khw-has-header .nav-panel .btn {
		display: flex;
		grid-column: 1 / -1;
	}

	.khw-has-header .nav-panel {
		gap: 10px;
	}

	.khw-has-header .menu > li > a {
		padding: 14px 16px;
	}
}

@media (max-width: 600px) {
	.khw-has-header .menu-item-services.is-open > .nav-panel,
	.khw-has-header .menu-item-services:not(.is-collapsed):focus-within > .nav-panel {
		grid-template-columns: 1fr;
	}

	.khw-has-header .nav-panel-head h2 {
		font-size: 16px;
	}

	.khw-has-header .nav-panel-count {
		gap: 5px;
		font-size: 8px;
	}

	.khw-has-header .nav-service {
		min-height: 96px;
		padding: 13px;
	}

	.khw-has-header .nav-service-title {
		font-size: 13px;
	}

	.khw-has-header .nav-feature {
		min-height: 210px;
	}

	.khw-has-header .nav-all-card,
	.khw-has-header .nav-service-detail {
		padding: 18px;
	}

	.khw-has-header .nav-service-detail h3 {
		font-size: 16px;
	}

	.khw-has-header .nav-service-detail li a {
		font-size: 12px;
	}

	.khw-has-header .header-phone {
		justify-content: center;
		width: 50px;
		padding: 0;
	}

	.khw-has-header .header-phone span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.khw-has-header .logo {
		padding: 8px 12px;
	}

	.khw-has-header .logo img {
		height: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.khw-has-header .menu-item-services > a::after,
	.khw-has-header .menu-item-services > .nav-panel,
	.khw-has-header .nav-service,
	.khw-has-header .nav-service-icon,
	.khw-has-header .nav-all-card,
	.khw-has-header .nav-all-link > span,
	.khw-has-header .nav-service-detail li a {
		transition-duration: .01ms;
	}
}

/*
 * Desktop "Appelez maintenant" phone button, left of the header button (replaces the social icons).
 * Two lines: small label on top, number below, icon centred on the left.
 * ≥1620px: icon + label + number · 1201–1619px: round icon · 1025–1200px: hidden (no room beside the menu)
 * Tablet and phone keep their own phone link (icon + number / icon only) from the rules above.
 */
@media (min-width: 1025px) {
	.khw-has-header .header-right {
		gap: 14px;
	}

	.khw-has-header .header-phone {
		display: inline-grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		align-content: center;
		column-gap: 11px;
		row-gap: 1px;
		order: -1;
		height: 56px;
		padding: 0 24px 0 20px;
		border: 1px solid rgba(255, 255, 255, .38);
		border-radius: 999px;
		background: rgba(255, 255, 255, .08);
		text-align: left;
	}

	.khw-has-header .header-phone svg {
		grid-row: 1 / span 2;
		align-self: center;
		width: 20px;
		height: 20px;
	}

	.khw-has-header .header-phone__label {
		font-size: 12px;
		font-weight: 400;
		line-height: 1.15;
		letter-spacing: .02em;
		opacity: .8;
	}

	.khw-has-header .header-phone__number {
		font-size: 16px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: .01em;
	}

	.khw-has-header .header-phone:hover,
	.khw-has-header .header-phone:focus-visible {
		border-color: var(--gold);
	}

	.khw-has-header .header-phone:hover .header-phone__label,
	.khw-has-header .header-phone:focus-visible .header-phone__label {
		opacity: 1;
	}
}

@media (min-width: 1201px) and (max-width: 1619px) {
	.khw-has-header .header-phone {
		display: inline-flex;
		justify-content: center;
		width: 56px;
		padding: 0;
	}

	.khw-has-header .header-phone span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* Tighter menu so the button(s) fit beside it up to 1899px */
@media (min-width: 1401px) and (max-width: 1899px) {
	.khw-has-header .header-right {
		gap: 10px;
	}

	.khw-has-header .menu > li > a {
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media (min-width: 1025px) and (max-width: 1200px) {
	.khw-has-header .header-phone {
		display: none;
	}
}

@media (max-width: 1024px) {
	.khw-has-header .header-phone__label {
		display: none;
	}

	/* Compact header phone button: yellow square, dark icon */
	.khw-has-header .header-phone,
	.khw-has-header .header-phone:visited {
		background: var(--gold);
		color: var(--dark);
		box-shadow: 0 6px 18px rgba(255, 215, 0, .25);
	}

	.khw-has-header .header-phone:hover,
	.khw-has-header .header-phone:focus-visible {
		background: var(--white);
		color: var(--dark);
	}
}

/* ==================================================================
 * Sticky capsule header + off-canvas menu (built by khw-frontend.js)
 * Lives outside .khw, so it carries its own copies of the design tokens.
 * ================================================================== */
.khw-sticky,
.khw-drawer {
	--ks-gold: #FFD700;
	--ks-gold-hover: #F2C200;
	--ks-dark: #0D1B2A;
	--ks-white: #ffffff;
	--ks-glass: rgba(13, 27, 42, .72);
	--ks-line: rgba(255, 255, 255, .16);
	--ks-ease: cubic-bezier(.22, 1, .36, 1);
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.khw-sticky *,
.khw-drawer * {
	box-sizing: border-box;
}

.khw-sticky a,
.khw-drawer a {
	text-decoration: none;
}

.khw-sticky svg,
.khw-drawer svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Capsule ── */
.khw-sticky {
	position: fixed;
	top: 14px;
	left: 50%;
	z-index: 9990;
	width: min(calc(100% - 24px), 1300px);
	transform: translate(-50%, calc(-100% - 28px));
	opacity: 0;
	pointer-events: none;
	transition: transform .55s var(--ks-ease), opacity .35s ease;
}

/* Logged-in admins: sit below the fixed WordPress toolbar */
@media (min-width: 601px) {
	.admin-bar .khw-sticky {
		top: 60px;
	}
}

@media (min-width: 783px) {
	.admin-bar .khw-sticky {
		top: 46px;
	}
}

.khw-sticky.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
	pointer-events: auto;
}

.khw-sticky__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 66px;
	padding: 0 9px 0 22px;
	border: 1px solid var(--ks-line);
	border-radius: 999px;
	background: var(--ks-glass);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	backdrop-filter: blur(24px) saturate(160%);
	box-shadow: 0 12px 36px rgba(8, 18, 28, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.khw-sticky__logo,
.khw-drawer__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.khw-sticky__logo img {
	display: block;
	width: auto;
	height: 34px;
}

.khw-sticky__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── Highlighted call button (capsule + drawer) ── */
.khw-call {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border-radius: 999px;
	background: var(--ks-gold);
	color: var(--ks-dark);
	white-space: nowrap;
	box-shadow: 0 0 0 0 rgba(255, 215, 0, .45), 0 8px 22px rgba(255, 215, 0, .22);
	transition: background .25s, transform .25s var(--ks-ease), box-shadow .25s;
}

.khw-call:hover,
.khw-call:focus-visible {
	background: var(--ks-white);
	color: var(--ks-dark);
	transform: translateY(-1px);
}

.khw-call__icon {
	position: relative;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ks-dark);
	color: var(--ks-gold);
}

.khw-call__icon svg {
	width: 16px;
	height: 16px;
}

/* Soft pulse ring around the phone icon */
.khw-call__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(13, 27, 42, .45);
	animation: khw-call-pulse 2.6s ease-out infinite;
}

@keyframes khw-call-pulse {
	0% { box-shadow: 0 0 0 0 rgba(13, 27, 42, .42); }
	70%, 100% { box-shadow: 0 0 0 9px rgba(13, 27, 42, 0); }
}

.khw-call__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.khw-call__label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .02em;
	opacity: .78;
}

.khw-call__number {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .01em;
}

.khw-sticky__call {
	height: 48px;
	padding: 0 20px 0 7px;
}

/* ── Menu button ── */
.khw-sticky .khw-sticky__menu,
.khw-sticky .khw-sticky__menu:hover,
.khw-sticky .khw-sticky__menu:focus,
.khw-sticky .khw-sticky__menu:active,
.khw-drawer .khw-drawer__close,
.khw-drawer .khw-drawer__close:hover,
.khw-drawer .khw-drawer__close:focus,
.khw-drawer .khw-drawer__close:active {
	box-shadow: none;
	color: var(--ks-white);
	text-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.khw-sticky .khw-sticky__menu:focus:not(:focus-visible),
.khw-drawer .khw-drawer__close:focus:not(:focus-visible) {
	outline: none;
}

.khw-sticky__menu {
	display: grid;
	place-content: center;
	gap: 5px;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--ks-line);
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: var(--ks-white);
	cursor: pointer;
	transition: background .25s, border-color .25s;
}

.khw-sticky__menu span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.khw-sticky__menu span:nth-child(2) {
	width: 12px;
	justify-self: end;
}

.khw-sticky .khw-sticky__menu {
	background: rgba(255, 255, 255, .08);
}

.khw-sticky .khw-sticky__menu:hover,
.khw-sticky .khw-sticky__menu:focus,
.khw-sticky .khw-sticky__menu:active {
	border-color: var(--ks-gold);
	background: rgba(255, 255, 255, .14);
}

.khw-sticky :focus-visible,
.khw-drawer :focus-visible {
	outline: 2px solid var(--ks-gold);
	outline-offset: 3px;
}

/* ── Off-canvas menu ── */
html.khw-drawer-open {
	overflow: hidden;
}

.khw-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.khw-drawer[hidden] {
	display: none;
}

.khw-drawer__backdrop {
	position: absolute;
	inset: 0;
	/* Frosted page: shapes and colours still read through, text does not, so the menu stands out */
	background: rgba(8, 18, 28, .34);
	-webkit-backdrop-filter: blur(9px) saturate(1.1);
	backdrop-filter: blur(9px) saturate(1.1);
	opacity: 0;
	transition: opacity .35s ease;
}

.khw-drawer__panel {
	position: absolute;
	top: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-direction: column;
	width: min(calc(100% - 24px), 430px);
	overflow-y: auto;
	padding: 18px 22px 22px;
	border: 1px solid var(--ks-line);
	border-radius: 28px;
	background: rgba(13, 27, 42, .82);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
	box-shadow: 0 24px 60px rgba(8, 18, 28, .4);
	color: var(--ks-white);
	transform: translateX(calc(100% + 24px));
	transition: transform .5s var(--ks-ease);
	overscroll-behavior: contain;
}

.khw-drawer.is-open .khw-drawer__backdrop {
	opacity: 1;
}

.khw-drawer.is-open .khw-drawer__panel {
	transform: translateX(0);
}

.khw-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ks-line);
}

.khw-drawer__logo img {
	display: block;
	width: auto;
	height: 36px;
}

.khw-drawer__close {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--ks-line);
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: var(--ks-white);
	cursor: pointer;
	transition: background .25s, border-color .25s, transform .35s var(--ks-ease);
}

.khw-drawer__close svg {
	width: 20px;
	height: 20px;
}

.khw-drawer .khw-drawer__close {
	background: rgba(255, 255, 255, .08);
}

.khw-drawer .khw-drawer__close:hover,
.khw-drawer .khw-drawer__close:focus,
.khw-drawer .khw-drawer__close:active {
	border-color: var(--ks-gold);
	background: rgba(255, 255, 255, .14);
}

.khw-drawer .khw-drawer__close:hover {
	transform: rotate(90deg);
}

.khw-drawer__nav {
	flex: 1;
	padding: 10px 0;
}

.khw-drawer__list,
.khw-drawer__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.khw-drawer__item {
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.khw-drawer__link {
	display: block;
	padding: 15px 4px;
	color: var(--ks-white);
	font-size: 19px;
	font-weight: 500;
	letter-spacing: -.01em;
	transition: color .2s, padding-left .3s var(--ks-ease);
}

.khw-drawer__link:hover,
.khw-drawer__link:focus-visible {
	padding-left: 10px;
	color: var(--ks-gold);
}

.khw-drawer__link[aria-current="page"],
.khw-drawer__svc-link[aria-current="page"] {
	color: var(--ks-gold);
}

.khw-drawer__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.khw-drawer__row .khw-drawer__link {
	flex: 1;
	min-width: 0;
}

.khw-sticky ~ .khw-drawer .khw-drawer__toggle,
.khw-sticky ~ .khw-drawer .khw-drawer__toggle:hover,
.khw-sticky ~ .khw-drawer .khw-drawer__toggle:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, .8);
	box-shadow: none;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}

.khw-sticky ~ .khw-drawer .khw-drawer__toggle:hover,
.khw-sticky ~ .khw-drawer .khw-drawer__toggle:focus-visible,
.khw-sticky ~ .khw-drawer .is-expanded > .khw-drawer__row > .khw-drawer__toggle {
	border-color: var(--ks-gold);
	color: var(--ks-gold);
}

.khw-drawer__toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .3s var(--ks-ease);
}

.is-expanded > .khw-drawer__row > .khw-drawer__toggle svg {
	transform: rotate(180deg);
}

.khw-drawer__item.is-expanded > .khw-drawer__row .khw-drawer__link {
	color: var(--ks-gold);
}

/* Collapsed by default; slides open (height animates via grid rows) on hover or chevron tap */
.khw-drawer__subwrap {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	opacity: 0;
	transition: grid-template-rows .35s var(--ks-ease), opacity .25s ease, visibility 0s linear .35s;
}

.is-expanded > .khw-drawer__subwrap {
	grid-template-rows: 1fr;
	visibility: visible;
	opacity: 1;
	transition: grid-template-rows .35s var(--ks-ease), opacity .3s ease .05s, visibility 0s;
}

.khw-drawer__subwrap > .khw-drawer__sub {
	min-height: 0;
	overflow: hidden;
}

.khw-drawer__sub {
	margin: -4px 0 0;
	padding-left: 4px;
}

.khw-drawer__item.is-expanded > .khw-drawer__subwrap > .khw-drawer__sub {
	padding-bottom: 12px;
}

.khw-drawer__svc-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 4px 8px 14px;
	border-left: 1px solid rgba(255, 255, 255, .14);
	color: rgba(255, 255, 255, .72);
	font-size: 14.5px;
	line-height: 1.35;
	transition: color .2s, border-color .2s;
}

.khw-drawer__svc-link svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	opacity: .55;
}

.khw-drawer__svc-link:hover,
.khw-drawer__svc-link:focus-visible,
.khw-drawer__svc.is-expanded > .khw-drawer__row .khw-drawer__svc-link {
	border-color: var(--ks-gold);
	color: var(--ks-white);
}

.khw-drawer__svc-link:hover svg {
	color: var(--ks-gold);
	opacity: 1;
}

/* Second level: each service's own list */
.khw-drawer__row--sm {
	gap: 6px;
}

.khw-drawer__row--sm .khw-drawer__svc-link {
	flex: 1;
	min-width: 0;
}

.khw-sticky ~ .khw-drawer .khw-drawer__toggle--sm,
.khw-sticky ~ .khw-drawer .khw-drawer__toggle--sm:hover,
.khw-sticky ~ .khw-drawer .khw-drawer__toggle--sm:focus {
	width: 28px;
	height: 28px;
	border-color: transparent;
	color: rgba(255, 255, 255, .55);
}

.khw-sticky ~ .khw-drawer .khw-drawer__toggle--sm:hover,
.khw-sticky ~ .khw-drawer .khw-drawer__toggle--sm:focus-visible,
.khw-sticky ~ .khw-drawer .is-expanded > .khw-drawer__row > .khw-drawer__toggle--sm {
	border-color: rgba(255, 255, 255, .14);
	color: var(--ks-gold);
}

.khw-drawer__toggle--sm svg {
	width: 15px;
	height: 15px;
}

.khw-drawer__detail {
	min-height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0 0 0 15px;
	list-style: none;
	border-left: 1px solid rgba(255, 255, 255, .14);
}

.khw-drawer__svc.is-expanded .khw-drawer__detail {
	border-left-color: var(--ks-gold);
	padding-bottom: 8px;
}

.khw-drawer__detail-link {
	position: relative;
	display: block;
	padding: 6px 4px 6px 16px;
	color: rgba(255, 255, 255, .6);
	font-size: 13.5px;
	line-height: 1.4;
	transition: color .2s;
}

.khw-drawer__detail-link::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 50%;
	width: 7px;
	height: 1px;
	background: currentColor;
	opacity: .6;
}

.khw-drawer__detail-link:hover,
.khw-drawer__detail-link:focus-visible {
	color: var(--ks-gold);
}

.khw-drawer__foot {
	display: grid;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid var(--ks-line);
}

.khw-drawer__call {
	justify-content: center;
	height: 60px;
	padding: 0 22px 0 10px;
}

.khw-drawer__call .khw-call__icon {
	width: 40px;
	height: 40px;
}

.khw-drawer__call .khw-call__label {
	font-size: 12px;
}

.khw-drawer__call .khw-call__number {
	font-size: 18px;
}

.khw-drawer__contact {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 54px;
	border: 1px solid var(--ks-line);
	border-radius: 999px;
	color: var(--ks-white);
	font-size: 15px;
	font-weight: 500;
	transition: border-color .25s, background .25s;
}

.khw-drawer__contact svg {
	width: 16px;
	height: 16px;
}

/* Locked in every state so the theme's link colours (blue on hover) never apply */
.khw-drawer .khw-drawer__contact,
.khw-drawer .khw-drawer__contact:visited {
	color: var(--ks-white);
}

.khw-drawer .khw-drawer__contact svg {
	color: var(--ks-gold);
	transition: transform .3s var(--ks-ease);
}

.khw-drawer .khw-drawer__contact:hover,
.khw-drawer .khw-drawer__contact:focus,
.khw-drawer .khw-drawer__contact:focus-visible,
.khw-drawer .khw-drawer__contact:active {
	border-color: var(--ks-gold);
	background: rgba(255, 214, 0, .08);
	color: var(--ks-white);
	outline: none;
}

.khw-drawer .khw-drawer__contact:hover svg,
.khw-drawer .khw-drawer__contact:focus-visible svg {
	transform: translate(2px, -2px);
}

/* ── Small screens ── */
@media (max-width: 560px) {
	.khw-sticky {
		top: 10px;
		width: calc(100% - 20px);
	}

	.khw-sticky__bar {
		height: 60px;
		padding: 0 7px 0 16px;
	}

	.khw-sticky__bar {
		gap: 8px;
	}

	.khw-sticky__logo {
		min-width: 0;
		flex-shrink: 1;
	}

	.khw-sticky__logo img {
		height: 24px;
		max-width: 100%;
		object-fit: contain;
	}

	.khw-sticky__actions {
		gap: 6px;
	}

	/* Phones: icon-only yellow rounded square, like the page header's phone button (number stays available to screen readers) */
	.khw-sticky__call {
		justify-content: center;
		width: 46px;
		height: 46px;
		padding: 0;
		border-radius: 12px;
	}

	.khw-sticky__call .khw-call__icon {
		width: 22px;
		height: 22px;
		background: transparent;
		color: var(--ks-dark);
	}

	.khw-sticky__call .khw-call__icon svg {
		width: 20px;
		height: 20px;
	}

	.khw-sticky__call .khw-call__icon::after {
		display: none;
	}

	.khw-sticky__call .khw-call__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.khw-sticky__menu {
		width: 46px;
		height: 46px;
	}
}


@media (prefers-reduced-motion: reduce) {
	.khw-sticky,
	.khw-drawer__panel,
	.khw-drawer__backdrop {
		transition: none;
	}

	.khw-call__icon::after {
		animation: none;
	}
}


/* Page header menu button (phones/tablets): visible border so it stands out on the photo on arrival */
.khw-has-header .menu-toggle,
.khw-has-header .menu-toggle:hover,
.khw-has-header .menu-toggle:focus {
	border: 1.5px solid rgba(255, 215, 0, .75);
	background: rgba(13, 27, 42, .55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	color: var(--white);
	outline: none;
}

.khw-has-header .menu-toggle:hover,
.khw-has-header .menu-toggle:focus-visible {
	border-color: var(--gold);
	background: rgba(13, 27, 42, .75);
}


/* Same word spacing for the sticky header and the side menu */
.khw-sticky,
.khw-drawer {
	word-spacing: .1em;
}

/* Jumping to a section (menu anchors, table of contents) keeps its heading below the sticky header */
html {
	scroll-padding-top: 104px;
}

@media (max-width: 560px) {
	html {
		scroll-padding-top: 86px;
	}
}
