/* ========================================
   DESIGN TOKENS - Pravaklima Klimatske Naprave
   ======================================== */

:root {
  /* === COLORS - Premium 2026 Palette === */

  /* Primary - Fresh Green */
  --color-primary: #51a685;
  --color-primary-hover: #448f72;
  --color-primary-light: rgba(81, 166, 133, 0.1);
  --color-primary-50: #f0fdf4;
  --color-primary-100: #dcfce7;
  --color-primary-200: #bbf7d0;
  --color-primary-300: #86efac;
  --color-primary-400: #79d190;
  --color-primary-500: #51a685;
  --color-primary-600: #448f72;
  --color-primary-700: #3d8b6a;
  --color-primary-glow: rgba(81, 166, 133, 0.4);
  --color-primary-rgb: 81, 166, 133;

  /* Secondary - Rich Purple */
  --color-secondary: #7a00df;

  /* Backgrounds */
  --color-background: #ffffff;
  --color-surface: #f8faf9;
  --color-surface-alt: #f0f4f2;

  /* Text */
  --color-text: #0f172a;
  --color-text-muted: #4b5563; /* Darker for WCAG AA (4.5:1+) */
  --color-text-inverse: #ffffff;

  /* Borders */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Success/Error states */
  --color-success: #10b981;
  --color-error: #dc2626;
  --color-rating: #fbbf24;
  --color-primary-text: #2d7a5a;
  --color-text-footer-muted: rgba(255, 255, 255, 0.6);

  /* Button gradient (from pravaklima.si) */
  --color-btn-gradient: linear-gradient(90deg, rgb(96, 149, 226) 0%, rgb(54, 88, 167) 100%);
  --color-btn-gradient-hover: linear-gradient(90deg, rgb(86, 139, 216) 0%, rgb(44, 78, 157) 100%);

  /* === GLASS MORPHISM === */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);

  /* === TYPOGRAPHY === */
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;

  /* Font sizes */
  --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 */

  /* Font weights */
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line heights */
  --leading-tight: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* === SPACING === */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */

  /* Section spacing */
  --section-padding-y: 5rem;
  --section-padding-y-lg: 7rem;

  /* Container */
  --container-max-width: 1200px;
  --container-padding-x: 1.5rem;

  /* === BORDER RADIUS === */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* === SHADOWS - Multi-layer Premium System === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Premium 4-layer card shadows */
  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.03),
    0 8px 16px rgba(0, 0, 0, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.02);

  --shadow-card-hover:
    0 2px 4px rgba(16, 185, 129, 0.04),
    0 8px 16px rgba(16, 185, 129, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.06);

  /* === TRANSITIONS === */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* === PREMIUM EASING CURVES === */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === ACCESSIBILITY === */
  --focus-ring: 0 0 0 3px var(--color-primary-glow);
  --min-target-size: 44px; /* WCAG 2.2 recommended */

  /* === Z-INDEX === */
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
}

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

/* Mobile: reduced section padding */
@media (max-width: 640px) {
  :root {
    --section-padding-y: 3rem;
    --section-padding-y-lg: 4rem;
  }
}
