/*!
 * File: /public/assets/css/om-ui.css
 * المرحلة 10 (2026-12-05): الهوية البصرية الموحدة (التصميم الجديد المعتمد)
 * - سلم الخطوط والمسافات والأزرار والعناوين وحركة الظهور عند التمرير والبطاقات التي تُسحب أفقياً على الجوال.
 * - القائمة المنسدلة للخدمات في الشريط العلوي، وحالة الشريط عند التمرير.
 * - كل الكلاسات تبدأ بـ om- حتى لا تتعارض مع Bootstrap أو تنسيقات الصفحات الحالية.
 * - الألوان المعتمدة فقط: #082347 #0d3a6f #2b8def #f4f7fb #dce4f0 #ffffff
 */
:root {
    --om-navy: #082347;
    --om-navy2: #0d3a6f;
    --om-blue: #2b8def;
    --om-bg: #f4f7fb;
    --om-line: #dce4f0;
    --om-white: #ffffff;
    --om-muted: rgba(8, 35, 71, 0.68);
    --om-r-sm: 10px;
    --om-r: 16px;
    --om-r-lg: 24px;
    --om-shadow: 0 10px 30px rgba(8, 35, 71, 0.08);
    --om-shadow-lg: 0 24px 60px rgba(8, 35, 71, 0.16);
    --om-ease: cubic-bezier(.2, .7, .2, 1);
}

.om-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- العناوين والنصوص ---------- */
.om-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--om-blue); }
.om-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--om-blue); border-radius: 2px; }
.om-on-dark .om-eyebrow { color: #fff; }
.om-h-display { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.25; font-weight: 800; margin: 0; }
.om-h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.38; font-weight: 700; color: var(--om-navy); margin: 8px 0 0; }
.om-on-dark .om-h2 { color: #fff; }
.om-h3 { font-size: 1.15rem; line-height: 1.5; font-weight: 700; color: var(--om-navy); margin: 0; }
.om-lead { font-size: clamp(1rem, 1.35vw, 1.13rem); line-height: 1.9; color: var(--om-muted); max-width: 64ch; margin: 10px 0 0; }
.om-lead p { margin: 0 0 8px; }
.om-on-dark .om-lead { color: rgba(255, 255, 255, .8); }

/* ---------- الأقسام ---------- */
.om-sec { padding: clamp(60px, 8vw, 100px) 0; }
.om-sec-soft { background: var(--om-bg); }
.om-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 38px; }
.om-sec-head.om-center { justify-content: center; text-align: center; }
.om-sec-head.om-center .om-lead { margin-inline: auto; }

/* ---------- الأزرار ---------- */
.om-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none !important; border: 1.5px solid transparent; transition: transform .25s var(--om-ease), box-shadow .25s var(--om-ease), background .25s, border-color .25s, color .25s; cursor: pointer; }
.om-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.om-btn-primary { background: var(--om-blue); color: #fff !important; box-shadow: 0 10px 24px rgba(43, 141, 239, .32); }
.om-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(43, 141, 239, .42); color: #fff !important; }
.om-btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .04); }
.om-btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff !important; }
.om-btn-dark { background: var(--om-navy); color: #fff !important; }
.om-btn-dark:hover { background: var(--om-navy2); transform: translateY(-2px); color: #fff !important; }
.om-btn-line { border-color: var(--om-line); color: var(--om-navy) !important; background: #fff; }
.om-btn-line:hover { border-color: var(--om-blue); color: var(--om-blue) !important; }
.om-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--om-blue) !important; text-decoration: none !important; }
.om-link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--om-ease); }
.om-link-arrow:hover svg, a:hover .om-link-arrow svg { transform: translateX(-5px); }

/* ---------- البطاقات العامة ---------- */
.om-card { position: relative; background: #fff; border-radius: var(--om-r-lg); overflow: hidden; border: 1.5px solid var(--om-line); display: flex; flex-direction: column; transition: transform .3s var(--om-ease), box-shadow .3s, border-color .3s; color: inherit; text-decoration: none !important; }
.om-card:hover { transform: translateY(-6px); box-shadow: var(--om-shadow-lg); border-color: transparent; color: inherit; }
.om-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--om-bg); }
.om-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--om-ease); display: block; }
.om-card:hover .om-card-media img { transform: scale(1.05); }
.om-chip { position: absolute; top: 14px; right: 14px; background: rgba(8, 35, 71, .82); color: #fff; font-size: .76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.om-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.om-card-body p { color: var(--om-muted); font-size: .93rem; line-height: 1.8; margin: 0; flex: 1; }
.om-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.om-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- حركة الظهور عند التمرير ---------- */
/* يُخفى العنصر فقط إذا عمل JavaScript (كلاس om-js على <html>)، فلا يختفي المحتوى أبداً إن تعطل السكربت */
.om-js .om-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--om-ease), transform .7s var(--om-ease); }
.om-js .om-reveal.om-in { opacity: 1; transform: none; }
.om-d1 { transition-delay: .08s; } .om-d2 { transition-delay: .16s; } .om-d3 { transition-delay: .24s; }
@keyframes om-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- تلميح السحب على الجوال ---------- */
.om-swipe-hint { display: none; align-items: center; gap: 6px; font-size: .82rem; color: var(--om-muted); font-weight: 600; margin-top: 4px; }
.om-swipe-hint svg { width: 16px; height: 16px; animation: om-nudge 1.6s infinite; }
@keyframes om-nudge { 50% { transform: translateX(-6px); } }

/* ---------- الشريط العلوي: حالة التمرير + القائمة المنسدلة ---------- */
.navbar.om-navbar-custom { transition: min-height .3s, box-shadow .3s, background .3s; }
.navbar.om-navbar-custom.om-scrolled { min-height: 60px !important; box-shadow: 0 8px 24px rgba(8, 35, 71, .3) !important; }
.navbar.om-navbar-custom .navbar-logo { transition: height .3s, transform .25s ease; }
.om-has-mega { position: relative; }
.om-has-mega > .nav-link { display: inline-flex !important; align-items: center; gap: 5px; }
.om-has-mega > .nav-link svg { width: 11px; height: 11px; transition: transform .25s; }
.om-mega { position: absolute; top: calc(100% + 10px); right: 50%; transform: translate(50%, 8px); width: 660px; background: #fff; border-radius: var(--om-r); box-shadow: var(--om-shadow-lg); padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s var(--om-ease), visibility .22s; z-index: 1100; }
.om-mega::before { content: ""; position: absolute; top: -12px; right: 0; left: 0; height: 12px; }
@media (min-width: 992px) {
    .om-has-mega:hover .om-mega, .om-has-mega:focus-within .om-mega { opacity: 1; visibility: visible; transform: translate(50%, 0); }
    .om-has-mega:hover > .nav-link svg { transform: rotate(180deg); }
}
.om-mega-col { display: flex; flex-direction: column; }
.om-mega h6 { font-size: .76rem; color: var(--om-blue); font-weight: 800; margin: 4px 10px 6px; }
.om-mega a { color: var(--om-navy) !important; display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; text-decoration: none !important; }
.om-mega a:hover { background: var(--om-bg); }
.om-mega .om-mi { width: 36px; height: 36px; border-radius: 10px; background: var(--om-bg); display: grid; place-items: center; color: var(--om-blue); flex-shrink: 0; }
.om-mega .om-mi i { font-size: 1rem; }
.om-mega strong { display: block; font-size: .9rem; line-height: 1.5; font-weight: 700; }
.om-mega small { display: block; color: var(--om-muted); font-size: .78rem; line-height: 1.5; }
.om-mega-all { grid-column: span 2; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--om-line); }
.om-mega-all a { justify-content: center; font-weight: 800; color: var(--om-blue) !important; }
@media (max-width: 991.98px) {
    .om-mega { display: none !important; }
    /* الشعار والحاسبة والاتصال والقائمة في سطر واحد على الجوال (لا ينكسر الشريط لسطرين) */
    .navbar.om-navbar-custom > .container { flex-wrap: nowrap !important; }
    .navbar.om-navbar-custom .navbar-brand { min-width: 0; flex-shrink: 1; }
    .navbar.om-navbar-custom .navbar-logo { max-width: 46vw !important; }
}
/* الشاشات الصغيرة جداً: الحاسبة أيقونة فقط */
@media (max-width: 340px) {
    .om-nav-calc-m .om-calc-txt { display: none; }
    .om-nav-calc-m { padding: 0 !important; width: 40px; height: 40px; justify-content: center; }
}

/* زر اتصال دائري في الشريط العلوي على الجوال (بدل زر التسعير المكرر مع الشريط السفلي) */
.om-nav-call { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .4); text-decoration: none !important; }
.om-nav-call:hover { background: rgba(255, 255, 255, .12); }
.om-nav-call i { font-size: .95rem; }

/* ---------- الجوال: البطاقات تُسحب أفقياً ---------- */
@media (max-width: 1080px) {
    .om-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .om-sec { padding: 54px 0; }
    .om-sec-head { margin-bottom: 22px; }
    .om-swipe { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 6px calc(var(--bs-gutter-x, 1.5rem) * .5) 16px; scrollbar-width: none; }
    .om-swipe::-webkit-scrollbar { display: none; }
    .om-swipe > * { flex: 0 0 82%; scroll-snap-align: start; }
    .om-swipe-hint { display: flex; }
    .om-btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .om-js .om-reveal { opacity: 1; transform: none; transition: none; }
    .om-swipe-hint svg { animation: none; }
}
