/* ========================================
   Easy Digify - Professional Design System
   Color Palette Based On Logo
   ======================================== */

:root {
    /* Color Palette - Based on Logo */
    --color-navy: #001F5C;          /* Dark navy - main brand color */
    --color-navy-light: #0033A0;    /* Lighter navy */
    --color-purple: #5B7FEC;        /* Light purple - accent */
    --color-purple-dark: #4A62D9;   /* Darker purple */
    --color-gray-dark: #5A6B7D;     /* Gray accents */
    --color-gray-medium: #8A9BAE;   /* Medium gray */
    --color-gray-light: #EEF1F7;    /* Light gray background */
    --color-white: #FFFFFF;         /* Pure white */
    --color-text: #1A1A2E;          /* Text primary */
    --color-text-secondary: #5A6B7D; /* Text secondary */
    --color-border: #D4DCE8;        /* Borders */
    --color-success: #00C896;       /* Success/positive */
    --color-danger: #FF4757;        /* Danger/error */
    --color-warning: #FFA502;       /* Warning */

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --font-size-h1: 3.5rem;         /* 56px */
    --font-size-h2: 2.75rem;        /* 44px */
    --font-size-h3: 2rem;           /* 32px */
    --font-size-h4: 1.5rem;         /* 24px */
    --font-size-h5: 1.25rem;        /* 20px */
    --font-size-h6: 1rem;           /* 16px */
    --font-size-body: 1rem;         /* 16px */
    --font-size-small: 0.875rem;    /* 14px */
    --font-size-xs: 0.75rem;        /* 12px */

    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing Scale */
    --space-xs: 0.25rem;            /* 4px */
    --space-sm: 0.5rem;             /* 8px */
    --space-md: 1rem;               /* 16px */
    --space-lg: 1.5rem;             /* 24px */
    --space-xl: 2rem;               /* 32px */
    --space-2xl: 3rem;              /* 48px */
    --space-3xl: 4rem;              /* 64px */
    --space-4xl: 6rem;              /* 96px */

    /* Border Radius */
    --radius-sm: 0.375rem;          /* 6px */
    --radius-md: 0.5rem;            /* 8px */
    --radius-lg: 0.75rem;           /* 12px */
    --radius-xl: 1rem;              /* 16px */
    --radius-full: 9999px;          /* Full pill */

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.05);
    --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 8px 24px rgba(26, 26, 46, 0.15);
    --shadow-xl: 0 12px 32px rgba(26, 26, 46, 0.2);

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

    /* Z-index Scale */
    --z-dropdown: 100;
    --z-fixed: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ========================================
   Base Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

h6 {
    font-size: var(--font-size-h6);
}

p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-purple);
}

/* ========================================
   Utilities
   ======================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-lg {
    max-width: 1440px;
}

.container-sm {
    max-width: 1024px;
}

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.pt-lg { padding-top: var(--space-lg); }
.pb-lg { padding-bottom: var(--space-lg); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }

/* Text Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--color-navy); }
.text-secondary { color: var(--color-text-secondary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }

.text-muted { opacity: 0.7; }
.text-bold { font-weight: var(--font-weight-bold); }
.text-semibold { font-weight: var(--font-weight-semibold); }
.text-small { font-size: var(--font-size-small); }

/* Display Utilities */
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.inline-block { display: inline-block; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Grid Utilities */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: var(--z-fixed);
    border-radius: var(--radius-md);
}

.skip-link:focus {
    top: var(--space-md);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .no-print { display: none; }
    body { background-color: var(--color-white); color: var(--color-text); }
}
