/*
Theme Name: Automate Industries
Theme URI: https://automate.com.pk/
Author: Automate Industries (Pvt) Ltd Engineering & IT Division
Author URI: https://automate.com.pk/
Description: Bespoke corporate WordPress theme engineered for Automate Industries (Pvt) Ltd — Pakistan's premier Tier-1 Automotive Infotainment, AVN and Audio OEM Supplier. Features light & dark industrial styling with seamless mode switcher, dynamic customer complaint portal with AI triage, structured 3S dealer directory, and automated operations telemetry.
Version: 1.1.7
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://automate.com.pk/terms/
Text Domain: automate-theme
Tags: automotive, industrial, oem, complaint-portal, tier-1, dark-mode, light-mode, theme-toggle, custom-post-types
*/

/* Core Theme Entrypoint & Variables: Light Mode (DEFAULT) */
:root,
[data-theme="light"] {
  /* Semantic Background Tokens */
  --bg-page: #f7f9fc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-elevated-2: #e2e8f0;
  --bg-surface-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.95);
  --bg-header-scrolled: rgba(255, 255, 255, 0.98);
  --bg-top-bar: #edf2f7;
  --bg-footer: #f1f5f9;
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;

  /* Typography Colors */
  --color-text-main: #1e293b;
  --color-text-heading: #0f172a;
  --color-text-muted: #5b6472;
  --color-text-dim: #717d90;

  /* Borders & Dividers */
  --color-border: #e2e6ec;
  --color-border-strong: #cbd5e1;
  --color-border-glow: rgba(2, 132, 199, 0.25);

  /* Brand Accents */
  --color-accent-blue: #0284c7;
  --color-accent-blue-hover: #0369a1;
  --color-accent-cyan: #0284c7; /* Contrast-adjusted for light theme readability */
  --color-accent-glow: rgba(2, 132, 199, 0.12);
  --color-accent-red: #e11d48;
  --color-success: #10b981;
  --color-warning: #d97706;

  /* Shadows */
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-elevation: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
  --shadow-cyan-glow: 0 0 20px rgba(2, 132, 199, 0.18);

  /* Legacy Dynamic Mapping */
  --color-obsidian: var(--bg-page);
  --color-slate-dark: var(--bg-surface);
  --color-surface-1: var(--bg-surface-elevated);
  --color-surface-2: var(--bg-surface-elevated-2);
  --color-surface-card: var(--bg-surface-card);
  --color-metallic: var(--color-text-main);
  --color-silver-muted: var(--color-text-muted);
  --color-silver-dim: var(--color-text-dim);

  /* Typography Families & Layout Constants */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --theme-transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  /* Semantic Background Tokens */
  --bg-page: #080d19;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162036;
  --bg-surface-elevated-2: #1e2b47;
  --bg-surface-card: rgba(22, 32, 54, 0.85);
  --bg-header: rgba(8, 13, 25, 0.96);
  --bg-header-scrolled: rgba(8, 13, 25, 0.98);
  --bg-top-bar: rgba(11, 19, 37, 0.95);
  --bg-footer: #060a13;
  --bg-input: rgba(15, 23, 42, 0.8);
  --bg-input-focus: rgba(22, 32, 54, 0.95);

  /* Typography Colors */
  --color-text-main: #e2e8f0;
  --color-text-heading: #ffffff;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  /* Borders & Dividers */
  --color-border: rgba(148, 163, 184, 0.16);
  --color-border-strong: rgba(148, 163, 184, 0.3);
  --color-border-glow: rgba(56, 189, 248, 0.3);

  /* Brand Accents */
  --color-accent-blue: #0284c7;
  --color-accent-blue-hover: #38bdf8;
  --color-accent-cyan: #38bdf8;
  --color-accent-glow: rgba(56, 189, 248, 0.15);
  --color-accent-red: #e11d48;
  --color-success: #10b981;
  --color-warning: #f59e0b;

  /* Shadows */
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-elevation: 0 12px 36px -4px rgba(2, 6, 23, 0.7);
  --shadow-cyan-glow: 0 0 25px rgba(56, 189, 248, 0.25);

  /* Legacy Dynamic Mapping */
  --color-obsidian: #080d19;
  --color-slate-dark: #0f172a;
  --color-surface-1: #162036;
  --color-surface-2: #1e2b47;
  --color-surface-card: rgba(22, 32, 54, 0.85);
  --color-metallic: #e2e8f0;
  --color-silver-muted: #94a3b8;
  --color-silver-dim: #64748b;
}
