/* =============================================================
   ARAFA CNC — GLOBAL CSS
   Colors, typography, reset, shared buttons, forms and utilities.
============================================================== */

:root {
    --primary: #ff5a0a;
    --primary-dark: #e84c00;
    --navy: #071d2d;
    --navy-2: #0f2a3d;
    --text: #10243d;
    --muted: #718096;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --border: #e1e7ed;
    --success: #22a447;
    --container: 1320px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow: 0 16px 42px rgba(9, 32, 51, .08);
    --font-main: 'Cairo', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-main); color: var(--text); background: var(--bg); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.site-main { min-height: 60vh; }
.section { padding: 78px 0; }
.section--soft { background: var(--bg-soft); }
.section-title { margin: 0 0 14px; font-size: clamp(30px, 4vw, 52px); line-height: 1.18; font-weight: 800; }
.section-title span { color: var(--primary); }
.section-lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.page-hero { padding: 82px 0; background: linear-gradient(135deg, #061826, #13364c); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 340px; height: 340px; border: 1px solid rgba(255,90,10,.35); transform: rotate(35deg); inset-inline-end: -120px; top: -100px; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(38px, 5vw, 64px); }
.page-hero p { margin: 0; color: rgba(255,255,255,.8); max-width: 760px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; border: 1px solid transparent; transition: .25s ease; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn--light { background: #fff; color: var(--navy); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.form-control { width: 100%; border: 1px solid var(--border); border-radius: 10px; min-height: 50px; padding: 0 14px; background: #fff; color: var(--text); }
textarea.form-control { min-height: 130px; padding-top: 14px; resize: vertical; }
.form-label { display: block; margin-bottom: 7px; font-weight: 700; }
.form-group { margin-bottom: 16px; }
.image-placeholder { min-height: 220px; border-radius: inherit; background: linear-gradient(135deg, #dfe6ec, #f8fafc); display: grid; place-items: center; color: #8a98a6; text-align: center; padding: 20px; }
.image-placeholder i { font-size: 44px; margin-bottom: 10px; color: var(--primary); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); display: inline-block; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .section { padding: 56px 0; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
}


/* =============================================================
   STATIC BILINGUAL HELPERS
============================================================== */
html[dir="ltr"] body { text-align: left; }
html[dir="rtl"] body { text-align: right; }
[data-lang-hide] { display: none !important; }
.static-note { padding: 10px 14px; border: 1px dashed var(--primary); background: #fff7f2; border-radius: 10px; color: var(--muted); font-size: 13px; }
.placeholder-note { font-size: 12px; color: #7b8794; margin-top: 8px; }
.page-title-accent { color: var(--primary); }
