/**
 * Design tokens — single source of truth for colors, type, space, radius, z-index.
 * Loaded before every other theme stylesheet. Change values here to control the site.
 *
 * Heading scale (use these everywhere — tags and components):
 *   h1 → --fs-h1 (--fs-display)
 *   h2 → --fs-h2 (--fs-section)
 *   h3 → --fs-h3 (--fs-card)
 *   h4 → --fs-h4
 *   h5 → --fs-h5
 *   h6 → --fs-h6
 *   p  → --fs-body
 */

:root {
	/* Colors */
	--color-primary: #efe7dd;
	--color-secondary: #252525;
	--color-accent: #cebbaa;
	--color-green: #259e83;
	--color-white: #ffffff;
	--color-bg: #faf8f5;
	--color-text: #252525;
	--color-muted: rgba(37, 37, 37, 0.64);
	--color-line: #efe7dd;

	/* Font families */
	--font-heading: "SimplerPro", system-ui, sans-serif;
	--font-body: "SimplerPro", system-ui, sans-serif;
	--font-display: "SimplerPro Extended", "SimplerPro", system-ui, sans-serif;
	--font-mono: "SimplerPro Mono", ui-monospace, monospace;

	/* Type scale — role sizes */
	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-md: 1rem;
	--fs-lg: 1.375rem;
	--fs-body: 1.375rem;
	--fs-card: clamp(1.5rem, 0.85rem + 3vw, 3.5rem);
	--fs-section: clamp(2rem, 1rem + 3.5vw, 4rem);
	--fs-display: clamp(2.5rem, 1.6rem + 3.2vw, 5rem);

	/* Heading levels (single hierarchy — each step must stay above the next) */
	--fs-h1: var(--fs-display);
	--fs-h2: var(--fs-section);
	--fs-h3: var(--fs-card);
	--fs-h4: clamp(1.5rem, 1.15rem + 1.1vw, 2rem);
	--fs-h5: 1.125rem;
	--fs-h6: 1rem;

	/* Legacy aliases */
	--fs-xl: var(--fs-card);
	--fs-2xl: var(--fs-section);
	--fs-3xl: var(--fs-display);
	--fs-quote: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	--track: -0.05em;

	/* Specialty (exceptions — not part of h1–h6) */
	--fs-hero: clamp(34px, 4.167vw, 80px);
	--fs-hero-sub: 0.55em;
	--fs-intro: var(--fs-h1);
	--fs-stat: clamp(40px, 5.729vw, 110px);
	--fs-stat-sm: clamp(40px, 4.2vw, 72px);
	--fs-map-title: clamp(32px, 3.333vw, 64px);
	--fs-map-name: 1.5rem;
	--fs-map-badge: 1.625rem;
	--fs-map-card: 1.625rem;
	--fs-map-meta: var(--fs-body);
	--fs-map-btn: 0.95rem;
	--fs-agent: var(--fs-hero);
	--fs-agent-q: var(--fs-body);
	--fs-agent-input: 1.25rem;
	--fs-btn: var(--fs-body);
	--fs-step: var(--fs-h3);

	/* Line height */
	--lh-tight: 1.15;
	--lh-body: 1.25;

	/* Space */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4.5rem;
	--space-9: 7rem;

	/* Radius */
	--radius-sm: 8px;
	--radius-md: 15px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-pill: 999px;

	/* Effects / layout */
	--shadow-soft: 0 8px 16px rgba(206, 187, 170, 0.3);
	--ease: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	--header-h: 6.75rem;
	--container: 1400px;
	--gutter: 24px;

	/* Z-index */
	--z-header: 80;
	--z-overlay: 90;
	--z-float: 70;

	--header-fg: var(--color-primary);

	/* Forms — shared light-field skin (float contact & default .rma-form--light) */
	--form-font: var(--font-body);
	--form-fs: 1.125rem;
	--form-fs-label: 0.9375rem;
	--form-fs-consent: 0.8125rem;
	--form-fs-btn: 1.125rem;
	--form-gap: 10px;
	--form-control-h: 48px;
	--form-radius: 10px;
	--form-radius-btn: var(--radius-pill);
	--form-bg: var(--color-white);
	--form-fg: var(--color-secondary);
	--form-muted: var(--color-muted);
	--form-border: var(--color-accent);
	--form-border-focus: var(--color-secondary);
	--form-placeholder: var(--color-muted);
	--form-btn-bg: var(--color-secondary);
	--form-btn-fg: var(--color-white);
	--form-btn-bg-hover: #3a3a3a;
	--form-check: var(--color-secondary);
}

@media (max-width: 1024px) {
	:root {
		--header-h: 5.5rem;
		--fs-intro: clamp(32px, 5vw, 52px);
		--fs-stat: clamp(40px, 7vw, 72px);
		--fs-stat-sm: clamp(36px, 6vw, 56px);
		--fs-map-badge: 1rem;
		--fs-map-title: clamp(28px, 4.5vw, 40px);
		--fs-map-name: 0.95rem;
		--fs-map-card: 1.05rem;
		--fs-agent: clamp(1.5rem, 5vw, 2.25rem);
		--fs-agent-input: 1rem;
	}
}

@media (max-width: 768px) {
	:root {
		--gutter: 16px;
		--header-h: 3.75rem;
		--fs-body: 1.125rem;
		--fs-h4: 1.375rem;
		--fs-h5: 1.0625rem;
		--fs-h6: 0.9375rem;
		--fs-hero: 34px;
		--fs-hero-sub: 0.65em;
		--fs-stat: clamp(38px, 10vw, 52px);
		--fs-stat-sm: clamp(34px, 9vw, 48px);
		--fs-map-title: 28px;
		--fs-map-name: 0.875rem;
		--fs-map-badge: 0.875rem;
		--fs-map-card: 1rem;
		--fs-agent: clamp(1.45rem, 7.5vw, 2rem);
		--fs-agent-input: 0.95rem;
		--fs-btn: 1.05rem;
	}
}

@media (max-width: 480px) {
	:root {
		--header-h: 3.5rem;
		--fs-map-title: 24px;
		--fs-map-name: 0.8125rem;
		--fs-map-card: 0.95rem;
		--fs-agent: clamp(1.35rem, 8vw, 1.75rem);
		--fs-step: 24px;
	}
}
