/**
 * tokens.css
 * Core design tokens and CSS variable declarations.
 * Srushti Solutions Revamp — Restrained Brand Red & Gold with Charcoal text & Warm Ivory surfaces.
 * NOTE: As per design constraints, Charcoal (#262523) is strictly reserved for text and button backgrounds, NEVER for container/section backgrounds.
 *
 * @package Srushti_Theme
 */

:root {
  /* ─────────────────────────────────────────────
     1. BASE PALETTE & BACKGROUND SURFACES
     (Stark White & Warm Ivory Canvas — NEVER Charcoal)
     ───────────────────────────────────────────── */
  --color-warm-ivory:        #F5F2EC;    /* Warm neutral background canvas */
  --color-void:              #FAFAFB;    /* Stark clean void */
  --color-midnight:          #FFFFFF;    /* Primary page background */
  --color-surface-1:         #FFFFFF;    /* Clean card base surface */
  --color-surface-2:         #F5F2EC;    /* Warm ivory card/panel surface */
  --color-surface-3:         #EAE6DE;    /* Subtle hover / active surface */
  --color-overlay:           rgba(38, 37, 35, 0.60); /* Modal / dialog backdrop */

  /* ─────────────────────────────────────────────
     2. BRAND COLOR TOKENS
     ───────────────────────────────────────────── */
  /* Brand Red (Primary CTAs, Emphasis & Highlights) */
  --color-brand-red:         #B72D31;    /* Blueprint Brand Red */
  --color-brand-red-bright:  #D1373C;    /* Bright Hover Red */
  --color-brand-red-dim:     #8F1F23;    /* Deep Red Accent */
  --color-brand-red-glow:    transparent; /* Neon glow removed */

  /* Brand Gold (Premium Accents & Badges) */
  --color-brand-gold:        #C6A15B;    /* Blueprint Brand Gold */
  --color-brand-gold-bright: #D8B570;    /* Bright Gold Accent */
  --color-brand-gold-dim:    #9A7836;    /* Deep Gold Accent */
  --color-brand-gold-glow:   transparent; /* Neon glow removed */

  /* Charcoal (STRICT RULE: ONLY FOR TEXT & BUTTON BACKGROUNDS — NEVER FOR CONTAINER/SECTION BG) */
  --color-charcoal:          #262523;    /* Blueprint Charcoal for text and button backgrounds */
  --color-charcoal-hover:    #3D3B38;    /* Charcoal Hover state for buttons */
  --color-brand-charcoal:    #262523;    /* Alias mapped to #262523 */
  --color-brand-black:       #181716;    /* Deep contrast text/accent */
  --color-brand-dark-grey:   #2E2C29;

  /* Layout Hairline Borders */
  --color-border-tech:       rgba(183, 45, 49, 0.18);  /* Subtle red hairline border */
  --color-border-subtle:     rgba(38, 37, 35, 0.10);   /* Warm hairline border */
  --color-border-gold:       rgba(198, 161, 91, 0.30); /* Subtle gold hairline border */

  /* Clean Solid Surfaces (Glass effects removed globally) */
  --glass-base:              #FFFFFF;
  --glass-hover:             #FFFFFF;
  --glass-active:            #FFFFFF;
  --glass-border:            rgba(38, 37, 35, 0.10);
  --glass-border-glow:       transparent;

  /* Backdrop Blur values — Removed */
  --blur-sm:  none;
  --blur-md:  none;
  --blur-lg:  none;
  --blur-xl:  none;

  /* Legacy Aliases gracefully mapped to new palette */
  --neon-gold:        var(--color-brand-gold);
  --neon-gold-bright: var(--color-brand-gold-bright);
  --neon-gold-dim:    var(--color-brand-gold-dim);
  --neon-gold-glow:   transparent;

  --neon-red:         var(--color-brand-red);
  --neon-red-bright:  var(--color-brand-red-bright);
  --neon-red-dim:     var(--color-brand-red-dim);
  --neon-red-glow:    transparent;

  --neon-teal:        var(--color-brand-gold);
  --neon-teal-bright: var(--color-brand-gold-bright);
  --neon-teal-glow:   transparent;

  /* ─────────────────────────────────────────────
     3. TYPOGRAPHY COLORS (High Contrast Charcoal & Neutrals)
     ───────────────────────────────────────────── */
  --text-primary:     var(--color-charcoal); /* Charcoal text for primary headings and strong text */
  --text-secondary:   #4E4C48;               /* Softer charcoal for readable body copy */
  --text-tertiary:    #78756F;               /* Muted text for captions/metadata */
  --text-inverse:     #FFFFFF;               /* Light text for button labels and badges */
  --text-gold:        var(--color-brand-gold);
  --text-red:         var(--color-brand-red);

  /* ─────────────────────────────────────────────
     4. TYPOGRAPHY & FONT FAMILIES
     ───────────────────────────────────────────── */
  --font-display: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ─────────────────────────────────────────────
     5. SPACING SCALE (8px base as per revamp.md blueprint)
     Scale: 8, 16, 24, 32, 48, 64, 96 px
     ───────────────────────────────────────────── */
  --space-1:  4px;  
  --space-2:  8px;  
  --space-3:  12px;
  --space-4:  16px; 
  --space-5:  20px; 
  --space-6:  24px;
  --space-8:  32px; 
  --space-10: 40px; 
  --space-12: 48px;
  --space-16: 64px; 
  --space-20: 80px; 
  --space-24: 96px;
  --space-32: 128px;

  /* ─────────────────────────────────────────────
     6. LAYOUT DIMENSIONS & GRIDS
     Desktop: 1440px frame, 1200px max content width, 24px gutter
     Mobile: 390px frame, 20px side margin
     ───────────────────────────────────────────── */
  --frame-desktop:      1440px;
  --content-max-width:  1200px;
  --gutter-desktop:     24px;
  --frame-mobile:       390px;
  --margin-mobile:      20px;

  /* ─────────────────────────────────────────────
     7. BORDER RADIUS (Restrained Modern Architecture)
     ───────────────────────────────────────────── */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   16px;
  --radius-pill: 9999px;
  --radius-full: 50%;

  /* ─────────────────────────────────────────────
     8. MOTION TIMING & EASING
     ───────────────────────────────────────────── */
  --duration-fast:    100ms;
  --duration-normal:  200ms;
  --duration-slow:    350ms;
  --duration-crawl:   500ms;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);

  /* ─────────────────────────────────────────────
     9. Z-INDEX HIERARCHY
     ───────────────────────────────────────────── */
  --z-base:    0;
  --z-raise:   10;
  --z-float:   100;
  --z-sticky:  500;
  --z-nav:     1000;
  --z-modal:   2000;
  --z-toast:   3000;
  --z-loader:  9999;
}
