/* CROSS 2026 – foundations: tokens, typography, buttons, header, footer. Presets come from theme.json. */

:root {
	--x-primary: var(--wp--preset--color--primary);
	--x-deep: var(--wp--preset--color--primary-deep);
	--x-crimson: var(--wp--preset--color--crimson);
	--x-coral: var(--wp--preset--color--coral);
	--x-cobalt: var(--wp--preset--color--cobalt);
	--x-cobalt-soft: var(--wp--preset--color--cobalt-soft);
	--x-mint: var(--wp--preset--color--mint);
	--x-ink: var(--wp--preset--color--ink);
	--x-text: var(--wp--preset--color--ink-soft);
	--x-muted: var(--wp--preset--color--muted);
	--x-line: var(--wp--preset--color--line);
	--x-paper: var(--wp--preset--color--paper);
	--x-paper-deep: var(--wp--preset--color--paper-deep);
	/* Fonts only through these three: display (Source Serif 4, headings of 28px and up), body, ui (inside mockups). */
	--x-font-display: var(--wp--preset--font-family--display);
	--x-font-body: var(--wp--preset--font-family--body);
	--x-font-ui: var(--wp--preset--font-family--ui);
	--x-zalo: #0068FF;
	--x-wide: 1240px;
	--x-radius: 20px;
	--x-radius-sm: 12px;
	--x-shadow-sm: 0 1px 2px rgba(21, 18, 27, 0.05), 0 2px 8px -4px rgba(21, 18, 27, 0.08);
	--x-shadow: 0 1px 2px rgba(21, 18, 27, 0.04), 0 18px 40px -22px rgba(21, 18, 27, 0.28);
	--x-shadow-lift: 0 2px 4px rgba(21, 18, 27, 0.04), 0 30px 60px -28px rgba(74, 0, 8, 0.4);
	/* Type: six sizes outside the mockups. Serif (display face) only for display and h2; h3 is Source Sans 3 700. */
	--x-fs-display: clamp(2.35rem, 1.3rem + 4.2vw, 5rem);
	--x-fs-h2: clamp(1.9rem, 1.2rem + 2.3vw, 3rem);
	--x-fs-h3: var(--wp--preset--font-size--medium);
	--x-fs-lead: var(--wp--preset--font-size--medium);
	--x-fs-body: 1.0625rem;
	--x-fs-small: 0.9375rem;
	--x-fs-meta: 0.8125rem;
	/* Motion. Rules: animate transform and opacity only; nothing scales from 0; overshoot at most 1.15; no loops;
	   hover motion only under (hover: hover) and (pointer: fine); keyboard actions are instant; under reduced motion
	   only 150ms colour and opacity changes remain. --x-ease is an alias, so every component follows the new curve. */
	--x-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--x-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--x-ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
	--x-ease: var(--x-ease-out);
	--x-dur-press: 100ms;
	--x-dur-fast: 160ms;
	--x-dur-ui: 200ms;
	--x-dur-enter: 240ms;
	--x-header-h: 76px;
	--x-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--x-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--x-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	--x-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 5.5l4.5 4.5L11 14.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--x-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.6 3.5l1.6 3.2-1.4 1.4a10 10 0 004.9 4.9l1.4-1.4 3.2 1.6v2.6c0 .7-.6 1.2-1.3 1.2A13.6 13.6 0 012.4 4.8c0-.7.5-1.3 1.2-1.3h3z' fill='%23000'/%3E%3C/svg%3E");
	--x-i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 5.5A2.5 2.5 0 015.5 3h9A2.5 2.5 0 0117 5.5v6a2.5 2.5 0 01-2.5 2.5H9l-4 3v-3h0A2 2 0 013 12V5.5z' fill='%23000'/%3E%3C/svg%3E");
}

/* Phones: running text at 16px. */
@media (max-width: 599px) {
	:root {
		--x-fs-body: 1rem;
	}

	body {
		font-size: var(--x-fs-body);
	}
}

/* ---------- Globals ---------- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--x-header-h) + 20px);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	background-image: var(--x-grain);
	opacity: 0.045;
	mix-blend-mode: multiply;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:where(h1, h2, h3) {
	font-optical-sizing: auto;
	text-wrap: balance;
}

:where(p) {
	text-wrap: pretty;
}

::selection {
	background: var(--x-primary);
	color: #fff;
}

/* Focus: a maroon ring that follows the element's own shape (no radius override, so pills stay pills); white on ink. */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--x-primary);
	outline-offset: 3px;
}

.is-dark :focus-visible,
.x-footer :focus-visible,
.has-ink-background-color :focus-visible {
	outline-color: #fff;
}

/* The booking form is a paper card inside the ink band: its fields and button keep the maroon ring. */
.is-dark .x-form :focus-visible {
	outline-color: var(--x-primary);
}

/* Keeps a short phrase ("sign-off", "week-1", "30-minute") on one line. A span rather than U+2011: the webfont subsets
   may not carry the non-breaking hyphen, and a fallback glyph would show. */
.x-nowrap {
	white-space: nowrap;
}

/* Visually hidden, still read by screen readers. */
.x-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Industry switch (site.js): only the chosen industry's panels show, whatever display a component sets. Without JS the
   chips and tabs are hidden and the default industry's panels (rendered without [hidden]) stay readable. */
[data-ind-panel][hidden] {
	display: none !important;
}

html:not(.js) .x-ind-chips,
html:not(.js) .x-ind-tabs__list {
	display: none !important;
}

/* Kicker: short line above a heading. Body face, bold, sentence case. */
.x-kicker {
	margin: 0 0 0.85rem;
	font-family: var(--x-font-body);
	font-size: 1rem;
	font-weight: 700;
	color: var(--x-primary);
}

.is-dark .x-kicker,
.has-ink-background-color .x-kicker {
	color: rgba(255, 255, 255, 0.78);
}

/* Section children align to the left edge of the 1240px column instead of being centred. */
.x-section.is-layout-constrained > :not(.alignfull):not(.alignwide) {
	margin-left: max(0px, calc((100% - 1240px) / 2)) !important;
	margin-right: auto !important;
}

/* ---------- Buttons ---------- */
/* Flat maroon, no shadow; hover is a colour change only (theme.json: crimson). The press scales to 0.97. The label is
   on the body step (WordPress would otherwise scale it fluidly down to 14px on phones, a seventh size). */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.wp-block-button .wp-block-button__link {
	font-size: var(--x-fs-body);
}

.wp-block-button__link,
.x-ind-chip,
.x-ind-tab,
.x-mobilebar a,
.x-form .wpcf7-submit,
.x-mock__ctl {
	-webkit-tap-highlight-color: transparent;
	transition: transform var(--x-dur-fast) var(--x-ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.wp-block-button__link:active,
.x-ind-chip:active,
.x-ind-tab:active,
.x-mobilebar a:active,
.x-form .wpcf7-submit:active,
.x-mock__ctl:active {
	transform: scale(0.97);
	transition-duration: var(--x-dur-press);
}

.wp-block-button:not(.is-style-outline, .is-style-zalo, .is-style-ghost-light) .wp-block-button__link::after {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	mask: var(--x-i-arrow) center / contain no-repeat;
	transition: transform var(--x-dur-ui) var(--x-ease-out);
}

/* The arrow nudges toward the destination, on a fine pointer only. */
@media (hover: hover) and (pointer: fine) {
	.wp-block-button__link:hover::after,
	.x-link a:hover::after,
	a.x-link:hover::after {
		transform: translateX(3px);
	}
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--x-ink);
	background: transparent;
	border: 1.5px solid rgba(21, 18, 27, 0.22);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--x-ink);
	background: #fff;
	border-color: var(--x-ink);
}

.wp-block-button.is-style-zalo > .wp-block-button__link {
	color: var(--x-ink);
	background: #fff;
	border: 1.5px solid var(--x-line);
}

.wp-block-button.is-style-zalo > .wp-block-button__link::before {
	content: "Zalo";
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	margin: -0.35rem 0 -0.35rem -0.6rem;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	background: #0068ff;
	border-radius: 50%;
}

.wp-block-button.is-style-zalo > .wp-block-button__link:hover {
	border-color: #0068ff;
}

.wp-block-button.is-style-ghost-light > .wp-block-button__link {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.wp-block-button.is-style-ghost-light > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: #fff;
}

/* Text link with an arrow. The underline is its own 1.5px line: on hover it retracts to the right (scaleX, 200ms) while
   the arrow nudges on; it draws back in from the left. */
.x-link a,
a.x-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
	color: var(--x-ink);
	text-decoration: none;
	padding-bottom: 2px;
	transition: color 150ms ease;
}

.x-link a::before,
a.x-link::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: currentColor;
	transform-origin: left center;
	transition: transform var(--x-dur-ui) var(--x-ease-out);
}

.x-link a::after,
a.x-link::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	mask: var(--x-i-arrow) center / contain no-repeat;
	transition: transform var(--x-dur-ui) var(--x-ease-out);
}

.x-link a:hover,
a.x-link:hover {
	color: var(--x-primary);
}

@media (hover: hover) and (pointer: fine) {
	.x-link a:hover::before,
	a.x-link:hover::before {
		transform: scaleX(0);
		transform-origin: right center;
	}
}

.is-dark .x-link a {
	color: #fff;
}

/* The Zalo text link: a 44px-tall target, its margin trimmed by the same amount so the line sits where it did. */
.x-zalo-link {
	margin: 0.25rem 0 0;
	font-size: var(--x-fs-small);
}

.x-zalo-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	color: var(--x-ink);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.x-zalo-link a:hover {
	color: var(--x-primary);
}

.is-dark .x-zalo-link a {
	color: #fff;
}

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 60;
}

@media (min-width: 601px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.x-header {
	background: rgba(250, 248, 245, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.is-scrolled .x-header {
	border-bottom-color: var(--x-line);
	box-shadow: 0 10px 30px -24px rgba(21, 18, 27, 0.4);
}

.x-header__inner {
	min-height: var(--x-header-h);
	gap: 1.5rem;
}

.x-header .wp-block-image {
	margin: 0;
	flex-shrink: 0;
}

.x-header .wp-block-image img {
	display: block;
	width: 132px;
	height: 51px;
	border-radius: 4px;
}

.x-header__right {
	gap: 1.5rem !important;
}

.x-nav .wp-block-navigation-item__content {
	font-size: var(--x-fs-small);
	color: var(--x-ink);
	text-decoration: none;
	padding: 0.4rem 0;
	transition: color 150ms ease;
}

.x-nav .wp-block-navigation-item__content:hover {
	color: var(--x-primary);
}

.x-nav .wp-block-navigation__submenu-container {
	min-width: 290px !important;
	padding: 0.5rem !important;
	background: #fff !important;
	border: 1px solid var(--x-line) !important;
	border-radius: 16px;
	box-shadow: var(--x-shadow);
}

.x-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.65rem 0.8rem !important;
	border-radius: 10px;
	font-weight: 600;
}

.x-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--x-paper);
}

.x-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
	background: var(--x-paper) !important;
}

/* Menu items are not headings and stay under 28px, so they use the body face. */
.x-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--x-font-body);
	font-size: 1.5rem;
	font-weight: 700;
}

.x-lang {
	margin: 0;
}

/* 44px targets on phones with no layout shift: the menu button's padding is taken back by a negative margin; the
   language switch grows to 44px on touch screens only (on a desktop header it stays a small pill). */
.x-nav .wp-block-navigation__responsive-container-open {
	padding: 10px;
	margin: -10px;
}

@media (pointer: coarse) {
	/* border-box: the 44px includes the padding and the ring, so the pill is 44 × 44, not about 65 × 57. */
	.x-lang a {
		box-sizing: border-box;
		min-width: 44px;
		min-height: 44px;
	}
}

.x-lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.35rem 0.6rem;
	font-size: var(--x-fs-meta);
	font-weight: 700;
	color: var(--x-muted);
	text-decoration: none;
	border: 1px solid var(--x-line);
	border-radius: 999px;
}

.x-lang a:hover {
	color: var(--x-ink);
	border-color: var(--x-ink);
}

/* Icons: one sprite inlined by functions.php; duotone via currentColor */
.x-icon {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	vertical-align: -0.28em;
	color: var(--x-primary);
}

.x-icon .ic-b {
	opacity: 0.18;
}

.is-dark .x-icon,
.has-ink-background-color .x-icon {
	color: #fff;
}

.x-header__phone {
	margin: 0;
	white-space: nowrap;
}

.x-header__phone a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: var(--x-fs-small);
	font-weight: 600;
	color: var(--x-ink);
	text-decoration: none;
}

.x-header__phone a::before {
	content: "";
	width: 0.95rem;
	height: 0.95rem;
	background: var(--x-primary);
	mask: var(--x-i-phone) center / contain no-repeat;
}

.x-header__cta .wp-block-button__link {
	padding: 0.7rem 1.15rem;
	font-size: var(--x-fs-small);
	white-space: nowrap;
}

.x-header__cta {
	flex-shrink: 0;
}

/* Between the mobile menu and a wide screen the nav, language switch and the longer CTA do not fit side by side:
   the button drops its arrow and tightens up first. */
@media (min-width: 782px) and (max-width: 1180px) {
	.x-header__right {
		gap: 1rem !important;
	}

	.x-header__cta .wp-block-button__link {
		padding: 0.6rem 0.9rem;
		font-size: var(--x-fs-meta);
	}

	.x-header__cta .wp-block-button__link::after {
		display: none;
	}

	.x-nav {
		--wp--style--block-gap: 1.1rem;
	}
}

@media (max-width: 1100px) {
	.x-header__phone {
		display: none !important;
	}
}

@media (max-width: 781px) {
	.x-header .x-header__cta {
		display: none !important;
	}

	.x-header .wp-block-image img {
		width: 112px;
		height: 44px;
	}
}

/* ---------- Footer ---------- */
/* The "morning" ground: the statement on its own row at h2 size, then three link columns (two + one on phones). */
.x-footer {
	position: relative;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--x-fs-small);
}

.x-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.x-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.x-footer__head {
	margin-bottom: var(--wp--preset--spacing--50) !important;
}

.x-footer__head > * {
	margin-block: 0;
}

.x-footer__big {
	margin: 0;
	font-family: var(--x-font-display);
	font-size: var(--x-fs-h2);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.012em;
	color: #fff;
	text-wrap: balance;
}

:lang(vi) .x-footer__big {
	line-height: 1.14;
}

.x-footer__title {
	margin: 0 0 1rem;
	font-family: var(--x-font-body);
	font-size: var(--x-fs-small) !important;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.6);
}

.x-footer__links {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.x-footer__logo {
	margin-bottom: 1.75rem !important;
}

.x-footer__logo img {
	width: 150px;
	height: 59px;
}

.x-footer__legal {
	margin: 0;
	font-size: var(--x-fs-meta);
	color: rgba(255, 255, 255, 0.62);
}

/* The Google Partner link keeps the dim legal colour instead of the brighter .x-footer a. */
.x-footer__legal a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.x-footer__rule {
	width: 100% !important;
	max-width: none !important;
	border: 0 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
	opacity: 1;
}

/* Three link columns from 600px. Phones: "Dịch vụ" and "Công ty" side by side, "Liên hệ" across the full width. */
.x-footer .x-footer__cols {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.25rem 1.5rem !important;
}

.x-footer .x-footer__cols > .wp-block-column {
	flex-basis: auto !important;
	min-width: 0;
	margin: 0 !important;
}

.x-footer .x-footer__cols > .wp-block-column:last-child {
	grid-column: 1 / -1;
}

@media (min-width: 600px) {
	.x-footer .x-footer__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--50) !important;
	}

	.x-footer .x-footer__cols > .wp-block-column:last-child {
		grid-column: auto;
	}
}

@media (pointer: coarse) {
	.x-footer__links a {
		display: inline-block;
		padding-block: 0.65rem;
	}

	.x-footer__links {
		gap: 0;
	}
}

/* ---------- Mobile contact bar ---------- */
/* A plain docked bar on paper (the header stays the only blurred surface). site.js shows it once the hero CTA has
   left the viewport (html.has-mbar) and makes it inert while hidden; without JS it shows as before. */
.wp-site-blocks .x-mobilebar {
	display: none !important;
}

@media (max-width: 781px) {
	.wp-site-blocks .x-mobilebar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 70;
		display: flex !important;
		gap: 0.5rem !important;
		padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
		background: var(--x-paper);
		border-top: 1px solid var(--x-line);
		transition: transform var(--x-dur-enter) var(--x-ease-out);
	}

	html.js:not(.has-mbar) .wp-site-blocks .x-mobilebar {
		transform: translateY(calc(100% + 1rem));
	}

	.x-mobilebar p {
		flex: 0 0 auto;
		margin: 0;
	}

	.x-mobilebar .x-mobilebar__primary {
		flex: 1 1 auto;
		min-width: 0;
	}

	.x-mobilebar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.4rem;
		height: 48px;
		font-size: var(--x-fs-small);
		font-weight: 700;
		color: #fff;
		text-decoration: none;
		border-radius: 999px;
	}

	.x-mobilebar .x-mobilebar__call a,
	.x-mobilebar .x-mobilebar__zalo a {
		padding: 0 0.85rem;
		color: var(--x-ink);
		border: 1px solid var(--x-line);
	}

	.x-mobilebar__call a::before,
	.x-mobilebar__zalo a::before {
		content: "";
		width: 1rem;
		height: 1rem;
		background: currentColor;
		mask: var(--x-i-phone) center / contain no-repeat;
	}

	.x-mobilebar__zalo a::before {
		mask-image: var(--x-i-chat);
	}

	.x-mobilebar__primary a {
		padding: 0 0.6rem;
		line-height: 1.15;
		text-align: center;
		background: var(--x-primary);
	}

	.x-footer {
		padding-bottom: calc(var(--wp--preset--spacing--40) + 68px + env(safe-area-inset-bottom)) !important;
	}

	/* After the ink booking band the footer continues the same ground: it needs less air above it. */
	body:has(#dat-lich) .x-footer {
		padding-top: var(--wp--preset--spacing--50) !important;
	}
}

/* Small phones: Call and Zalo keep only their icon (the label stays for screen readers). */
@media (max-width: 400px) {
	.x-mobilebar .x-mobilebar__call a,
	.x-mobilebar .x-mobilebar__zalo a {
		width: 48px;
		padding: 0;
		font-size: 0;
	}

	.x-mobilebar__call a::before,
	.x-mobilebar__zalo a::before {
		width: 1.15rem;
		height: 1.15rem;
	}

	.x-mobilebar__primary a {
		font-size: var(--x-fs-small);
	}
}

/* ---------- Reveal on scroll (JS adds .is-in; inner pages) ---------- */
.js .x-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s var(--x-ease), transform 0.8s var(--x-ease);
}

.js .x-reveal.is-in {
	opacity: 1;
	transform: none;
}

.js .x-reveal:not(.is-in) {
	animation: x-reveal-failsafe 0.8s var(--x-ease) 4.5s forwards;
}

@keyframes x-reveal-failsafe {
	to {
		opacity: 1;
		transform: none;
	}
}

/* Reduced motion: no travel, no animation; colour and opacity changes keep a short 150ms fade. The booking form's
   "sending" spinner pulses its opacity instead of spinning, so the state stays visible. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-property: color, background-color, border-color, opacity !important;
		transition-duration: 150ms !important;
		transition-delay: 0s !important;
	}

	.x-form .wpcf7-spinner {
		animation: x-spinner-pulse 1.2s ease-in-out infinite !important;
	}

	.x-form .wpcf7-spinner::before {
		animation: none !important;
	}

	.js .x-reveal {
		opacity: 1;
		transform: none;
	}
}

@keyframes x-spinner-pulse {
	50% {
		opacity: 0.35;
	}
}
