/* ============================================================
   DESIGN TOKENS — B2B Home Furnishing Brand
   Based on terraramai 10-color × 11-step model
   WCAG AA compliance rules embedded
   ============================================================ */

:root {
  /* ──────────────────────────────────────────────
     COLOR SYSTEM — 10 colors × 11 steps (50–950)
     ────────────────────────────────────────────── */

  /* Primary: Deep Blue-Gray — professional, reliable */
  --color-primary-50:  #EDF1F5;
  --color-primary-100: #D4DCE4;
  --color-primary-200: #B8C5D3;
  --color-primary-300: #9BAEC1;
  --color-primary-400: #7E97AF;
  --color-primary-500: #5A7A94;
  --color-primary-600: #476280;
  --color-primary-700: #374E68;
  --color-primary-800: #2C3E50;  /* Brand anchor */
  --color-primary-900: #1E2D3D;
  --color-primary-950: #111B26;

  /* Accent: Warm Gold — premium, custom craftsmanship */
  --color-accent-50:  #FCF8F0;
  --color-accent-100: #F5EBD5;
  --color-accent-200: #EDDDB8;
  --color-accent-300: #E2CC96;
  --color-accent-400: #D6BA78;
  --color-accent-500: #C9A96E;  /* Brand anchor */
  --color-accent-600: #B8955A;
  --color-accent-700: #9C7D4A;
  --color-accent-800: #7D643B;
  --color-accent-900: #5E4B2D;
  --color-accent-950: #3F321E;

  /* Secondary: Sage Green — natural, eco-friendly */
  --color-secondary-50:  #F0F5F1;
  --color-secondary-100: #D9E6DC;
  --color-secondary-200: #C1D6C6;
  --color-secondary-300: #A9C5B0;
  --color-secondary-400: #92B49A;
  --color-secondary-500: #7B9E87;  /* Brand anchor */
  --color-secondary-600: #648872;
  --color-secondary-700: #50705D;
  --color-secondary-800: #3E5849;
  --color-secondary-900: #2D4036;
  --color-secondary-950: #1C2923;

  /* Neutral: Gray scale */
  --color-neutral-50:  #F8F9FA;
  --color-neutral-100: #F1F3F5;
  --color-neutral-200: #E9ECEF;
  --color-neutral-300: #DEE2E6;
  --color-neutral-400: #CED4DA;
  --color-neutral-500: #ADB5BD;
  --color-neutral-600: #868E96;
  --color-neutral-700: #495057;
  --color-neutral-800: #343A40;
  --color-neutral-900: #212529;
  --color-neutral-950: #1A1A2E;

  /* Surface / Background tokens */
  --color-surface-white:    #FFFFFF;
  --color-surface-light:    var(--color-neutral-50);
  --color-surface-muted:    var(--color-neutral-100);
  --color-surface-dark:     var(--color-primary-900);
  --color-surface-darkest:  var(--color-primary-950);

  /* Success */
  --color-success-50:  #E8F5E9;
  --color-success-100: #C8E6C9;
  --color-success-500: #27AE60;
  --color-success-700: #1B7A43;
  --color-success-900: #0F4D29;

  /* Warning */
  --color-warning-50:  #FFF8E1;
  --color-warning-100: #FFECB3;
  --color-warning-500: #F39C12;
  --color-warning-700: #C17C0E;
  --color-warning-900: #7A4F09;

  /* Error */
  --color-error-50:  #FDECEB;
  --color-error-100: #FACBC8;
  --color-error-500: #E74C3C;
  --color-error-700: #B83A2E;
  --color-error-900: #731F18;

  /* ──────────────────────────────────────────────
     SEMANTIC COLOR ALIASES
     ────────────────────────────────────────────── */
  --color-text-heading:     var(--color-neutral-900);
  --color-text-body:        var(--color-neutral-700);
  --color-text-muted:       var(--color-neutral-600);   /* captions — mid-step */
  --color-text-eyebrow:     var(--color-primary-700);   /* eyebrow — deep step */
  --color-text-inverse:     var(--color-surface-white);
  --color-text-link:        var(--color-primary-700);
  --color-text-link-hover:  var(--color-primary-900);

  --color-border-default:   var(--color-neutral-300);
  --color-border-light:     var(--color-neutral-200);
  --color-border-focus:     var(--color-accent-500);

  --color-btn-primary-bg:         var(--color-accent-500);
  --color-btn-primary-bg-hover:   var(--color-accent-600);
  --color-btn-primary-text:       var(--color-surface-white);
  --color-btn-secondary-bg:       transparent;
  --color-btn-secondary-border:   var(--color-primary-700);
  --color-btn-secondary-text:     var(--color-primary-700);
  --color-btn-secondary-bg-hover: var(--color-primary-700);
  --color-btn-secondary-text-hover: var(--color-surface-white);

  /* ──────────────────────────────────────────────
     TYPOGRAPHY
     ────────────────────────────────────────────── */

  /* Font families */
  --font-heading:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font sizes — expanded & optimized for readability */
  --text-xs:    0.8125rem;  /* ~13.8px (microcopy, tags) */
  --text-sm:    0.9375rem;  /* ~16px (secondary text, labels, nav) */
  --text-base:  1.0625rem;  /* ~18px (primary body text, descriptions) */
  --text-lg:    1.25rem;    /* ~21.2px (subtitles, lead paragraphs) */
  --text-xl:    1.4375rem;  /* ~24.4px (card headings, h4) */
  --text-2xl:   1.75rem;    /* ~29.7px (section headings h3) */
  --text-3xl:   2.25rem;    /* ~38.2px (major titles h2) */
  --text-4xl:   2.875rem;   /* ~48.8px (hero h1, display titles) */
  --text-5xl:   3.75rem;    /* ~63.7px (large hero display) */
  --text-6xl:   4.5rem;     /* ~76.5px (editorial display) */

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

  /* Line heights */
  --leading-none:   1;
  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose:  2;

  /* Letter spacing */
  --tracking-tight:   -0.025em;
  --tracking-normal:  0;
  --tracking-wide:    0.025em;
  --tracking-wider:   0.05em;
  --tracking-widest:  0.1em;

  /* ──────────────────────────────────────────────
     SPACING — 4px base grid
     ────────────────────────────────────────────── */
  --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 */

  /* Section padding (vertical) */
  --section-pad-y:       var(--space-20);
  --section-pad-y-sm:    var(--space-12);

  /* ──────────────────────────────────────────────
     LAYOUT
     ────────────────────────────────────────────── */
  --container-max:     1280px;
  --container-pad:     var(--space-6);
  --grid-gap:          var(--space-8);
  --grid-gap-sm:       var(--space-4);

  /* Header */
  --header-height:     72px;
  --header-height-sm:  60px;

  /* ──────────────────────────────────────────────
     BREAKPOINTS (reference only — use in media queries)
     ────────────────────────────────────────────── */
  /* --bp-sm:   640px;   Mobile landscape */
  /* --bp-md:   768px;   Tablet portrait */
  /* --bp-lg:   1024px;  Tablet landscape / small desktop */
  /* --bp-xl:   1280px;  Desktop */
  /* --bp-2xl:  1536px;  Large desktop */

  /* ──────────────────────────────────────────────
     EFFECTS
     ────────────────────────────────────────────── */

  /* Border radius */
  --radius-sm:   0.25rem;   /* 4px */
  --radius-md:   0.5rem;    /* 8px */
  --radius-lg:   0.75rem;   /* 12px */
  --radius-xl:   1rem;      /* 16px */
  --radius-full: 9999px;

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

  /* Transitions */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-spring:  500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   WCAG AA COMPLIANCE RULES
   ============================================================
   1. Light steps (50–200): DO NOT use for text ≤ 16px
      - eyebrow text: use deep steps (700+)
      - caption text: use mid steps (500–600)
   2. All body text on white: use neutral-700+ or primary-800+
   3. Buttons: accent-500 on white meets 4.5:1 for large text;
      for small text use accent-700+ or white-on-accent-600+
   4. Links must be distinguishable from surrounding text
      (underline or 3:1 contrast difference from body text)
   ============================================================ */
