/* ==========================================================================
   7at 7agtak — design tokens
   One source of truth for colour, type, space, radius, elevation, motion.
   Components read only these variables.
   ========================================================================== */

:root {
	/* Brand */
	--primary: #537B7B;
	--primary-dark: #294C50;
	--primary-deep: #1E3B3E;
	--primary-soft: #E5ECE8;
	--primary-tint: #EEF2EF;
	--accent: #C5A46D;
	--accent-dark: #8A6A2F;
	--accent-ink: #8A6A2F;
	--accent-soft: #F3EBDD;

	/* Surfaces */
	--background: #F7F6F0;
	--cream: #F7F6F0;
	--cream-deep: #EFEBDD;
	--surface: #FFFFFF;
	--border: #DDE4E1;
	--border-strong: #7F9591;

	/* Text */
	--text: #263638;
	--text-secondary: #5E6E6C;
	--text-on-primary: #FFFFFF;

	/* Status */
	--success: #3F8F70;
	--success-soft: #E7F3EE;
	--warning: #B45309;
	--warning-soft: #FEF3E2;
	--danger: #C2410C;
	--danger-soft: #FDECE5;
	--info: var(--primary);

	/* Type */
	--font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--fs-xs: .75rem;
	--fs-sm: .875rem;
	--fs-md: 1rem;
	--fs-lg: 1.125rem;
	--fs-xl: 1.375rem;
	--fs-2xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem);
	--fs-hero: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
	--lh-tight: 1.25;
	--lh-body: 1.7;

	/* Space (4px scale) */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 20px;
	--s-6: 24px;
	--s-8: 32px;
	--s-10: 40px;
	--s-12: 48px;
	--s-16: 64px;

	/* Radius — by hierarchy, not one value everywhere */
	--r-sm: 8px;    /* inputs, small buttons */
	--r-md: 12px;   /* cards */
	--r-lg: 18px;   /* panels, tiles */
	--r-xl: 28px;   /* hero, feature panels */
	--r-pill: 999px;

	/* Elevation */
	--shadow-1: 0 1px 2px rgba(30, 59, 62, .06);
	--shadow-2: 0 2px 4px rgba(30, 59, 62, .05), 0 10px 24px rgba(30, 59, 62, .08);
	--shadow-3: 0 18px 48px rgba(30, 59, 62, .18);

	/* Focus */
	--focus-ring: 0 0 0 3px #fff, 0 0 0 5px var(--primary-dark);

	/* Layout */
	--container: 1320px;
	--gutter: 16px;

	/* Motion */
	--ease: cubic-bezier(.2, .8, .2, 1);
	--dur: .18s;

	/* States */
	--state-disabled-opacity: .5;
	--state-hover-lift: -1px;
	--ring-primary: 0 0 0 3px rgba(83, 123, 123, .22);
	--ring-danger: 0 0 0 3px rgba(194, 65, 12, .18);

	/* Breakpoints (reference only — CSS variables can't be used in @media).
	   Mobile-first: base = phone, then min-width 480 / 768 / 1024 / 1280. */
	--bp-sm: 480px;
	--bp-md: 768px;
	--bp-lg: 1024px;
	--bp-xl: 1280px;

	/* Layers */
	--z-header: 900;
	--z-dropdown: 950;
	--z-bottombar: 980;
	--z-drawer: 1000;
}

/* Phones get tighter gutters; larger screens step up (mobile-first). */
:root { --gutter: 16px; }
@media (min-width: 768px) { :root { --gutter: 24px; } }

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