/* ==========================================================================
   FitCheck Design Tokens
   Single source of truth for all design values.
   ========================================================================== */

:root {
  /* --------------------------------------------------------------------------
     Colors — Core
     -------------------------------------------------------------------------- */
  --color-bg-primary: #FAFAF8;       /* Soft cream, main background */
  --color-bg-secondary: #FFFFFF;     /* Card/surface white */
  --color-bg-tertiary: #F5F5F3;     /* Alternate section background */
  --color-text-primary: #2C2C2C;    /* Soft charcoal, headings & body */
  --color-text-secondary: #8C857E;  /* Warm grey, secondary text */
  --color-text-muted: #B8A99A;      /* Taupe, labels & hints */
  --color-border: #E5E5E5;          /* Standard border */
  --color-border-subtle: #F5F5F5;   /* Light dividers */

  /* --------------------------------------------------------------------------
     Colors — Brand
     -------------------------------------------------------------------------- */
  --color-brand-primary: #B8A99A;   /* Taupe */
  --color-brand-accent: #D9D0C7;    /* Warm beige */
  --color-brand-dark: #2C2C2C;      /* Charcoal, CTAs */

  /* --------------------------------------------------------------------------
     Colors — Semantic
     -------------------------------------------------------------------------- */
  --color-success: #A3BCA3;         /* Soft sage */
  --color-error: #D4A3A3;           /* Soft rose */
  --color-warning: #E5DCD3;         /* Warm beige */
  --color-info: #A3B5C4;            /* Soft slate blue */

  /* --------------------------------------------------------------------------
     Colors — Legacy Aliases
     Backward compatibility with existing var(--primary-color) references.
     -------------------------------------------------------------------------- */
  --primary-color: var(--color-brand-primary);
  --accent-color: var(--color-brand-accent);
  --dark-color: var(--color-brand-dark);
  --dark-grey-color: var(--color-text-secondary);
  --grey-color: var(--color-text-muted);
  --light-color: var(--color-bg-secondary);
  --accent-dim-color: #E5DCD3;
  --accent-lighted-color: rgba(217, 208, 199, 0.5);
  --accent-lit-color: #F2EBE4;
  --primary-lighted-color: rgba(184, 169, 154, 0.9);
  --primary-color: var(--color-brand-primary);
  --swiper-theme-color: var(--color-brand-dark) !important;

  /* --------------------------------------------------------------------------
     Typography
     -------------------------------------------------------------------------- */
  --font-body: "Outfit", sans-serif;
  --font-heading: "Lora", serif;

  /* Legacy aliases */
  --body-font: var(--font-body);
  --heading-font: var(--font-heading);

  /* Modular scale (1.25 ratio) */
  --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.563rem;   /* 25px */
  --text-3xl: 1.953rem;   /* 31px */
  --text-4xl: 2.441rem;   /* 39px */

  /* Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line heights */
  --line-height-tight: 1.3;
  --line-height-normal: 1.6;

  /* Letter spacing */
  --letter-spacing-tight: -0.2px;
  --letter-spacing-normal: 0.2px;

  /* --------------------------------------------------------------------------
     Spacing (4px base grid)
     -------------------------------------------------------------------------- */
  --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 */

  /* --------------------------------------------------------------------------
     Border Radii
     -------------------------------------------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* --------------------------------------------------------------------------
     Shadows
     -------------------------------------------------------------------------- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.06);

  /* --------------------------------------------------------------------------
     Transitions
     -------------------------------------------------------------------------- */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;

  /* --------------------------------------------------------------------------
     Header
     -------------------------------------------------------------------------- */
  --header-height: 160px;
  --header-height-min: 80px;
}

/* Mobile header override */
@media screen and (max-width: 600px) {
  :root {
    --header-height: 100px;
    --header-height-min: 80px;
  }
}

/* Breakpoint reference (CSS custom properties cannot be used in media queries):
   --bp-mobile:  480px
   --bp-tablet:  768px
   --bp-desktop: 1024px
   --bp-wide:    1400px
*/
