/* ============================================================
   DESIGN TOKENS — Royal Cabs
   Adapted from Blacklane.com design language analysis (Session 0)
   ============================================================ */

:root {

  /* ----------------------------------------------------------
     BRAND COLOURS
     ---------------------------------------------------------- */

  /* Dark brand — premium near-black */
  --color-brand:       #0A0C10;
  --color-brand-dark:  #060709;

  /* Accent — luxury gold palette */
  --color-accent:         #E5B869;   /* Primary Gold — prices, active states, badges */
  --color-accent-dark:    #C9963D;   /* darker press/hover state */
  --color-accent-light:   #F2D7A5;   /* Champagne — small text highlights, active borders */
  --color-accent-glow:    rgba(229, 184, 105, 0.15); /* subtle card glow/tint */
  --color-accent-rgb:     229, 184, 105;  /* for rgba() usage */

  /* Backgrounds */
  --color-bg:          #FFFFFF;
  --color-bg-soft:     #FBF8F2;        /* warm cream — borrowed from Blacklane rhythm */
  --color-bg-dark:     #0A0C10;

  /* Text */
  --color-text:        #1C1F26;
  --color-text-muted:  #656C7A;
  --color-text-light:  #FFFFFF;

  /* Borders */
  --color-border:      #E8E5DE;        /* slightly warm, not cold grey */
  --color-border-dark: rgba(255,255,255,0.12);

  /* Status */
  --color-success:     #10B981;
  --color-error:       #EF4444;


  /* ----------------------------------------------------------
     TYPOGRAPHY
     ---------------------------------------------------------- */

  /* Single typeface — Inter for everything (clean, premium sans) */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale — fluid via clamp(min, fluid, max) */
  --fs-xs:   clamp(0.75rem,  0.7rem  + 0.2vw, 0.875rem);
  --fs-sm:   clamp(0.875rem, 0.82rem + 0.2vw, 1rem);
  --fs-base: clamp(1rem,     0.96rem + 0.2vw, 1.125rem);
  --fs-lg:   clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-xl:   clamp(1.25rem,  1.1rem  + 0.6vw,  1.5rem);
  --fs-2xl:  clamp(1.5rem,   1.3rem  + 0.9vw,  2rem);
  --fs-3xl:  clamp(2rem,     1.7rem  + 1.3vw,  2.75rem);
  --fs-4xl:  clamp(2.5rem,   2rem    + 2.2vw,  4rem);

  /* Line heights */
  --lh-tight:  1.15;
  --lh-snug:   1.30;
  --lh-normal: 1.55;
  --lh-loose:  1.75;

  /* Letter spacing — Blacklane uses subtle 0.25px on headings */
  --ls-tight:   -0.02em;
  --ls-normal:  0;
  --ls-wide:    0.02em;
  --ls-wider:   0.05em;
  --ls-widest:  0.1em;


  /* ----------------------------------------------------------
     SPACING — 8px base scale
     ---------------------------------------------------------- */

  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */


  /* ----------------------------------------------------------
     BORDER RADIUS
     ---------------------------------------------------------- */

  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   0.75rem;  /* tightened: ≈ 12px — disciplined, not bubbly */
  --radius-xl:   1rem;     /* tightened: ≈ 16px — down from 1.5rem */
  --radius-full: 9999px;  /* pill — Blacklane button style */


  /* ----------------------------------------------------------
     SHADOWS
     ---------------------------------------------------------- */

  --shadow-xs: 0 1px 2px rgba(14, 17, 22, 0.04);
  --shadow-sm: 0 2px 6px rgba(14, 17, 22, 0.06);
  --shadow-md: 0 4px 16px rgba(14, 17, 22, 0.09);
  --shadow-lg: 0 12px 32px rgba(14, 17, 22, 0.12);
  --shadow-xl: 0 24px 48px rgba(14, 17, 22, 0.16);


  /* ----------------------------------------------------------
     LAYOUT
     ---------------------------------------------------------- */

  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  /* Section vertical rhythm — Blacklane uses generous vertical space */
  --section-py: clamp(4rem, 8vw, 7rem);


  /* ----------------------------------------------------------
     TRANSITIONS
     ---------------------------------------------------------- */

  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);

  --dur-fast:   150ms;
  --dur-normal: 250ms;
  --dur-slow:   400ms;
  --dur-xslow:  600ms;


  /* ----------------------------------------------------------
     Z-INDEX SCALE
     ---------------------------------------------------------- */

  --z-below:   -1;
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

}
