/* ==========================================================================
   Minimal modern reset — scoped to what this project actually needs.
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: auto; /* Lenis owns smooth scrolling; native is disabled to avoid conflicts */
}

html,
body {
	/* Off-canvas elements (e.g. the dashboard sidebar's mobile transform)
	   can inflate the layout's true scrollable width even though it's
	   never visible — body alone clipped the visual result, but left
	   `documentElement.scrollWidth` reporting the wider canvas. Both
	   ancestors need the clip for it to be real, not just visually masked. */
	overflow-x: hidden;
}

html {
	/* Fixed to the viewport so it (not body) is the single scrolling
	   container the browser exposes as `document.scrollingElement` —
	   what Lenis/ScrollTrigger and native scroll all key off of. */
	height: 100%;
}

body {
	/* min-, not height:100% — a hard 100% here would cap body to one
	   viewport tall and, combined with overflow-x:hidden losing the
	   usual "propagate to viewport" behavior, trap all page content in
	   body's own internal scrollbar instead of the real page scroll —
	   the bug behind the services section (and everything below the
	   fold) staying invisible forever. */
	min-height: 100%;
}

body {
	background: var(--color-bg);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
picture,
svg {
	display: block;
	max-width: 100%;
}

ul,
ol {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	outline: none;
}

button {
	cursor: pointer;
}

select {
	appearance: none;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.25;
}

/* ---- Accessibility -------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
