/* ==========================================================================
   NOVA ESTATE — Design System Tokens (assets/css/tokens.css)
   Direction: Luxury Editorial Real Estate (60% Light / 30% Navy / 10% Gold)
   All color contrasts verified against WCAG 2.1 AA standards.
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     1. COLOR PALETTE (60 / 30 / 10 Distribution)
     ------------------------------------------------------------------------ */

  /* 60% — Light Surfaces & Backgrounds */
  --bg-page: #FFFFFF;
  --bg-subtle: #F4F6F8;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-backdrop: rgba(11, 23, 38, 0.62);

  /* Structural Hairlines & Borders */
  --border-hairline: rgba(18, 36, 59, 0.10);
  --border-subtle: rgba(18, 36, 59, 0.16);
  --border-strong: rgba(18, 36, 59, 0.28);
  --border-gold: rgba(185, 154, 87, 0.42);

  /* 30% — Institutional Brand Navy */
  --brand-navy: #12243B;
  --brand-navy-deep: #0B1726;
  --brand-navy-soft: #1C3554;
  --brand-navy-tint: #EDF2F7;

  /* 10% — Luxury Accent Gold */
  --accent-gold: #B99A57;         /* Primary CTA background (paired with #12243B text) & dark-surface accents */
  --accent-gold-hover: #A38442;   /* Primary CTA hover state */
  --accent-gold-text: #856A2B;    /* Mandatory for small gold text/labels on light surfaces (WCAG AA >= 4.5:1) */
  --accent-gold-subtle: #FAF6EC;  /* Soft warm highlight background */

  /* Typography Hierarchy */
  --text-primary: #12243B;        /* Contrast vs #FFFFFF: 14.8:1 (AAA) */
  --text-secondary: #243B53;      /* Contrast vs #FFFFFF: 11.2:1 (AAA) */
  --text-muted: #52606D;          /* Contrast vs #FFFFFF: 6.3:1 (AA) */
  --text-inverse: #FFFFFF;        /* Primary text on Navy surfaces */
  --text-inverse-muted: #CBD5E1;  /* Muted text on Navy surfaces */

  /* Semantic Status Badges */
  --status-available-text: #15623A;
  --status-available-bg: #E8F5EE;
  --status-available-border: rgba(21, 98, 58, 0.22);

  --status-reserved-text: #8A5A00;
  --status-reserved-bg: #FEF4E0;
  --status-reserved-border: rgba(138, 90, 0, 0.24);

  --status-sold-text: #8F2424;
  --status-sold-bg: #FDECEC;
  --status-sold-border: rgba(143, 36, 36, 0.22);

  --status-purpose-text: #12243B;
  --status-purpose-bg: #EDF2F7;
  --status-purpose-border: rgba(18, 36, 59, 0.16);

  /* Accessible Keyboard Focus Ring */
  --focus-ring: 0 0 0 3px rgba(185, 154, 87, 0.48);

  /* ------------------------------------------------------------------------
     2. TYPOGRAPHY (Playfair Display + Inter + IBM Plex Sans Arabic)
     ------------------------------------------------------------------------ */
  --font-display: 'Playfair Display', 'IBM Plex Sans Arabic', Georgia, serif;
  --font-sans: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-numeric: 'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid Type Scale */
  --text-h1: clamp(2.15rem, 4.2vw, 3.6rem);
  --text-h2: clamp(1.6rem, 2.8vw, 2.4rem);
  --text-h3: clamp(1.25rem, 2vw, 1.6rem);
  --text-h4: clamp(1.08rem, 1.4vw, 1.25rem);
  --text-lg: 1.125rem;            /* 18px */
  --text-body: 1rem;              /* 16px */
  --text-sm: 0.875rem;            /* 14px */
  --text-xs: 0.75rem;             /* 12px */

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

  /* Line Heights */
  --lh-h1: 1.18;
  --lh-h2: 1.25;
  --lh-h3: 1.35;
  --lh-body-ar: 1.75;
  --lh-body-en: 1.60;

  /* Numeric Alignment */
  --numeric-spacing: tabular-nums;

  /* ------------------------------------------------------------------------
     3. SPACING & LAYOUT
     ------------------------------------------------------------------------ */
  --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 */

  --container-max: 1320px;
  --container-pad: clamp(1rem, 3.5vw, 2.5rem);
  --header-height: 80px;
  --drawer-width: min(420px, 92vw);

  /* ------------------------------------------------------------------------
     4. RADII, SHADOWS, ICONS & MOTION
     ------------------------------------------------------------------------ */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;              /* Maximum border radius for cards */
  --radius-pill: 9999px;          /* For circular icon buttons & filter chips only */

  /* Subtle Architectural Shadows */
  --shadow-xs: 0 1px 2px rgba(18, 36, 59, 0.04);
  --shadow-sm: 0 4px 14px rgba(18, 36, 59, 0.06);
  --shadow-md: 0 10px 28px rgba(18, 36, 59, 0.09);
  --shadow-drawer: 8px 0 32px rgba(11, 23, 38, 0.22);

  /* Standardized Icon Tokens */
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-smooth: 350ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-Index Scale */
  --z-header: 100;
  --z-backdrop: 200;
  --z-drawer: 210;
  --z-lightbox: 300;
}
