/*
 * HarnishTech design tokens
 * Single source of truth for colour, type, spacing, radius, elevation and motion.
 * Loaded by both the customer site and the admin / service-partner panel.
 */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
    /* Brand */
    --ht-primary: #0776c7;
    --ht-primary-hover: #0566ad;
    --ht-primary-active: #045894;
    --ht-primary-50: #eef6fd;
    --ht-primary-100: #d9ebf9;
    --ht-primary-200: #b3d6f2;
    --ht-primary-rgb: 7, 118, 199;

    --ht-navy: #10324a;
    --ht-navy-900: #0a2233;
    --ht-navy-700: #1b4663;

    --ht-accent: #f59e0b;
    --ht-accent-50: #fff7e6;

    /* Neutrals (slate) */
    --ht-gray-900: #0f172a;
    --ht-gray-800: #1e293b;
    --ht-gray-700: #334155;
    --ht-gray-600: #475569;
    --ht-gray-500: #64748b;
    --ht-gray-400: #94a3b8;
    --ht-gray-300: #cbd5e1;
    --ht-gray-200: #e2e8f0;
    --ht-gray-100: #f1f5f9;
    --ht-gray-50: #f8fafc;
    --ht-white: #ffffff;

    /* Semantic */
    --ht-success: #16a34a;
    --ht-success-50: #ecfdf3;
    --ht-warning: #d97706;
    --ht-warning-50: #fffbeb;
    --ht-danger: #dc2626;
    --ht-danger-50: #fef2f2;
    --ht-info: #0891b2;
    --ht-info-50: #ecfeff;

    /* Surfaces & text */
    --ht-bg: #f6f9fc;
    --ht-surface: var(--ht-white);
    --ht-border: var(--ht-gray-200);
    --ht-border-strong: var(--ht-gray-300);
    --ht-text: var(--ht-gray-900);
    --ht-text-muted: var(--ht-gray-500);
    --ht-text-soft: var(--ht-gray-600);

    /* Typography */
    --ht-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ht-fs-xs: 0.75rem;
    --ht-fs-sm: 0.875rem;
    --ht-fs-base: 1rem;
    --ht-fs-lg: 1.125rem;
    --ht-fs-xl: 1.25rem;
    --ht-fs-2xl: 1.5rem;
    --ht-fs-3xl: 1.875rem;
    --ht-fs-4xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    --ht-lh-tight: 1.2;
    --ht-lh-base: 1.6;

    /* Spacing (4px grid) */
    --ht-space-1: 0.25rem;
    --ht-space-2: 0.5rem;
    --ht-space-3: 0.75rem;
    --ht-space-4: 1rem;
    --ht-space-5: 1.25rem;
    --ht-space-6: 1.5rem;
    --ht-space-8: 2rem;
    --ht-space-10: 2.5rem;
    --ht-space-12: 3rem;
    --ht-space-16: 4rem;
    --ht-section-y: clamp(3rem, 2rem + 4vw, 5.5rem);

    /* Radius */
    --ht-radius-sm: 8px;
    --ht-radius: 12px;
    --ht-radius-lg: 16px;
    --ht-radius-xl: 24px;
    --ht-radius-pill: 999px;

    /* Elevation */
    --ht-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --ht-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --ht-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --ht-shadow-lg: 0 16px 32px -12px rgba(15, 23, 42, 0.18);
    --ht-ring: 0 0 0 4px rgba(var(--ht-primary-rgb), 0.16);

    /* Motion */
    --ht-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ht-duration: 180ms;

    /* Layout */
    --ht-container: 1240px;
    --ht-header-h: 72px;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --ht-duration: 0ms;
    }
}
