/* ==========================================================================
   Base: reset, typography, layout primitives, utilities.
   Uses logical properties (inline-start/end) so RTL and LTR share one file.
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

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

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--black-900);
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg,
video,
picture {
	display: block;
	max-width: 100%;
	height: auto;
}

svg:not([fill]) {
	fill: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--sp-4);
	font-family: var(--font-head);
	font-weight: var(--fw-bold);
	line-height: var(--lh-tight);
	color: var(--text-primary);
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-black); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
	margin: 0 0 var(--sp-4);
}

a {
	color: var(--gold-500);
	text-decoration: none;
	transition: color var(--t-fast) var(--ease);
}

a:hover {
	color: var(--gold-400);
}

:focus-visible {
	outline: 2px solid var(--gold-400);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--gold-500);
	color: var(--text-on-gold);
}

hr {
	border: 0;
	border-top: var(--border);
	margin: var(--sp-6) 0;
}

ul,
ol {
	padding-inline-start: 1.25em;
	margin: 0 0 var(--sp-4);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

table {
	width: 100%;
	border-collapse: collapse;
}

/* Numbers / prices / Latin codes stay LTR inside RTL text */
.ltr,
bdi.num {
	direction: ltr;
	unicode-bidi: isolate;
}

/* ---- Layout primitives ------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(860px + var(--gutter) * 2);
}

.section {
	padding-block: var(--section-y);
	position: relative;
}

.section--alt {
	background-color: var(--black-800);
}

.section--textured {
	isolation: isolate;
}

.section--textured::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--noise);
	opacity: 0.05;
	mix-blend-mode: overlay;
	pointer-events: none;
	z-index: -1;
}

.stack > * + * {
	margin-block-start: var(--stack, var(--sp-4));
}

.cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cluster-gap, var(--sp-3));
	align-items: center;
}

.grid {
	display: grid;
	gap: var(--grid-gap, var(--sp-5));
	grid-template-columns: repeat(auto-fill, minmax(var(--grid-min, 240px), 1fr));
}

/* ---- Utilities --------------------------------------------------------- */
.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	inset-inline-start: var(--sp-4);
	top: var(--sp-4);
	width: auto;
	height: auto;
	clip: auto;
	padding: var(--sp-3) var(--sp-5);
	background: var(--gold-500);
	color: var(--text-on-gold);
	border-radius: var(--r-btn);
	z-index: var(--z-toast);
}

.text-gold { color: var(--gold-500); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.text-gradient {
	background: var(--gold-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--gold-500);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin-block-end: var(--sp-3);
	font-family: var(--font-en-head);
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--gold-500);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--gold-gradient-h);
}

.lead {
	font-size: var(--fs-lg);
	color: var(--text-secondary);
	max-width: 62ch;
}

.gold-line {
	height: 1px;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
	opacity: 0.6;
}

/* Icons inherit color; stroke icons use 1.6 weight across the set */
.mst-icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Directional icons mirror in RTL */
[dir="rtl"] .mst-icon--arrow-right,
[dir="rtl"] .mst-icon--arrow-left,
[dir="rtl"] .mst-icon--chev-right,
[dir="rtl"] .mst-icon--chev-left,
[dir="rtl"] .flip-rtl {
	transform: scaleX(-1);
}
