/*
 * Eazi Order design tokens — shared by the customer site (css/eazi.css)
 * and the restaurant dashboards (admin/css/style.css).
 * Change values here; components only reference tokens.
 */
:root {
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.25rem;
    --leading-tight: 1.25;
    --leading-normal: 1.55;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Brand: Eazi coral, deepened so white text passes WCAG AA (5.2:1) */
    --brand: #C8373C;
    --brand-hover: #A92D31;
    --brand-ink: #FFFFFF;
    --brand-soft: #FFF0F0;
    --brand-ring: rgba(200, 55, 60, 0.35);

    /* Warm neutrals */
    --ink: #1C1917;
    --ink-2: #44403C;
    --ink-3: #6B6460;        /* secondary text, 5.6:1 on white */
    --ink-4: #A29A94;        /* decorative / disabled only */
    --line: #E9E4DF;
    --line-strong: #D6CFC8;
    --surface: #FFFFFF;
    --canvas: #FAF8F6;
    --muted: #F3EFEB;

    /* Semantic (always paired with an icon or text, never colour alone) */
    --success: #157F3D;
    --success-soft: #EAF7EF;
    --warning: #A15C07;
    --warning-soft: #FFF5E1;
    --danger: #B42318;
    --danger-soft: #FEF0EE;
    --info: #1D5FC2;
    --info-soft: #EDF4FF;

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

    /* Shape & depth */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.06);
    --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.08), 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 10px 24px -10px rgba(28, 25, 23, 0.22);
    --shadow-lg: 0 24px 48px -16px rgba(28, 25, 23, 0.32);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur-fast: 120ms;
    --dur: 200ms;
    --dur-slow: 320ms;

    /* Interaction */
    --focus-ring: 0 0 0 3px var(--brand-ring);
    --tap: 44px;             /* minimum touch target */
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --dur-fast: 0ms;
        --dur: 0ms;
        --dur-slow: 0ms;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
