/**
 * Design tokens — Open.Enabel
 * Only :root custom properties, no selectors.
 */

:root {
    /* Enabel Brand Colors */
    --color-primary: #0096BE;
    --color-primary-light: #33AACF;
    --color-primary-dark: #007A9C;
    /* Accessible cyan for TEXT and text-bearing fills only (WCAG 1.4.3).
       #0096BE on white / white on #0096BE = 3.44:1 (fails AA text). These
       darker shades pass 4.5:1 both ways. Keep --color-primary for decorative
       surfaces (borders, icons, focus rings) where the 3:1 UI threshold holds. */
    --color-primary-text: #00708F;       /* 5.6:1 on white — links, .text-primary, badge, btn fill */
    --color-primary-text-hover: #005266;  /* 8.7:1 — hover/active state */
    --color-primary-gradient: linear-gradient(135deg, #0096BE 0%, #066649 100%);

    /* Secondary Colors */
    --color-secondary: #066649;
    --color-accent: #7BDCB5;
    --color-navy: #012D3A;
    --color-navy-light: #014456;
    --color-warning: #F59E0B;
    --color-danger: #af2424;
    --color-info: #0096BE;
    --color-success: #066649;

    /* Neutrals (slate scale, aligned with mockup) */
    --color-bg-light: #F3F4F6;
    --color-bg-subtle: #FBFCFD;
    --color-bg-card: #FFFFFF;
    --color-bg-hero: linear-gradient(135deg, #012D3A 0%, #0096BE 100%);
    --color-text-primary: #1E293B;
    --color-text-secondary: #475569;
    /* slate-500 — one step lighter than text-secondary, still ≥4.5:1 on the
       white/subtle backgrounds. Use for de-emphasised labels that must stay
       visibly lighter than their value while clearing WCAG 1.4.3 AA. */
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;

    /* Status — only the buckets that ProjectRepository::PUBLIC_STATUS_BUCKETS
       can produce (ongoing / completed / suspended). */
    --status-ongoing: #0096BE;
    --status-completed: #066649;
    --status-suspended: #F59E0B;

    /* Bootstrap overrides */
    --bs-primary: #0096BE;
    --bs-primary-rgb: 0, 150, 190;
    --bs-secondary: #066649;
    --bs-secondary-rgb: 6, 102, 73;
    --bs-success: #066649;
    --bs-success-rgb: 6, 102, 73;
    --bs-warning: #F59E0B;
    --bs-warning-rgb: 245, 158, 11;
    --bs-danger: #af2424;
    --bs-danger-rgb: 175, 36, 36;
    --bs-info: #0096BE;
    --bs-info-rgb: 0, 150, 190;

    /* Layout */
    --navbar-height: 5.2rem;
    /* How much the first content section slides up over the hero (rounded card
       overlap). Shared by the hero height so this overlap sits exactly at the
       fold and doesn't peek into the initial viewport. */
    --home-section-overlap: 2.5rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;

    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
}
