/* ROX Motor design tokens ("Terrain & Light").
   Layer 1 (primitive) is the approved tokens.css from the design export, unchanged.
   Layer 2 (semantic) names the remaining values the export hard-coded inline, so
   components never use raw hex. Values are identical to the approved design except
   where noted as an accessibility fix. */
:root {
	/* ---------- 1. Primitive: colour ---------- */
	--rx-ink: #090C0B;            /* Midnight */
	--rx-charcoal: #111613;       /* Charcoal */
	--rx-stage: #1F2620;          /* Showroom stage glow */
	--rx-olive: #303B30;          /* Forest Olive */
	--rx-gold: #C5A878;           /* Champagne: on dark only */
	--rx-gold-hover: #D9C096;
	--rx-gold-light: #E2CDA6;
	--rx-bronze: #7A5F35;         /* Gold text on light grounds (5.3:1 on ivory) */
	--rx-bronze-deep: #5C4626;    /* Eyebrows on sand */
	--rx-sand: #D8C8AD;           /* Warm Sand */
	--rx-sand-panel: #ECE3D2;
	--rx-ivory: #F4F0E8;          /* Ivory */
	--rx-white: #FFFFFF;
	--rx-text-ink: #141713;
	--rx-text-muted-dark: #A8A196;
	--rx-text-body-dark: #CFC8BA;
	--rx-error: #E8907A;
	--rx-error-text: #F0A390;
	--rx-accent: var(--rx-gold);  /* the design's accent tweak */

	/* ---------- 2. Semantic: text on dark grounds ---------- */
	--rx-on-dark: var(--rx-ivory);
	--rx-on-dark-lead: #DCD5C8;        /* hero supporting copy */
	--rx-on-dark-body: var(--rx-text-body-dark);
	--rx-on-dark-copy: #D2CBBE;        /* model descriptions */
	--rx-on-dark-nav: #E9E3D7;
	--rx-on-dark-control: #D8D1C4;     /* tabs, footer links */
	--rx-on-dark-unit: #C9C2B5;
	--rx-on-dark-muted: #B9B2A6;        /* readability: lifted from #A8A196 (7.7:1 -> 9.3:1 on ink) */
	--rx-on-dark-fine: #A39D92;        /* footnotes: lifted from #8E887E (5.6:1 -> 7.3:1 on ink) */

	/* ---------- 2. Semantic: text on light grounds ---------- */
	--rx-on-light: var(--rx-text-ink);
	--rx-on-light-body: #3F433D;
	--rx-on-light-copy: #4A4D46;
	--rx-on-light-muted: #4E4A42;      /* readability: darkened from #5E5A50 (6.0:1 -> 7.9:1 on ivory) */
	--rx-on-sand-muted: #4A463D;       /* a11y fix: replaces #5E5A50 on sand (4.2:1 -> 5.7:1) */
	--rx-on-sand-body: #33352F;

	/* ---------- 2. Semantic: lines & surfaces ---------- */
	--rx-line-dark: rgba(244, 240, 232, .14);
	--rx-line-dark-strong: rgba(244, 240, 232, .3);
	--rx-line-dark-faint: rgba(244, 240, 232, .08);
	--rx-line-light: #CFC6B5;
	--rx-line-sand: #BFAF92;
	--rx-scrim: rgba(9, 12, 11, .82);
	--rx-panel-dark: #1A201B;
	--rx-placeholder-glow: #2A3129;

	/* ---------- 1. Primitive: type ---------- */
	--rx-font-display: 'Cormorant Garamond', 'Times New Roman', serif;
	--rx-font-ui: 'Jost', 'Futura', 'Century Gothic', sans-serif;
	--rx-font-ar: 'Alexandria', 'Tahoma', sans-serif;
	--rx-track-eyebrow: .34em;      /* design .38em, eased slightly for legibility at 13px */
	--rx-track-label: .14em;         /* small uppercase labels (spec names, stat captions) */

	/* Type floor: the export used 10-12px labels; 13px is now the minimum for labels (readability fix). */
	--rx-fs-label: 13px;
	--rx-fs-small: 14px;
	--rx-fs-body: 17px;
	--rx-fs-h2: clamp(44px, 5vw, 76px);
	--rx-fs-h2-lg: clamp(44px, 5.4vw, 84px);

	/* ---------- 1. Primitive: layout ---------- */
	--rx-container: 1440px;
	--rx-gutter: clamp(20px, 4vw, 56px);
	--rx-section: 130px;
	--rx-header-h: 88px;

	/* ---------- 1. Primitive: motion ---------- */
	--rx-ease: cubic-bezier(.2, .7, .1, 1);
	--rx-dur-reveal: 1.2s;
	--rx-dur-switch: .7s;
	--rx-dur-media: 1.4s;

	/* ---------- 3. Component ---------- */
	--rx-btn-primary-bg: var(--rx-accent);
	--rx-btn-primary-bg-hover: var(--rx-gold-hover);
	--rx-btn-primary-fg: var(--rx-ink);
	--rx-btn-ghost-border: rgba(244, 240, 232, .45);
	--rx-focus-ring: var(--rx-gold);
}

@media (max-width: 760px) {
	:root {
		--rx-header-h: 68px;
		--rx-section: 72px;
	}
}

/* ---------- Light Luxury redesign (design lab D1-D5). Used by the new header and hero; other sections
   keep the Terrain & Light tokens above until they are redesigned one by one. ---------- */
:root {
	--rx-lux-white: #ffffff;
	--rx-lux-mist: #f6f7f7;       /* cool off-white, close to roxmotor.com #F8F9F9 */
	--rx-lux-hairline: #e6e8e9;
	--rx-lux-ink: #121416;
	--rx-lux-ink-hover: #2a2e32;
	--rx-lux-graphite: #5a6066;   /* 6.4:1 on white */
	--rx-lux-film: #0d0f10;
	--rx-font-modern: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--rx-lux-ease: cubic-bezier(.2, .8, .2, 1);    /* navigation: quick and subtle */
	--rx-lux-cine: cubic-bezier(.76, 0, .24, 1);   /* wipes */
	--rx-lux-out: cubic-bezier(.16, 1, .3, 1);     /* type and settling */
	--rx-fb-inset: 14px;
	--rx-fb-h: 60px;
}
@media (max-width: 640px) {
	:root { --rx-fb-inset: 10px; --rx-fb-h: 52px; }
}
