/*
 * Awfar store - design tokens (phase 8).
 * Single source of truth for the website's look. The brand colours follow
 * the client app (client_app/lib/core/theme/app_season.dart) and switch with
 * the season chosen in the dashboard: <html data-season="...">.
 */

@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url("../../website/fonts/TAJAWAL/Tajawal-Regular.woff2") format("woff2"); }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url("../../website/fonts/TAJAWAL/Tajawal-Medium.woff2") format("woff2"); }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url("../../website/fonts/TAJAWAL/Tajawal-Bold.woff2") format("woff2"); }
@font-face { font-family: "Tajawal"; font-weight: 800; font-display: swap; src: url("../../website/fonts/TAJAWAL/Tajawal-ExtraBold.woff2") format("woff2"); }

:root {
  /* Brand (season "default", same values as SeasonPalette.normal) */
  --c-primary: #00B6DF;
  --c-secondary: #0087AB;
  --c-accent: #FF8A3D;
  --c-primary-light: #E6F8FC;
  --c-surface: #F4F8FB;

  /* Neutrals and status (fixed, like AppColors) */
  --c-card: #FFFFFF;
  --c-text: #121112;
  --c-text-2: #4D4D4D;
  --c-muted: #808080;
  --c-border: #E5E9EE;
  --c-success: #1E9E5A;
  --c-success-light: #E7F6EE;
  --c-warning: #C7811A;
  --c-warning-light: #FFF4E5;
  --c-danger: #E31D1C;
  --c-danger-light: #FFEDED;

  /* Spacing (4px base) */
  --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;

  /* Shape and depth */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, .14);

  /* Type */
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 36px;

  /* Motion: quick and springy, like the app (AppMotion) */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 160ms; --t-normal: 280ms; --t-slow: 520ms;

  /* Layout */
  --container: 1240px;
  --header-h: 72px;
  --bottom-nav-h: 64px;
}

/* Seasons: same palettes as the app. */
[data-season="national_day"] {
  --c-primary: #0E8A4F; --c-secondary: #05582F; --c-accent: #C9A227; --c-primary-light: #E7F5EE; --c-surface: #F3F8F5;
}
[data-season="founding_day"] {
  --c-primary: #8A5A2B; --c-secondary: #5B3A1E; --c-accent: #D4A548; --c-primary-light: #F6EEE4; --c-surface: #FAF6F1;
}
[data-season="ramadan"] {
  --c-primary: #3D3693; --c-secondary: #1A1745; --c-accent: #E8B64C; --c-primary-light: #ECEBF7; --c-surface: #F5F4FA;
}
