/* ==========================================================================
   Design Tokens — Beckley Electrical
   Professional blue/navy palette for domestic electrician services
   Following CLAUDE.md spacing scale (4px/8px grid), typography hierarchy,
   and color theory guidelines.
   ========================================================================== */

:root {
  /* -----------------------------------------------------------------------
     COLOR PALETTE — Professional Blue/Navy
     ----------------------------------------------------------------------- */

  /* Primary — Brand red: energy, urgency, trust */
  --color-primary-50:  #fef2f2;
  --color-primary-100: #fde3e3;
  --color-primary-200: #fbc5c6;
  --color-primary-300: #f79a9c;
  --color-primary-400: #f06467;
  --color-primary-500: #dc1e24;
  --color-primary-600: #d41920;
  --color-primary-700: #b51a1f;
  --color-primary-800: #961a1e;
  --color-primary-900: #7c1d20;
  --color-primary:     #dc1e24;
  --color-primary-dark: #b51a1f;

  /* Secondary — Electric blue: energy, action */
  --color-secondary-50:  #e3f2fd;
  --color-secondary-100: #bbdefb;
  --color-secondary-200: #90caf9;
  --color-secondary-300: #64b5f6;
  --color-secondary-400: #42a5f5;
  --color-secondary-500: #2196f3;
  --color-secondary-600: #1e88e5;
  --color-secondary:     #1976d2;
  --color-secondary-800: #1565c0;
  --color-secondary-900: #0d47a1;

  /* Accent — Amber/gold: warmth, approachability, highlights */
  --color-accent-50:  #fff8e1;
  --color-accent-100: #ffecb3;
  --color-accent-200: #ffe082;
  --color-accent-300: #ffd54f;
  --color-accent-400: #ffca28;
  --color-accent:     #f5a623;
  --color-accent-600: #f59d1a;
  --color-accent-700: #ef8c0e;
  --color-accent-800: #e67e00;
  --color-accent-900: #d56a00;

  /* Neutral — Blue-grey tones for text, borders, backgrounds */
  --color-neutral-50:  #f8f9fb;
  --color-neutral-100: #f0f2f5;
  --color-neutral-200: #e4e7ec;
  --color-neutral-300: #cdd3dc;
  --color-neutral-400: #9aa5b4;
  --color-neutral-500: #6b7a8d;
  --color-neutral-600: #4e5d6e;
  --color-neutral-700: #374151;
  --color-neutral-800: #1f2937;
  --color-neutral-900: #111827;

  /* Semantic — Success, Warning, Error, Info */
  --color-success-50:  #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success:     #059669;
  --color-success-700: #047857;

  --color-warning-50:  #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning:     #d97706;
  --color-warning-700: #b45309;

  --color-error-50:  #fef2f2;
  --color-error-100: #fee2e2;
  --color-error:     #dc2626;
  --color-error-700: #b91c1c;

  --color-info-50:  #eff6ff;
  --color-info-100: #dbeafe;
  --color-info:     #2563eb;
  --color-info-700: #1d4ed8;

  /* -----------------------------------------------------------------------
     SURFACES — Light mode
     ----------------------------------------------------------------------- */
  --surface-page:     #ffffff;
  --surface-elevated: #f8f9fb;
  --surface-card:     #ffffff;
  --surface-overlay:  rgba(0, 0, 0, 0.5);

  /* -----------------------------------------------------------------------
     TEXT COLORS
     ----------------------------------------------------------------------- */
  --text-primary:   #1f2937;
  --text-secondary: #4e5d6e;
  --text-tertiary:  #6b7a8d;
  --text-inverse:   #ffffff;
  --text-link:      #dc1e24;
  --text-link-hover:#b51a1f;

  /* -----------------------------------------------------------------------
     SPACING SCALE — 4px/8px grid
     ----------------------------------------------------------------------- */
  --space-xs:  4px;   /* 0.25rem — inline icon gaps, tight padding */
  --space-sm:  8px;   /* 0.5rem  — input padding, compact list items */
  --space-md:  16px;  /* 1rem    — card padding, section gaps */
  --space-lg:  24px;  /* 1.5rem  — section padding, major gaps */
  --space-xl:  32px;  /* 2rem    — page-level padding */
  --space-2xl: 48px;  /* 3rem    — hero sections, major separators */
  --space-3xl: 64px;  /* 4rem    — page-level vertical spacing */

  /* -----------------------------------------------------------------------
     TYPOGRAPHY
     ----------------------------------------------------------------------- */
  --font-sans:  system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Font sizes */
  --text-display: clamp(2.5rem, 5vw, 4.5rem);  /* 40-72px */
  --text-h1:      clamp(1.875rem, 3vw, 2.25rem); /* 30-36px */
  --text-h2:      clamp(1.5rem, 2.5vw, 1.75rem); /* 24-28px */
  --text-h3:      1.375rem;  /* 22px */
  --text-h4:      1.125rem;  /* 18px */
  --text-body:    1rem;      /* 16px */
  --text-sm:      0.875rem;  /* 14px */
  --text-caption: 0.75rem;   /* 12px */

  /* Font weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  /* Line heights */
  --leading-display: 1.1;
  --leading-h1:      1.2;
  --leading-h2:      1.25;
  --leading-h3:      1.3;
  --leading-h4:      1.35;
  --leading-body:    1.5;
  --leading-caption:  1.4;

  /* -----------------------------------------------------------------------
     BORDERS & RADII
     ----------------------------------------------------------------------- */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  --border-light: 1px solid var(--color-neutral-200);
  --border-medium: 1px solid var(--color-neutral-300);

  /* -----------------------------------------------------------------------
     SHADOWS
     ----------------------------------------------------------------------- */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:  0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg:  0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-xl:  0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);

  /* -----------------------------------------------------------------------
     TRANSITIONS
     ----------------------------------------------------------------------- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* -----------------------------------------------------------------------
     LAYOUT
     ----------------------------------------------------------------------- */
  --nav-height:      64px;
  --nav-height-mobile: 56px;
  --sidebar-width:   260px;
  --container-sm:    640px;
  --container-md:    768px;
  --container-lg:    1024px;
  --container-xl:    1280px;
  --container-max:   1536px;
  --grid-gap:        var(--space-md);

  /* -----------------------------------------------------------------------
     Z-INDEX SCALE
     ----------------------------------------------------------------------- */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-toast:     500;

  /* -----------------------------------------------------------------------
     BREAKPOINTS (for reference — use in media queries)
     xs:  0
     sm:  640px
     md:  768px
     lg:  1024px
     xl:  1280px
     2xl: 1536px
     ----------------------------------------------------------------------- */
}

/* Dark mode tokens (for future use) */
@media (prefers-color-scheme: dark) {
  :root {
    --surface-page:     #0a0a0a;
    --surface-elevated: #141414;
    --surface-card:     #1e1e1e;
    --surface-overlay:  rgba(0, 0, 0, 0.7);

    --text-primary:   #f0f2f5;
    --text-secondary: #9aa5b4;
    --text-tertiary:  #6b7a8d;
    --text-link:      #f06467;
    --text-link-hover:#f79a9c;

    --border-light:  1px solid rgba(255, 255, 255, 0.1);
    --border-medium: 1px solid rgba(255, 255, 255, 0.15);

    --shadow-sm:  none;
    --shadow-md:  none;
    --shadow-lg:  none;
    --shadow-xl:  none;
    --shadow-hover: none;

    /* Reduce saturation for comfort */
    --color-primary:     #e04448;
    --color-secondary:   #42a5f5;
    --color-accent:      #e09830;
  }
}
