/* ==========================================================
   شركة أبناء الحاج عيد حمادة التجارية
   الألوان مأخوذة من الشعار: أخضر، أحمر، أسود
   ========================================================== */

:root {
  --green: #3aa935;
  --green-600: #2e8f2a;
  --green-700: #237a2a;
  --green-900: #0e3a1c;
  --green-950: #0a2914;
  --green-50: #eef7ed;
  --red: #e31f26;
  --ink: #17201a;
  --text: #3c4640;
  --muted: #6b756f;
  --bg: #ffffff;
  --bg-alt: #f4f7f5;
  --line: #dfe6e1;

  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(14, 58, 28, .08);
}

:root[lang="en"] {
  --font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.4; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { flex-shrink: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------- عناصر مشتركة ---------------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section-alt { background: var(--bg-alt); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-700);
}
.label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--green);
}
.label--light { color: #9fd89b; }

.title {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
}
.lead { font-size: 18px; color: var(--ink); }

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head .label::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--green);
}
.section-desc { margin: 0; color: var(--muted); font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-900); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-block { width: 100%; padding-block: 14px; }

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 28px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
}
.checklist .icon { color: var(--green-600); margin-top: 5px; }

/* ---------------- الشريط العلوي ---------------- */
.topbar {
  background: var(--green-950);
  color: rgba(255, 255, 255, .85);
  font-size: 13.5px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}
.topbar-list { display: flex; flex-wrap: wrap; gap: 28px; }
.topbar-list li,
.topbar-loc { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar .icon { color: var(--green); }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ---------------- الهيدر ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 76px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 17px; color: var(--ink); }
.brand-text small { font-size: 13px; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: 8px;
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s;
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--green-700); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  inset-inline: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- السلايدر ---------------- */
.hero { position: relative; background: var(--green-950); }

#hero-slider .splide__slide {
  position: relative;
  height: min(80vh, 720px);
  min-height: 540px;
  overflow: hidden;
}
#hero-slider .splide__slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s ease-out;
}
#hero-slider .splide__slide.is-active > img { transform: scale(1); }
#hero-slider .splide__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(10, 41, 20, .92) 0%, rgba(10, 41, 20, .7) 42%, rgba(10, 41, 20, .15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 60px;
}
.hero-text {
  max-width: 640px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s .25s, transform .7s .25s;
}
.splide__slide.is-active .hero-text { opacity: 1; transform: none; }
.hero-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
  background: var(--green-700);
  border-radius: 3px;
}
.hero-text h1,
.hero-text h2 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.3;
  margin-bottom: 18px;
}
.hero-caption {
  font-size: 18px;
  color: rgba(255, 255, 255, .88);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 84px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}
.hero-counter { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.hero-counter b { font-size: 20px; font-weight: 700; margin-inline-end: 6px; }
.hero-counter span { opacity: .7; }
.hero-progress { flex: 1; max-width: 320px; height: 2px; background: rgba(255, 255, 255, .25); position: relative; }
.hero-progress span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--green); }
.hero-controls .splide__arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.hero-controls .splide__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.hero-controls .splide__arrow:hover { background: #fff; color: var(--green-900); }

/* ---------------- مجالات العمل (أسفل السلايدر) ---------------- */
.highlights { position: relative; z-index: 5; margin-top: -56px; }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--green);
  overflow: hidden;
}
.highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 24px;
  text-decoration: none;
  border-inline-start: 1px solid var(--line);
  transition: background .2s;
}
.highlight:first-child { border-inline-start: 0; }
.highlight:hover { background: var(--green-50); }
.highlight-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
}
.highlight strong { display: block; color: var(--ink); font-size: 16px; }
.highlight small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ---------------- من نحن ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.profile-body { padding: 26px 28px 20px; }
.profile-body h3 {
  font-size: 18px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.profile-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.profile-list div:last-child { border-bottom: 0; }
.profile-list dt { color: var(--muted); }
.profile-list dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------------- الرؤية والرسالة والقيم ---------------- */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vmv {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.vmv-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--green-50);
  color: var(--green-700);
}
.vmv h3 { font-size: 22px; margin-bottom: 12px; }
.vmv p { margin: 0; }
.vmv--vision { background: var(--green-900); border-color: var(--green-900); color: rgba(255, 255, 255, .85); }
.vmv--vision h3 { color: #fff; }
.vmv--vision .vmv-icon { background: rgba(255, 255, 255, .1); color: var(--green); }
.values li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.values li:last-child { border-bottom: 0; }
.values strong { color: var(--ink); }

/* ---------------- المسيرة ---------------- */
.timeline { position: relative; padding-inline-start: 76px; }
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.phase { position: relative; }
.phase + .phase { margin-top: 40px; }
.phase-marker {
  position: absolute;
  inset-inline-start: -76px;
  top: 28px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  color: var(--green-700);
  font-weight: 700;
}
.phase-marker--now { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.phase-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.phase-body { padding: 32px 36px; }
.phase-period {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-700);
}
.phase-body h3 { font-size: 22px; margin-bottom: 12px; }
.phase-list li {
  position: relative;
  padding: 8px 0;
  padding-inline-start: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.phase-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 2px;
}
.phase-list strong { color: var(--ink); }
.phase-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* أرقام التسجيل الرسمية */
.profile-list dd.num { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
[dir="rtl"] .profile-list dd.num { text-align: right; }
.legal-ids { display: flex; flex-wrap: wrap; gap: 4px 18px; opacity: .8; }
.legal-ids b { font-weight: 600; color: #fff; letter-spacing: .03em; }

/* ---------------- الخدمات ---------------- */
.services-grid {
  --cols: 3;
  --gap: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
.services-grid > .service { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.service {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .25s, transform .25s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon { color: var(--green-700); margin-bottom: 18px; }
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { font-size: 15px; }
.service ul { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.service li {
  position: relative;
  padding: 5px 0;
  padding-inline-start: 18px;
  font-size: 14.5px;
  color: var(--ink);
}
.service li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------------- الخدمات اللوجستية ---------------- */
.logistics { background: var(--green-900); color: rgba(255, 255, 255, .82); }
.logistics .title,
.logistics .lead { color: #fff; }
.logistics .lead { font-size: 17px; opacity: .9; }
.logistics-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: 56px;
}
.logistics-map { display: block; margin-block: -60px -40px; }
.logistics-map img { width: 100%; height: auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}
.step-num {
  position: absolute;
  top: 20px;
  inset-inline-end: 22px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .14);
}
.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
}
.step h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; }

.capabilities {
  margin-top: 40px;
  padding: 30px 32px;
  background: #fff;
  border-radius: var(--radius);
  color: var(--text);
}
.capabilities h3 { font-size: 18px; margin-bottom: 16px; }
.capabilities ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 28px;
}
.capabilities li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.capabilities .icon { color: var(--green-600); margin-top: 4px; }

/* ---------------- نقاط القوة ---------------- */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strength {
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  overflow: hidden;
}
.strength::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green);
}
.strength-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
}
.strength h3 { font-size: 20px; margin-bottom: 10px; }
.strength p { font-size: 15px; }
.strength li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}
.strength li::before { content: "—"; color: var(--green-600); }

/* ---------------- القطاعات ---------------- */
.sectors { background: var(--green-700); color: #fff; padding-block: 36px; }
.sectors-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sectors h2 { color: #fff; font-size: 20px; white-space: nowrap; }
.sectors-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sectors-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgba(255, 255, 255, .3);
}

/* ---------------- عملاؤنا ---------------- */
.clients { padding-block: clamp(56px, 6vw, 80px); }
.clients-head { max-width: 640px; margin-bottom: 32px; padding-inline-end: 0; }
.clients-head .section-desc { font-size: 16px; }
.clients-slider { position: relative; }
.clients-arrows {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 32px);
  display: flex;
  gap: 8px;
}
.clients-arrows .splide__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.clients-arrows .splide__arrow:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.client {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.client:hover { border-color: #bfd9c2; }
.client > a { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.client-logo {
  display: grid;
  place-items: center;
  height: 130px;
  padding: 22px 24px;
}
.client-logo img {
  width: 100%;
  height: 80px;
  object-fit: contain;
}
.client-name {
  margin-top: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

/* ---------------- الموقع ---------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.map {
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e6ebe7;
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }
.location-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-list { margin-bottom: 24px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
}
.contact-list small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.contact-list strong,
.contact-list a { display: block; color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--green-700); }
[dir="rtl"] .contact-list a[dir="ltr"] { text-align: right; }
.location-card .btn { margin-top: auto; }

/* ---------------- التواصل ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-intro .checklist { grid-template-columns: 1fr; }
.contact-form {
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field { display: block; margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field em { color: var(--red); font-style: normal; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid #cfd8d2;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(58, 169, 53, .15);
}
.field textarea { resize: vertical; min-height: 130px; }
[dir="rtl"] .field input[dir="ltr"]::placeholder { text-align: right; }
.field small { display: block; margin-top: 4px; color: var(--red); font-size: 13px; }
.field.has-error input,
.field.has-error textarea { border-color: var(--red); }
/* صفحة الخطأ 404 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px var(--gutter);
  text-align: center;
  background: var(--bg-alt);
}
.error-code { margin: 18px 0 0; font-size: 72px; font-weight: 700; line-height: 1; color: var(--green-700); }
.error-page h1 { font-size: 26px; }
.error-page p { color: var(--muted); }

/* حقل فخ السبام — مخفي عن الزوار */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.form-success {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: var(--green-50);
  border: 1px solid #bfe3bc;
  border-radius: var(--radius);
  color: var(--green-900);
  font-weight: 500;
}

/* ---------------- الفوتر ---------------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-block: 64px 48px;
}
.footer-about img {
  width: 110px;
  padding: 8px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--radius);
}
.footer-about p { margin: 0; max-width: 320px; }
.site-footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--green); margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.footer-bottom p { margin: 0; }


/* ---------------- النسخة الإنجليزية (LTR) ---------------- */
[dir="ltr"] #hero-slider .splide__slide::before {
  background: linear-gradient(to right, rgba(10, 41, 20, .92) 0%, rgba(10, 41, 20, .7) 42%, rgba(10, 41, 20, .15) 100%);
}
/* أيقونات الأسهم مرسومة للعربية؛ نعكسها في الإنجليزية */
[dir="ltr"] .splide__arrow svg,
[dir="ltr"] .lightbox-nav svg { transform: scaleX(-1); }
[dir="ltr"] .brand-text strong { letter-spacing: -.01em; }

.lang-switch {
  padding: 6px 12px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px !important;
  font-weight: 600 !important;
}
.site-nav .lang-switch::after { display: none; }
.lang-switch:hover { border-color: var(--green-600); }

/* ---------------- مشاريعنا ---------------- */
.slider-head { max-width: 640px; margin-bottom: 32px; }
/* مساحة للأسهم بجانب العنوان حتى لا يمرّ النص تحتها */
.clients-head, .slider-head { width: calc(100% - 110px); }
.slider-head .section-desc { font-size: 16px; }
.projects-slider { position: relative; }
.slider-arrows {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 32px);
  display: flex;
  gap: 8px;
}
.slider-arrows .splide__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.slider-arrows .splide__arrow:hover:not(:disabled) { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.slider-arrows .splide__arrow:disabled { opacity: .35; cursor: default; }
/* مساحة داخل المسار حتى لا يُقص ظل البطاقة وحركتها عند التمرير */
.projects-slider .splide__track { padding-block: 6px 26px; }
.projects-slider .splide__slide { display: flex; }
.projects-slider .splide__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
}
.projects-slider .splide__pagination__page {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: width .25s, background .25s;
}
.projects-slider .splide__pagination__page.is-active { width: 28px; background: var(--green-600); }
.project {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .55);
}
.project-period {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-900);
  background: #fff;
  border-radius: 3px;
}
.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.project-body h3 { font-size: 19px; margin-bottom: 10px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.project-meta li { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.project-meta .icon { color: var(--green-600); }
.project-body > p { font-size: 15px; }
.project-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: auto 0 0;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-900);
  background: var(--green-50);
  border-radius: 4px;
}
.project-highlight .icon { color: var(--green-600); }

/* ---------------- خطابات الشكر ---------------- */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.letter {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: start;
  background: none;
  border: 0;
  cursor: zoom-in;
}
.letter-paper {
  display: block;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(14, 58, 28, .08);
  transition: transform .25s, box-shadow .25s;
}
.letter-paper img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; }
.letter:hover .letter-paper,
.letter:focus-visible .letter-paper { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14, 58, 28, .16); }
.letter:focus-visible { outline: none; }
.letter-info { display: block; padding: 14px 4px 0; }
.letter-info strong { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.letter-info small { display: block; color: var(--muted); font-size: 13.5px; }

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 22, 11, .92);
  color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .5); }
.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 24px 16px;
}
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.lightbox figure img {
  max-width: min(760px, 100%);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: 15px;
  text-align: center;
}
.lightbox-pdf { display: inline-flex; align-items: center; gap: 6px; color: #9fd89b; font-weight: 600; }
.lightbox-pdf[hidden] { display: none; }
.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  font-size: 28px;
  line-height: 1;
}
.lightbox-nav[hidden] { visibility: hidden; display: grid; }

/* ---------------- الشاشات المتوسطة والصغيرة ---------------- */
@media (max-width: 1100px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(3) { border-inline-start: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px rgba(0, 0, 0, .06);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }

  .services-grid { --cols: 2; }
  .lang-switch { align-self: flex-start; margin-top: 12px; }
}

@media (max-width: 960px) {
  .topbar-list li:nth-child(3) { display: none; }

  .about-grid,
  .logistics-top,
  .location-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .vmv-grid,
  .strengths-grid { grid-template-columns: 1fr; }

  .phase-card { grid-template-columns: 1fr; }
  .phase-media { order: -1; }
  .phase-media img { min-height: 0; aspect-ratio: 16 / 8; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .logistics-map { max-width: 560px; margin-inline: auto; }
  .capabilities ul { grid-template-columns: 1fr 1fr; }

  .sectors-list { grid-template-columns: repeat(2, 1fr); flex-basis: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .letters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .lead { font-size: 16px; }
  .slider-head, .clients-head { width: auto; }
  :root { --header-h: 72px; }
  .topbar { display: none; }
  .brand img { width: 58px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 12px; }

  #hero-slider .splide__slide { height: 82vh; min-height: 520px; }
  .hero-content { align-items: flex-end; padding-bottom: 150px; }
  .hero-caption { font-size: 16px; margin-bottom: 24px; }
  #hero-slider .splide__slide::before {
    background: linear-gradient(to top, rgba(10, 41, 20, .95) 0%, rgba(10, 41, 20, .75) 55%, rgba(10, 41, 20, .3) 100%);
  }
  .hero-controls { bottom: 80px; }
  .hero-progress { max-width: none; }
  .hero-controls .splide__arrow { width: 40px; height: 40px; }

  .highlights { margin-top: -40px; }
  .highlight { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; }
  .highlight-icon { width: 44px; height: 44px; }

  .services-grid { --cols: 1; }
  .slider-arrows { display: none; }
  .letters-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .letter-paper { padding: 6px; }
  .lightbox-nav { position: absolute; bottom: 20px; }
  .lightbox-prev { inset-inline-start: calc(50% - 60px); }
  .lightbox-next { inset-inline-end: calc(50% - 60px); }
  .lightbox figure img { max-height: calc(100vh - 190px); }

  .checklist,
  .steps,
  .capabilities ul,
  .sectors-list,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .profile-list div { grid-template-columns: 1fr; gap: 0; }

  .timeline { padding-inline-start: 0; }
  .timeline::before,
  .phase-marker { display: none; }
  .phase-body { padding: 24px 22px; }

  .clients-slider { display: flex; flex-direction: column-reverse; }
  .clients-arrows { position: static; justify-content: center; margin-top: 20px; }
  .client-logo { height: 110px; padding: 16px; }
  .client-logo img { height: 64px; }
  .client-name { font-size: 12px; padding: 8px; }

  .map,
  .map iframe { min-height: 320px; }

  .footer-bottom-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #hero-slider .splide__slide > img,
  .hero-text,
  .service { transition: none; }
}
