/* =========================================================
   hi-tech coating — Main Stylesheet
   الألوان والخطوط مأخوذة من دليل الهوية البصرية المعتمد
   لا تُعدّل الألوان الأساسية إلا بالرجوع إلى دليل الهوية
   ========================================================= */

:root {
  --navy: #0B1F3B;
  --navy-light: #12294f;
  --maroon: #87092D;
  --maroon-light: #a10f38;
  --slate: #4A5568;
  --gold: #C9A227;
  --light-gray: #F2F4F7;
  --white: #FFFFFF;
  --ink: #1a1a1a;
  --muted: #6b7280;

  --font-ar: 'Tajawal', 'Segoe UI', Arial, sans-serif;
  --font-en: 'Exo 2', 'Segoe UI', Arial, sans-serif;

  --container: 1240px;
  --radius: 10px;
  --shadow-sm: 0 4px 14px rgba(11, 31, 59, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 31, 59, 0.14);
  --shadow-lg: 0 20px 50px rgba(11, 31, 59, 0.22);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* احتياط للمتصفحات القديمة */
  overflow-x: clip;     /* يمنع التمرير الأفقي دون تعطيل position: sticky */
  max-width: 100%;
}
body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}
/* الاتجاه يُدار من سمة dir على <html> — RTL افتراضيًا */
html[dir="ltr"] body { font-family: var(--font-en); }
html[dir="ltr"] h1, html[dir="ltr"] h2,
html[dir="ltr"] h3, html[dir="ltr"] h4 { font-family: var(--font-en); letter-spacing: -0.2px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---------- اسم العلامة التجارية داخل النصوص ----------
   hi-tech = Maroon #87092D · coating = Navy #0B1F3B — لونان فقط
   لا يُطبَّق هذا التنسيق على صورة الشعار الرسمية. */
.brand-name {
  font-weight: 700;
  white-space: nowrap;
  font-family: "Roboto", "Exo 2", Arial, sans-serif;
  letter-spacing: .2px;
}
.brand-hi-tech { color: #87092D; }
.brand-coating { color: #0B1F3B; }
/* على الخلفيات الداكنة: نسخة لونية عالية التباين بلا أي خلفية خلف الاسم.
   hi-tech ذهبي #C9A227 · coating أبيض #FFFFFF · الوزن 700 · الاسم بالإنجليزية دائمًا.
   الخلفيات الفاتحة لا تتغيّر: hi-tech #87092D · coating #0B1F3B */
.bg-navy .brand-hi-tech,
.site-footer .brand-hi-tech,
.hero .brand-hi-tech,
.page-hero .brand-hi-tech,
.cta-band .brand-hi-tech { color: #C9A227; }

.bg-navy .brand-coating,
.site-footer .brand-coating,
.hero .brand-coating,
.page-hero .brand-coating,
.cta-band .brand-coating { color: #FFFFFF; }

.bg-navy .brand-name,
.site-footer .brand-name,
.hero .brand-name,
.page-hero .brand-name,
.cta-band .brand-name { font-weight: 700; background: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 90px 0; position: relative; }
@media (max-width: 768px) { section { padding: 60px 0; } }

h1, h2, h3, h4 { font-weight: 800; color: var(--navy); line-height: 1.35; }
h1 { font-size: clamp(30px, 5vw, 50px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: 21px; }
p { color: var(--slate); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--maroon);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.section-tag::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--gold);
  display: inline-block;
  border-radius: 2px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-head .section-tag { justify-content: center; }
.section-head p { margin-top: 14px; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform var(--transition), background-color var(--transition),
              box-shadow var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.16);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
html[dir="ltr"] .btn::after { transform-origin: left; }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
html[dir="ltr"] .btn:hover::after { transform-origin: right; }
.btn > * { position: relative; z-index: 1; }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
  background: var(--maroon);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(135, 9, 45, 0.28);
}
.btn-primary:hover { background: var(--maroon-light); transform: translateY(-2px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { filter: brightness(1.05); transform: translateY(-2px); }

/* زر Data Sheet */
.btn-datasheet {
  background: var(--light-gray);
  color: var(--navy);
  border: 1.5px solid #DFE3E9;
  padding: 11px 18px;
  font-size: 13.5px;
  width: 100%;
}
.btn-datasheet:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-datasheet svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
/* ---------- الترويسة الثابتة ----------
   تبقى ظاهرة أثناء التمرير صعودًا ونزولًا، ولا تُخفى تلقائيًا،
   وتعلو القائمة الجانبية حتى يبقى زر الإغلاق في متناول اليد. */
.site-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1200;
  background: #0B1F3B;
  box-shadow: none;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28); }

/* العناوين والروابط الداخلية لا تختفي خلف الترويسة */
:target,
section[id],
[id] { scroll-margin-top: 110px; }
@media (max-width: 700px) { [id] { scroll-margin-top: 92px; } }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img {
  height: 54px;
  width: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  transition: transform var(--transition);
}
.brand:hover img { transform: scale(1.03); }

.nav-drawer { display: contents; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: #E6EAF0;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 6px;
  transition: color var(--transition), background-color var(--transition);
  position: relative;
}
/* خط سفلي متحرك عند المرور على روابط شريط التنقل */
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  inset-inline-start: 14px;
  inset-inline-end: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
html[dir="ltr"] .main-nav a::after { transform-origin: left; }
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
html[dir="ltr"] .main-nav a:hover::after,
html[dir="ltr"] .main-nav a:focus-visible::after,
html[dir="ltr"] .main-nav a.active::after { transform-origin: right; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  /* حاوية تقصّ القائمة المنزلقة حتى لا تُحدث تمريرًا أفقيًا */
  .nav-drawer {
    display: block;
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1100;
  }
  .main-nav {
    position: absolute;
    pointer-events: auto;
    inset-inline-end: 0;
    top: 0;
    height: 100%;
    width: min(300px, 80vw);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 22px 30px;
    gap: 4px;
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
    box-shadow: -10px 0 40px rgba(0,0,0,0.35);
    overflow-y: auto;
  }
  html[dir="ltr"] .main-nav { transform: translateX(105%); }
  .main-nav.open,
  html[dir="ltr"] .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 16px; font-size: 16px; opacity: 0; transform: translateY(8px); }
  .main-nav.open a { animation: navItemIn .35s ease forwards; }
  .main-nav.open a:nth-child(1) { animation-delay: .05s; }
  .main-nav.open a:nth-child(2) { animation-delay: .10s; }
  .main-nav.open a:nth-child(3) { animation-delay: .15s; }
  .main-nav.open a:nth-child(4) { animation-delay: .20s; }
  .main-nav.open a:nth-child(5) { animation-delay: .25s; }
  .main-nav.open a:nth-child(6) { animation-delay: .30s; }
  .main-nav a::after { inset-inline-start: 16px; inset-inline-end: 16px; }
  .header-cta .btn { padding: 10px 16px; font-size: 13px; }
}
@keyframes navItemIn { to { opacity: 1; transform: translateY(0); } }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }
/* القائمة الجانبية لا تقفل تمرير الصفحة حتى لا تتعطّل الترويسة الثابتة */
body.nav-open { overflow: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #123061 100%);
  color: var(--white);
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}
.hero-hex {
  position: absolute;
  border: 2px solid rgba(201, 162, 39, 0.18);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  pointer-events: none;
}
.hero-hex.h1 { width: 380px; height: 380px; top: -140px; inset-inline-start: -120px; }
.hero-hex.h2 { width: 240px; height: 240px; bottom: -80px; inset-inline-end: 6%; border-color: rgba(255,255,255,0.08); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-logo { margin-bottom: 26px; }
.hero-logo img {
  height: 92px;
  width: auto;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.hero-tagline {
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lead { color: #C9D2DE; font-size: 18px; max-width: 660px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--maroon) 130%);
  color: var(--white);
  padding: 70px 0;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover; background-position: center;
  opacity: 0.18; mix-blend-mode: luminosity;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb { color: #C9D2DE; font-size: 14px; margin-bottom: 14px; }
.page-hero .breadcrumb a { color: var(--gold); font-weight: 700; }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: #C9D2DE; max-width: 680px; }

/* ---------- Highlights strip ---------- */
.highlights { background: transparent; margin-top: -46px; position: relative; z-index: 3; padding: 0; }
.highlights-inner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.highlight-item { text-align: center; padding: 28px 16px; border-inline-start: 1px solid #EBEEF2; }
.highlight-item:first-child { border-inline-start: none; }
.highlight-item h3 { font-size: 17px; color: var(--maroon); }
.highlight-item p { font-size: 13.5px; color: var(--slate); margin-top: 6px; font-weight: 600; }
@media (max-width: 700px) {
  .highlights-inner { grid-template-columns: repeat(2, 1fr); }
  .highlight-item:nth-child(3) { border-inline-start: none; }
}

/* ---------- About grid ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid .media { position: relative; overflow: hidden; border-radius: var(--radius); }
.about-grid .media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;            /* يمنع تشوّه الصورة عند اختلاف سمة height عن نسبتها */
  display: block;
  transition: transform .6s ease;
}
.about-grid .media:hover img { transform: scale(1.04); }
.about-grid ul.check-list { margin-top: 20px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid.reverse .media { order: -1; }
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1px solid #EEF1F5;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Product card */
.product-card { display: flex; flex-direction: column; }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card:hover { border-color: rgba(135, 9, 45, .25); }
.product-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag-chip {
  display: inline-block;
  align-self: flex-start;
  background: var(--light-gray);
  color: var(--maroon);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.product-card h3 { margin-bottom: 8px; font-size: 19px; }
.product-card p { font-size: 14.5px; margin-bottom: 12px; }
.product-card .card-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 6px; }
.product-card .link-more { color: var(--maroon); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Feature card */
.feature-card { padding: 32px 26px; text-align: center; }
.feature-card .icon-wrap {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
  transition: transform var(--transition);
}
.feature-card:hover .icon-wrap { transform: translateY(-3px) scale(1.05); }
.feature-card .icon-wrap svg { width: 32px; height: 32px; }
.feature-card h3 { margin-bottom: 10px; font-size: 18px; }
.feature-card p { font-size: 14.5px; }

/* Application card */
.application-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: block; }
.application-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.application-card:hover img { transform: scale(1.07); }
.application-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,31,59,0.92) 0%, rgba(11,31,59,0.15) 60%, rgba(11,31,59,0) 100%);
  display: flex; align-items: flex-end;
  padding: 22px;
}
.application-card h3 { color: var(--white); font-size: 18px; margin-bottom: 4px; }
.application-card p { color: #D6DEE8; font-size: 13.5px; }

/* Project card */
.project-card { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); background: var(--white); border: 1px solid #EEF1F5; transition: transform var(--transition), box-shadow var(--transition); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-card .thumb { overflow: hidden; display: block; cursor: zoom-in; }
.project-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-card .meta { padding: 18px 20px; }
.project-card .cat { color: var(--maroon); font-weight: 700; font-size: 12.5px; }
.project-card h3 { font-size: 17px; margin: 6px 0 4px; }
.project-card .loc { color: var(--muted); font-size: 13px; }
.project-card .desc { font-size: 13.5px; margin-top: 6px; }

/* Step row */
.reason-row { display: flex; gap: 20px; padding: 22px 0; }
.reason-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--maroon);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.reason-row h4 { color: var(--navy); font-size: 17px; margin-bottom: 4px; }
.reason-row p { font-size: 14.5px; }
.step-item { flex-direction: column; text-align: center; align-items: center; }
.step-item h4 { margin-top: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--maroon) 150%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 40px);
}
.cta-band .txt { position: relative; z-index: 1; max-width: 560px; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: #DDE3EA; }
.cta-band .actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section backgrounds ---------- */
.bg-light { background: var(--light-gray); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-navy p { color: #C9D2DE; }
.bg-navy .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }

/* ---------- Values ---------- */
.value-card {
  background: var(--white);
  border: 1px solid #EEF1F5;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--light-gray);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.value-card.text-center .icon-wrap { margin-inline: auto; }
.value-card .icon-wrap svg { width: 26px; height: 26px; }
.value-card p { font-size: 14px; margin-top: 6px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px; }
@media (max-width: 560px) { .form-card { padding: 26px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-weight: 700; font-size: 14px; color: var(--navy); }
.form-group label .req { color: var(--maroon); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid #DFE3E9;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 4px rgba(135, 9, 45, 0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group .error-msg { color: var(--maroon); font-size: 12.5px; display: none; font-weight: 600; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--maroon); }
.form-group.has-error .error-msg { display: block; }

.form-alert {
  display: none;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-weight: 700;
  font-size: 14.5px;
}
.form-alert.success { background: #E7F7EE; color: #16794A; }
.form-alert.error { background: #FBEAEC; color: var(--maroon); }

/* ---------- Contact info ---------- */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid #EEF1F5;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-info-card .icon-wrap {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card .icon-wrap svg { width: 24px; height: 24px; }
.contact-info-card h4 { color: var(--navy); font-size: 15.5px; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { font-size: 14.5px; color: var(--slate); word-break: break-word; }
.contact-info-card a:hover { color: var(--maroon); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EEF1F5;
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Notice ---------- */
.notice {
  background: #FFF8E7;
  border: 1px solid #F0DFAF;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #6B5310;
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D2DE; padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img {
  height: 54px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 18px;
}
.footer-brand p { font-size: 14px; color: #A9B4C4; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14.5px; color: #B7C1D0; transition: color var(--transition), padding var(--transition); display: inline-block; }
.footer-links a:hover { color: var(--gold); padding-inline-start: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: #8FA0B8;
}

/* ---------- Floating buttons ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  z-index: 900;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

.back-to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 900;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--maroon); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Misc ---------- */
.divider-hex {
  width: 44px; height: 44px;
  margin: 0 auto 18px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--gold);
}
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag-pill {
  background: var(--light-gray);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
}

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px;
  border-radius: 24px;
  border: 1.5px solid #DFE3E9;
  font-weight: 700;
  font-size: 14px;
  color: var(--slate);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  background: var(--white);
}
.filter-btn:hover { border-color: var(--maroon); color: var(--maroon); transform: translateY(-2px); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.product-card[hidden], .project-card[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(11,31,59,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { text-align: center; transform: scale(.94); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.lightbox.open figure { transform: scale(1); }
.lightbox img { max-width: min(900px, 92vw); max-height: 78vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 700; font-size: 15px; }
.lightbox-close {
  position: absolute; top: 24px; inset-inline-end: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: background-color var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.26); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* الترويسة على الشاشات الصغيرة — منع الفيض الأفقي */
@media (max-width: 700px) {
  .header-inner { padding: 12px 16px; gap: 12px; }
  .brand img { height: 44px; padding: 5px 8px; }
  /* زر عرض السعر متوفر في الشريط السفلي الثابت، فلا داعي لتكراره هنا */
  .header-cta .btn-gold { display: none; }
}

/* Mobile sticky bar */
.mobile-quote-bar { display: none; }
@media (max-width: 700px) {
  .mobile-quote-bar {
    display: flex;
    position: fixed;
    bottom: 0; inset-inline-start: 0; inset-inline-end: 0;
    background: var(--white);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
    padding: 12px 16px;
    gap: 10px;
    z-index: 850;
  }
  .mobile-quote-bar .btn { flex: 1; padding: 13px; font-size: 14px; }
  body { padding-bottom: 74px; }
  .whatsapp-float { bottom: 88px; width: 54px; height: 54px; }
  .back-to-top { bottom: 88px; }
}

/* Loading / error state for JSON content */
.content-error {
  max-width: 760px;
  margin: 40px auto;
  padding: 22px;
  border: 1px solid #F0DFAF;
  background: #FFF8E7;
  border-radius: 10px;
  color: #6B5310;
  font-size: 14.5px;
  line-height: 1.9;
}
.content-error code { background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 4px; direction: ltr; display: inline-block; }

/* ---------- تقليل الحركة لمن يفضل ذلك ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .main-nav a { opacity: 1 !important; transform: none !important; }
  .card:hover, .value-card:hover, .project-card:hover,
  .contact-info-card:hover, .filter-btn:hover,
  .btn:hover, .footer-social a:hover { transform: none !important; }
  .product-card:hover .thumb img,
  .application-card:hover img,
  .project-card:hover img,
  .about-grid .media:hover img { transform: none !important; }
  .lightbox figure { transform: none !important; }
}

/* =========================================================
   إضافات المرحلة 1 — تبديل اللغة وبنية المنتجات الهرمية
   Phase 1 — language switch & product hierarchy
   ========================================================= */

/* ---------- زر تبديل اللغة ---------- */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #E6EAF0;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--font-en);
  letter-spacing: .4px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lang-btn:active { transform: scale(.96); }
@media (max-width: 480px) {
  .lang-btn span { display: none; }
  .lang-btn { padding: 8px 10px; }
}

/* ---------- بطاقة الفئة ---------- */
.category-card { display: flex; flex-direction: column; height: 100%; }
.category-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.category-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .thumb img { transform: scale(1.06); }
.category-card:hover { border-color: rgba(135, 9, 45, .25); }
.category-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; position: relative; }
.category-card .cat-icon {
  position: absolute;
  top: -26px;
  inset-inline-start: 22px;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background-color var(--transition);
}
.category-card .cat-icon svg { width: 24px; height: 24px; }
.category-card:hover .cat-icon { transform: translateY(-3px); background: var(--maroon); }
.category-card h3 { margin: 14px 0 8px; font-size: 19px; }
.category-card p { font-size: 14.5px; margin-bottom: 14px; }
.category-card .cat-count {
  margin-top: auto;
  align-self: flex-start;
  background: var(--light-gray);
  color: var(--maroon);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ---------- بطاقة المنتج ---------- */
.product-card h3 a { transition: color var(--transition); }
.product-card:hover h3 a { color: var(--maroon); }
.product-card .thumb { display: block; }

/* ---------- صفحة تفاصيل المنتج ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 46px;
  align-items: start;
}
@media (max-width: 980px) { .product-layout { grid-template-columns: 1fr; gap: 34px; } }

.product-main-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 34px;
  background: var(--light-gray);
}
.product-main-image img { width: 100%; height: auto; transition: transform .6s ease; cursor: zoom-in; }
.product-main-image:hover img { transform: scale(1.03); }

.product-block { margin-bottom: 38px; }
.product-block h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #EEF1F5;
  position: relative;
}
.product-block h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 60px;
  height: 2px;
  background: var(--maroon);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { border: 1px solid #E2E6EC; padding: 11px 14px; text-align: start; }
.spec-table th { background: var(--navy); color: var(--white); width: 36%; font-weight: 700; }
.spec-source { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.datasheet-pending {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFF8E7;
  border: 1px solid #F0DFAF;
  border-radius: 8px;
  padding: 16px 18px;
  color: #6B5310;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.datasheet-pending svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }

.product-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }

.product-video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #000; }
.product-video video { width: 100%; display: block; }

.product-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
@media (max-width: 980px) { .product-aside { position: static; } }
.aside-card {
  background: var(--white);
  border: 1px solid #EEF1F5;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px 24px;
  display: grid;
  gap: 12px;
}
.aside-card h3 { font-size: 17px; font-family: var(--font-en); margin-bottom: 4px; }
.aside-card .btn { width: 100%; }
.aside-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid #EEF1F5;
  font-size: 14px;
}
.aside-meta span { color: var(--muted); font-weight: 600; }
.aside-meta a { color: var(--maroon); font-weight: 700; }
.aside-meta a:hover { text-decoration: underline; }

/* ---------- تقليل الحركة — العناصر الجديدة ---------- */
@media (prefers-reduced-motion: reduce) {
  .category-card:hover .thumb img,
  .category-card:hover .cat-icon,
  .product-main-image:hover img,
  .gallery-item:hover img { transform: none !important; }
  .lang-btn:active { transform: none !important; }
}

/* =========================================================
   إضافات المرحلة 2 — الواجهة الرئيسية
   Phase 2 — home page hero, about and why sections
   ========================================================= */

/* ---------- عنوان الواجهة ---------- */
.hero h1 .hero-accent { color: var(--gold); }

.hero-title {
  color: var(--white);
  font-size: clamp(38px, 7vw, 82px);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-lead {
  color: #C9D2DE;
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 640px;
  margin-bottom: 36px;
}

/* ظهور متدرّج خفيف لعناصر الواجهة */
.hero-stagger > * { opacity: 0; transform: translateY(18px); }
.hero-ready .hero-stagger > * { animation: heroIn .7s cubic-bezier(.2, .7, .3, 1) forwards; }
.hero-ready .hero-stagger > *:nth-child(1) { animation-delay: .05s; }
.hero-ready .hero-stagger > *:nth-child(2) { animation-delay: .18s; }
.hero-ready .hero-stagger > *:nth-child(3) { animation-delay: .31s; }
.hero-ready .hero-stagger > *:nth-child(4) { animation-delay: .44s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- زر ثانوي بحدود ذهبية ---------- */
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.btn-outline-gold:active { background: #b08e1f; border-color: #b08e1f; color: var(--navy); }

/* حالة الضغط واضحة ومختلفة عن حالة المرور */
.btn-primary:active { background: #6d0724; box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.28); }
.btn-gold:active { filter: brightness(0.92); box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.18); }
.btn-outline-navy:active { background: #071528; color: var(--white); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* أزرار الواجهة على الجوال */
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- قسم «عن hi-tech coating» ---------- */
.about-heading { margin-bottom: 10px; }
.about-heading .brand-name { font-size: 1.05em; }
.section-rule {
  width: 74px;
  height: 4px;
  background: var(--maroon);
  border-radius: 2px;
  margin-bottom: 26px;
}
.section-head .section-rule { margin-inline: auto; }

/* ---------- بطاقات «لماذا تختار» ---------- */
.why-card {
  background: var(--white);
  border: 1px solid #EEF1F5;
  border-radius: var(--radius);
  padding: 38px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.45);
}
.why-card .icon-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 2px solid rgba(11, 31, 59, 0.10);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.why-card .icon-ring svg { width: 34px; height: 34px; }
.why-card:hover .icon-ring {
  background: var(--navy);
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.05);
}
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { font-size: 14.5px; }

/* ---------- تقليل الحركة — عناصر المرحلة 2 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .why-card:hover, .why-card:hover .icon-ring { transform: none !important; }
  .btn-outline-gold:hover { transform: none !important; }
}

/* =========================================================
   المرحلة 3 — نظام الظلال الملونة والتفاعل الموحّد
   Phase 3 — coloured shadow & interaction system
   قاعدة: لون الظل يختلف دائمًا عن لون العنصر نفسه.
   ========================================================= */
:root {
  /* ظل ماروني للعناصر الكحلية، وظل كحلي للعناصر المارونية،
     وظل ذهبي للعناصر الفاتحة — فيختلف الظل عن لون العنصر دائمًا. */
  --sh-maroon: 0 10px 26px rgba(135, 9, 45, 0.26);
  --sh-maroon-lg: 0 16px 38px rgba(135, 9, 45, 0.34);
  --sh-navy: 0 10px 26px rgba(11, 31, 59, 0.28);
  --sh-navy-lg: 0 16px 38px rgba(11, 31, 59, 0.36);
  --sh-gold: 0 10px 26px rgba(201, 162, 39, 0.34);
  --sh-gold-lg: 0 16px 38px rgba(201, 162, 39, 0.42);
  --sh-teal: 0 10px 26px rgba(21, 122, 122, 0.26);
  --ease-soft: cubic-bezier(.22, .7, .3, 1);
  --t-soft: .28s var(--ease-soft);
}

/* ---------- الأزرار: ظل ملوّن + مرور + ضغط ---------- */
.btn-primary { box-shadow: var(--sh-navy); }                 /* زر ماروني ← ظل كحلي */
.btn-primary:hover { box-shadow: var(--sh-navy-lg); transform: translateY(-3px); }
.btn-primary:active { transform: translateY(-1px) scale(.985); box-shadow: inset 0 3px 10px rgba(0,0,0,.3); }

.btn-gold { box-shadow: var(--sh-maroon); }                  /* زر ذهبي ← ظل ماروني */
.btn-gold:hover { box-shadow: var(--sh-maroon-lg); transform: translateY(-3px); }
.btn-gold:active { transform: translateY(-1px) scale(.985); box-shadow: inset 0 3px 10px rgba(0,0,0,.22); }

.btn-outline-gold { box-shadow: 0 6px 18px rgba(11, 31, 59, 0.30); }
.btn-outline-gold:hover { box-shadow: var(--sh-navy-lg); transform: translateY(-3px); }

.btn-outline-navy { box-shadow: 0 6px 16px rgba(201, 162, 39, 0.22); }  /* حدود كحلية ← ظل ذهبي */
.btn-outline-navy:hover { box-shadow: var(--sh-gold); transform: translateY(-3px); }

.btn-datasheet { box-shadow: 0 6px 16px rgba(11, 31, 59, 0.12); }
.btn-datasheet:hover { box-shadow: var(--sh-maroon); transform: translateY(-2px); }
.btn-datasheet:active { transform: translateY(0) scale(.985); box-shadow: inset 0 2px 8px rgba(0,0,0,.25); }

.btn-outline:hover { box-shadow: var(--sh-gold); transform: translateY(-3px); }
.btn-outline:active { transform: translateY(-1px) scale(.985); }

.lang-btn { box-shadow: 0 4px 12px rgba(201, 162, 39, 0.18); }
.lang-btn:hover { box-shadow: var(--sh-gold); transform: translateY(-2px); }

/* ---------- البطاقات: ظل ملوّن موحّد ---------- */
.card,
.value-card,
.why-card,
.project-card,
.contact-info-card,
.aside-card,
.highlight-item {
  transition: transform var(--t-soft), box-shadow var(--t-soft), border-color var(--t-soft);
}
.card:hover,
.value-card:hover,
.project-card:hover,
.contact-info-card:hover {
  box-shadow: var(--sh-navy-lg);
  border-color: rgba(135, 9, 45, 0.22);
  transform: translateY(-6px);
}
.why-card:hover { box-shadow: var(--sh-maroon-lg); }
.category-card:hover { box-shadow: var(--sh-maroon-lg); }
.product-card:hover { box-shadow: var(--sh-navy-lg); }
.application-card { transition: transform var(--t-soft), box-shadow var(--t-soft); }
.application-card:hover { transform: translateY(-6px); box-shadow: var(--sh-navy-lg); }

/* ضغط البطاقات القابلة للنقر */
.category-card:active,
.application-card:active,
.project-card:active { transform: translateY(-2px) scale(.992); }

/* ---------- الأيقونات: هالة ملونة وحركة ---------- */
.icon-wrap,
.icon-ring,
.cat-icon,
.reason-num {
  transition: transform var(--t-soft), box-shadow var(--t-soft),
              background-color var(--t-soft), color var(--t-soft), border-color var(--t-soft);
}
.icon-wrap { box-shadow: 0 6px 16px rgba(135, 9, 45, 0.18); }
.value-card:hover .icon-wrap,
.feature-card:hover .icon-wrap {
  transform: translateY(-3px) scale(1.06);
  box-shadow: var(--sh-maroon);
  background: var(--navy);
  color: var(--gold);
}
.why-card .icon-ring { box-shadow: 0 8px 20px rgba(11, 31, 59, 0.14); }
.why-card:hover .icon-ring { box-shadow: var(--sh-gold); }
.category-card .cat-icon { box-shadow: var(--sh-maroon); }
.category-card:hover .cat-icon { box-shadow: var(--sh-gold); }
.contact-info-card .icon-wrap { box-shadow: 0 6px 16px rgba(201, 162, 39, 0.22); }
.contact-info-card:hover .icon-wrap { transform: translateY(-3px) scale(1.06); box-shadow: var(--sh-gold); }

/* ---------- شريط المزايا: أيقونات وحركة ---------- */
.highlight-item { padding: 30px 18px; }
.highlight-item .hl-icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--light-gray);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(11, 31, 59, 0.12);
  transition: transform var(--t-soft), background-color var(--t-soft),
              color var(--t-soft), box-shadow var(--t-soft);
}
.highlight-item .hl-icon svg { width: 24px; height: 24px; }
.highlight-item:hover { transform: translateY(-5px); }
.highlight-item:hover .hl-icon {
  background: var(--navy); color: var(--gold);
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  box-shadow: var(--sh-gold);
}
.highlight-item .hl-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 13px; font-weight: 800;
  color: var(--maroon);
  transition: gap var(--t-soft), color var(--t-soft);
}
.highlight-item .hl-cta svg { width: 14px; height: 14px; }
.highlight-item:hover .hl-cta { gap: 11px; color: var(--maroon-light); }

/* ---------- بطاقات الحلول والتطبيقات (بنفس شكل بطاقات المنتجات) ---------- */
.solution-card { display: flex; flex-direction: column; height: 100%; }
.solution-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.solution-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease-soft); }
.solution-card:hover .thumb img { transform: scale(1.07); }
.solution-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; position: relative; }
.solution-card .cat-icon {
  position: absolute; top: -26px; inset-inline-start: 22px;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-maroon);
  transition: transform var(--t-soft), background-color var(--t-soft), box-shadow var(--t-soft);
}
.solution-card .cat-icon svg { width: 24px; height: 24px; }
.solution-card:hover .cat-icon { transform: translateY(-3px); background: var(--maroon); box-shadow: var(--sh-gold); }
.solution-card h3 { margin: 14px 0 8px; font-size: 19px; }
.solution-card p { font-size: 14.5px; margin-bottom: 14px; }
.solution-card .tag-list { margin-top: auto; margin-bottom: 0; }

/* ---------- خارطة سير آلية العمل ---------- */
.roadmap {
  background: var(--white);
  border: 1px solid #EEF1F5;
  border-radius: var(--radius);
  box-shadow: var(--sh-navy);
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  /* مدة التفاعل متناسقة مع بقية الموقع (0.28s)؛
     ظهور القسم عند التمرير يبقى بنفس مدة باقي الأقسام. */
  transition: transform var(--t-soft), box-shadow var(--t-soft), opacity .7s ease;
}
@media (max-width: 700px) { .roadmap { padding: 30px 20px; } }
.roadmap-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.roadmap-track::before {
  content: "";
  position: absolute;
  top: 34px;
  inset-inline: 10%;
  height: 3px;
  background: linear-gradient(to left, var(--gold), var(--maroon));
  border-radius: 2px;
  opacity: .35;
}
html[dir="ltr"] .roadmap-track::before { background: linear-gradient(to right, var(--gold), var(--maroon)); }
.roadmap-step { text-align: center; position: relative; z-index: 1; }
.roadmap-step .step-ring {
  width: 68px; height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--light-gray);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 31, 59, 0.14);
  transition: transform var(--t-soft), background-color var(--t-soft),
              color var(--t-soft), border-color var(--t-soft), box-shadow var(--t-soft);
}
.roadmap-step .step-ring svg { width: 26px; height: 26px; }
.roadmap-step:hover .step-ring {
  background: var(--navy); border-color: var(--gold); color: var(--gold);
  transform: translateY(-4px) scale(1.06);
  box-shadow: var(--sh-gold);
}
.roadmap-step .step-num {
  display: inline-block;
  min-width: 26px;
  margin-bottom: 8px;
  font-size: 12.5px; font-weight: 800;
  color: var(--maroon);
  background: var(--light-gray);
  border-radius: 20px;
  padding: 2px 10px;
}
.roadmap-step h4 { font-size: 16px; margin-bottom: 6px; }
.roadmap-step p { font-size: 13.5px; }
@media (max-width: 860px) {
  .roadmap-track { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .roadmap-track::before { display: none; }
}
@media (max-width: 480px) { .roadmap-track { grid-template-columns: 1fr; } }

/* ---------- تقليل الحركة — المرحلة 3 ---------- */
@media (prefers-reduced-motion: reduce) {
  .highlight-item:hover, .highlight-item:hover .hl-icon,
  .solution-card:hover .thumb img, .solution-card:hover .cat-icon,
  .roadmap-step:hover .step-ring,
  .application-card:hover, .why-card:hover .icon-ring,
  .value-card:hover .icon-wrap, .contact-info-card:hover .icon-wrap,
  .btn-primary:hover, .btn-gold:hover, .btn-outline:hover,
  .btn-outline-gold:hover, .btn-outline-navy:hover, .btn-datasheet:hover,
  .lang-btn:hover { transform: none !important; }
  .highlight-item:hover .hl-cta { gap: 6px !important; }
}

/* مسافة علوية تكفي للأيقونة البارزة فوق بطاقات الفئات والحلول */
.solutions-grid, .grid.grid-3[data-categories-grid] { padding-top: 30px; }
.solutions-grid { row-gap: 46px; }

/* ---------- بطاقتا الرؤية والرسالة ---------- */
.vm-card {
  padding: 44px 36px;
  text-align: center;
  border: none;
  color: var(--white);
}
.vm-card h3 { color: var(--white); margin-bottom: 12px; font-size: 22px; }
.vm-card p { font-size: 15.5px; }
.vm-card .icon-wrap {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: var(--gold);
}
.vm-card .icon-wrap svg { width: 32px; height: 32px; }
.vm-vision { background: var(--navy); box-shadow: var(--sh-maroon); }
.vm-vision p { color: #C9D2DE; }
.vm-vision:hover { box-shadow: var(--sh-maroon-lg); }
.vm-mission { background: var(--maroon); box-shadow: var(--sh-navy); }
.vm-mission p { color: #F1DDE2; }
.vm-mission:hover { box-shadow: var(--sh-navy-lg); }
.vm-card:hover .icon-wrap {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .vm-card:hover .icon-wrap { transform: none !important; }
}

/* ظل ملوّن لكل عنصر في شريط المزايا — أوضح عند المرور */
.highlights-inner { overflow: visible; }
.highlight-item {
  position: relative;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(135, 9, 45, 0.10);
}
.highlight-item:hover {
  z-index: 2;
  box-shadow: var(--sh-maroon-lg);
  border-inline-start-color: transparent;
}
.highlight-item:active { transform: translateY(-2px) scale(.99); }


/* ==========================================================================
   بطاقة «الصورة الأصلية قيد التجهيز» / Original-photo-pending placeholder
   تُعرض بدل عنصر <img> عندما يكون مسار الصورة فارغًا في content/*.json
   لا تستخدم أي ملف صورة، فلا يوجد طلب شبكة ولا 404.
   النسبة تُمرَّر عبر المتغير --ar فتطابق نسبة الصورة النهائية تمامًا،
   وبذلك لا يتغيّر ارتفاع البطاقة عند إضافة الصورة الحقيقية لاحقًا.
   ========================================================================== */
.img-pending {
  --ar: 4 / 3;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: var(--ar);
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, rgba(11, 31, 59, .045), rgba(11, 31, 59, .10)),
    #eef1f5;
  border: 1px solid rgba(11, 31, 59, .10);
  color: #5a6b7e;
  overflow: hidden;
}
.img-pending::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 31, 59, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 59, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .55;
  pointer-events: none;
}
.img-pending svg {
  width: 30px;
  height: 30px;
  stroke: #8b9bad;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
}
.img-pending span {
  position: relative;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .1px;
  max-width: 90%;
}
.bg-navy .img-pending, .product-layout .img-pending {
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)), #16273d;
  border-color: rgba(255, 255, 255, .12);
  color: #a9b8c8;
}
.bg-navy .img-pending svg, .product-layout .img-pending svg { stroke: #7f93a8; }
@media (max-width: 600px) {
  .img-pending span { font-size: 12px; }
  .img-pending svg { width: 24px; height: 24px; }
}

/* =========================================================
   شبكة المنتجات الكاملة — شريط التصفية والوسوم والألوان
   أُضيفت مع دمج كتالوج المنتجات (51 منتجًا · 7 فئات · 8 وسوم)
   ========================================================= */
.product-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.product-filters .filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.product-filters .filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  min-width: 54px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  min-height: 40px;
  border-radius: 22px;
  border: 1.5px solid #DFE3E9;
  background: var(--white);
  color: var(--slate);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.filter-chip:hover { border-color: var(--maroon); color: var(--maroon); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-chip .chip-count {
  font-size: 12px;
  font-weight: 700;
  opacity: .72;
  font-family: var(--font-en);
}
.filter-result {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 22px;
}

/* بطاقة المنتج — الكود والوسوم */
.product-code {
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--maroon);
  direction: ltr;
  unicode-bidi: isolate;
}
.product-card .product-code { display: block; margin-bottom: 8px; }
.product-card .tag-list { margin: 0 0 10px; gap: 6px; }
.product-card .tag-list .tag-pill { font-size: 11.5px; padding: 4px 11px; }
.product-card p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* بطاقة فئة بلا صورة أو أيقونة */
.category-card.is-text-only .body { padding-top: 26px; }
.category-card.is-soon { opacity: .78; cursor: default; }
.category-card.is-soon:hover { border-color: #E2E6EC; transform: none; }
.category-card .cat-count.is-soon { background: rgba(201, 162, 39, .16); color: #7a6212; }
.category-card .cat-icon img { width: 34px; height: 34px; object-fit: contain; }

/* صفحة المنتج — الألوان والعبوات */
.swatch-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
}
.swatch { text-align: center; }
.swatch-chip {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid #D8DDE4;
}
.swatch-code {
  display: block;
  margin-top: 6px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  direction: ltr;
  unicode-bidi: isolate;
}
.swatch-systems { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.swatch-systems .tag-pill { font-size: 12px; padding: 5px 12px; direction: ltr; unicode-bidi: isolate; }
.pack-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pack-pill {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 6px;
  direction: ltr;
  unicode-bidi: isolate;
}
.aside-meta-block { display: block; }
.aside-meta-block > span:first-child { display: block; margin-bottom: 8px; }

@media (max-width: 700px) {
  .product-filters .filter-label { min-width: 100%; }
  .filter-chip { font-size: 13px; padding: 8px 14px; }
  .swatch-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
}
.product-card.is-text-only .body { padding-top: 24px; }
.product-card.is-text-only p { -webkit-line-clamp: 5; }


/* =========================================================
   صفحة المنتج — تباعد الأقسام وجدول المواصفات والأيقونات
   ========================================================= */

/* القاعدة العامة section{padding:90px 0} كانت تضيف ~180px بين كل كتلتين.
   كتل المنتج عناصر <section> فتُستثنى صراحةً. */
.product-block { padding: 0; margin: 0 0 30px; }
.product-block:last-child { margin-bottom: 0; }
.product-block h2 { font-size: 20px; margin-bottom: 14px; padding-bottom: 9px; }
.product-block > p { margin: 0; }
.product-block .check-list { margin: 0; }
.product-block .check-list li { margin-bottom: 8px; }
.product-block .check-list li:last-child { margin-bottom: 0; }

/* ---------- شبكة المواصفات ---------- */
.spec-grid {
  margin: 0;
  border: 1px solid #E2E6EC;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
.spec-row {
  display: grid;
  grid-template-columns: 44px minmax(132px, 168px) 1fr;
  align-items: center;
  gap: 0 12px;
  padding: 11px 16px;
  border-top: 1px solid #EDF0F4;   /* فاصل خفيف بين الصفوف */
}
.spec-row:first-child { border-top: 0; }
.spec-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: var(--light-gray);
}
.spec-ic img { width: 22px; height: 22px; object-fit: contain; display: block; }
/* صف بلا أيقونة في المصدر: تبقى المساحة محجوزة للمحاذاة بلا مربع فارغ ظاهر */
.spec-ic:empty { background: transparent; }
.spec-label {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.45;
}
.spec-value {
  margin: 0;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.spec-source { margin-top: 12px; }

@media (max-width: 700px) {
  .spec-row {
    grid-template-columns: 32px 1fr;
    gap: 4px 10px;
    padding: 12px 14px;
  }
  .spec-ic { width: 28px; height: 28px; flex-basis: 28px; }
  .spec-ic img { width: 20px; height: 20px; }
  .spec-label { grid-column: 2; font-size: 13.5px; }
  .spec-value { grid-column: 2; font-size: 14px; }
}

/* ---------- أيقونة العبوة — مساحة ثابتة لا يضغطها النص ---------- */
.pack-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pack-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  min-height: 34px;
}
.pack-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}
.pack-ic img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* ---------- روابط أكواد المخفف والمصلّب ---------- */
.code-list { display: flex; flex-wrap: wrap; gap: 8px; }
.code-link {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--light-gray);
  border: 1px solid #DFE3E9;
  transition: border-color var(--transition), background-color var(--transition);
}
.code-link:hover { border-color: var(--maroon); background: var(--white); }
.code-link.is-plain { opacity: .7; }
.code-link .product-code { color: var(--navy); }
.code-link:hover .product-code { color: var(--maroon); }

/* ---------- الصورة بمقاسها الأصلي دون تكبير ---------- */
.product-main-image { max-width: 100%; margin: 0 auto 26px; text-align: center; }
.product-main-image a { display: inline-block; max-width: 100%; }
.product-main-image img { width: auto; max-width: 100%; height: auto; background: var(--white); }
.product-card .thumb img,
.category-card .thumb img { object-fit: contain; background: var(--white); padding: 10px; }
.product-card .thumb { aspect-ratio: 4 / 3; }
.product-card .thumb img { padding: 8px; }
.product-card:hover .thumb img { transform: none; }

/* ---------- الجوال: تفاصيل المنتج ظاهرة افتراضيًا ----------
   لا يتوقف ظهور أي قسم على التمرير أو نسبة تقاطع العنصر. */
@media (max-width: 980px) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .product-layout { display: block; }
  .product-content, .product-aside { width: 100%; max-width: 100%; }
  .product-aside { position: static; margin-top: 28px; }
  .product-block { overflow: visible; }
}
