/**
 * Design tokens — Safa COD
 * Every color, radius, shadow, spacing and type value in the theme is
 * derived from these custom properties. Admin brand-color changes (Phase 11)
 * only need to override --color-primary / --color-accent here.
 */

:root {
	/* ---- Brand colors ---- */
	--color-primary: #16233F;        /* deep navy — headings, primary buttons */
	--color-primary-strong: #0E1830; /* hover/active state of primary */
	--color-secondary: #3C4D70;      /* softer navy-slate — secondary UI, links */
	--color-accent: #B68A3D;         /* restrained gold — prices, badges, CTAs */
	--color-accent-strong: #85601F;  /* hover/active state of accent; also gold text on light backgrounds (AA contrast) */
	--color-accent-action: #8F6B28;  /* gold button background: white text on it passes AA (4.5:1) */
	--color-accent-tint: #F6EFE1;    /* pale gold wash for badges/backgrounds */

	/* ---- Text ---- */
	--color-text: #1B1F2A;
	--color-text-muted: #667085;
	--color-text-on-primary: #FFFFFF;
	--color-text-on-accent: #FFFFFF;

	/* ---- Surfaces ---- */
	--color-background: #FFFFFF;
	--color-surface: #F7F7F4;        /* alternating section background, warm off-white */
	--color-card: #FFFFFF;
	--color-border: #E6E4DE;
	--color-border-strong: #D3D0C8;

	/* ---- Semantic ---- */
	--color-success: #2F7D5A;
	--color-success-tint: #E7F3EC;
	--color-warning: #B7791F;
	--color-warning-tint: #FBF1DF;
	--color-error: #B3402F;
	--color-error-tint: #FBEAE7;

	/* ---- Radius ---- */
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-pill: 999px;

	/* ---- Shadows (kept subtle per the reference's flat, bordered-card style) ---- */
	--shadow-xs: 0 1px 2px rgba(22, 35, 63, 0.05);
	--shadow-sm: 0 2px 8px rgba(22, 35, 63, 0.06);
	--shadow-md: 0 8px 24px rgba(22, 35, 63, 0.08);

	/* ---- Layout ---- */
	--container-width: 1280px;
	--container-padding-inline: 20px;

	/* ---- Spacing scale ---- */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;

	/* ---- Typography ---- */
	--font-sans: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;

	--text-xs: 0.75rem;     /* 12px */
	--text-sm: 0.875rem;    /* 14px */
	--text-base: 1rem;      /* 16px */
	--text-md: 1.125rem;    /* 18px */
	--text-lg: 1.375rem;    /* 22px */
	--text-xl: 1.75rem;     /* 28px */
	--text-2xl: 2.25rem;    /* 36px */

	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-bold: 700;
	--font-weight-black: 800;

	--line-height-tight: 1.25;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.7;

	/* ---- Motion ---- */
	--transition-fast: 150ms ease;
	--transition-base: 220ms ease;
}

@media (max-width: 782px) {
	:root {
		--container-padding-inline: 16px;
		--text-2xl: 1.75rem;
		--text-xl: 1.5rem;
		--text-lg: 1.2rem;
	}
}
