/**
 * HK International — global styles.
 *
 * Page frame, header and navigation, footer, buttons and forms.
 * Content components live in components.css.
 * Tokens come from theme.json: --wp--preset--* and --wp--custom--*.
 */

:root {
	--hk-header-height: 5.25rem;
	--hk-shadow-float: 0 12px 32px rgb(13 41 66 / 0.1), 0 1px 0 rgb(13 41 66 / 0.06);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-stretch: var(--wp--custom--stretch--body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
.wp-block-post-title {
	font-stretch: var(--wp--custom--stretch--heading);
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

.hk-main .wp-block-post-content > p,
.hk-main .wp-block-post-content li,
.hk-main .wp-block-post-excerpt p {
	max-width: var(--wp--custom--measure);
}

table {
	font-variant-numeric: tabular-nums;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

img {
	max-width: 100%;
	height: auto;
}

/* Text for screen readers only. */
.hk-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Focus (visible for keyboard users only) ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--navy);
	outline-offset: var(--wp--custom--focus--offset);
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	z-index: 100000;
}

/* ---------- Buttons ---------- */

.wp-element-button,
.hk-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	min-height: 48px;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease),
		color var(--wp--custom--motion--fast) var(--wp--custom--motion--ease),
		transform var(--wp--custom--motion--fast) var(--wp--custom--motion--ease);
}

.wp-element-button:active,
.hk-button:active {
	transform: translateY(1px);
}

.hk-button--block {
	width: 100%;
}

.hk-button--secondary {
	padding: 0.8125rem 1.25rem;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--radius--control);
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
}

.hk-button--secondary:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.hk-button--on-dark {
	color: var(--wp--preset--color--white);
}

.hk-button--on-dark:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.hk-button--on-dark:focus-visible,
.hk-footer :focus-visible,
.hk-cta :focus-visible {
	outline-color: var(--wp--preset--color--red);
}

/* ---------- Forms ---------- */

input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
	min-height: 48px;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--wp--preset--color--slate);
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
}

/* ---------- Page frame ---------- */

.hk-main {
	padding-block: 0 var(--wp--preset--spacing--90);
}

.hk-main--wide > * {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--gutter);
}

.hk-main--wide > .hk-breadcrumbs {
	padding-block-start: var(--wp--preset--spacing--60);
}

/* ---------- Announcement ---------- */

.hk-announcement {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--gutter);
	text-align: center;
}

.hk-announcement__text {
	margin: 0;
}

.hk-announcement a {
	color: inherit;
}

/* ---------- Header ---------- */

.hk-site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
}

/* Logged-in admin bar sits above the sticky header. */
.admin-bar .hk-site-header {
	inset-block-start: var(--wp-admin--admin-bar--height, 0);
}

.hk-header {
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 0 var(--wp--preset--color--rule);
	transition: box-shadow var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

.hk-site-header.is-scrolled .hk-header {
	box-shadow: 0 1px 0 var(--wp--preset--color--rule), 0 8px 24px rgb(13 41 66 / 0.06);
}

.hk-utility {
	display: none;
	border-block-end: 1px solid var(--wp--preset--color--rule);
	padding-inline: var(--wp--preset--spacing--gutter);
	font-size: var(--wp--preset--font-size--small);
}

.hk-utility__list {
	display: flex;
	justify-content: flex-end;
	gap: var(--wp--preset--spacing--60);
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.hk-utility__list a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.hk-utility__list a:hover {
	text-decoration: underline;
}

.hk-utility__label {
	color: var(--wp--preset--color--slate);
	margin-inline-end: var(--wp--preset--spacing--10);
}

.hk-header__bar {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--50);
	max-width: var(--wp--style--global--wide-size);
	min-height: var(--hk-header-height);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--gutter);
}

.hk-site-logo {
	flex: none;
	margin-inline-end: auto;
}

.hk-site-logo a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* The full logo (mark and lettering, never cropped); it steps down once the page scrolls. */
.hk-site-logo__image {
	display: block;
	width: auto;
	max-width: 12rem;
	height: 3rem;
	object-fit: contain;
	object-position: left center;
	transition: height var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

@media (min-width: 72em) {
	.hk-site-logo__image {
		height: 3.75rem;
	}

	.hk-site-header.is-scrolled .hk-site-logo__image {
		height: 3.125rem;
	}
}

.hk-site-logo__text {
	font-size: 1.1875rem;
	font-stretch: var(--wp--custom--stretch--display);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.hk-header-cta {
	display: none;
	flex: none;
}

.hk-header-cta .hk-button {
	min-height: 44px;
	padding-block: 0.625rem;
}

/* ---------- Navigation: shared ---------- */

.hk-menu__list,
.hk-menu__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.hk-submenu-toggle__icon {
	transition: transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

.hk-submenu-toggle[aria-expanded="true"] .hk-submenu-toggle__icon {
	transform: rotate(180deg);
}

/* Toggle button for the mobile panel. */
.hk-nav__toggle {
	display: inline-flex;
	flex: none;
	white-space: nowrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	min-height: 44px;
	padding: 0 var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.hk-nav__toggle-icon {
	position: relative;
	display: block;
	width: 1.25rem;
	height: 0.875rem;
}

.hk-nav__toggle-icon span {
	position: absolute;
	inset-inline: 0;
	height: 2px;
	background: currentColor;
	transition: transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease), top var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
}

.hk-nav__toggle-icon span:first-child {
	top: 1px;
}

.hk-nav__toggle-icon span:last-child {
	top: 11px;
}

.hk-nav-open .hk-nav__toggle-icon span:first-child {
	top: 6px;
	transform: rotate(45deg);
}

.hk-nav-open .hk-nav__toggle-icon span:last-child {
	top: 6px;
	transform: rotate(-45deg);
}

/* Without JavaScript the toggle can do nothing; show the menu inline instead. */
html:not(.hk-js) .hk-nav__toggle {
	display: none;
}

/* ---------- Navigation: mobile panel (below 72em) ---------- */

@media (max-width: 71.99em) {
	.hk-js .hk-nav__panel {
		position: fixed;
		inset: var(--hk-header-height) 0 0;
		z-index: 90;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--gutter) var(--wp--preset--spacing--80);
		background: var(--wp--preset--color--white);
		border-block-start: 1px solid var(--wp--preset--color--rule);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-0.5rem);
		transition:
			opacity var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
			transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease),
			visibility 0s linear var(--wp--custom--motion--base);
	}

	.admin-bar.hk-js .hk-nav__panel {
		inset-block-start: calc(var(--hk-header-height) + var(--wp-admin--admin-bar--height, 0px));
	}

	.hk-nav-open .hk-nav__panel {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition-delay: 0s;
	}

	.hk-nav-open,
	.hk-nav-open body {
		overflow: hidden;
	}

	.hk-nav .hk-menu__list > li {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		border-block-end: 1px solid var(--wp--preset--color--rule);
	}

	.hk-nav .hk-menu__list > li > a {
		display: flex;
		align-items: center;
		min-height: 3.5rem;
		color: var(--wp--preset--color--ink);
		font-size: var(--wp--preset--font-size--heading-4);
		font-stretch: var(--wp--custom--stretch--heading);
		font-weight: 600;
		text-decoration: none;
	}

	.hk-nav .hk-submenu-toggle {
		width: 3.5rem;
		height: 3.5rem;
	}

	.hk-nav .hk-submenu {
		grid-column: 1 / -1;
		padding-block-end: var(--wp--preset--spacing--40);
	}

	.hk-nav .sub-menu a {
		display: flex;
		align-items: center;
		min-height: 2.75rem;
		padding-inline-start: var(--wp--preset--spacing--40);
		border-inline-start: 2px solid var(--wp--preset--color--rule);
		color: var(--wp--preset--color--ink);
		text-decoration: none;
	}

	.hk-nav .sub-menu .current-menu-item > a {
		border-inline-start-color: var(--wp--preset--color--red);
		font-weight: 600;
	}

	.hk-nav__extra {
		display: grid;
		gap: var(--wp--preset--spacing--50);
		margin-block-start: var(--wp--preset--spacing--60);
	}

	.hk-nav__contact {
		display: grid;
		gap: var(--wp--preset--spacing--10);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.hk-nav__contact a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		color: var(--wp--preset--color--ink);
	}
}

@media (min-width: 40em) {
	.hk-header-cta {
		display: block;
	}
}

/* ---------- Navigation: desktop (72em and up) ---------- */

@media (min-width: 72em) {
	.hk-utility {
		display: block;
	}

	.hk-nav__toggle,
	.hk-nav__extra {
		display: none;
	}

	.hk-nav .hk-menu__list {
		display: flex;
		align-items: stretch;
		gap: var(--wp--preset--spacing--10);
	}

	.hk-nav .hk-menu__list > li {
		position: relative;
		display: flex;
		align-items: center;
	}

	.hk-nav .hk-menu__list > li > a {
		position: relative;
		display: inline-flex;
		align-items: center;
		white-space: nowrap;
		min-height: var(--hk-header-height);
		padding-inline: var(--wp--preset--spacing--30);
		color: var(--wp--preset--color--ink);
		font-weight: 500;
		text-decoration: none;
	}

	.hk-nav .hk-menu__list > li.menu-item-has-children > a {
		padding-inline-end: 0;
	}

	/* Active / hover marker: a red rule on the header's bottom edge. */
	.hk-nav .hk-menu__list > li > a::after {
		content: "";
		position: absolute;
		inset-inline: var(--wp--preset--spacing--30);
		inset-block-end: 0;
		height: 2px;
		background: var(--wp--preset--color--red);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
	}

	.hk-nav .hk-menu__list > li > a:hover::after,
	.hk-nav .hk-menu__list > li.is-open > a::after,
	.hk-nav .hk-menu__list > .current-menu-item > a::after,
	.hk-nav .hk-menu__list > .current-menu-ancestor > a::after,
	.hk-nav .hk-menu__list > .current-menu-parent > a::after {
		transform: scaleX(1);
	}

	.hk-nav .hk-submenu-toggle {
		width: 2rem;
		height: 2.75rem;
		margin-inline-end: var(--wp--preset--spacing--20);
	}

	.hk-nav .hk-submenu {
		position: absolute;
		inset-block-start: 100%;
		inset-inline-start: 0;
		z-index: 110;
		min-width: 17rem;
		padding: var(--wp--preset--spacing--40);
		background: var(--wp--preset--color--white);
		border: 1px solid var(--wp--preset--color--rule);
		border-radius: var(--wp--custom--radius--control);
		box-shadow: var(--hk-shadow-float);
		animation: hk-submenu-in var(--wp--custom--motion--base) var(--wp--custom--motion--ease);
	}

	/* Long lists (e.g. the ten business activities) use two columns. */
	.hk-nav .hk-submenu:has(li:nth-child(6)) {
		min-width: 36rem;
	}

	.hk-nav .hk-submenu:has(li:nth-child(6)) .sub-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--40);
	}

	.hk-nav .sub-menu a {
		display: flex;
		align-items: center;
		min-height: 2.75rem;
		padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
		border-radius: var(--wp--custom--radius--control);
		color: var(--wp--preset--color--ink);
		line-height: 1.3;
		text-decoration: none;
	}

	.hk-nav .sub-menu a:hover {
		background: var(--wp--preset--color--paper);
	}

	.hk-nav .sub-menu .current-menu-item > a {
		background: var(--wp--preset--color--paper);
		font-weight: 600;
	}

	.hk-header-cta {
		margin-inline-start: var(--wp--preset--spacing--40);
	}
}

/* Dropdowns open from the right edge when they would overflow the viewport. */
@media (min-width: 72em) and (max-width: 80em) {
	.hk-nav .hk-menu__list > li:nth-last-child(-n + 3) > .hk-submenu {
		inset-inline: auto 0;
	}

	/* Narrow desktops: tighter items so the full menu fits on one line. */
	.hk-nav .hk-menu__list {
		gap: 0;
	}

	.hk-nav .hk-menu__list > li > a {
		padding-inline: var(--wp--preset--spacing--20);
	}

	.hk-nav .hk-menu__list > li > a::after {
		inset-inline: var(--wp--preset--spacing--20);
	}

	.hk-nav .hk-submenu-toggle {
		margin-inline-end: 0;
	}
}

@keyframes hk-submenu-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
}

/* ---------- Footer ---------- */

/* The globe mark from the logo as a footer watermark. */
.hk-footer::before {
	content: "";
	position: absolute;
	inset-block: auto -18%;
	inset-inline: auto -6%;
	z-index: -1;
	width: min(46rem, 70vw);
	aspect-ratio: 3979 / 3178;
	background: #fff;
	opacity: 0.035;
	mask: url("../brand/hk-motif.svg") no-repeat center / contain;
}

.hk-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--mist);
	padding: var(--wp--preset--spacing--90) var(--wp--preset--spacing--gutter) var(--wp--preset--spacing--60);
	font-size: var(--wp--preset--font-size--small);
}

.hk-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.hk-footer a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--red);
}

.hk-footer__grid,
.hk-footer__base {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.hk-footer__grid {
	display: grid;
	gap: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
}

@media (min-width: 40em) {
	.hk-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 72em) {
	.hk-footer__grid {
		grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr);
	}
}

.hk-footer__brand > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.hk-footer .hk-site-logo a {
	color: var(--wp--preset--color--white);
}

.hk-footer-text {
	max-width: 34ch;
	margin: 0;
}

.hk-menu__heading {
	margin: 0 0 var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--body);
	font-stretch: var(--wp--custom--stretch--heading);
	font-weight: 650;
}

.hk-footer .hk-menu__list li a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
}

.hk-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	margin-block-start: var(--wp--preset--spacing--80);
	padding-block-start: var(--wp--preset--spacing--50);
	border-block-start: 1px solid rgb(255 255 255 / 0.16);
}

.hk-footer__base .hk-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10) var(--wp--preset--spacing--50);
}

.hk-copyright {
	margin: 0;
}

.hk-contact {
	font-style: normal;
}

.hk-contact p {
	margin: 0 0 var(--wp--preset--spacing--20);
}

.hk-contact__label {
	display: block;
	color: var(--wp--preset--color--slate);
}

.hk-footer .hk-contact__label {
	color: var(--wp--preset--color--rule);
	font-weight: 600;
}

.hk-footer .hk-contact > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.hk-social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hk-social a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* ---------- Editor-only hints ---------- */

.hk-editor-hint {
	padding: var(--wp--preset--spacing--30);
	border: 1px dashed var(--wp--preset--color--slate);
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Mobile header order: logo, quote button, menu toggle. */
@media (max-width: 71.99em) {
	.hk-header-cta {
		order: 1;
	}

	.hk-nav {
		order: 2;
	}
}

/*
 * WordPress adds a top margin between sibling blocks (blockGap). Our layout
 * containers control their own spacing with gap/padding, so reset it there.
 */
.hk-site-header > *,
.hk-header > *,
.hk-header__bar > *,
.hk-footer > *,
.hk-footer__grid > *,
.hk-footer__brand > *,
.hk-footer__base > *,
.hk-main > *,
.hk-contact-layout > * {
	margin-block-start: 0;
}

.hk-footer__brand > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Header, main and footer meet without WordPress's block gap between them. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Narrow phones: the menu toggle shows its icon only; the label stays for screen readers. */
@media (max-width: 23.99em) {
	.hk-nav__toggle {
		padding-inline: var(--wp--preset--spacing--30);
	}

	.hk-nav__toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.hk-site-logo__text {
		font-size: 1.0625rem;
	}
}

/*
 * One alignment rule for every full-width band: the band itself has no side
 * padding; its inner container is max wide-size and carries the gutter, exactly
 * like page content. Edges then line up at every width.
 */
.hk-utility,
.hk-footer {
	padding-inline: 0;
}

.hk-utility__list,
.hk-footer__grid,
.hk-footer__base {
	padding-inline: var(--wp--preset--spacing--gutter);
}

/* Without JavaScript: submenus are shown as plain nested lists; toggles are hidden. */
html:not(.hk-js) .hk-submenu[hidden] {
	display: block;
}

html:not(.hk-js) .hk-submenu-toggle {
	display: none;
}

/* The real header height (including announcement and contact strip) is measured
   by the navigation script; offsets below fall back to the bar height. */
@media (max-width: 71.99em) {
	.hk-js .hk-nav__panel,
	.admin-bar.hk-js .hk-nav__panel {
		inset-block-start: var(--hk-header-offset, var(--hk-header-height));
	}
}

/* ---------- Right-to-left (Arabic) ----------
   Layout uses logical properties throughout, so it mirrors by itself under
   dir="rtl". These are the few decorative details that need telling. */

[dir="rtl"] .hk-site-logo__image {
	object-position: right center;
}

[dir="rtl"] .hk-nav .hk-menu__list > li > a::after,
[dir="rtl"] .hk-features--grid .hk-feature::after,
[dir="rtl"] .hk-product-card::after,
[dir="rtl"] .hk-media-card::after {
	transform-origin: right center;
}

[dir="rtl"] .hk-footer::before,
[dir="rtl"] .hk-cta::after,
[dir="rtl"] .hk-placeholder::before {
	transform: scaleX(-1);
}

/* ======================================================================
   Interaction layer: reveal, buttons, header, footer.
   Only opacity and transforms animate. Reduced motion gets none of it
   (and the global reset above shortens any transition that remains).
   ====================================================================== */

/* ---------- Scroll reveal (classes added by interactions.js) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.hk-reveal {
		opacity: 0;
		translate: 0 24px;
		transition: opacity 800ms var(--wp--custom--motion--ease), translate 800ms var(--wp--custom--motion--ease);
	}

	.hk-reveal.is-revealed {
		opacity: 1;
		translate: 0 0;
	}

	.hk-reveal-zoom {
		overflow: hidden;
	}

	.hk-reveal-zoom img {
		opacity: 0;
		scale: 1.08;
		transition: opacity 900ms var(--wp--custom--motion--ease), scale 1400ms var(--wp--custom--motion--ease);
	}

	.hk-reveal-zoom.is-revealed img {
		opacity: 1;
		scale: 1;
	}

	.hk-reveal-group > * {
		opacity: 0;
		translate: 0 28px;
		transition:
			opacity 700ms var(--wp--custom--motion--ease) calc(var(--hk-n, 0) * 90ms),
			translate 700ms var(--wp--custom--motion--ease) calc(var(--hk-n, 0) * 90ms);
	}

	.hk-reveal-group.is-revealed > * {
		opacity: 1;
		translate: 0 0;
	}

	/* How we work: the connecting line draws from step to step. */
	@media (min-width: 64em) {
		.hk-reveal-group.hk-steps .hk-step::after {
			scale: 0 1;
			transform-origin: left center;
			transition: scale 900ms var(--wp--custom--motion--ease) calc(var(--hk-n, 0) * 160ms + 300ms);
		}

		.hk-reveal-group.hk-steps.is-revealed .hk-step::after {
			scale: 1 1;
		}

		[dir="rtl"] .hk-reveal-group.hk-steps .hk-step::after {
			transform-origin: right center;
		}
	}

	/* Reveal distance chosen under Control Center → Appearance & motion.
	   These body classes exist only when the setting is not "Normal". */
	.hk-motion-low .hk-reveal:not(.is-revealed) {
		translate: 0 10px;
	}

	.hk-motion-low .hk-reveal-group:not(.is-revealed) > * {
		translate: 0 12px;
	}

	.hk-motion-high .hk-reveal:not(.is-revealed) {
		translate: 0 40px;
	}

	.hk-motion-high .hk-reveal-group:not(.is-revealed) > * {
		translate: 0 44px;
	}
}

/* 3D hover switched off: cards keep their lift and shadow, but do not tilt. */
.hk-no-tilt :is(.hk-product-card, .hk-media-card, .hk-photo-card, .hk-overlay-card, .hk-feature) {
	--hk-rx: 0deg;
	--hk-ry: 0deg;
}

/* ---------- Buttons ---------- */

/* Primary: the red of the logo as a soft gradient, with a light sweep and an
   arrow that moves on hover. White text stays above 4.5:1 on every stop. */
.wp-element-button.hk-button--primary,
.hk-header-cta .wp-element-button {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--control);
	background: linear-gradient(120deg, #c8192a 0%, #e31e2d 50%, #c8192a 100%);
	background-size: 220% 100%;
	box-shadow: 0 8px 20px -10px rgb(227 30 45 / 0.6);
	color: var(--wp--preset--color--white);
	transition:
		transform 250ms var(--wp--custom--motion--ease),
		box-shadow 250ms var(--wp--custom--motion--ease),
		background-position 350ms var(--wp--custom--motion--ease);
}

.wp-element-button.hk-button--primary::before,
.hk-header-cta .wp-element-button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.25) 50%, transparent 70%);
	translate: -120% 0;
	transition: translate 700ms var(--wp--custom--motion--ease);
}

.wp-element-button.hk-button--primary:not(.hk-button--no-arrow, [download])::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14'/%3E%3Cpath d='m13.5 6.5 5.5 5.5-5.5 5.5'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: translate 250ms var(--wp--custom--motion--ease);
}

[dir="rtl"] .wp-element-button.hk-button--primary::after {
	scale: -1 1;
}

.hk-button--secondary {
	transition:
		transform 250ms var(--wp--custom--motion--ease),
		background-color 250ms var(--wp--custom--motion--ease),
		color 250ms var(--wp--custom--motion--ease),
		border-color 250ms var(--wp--custom--motion--ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wp-element-button.hk-button--primary:hover,
	.hk-header-cta .wp-element-button:hover {
		transform: translateY(-2px);
		background-position: 100% 0;
		box-shadow: 0 14px 28px -12px rgb(227 30 45 / 0.65);
	}

	.wp-element-button.hk-button--primary:hover::before,
	.hk-header-cta .wp-element-button:hover::before {
		translate: 120% 0;
	}

	.wp-element-button.hk-button--primary:hover::after {
		translate: 3px 0;
	}

	.hk-button--secondary:hover {
		transform: translateY(-2px);
	}
}

/* ---------- Header: frosted once the page scrolls ---------- */

.hk-site-header.is-scrolled .hk-header {
	background: rgb(255 255 255 / 0.86);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
}

/* ---------- Footer ---------- */

.hk-footer :is(.hk-menu__list, .hk-contact, .hk-footer__base) a {
	text-decoration: none;
	background: linear-gradient(var(--wp--preset--color--red), var(--wp--preset--color--red)) no-repeat 0 100% / 0 1px;
	transition: background-size 300ms var(--wp--custom--motion--ease), color 300ms var(--wp--custom--motion--ease);
}

.hk-footer :is(.hk-menu__list, .hk-contact, .hk-footer__base) a:hover {
	background-size: 100% 1px;
	text-decoration: none;
}

[dir="rtl"] .hk-footer :is(.hk-menu__list, .hk-contact, .hk-footer__base) a {
	background-position: 100% 100%;
}

.hk-social a {
	transition: transform 250ms var(--wp--custom--motion--ease), color 250ms var(--wp--custom--motion--ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.hk-social a:hover {
		transform: translateY(-3px);
	}
}
