/* ============================================================
   Orion POS — Global Design Tokens & Reusable Utilities
   Ceres.POSECommerce
   ============================================================ */

/* ── ROOT TOKENS ─────────────────────────────────────────── */
:root {
    /* Brand blues */
    --clr-blue-50: #EEF6FD;
    --clr-blue-100: #D6EAFA;
    --clr-blue-200: #A8D4F5;
    --clr-blue-300: #6BB6ED;
    --clr-blue-400: #4BA3E3;
    --clr-blue-500: #1A6FB5;
    --clr-blue-600: #155D99;
    --clr-blue-700: #0B3D6B;
    --clr-blue-800: #082D50;
    --clr-blue-900: #051E35;
    /* Neutrals */
    --clr-ink-900: #0D1B2A;
    --clr-ink-700: #1E3448;
    --clr-ink-500: #3D5166;
    --clr-ink-300: #7A96B0;
    --clr-ink-100: #B8CDD9;
    /* Surfaces */
    --clr-white: #FFFFFF;
    --clr-surface: #F8FBFF;
    --clr-surface-2: #F0F7FF;
    /* Semantic */
    --clr-success: #17A550;
    --clr-warning: #D97706;
    --clr-danger: #DC2626;
    /* ── TYPOGRAPHY ───────────────────────────────────────── */
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    /* ── SPACING ──────────────────────────────────────────── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    /* ── RADIUS ───────────────────────────────────────────── */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    /* ── SHADOWS ──────────────────────────────────────────── */
    --shadow-sm: 0 2px 8px rgba(11, 61, 107, 0.08);
    --shadow-md: 0 4px 20px rgba(11, 61, 107, 0.12);
    --shadow-lg: 0 12px 48px rgba(11, 61, 107, 0.18);
    --shadow-xl: 0 24px 72px rgba(11, 61, 107, 0.24);
    /* ── TRANSITIONS ──────────────────────────────────────── */
    --ease-fast: all 0.15s ease;
    --ease-normal: all 0.25s ease;
    --ease-slow: all 0.4s ease;
    /* ── NAV HEIGHT (used by sections for padding-top) ────── */
    --nav-h: 64px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-regular);
    color: var(--clr-ink-900);
    background: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
}

/* ── TYPOGRAPHY SCALE ────────────────────────────────────── */
.text-display {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: var(--font-weight-black);
    line-height: 1.06;
    letter-spacing: -2px;
}

.text-h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.text-h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    letter-spacing: -0.6px;
}

.text-h3 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.text-body-lg {
    font-size: 1.05rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.75;
}

.text-body {
    font-size: 0.925rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
}

.text-sm {
    font-size: 0.8rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.72rem;
    line-height: 1.4;
}

.text-muted {
    color: var(--clr-ink-500);
}

.text-faint {
    color: var(--clr-ink-300);
}

.text-accent {
    color: var(--clr-blue-500);
}

.text-white {
    color: var(--clr-white);
}

/* ── BUTTONS ─────────────────────────────────────────────── */

/* Base shared */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-bold);
    font-size: 0.95rem;
    padding: 13px 28px;
    transition: var(--ease-fast);
    white-space: nowrap;
    line-height: 1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn:active {
        transform: scale(0.98);
    }

/* Primary — filled blue */
.btn-primary {
    background: var(--clr-blue-500);
    color: var(--clr-white);
    box-shadow: 0 4px 18px rgba(26, 111, 181, 0.35);
}

    .btn-primary:hover {
        background: var(--clr-blue-700);
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(26, 111, 181, 0.42);
    }

/* Secondary — outlined blue */
.btn-secondary {
    background: transparent;
    color: var(--clr-blue-500);
    border: 2px solid var(--clr-blue-500);
}

    .btn-secondary:hover {
        background: var(--clr-blue-50);
        transform: translateY(-1px);
    }

/* Ghost — subtle */
.btn-ghost {
    background: transparent;
    color: var(--clr-ink-500);
    border: 1.5px solid rgba(75, 163, 227, 0.3);
}

    .btn-ghost:hover {
        background: var(--clr-blue-50);
        border-color: var(--clr-blue-400);
        color: var(--clr-blue-500);
    }

/* White — for dark backgrounds */
.btn-white {
    background: var(--clr-white);
    color: var(--clr-blue-700);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

    .btn-white:hover {
        background: var(--clr-blue-50);
        transform: translateY(-2px);
    }

/* White outlined — for dark backgrounds */
.btn-white-outline {
    background: transparent;
    color: var(--clr-white);
    border: 2px solid rgba(255, 255, 255, 0.55);
}

    .btn-white-outline:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.9);
    }

/* Sizes */
.btn-sm {
    font-size: 0.82rem;
    padding: 9px 20px;
}

.btn-lg {
    font-size: 1rem;
    padding: 16px 36px;
}

/* Disabled */
.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

/* ── BADGE / EYEBROW ─────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--clr-blue-100);
    color: var(--clr-blue-500);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dark {
    background: rgba(75, 163, 227, 0.18);
    color: var(--clr-blue-300);
}

/* ── SECTION STRUCTURE ───────────────────────────────────── */
.section {
    padding: var(--space-24) var(--space-8);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto var(--space-16);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

/* ── CARD ────────────────────────────────────────────────── */
.card {
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--clr-blue-100);
    transition: var(--ease-normal);
}

    .card:hover {
        border-color: var(--clr-blue-300);
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
    }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--clr-blue-100);
    border: none;
    margin: 0;
}

/* ── UTILITY ─────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
