/* ==========================================================================
   Avalade Technology Consulting — static rebuild
   Layout, spacing and typography measured from the live Elementor page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
	--color-page: #ffffff;
	--color-ink: #000000;
	--color-text: #808080;          /* body + heading grey (Elementor "gray") */
	--color-text-strong: #5f5f5f;   /* hover state, subtle darkening only */
	--color-frame: #424141;         /* 12px frame around the hero image */
	--color-rule: #d6d6d6;          /* dotted footer rule */

	--font-sans: "Microsoft YaHei Light", "Microsoft YaHei", "PingFang SC",
		"Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC",
		-apple-system, "Segoe UI", Roboto, sans-serif;

	--header-height: 125px;
	--shell-inset: 5%;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	display: flex;
	flex-direction: column;
	background-color: var(--color-page);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

h1 {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

main {
	flex: 1 0 auto;
}

/* Accessibility: visible only when focused via keyboard */
.skip-link {
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 100;
	padding: 12px 20px;
	background-color: #ffffff;
	color: var(--color-text-strong);
	font-size: 14px;
	text-decoration: none;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
	transform: translateY(-200%);
	transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
	transform: translateY(0);
	outline: 2px solid var(--color-frame);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Header — sticky white bar, 125px tall, 5% side inset
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	min-height: var(--header-height);
	padding: 0 var(--shell-inset);
	background-color: #ffffff;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Faint lift once the page is scrolled, so the sticky bar reads as a layer */
.site-header.is-stuck {
	border-bottom-color: #f0f0f0;
	box-shadow: 0 1px 18px rgba(0, 0, 0, 0.05);
}

/* Logo sits at a fixed 126 × 44.1px on the original, at every breakpoint */
.logo {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	font-size: 0;
}

.logo img {
	width: 126px;
	height: auto;
}

/* --------------------------------------------------------------------------
   4. Hero — 80px frame, text bottom-left, 12px-bordered image right
   -------------------------------------------------------------------------- */
.hero {
	padding: 80px;
}

.hero__inner {
	display: flex;
	align-items: stretch;
}

.hero__content {
	width: 44.259%;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end; /* text baseline sits level with image bottom */
}

.hero__eyebrow {
	font-size: 30px;
	font-weight: 700;
	line-height: 16px;         /* deliberately tighter than the glyphs */
	letter-spacing: 0;
	margin: 0 0 36px;
	color: var(--color-text);
}

.hero__copy {
	font-size: 18px;
	line-height: 1.5;
}

.hero__copy p {
	margin: 0;
}

.hero__figure {
	width: 55.315%;
	margin: 0;
	border: 12px solid var(--color-frame);
	background-color: var(--color-frame);
	will-change: transform;
}

.hero__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 853 / 480;   /* reserves the box before the image decodes */
	object-fit: cover;
}

.spacer {
	height: 50px;
}

/* --------------------------------------------------------------------------
   5. Footer — dotted rule, 90px min height, 5% left inset
   -------------------------------------------------------------------------- */
.site-footer {
	flex: none;
	display: flex;
	align-items: center;      /* content is vertically centred in 90px */
	min-height: 90px;
	border-top: 1px dotted var(--color-rule);
}

.site-footer__inner {
	width: 100%;
	padding: 1% 1% 1% var(--shell-inset);
}

.site-footer__copy,
.site-footer__legal {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 13px;
	letter-spacing: 1.4px;
	color: var(--color-text);
}

.site-footer__copy {
	margin-bottom: 20px;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 4px;
}

.site-footer__legal a {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s var(--ease);
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
	color: var(--color-text-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__legal img {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 6px;
	vertical-align: -5px;
}

.site-footer__sep {
	display: inline-block;
	width: 1.6em;
}

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	/* Original switches to a flowing line-height so the heading can wrap */
	.hero__eyebrow {
		line-height: 1.2em;
	}

	.site-footer__legal {
		line-height: 1.7;
	}
}

@media (max-width: 767px) {
	/* The original gains a hairline under the bar on phones */
	.site-header {
		border-bottom-color: #e7e7e7;
	}

	.hero {
		padding: 8px;
	}

	.hero__inner {
		flex-direction: column;
	}

	.hero__content {
		width: 100%;
		padding: 5%;
	}

	.hero__eyebrow {
		font-size: 24px;
		margin-bottom: 28px;
	}

	.hero__copy {
		font-size: 16px;
	}

	.hero__figure {
		width: 100%;
	}

	.spacer {
		height: 32px;
	}

	.site-footer__inner {
		padding: 24px 20px;
	}

	.site-footer__copy {
		margin-bottom: 16px;
	}

	.site-footer__legal {
		line-height: 1.75;
	}
}

@media (max-width: 400px) {
	.hero__eyebrow {
		font-size: 22px;
	}

	.site-footer__copy,
	.site-footer__legal {
		letter-spacing: 1px;
	}
}

/* --------------------------------------------------------------------------
   7. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.hero__figure {
		transform: none !important;
	}
}
