/* ==========================================================================
   Super-app design tokens
   Shared scale for every service. Each service only swaps the accent set via
   [data-service] on <body>; everything else (type, spacing, radius, motion)
   stays identical so the four experiences read as one product.
   ========================================================================== */

:root {
    --sa-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Neutrals */
    --sa-ink: #15171c;
    --sa-ink-2: #3d424b;
    --sa-muted: #646b76;
    --sa-line: #e4e6ea;
    --sa-line-2: #f0f1f4;
    --sa-canvas: #f6f6f8;
    --sa-surface: #ffffff;
    --sa-overlay: rgba(15, 17, 22, .55);

    /* Status */
    --sa-success: #15803d;
    --sa-success-soft: #e9f7ee;
    --sa-danger: #c0262d;
    --sa-danger-soft: #fdecec;
    --sa-warning: #9a5806;
    --sa-warning-soft: #fff6e0;
    --sa-info: #1d4ed8;
    --sa-info-soft: #eaf0ff;

    /* Service palette (used for cross-service UI such as the home selector) */
    --sa-food: #c2410c;
    --sa-food-soft: #fff3ea;
    --sa-grocery: #15803d;
    --sa-grocery-soft: #ecf8f0;
    --sa-ecommerce: #db2257;
    --sa-ecommerce-soft: #fff0f4;
    --sa-taxi: #f5c518;
    --sa-taxi-soft: #fff8d6;
    --sa-logistics: #1d4ed8;
    --sa-logistics-soft: #eaf0ff;
    --sa-charcoal: #1f2328;

    /* Brand colour from the admin (Web Styling → primary colour), set inline by the layout;
       these are the fallbacks. Each service swaps in its own accent below. */
    --sa-brand: var(--sa-ink);
    --sa-brand-hover: #000000;
    --sa-brand-soft: #eef0f3;
    --sa-on-brand: #ffffff;

    /* Default accent = brand (super-app home, account) */
    --sa-accent: var(--sa-brand);
    --sa-accent-hover: var(--sa-brand-hover);
    --sa-accent-soft: var(--sa-brand-soft);
    --sa-accent-bright: var(--sa-brand);
    --sa-accent-ink: var(--sa-brand);
    --sa-on-accent: var(--sa-on-brand);

    /* Radius */
    --sa-r-sm: 8px;
    --sa-r-md: 12px;
    --sa-r-lg: 18px;
    --sa-r-xl: 26px;
    --sa-r-pill: 999px;

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

    /* Type scale */
    --sa-fs-xs: 12px;
    --sa-fs-sm: 14px;
    --sa-fs-md: 16px;
    --sa-fs-lg: 18px;
    --sa-fs-xl: 22px;
    --sa-fs-2xl: clamp(24px, 2.6vw, 30px);
    --sa-fs-3xl: clamp(28px, 3.8vw, 42px);
    --sa-fs-4xl: clamp(34px, 5.2vw, 60px);

    /* Elevation */
    --sa-shadow-1: 0 1px 2px rgba(16, 18, 24, .06), 0 1px 3px rgba(16, 18, 24, .05);
    --sa-shadow-2: 0 10px 24px -10px rgba(16, 18, 24, .22);
    --sa-shadow-3: 0 28px 56px -16px rgba(16, 18, 24, .32);

    /* Motion */
    --sa-ease: cubic-bezier(.2, .8, .2, 1);
    --sa-fast: 160ms;
    --sa-med: 280ms;

    /* Layout */
    --sa-container: 1240px;
    --sa-gutter: 16px;
    --sa-header-h: 60px; /* sticky header height; grows when the service row shows */
    --sa-mobilenav-h: 64px;
}

@media (min-width: 768px) {
    :root { --sa-gutter: 24px; --sa-header-h: 116px; }
}

[data-service="food"] {
    --sa-accent: #c2410c;
    --sa-accent-hover: #a3360a;
    --sa-accent-soft: #fff3ea;
    --sa-accent-bright: #f97316;
    --sa-accent-ink: #b23c0b;
    --sa-on-accent: #ffffff;
}

[data-service="grocery"] {
    --sa-accent: #15803d;
    --sa-accent-hover: #116632;
    --sa-accent-soft: #ecf8f0;
    --sa-accent-bright: #22c55e;
    --sa-accent-ink: #13703a;
    --sa-on-accent: #ffffff;
}

[data-service="ecommerce"] {
    /* Myntra-style pink; #db2257 keeps white button text above 4.5:1 (the brighter #ff3f6c is decoration only). */
    --sa-accent: #db2257;
    --sa-accent-hover: #c01b4b;
    --sa-accent-soft: #fff0f4;
    --sa-accent-bright: #ff3f6c;
    --sa-accent-ink: #c01b4b;
    --sa-on-accent: #ffffff;
}

[data-service="taxi"] {
    --sa-accent: #f5c518;
    --sa-accent-hover: #e2b20b;
    --sa-accent-soft: #fff8d6;
    --sa-accent-bright: #f5c518;
    --sa-accent-ink: #1f2328;
    --sa-on-accent: #15171c;
}

[data-service="logistics"] {
    --sa-accent: #1d4ed8;
    --sa-accent-hover: #1e40af;
    --sa-accent-soft: #eaf0ff;
    --sa-accent-bright: #3b82f6;
    --sa-accent-ink: #1e40af;
    --sa-on-accent: #ffffff;
}
