/*
Theme Name: GENCO Theme
Theme URI: https://genco-egypt.com
Author: GENCO Development Team
Author URI: https://genco-egypt.com
Description: Custom WordPress theme for GENCO For Specialist Works L.L.C — Fire Fighting & Fire Alarm Systems. Bilingual (AR/EN), RTL-first, dark/light mode.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: genco
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ========================================
   DESIGN TOKENS — CSS Custom Properties
   ======================================== */

:root {
  /* Design System Color Tokens */
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F1F6FF;
  --color-surface-glass: rgba(255,255,255,.78);
  --color-primary: #0B5ED7;
  --color-primary-hover: #0A4FC2;
  --color-primary-soft: #E7F0FF;
  --color-accent-red: #E53935;
  --color-text: #0A2540;
  --color-text-muted: #5B6B7F;
  --color-border: #E2E8F0;
  --color-whatsapp: #25D366;

  /* Design System Spacing Scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;

  /* Typography Fonts */
  --font-en: 'Poppins', 'Inter', sans-serif;
  --font-ar: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;

  /* Legacy Variables to prevent breaking existing components */
  --genco-blue-lighter: #CCE6F3;
  --genco-blue-light: #99C9E0;
  --genco-blue: #1A86C5;
  --genco-blue-rgb: 26, 134, 197;
  --genco-blue-dark: #117CB0;
  --genco-blue-darker: #075880;
  --genco-orange: #E95729;
  --genco-orange-rgb: 233, 87, 41;
  --genco-navy: #0A2342;
  --genco-navy-rgb: 10, 35, 66;
  --genco-black: #0E0E12;
  --genco-black-rgb: 14, 14, 18;
  --genco-steel: #2A3441;
  --genco-steel-rgb: 42, 52, 65;
  --genco-metallic: #6E7887;
  --genco-off-white: #FAFBFD;
  --genco-white: #FFFFFF;

  --font-primary: var(--font-ar);
  --ff-heading: var(--font-primary);
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-ar: 1.7;
  --lh-en: 1.6;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);
  --transition-theme: 400ms var(--ease-out);

  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 32px 70px rgba(15, 23, 42, 0.16);

  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  --container-max: 1320px; /* Updated to Desktop XL */
  --container-padding: 40px; /* Updated to Desktop XL */

  --header-height: 100px;
  --header-height-scrolled: 80px;

  /* Legacy Variables mapped to tokens */
  --genco-blue: var(--color-primary);
  --genco-blue-rgb: 30, 136, 255;
  --genco-navy: var(--color-text);
  --genco-white: var(--color-surface);
  --genco-text: var(--color-text);

  /* Legacy Light Mode mapped */
  --bg-primary: var(--color-bg);
  --bg-surface: var(--color-surface);
  --bg-surface-elevated: var(--color-surface);
  --bg-card: var(--color-surface);
  --bg-body: var(--color-bg);
  --text-primary: var(--color-text);
  --text-secondary: var(--color-text-muted);
  --text-muted: var(--color-text-muted);
  --text-color: var(--color-text);
  --text-color-muted: var(--color-text-muted);
  --text-heading: var(--color-text);
  --text-body: var(--color-text-muted);
  --border-color: var(--color-border);
}

html[lang="ar"] {
  --font-primary: var(--font-ar);
}

html[lang="en"] {
  --font-primary: var(--font-en);
}

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] {
  /* Design System Color Tokens */
  --color-bg: #050B14;
  --color-surface: #0B1220;
  --color-surface-soft: #111827;
  --color-surface-glass: rgba(255,255,255,.06);
  --color-primary: #1E88FF;
  --color-primary-hover: #3A9BFF;
  --color-primary-soft: rgba(30,136,255,.14);
  --color-accent-red: #FF3434;
  --color-text: #FFFFFF;
  --color-text-muted: #AAB7C7;
  --color-border: rgba(255,255,255,.12);
  --color-whatsapp: #25D366;

  /* Legacy Dark Mode mapped */
  --bg-primary: var(--color-bg);
  --bg-surface: var(--color-surface);
  --bg-surface-elevated: var(--color-surface-soft);
  --bg-card: var(--color-surface-soft);
  --bg-body: var(--color-bg);
  --text-primary: var(--color-text);
  --text-secondary: var(--color-text-muted);
  --text-muted: var(--color-text-muted);
  --text-color: var(--color-text);
  --text-color-muted: var(--color-text-muted);
  --text-heading: var(--color-text);
  --text-body: var(--color-text-muted);
  --border-color: var(--color-border);
  --genco-navy: var(--color-bg);
  --hero-bg: var(--color-bg);
  --card-bg: var(--color-surface-soft);
  --header-bg: var(--color-surface-glass);
  --mega-menu-bg: var(--color-surface);
  --footer-bg: var(--color-surface);
  --footer-text: var(--color-text-muted);
}
