/**
 * Teb Open — Design tokens (single source of truth).
 * Do not hardcode colors outside this file.
 */

/* ---------- Fonts ---------- */
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Teb Digits';
	src: url('../fonts/digits/ShabnamDigits-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Teb Digits';
	src: url('../fonts/digits/ShabnamDigits-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Teb Digits';
	src: url('../fonts/digits/ShabnamDigits-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* ---------- Brand palette ---------- */
	--to-primary: #3cbfb6;
	--to-primary-strong: #1f7a72;
	--to-primary-deep: #165e58;
	--to-primary-soft: #e1f3f1;
	--to-primary-ring: rgba(60, 191, 182, 0.35);

	--to-accent: #e4644b;
	--to-accent-strong: #c24e38;
	--to-accent-soft: #fcebe6;
	--to-accent-ring: rgba(228, 100, 75, 0.3);

	/* ---------- Surfaces ---------- */
	--to-bg: #f6faf9;
	--to-bg-2: #edf5f4;
	--to-surface: #ffffff;
	--to-surface-2: #f1f8f7;
	--to-surface-3: #e7f1f0;
	--to-surface-invert: #10302d;
	--to-surface-invert-2: #1a423e;

	/* ---------- Text ---------- */
	--to-text: #10302d;
	--to-text-2: #44615d;
	--to-text-3: #6f8a86;
	--to-text-invert: #f2f8f7;
	--to-text-invert-2: #a9c6c2;

	/* ---------- Borders ---------- */
	--to-border: #dfeae8;
	--to-border-2: #ccdfeb;

	/* ---------- Status ---------- */
	--to-success: #1e9e6a;
	--to-success-soft: #e3f5ec;
	--to-danger: #d64545;
	--to-danger-soft: #fbeaea;
	--to-warning: #d89324;
	--to-warning-soft: #fdf3e0;

	/* ---------- Typography ---------- */
	--to-font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
	--to-num-font: 'Teb Digits', 'Vazirmatn', sans-serif;
	--to-fs-xs: 0.75rem;
	--to-fs-s: 0.8125rem;
	--to-fs-m: 0.9375rem;
	--to-fs-base: 1rem;
	--to-fs-l: 1.125rem;
	--to-fs-xl: 1.375rem;
	--to-fs-2xl: 1.75rem;
	--to-fs-3xl: 2.25rem;
	--to-lh: 1.7;

	/* ---------- Spacing (8px system) ---------- */
	--to-space-1: 4px;
	--to-space-2: 8px;
	--to-space-3: 12px;
	--to-space-4: 16px;
	--to-space-5: 24px;
	--to-space-6: 32px;
	--to-space-7: 48px;
	--to-space-8: 64px;

	/* ---------- Radius ---------- */
	--to-radius-s: 10px;
	--to-radius-m: 14px;
	--to-radius-l: 18px;
	--to-radius-xl: 24px;
	--to-radius-pill: 999px;

	/* ---------- Shadows ---------- */
	--to-shadow-1: 0 1px 2px rgba(16, 48, 45, 0.06);
	--to-shadow-2: 0 6px 20px -6px rgba(16, 48, 45, 0.12);
	--to-shadow-3: 0 16px 40px -12px rgba(16, 48, 45, 0.18);
	--to-shadow-card-hover: 0 12px 32px -10px rgba(31, 122, 114, 0.22);

	/* ---------- Transitions ---------- */
	--to-ease: cubic-bezier(0.2, 0.6, 0.25, 1);
	--to-dur-fast: 150ms;
	--to-dur: 250ms;
	--to-dur-slow: 400ms;

	/* ---------- Layout ---------- */
	--to-container: 1240px;
	--to-header-h: 64px;

	/* ---------- Z layers ---------- */
	--to-z-header: 50;
	--to-z-mega: 55;
	--to-z-minicart: 60;
	--to-z-drawer: 80;
	--to-z-search: 90;
	--to-z-toast: 110;

	/* ---------- Components ---------- */
	--to-ring: 0 0 0 3px var(--to-primary-ring);
}

/* ---------- Dark theme ---------- */
[data-theme='dark'] {
	--to-primary: #4ccfc5;
	--to-primary-strong: #35b0a6;
	--to-primary-deep: #7ddcd4;
	--to-primary-soft: #14403b;
	--to-primary-ring: rgba(76, 207, 197, 0.35);

	--to-accent: #f08068;
	--to-accent-strong: #e4644b;
	--to-accent-soft: #3a221d;
	--to-accent-ring: rgba(240, 128, 104, 0.3);

	--to-bg: #0a1b19;
	--to-bg-2: #0d2220;
	--to-surface: #122b28;
	--to-surface-2: #16332f;
	--to-surface-3: #1c3d39;
	--to-surface-invert: #f2f8f7;
	--to-surface-invert-2: #d7e8e6;

	--to-text: #eaf4f2;
	--to-text-2: #a9c0bc;
	--to-text-3: #7e9895;
	--to-text-invert: #10302d;
	--to-text-invert-2: #44615d;

	--to-border: #24443f;
	--to-border-2: #2e524d;

	--to-success: #2dbf85;
	--to-success-soft: #133829;
	--to-danger: #e05c5c;
	--to-danger-soft: #3a1d1d;
	--to-warning: #e7a844;
	--to-warning-soft: #3a2d14;

	--to-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
	--to-shadow-2: 0 6px 20px -6px rgba(0, 0, 0, 0.45);
	--to-shadow-3: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
	--to-shadow-card-hover: 0 12px 32px -10px rgba(0, 0, 0, 0.5);
}
