/* ==========================================================================
   Design tokens (#257, #258): colours, type scale, spacing, z-index, radii,
   shadows, transitions. Loaded first on every page.
   ========================================================================== */

/* BREAKPOINTS (#257) - custom properties cannot go in @media, so these are
   the only widths. scripts/lint-changed.sh fails any other width on new lines.
     phone   @media (max-width: 480px)    / (min-width: 481px)
     tablet  @media (max-width: 768px)    / (min-width: 769px)
     desktop @media (max-width: 1200px)   / (min-width: 1201px)
   Older rules still use other widths; move them to these as each is touched. */

/* ==========================================================================
   1. CSS VARIABLES & ROOT STYLES - ELITE & EXCLUSIVE PALETTE
   Mood: Luxury, Sophistication, Exclusivity
   Primary: Deep Plum | Accent: Champagne Gold | Secondary: Rich Black
   ========================================================================== */

/* Google Fonts loaded async via wp_head (escortwp_child_preload_resources) to avoid render-blocking @import */

:root {
    /* PRIMARY BACKGROUNDS - Deep Plum Luxury */
    --primary-bg: #1a0f2e;           /* Deep Plum - main page background */
    --secondary-bg: #2a1b3d;         /* Rich Plum - secondary areas */
    --card-bg: #3d2857;              /* Medium Plum - content cards */
    --elevated-bg: #4a3166;          /* Lighter Plum - hover/elevation */
    
    /* BRAND COLORS - Champagne & Gold Accents */
    --champagne: #f4e8c1;            /* Soft Champagne - PRIMARY CTA COLOR */
    --champagne-dark: #d4c5a0;       /* Darker Champagne - hover variant */
    --gold: #d4af37;                 /* Rich Gold - premium highlights */
    --gold-light: #e6c55f;           /* Light Gold - subtle accents */
    --gold-opac: rgba(212, 175, 55, 0.3);
    --champagne-subtle: rgba(244, 232, 193, 0.05);
    
    /* SECONDARY COLORS - Black & Contrast */
    --black: #000000;                /* Pure Black - secondary elements */
    --black-rich: #0a0a0a;           /* Rich Black - deep contrast */
    --plum-accent: #c4a3e6;          /* Light Plum - links (WCAG AA compliant) */
    --plum-light: #d4b8f0;           /* Lighter Plum - hover states */
    /* LINK COLOURS - one per surface (#142):
       - Reading content (page/blog/profile body, breadcrumbs, FAQs): --gold
       - Site chrome + utilities (base `a`, footer, Advanced Search): --plum-accent
       - Chips and pill links (category/service chips, 404 cities): --champagne */
    
    /* NEUTRAL COLORS - Refined Whites & Grays */
    --white: #ffffff;
    --off-white: #faf9f6;            /* Warm white for text */
    --light-gray: #e8e4d9;           /* Warm light gray on dark backgrounds */
    --text-gray: #c9c0b0;            /* Body text on dark backgrounds */
    --text-muted: #b3a68f;           /* Muted text - 5.35:1 on --card-bg, 4.56:1 on --elevated-bg (AA, #142) */
    --text-primary: var(--off-white); /* Primary text color alias */
    --border-color: rgba(244, 232, 193, 0.15);
    
    /* ACCENT COLORS - Supporting Palette */
    --success: #1e7b4d;              /* Dark Green - WCAG AA compliant with white text */
    --error: #c44569;                /* Muted Red */
    --secondary: #6b4a94;            /* Lifted Plum (#142); no longer a button colour (#140) */
    --gradient-danger: linear-gradient(135deg, #c44569 0%, #a03050 100%);
    
    /* SHADOWS - Luxurious Depth */
    --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 12px rgba(212, 175, 55, 0.25);
    --shadow-champagne: 0 2px 8px rgba(244, 232, 193, 0.2);
    --shadow-glow-gold: 0 0 15px rgba(212, 175, 55, 0.35);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.4);
    
    /* GRADIENTS - Premium Effects */
    --gradient-plum: linear-gradient(135deg, #1a0f2e 0%, #2a1b3d 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e8c1 100%);
    --gradient-champagne: linear-gradient(135deg, #f4e8c1 0%, #d4c5a0 100%);
    --gradient-card: linear-gradient(145deg, #3d2857 0%, #2a1b3d 100%);
    /* SPACING SCALE (#257) - every padding, margin and gap uses one of these.
       Numbers are multiples of 4px. Don't add one-off values; pick the nearest. */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    /* Older fluid spacing (5 uses); prefer --space-* in new rules. */
    --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 1vw, 1rem);
    --spacing-md: clamp(1rem, 2vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 3vw, 2rem);
    --spacing-xl: clamp(2rem, 5vw, 3rem);
    
    /* BORDER RADIUS */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* TYPOGRAPHY */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    /* TYPE SCALE (#141) - every font-size in the child theme uses one of
       these. rem-based so browser text-size settings still apply. Don't add
       one-off sizes; pick the nearest step. 11px is the floor (badges, legal). */
    --fs-2xs: 0.6875rem;   /* 11px - badges, fine print */
    --fs-xs: 0.75rem;      /* 12px - meta, breadcrumbs, footer links */
    --fs-sm: 0.84375rem;   /* 13.5px - secondary UI text, nav, card names */
    --fs-base: 0.9375rem;  /* 15px - body copy */
    --fs-md: 1rem;         /* 16px - lead text, mobile form fields */
    --fs-lg: 1.125rem;     /* 18px - small headings */
    --fs-xl: 1.25rem;      /* 20px */
    --fs-2xl: 1.5rem;      /* 24px */
    --fs-3xl: 2rem;        /* 32px */
    --fs-4xl: 2.5rem;      /* 40px */
    --fs-5xl: 3rem;        /* 48px - homepage hero only */
    
    /* Z-INDEX SCALE (#257) - stack in this order; use the names, not numbers.
       Older rules still use raw numbers; move them as each is touched. */
    --z-base: 1;          /* lifted above siblings (badges, card overlays) */
    --z-dropdown: 100;    /* menus, autocomplete, filter panels */
    --z-sticky: 200;      /* sticky header and bars */
    --z-overlay: 1000;    /* backdrops, mobile nav drawer */
    --z-modal: 10000;     /* dialogs and lightboxes */
    --z-age-gate: 100000; /* age verification, above everything */

    /* TRANSITIONS */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}
