/* ═══════════════════════════════════════════════════════════
   FILE: assets/css/brand.css
   DESCRIPTION: WHT Design System - Official Brand Identity
   BRAND COLORS: #1E3A8A (Deep Blue Primary) | #3B82F6 (Electric Blue)
   TYPOGRAPHY: Poppins (Headings) | Inter (Body)
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ═══════════════════════════════════════════════════════════
       WHT PRIMARY COLORS (OFFICIAL - CORRECTED)
       ═══════════════════════════════════════════════════════════ */
    --color-primary: #1E3A8A;
    /* Deep Blue - Logo, H1, Links, Primary Buttons */
    --color-primary-light: #3B82F6;
    /* Electric Blue - Hover, Highlights */
    --color-primary-dark: #1E293B;
    /* Very Dark Blue - Footer, Dark backgrounds */
    --color-primary-rgb: 30, 58, 138;
    /* For transparencies */

    /* ═══════════════════════════════════════════════════════════
       SECONDARY/FUNCTIONAL COLORS
       ═══════════════════════════════════════════════════════════ */
    --color-success: #10B981;
    /* Tech Green - Security, Success states */
    --color-warning: #F59E0B;
    /* Orange - Warnings, Secondary CTAs (NOT brand color) */
    --color-danger: #EF4444;
    /* Red - Errors, Validations */
    --color-info: #3B82F6;
    /* Electric Blue - Information */

    /* ═══════════════════════════════════════════════════════════
       NEUTRAL COLORS (LIGHT MODE)
       ═══════════════════════════════════════════════════════════ */
    --color-text-primary: #1F2937;
    /* Dark gray - Main text */
    --color-text-secondary: #6B7280;
    /* Medium gray - Secondary text */
    --color-text-muted: #9CA3AF;
    /* Light gray - Placeholders */
    --color-text-inverse: #FFFFFF;
    /* White - Text on dark backgrounds */

    --color-background: #FFFFFF;
    /* White - Main background */
    --color-background-alt: #F9FAFB;
    /* Very light gray - Alternate sections */
    --color-background-dark: #111827;
    /* Dark gray - Footer */

    --color-border: #E5E7EB;
    /* Subtle borders */
    --color-border-dark: #D1D5DB;
    /* Visible borders */
    --color-divider: #E5E7EB;
    /* Dividing lines */

    /* ═══════════════════════════════════════════════════════════
       WHT GRADIENTS (CORRECTED)
       ═══════════════════════════════════════════════════════════ */
    --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    --gradient-secondary: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    --gradient-hero: linear-gradient(180deg, #1E3A8A 0%, #1E293B 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%);
    --gradient-promo: linear-gradient(90deg, #1E3A8A 0%, #3B82F6 100%);

    /* ═══════════════════════════════════════════════════════════
       TYPOGRAPHY - FAMILIES
       ═══════════════════════════════════════════════════════════ */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* ═══════════════════════════════════════════════════════════
       TYPOGRAPHY - WEIGHTS
       ═══════════════════════════════════════════════════════════ */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* ═══════════════════════════════════════════════════════════
       TYPOGRAPHY - SIZES (DESKTOP)
       ═══════════════════════════════════════════════════════════ */
    --font-size-h1: 3.5rem;
    /* 56px */
    --font-size-h2: 2.5rem;
    /* 40px */
    --font-size-h3: 1.75rem;
    /* 28px */
    --font-size-h4: 1.5rem;
    /* 24px */
    --font-size-h5: 1.25rem;
    /* 20px */
    --font-size-h6: 1.125rem;
    /* 18px */
    --font-size-body: 1.125rem;
    /* 18px */
    --font-size-body-sm: 1rem;
    /* 16px */
    --font-size-small: 0.875rem;
    /* 14px */
    --font-size-tiny: 0.75rem;
    /* 12px */

    /* ═══════════════════════════════════════════════════════════
       TYPOGRAPHY - LINE HEIGHTS
       ═══════════════════════════════════════════════════════════ */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* ═══════════════════════════════════════════════════════════
       TYPOGRAPHY - LETTER SPACING
       ═══════════════════════════════════════════════════════════ */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;

    /* ═══════════════════════════════════════════════════════════
       SPACING SCALE
       ═══════════════════════════════════════════════════════════ */
    --spacing-xs: 0.25rem;
    /* 4px */
    --spacing-sm: 0.5rem;
    /* 8px */
    --spacing-md: 1rem;
    /* 16px */
    --spacing-lg: 1.5rem;
    /* 24px */
    --spacing-xl: 2rem;
    /* 32px */
    --spacing-2xl: 3rem;
    /* 48px */
    --spacing-3xl: 4rem;
    /* 64px */
    --spacing-4xl: 6rem;
    /* 96px */

    /* ═══════════════════════════════════════════════════════════
       BORDER RADIUS
       ═══════════════════════════════════════════════════════════ */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-full: 9999px;
    /* Fully rounded */

    /* ═══════════════════════════════════════════════════════════
       SHADOWS
       ═══════════════════════════════════════════════════════════ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* ═══════════════════════════════════════════════════════════
       Z-INDEX SCALE
       ═══════════════════════════════════════════════════════════ */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ═══════════════════════════════════════════════════════════
       TRANSITIONS
       ═══════════════════════════════════════════════════════════ */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ═══════════════════════════════════════════════════════════
       BREAKPOINTS (for reference in JS)
       ═══════════════════════════════════════════════════════════ */
    --breakpoint-sm: 640px;
    /* Mobile landscape */
    --breakpoint-md: 768px;
    /* Tablet */
    --breakpoint-lg: 1024px;
    /* Desktop */
    --breakpoint-xl: 1280px;
    /* Large desktop */
    --breakpoint-2xl: 1536px;
    /* XL desktop */
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE THEME OVERRIDES
   ═══════════════════════════════════════════════════════════ */
html.dark {
    --color-text-primary: #F9FAFB;
    /* Light gray - Main text */
    --color-text-secondary: #D1D5DB;
    /* Medium gray - Secondary text */
    --color-text-muted: #9CA3AF;
    /* Darker gray - Placeholders */
    --color-text-inverse: #1F2937;
    /* Dark gray - Text on light backgrounds */

    --color-background: #111827;
    /* Very dark gray - Main background */
    --color-background-alt: #1F2937;
    /* Dark gray - Alternate sections */
    --color-background-dark: #030712;
    /* Almost black - Footer */

    --color-border: #374151;
    /* Dark borders */
    --color-border-dark: #4B5563;
    /* Visible dark borders */
    --color-divider: #374151;
    /* Dark dividing lines */

    /* Adjusted shadows for dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE TYPOGRAPHY - TABLET
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2.5rem;
        /* 40px */
        --font-size-h2: 2rem;
        /* 32px */
        --font-size-h3: 1.5rem;
        /* 24px */
        --font-size-h4: 1.25rem;
        /* 20px */
        --font-size-body: 1rem;
        /* 16px */
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE TYPOGRAPHY - MOBILE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    :root {
        --font-size-h1: 2rem;
        /* 32px */
        --font-size-h2: 1.75rem;
        /* 28px */
        --font-size-h3: 1.25rem;
        /* 20px */
        --font-size-h4: 1.125rem;
        /* 18px */
    }
}