/* ==========================================================================
   SBG — inner pages: Divisions overview, division detail, Contact, 404.
   Loads after sbg.css (tokens, header, footer, buttons) and sbg-motion.css.
   Layout uses logical properties so <html dir="rtl"> mirrors everything.
   ========================================================================== */

/* ---------- Shared: page hero with its own photo + slow zoom ---------- */
.page-hero--photo::before { display: none; }
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  mix-blend-mode: luminosity;
  transform-origin: center;
  animation: page-hero-zoom 18s ease-in-out infinite alternate;
}
.page-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 61, .55) 0%, rgba(4, 4, 61, 0) 70%);
  pointer-events: none;
}
[dir="rtl"] .page-hero--photo::after { background: linear-gradient(270deg, rgba(4, 4, 61, .55) 0%, rgba(4, 4, 61, 0) 70%); }
.page-hero--photo .container { z-index: 1; }
.page-hero__rule {
  position: relative;
  width: 515px;
  max-width: 100%;
  height: 2px;
  margin-top: 8px;
  background: rgba(204, 204, 204, .3);
}
.page-hero__rule::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 40px;
  background: var(--accent, var(--spring-green));
}
@keyframes page-hero-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }

/* ---------- Shared: section heading ---------- */
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.sec-head__eyebrow { font-weight: 500; font-size: 18px; line-height: 27px; color: var(--emerald); }
.sec-head__title {
  position: relative;
  padding-bottom: 20px;
  font-weight: 600;
  font-size: 39px;
  line-height: 44px;
  color: var(--deep-cove);
}
.sec-head__title::before,
.sec-head__title::after { content: ""; position: absolute; inset-block-end: 0; height: 2px; border-radius: 2px; }
.sec-head__title::before { inset-inline-start: 38px; width: 260px; background: rgba(4, 4, 61, .12); }
.sec-head__title::after { inset-inline-start: 0; width: 40px; background: var(--accent, var(--royal-blue)); }
.sec-head--center { align-items: center; text-align: center; }
.sec-head--center .sec-head__title::before { inset-inline-start: calc(50% - 110px); width: 260px; }
.sec-head--center .sec-head__title::after { inset-inline-start: calc(50% - 130px); }
html[lang="ar"] .sec-head__title { font-family: var(--font-cairo); font-weight: 700; line-height: 56px; }
html[lang="ar"] .sec-head__eyebrow { font-family: var(--font-noto-ar); }

.wrap { padding-inline: 20px; }
.dv-intro .container, .dv-list .container, .dd-overview .container, .dd-services .container,
.dd-process .container, .dd-projects .container, .dd-faq .container, .dd-more .container,
.ct .container { padding-inline: 20px; }

/* ---------- Shared: division side navigation (Enginery "services" menu) ---------- */
.div-nav { display: flex; flex-direction: column; gap: 2px; }
.div-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px 24px;
  background: #fff;
  border-inline-start: 4px solid var(--accent);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: var(--deep-cove);
  transition: background-color .2s ease-out, color .2s ease-out;
}
.div-nav a i { width: 18px; text-align: center; color: var(--accent); transition: color .2s ease-out; }
.div-nav a:hover { background: var(--catskill); }
.div-nav a[aria-current="page"] { background: var(--deep-cove); color: #fff; }
.div-nav a[aria-current="page"] i { color: #fff; }
.div-nav--light a { background: var(--catskill); }
.div-nav--light a:hover { background: #e9edf3; }
html[lang="ar"] .div-nav a { font-family: var(--font-cairo); }

/* ==========================================================================
   Divisions overview
   ========================================================================== */
.dv-intro { padding: 110px 0 120px; background: #fff; overflow: hidden; }
.dv-intro .container { display: grid; grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.dv-intro__media { position: relative; align-self: stretch; min-height: 420px; }
.dv-intro__media::after {
  content: "";
  position: absolute;
  inset-block-end: -40px;
  inset-inline-end: -40px;
  width: 70%;
  height: 70%;
  background: var(--dots) 0 0 / 15px 15px;
  z-index: 0;
}
.dv-intro__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #1b2440; }
.dv-intro__copy { display: flex; flex-direction: column; gap: 24px; }
.dv-intro__title { font-weight: 600; font-size: 34px; line-height: 40px; color: var(--deep-cove); }
html[lang="ar"] .dv-intro__title { font-family: var(--font-cairo); font-weight: 700; line-height: 52px; }
.dv-intro__text {
  padding-inline-start: 25px;
  border-inline-start: 5px solid var(--emerald);
  font-size: 18px;
  line-height: 30.6px;
  color: var(--comet);
}
html[lang="ar"] .dv-intro__text { font-family: var(--font-noto-ar); }

/* Zig-zag division rows */
.dv-list { padding: 110px 0 60px; background: rgba(246, 246, 246, .79); }
.dv-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 70px;
  color: var(--accent);
}
.dv-row:nth-of-type(even) .dv-row__media { order: 2; }
.dv-row__media { position: relative; aspect-ratio: 16 / 10; background: #1e1e1e; overflow: hidden; }
.dv-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--m-ease, ease); }
.dv-row:hover .dv-row__media img { transform: scale(1.04); }
.dv-row__tag {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 30px;
  padding: 5px 12px;
  background: var(--accent);
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
}
.dv-row__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-inline-start: -70px;
  padding: 50px 50px 70px;
  background: #fff;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .08);
}
.dv-row:nth-of-type(even) .dv-row__body { margin-inline: 0 -70px; }
.dv-row__head { display: flex; align-items: center; gap: 18px; }
.dv-row__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  font-size: 24px;
  color: var(--accent);
}
.dv-row__num {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 50px;
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 34px;
  line-height: 30px;
}
.dv-row__num::after { content: ""; height: 5px; background: var(--accent); }
.dv-row__title { font-family: var(--font-sora); font-weight: 600; font-size: 28px; line-height: 36px; color: var(--deep-cove); }
html[lang="ar"] .dv-row__title { font-family: var(--font-cairo); font-weight: 700; line-height: 44px; }
.dv-row__text { font-size: 17px; line-height: 28px; color: var(--comet); }
html[lang="ar"] .dv-row__text { font-family: var(--font-noto-ar); }
.dv-row__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dv-row__chips li {
  padding: 4px 10px;
  border: 1px solid var(--slate-200);
  font-size: 13px;
  line-height: 20px;
  color: var(--slate-700);
}
html[lang="ar"] .dv-row__chips li { font-family: var(--font-noto-ar); }
.dv-row .btn-readmore { inset-inline-end: 50px; }

/* ==========================================================================
   Division detail
   ========================================================================== */
.dd-overview { padding: 110px 0 120px; background: #fff; overflow: hidden; }
.dd-overview .container { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 60px; align-items: start; }
.dd-overview__aside { display: flex; flex-direction: column; gap: 30px; }
.dd-help {
  padding: 34px 28px;
  background: var(--deep-cove);
  color: #fff;
}
.dd-help__title { font-weight: 600; font-size: 22px; line-height: 28px; }
.dd-help__text { margin: 10px 0 20px; font-size: 15px; line-height: 24px; color: var(--pigeon-post); }
.dd-help a.dd-help__phone { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; direction: ltr; unicode-bidi: isolate; }
.dd-help a.dd-help__phone i { color: var(--spring-green); }
html[lang="ar"] .dd-help__title { font-family: var(--font-cairo); }
html[lang="ar"] .dd-help__text { font-family: var(--font-noto-ar); }
[dir="rtl"] .dd-help a.dd-help__phone { justify-content: flex-end; flex-direction: row-reverse; }

.dd-overview__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.dd-overview__media { position: relative; min-height: 460px; align-self: stretch; }
.dd-overview__media::before {
  content: "";
  position: absolute;
  inset-block-start: -36px;
  inset-inline-end: -36px;
  width: 60%;
  height: 60%;
  background: var(--dots) 0 0 / 15px 15px;
}
.dd-overview__media img { position: relative; width: 100%; height: 100%; object-fit: cover; background: #1b2440; }
.dd-overview__copy { display: flex; flex-direction: column; gap: 24px; }
.dd-overview__title { font-weight: 600; font-size: 36px; line-height: 42px; color: var(--deep-cove); }
html[lang="ar"] .dd-overview__title { font-family: var(--font-cairo); font-weight: 700; line-height: 54px; }
.dd-overview__text {
  padding-inline-start: 25px;
  border-inline-start: 5px solid var(--accent);
  font-size: 18px;
  line-height: 30.6px;
  color: var(--comet);
}
html[lang="ar"] .dd-overview__text { font-family: var(--font-noto-ar); }
.dd-points { display: flex; flex-direction: column; gap: 10px; }
.dd-points li { display: flex; align-items: center; gap: 12px; font-family: var(--font-plex); font-size: 16px; line-height: 24px; color: var(--slate-900); }
.dd-points li i { color: var(--accent); }
html[lang="ar"] .dd-points li { font-family: var(--font-noto-ar); }

/* Services: dark intro box + 3×2 cards (Enginery "What We Do") */
.dd-services { padding: 100px 0 90px; background: rgba(246, 246, 246, .79); }
.dd-services .container { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; }
.dd-services__intro {
  position: relative;
  padding: 55px 30px 50px;
  background: var(--deep-cove);
}
.dd-services__eyebrow { font-weight: 500; font-size: 18px; line-height: 27px; color: var(--emerald); }
.dd-services__title { margin-top: 18px; padding-bottom: 18px; font-weight: 600; font-size: 39px; line-height: 42px; color: #fff; }
.dd-services__tagline { font-family: var(--font-sora); font-weight: 700; font-size: 20px; line-height: 28px; color: var(--primary-fixed); }
html[lang="ar"] .dd-services__title,
html[lang="ar"] .dd-services__tagline { font-family: var(--font-cairo); line-height: 1.4; }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 210px;
  padding: 30px 28px;
  background: #fff;
  border-block-end: 3px solid transparent;
  transition: transform .35s var(--m-ease, ease), box-shadow .35s ease, border-color .35s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(4, 4, 61, .08); border-block-end-color: var(--accent); }
.svc-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  font-size: 24px;
  color: var(--accent);
}
.svc-card__num {
  position: absolute;
  inset-block-start: 26px;
  inset-inline-end: 26px;
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 30px;
  line-height: 30px;
  color: color-mix(in srgb, var(--accent) 22%, #fff);
}
.svc-card__title {
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--deep-cove);
}
html[lang="ar"] .svc-card__title { font-family: var(--font-cairo); font-size: 20px; line-height: 30px; letter-spacing: 0; }

/* Process — 4 numbered steps on a horizontal timeline */
.dd-process { padding: 110px 0; background: #fff; }
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.process::before {
  content: "";
  position: absolute;
  inset-block-start: 31px;
  inset-inline: 32px;
  height: 2px;
  background: var(--slate-200);
}
.process__step { position: relative; display: flex; flex-direction: column; gap: 16px; }
.process__num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--deep-cove);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--slate-200);
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  transition: background-color .3s ease;
}
.process__step:hover .process__num { background: var(--accent); }
.process__title { font-weight: 600; font-size: 22px; line-height: 28px; color: var(--deep-cove); }
.process__text { font-size: 16px; line-height: 26px; color: var(--comet); }
html[lang="ar"] .process__title { font-family: var(--font-cairo); font-weight: 700; }
html[lang="ar"] .process__text { font-family: var(--font-noto-ar); }

/* Related projects — 3 cards */
.dd-projects { padding: 100px 0 110px; background: rgba(246, 246, 246, .79); }
.dd-projects__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--deep-cove);
  white-space: nowrap;
}
.link-arrow span:last-child { transition: transform .2s ease-out; }
.link-arrow:hover { color: var(--indigo-600); }
.link-arrow:hover span:last-child { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover span:last-child { transform: scaleX(-1) translateX(4px); }
html[lang="ar"] .link-arrow { font-family: var(--font-noto-ar); letter-spacing: 0; }
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.proj {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--accent);
}
.proj__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1e1e1e; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--m-ease, ease); }
.proj:hover .proj__media img { transform: scale(1.05); }
.proj__tag {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 24px;
  padding: 4px 12px;
  background: var(--accent);
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  color: #fff;
}
html[lang="ar"] .proj__tag { font-family: var(--font-noto-ar); }
.proj__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 70px; }
.proj__title { font-weight: 600; font-size: 20px; line-height: 26px; color: var(--blue-zodiac); }
.proj__text { font-size: 15px; line-height: 25px; color: var(--comet); }
html[lang="ar"] .proj__title { font-family: var(--font-cairo); line-height: 34px; }
html[lang="ar"] .proj__text { font-family: var(--font-noto-ar); }
.proj .project-card__more { position: absolute; inset-block-end: 0; inset-inline-end: 0; margin: 0; }

/* FAQ accordion */
.dd-faq { padding: 110px 0; background: #fff; }
.dd-faq .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 60px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--catskill); border-inline-start: 4px solid transparent; transition: border-color .25s ease; }
.faq__item[open] { border-inline-start-color: var(--accent); background: #fff; box-shadow: 0 10px 30px rgba(4, 4, 61, .06); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: var(--deep-cove);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q i { flex: none; margin-inline-start: auto; color: var(--accent); transition: transform .3s ease; }
.faq__item[open] .faq__q i { transform: rotate(45deg); }
.faq__a { padding: 0 26px 24px; font-size: 16px; line-height: 27px; color: var(--comet); }
html[lang="ar"] .faq__q { font-family: var(--font-cairo); }
html[lang="ar"] .faq__a { font-family: var(--font-noto-ar); }
.faq__item[open] .faq__a { animation: m-fade-up .45s var(--m-ease, ease) both; --m-shift: 8px; }

/* Other divisions strip */
.dd-more { padding: 0 0 110px; background: #fff; }
.dd-more__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dd-more__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--catskill);
  border-block-end: 3px solid var(--accent);
  color: var(--deep-cove);
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  transition: background-color .2s ease, color .2s ease;
}
.dd-more__card i { color: var(--accent); font-size: 20px; width: 22px; text-align: center; }
.dd-more__card:hover { background: var(--deep-cove); color: #fff; }
html[lang="ar"] .dd-more__card { font-family: var(--font-cairo); }

/* ==========================================================================
   Contact
   ========================================================================== */
.ct { position: relative; padding: 110px 0 120px; background: #fff; overflow: hidden; }
.ct .container { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 60px; align-items: start; }
.ct__dots {
  position: absolute;
  inset-block-end: 60px;
  inset-inline-start: -20px;
  width: 300px;
  height: 280px;
  background: var(--dots) 0 0 / 15px 15px;
}
.ct .container { z-index: 1; }
.ct-card { position: relative; padding: 50px 40px; background: var(--deep-cove); color: #fff; }
.ct-card__title { position: relative; padding-bottom: 18px; font-weight: 600; font-size: 30px; line-height: 36px; }
.ct-card__title::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 40px; height: 2px; background: var(--spring-green); }
html[lang="ar"] .ct-card__title { font-family: var(--font-cairo); line-height: 46px; }
.ct-card__list { display: flex; flex-direction: column; gap: 26px; margin-top: 34px; }
.ct-card__item { display: flex; gap: 18px; align-items: flex-start; }
.ct-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .08);
  font-size: 18px;
  color: var(--spring-green);
}
.ct-card__label { display: block; font-size: 12px; line-height: 18px; letter-spacing: .8px; text-transform: uppercase; color: var(--nepal); }
.ct-card__value { display: block; margin-top: 3px; font-weight: 600; font-size: 17px; line-height: 26px; color: #fff; }
.ct-card__value[dir="ltr"] { unicode-bidi: isolate; }
a.ct-card__value:hover { text-decoration: underline; text-underline-offset: 3px; }
html[lang="ar"] .ct-card__label { font-family: var(--font-noto-ar); letter-spacing: 0; }
html[lang="ar"] .ct-card__value { font-family: var(--font-noto-ar); }
.ct-card__wa { margin-top: 36px; }
.ct-card__wa .btn { width: 100%; justify-content: center; }
.ct-card__social { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; font-size: 16px; transition: background-color .15s ease-out, border-color .15s ease-out; }
.social-icons a:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--wa { background: #25d366; color: #04043d; }
.btn--wa:hover { background: #1fbd5a; }

.ct-form-wrap { display: flex; flex-direction: column; gap: 10px; }
.ct-form-wrap__title { font-weight: 600; font-size: 34px; line-height: 40px; color: var(--deep-cove); }
html[lang="ar"] .ct-form-wrap__title { font-family: var(--font-cairo); font-weight: 700; line-height: 52px; }
.ct-form-wrap__lead {
  margin: 14px 0 26px;
  padding-inline-start: 25px;
  border-inline-start: 5px solid var(--emerald);
  font-size: 17px;
  line-height: 28px;
  color: var(--comet);
}
html[lang="ar"] .ct-form-wrap__lead { font-family: var(--font-noto-ar); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--slate-700); }
.form__label em { font-style: normal; color: var(--indigo-600); }
html[lang="ar"] .form__label { font-family: var(--font-noto-ar); }
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  height: 54px;
  padding-inline: 18px;
  border: 1px solid #e3e7ee;
  border-radius: 0;
  background: #f9fafb;
  font: 400 16px/1.4 var(--font-jost);
  color: var(--deep-cove);
  transition: border-color .15s ease-out, background-color .15s ease-out, box-shadow .15s ease-out;
  -webkit-appearance: none;
  appearance: none;
}
.form__textarea { height: 160px; padding-block: 14px; resize: vertical; }
.form__select {
  padding-inline-end: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--comet) 50%), linear-gradient(135deg, var(--comet) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
[dir="rtl"] .form__select { background-position: 17px 50%, 22px 50%; }
html[lang="ar"] .form__input,
html[lang="ar"] .form__select,
html[lang="ar"] .form__textarea { font-family: var(--font-noto-ar); }
.form__input:focus,
.form__select:focus,
.form__textarea:focus { outline: none; border-color: var(--indigo-600); background: #fff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.form__input[aria-invalid="true"],
.form__textarea[aria-invalid="true"] { border-color: #dc2626; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__submit { height: 56px; padding-inline: 34px; background: var(--blue-21); color: #fff; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.form__submit:hover { background: var(--indigo-600); }
html[lang="ar"] .form__submit { letter-spacing: 0; }
.form__note { font-size: 13px; line-height: 20px; color: var(--comet); }
html[lang="ar"] .form__note { font-family: var(--font-noto-ar); }
.form__status { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; font-size: 15px; line-height: 24px; }
.form__status[hidden] { display: none; }
.form__status--ok { background: #ecfdf5; border-inline-start: 4px solid var(--div-business); color: #065f46; }
.form__status--err { background: #fef2f2; border-inline-start: 4px solid #dc2626; color: #991b1b; }
.form__status a { text-decoration: underline; }
html[lang="ar"] .form__status { font-family: var(--font-noto-ar); }

.ct-map { position: relative; height: 400px; background: #1b2440; overflow: hidden; }
.ct-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }
.ct-map__pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background:
    linear-gradient(rgba(4, 4, 61, .88), rgba(4, 4, 61, .88)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .06) 39px 40px);
  color: #fff;
  text-align: center;
}
.ct-map__pin {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--indigo-600);
  font-size: 26px;
  animation: pin-bob 2.4s ease-in-out infinite;
}
@keyframes pin-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ct-map__label { font-weight: 600; font-size: 20px; }
.ct-map__sub { font-size: 14px; color: var(--pigeon-post); }
html[lang="ar"] .ct-map__label,
html[lang="ar"] .ct-map__sub { font-family: var(--font-noto-ar); }

/* ==========================================================================
   404
   ========================================================================== */
.nf {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 154px);
  min-height: calc(100dvh - 154px);
  padding: 90px 20px 110px;
  background: #fff;
  overflow: hidden;
  text-align: center;
}
.nf__dots-a,
.nf__dots-b { position: absolute; width: 300px; height: 280px; background: var(--dots) 0 0 / 15px 15px; }
.nf__dots-a { inset-block-start: 40px; inset-inline-start: -30px; }
.nf__dots-b { inset-block-end: 40px; inset-inline-end: -30px; }
.nf__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 640px; }
.nf__code {
  font-family: var(--font-sora);
  font-weight: 700;
  font-size: clamp(110px, 18vw, 200px);
  line-height: .9;
  letter-spacing: -4px;
  background: linear-gradient(135deg, var(--deep-cove) 0%, var(--indigo-600) 55%, var(--div-electrical) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf__title { position: relative; padding-bottom: 18px; font-weight: 600; font-size: 38px; line-height: 44px; color: var(--deep-cove); }
.nf__title::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: calc(50% - 20px); width: 40px; height: 2px; background: var(--spring-green); }
html[lang="ar"] .nf__title { font-family: var(--font-cairo); font-weight: 700; line-height: 56px; }
.nf__text { font-size: 18px; line-height: 30px; color: var(--comet); }
html[lang="ar"] .nf__text { font-family: var(--font-noto-ar); }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }
.btn--ghost { border: 1.5px solid var(--slate-200); color: var(--deep-cove); }
.btn--ghost:hover { border-color: var(--deep-cove); }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font-size: 15px; }
.nf__links a { color: var(--comet); border-bottom: 1px solid transparent; }
.nf__links a:hover { color: var(--indigo-600); border-bottom-color: currentColor; }
html[lang="ar"] .nf__links a { font-family: var(--font-noto-ar); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .dv-intro .container { grid-template-columns: 260px minmax(0, 1fr); padding-inline: 20px; }
  .dv-intro__media { display: none; }
  .dd-overview .container { grid-template-columns: minmax(0, 1fr); padding-inline: 20px; }
  .dd-overview__aside { flex-direction: row; }
  .dd-overview__aside .div-nav { flex: 1; }
  .dd-help { flex: 0 0 320px; }
  .dd-services .container { grid-template-columns: minmax(0, 1fr); padding-inline: 20px; }
  .dd-services__intro { max-width: 520px; }
}

@media (max-width: 1023px) {
  .page-hero { height: 460px; }
  .page-hero__text { inset-block-start: auto; inset-block-end: 60px; inset-inline-end: 0; padding-inline: 20px; }
  .page-hero__title { font-size: 38px; line-height: 44px; }

  .dv-intro,
  .dd-overview,
  .dv-list,
  .dd-services,
  .dd-process,
  .dd-projects,
  .dd-faq,
  .ct { padding-block: 70px; }
  .dd-more { padding-bottom: 70px; }

  .dv-intro .container { grid-template-columns: minmax(0, 1fr); }
  .dv-intro .container > :first-child { order: 2; }
  .ct__dots { display: none; }

  .dv-row { grid-template-columns: minmax(0, 1fr); margin-bottom: 50px; }
  .dv-row:nth-of-type(even) .dv-row__media { order: 0; }
  .dv-row__body,
  .dv-row:nth-of-type(even) .dv-row__body { margin: -50px 20px 0; padding: 34px 28px 64px; }
  .dv-row .btn-readmore { inset-inline-end: 28px; }

  .dd-overview__aside { flex-direction: column; }
  .dd-help { flex: none; }
  .dd-overview__main { grid-template-columns: minmax(0, 1fr); }
  .dd-overview__media { min-height: 320px; }

  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 30px; }
  .process::before { display: none; }
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .dd-projects__head { flex-direction: column; align-items: flex-start; }
  .dd-faq .container { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dd-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ct .container { grid-template-columns: minmax(0, 1fr); }
  .nf { min-height: 70vh; }
}

@media (max-width: 767px) {
  .page-hero { height: 400px; }
  .page-hero__title { font-size: 32px; line-height: 38px; }
  .sec-head__title,
  .dv-intro__title,
  .dd-overview__title,
  .ct-form-wrap__title { font-size: 30px; line-height: 36px; }
  .dv-row__title { font-size: 24px; line-height: 30px; }
  .svc-grid,
  .process,
  .dd-more__grid,
  .form { grid-template-columns: minmax(0, 1fr); }
  .ct-card { padding: 40px 24px; }
  .ct-map { height: 320px; }
}

/* Side-in reveals come from the reading-start side in Arabic too */
[dir="rtl"].motion-ready [data-m="left"] { transform: translate3d(var(--m-shift, 22px), 0, 0); }
[dir="rtl"].motion-ready [data-m="right"] { transform: translate3d(calc(var(--m-shift, 22px) * -1), 0, 0); }
[dir="rtl"].motion-ready [data-m].is-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .page-hero__bg,
  .ct-map__pin { animation: none; }
  .svc-card,
  .svc-card:hover { transform: none; }
}
