/* ==========================================================================
   Auto Spark Motors — Design Tokens
   Shared by the landing page (main.css/responsive.css/privacy.css) and
   the admin dashboard (admin-style.css/admin-responsive.css). Load before
   any other project stylesheet.
   ========================================================================== */

:root {

  /* ------------------------------------------------------------------------
     COLOR — Brand
     ------------------------------------------------------------------------ */
  --color-brand-red: #E8001C;
  --color-brand-red-dark: #B80016;
  --color-whatsapp: #25D366;
  --color-brand-red-rgb: 232, 0, 28; /* for rgba()/alpha tokens below */

  /* ------------------------------------------------------------------------
     COLOR — Ink (dark backgrounds & text)
     ------------------------------------------------------------------------ */
  --color-ink-900: #121212; /* deepest background */
  --color-ink-800: #1A1A1A; /* primary dark surface */
  --color-ink-700: #232323; /* secondary dark surface */
  --color-ink-600: #181818; /* raised dark surface (modal/toolbar) */
  --color-ink-800-rgb: 26, 26, 26;
  --color-ink-600-rgb: 22, 22, 22;

  /* ------------------------------------------------------------------------
     COLOR — Greyscale ramp (light -> dark)
     ------------------------------------------------------------------------ */
  --color-grey-100: #F6F6F6; /* lightest section background */
  --color-grey-200: #E7E7E7; /* hairline borders on light surfaces */
  --color-grey-300: #DADADA; /* muted borders / dividers */
  --color-grey-400: #AAAAAA; /* placeholder / disabled text on dark */
  --color-grey-500: #888888; /* secondary muted text */
  --color-grey-600: #6B6B6B; /* body muted text on light surfaces */
  --color-grey-700: #444444; /* secondary text on light surfaces */
  --color-grey-800: #333333; /* strong text on light surfaces */
  --color-grey-900: #2C2C2C; /* borders on dark surfaces */
  --color-grey-350: #BDBDBD; /* dark-surface muted body/icon/link text */
  --color-grey-550: #999999; /* muted link / empty-state title */
  --color-grey-555: #555555; /* dark-surface hover border */

  /* ------------------------------------------------------------------------
     COLOR — Base / text
     ------------------------------------------------------------------------ */
  --color-white: #FFFFFF;
  --color-text: #1F1F1F;            /* default body text (light theme) */
  --color-text-dark-theme: #F1F1F1; /* default body text (dark/admin theme) */

  /* ------------------------------------------------------------------------
     COLOR — Status / Semantic
     Shared taxonomy: pending, confirmed, success/completed, error/cancelled.
     ------------------------------------------------------------------------ */
  --color-status-pending: #F59E0B;
  --color-status-pending-light: #FBBF24;
  --color-status-confirmed: #3B82F6;
  --color-status-confirmed-light: #60A5FA;
  --color-status-success: #10B981;
  --color-status-success-light: #34D399;
  --color-status-success-alt: #047857; /* deeper success, admin alert border */
  --color-status-error: #EF4444;
  --color-status-error-light: #F87171;

  /* ------------------------------------------------------------------------
     COLOR — Accent blue (admin notes-modal), distinct from status-confirmed
     ------------------------------------------------------------------------ */
  --color-accent-blue: #2563EB;
  --color-accent-blue-dark: #1D4ED8;

  /* ------------------------------------------------------------------------
     OPACITY SCALE
     Shared opacity steps reused by every alpha color below. To add a new
     alpha color: add its -rgb var and compose rgba(var(--rgb), var(--oNN)).
     ------------------------------------------------------------------------ */
  --o-subtle: .08;
  --o-light: .15;
  --o-medium: .25;
  --o-heavy: .45;
  --o-max: .7;

  /* ------------------------------------------------------------------------
     COLOR — Alpha scale (brand red)
     ------------------------------------------------------------------------ */
  --color-brand-red-a-subtle: rgba(var(--color-brand-red-rgb), var(--o-subtle));
  --color-brand-red-a-light: rgba(var(--color-brand-red-rgb), var(--o-light));
  --color-brand-red-a-medium: rgba(var(--color-brand-red-rgb), var(--o-medium));
  --color-brand-red-a-heavy: rgba(var(--color-brand-red-rgb), var(--o-heavy));

  /* ------------------------------------------------------------------------
     COLOR — Alpha scale (neutral black / white overlays)
     Used for shadows and light-on-dark / dark-on-light tint overlays.
     ------------------------------------------------------------------------ */
  --color-black-a-subtle: rgba(0, 0, 0, var(--o-subtle));
  --color-black-a-light: rgba(0, 0, 0, var(--o-light));
  --color-black-a-medium: rgba(0, 0, 0, var(--o-medium));
  --color-black-a-heavy: rgba(0, 0, 0, var(--o-heavy));
  --color-black-a-max: rgba(0, 0, 0, var(--o-max));
  --color-white-a-subtle: rgba(255, 255, 255, var(--o-subtle));
  --color-white-a-medium: rgba(255, 255, 255, var(--o-medium));

  /* ------------------------------------------------------------------------
     COLOR — Status alpha scale (badge backgrounds / borders)
     ------------------------------------------------------------------------ */
  --color-status-pending-rgb: 245, 158, 11;
  --color-status-confirmed-rgb: 59, 130, 246;
  --color-status-success-rgb: 16, 185, 129;
  --color-status-error-rgb: 239, 68, 68;

  --color-status-pending-a-subtle: rgba(var(--color-status-pending-rgb), var(--o-subtle));
  --color-status-pending-a-light: rgba(var(--color-status-pending-rgb), var(--o-light));
  --color-status-pending-a-medium: rgba(var(--color-status-pending-rgb), var(--o-medium));
  --color-status-pending-a-heavy: rgba(var(--color-status-pending-rgb), var(--o-heavy));

  --color-status-confirmed-a-light: rgba(var(--color-status-confirmed-rgb), var(--o-light));
  --color-status-confirmed-a-heavy: rgba(var(--color-status-confirmed-rgb), var(--o-heavy));

  --color-status-success-a-light: rgba(var(--color-status-success-rgb), var(--o-light));
  --color-status-success-a-heavy: rgba(var(--color-status-success-rgb), var(--o-heavy));

  --color-status-error-a-light: rgba(var(--color-status-error-rgb), var(--o-light));
  --color-status-error-a-heavy: rgba(var(--color-status-error-rgb), var(--o-heavy));

  --color-status-success-alt-a-light: rgba(4, 120, 87, var(--o-light)); /* admin success alert bg */

  /* ------------------------------------------------------------------------
     FONT FAMILY
     ------------------------------------------------------------------------ */
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* ------------------------------------------------------------------------
     FONT SIZE (xxs -> 6xl, smallest to largest)
     ------------------------------------------------------------------------ */
  --fs-xxs: 10px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 22px;
  --fs-2xl: 26px;
  --fs-3xl: 30px;
  --fs-4xl: 32px;
  --fs-5xl: 34px;
  --fs-6xl: 38px;

  /* Fluid hero sizes (clamp(), not part of the fixed scale) */
  --fs-hero-title: clamp(46px, 7.5vw, 84px);
  --fs-hero-lead: clamp(16px, 2vw, 19px);
  --fs-section-title: clamp(32px, 5vw, 48px);

  /* ------------------------------------------------------------------------
     FONT WEIGHT
     ------------------------------------------------------------------------ */
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ------------------------------------------------------------------------
     LETTER SPACING (tight -> widest)
     ------------------------------------------------------------------------ */
  --ls-tight: 0.3px;
  --ls-base: 0.5px;
  --ls-wide: 1px;
  --ls-wider: 2px;
  --ls-widest: 3px;

  /* ------------------------------------------------------------------------
     TRANSITION SPEED
     ------------------------------------------------------------------------ */
  --transition-fast: 0.15s;
  --transition-base: 0.2s;
  --transition-slow: 0.3s;

  /* ------------------------------------------------------------------------
     SPACING (gap / padding / margin), 4px-step scale (xxs -> 8xl)
     ------------------------------------------------------------------------ */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 40px;
  --space-4xl: 48px;
  --space-5xl: 56px;
  --space-6xl: 64px;
  --space-7xl: 72px;
  --space-8xl: 88px; /* common section vertical padding on the landing page */

  /* ------------------------------------------------------------------------
     BORDER RADIUS
     ------------------------------------------------------------------------ */
  --radius-inner: 6px; /* buttons, inputs, badges */
  --radius-outer: 12px; /* cards, containers */
  --radius-full: 9999px;  /* circles, pills */

  /* ------------------------------------------------------------------------
     WIDTH / HEIGHT — structural, multi-use layout dimensions only
     ------------------------------------------------------------------------ */
  --layout-max-width: 1180px;      /* .wrap max-width (landing page) */
  --layout-header-height: 68px;    /* landing header + admin topbar height */
  --layout-sidebar-width: 250px;   /* admin sidebar width */
  --layout-sidebar-width-collapsed: 70px; /* admin sidebar, mobile/tablet */

  /* ------------------------------------------------------------------------
     SHADOW — elevation
     ------------------------------------------------------------------------ */
  --shadow-sm: 0 3px 8px var(--color-black-a-subtle);
  --shadow-md: 0 12px 30px var(--color-black-a-light);
  --shadow-lg: 0 24px 50px var(--color-black-a-max);
  --shadow-hover: 0 8px 24px var(--color-black-a-medium); /* card/fab/stat-card hover-lift, admin toast */

  /* SHADOW — focus rings (solid-color spread, not elevation) */
  --shadow-focus-red: 0 0 0 3px var(--color-brand-red-a-light);
  --ring-1: 1px;
  --ring-2: 2px;
  --ring-3: 3px;
  --ring-4: 4px;
  --ring-8: 8px;
}


/* ==========================================================================
   RANGE BREAKPOINTS
   Same 6-bucket range system as responsive.css/admin-responsive.css
   (XS/SM/MD/LG/XL/XXL). Only font-size is redefined via variables here —
   spacing/padding overrides live in responsive.css as class rules, since
   most of them swap between different token combinations per rule rather
   than shrinking one shared token uniformly.
   ========================================================================== */

/* XS — 0 to 575.98px */
@media (max-width: 575.98px) {
  :root {
    --fs-lg: 16px;
    --fs-xl: 20px;
    --fs-sm: 12px;
    --fs-4xl: 26px;
  }
}

/* SM — 576px to 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --fs-lg: 16px;
    --fs-xl: 20px;
    --fs-sm: 12px;
    --fs-4xl: 26px;
  }
}

/* MD — 768px to 991.98px */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    /* no overrides yet */
  }
}

/* LG — 992px to 1199.98px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  :root {
    /* no overrides yet */
  }
}

/* XL — 1200px to 1399.98px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  :root {
    /* no overrides yet */
  }
}

/* XXL — 1400px and up */
@media (min-width: 1400px) {
  :root {
    /* no overrides yet */
  }
}
