/**
 * Design Tokens - Bricard Services 2025
 *
 * Mobile-First Design System
 * Core variables for colors, typography, spacing, breakpoints
 *
 * @package GeneratePress Child
 * @since 1.0.0
 */

:root {
    /* ============================================
       COLORS - Locksmith/Security Brand Identity
       ============================================ */

    /* Primary - Trust & Professional (Blue) */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Secondary - Premium/Gold (Bricard Brand) */
    --color-secondary-50: #fffbeb;
    --color-secondary-100: #fef3c7;
    --color-secondary-200: #fde68a;
    --color-secondary-300: #fcd34d;
    --color-secondary-400: #fbbf24;
    --color-secondary-500: #f59e0b;
    --color-secondary-600: #d97706;
    --color-secondary-700: #b45309;
    --color-secondary-800: #92400e;
    --color-secondary-900: #78350f;

    /* Accent - Emergency/Urgency (Red) */
    --color-accent-50: #fef2f2;
    --color-accent-100: #fee2e2;
    --color-accent-200: #fecaca;
    --color-accent-300: #fca5a5;
    --color-accent-400: #f87171;
    --color-accent-500: #ef4444;
    --color-accent-600: #dc2626;
    --color-accent-700: #b91c1c;
    --color-accent-800: #991b1b;
    --color-accent-900: #7f1d1d;

    /* Success - Confirmation (Green) */
    --color-success-50: #ecfdf5;
    --color-success-100: #d1fae5;
    --color-success-500: #10b981;
    --color-success-600: #059669;
    --color-success-700: #047857;

    /* Neutral/Gray Scale */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Semantic Colors */
    --color-text: var(--color-gray-900);
    --color-text-light: var(--color-gray-600);
    --color-text-muted: var(--color-gray-500);
    --color-bg: #ffffff;
    --color-bg-alt: var(--color-gray-50);
    --color-bg-dark: var(--color-gray-100);
    --color-border: var(--color-gray-200);
    --color-border-dark: var(--color-gray-300);

    /* ============================================
       TYPOGRAPHY - Fluid Responsive Scale
       ============================================ */

    /* Font Families */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-heading: var(--font-primary);
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

    /* Font Weights */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Font Sizes - Fluid Typography using clamp() */
    /* Format: clamp(min-mobile, fluid-calc, max-desktop) */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);      /* 12px -> 14px */
    --fs-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);       /* 14px -> 16px */
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);      /* 16px -> 18px */
    --fs-md: clamp(1.0625rem, 1rem + 0.3125vw, 1.25rem);     /* 17px -> 20px */
    --fs-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.375rem);   /* 18px -> 22px */
    --fs-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);        /* 20px -> 24px */
    --fs-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);         /* 24px -> 32px */
    --fs-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);    /* 30px -> 40px */
    --fs-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);         /* 36px -> 48px */
    --fs-5xl: clamp(2.5rem, 2.15rem + 1.75vw, 3.5rem);       /* 40px -> 56px */
    --fs-6xl: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);           /* 48px -> 72px */

    /* Line Heights */
    --lh-tight: 1.2;
    --lh-snug: 1.375;
    --lh-normal: 1.5;
    --lh-relaxed: 1.625;
    --lh-loose: 2;

    /* Letter Spacing */
    --ls-tighter: -0.05em;
    --ls-tight: -0.025em;
    --ls-normal: 0;
    --ls-wide: 0.025em;
    --ls-wider: 0.05em;
    --ls-widest: 0.1em;

    /* ============================================
       SPACING - Fluid Responsive System
       ============================================ */

    /* Base spacing unit: 4px */
    --space-0: 0;
    --space-px: 1px;

    /* Fluid spacing using clamp() */
    --space-1: clamp(0.25rem, 0.23rem + 0.1vw, 0.3125rem);      /* 4px -> 5px */
    --space-2: clamp(0.5rem, 0.475rem + 0.125vw, 0.625rem);     /* 8px -> 10px */
    --space-3: clamp(0.75rem, 0.7rem + 0.25vw, 0.9375rem);      /* 12px -> 15px */
    --space-4: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);          /* 16px -> 20px */
    --space-5: clamp(1.25rem, 1.175rem + 0.375vw, 1.5625rem);   /* 20px -> 25px */
    --space-6: clamp(1.5rem, 1.4rem + 0.5vw, 1.875rem);         /* 24px -> 30px */
    --space-8: clamp(2rem, 1.85rem + 0.75vw, 2.5rem);           /* 32px -> 40px */
    --space-10: clamp(2.5rem, 2.3rem + 1vw, 3.125rem);          /* 40px -> 50px */
    --space-12: clamp(3rem, 2.75rem + 1.25vw, 3.75rem);         /* 48px -> 60px */
    --space-16: clamp(4rem, 3.65rem + 1.75vw, 5rem);            /* 64px -> 80px */
    --space-20: clamp(5rem, 4.5rem + 2.5vw, 6.25rem);           /* 80px -> 100px */
    --space-24: clamp(6rem, 5.4rem + 3vw, 7.5rem);              /* 96px -> 120px */

    /* ============================================
       BREAKPOINTS - Mobile First
       ============================================ */

    --breakpoint-xs: 390px;   /* iPhone SE, small phones */
    --breakpoint-sm: 640px;   /* Large phones, phablets */
    --breakpoint-md: 768px;   /* Tablets portrait */
    --breakpoint-lg: 1024px;  /* Tablets landscape, small laptops */
    --breakpoint-xl: 1280px;  /* Laptops, desktops */
    --breakpoint-2xl: 1536px; /* Large desktops */

    /* ============================================
       BORDERS & RADIUS
       ============================================ */

    /* Border Widths */
    --border-width-thin: 1px;
    --border-width-normal: 2px;
    --border-width-thick: 4px;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;     /* 4px */
    --radius-md: 0.375rem;    /* 6px */
    --radius-lg: 0.5rem;      /* 8px */
    --radius-xl: 0.75rem;     /* 12px */
    --radius-2xl: 1rem;       /* 16px */
    --radius-3xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;    /* Pill shape */

    /* ============================================
       SHADOWS - Elevation System
       ============================================ */

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* ============================================
       Z-INDEX - Stacking Order
       ============================================ */

    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ============================================
       TRANSITIONS & ANIMATIONS
       ============================================ */

    /* Durations */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* Easing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ============================================
       LAYOUT - Container & Content Widths
       ============================================ */

    --container-xs: 480px;
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;

    /* Content widths for readability */
    --content-narrow: 65ch;   /* ~520px for optimal reading */
    --content-normal: 75ch;   /* ~600px */
    --content-wide: 90ch;     /* ~720px */

    /* ============================================
       BUTTONS & INTERACTIVE ELEMENTS
       ============================================ */

    /* Touch Target Sizes (WCAG 2.1 AA compliance) */
    --touch-target-min: 44px;  /* Minimum tap target size */
    --touch-target-optimal: 48px;

    /* Button Heights */
    --btn-height-sm: 36px;
    --btn-height-md: 44px;
    --btn-height-lg: 52px;
    --btn-height-xl: 60px;

    /* ============================================
       LOCKSMITH-SPECIFIC BRAND
       ============================================ */

    /* Bricard Brand Colors */
    --color-bricard-gold: #d4af37;
    --color-bricard-gold-dark: #b8941f;
    --color-bricard-navy: #0c2340;

    /* Service Status Colors */
    --color-emergency: var(--color-accent-600);
    --color-available: var(--color-success-600);
    --color-busy: var(--color-secondary-600);

    /* Trust Indicators */
    --color-verified: var(--color-success-500);
    --color-certified: var(--color-primary-600);
}

/* ============================================
   DARK MODE PREPARATION (Optional Future Enhancement)
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode tokens can be added here if needed */
    }
}

/* ============================================
   ACCESSIBILITY - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
    }
}
