/* ============================================================
   PROINTECA v3 — Design Tokens
   Dark Industrial Luxury Design System
   ============================================================ */

:root {
  /* ── Brand Colors ── */
  --color-orange: hsl(25, 100%, 50%);
  --color-orange-hsl: 25, 100%, 50%;
  --color-orange-light: hsl(25, 100%, 60%);
  --color-orange-dark: hsl(25, 100%, 40%);
  --color-orange-glow: hsla(25, 100%, 50%, 0.4);
  
  --color-blue: hsl(221, 56%, 31%);
  --color-blue-hsl: 221, 56%, 31%;
  --color-blue-light: hsl(221, 56%, 45%);
  --color-navy: hsl(218, 100%, 16%);
  --color-green: hsl(134, 44%, 36%);
  
  /* ── Brand Gradients ── */
  --gradient-brand: linear-gradient(135deg, var(--color-orange) 0%, hsl(35, 100%, 55%) 100%);
  --gradient-brand-soft: linear-gradient(135deg, hsla(25, 100%, 50%, 0.1) 0%, hsla(35, 100%, 55%, 0.1) 100%);

  /* ── Modal Settings ── */
  --modal-split: 60%; /* Left pane (Gallery) width */

  /* ── Background System (Navy Blue — NOT black) ── */
  --bg-primary: hsl(220, 42%, 15%);
  --bg-secondary: hsl(220, 38%, 19%);
  --bg-tertiary: hsl(220, 34%, 23%);
  --bg-card: hsla(220, 32%, 25%, 0.5);
  --bg-card-hover: hsla(220, 32%, 30%, 0.6);
  --bg-glass: hsla(220, 32%, 21%, 0.7);
  --bg-overlay: hsla(220, 42%, 10%, 0.92);

  /* ── Text ── */
  --text-primary: hsl(220, 15%, 96%);
  --text-secondary: hsl(220, 12%, 80%); /* Increased for contrast */
  --text-muted: hsl(220, 10%, 65%);     /* Increased for contrast */
  --text-inverse: hsl(220, 35%, 5%);

  /* ── Functional Colors ── */
  --accent-success: hsl(142, 70%, 45%);
  --accent-success-soft: hsla(142, 70%, 45%, 0.15);
  --accent-error: hsl(0, 84%, 60%);
  --accent-error-soft: hsla(0, 84%, 60%, 0.15);

  /* ── Accent ── */
  --accent: var(--color-orange);
  --accent-hover: var(--color-orange-light);
  --accent-glow: hsla(25, 100%, 54%, 0.25);
  --accent-glow-strong: hsla(25, 100%, 54%, 0.4);
  --accent-subtle: hsla(25, 100%, 54%, 0.08);

  /* ── Typography ── */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.375vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.5vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.15rem + 1.125vw, 2rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.75vw, 2.75rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 2.25vw, 3.75rem);
  --text-hero: clamp(2.75rem, 2rem + 3.75vw, 5.5rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  --tracking-tight: -0.03em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.12em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* ── Spacing (8pt grid) ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Radius ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px hsla(220, 40%, 3%, 0.35);
  --shadow-md: 0 8px 24px hsla(220, 40%, 3%, 0.45);
  --shadow-lg: 0 16px 48px hsla(220, 40%, 3%, 0.55);
  --shadow-xl: 0 24px 64px hsla(220, 40%, 3%, 0.65);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-glow-strong: 0 0 60px var(--accent-glow-strong);
  --shadow-inner: inset 0 2px 4px hsla(220, 40%, 3%, 0.3);

  /* ── Borders ── */
  --border-subtle: 1px solid hsla(0, 0%, 100%, 0.05);
  --border-default: 1px solid hsla(0, 0%, 100%, 0.08);
  --border-strong: 1px solid hsla(0, 0%, 100%, 0.14);
  --border-accent: 1px solid hsla(25, 100%, 54%, 0.25);
  --border-accent-strong: 2px solid hsla(25, 100%, 54%, 0.5);

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);

  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  --transition-fast: var(--duration-fast) var(--ease-in-out);
  --transition-base: var(--duration-base) var(--ease-in-out);
  --transition-slow: var(--duration-slow) var(--ease-out);
  --transition-spring: var(--duration-slow) var(--ease-spring);

  /* ── Z-Index ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-nav: 500;
  --z-max: 999;

  /* ── Layout ── */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 900px;
  --nav-height: 80px;
  --section-padding: clamp(4rem, 3rem + 5vw, 8rem);
}
