/*
 * All Marin global design tokens.
 * Keep backend-provided content out of this file; it contains presentation values only.
 */

:root {
  color-scheme: light;

  /* Approved brand palette */
  --color-marine-navy: #254183;
  --color-marine-blue: #1865ad;
  --color-white: #ffffff;
  --color-background: #f6f8fb;
  --color-text: #17233c;
  --color-text-secondary: #667085;
  --color-border: #e4e9f0;

  /* Functional states only */
  --color-success: #157f3d;
  --color-success-surface: #edf9f1;
  --color-error: #b42318;
  --color-error-surface: #fff3f2;
  --color-warning: #9a6700;
  --color-warning-surface: #fff8e6;
  --color-disabled: #98a2b3;
  --color-disabled-surface: #eef1f5;

  /* Typography */
  --font-arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-english: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-base: var(--font-arabic);
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --font-size-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --font-size-2xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --line-height-tight: 1.25;
  --line-height-heading: 1.35;
  --line-height-body: 1.7;

  /* Mobile-first spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --section-space: clamp(3.5rem, 2.75rem + 3vw, 7rem);

  /* Shape and elevation */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgb(23 35 60 / 8%);
  --shadow-md: 0 10px 30px rgb(23 35 60 / 10%);

  /* Layout */
  --container-max: 75rem;
  --container-gutter: 1rem;
  --control-min-height: 2.75rem;
  --touch-target-min: 2.75rem;

  /* Shared breakpoint aliases (documentation / future use) */
  --bp-xs: 22.5rem;   /* ~360 */
  --bp-sm: 30rem;     /* ~480 */
  --bp-md: 36rem;     /* ~576 */
  --bp-lg: 48rem;     /* ~768 */
  --bp-xl: 64rem;     /* ~1024 */
  --bp-2xl: 75rem;    /* ~1200 */
  --bp-3xl: 90rem;    /* ~1440 */
  --bp-4xl: 120rem;   /* ~1920 */

  /* Motion */
  --duration-fast: 160ms;
  --duration-base: 240ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Shared layer order */
  --z-sticky: 100;
  --z-floating: 200;
  --z-overlay: 300;
  --z-modal: 400;
}

:root:lang(en) {
  --font-family-base: var(--font-english);
}

@media (min-width: 48rem) {
  :root {
    --container-gutter: 1.5rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --container-gutter: 1.75rem;
  }
}

@media (min-width: 75rem) {
  :root {
    --container-gutter: 2rem;
  }
}
