/**
 * CSS Custom Properties (Variables)
 * Centralized design tokens for the Neffy UK website
 */

:root {
  /* Color System - Primary */
  --primary-blue: #334D9E;
  --primary-blue-light: #3d5bab;
  --primary-blue-dark: #2a3e82;
  --primary-blue-hover: #15224e;
  --primary-blue-alpha: rgba(51, 77, 158, 0.1);

  /* Color System - Neutral */
  --color-white: #ffffff;
  --color-black: #00000c;
  --color-gray-50: #fafafa;
  --color-gray-100: #f9f9f9;
  --color-gray-200: #e3e7f0;
  --color-gray-300: #cecece;
  --color-gray-400: #727f9f;
  --color-gray-500: #35415b;
  --color-gray-600: #251e30;
  --color-gray-700: #0e193e;
  --color-gray-800: #0f131f;

  --font-color-black: rgb(0, 0, 12);

  /* Color System - Semantic */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Color System - Gradients */
  --gradient-primary: linear-gradient(69.03deg, #344E9D 0%, #243671 22%, #141F45 46%, #090E26 68%, #020312 87%, #00000C 100%);
  --gradient-footer: linear-gradient(254.85deg, #334D9E 0%, #243671 22%, #141F45 46%, #090E26 68%, #020312 87%, #00000C 100%);
  --gradient-footer-bottom: linear-gradient(268.03deg, #334D9E 0%, #243671 22%, #141F45 46%, #090E26 68%, #020312 87%, #00000C 100%);

  /* Typography - Using centralized font configuration */
  /* Font families are now defined in fonts.css for better maintainability */

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font Sizes - Mobile First */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2rem;      /* 32px */
  --font-size-5xl: 3rem;      /* 48px */
  --font-size-6xl: 4rem;      /* 64px */


  /* Line Heights */
  --line-height-tight: 1.25;   /* 20px for 16px font-size */
  --line-height-normal: 1.5;   /* 24px for 16px font-size */
  --line-height-relaxed: 1.75; /* 28px for 16px font-size */
   --line-height-hero: 1.5;     /* 72px/48px */

  /* Letter Spacing */
  --letter-spacing-tight: -0.96px; /* For hero titles */
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;

  /* Hero Typography (matching original computed values) */
  --hero-title-font-size: 48px;
  --hero-title-line-height: 72px;
  --hero-title-font-weight: 500;
  --hero-title-letter-spacing: -0.96px;
  --hero-title-margin-bottom: 38px;

  /* Regular Section Title Typography (H2) */
  --section-title-font-size: 42px;
  --section-title-line-height: 56px;
  --section-title-font-weight: 425;
  --section-title-letter-spacing: 0em;
  --section-title-margin-bottom: 36px;
  --section-title-color: var(--primary-blue);
  --section-title-text-align: left;

  /* H3 Typography (from computed styles) */
  --h3-font-family: var(--font-family-heading);
  --h3-font-size: 32px;
  --h3-line-height: 42px;
  --h3-font-weight: 500;
  --h3-letter-spacing: 0em;
  --h3-margin-bottom: 32px;

  /* Hero Content Typography */
  --hero-content-font-size: 18px;
  --hero-content-line-height: 24px;
  --hero-content-font-weight: 400;
  --hero-content-color: #fafafa; /* rgb(250, 250, 250) */

  /* Hero Content Typography for order sub-page */
  --hero-content-order-font-size: 20px;
  --hero-content-order-font-weight: 500;

  /* Body Text Typography (matching original) */
  --body-text-font-size: 18px;
  --body-text-line-height: 24px;
  --body-text-font-weight: 300;
  --body-text-color: var(--color-gray-600);

  /* Small Text Typography */
  --small-text-font-size: 14px;
  --small-text-line-height: 20px;
  --small-text-font-weight: 400;

  /* Caption Text Typography */
  --caption-font-size: 12px;
  --caption-line-height: 16px;
  --caption-font-weight: 400;
  --caption-color: rgba(250, 250, 250, 0.8);

  /* Button Text Typography */
  --button-font-size: 16px;
  --button-line-height: 20px;
  --button-font-weight: 500;

  /* Navigation Text Typography */
  --nav-font-size: 16px;
  --nav-line-height: 24px;
  --nav-font-weight: 500;

  /* Spacing System - 8px base unit */
  --space-0: 0;
  --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 */
  --space-32: 8rem;     /* 128px */

  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-base: 0.5rem;  /* 8px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-form: 0px 1px 4px 0px rgba(18, 25, 97, 0.08);

  /* Breakpoints (for reference, used in media queries) */
  --breakpoint-mobile: 600px;
  --breakpoint-tablet: 1024px;
  --breakpoint-desktop: 1380px;

  /* Layout */
  --container-max-width: 1300px;
  --content-max-width: 1200px;
  --sidebar-width: 25%;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1010;
  --z-fixed: 1020;
  --z-modal-backdrop: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-colors: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  --transition-transform: transform 0.2s ease;
  --transition-opacity: opacity 0.2s ease;
  --transition-all: all 0.2s ease;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Add dark mode variables if needed */
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0s;
    --transition-base: 0s;
    --transition-slow: 0s;
    --transition-colors: none;
    --transition-transform: none;
    --transition-opacity: none;
    --transition-all: none;
  }
}
