/* التصميم 3 — صناعي جريء: أسود اللوجو + برتقالي الحلقة، والأزرق للتفاصيل
   تخطيط: هيدر داكن، سلايدر بعرض الشاشة بلوح برتقالي مائل، شريط قدرات، أقسام داكنة/فاتحة متبادلة */
:root {
  --black: #121417;
  --char: #1C2026;
  --char-2: #262B33;
  --orange: #F7941D;
  --orange-deep: #E8561F;
  --steel: #7FA6D6;
  --maroon: #9E1F1F;
  --paper: #F4F2EF;
  --ink: #15181D;
  --muted-d: #9AA3B0;  /* نص ثانوي على الداكن */
  --muted-l: #5E6672;  /* نص ثانوي على الفاتح */
  --white: #FFFFFF;
  --font-display: "Changa", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}
:root { scroll-behavior: auto; } /* التمرير الناعم بيتم عبر jQuery */
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); line-height: 1.8; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* الهيدر */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1030; background: var(--black); color: var(--white); border-bottom: 3px solid var(--orange); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand .logo-disc { width: 60px; height: 60px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: 0 0 60px; }
.brand .logo-disc img { width: 48px; }
.brand b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.25; display: block; }
.brand small { color: var(--orange); font-size: .78rem; font-weight: 600; }
.navbar .nav-link { color: #D9DEE5; font-weight: 600; padding: .5rem .9rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--orange); }
.navbar .dropdown-menu { background: var(--char); border: 0; border-top: 3px solid var(--orange); border-radius: 0; }
.navbar .dropdown-item { color: #D9DEE5; padding: .55rem 1.2rem; }
.navbar .dropdown-item:hover { background: var(--char-2); color: var(--orange); }
.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { filter: invert(1); }

.btn-brand { background: var(--orange); color: var(--black); font-weight: 700; border: 0; border-radius: 0; padding: .75rem 1.6rem; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.btn-brand:hover { background: var(--white); color: var(--black); }
.btn-outline { border: 2px solid currentColor; border-radius: 0; font-weight: 700; padding: .65rem 1.5rem; color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark2 { background: var(--black); color: var(--white); font-weight: 700; border-radius: 0; padding: .75rem 1.6rem; }
.btn-white { background: var(--white); color: var(--black); font-weight: 700; border-radius: 0; padding: .75rem 1.6rem; }
.btn-white:hover { background: var(--black); color: var(--orange); }
.btn-dark2:hover { background: var(--char-2); color: var(--orange); }

/* السلايدر */
.hero { background: var(--black); position: relative; }
.hero .carousel-item { height: clamp(460px, 68vh, 660px); background-size: cover; background-position: center; }
.hero .carousel-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(18,20,23,.92) 0%, rgba(18,20,23,.6) 50%, rgba(18,20,23,.15) 100%); }
.hero .caption { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; color: var(--white); }
.hero .caption-inner { max-width: 640px; }
.hero .no { font-family: var(--font-display); font-size: .95rem; color: var(--orange); font-weight: 600; letter-spacing: .05em; display: flex; align-items: center; gap: .75rem; }
.hero .no::after { content: ""; width: 60px; height: 2px; background: var(--orange); }
.hero h1, .hero h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 700; line-height: 1.2; margin-block: 1rem; }
.hero h1 span, .hero h2 span { color: var(--orange); }
.hero p { color: #C9D0DA; font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 34rem; }
.hero-controls { position: absolute; z-index: 3; bottom: 0; inset-inline-end: 0; display: flex; }
.hero-controls button { width: 64px; height: 64px; border: 0; background: var(--orange); color: var(--black); display: grid; place-items: center; }
.hero-controls button + button { background: var(--white); }
.hero-controls button:hover { background: var(--black); color: var(--orange); }
.hero-count { position: absolute; z-index: 3; bottom: 1.25rem; inset-inline-start: calc((100vw - min(100vw, 1320px)) / 2 + 12px); color: var(--white); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.hero-count .slide-current { font-size: 2.2rem; color: var(--orange); font-weight: 700; }

/* شريط القدرات */
.capbar { background: var(--orange); color: var(--black); overflow: hidden; white-space: nowrap; }
.capbar .track { display: inline-flex; gap: 3rem; padding-block: 1rem; animation: marquee 30s linear infinite; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.capbar .track span::after { content: "●"; margin-inline-start: 3rem; font-size: .6rem; vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* الأقسام */
.section { padding-block: 5.5rem; }
.dark { background: var(--char); color: var(--white); }
.kicker { font-family: var(--font-display); font-weight: 600; color: var(--orange-deep); font-size: .95rem; display: flex; align-items: center; gap: .6rem; }
.dark .kicker { color: var(--orange); }
.kicker::before { content: ""; width: 14px; height: 14px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.heading { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1.25; margin-top: .4rem; }
.muted-l { color: var(--muted-l); }
.muted-d { color: var(--muted-d); }

/* عن + أرقام */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.figures div { padding: 1.25rem 0; }
.figures div + div { border-inline-start: 1px solid #D6D2CC; padding-inline-start: 1.25rem; }
.figures b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures span { color: var(--muted-l); font-size: .9rem; }
.about-img { position: relative; aspect-ratio: 1; max-width: 100%; background: url("../img/site/fact-8.jpeg") center/cover; }
.about-img::after { content: "منذ 1885"; position: absolute; bottom: -1px; inset-inline-end: -1px; background: var(--paper); padding: .75rem 1.25rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--maroon); }

/* كلمة الرئيس */
.chair { position: relative; overflow: hidden; }
.chair-photo { position: relative; max-width: 380px; }
.chair-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.15); position: relative; z-index: 1; }
.chair-photo::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; top: -12%; inset-inline-end: -22%; border-radius: 50%; z-index: 0;
  background: repeating-conic-gradient(var(--orange) 0 22deg, transparent 22deg 30deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px)); mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px)); }
.chair-photo .name-tag { position: absolute; z-index: 2; bottom: -1.25rem; inset-inline-start: -1rem; background: var(--orange); color: var(--black); padding: .8rem 1.2rem; font-family: var(--font-display); font-weight: 700; line-height: 1.3; }
.chair-photo .name-tag small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .78rem; }
.chair blockquote { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.55; margin: 1.25rem 0; }
.chair blockquote span { color: var(--orange); }

/* المنتجات */
.prod-list { border-top: 1px solid #3A404A; }
.prod-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr) 140px 48px; gap: 1.5rem; align-items: center; padding-block: 1.4rem; border-bottom: 1px solid #3A404A; transition: background .2s, padding .2s; }
.prod-row:hover { background: var(--char-2); padding-inline: 1rem; }
.prod-row .idx { font-family: var(--font-display); color: var(--steel); font-weight: 600; font-variant-numeric: tabular-nums; }
.prod-row h3 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.prod-row p { margin: 0; color: var(--muted-d); }
.prod-row .img { aspect-ratio: 16/10; max-width: 100%; background-size: cover; background-position: center; }
.prod-row .arr { width: 48px; height: 48px; border: 1px solid #4A515C; display: grid; place-items: center; transition: background .2s; }
.prod-row:hover .arr { background: var(--orange); color: var(--black); border-color: var(--orange); }

/* الأخبار */
.news-main { display: block; position: relative; aspect-ratio: 16/11; max-width: 100%; background-size: cover; background-position: center; color: var(--white); }
.news-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,20,23,.92), rgba(18,20,23,.05) 70%); }
.news-main .in { position: absolute; inset-inline: 1.75rem; bottom: 1.5rem; }
.news-main h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; }
.badge-o { display: inline-block; background: var(--orange); color: var(--black); font-weight: 700; font-size: .78rem; padding: .2rem .7rem; }
.news-line { display: block; padding-block: 1.25rem; border-bottom: 1px solid #D6D2CC; }
.news-line:first-child { padding-top: 0; }
.news-line h3 { font-size: 1.15rem; font-weight: 700; margin: .4rem 0; }
.news-line:hover h3 { color: var(--orange-deep); }

/* المصانع */
.plant { background: var(--white); padding: 2rem; height: 100%; border-top: 4px solid var(--black); }
.plant.alt { border-top-color: var(--orange); }
.plant h3 { font-weight: 700; font-size: 1.5rem; }

/* CTA */
.cta { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 22%; background: var(--orange); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.cta .container { position: relative; z-index: 2; }

/* الفوتر */
.site-footer { background: var(--black); color: var(--muted-d); padding-top: 4rem; font-size: .93rem; border-top: 1px solid #2A2F37; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a:hover { color: var(--orange); }
.site-footer .bottom { border-top: 1px solid #2A2F37; margin-top: 3rem; padding-block: 1.25rem; font-size: .82rem; }

.to-top { position: fixed; inset-inline-start: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; background: var(--orange); color: var(--black); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 1040; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* رأس الصفحات الداخلية */
.page-head { position: relative; overflow: hidden; background: var(--black); color: var(--white); padding-block: 3.5rem; }
.page-head::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 22%; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%, 35% 100%); }
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.2; margin-block: .75rem; }
.page-head p { color: #C9D0DA; font-size: 1.1rem; margin: 0; max-width: 40rem; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; color: var(--muted-d); font-size: .9rem; }
.crumbs li + li::before { content: "←"; margin-inline-end: .5rem; }
.crumbs a { color: var(--orange); }

/* اتصل بنا */
.sales-card { display: block; height: 100%; background: var(--white); border-inline-start: 4px solid var(--orange); padding: 1.25rem 1.5rem; transition: background .2s, color .2s; }
.sales-card span { display: block; color: var(--muted-l); font-weight: 600; }
.sales-card b { display: block; text-align: end; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sales-card:hover { background: var(--black); color: var(--orange); }
.sales-card:hover span { color: var(--muted-d); }
.contact-rows { list-style: none; padding: 0; margin: 0; }
.contact-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block: .7rem; border-top: 1px solid #E4E0DA; }
.contact-rows li > span:first-child { color: var(--muted-l); font-size: .9rem; }
.contact-rows li > span:last-child { display: grid; justify-items: end; gap: .15rem; margin-inline-start: auto; }
.contact-rows a { font-weight: 600; overflow-wrap: anywhere; }
.contact-rows a:hover { color: var(--orange-deep); }
#contact-form { scroll-margin-top: 90px; }
.contact-form .form-control, .contact-form .form-select { border-radius: 0; background-color: var(--char-2); border-color: #4A515C; color: var(--white); padding: .7rem .9rem; }
.contact-form .form-control:focus, .contact-form .form-select:focus { background-color: var(--char-2); border-color: var(--orange); color: var(--white); box-shadow: 0 0 0 .2rem rgba(247,148,29,.25); }
.contact-form .form-select { --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.contact-form .form-select option { background: var(--char-2); color: var(--white); }
.contact-form input[dir="ltr"] { text-align: right; }
.contact-form .invalid-feedback { color: #FF9C8A; }
.form-msg { background: var(--char-2); border-inline-start: 4px solid var(--orange); padding: .9rem 1.1rem; margin-top: 1rem; }

.map-frame { display: block; width: 100%; height: clamp(300px, 45vw, 440px); border: 0; border-top: 4px solid var(--orange); background: var(--char-2); }

/* تعرف علينا */
.about-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-photo.wide { aspect-ratio: 16/9; height: 100%; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; padding-block: 1.5rem; border-top: 1px solid #3A404A; }
.timeline li:last-child { border-bottom: 1px solid #3A404A; }
.timeline b { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; color: var(--orange); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .4rem; }
.timeline p { color: var(--muted-d); margin: 0; max-width: 48rem; }

/* مجلس الإدارة */
.board-photo::before { inset-inline-end: -8%; }
.plant.board-card { padding: 1.25rem 1.5rem; }
.plant.board-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }

/* رؤساء سابقون */
.prev-list { list-style: none; padding: 0; margin-bottom: 0; }
.prev-card { height: 100%; margin: 0; background: var(--white); border-bottom: 4px solid var(--black); }
.prev-card > img, .prev-card .no-photo { display: block; width: 100%; aspect-ratio: 5/6; object-fit: cover; object-position: top; }
.prev-card .no-photo { display: grid; place-items: center; background: var(--char); }
.prev-card .no-photo img { width: 36%; opacity: .55; }
.prev-card figcaption { padding: .9rem 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.prev-card figcaption span { display: block; color: var(--muted-l); font-family: var(--font-body); font-weight: 600; font-size: .85rem; }

/* سياسة الشركة */
.policy-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; counter-reset: policy; }
.policy-list li { counter-increment: policy; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .75rem; padding-block: 1.1rem; border-top: 1px solid #D6D2CC; }
.policy-list li::before { content: counter(policy, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.5; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.policy-sub { font-size: 1.3rem; font-weight: 700; margin-bottom: .6rem; }
.policy-sign { display: grid; justify-items: start; gap: .2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #3A404A; }
.policy-sign b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }

/* البيانات المالية والملفات */
.page-tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid #D6D2CC; }
.page-tabs a { padding-block: .6rem; margin-bottom: -1px; border-bottom: 3px solid transparent; font-family: var(--font-display); font-weight: 600; color: var(--muted-l); }
.page-tabs a:hover { color: var(--orange-deep); }
.page-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--orange); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem 2rem; background: var(--white); border-inline-start: 4px solid var(--orange); padding: 1.25rem 1.5rem; }
.doc-row h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .2rem; }
.doc-row p { color: var(--muted-l); margin: 0; }
.doc-meta { color: var(--muted-l); font-size: .9rem; font-weight: 600; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.slides-frame { display: block; width: 100%; aspect-ratio: 4/3; max-height: 75vh; border: 0; background: var(--char-2); }
.pdf-frame { width: 100%; height: 80vh; border: 1px solid #D6D2CC; background: var(--white); }
.energy-axes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.energy-axes li { background: var(--white); border-top: 4px solid var(--orange); padding: 1.1rem 1.25rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

/* شريط التنقل داخل الصفحة */
.jump-bar { background: var(--white); border-bottom: 1px solid #D6D2CC; }
.jump-bar .page-tabs { border-bottom: 0; }
.anchor-sec { scroll-margin-top: 90px; }

/* قوائم وصور عامة */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-inline-start: 1.4rem; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 9px; height: 9px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.dark .check-list { color: #C9D0DA; }
.hr-photo { display: block; width: 100%; height: auto; }
.hr-photo.wide { aspect-ratio: 21/9; object-fit: cover; }
.name-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 2rem; }
.name-grid li { padding-block: .65rem; border-bottom: 1px solid #D6D2CC; font-weight: 600; }
.dark .name-grid li { border-bottom-color: #3A404A; }
.usage-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.usage-grid li { background: var(--white); border-inline-start: 4px solid var(--orange); padding: 1rem 1.25rem; }
.usage-grid b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.usage-grid span { color: var(--muted-l); font-size: .9rem; }
.machine { font-size: 1.05rem; font-weight: 700; margin: 1rem 0 .25rem; color: var(--steel); }
.timeline p + p { margin-top: .4rem; }
.timeline b.inline { display: inline; font-family: var(--font-body); font-size: inherit; font-weight: 600; color: var(--white); }

.lib-count { font-weight: 600; margin-block: 1rem; }
.lib-count b { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--orange-deep); margin-inline-end: .4rem; font-variant-numeric: tabular-nums; }
.material-rows { list-style: none; padding: 0; margin: 1rem 0 0; }
.material-rows li { padding-block: .7rem; border-top: 1px solid #E4E0DA; color: var(--muted-l); }
.material-rows b { display: block; color: var(--ink); font-weight: 600; }

/* كروت الماكينات */
.plant { color: var(--ink); }
.m-meta { display: block; color: var(--orange-deep); font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }

/* المنتجات */
.product-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.product-grid li { background: var(--white); border-bottom: 4px solid var(--orange); }
.product-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.product-grid a:hover img { opacity: .85; }
.product-grid span { display: block; padding: .8rem 1rem; font-family: var(--font-display); font-weight: 700; }

/* أماكن للإيجار */
.rent-call { color: var(--ink); }
.rent-video { display: block; width: 100%; aspect-ratio: 16/9; background: var(--black); }
.store + .store { margin-top: 2.5rem; }
.store-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding-block: .75rem; border-top: 2px solid var(--ink); }
.store-head h3 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.store-head b { font-family: var(--font-display); font-size: 1.3rem; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.store-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.store-gallery img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: opacity .2s; }
.store-gallery a:hover img { opacity: .8; }

/* منع التفاف عناصر الهيدر بعد زيادة روابط القائمة */
.brand b, .navbar .nav-link, .site-header .btn-brand { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar .nav-link { padding-inline: .5rem !important; font-size: .92rem; }
  .brand b { font-size: 1.05rem; }
  .site-header .btn-brand { padding-inline: 1rem; font-size: .92rem; }
}

/* أماكن الهيدر والفوتر قبل تحميلهما بالـ Ajax */
#site-header { min-height: 79px; background: var(--black); }
#site-footer { min-height: 320px; background: var(--black); }

/* حالة تحميل الأخبار */
.load-msg { color: var(--muted-l); padding-block: 1.5rem; margin: 0; }
.news-main .summary { color: #C9D0DA; margin: 0; font-size: .95rem; }

/* الفيلم التعريفي */
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: var(--black); overflow: hidden; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.video-facade .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: var(--orange); color: var(--black); display: grid; place-items: center; }
.video-frame { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }

/* علامات الفوتر */
.foot-marks { display: flex; align-items: center; gap: .75rem; }
.foot-marks .cert { background: var(--white); padding: .35rem; display: block; }
.foot-marks .cert img { height: 56px; display: block; }
.foot-marks .social { width: 44px; height: 44px; border: 1px solid #3A404A; display: grid; place-items: center; color: var(--white); }
.foot-marks .social:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }

@media (max-width: 991.98px) {
  .navbar-collapse { padding-block: 1rem; }
  .chair-photo .name-tag { inset-inline-start: 0; }
  .page-head::after { display: none; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .board-photo::before { inset-inline-end: 0; }
  .policy-list { grid-template-columns: minmax(0, 1fr); }
  .doc-row { grid-template-columns: minmax(0, 1fr); }
  .prod-row { grid-template-columns: 44px minmax(0, 1fr) 48px; }
  .prod-row p, .prod-row .img { display: none; }
  .cta::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .capbar .track { animation: none; } }
