/* ==========================================================================
   VARIABLES.CSS
   CSS Custom Properties — Design Tokens for Premium Real Estate Template
   These defaults are overridden at runtime by JS reading config.json.
   ========================================================================== */

:root {
  /* ---- Brand Colors ---- */
  --color-primary: #1a365d;
  --color-primary-rgb: 26, 54, 93;
  --color-primary-light: #264a7a;
  --color-primary-dark: #112444;
  --color-secondary: #c8a960;
  --color-secondary-rgb: 200, 169, 96;
  --color-secondary-light: #d4bc7e;
  --color-secondary-dark: #b09247;
  --color-accent: #2d7d6f;
  --color-accent-rgb: 45, 125, 111;
  --color-accent-light: #3a9e8d;
  --color-accent-dark: #1f5b50;

  /* ---- Text & Background ---- */
  --color-text: #1a1a2e;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f6f3;
  --color-bg-dark: #0f1b2d;
  --color-border: #eeeeee;
  --color-border-light: #f0f0f0;

  /* ---- Typography ---- */
  --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', monospace;

  /* ---- Font Sizes (fluid) ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-md: 1.1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.25rem, 2vw, 1.5rem);
  --text-3xl: clamp(2rem, 4vw, 3rem);
  --text-4xl: clamp(2.5rem, 5vw, 4.5rem);

  /* ---- Spacing Scale ---- */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  --space-3xl: 12rem;

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --nav-height: 80px;

  /* ---- Border Radius ---- */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-primary: 0 4px 16px rgba(26, 54, 93, 0.25);
  --shadow-secondary: 0 4px 16px rgba(200, 169, 96, 0.25);

  /* ---- Transitions ---- */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-slower: 0.8s ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-Index Scale ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-nav: 1000;
  --z-mobile-menu: 1100;
  --z-access-modal: 1500;
  --z-lightbox: 2000;
  --z-toast: 3000;

  /* ---- Overlay ---- */
  --overlay-light: rgba(0, 0, 0, 0.3);
  --overlay-medium: rgba(0, 0, 0, 0.5);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-hero: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);

  /* ---- Line Heights ---- */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* ---- Letter Spacing ---- */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.15em;
}
