/*
 Theme Name:   MSM Training Theme
 Theme URI:    https://msm-training.com
 Author:       MSM Development Team
 Author URI:   https://msm-training.com
 Description:  Professional custom theme for MSM Training Center — bilingual (EN/AR), Elementor compatible, Polylang integrated.
 Version:      1.0.0
 License:      GPL-2.0+
 License URI:  http://www.gnu.org/licenses/gpl-2.0.txt
 Text Domain:  msm-theme
 Requires at least: 6.0
 Requires PHP: 7.4
 Tags:         education, bilingual, rtl-language-support, custom-logo, custom-menu, featured-images
*/

/* === DESIGN TOKENS === */
:root {
    --msm-primary: #073606;
    --msm-primary-light: #0a5209;
    --msm-primary-dark: #052804;
    --msm-primary-rgb: 7, 54, 6;
    --msm-accent: #1a8917;
    --msm-accent-light: #e8f5e9;
    --msm-gold: #c5a55a;

    --msm-bg: #ffffff;
    --msm-bg-alt: #f8faf8;
    --msm-bg-section: #f5f7f5;

    --msm-text: #1a1a1a;
    --msm-text-light: #4a4a4a;
    --msm-text-muted: #888888;

    --msm-border: #e5e7e5;
    --msm-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --msm-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --msm-radius: 8px;
    --msm-radius-lg: 16px;

    --msm-font-en: 'Roboto', sans-serif;
    --msm-font-ar: 'Tajawal', sans-serif;
    --msm-font: var(--msm-font-en);

    --msm-transition: all 0.3s ease;
    --msm-header-height: 80px;
}

/* Arabic mode */
html[lang="ar"] :root,
html[dir="rtl"] :root {
    --msm-font: var(--msm-font-ar);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--msm-font);
    color: var(--msm-text);
    background: var(--msm-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--msm-primary); text-decoration: none; transition: var(--msm-transition); }
a:hover { color: var(--msm-accent); }

h1, h2, h3, h4, h5, h6 {
    color: var(--msm-text);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; color: var(--msm-text-light); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === SCREEN READER === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
