/**
 * FlexBase - CSS Custom Properties (Variables)
 *
 * CUSTOMIZATION GUIDE:
 * This file contains all customizable values for client sites.
 * To personalize for a new client, update the values in this file only.
 *
 * Priority sections to customize:
 * 1. Colors - Primary (brand color)
 * 2. Colors - Secondary (supporting color)
 * 3. Colors - Accent (call-to-action color)
 * 4. Typography - Font Families
 */

:root {
    /* ========================================
     Colors - Primary (Brand Color)
     Main brand color used for headers, buttons, links
     ======================================== */
    --color-primary: #2563eb;
    --color-primary-rgb: 37, 99, 235;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-primary-contrast: #ffffff;

    /* ========================================
     Colors - Secondary
     Supporting color for secondary actions
     ======================================== */
    --color-secondary: #64748b;
    --color-secondary-rgb: 100, 116, 139;
    --color-secondary-light: #94a3b8;
    --color-secondary-dark: #475569;
    --color-secondary-contrast: #ffffff;

    /* ========================================
     Colors - Accent
     Eye-catching color for CTAs and highlights
     ======================================== */
    --color-accent: #f59e0b;
    --color-accent-rgb: 245, 158, 11;
    --color-accent-light: #fbbf24;
    --color-accent-dark: #d97706;
    --color-accent-contrast: #000000;

    /* ========================================
     Colors - Neutral (Gray Scale)
     Used for text, backgrounds, borders
     ======================================== */
    --color-white: #ffffff;
    --color-black: #000000;

    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    --color-gray-950: #020617;

    /* ========================================
     Colors - Semantic (Status)
     Used for feedback, alerts, validation
     ======================================== */
    --color-success: #22c55e;
    --color-success-rgb: 34, 197, 94;
    --color-success-light: #86efac;
    --color-success-dark: #16a34a;

    --color-warning: #f59e0b;
    --color-warning-light: #fcd34d;
    --color-warning-dark: #d97706;

    --color-error: #ef4444;
    --color-error-rgb: 239, 68, 68;
    --color-error-light: #fca5a5;
    --color-error-dark: #dc2626;

    --color-info: #3b82f6;
    --color-info-light: #93c5fd;
    --color-info-dark: #2563eb;

    /* ========================================
     Colors - Backgrounds
     Section and element backgrounds
     ======================================== */
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-gray-50);
    --bg-tertiary: var(--color-gray-100);
    --bg-inverse: var(--color-gray-900);

    /* ========================================
     Colors - Text
     Text color hierarchy
     ======================================== */
    --text-primary: var(--color-gray-900);
    --text-secondary: var(--color-gray-600);
    --text-tertiary: var(--color-gray-500);
    --text-inverse: var(--color-white);
    --text-muted: var(--color-gray-400);

    /* ========================================
     Colors - Borders
     Border colors
     ======================================== */
    --border-light: var(--color-gray-200);
    --border-default: var(--color-gray-300);
    --border-dark: var(--color-gray-400);

    /* ========================================
     Typography - Font Families
     Update with client's brand fonts
     ======================================== */
    --font-heading:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-body:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-mono:
        ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
        Menlo, monospace;

    /* ========================================
     Typography - Font Sizes
     Mobile-first scale (adjusted at breakpoints)
     ======================================== */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem; /* 36px */
    --text-5xl: 3rem; /* 48px */
    --text-6xl: 3.75rem; /* 60px */
    --text-7xl: 4.5rem; /* 72px */

    /* ========================================
     Typography - Font Weights
     ======================================== */
    --font-thin: 100;
    --font-extralight: 200;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* ========================================
     Typography - Line Heights
     ======================================== */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

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

    /* ========================================
     Spacing Scale
     Used for margins, paddings, gaps
     ======================================== */
    --spacing-0: 0;
    --spacing-px: 1px;
    --spacing-0-5: 0.125rem; /* 2px */
    --spacing-1: 0.25rem; /* 4px */
    --spacing-1-5: 0.375rem; /* 6px */
    --spacing-2: 0.5rem; /* 8px */
    --spacing-2-5: 0.625rem; /* 10px */
    --spacing-3: 0.75rem; /* 12px */
    --spacing-3-5: 0.875rem; /* 14px */
    --spacing-4: 1rem; /* 16px */
    --spacing-5: 1.25rem; /* 20px */
    --spacing-6: 1.5rem; /* 24px */
    --spacing-7: 1.75rem; /* 28px */
    --spacing-8: 2rem; /* 32px */
    --spacing-9: 2.25rem; /* 36px */
    --spacing-10: 2.5rem; /* 40px */
    --spacing-11: 2.75rem; /* 44px */
    --spacing-12: 3rem; /* 48px */
    --spacing-14: 3.5rem; /* 56px */
    --spacing-16: 4rem; /* 64px */
    --spacing-20: 5rem; /* 80px */
    --spacing-24: 6rem; /* 96px */
    --spacing-28: 7rem; /* 112px */
    --spacing-32: 8rem; /* 128px */
    --spacing-36: 9rem; /* 144px */
    --spacing-40: 10rem; /* 160px */

    /* ========================================
     Border Radius
     ======================================== */
    --radius-none: 0;
    --radius-sm: 0.125rem; /* 2px */
    --radius-default: 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;

    /* ========================================
     Shadows
     ======================================== */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md:
        0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg:
        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl:
        0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    --shadow-none: 0 0 #0000;

    /* ========================================
     Transitions
     ======================================== */
    --transition-none: none;
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;

    --ease-linear: linear;
    --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);

    /* Animation offsets */
    --anim-offset-sm: 0.5rem; /* 8px - subtle movements */
    --anim-offset-md: 1.25rem; /* 20px - standard fade-in */
    --anim-offset-lg: 2rem; /* 32px - larger movements */

    /* ========================================
     Layout - Container
     ======================================== */
    --container-xs: 20rem; /* 320px */
    --container-sm: 24rem; /* 384px */
    --container-md: 28rem; /* 448px */
    --container-lg: 32rem; /* 512px */
    --container-xl: 36rem; /* 576px */
    --container-2xl: 42rem; /* 672px */
    --container-3xl: 48rem; /* 768px */
    --container-4xl: 56rem; /* 896px */
    --container-5xl: 64rem; /* 1024px */
    --container-6xl: 72rem; /* 1152px */
    --container-7xl: 80rem; /* 1280px */
    --container-max: 75rem; /* 1200px - default max-width */

    /* ========================================
     Layout - Section & Content Spacing
     Mobile values (adjusted at breakpoints)
     ======================================== */
    --container-padding: var(--spacing-4);
    --section-padding-y: var(--spacing-16);
    --content-gap: var(--spacing-6);

    /* ========================================
     Layout - Header
     ======================================== */
    --header-height: 4rem; /* 64px */
    --header-height-scrolled: 3.5rem; /* 56px */

    /* ========================================
     Z-Index Scale
     ======================================== */
    --z-behind: -1;
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --z-max: 9999;

    /* ========================================
     Breakpoints (for reference in JS)
     CSS uses @media queries directly
     ======================================== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* ========================================
   Responsive Adjustments
   Mobile-first: base values above, larger screens below
   ======================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
    :root {
        --container-padding: var(--spacing-6);
        --section-padding-y: var(--spacing-20);
        --content-gap: var(--spacing-8);
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    :root {
        --container-padding: var(--spacing-8);
        --section-padding-y: var(--spacing-24);
        --content-gap: var(--spacing-10);
        --header-height: 5rem; /* 80px */
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    :root {
        --section-padding-y: var(--spacing-28);
    }
}
