/* ==========================================================================
   Design tokens — single source of truth for colours, type, spacing.
   Mirrored into the Elementor global kit (Site Settings) by company-core.
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/InterVariable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Neutrals (Beckhoff-style: white, near-black text, cool light greys) */
	--c-ink: #111111;
	--c-text: #2e3338;
	--c-muted: #646a70;
	--c-line: #d5dade;
	--c-line-strong: #b4bcc2;
	--c-surface: #ffffff;
	--c-surface-2: #f5f7f7;
	--c-surface-3: #e5e9ec;      /* navigation bar / tiles */
	--c-dark: #1b1f23;
	--c-dark-2: #2a3036;
	--c-on-dark: #ffffff;
	--c-on-dark-muted: #c3c9cf;
	--c-footer: #5b6676;          /* darker variant of Beckhoff's #8c99ac (AA contrast with white) */
	--c-footer-2: #4f5b6b;

	/* Accent (Beckhoff red, slightly softened) */
	--c-accent: #d7141a;
	--c-accent-hover: #b01016;
	--c-accent-bright: #ff7070; /* only on dark backgrounds */
	--c-accent-tint: #fdecec;

	/* Feedback */
	--c-success: #1f7a4d;
	--c-warning: #9a5b00;
	--c-error: #b01016;

	--c-focus: var(--c-accent);

	/* Typography */
	--font-fa: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
	--font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-base: var(--font-en);
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--fs-xs: 0.8125rem;   /* 13 */
	--fs-sm: 0.875rem;    /* 14 */
	--fs-base: 1rem;      /* 16 */
	--fs-md: 1.125rem;    /* 18 */
	--fs-lg: 1.25rem;     /* 20 */
	--fs-h4: 1.125rem;
	--fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	--fs-h2: clamp(1.625rem, 1.25rem + 1.5vw, 2.375rem);
	--fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
	--fs-display: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);

	--lh-tight: 1.2;
	--lh-heading: 1.3;
	--lh-body: 1.65;
	--fw-regular: 400;
	--fw-medium: 500;
	--fw-bold: 700;
	--tracking-eyebrow: 0.08em;

	/* Spacing (8px base) */
	--s-1: 0.25rem;  /* 4 */
	--s-2: 0.5rem;   /* 8 */
	--s-3: 0.75rem;  /* 12 */
	--s-4: 1rem;     /* 16 */
	--s-5: 1.5rem;   /* 24 */
	--s-6: 2rem;     /* 32 */
	--s-7: 3rem;     /* 48 */
	--s-8: 4rem;     /* 64 */
	--s-9: 6rem;     /* 96 */
	--section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

	/* Layout */
	--container: 1280px;
	--container-narrow: 800px;
	--gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);
	--grid-gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);

	/* Shape */
	--r-sm: 0;
	--r-md: 0;
	--border: 1px solid var(--c-line);
	--shadow-1: 0 1px 2px rgb(30 35 40 / 6%);
	--shadow-2: 0 10px 30px rgb(30 35 40 / 10%);

	/* Motion */
	--ease: cubic-bezier(0.2, 0, 0, 1);
	--dur: 160ms;

	/* Header heights (used for sticky offsets) */
	--header-top-h: 64px;
	--header-nav-h: 46px;
	--header-h: calc(var(--header-top-h) + var(--header-nav-h));
}

:root:lang(fa),
[dir="rtl"] {
	--font-base: var(--font-fa);
	--lh-body: 1.9;
	--lh-heading: 1.5;
	--tracking-eyebrow: 0;
}

@media (max-width: 1024px) {
	:root {
		--header-top-h: 64px;
		--header-nav-h: 0px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--dur: 0ms;
	}
}
