/*
Theme Name: Al-Salam Packaging Solutions
Theme URI: https://alsalam-pack.com/
Author: Antigravity Team
Author URI: https://alsalam-pack.com/
Description: A custom, high-performance, production-ready WordPress and WooCommerce theme developed exclusively for Al-Salam Packaging Solutions. Features native custom post types, custom product options, quote requests system, and pixel-perfect design matching the brand identity.
Version: 2.1.1
Text Domain: alsalam-packaging
Domain Path: /languages
Tags: custom-theme, woocommerce, rtl, accessibility-ready, e-commerce, portfolio
License: Proprietary
License URI: 
*/

/* 
 * ==============================================================================
 * DESIGN TOKENS (CSS Custom Properties)
 * ============================================================================== 
 */
:root {
	/* Colors */
	--alsalam-primary: #4a154b;
	--alsalam-primary-dark: #370f38;
	--alsalam-primary-light: #5f1d60;
	--alsalam-accent: #661e68;
	--alsalam-kraft: #d6b08a;
	--alsalam-kraft-light: #f2e3d3;
	--alsalam-background: #fafafa;
	--alsalam-surface: #ffffff;
	--alsalam-text: #333333;
	--alsalam-text-light: #666666;
	--alsalam-muted: #e0e0e0;
	--alsalam-border: #eaeaea;
	--alsalam-success: #25d366;
	--alsalam-warning: #f39c12;
	--alsalam-error: #e74c3c;

	/* Typography */
	--font-primary: 'Tajawal', sans-serif;
	
	/* Shadows */
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
	
	/* Border Radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-full: 9999px;

	/* Transitions */
	--transition-fast: 0.2s ease-in-out;
	--transition-normal: 0.3s ease-in-out;
	
	/* Container Widths */
	--container-width: 1200px;
	--container-padding: 1.5rem;
}

/* 
 * ==============================================================================
 * CSS RESET & BASE STYLES
 * ============================================================================== 
 */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	direction: rtl;
}

body {
	font-family: var(--font-primary);
	color: var(--alsalam-text);
	background-color: var(--alsalam-background);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* Prevent text-based CLS by ensuring font-display: swap behavior */
	text-rendering: optimizeSpeed;
}

/* Fluid Typography */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.3; font-weight: 700; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; font-weight: 700; }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 600; }
h5 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

a {
	color: var(--alsalam-primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover, a:focus {
	color: var(--alsalam-primary-dark);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	content-visibility: auto;
}

ul, ol {
	list-style: none;
}

/* Focus outline for accessibility */
:focus-visible {
	outline: 2px solid var(--alsalam-primary);
	outline-offset: 4px;
}

/* Layout Utilities */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* 
 * Rest of styles will be divided into modular CSS files inside assets/css 
 * and enqueued via functions.php to keep this file clean.
 */
