/* ============================================
   LITER Corporate Profile — Premium Identity
   Palette: orange #e87625 · gold #f19d21 · blue #0593cd · gray #59595c
   ============================================ */

:root {
  --gray: #59595c;
  --blue: #0593cd;
  --gold: #f19d21;
  --orange: #e87625;
  --ink: #0c0c0e;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: rgba(241, 157, 33, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f3efe6;
  --text-2: #bdb8ae;
  --text-3: #8a8580;
  --font-ar: "Cairo", "Segoe UI", sans-serif;
  --font-en: "Montserrat", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  /* لا نضع overflow على body حتى لا يتكسر position:fixed للهيدر على الجوال */
}

.letr-app {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  overflow-x: clip;
}

.letr-app.ar {
  font-family: var(--font-ar);
}

.letr-app.en {
  font-family: var(--font-en);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

::selection {
  background: rgba(241, 157, 33, 0.35);
  color: #fff;
}

/* ===== Reveal ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Section titles ===== */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.section-title-line {
  flex: 1 1 0;
  width: auto;
  min-width: 40px;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.section-title-wrap .section-title-line:last-child {
  flex: 1 1 0;
  width: auto;
  min-width: 40px;
  max-width: 160px;
  background: linear-gradient(to right, var(--gold), transparent);
}

.section-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.35;
  min-width: 0;
  text-align: center;
  flex: 0 1 auto;
}

.ar .section-title {
  letter-spacing: 0;
}

.section-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  font-family: var(--font-en);
}

.ar .section-kicker {
  letter-spacing: 0.12em;
}

/* ===== Nav ===== */
.letr-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
  /* طبقة مستقرة تمنع اهتزاز الهيدر مع السكرول على الجوال */
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.letr-nav.scrolled,
.letr-nav.menu-open {
  background: rgba(12, 12, 14, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.letr-nav.scrolled .nav-container {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 52px;
}

.nav-brand-pair,
.brand-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-mark,
.brand-mark {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: center;
}

.nav-mark-start,
.brand-pair-nav .brand-mark-start {
  height: 44px;
}

.nav-mark-end,
.brand-pair-nav .brand-mark-end {
  height: 36px;
}

.letr-nav.scrolled .nav-mark-start,
.letr-nav.scrolled .brand-pair-nav .brand-mark-start {
  height: 38px;
}

.letr-nav.scrolled .nav-mark-end,
.letr-nav.scrolled .brand-pair-nav .brand-mark-end {
  height: 30px;
}

.brand-pair-footer {
  gap: 0.7rem;
}

.brand-pair-footer .brand-mark-start {
  height: 52px;
}

.brand-pair-footer .brand-mark-end {
  height: 42px;
}

.nav-brand .letr-logo-img {
  width: auto !important;
  height: 48px !important;
  max-width: 160px;
  object-fit: contain;
}

.letr-nav.scrolled .nav-brand .letr-logo-img {
  height: 40px !important;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  padding-block: 0.2rem;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.lang-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    border-color 0.25s,
    background 0.25s,
    color 0.25s;
}

.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(241, 157, 33, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.ham-line.open:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ham-line.open:nth-child(2) {
  opacity: 0;
}

.ham-line.open:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(12, 12, 14, 0.98);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem) 1.35rem;
  gap: 0.35rem;
  z-index: 1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.letr-nav.menu-open .mobile-menu {
  display: flex;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.25s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold);
}

.mobile-lang {
  align-self: flex-start;
  margin-top: 0.75rem;
}

/* ===== Hero — brand-first, full-bleed ===== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.35) 0%,
      rgba(12, 12, 14, 0.55) 45%,
      rgba(12, 12, 14, 0.96) 100%
    ),
    linear-gradient(
      105deg,
      rgba(12, 12, 14, 0.75) 0%,
      rgba(12, 12, 14, 0.2) 55%,
      rgba(5, 147, 205, 0.12) 100%
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem clamp(1.25rem, 4vw, 2.5rem) 5.5rem;
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
  animation: heroRise 1s var(--ease) 0.12s both;
}

.en .hero-title {
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  color: var(--text-2);
  max-width: 42ch;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  animation: heroRise 1s var(--ease) 0.22s both;
}

.hero-cta,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.95rem 2.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    filter 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  box-shadow: 0 8px 22px rgba(232, 118, 37, 0.25);
}

.hero-cta {
  animation: heroRise 1s var(--ease) 0.32s both;
}

.form-submit {
  align-self: flex-start;
  padding-inline: 2.5rem;
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.hero-cta:hover,
.form-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(232, 118, 37, 0.35);
}

.hero-cta:active,
.form-submit:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.ar .hero-cta:hover svg {
  transform: translateX(-4px);
}

.en .hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.hero-scroll span {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.75);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ===== Overview ===== */
.overview-section {
  background: var(--ink);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.overview-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 4.5rem);
}

.overview-block {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.overview-img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(280px, 38vw, 440px);
}

.overview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.overview-img-accent {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--orange), var(--gold), var(--blue));
}

.overview-text-block {
  display: flex;
  gap: 1.15rem;
  max-width: 920px;
}

.orange-side-line {
  width: 3px;
  background: linear-gradient(to bottom, var(--orange), var(--gold));
  flex-shrink: 0;
  align-self: stretch;
}

.overview-text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-2);
}

.chairman-block {
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.chairman-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.chairman-media {
  position: relative;
}

.chairman-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-inline-start: 3px solid var(--gold);
}

.chairman-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.chairman-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 12, 14, 0.55) 0%,
    transparent 45%
  );
  pointer-events: none;
  z-index: 1;
}

.chairman-mark {
  position: absolute;
  bottom: 0.9rem;
  inset-inline-start: 0.9rem;
  z-index: 2;
  width: clamp(52px, 14vw, 76px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.chairman-body {
  display: flex;
  flex-direction: column;
  padding-block: 0.25rem;
}

.chairman-info {
  padding: 0;
}

.chairman-name {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: var(--gold);
}

.chairman-title {
  font-size: 0.92rem;
  color: var(--orange);
  margin-top: 0.35rem;
  font-weight: 600;
}

.chairman-divider {
  width: 72px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--orange),
    var(--gold),
    transparent
  );
  margin: 1.15rem 0 1.35rem;
}

[dir="rtl"] .chairman-divider {
  background: linear-gradient(to left, var(--orange), var(--gold), transparent);
}

.chairman-message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: none;
  overflow: visible;
}

.chairman-para {
  font-size: 0.98rem;
  line-height: 2;
  color: var(--text-2);
}

/* ===== Vision / Mission / Values ===== */
.vision-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background-size: cover;
  background-position: center;
}

.vision-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 14, 0.94) 0%,
    rgba(12, 12, 14, 0.9) 100%
  );
  z-index: 1;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.vm-block {
  padding: 2rem 0 0.5rem;
  border-top: 3px solid var(--gold);
}

.mission-block {
  border-top-color: var(--orange);
}

.vm-block-title {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.vm-block-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-2);
  max-width: 48ch;
}

.values-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.value-item {
  padding: 1.5rem 1.1rem 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  border-inline-end: 1px solid var(--line-soft);
  transition: background 0.3s var(--ease);
}

.value-item:last-child {
  border-inline-end: none;
  padding-inline-end: 0;
}

.value-item:hover {
  background: rgba(241, 157, 33, 0.04);
}

.value-num {
  display: block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.value-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.value-item-text {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-3);
}

/* ===== Expansion ===== */
.expansion-section {
  background: var(--surface);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
  overflow: hidden;
}

.expansion-section::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--orange),
    var(--gold),
    var(--blue),
    transparent
  );
}

.expansion-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 80% 20%,
      rgba(241, 157, 33, 0.08),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 15% 80%,
      rgba(5, 147, 205, 0.06),
      transparent 40%
    );
  pointer-events: none;
}

.expansion-intro {
  text-align: center;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 720px;
  margin: -0.5rem auto 2.5rem;
}

.expansion-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  max-width: 960px;
  margin: 0 auto 2.75rem;
}

.expansion-stat-item {
  background: var(--ink);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow: visible;
  transition: background 0.3s var(--ease);
}

.expansion-stat-item:hover {
  background: rgba(241, 157, 33, 0.06);
}

.expansion-stat-value {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
  padding-block: 0.05em 0.12em;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-ar);
  overflow: visible;
}

.expansion-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}

.expansion-map-frame {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem;
  background: linear-gradient(
    135deg,
    rgba(232, 118, 37, 0.18),
    rgba(241, 157, 33, 0.08),
    rgba(5, 147, 205, 0.12)
  );
}

.expansion-map-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

.expansion-map-corner-tl {
  top: 0;
  inset-inline-start: 0;
  border-top: 2px solid var(--orange);
  border-inline-start: 2px solid var(--orange);
}

.expansion-map-corner-br {
  bottom: 0;
  inset-inline-end: 0;
  border-bottom: 2px solid var(--gold);
  border-inline-end: 2px solid var(--gold);
}

.expansion-image-container {
  position: relative;
  overflow: hidden;
  background: #c9971f;
  line-height: 0;
}

.expansion-map-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}

.expansion-map-frame:hover .expansion-map-image {
  transform: scale(1.02);
}

.expansion-caption {
  text-align: start;
  max-width: 960px;
  margin: 1.25rem auto 1.15rem;
  color: var(--text-3);
  font-size: 0.92rem;
  line-height: 1.7;
}

.expansion-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 960px;
  margin: 0 auto;
}

.expansion-region {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  background: rgba(241, 157, 33, 0.05);
  letter-spacing: 0.02em;
}

/* ===== Operations ===== */
.operations-section {
  background: var(--ink);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
  overflow: hidden;
}

.operations-section::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--orange),
    var(--gold),
    var(--blue),
    transparent
  );
}

.operations-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 12% 25%,
      rgba(232, 118, 37, 0.08),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 88% 70%,
      rgba(5, 147, 205, 0.07),
      transparent 40%
    );
  pointer-events: none;
}

.operations-intro {
  max-width: 980px;
  margin: -0.5rem auto 3rem;
  text-align: center;
}

.operations-subtitle {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.operations-intro p {
  color: var(--text-2);
  line-height: 2;
  font-size: 1.02rem;
}

.operations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.operation-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-inline-start: 3px solid var(--orange);
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    background 0.3s var(--ease);
}

.operation-row[data-accent="gold"] {
  border-inline-start-color: var(--gold);
}

.operation-row[data-accent="blue"] {
  border-inline-start-color: var(--blue);
}

.operation-row:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  background: rgba(28, 28, 31, 0.95);
}

.operation-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.operation-num {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.operation-row[data-accent="gold"] .operation-num {
  color: var(--gold);
}

.operation-row[data-accent="blue"] .operation-num {
  color: var(--blue);
}

.operation-row[data-accent="orange"] .operation-num {
  color: var(--orange);
}

.operation-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--line);
  background: rgba(241, 157, 33, 0.06);
}

.operation-row[data-accent="blue"] .operation-icon-wrap {
  color: var(--blue);
  border-color: rgba(5, 147, 205, 0.35);
  background: rgba(5, 147, 205, 0.08);
}

.operation-row[data-accent="orange"] .operation-icon-wrap {
  color: var(--orange);
  border-color: rgba(232, 118, 37, 0.4);
  background: rgba(232, 118, 37, 0.08);
}

.operation-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.operation-content {
  min-width: 0;
}

.operation-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.operation-divider {
  width: 52px;
  height: 2px;
  background: linear-gradient(to right, var(--orange), transparent);
  margin-bottom: 0.85rem;
}

.operation-row[data-accent="gold"] .operation-divider {
  background: linear-gradient(to right, var(--gold), transparent);
}

.operation-row[data-accent="blue"] .operation-divider {
  background: linear-gradient(to right, var(--blue), transparent);
}

[dir="rtl"] .operation-divider {
  background: linear-gradient(to left, var(--orange), transparent);
}

[dir="rtl"] .operation-row[data-accent="gold"] .operation-divider {
  background: linear-gradient(to left, var(--gold), transparent);
}

[dir="rtl"] .operation-row[data-accent="blue"] .operation-divider {
  background: linear-gradient(to left, var(--blue), transparent);
}

.operation-text {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.95;
}

/* ===== Identity timeline ===== */
.identity-timeline-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.identity-timeline-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.72) 0%,
      rgba(12, 12, 14, 0.68) 100%
    ),
    linear-gradient(
      120deg,
      rgba(232, 118, 37, 0.05),
      transparent 50%,
      rgba(5, 147, 205, 0.06)
    );
  z-index: 1;
}

.identity-timeline-text {
  text-align: center;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 980px;
  margin: -0.5rem auto 3.25rem;
}

.identity-timeline-wrap {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.identity-track-line {
  position: absolute;
  top: 27px;
  inset-inline: 6%;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--gold),
    var(--blue),
    var(--orange),
    var(--gray)
  );
  opacity: 0.55;
  z-index: 0;
}

[dir="rtl"] .identity-track-line {
  background: linear-gradient(
    to left,
    var(--gold),
    var(--blue),
    var(--orange),
    var(--gray)
  );
}

.identity-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.identity-phase-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: start;
}

.phase-node {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--phase-color, var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 14, 0.95);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 6px rgba(12, 12, 14, 0.85);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.identity-phase-card:hover .phase-node {
  transform: scale(1.08);
  box-shadow:
    0 0 0 6px rgba(12, 12, 14, 0.85),
    0 0 22px rgba(241, 157, 33, 0.28);
}

.phase-num {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--phase-color, var(--gold));
  letter-spacing: 0.04em;
}

.phase-body {
  padding: 1.15rem 1rem 1.25rem;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid var(--line-soft);
  border-block-start: 3px solid var(--phase-color, var(--gold));
  min-height: 150px;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.identity-phase-card:hover .phase-body {
  background: rgba(28, 28, 31, 0.92);
  transform: translateY(-3px);
}

.phase-years {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--phase-color, var(--gold));
  margin-bottom: 0.55rem;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}

.phase-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.phase-label-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
}

/* ===== Story timeline ===== */
.story-section {
  background: var(--ink);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--orange),
    var(--gold),
    var(--blue),
    transparent
  );
}

.story-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 10%,
      rgba(232, 118, 37, 0.07),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(5, 147, 205, 0.06),
      transparent 40%
    );
  pointer-events: none;
}

.story-header {
  text-align: center;
  margin: -1.25rem 0 0;
  padding-bottom: 3.25rem;
  position: relative;
  z-index: 2;
}

.story-subtitle-badge {
  position: relative;
  display: inline-block;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.4rem;
  line-height: 1.35;
  font-family: var(--font-en);
}

/* يربط خط الشارة السفلي بالخط الطولي دون المرور على النص */
.story-subtitle-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 3.25rem;
  transform: translateX(-50%);
  background: var(--orange);
  pointer-events: none;
}

.ar .story-subtitle-badge {
  letter-spacing: 0.08em;
  text-transform: none;
  font-family: var(--font-ar);
}

.story-timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 1rem;
}

.story-timeline-body {
  position: relative;
}

.story-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.story-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.story-item:last-child {
  margin-bottom: 0;
}

.story-item-left {
  justify-content: flex-end;
}

.story-item-left .story-card {
  margin-inline-end: 2.75rem;
}

.story-item-right {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.story-item-right .story-card {
  margin-inline-start: 2.75rem;
}

.story-card {
  position: relative;
  width: calc(50% - 2.75rem);
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-block-start: none;
  transition:
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease),
    background 0.3s var(--ease);
}

.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  pointer-events: none;
}

/* البطاقة (LTR): اللون أقوى جهة الخط الزمني */
.story-item-left .story-card::before {
  background: linear-gradient(
    to right,
    var(--story-color, var(--orange)) 0%,
    var(--story-color, var(--orange)) 28%,
    transparent 100%
  );
}

.story-item-right .story-card::before {
  background: linear-gradient(
    to left,
    var(--story-color, var(--orange)) 0%,
    var(--story-color, var(--orange)) 28%,
    transparent 100%
  );
}

[dir="rtl"] .story-item-left .story-card::before {
  background: linear-gradient(
    to left,
    transparent 0%,
    var(--story-color, var(--orange)) 72%,
    var(--story-color, var(--orange)) 100%
  );
}

[dir="rtl"] .story-item-right .story-card::before {
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--story-color, var(--orange)) 72%,
    var(--story-color, var(--orange)) 100%
  );
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  background: rgba(28, 28, 31, 0.95);
}

.story-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.story-card-index {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--story-color, var(--gold));
}

.story-card-year {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--story-color, var(--orange));
  letter-spacing: 0.04em;
  font-family: var(--font-en);
}

.story-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.story-card-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--story-color, var(--orange)),
    transparent
  );
  margin-bottom: 0.85rem;
}

[dir="rtl"] .story-card-divider {
  background: linear-gradient(
    to left,
    var(--story-color, var(--orange)),
    transparent
  );
}

.story-card-text {
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--text-2);
}

.story-dot {
  position: absolute;
  left: 50%;
  top: 0.55rem;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--story-color, var(--gold));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(12, 12, 14, 0.9);
}

.story-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 2.35rem;
  height: 2px;
  background: var(--story-color, var(--gold));
  transform: translateY(-50%);
  z-index: -1;
}

/* LTR: الخط الصغير باتجاه البطاقة */
.story-item-left .story-dot::before {
  left: calc(100% - 1px);
  right: auto;
}

.story-item-right .story-dot::before {
  right: calc(100% - 1px);
  left: auto;
}

/* RTL: نفس الاتجاه الفيزيائي نحو البطاقة */
[dir="rtl"] .story-item-left .story-dot::before {
  right: auto;
  left: calc(100% - 1px);
}

[dir="rtl"] .story-item-right .story-dot::before {
  left: auto;
  right: calc(100% - 1px);
}

.story-dot-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--story-color, var(--gold));
}

/* ===== Commercial ===== */
.commercial-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background-size: cover;
  background-position: center;
}

.commercial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 12, 14, 0.95) 0%,
    rgba(89, 89, 92, 0.72) 100%
  );
  z-index: 1;
}

.commercial-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.commercial-accent-line {
  width: 4px;
  height: 52px;
  background: linear-gradient(to bottom, var(--orange), var(--gold));
  flex-shrink: 0;
}

.commercial-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
}

.commercial-content {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.commercial-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-2);
}

.commercial-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.commercial-point {
  background: rgba(20, 20, 22, 0.85);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background 0.3s;
}

.commercial-point:hover {
  background: rgba(241, 157, 33, 0.08);
}

.commercial-point-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--gold);
}

/* ===== Gallery ===== */
.gallery-section {
  background: var(--surface);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-item:hover .progressive-hq.gallery-img,
.gallery-item:hover .progressive-lq.gallery-img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-frame {
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 1px solid rgba(241, 157, 33, 0.55);
  pointer-events: none;
}

.gallery-item:hover .gallery-frame {
  border-color: rgba(241, 157, 33, 0.85);
}

/* ===== Services ===== */
.services-section {
  background: var(--ink);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
  overflow: hidden;
}

.services-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 25% 40%,
    rgba(5, 147, 205, 0.06),
    transparent 55%
  );
  pointer-events: none;
}

.services-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.9;
  max-width: 680px;
  margin: -0.5rem auto 3rem;
}

.services-layout {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 0;
  align-items: stretch;
}

.services-img-col {
  position: relative;
  z-index: 1;
}

.services-img-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 480px;
}

.services-img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
}

.services-img-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to right,
    transparent 35%,
    rgba(12, 12, 14, 0.35) 70%,
    var(--ink) 100%
  );
}

[dir="rtl"] .services-img-fade {
  background: linear-gradient(
    to left,
    transparent 35%,
    rgba(12, 12, 14, 0.35) 70%,
    var(--ink) 100%
  );
}

.services-img-badge {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(12, 12, 14, 0.92), transparent);
  padding: 2.25rem 1.5rem 1.5rem;
}

.services-future-line1 {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 900;
  color: var(--text);
}

.services-future-line2 {
  display: block;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-content-col {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  margin-inline-start: -4.5rem;
  padding-inline-end: 0.25rem;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.15rem 1rem;
  background: rgba(20, 20, 22, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease),
    background 0.3s var(--ease);
}

.service-item:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  background: rgba(28, 28, 31, 0.95);
}

.service-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(241, 157, 33, 0.08);
  border: 1px solid var(--line);
}

.service-icon svg {
  width: 18px;
  height: 18px;
}

.service-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.service-subtitle {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-en);
}

.service-subtitle:empty {
  display: none;
}

/* ===== Partners ===== */
.partners-section {
  background: var(--surface);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue),
    var(--gold),
    var(--orange),
    transparent
  );
}

.partners-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 15% 20%,
      rgba(5, 147, 205, 0.07),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 85% 70%,
      rgba(241, 157, 33, 0.06),
      transparent 40%
    );
  pointer-events: none;
}

.partners-intro {
  text-align: center;
  max-width: 720px;
  margin: -0.5rem auto 3rem;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.9;
}

.partners-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.partner-category {
  margin-bottom: 0;
  padding: 1.5rem 1.35rem 1.6rem;
  background: rgba(12, 12, 14, 0.45);
  border: 1px solid var(--line-soft);
  border-block-start: 3px solid var(--gold);
}

.partner-category:nth-child(3n + 2) {
  border-block-start-color: var(--orange);
}

.partner-category:nth-child(3n + 3) {
  border-block-start-color: var(--blue);
}

.partner-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.partner-cat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.partner-cat-accent {
  width: 3px;
  height: 1.1rem;
  background: linear-gradient(to bottom, var(--orange), var(--gold));
  flex-shrink: 0;
}

.partner-cat-count {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.3rem 0.65rem;
  min-width: 2.5rem;
  text-align: center;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.7rem;
}

.partner-logo-card {
  aspect-ratio: 1.45 / 1;
  width: 100%;
  height: auto;
  min-height: 76px;
  background: rgba(28, 28, 31, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

.partner-logo-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(36, 36, 40, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.partner-logo-img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.partner-logo-placeholder {
  width: 100%;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.partner-logo-placeholder small {
  font-size: 0.58rem;
  opacity: 0.7;
}

/* ===== Contact ===== */
.contact-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 12, 14, 0.96) 0%,
    rgba(12, 12, 14, 0.9) 100%
  );
  z-index: 1;
}

.contact-logo-bg {
  position: absolute;
  inset-inline-end: -60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
}

.contact-logo-bg .letr-logo-img {
  width: auto !important;
  height: 280px !important;
  max-width: 420px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--gold);
  padding: 2rem;
}

.contact-logo-wrap {
  margin-bottom: 0.5rem;
}

.contact-logo-wrap .letr-logo-img {
  width: auto !important;
  height: 64px !important;
  max-width: 200px;
  object-fit: contain;
}

.contact-divider {
  height: 1px;
  background: linear-gradient(to right, var(--orange), transparent);
  margin: 1.15rem 0 1.35rem;
}

[dir="rtl"] .contact-divider {
  background: linear-gradient(to left, var(--orange), transparent);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--line);
  background: rgba(241, 157, 33, 0.06);
}

.contact-detail-icon svg {
  width: 16px;
  height: 16px;
}

.contact-detail-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-2);
}

.contact-link {
  font-size: 0.95rem;
  color: var(--blue);
  transition: color 0.25s;
}

.contact-link:hover {
  color: var(--gold);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(20, 20, 22, 0.75);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(241, 157, 33, 0.12);
  background: rgba(25, 25, 28, 0.9);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-3);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ===== Progressive images ===== */
.progressive-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(20, 20, 22, 0.55);
}

.progressive-lq,
.progressive-hq {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.progressive-lq {
  position: absolute;
  inset: 0;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 1;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.progressive-hq {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.progressive-hq.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.progressive-media:has(.progressive-hq.is-loaded) .progressive-lq {
  opacity: 0;
  pointer-events: none;
}

.progressive-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.progressive-bg.bg-md-loaded,
.progressive-bg.bg-hq-loaded {
  /* upgraded quality ready */
}

/* Keep image wrappers sizing correct with progressive media */
.overview-img-wrap .progressive-media,
.chairman-img-wrap .progressive-media,
.services-img-wrap .progressive-media,
.gallery-item .progressive-media {
  width: 100%;
  height: 100%;
}

.chairman-img-wrap .progressive-lq,
.chairman-img-wrap .progressive-hq,
.services-img-wrap .progressive-lq,
.services-img-wrap .progressive-hq,
.gallery-item .progressive-lq,
.gallery-item .progressive-hq {
  width: 100%;
  height: 100%;
}

.overview-img-wrap .progressive-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.overview-img-wrap .progressive-lq,
.overview-img-wrap .progressive-hq {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.chairman-img-wrap .progressive-media {
  position: absolute;
  inset: 0;
}

.services-img-wrap .progressive-media {
  min-height: 480px;
}

.gallery-item .progressive-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.expansion-image-container .progressive-media {
  width: 100%;
  height: auto;
  min-height: 0;
  background: #c9971f;
}

.expansion-image-container .progressive-hq.expansion-map-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
  display: block;
}

.expansion-image-container .progressive-lq.expansion-map-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .progressive-lq,
  .progressive-hq,
  .progressive-bg {
    transition: none !important;
    filter: none !important;
    transform: none !important;
  }

  .progressive-hq {
    opacity: 1;
  }
}

/* ===== Back to top ===== */
.back-to-top {
  --btt-ease: cubic-bezier(0.16, 1, 0.3, 1);
  position: fixed;
  inset-inline-end: 1.35rem;
  bottom: 1.5rem;
  z-index: 1100;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 157, 33, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--orange) 0%, var(--gold) 100%);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 24px, 0) scale(0.78);
  transition:
    opacity 0.65s var(--btt-ease),
    visibility 0.65s var(--btt-ease),
    transform 0.65s var(--btt-ease),
    box-shadow 0.45s var(--btt-ease),
    border-color 0.35s ease;
  box-shadow:
    0 12px 28px rgba(232, 118, 37, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  will-change: transform, opacity;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.back-to-top.visible:hover {
  transform: translate3d(0, -6px, 0) scale(1.05);
  border-color: rgba(241, 157, 33, 0.85);
  box-shadow:
    0 18px 38px rgba(232, 118, 37, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.back-to-top.visible:active {
  transform: translate3d(0, -2px, 0) scale(0.97);
  transition-duration: 0.12s;
}

.back-to-top.is-leaving {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -40px, 0) scale(0.86) !important;
  transition:
    opacity 0.4s var(--btt-ease),
    visibility 0.4s var(--btt-ease),
    transform 0.55s var(--btt-ease);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s var(--btt-ease);
}

.back-to-top.visible:hover svg {
  animation: backToTopArrow 1.25s var(--btt-ease) infinite;
}

.back-to-top.is-leaving svg {
  animation: none;
  transform: translateY(-8px);
}

@keyframes backToTopArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top.visible,
  .back-to-top.is-leaving,
  .back-to-top svg {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    inset-inline-end: 1rem;
    bottom: 1.1rem;
    width: 44px;
    height: 44px;
  }
}

/* ===== Footer ===== */
.letr-footer {
  background: #070708;
  padding: 2.75rem 0 1.35rem;
  border-top: 1px solid var(--line-soft);
}

.footer-top-line {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--orange),
    var(--gold),
    var(--blue),
    var(--orange)
  );
  margin-bottom: 2rem;
}

.footer-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .letr-logo-img {
  width: auto !important;
  height: 56px !important;
  max-width: 180px;
  object-fit: contain;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.footer-slogan {
  font-size: 0.85rem;
  color: var(--text-3);
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.25s;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
}

/* ===== Shared media / fallbacks ===== */
.letr-logo-img {
  display: block !important;
  object-fit: contain;
  background: transparent;
  border: none;
}

.letr-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--line);
  font-weight: 900;
  font-size: 0.75rem;
  background: rgba(30, 30, 33, 0.65);
  font-family: var(--font-en);
}

.image-placeholder-fallback {
  background:
    linear-gradient(135deg, rgba(232, 118, 37, 0.15), rgba(5, 147, 205, 0.1)),
    var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-weight: 800;
  min-height: 220px;
}

/* ===== RTL ===== */
[dir="rtl"] .story-item-left {
  flex-direction: row-reverse;
}

[dir="rtl"] .story-item-left .story-card {
  margin-inline-end: 0;
  margin-inline-start: 2.75rem;
}

[dir="rtl"] .story-item-right {
  flex-direction: row;
}

[dir="rtl"] .story-item-right .story-card {
  margin-inline-start: 0;
  margin-inline-end: 2.75rem;
}

[dir="rtl"] .footer-meta {
  align-items: flex-start;
}

[dir="rtl"] .section-title-line:first-child {
  background: linear-gradient(to right, var(--gold), transparent);
}

[dir="rtl"] .section-title-wrap .section-title-line:last-child {
  background: linear-gradient(to right, transparent, var(--gold));
}

[dir="rtl"] .hero-cta svg {
  transform: scaleX(-1);
}

[dir="rtl"] .ar .hero-cta:hover svg {
  transform: scaleX(-1) translateX(-4px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .chairman-layout,
  .vm-grid,
  .services-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-content-col {
    margin-inline-start: 0;
    padding-inline-end: 0;
  }

  .services-img-fade,
  [dir="rtl"] .services-img-fade {
    background: linear-gradient(
      to top,
      var(--ink) 0%,
      rgba(12, 12, 14, 0.35) 40%,
      transparent 70%
    );
  }

  .services-img,
  .services-img-wrap {
    min-height: 320px;
  }

  .operation-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.35rem 1.2rem;
  }

  .operation-meta {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }

  .chairman-img-wrap {
    aspect-ratio: 16 / 10;
    max-width: 420px;
  }

  .values-list {
    grid-template-columns: 1fr 1fr;
  }

  .value-item {
    border-inline-end: none;
    padding-inline-end: 0;
  }

  .value-item:nth-child(odd) {
    padding-inline-end: 1rem;
    border-inline-end: 1px solid var(--line-soft);
  }

  .identity-phases {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  .identity-track-line {
    display: none;
  }

  .story-timeline-line,
  .story-subtitle-badge::after {
    display: none;
  }

  .story-item,
  [dir="rtl"] .story-item-left,
  [dir="rtl"] .story-item-right {
    flex-direction: column !important;
    align-items: stretch;
  }

  .story-card,
  [dir="rtl"] .story-card {
    width: 100% !important;
    margin: 0 !important;
  }

  .story-dot {
    display: none;
  }

  .story-item-left .story-card::before,
  .story-item-right .story-card::before,
  [dir="rtl"] .story-item-left .story-card::before,
  [dir="rtl"] .story-item-right .story-card::before {
    background: var(--story-color, var(--orange));
  }

  .story-header {
    padding-bottom: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
  }

  .commercial-points {
    grid-template-columns: 1fr;
  }

  .expansion-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    padding-bottom: 4.5rem;
  }

  /* هيدر ثابت الحجم على الجوال لمنع الحركة مع السكرول */
  .letr-nav,
  .letr-nav.scrolled {
    padding: 0;
    transition:
      background 0.3s var(--ease),
      border-color 0.3s var(--ease);
  }

  .letr-nav .nav-container,
  .letr-nav.scrolled .nav-container {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .letr-nav .nav-mark-start,
  .letr-nav .brand-pair-nav .brand-mark-start,
  .letr-nav.scrolled .nav-mark-start,
  .letr-nav.scrolled .brand-pair-nav .brand-mark-start {
    height: 36px;
  }

  .letr-nav .nav-mark-end,
  .letr-nav .brand-pair-nav .brand-mark-end,
  .letr-nav.scrolled .nav-mark-end,
  .letr-nav.scrolled .brand-pair-nav .brand-mark-end {
    height: 30px;
  }

  .nav-brand {
    min-height: 40px;
  }

  /* عناوين الأقسام في المنتصف على الجوال */
  .section-title-wrap {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
  }

  .section-title-line:first-child,
  .section-title-wrap .section-title-line:last-child {
    flex: 1 1 0;
    width: auto;
    min-width: 24px;
    max-width: none;
    order: unset;
  }

  .section-title {
    white-space: normal;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(70%, 18rem);
    text-align: center;
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .value-item:nth-child(odd) {
    padding-inline-end: 0;
    border-inline-end: none;
  }

  .identity-phases {
    grid-template-columns: 1fr;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-meta {
    align-items: center !important;
  }

  .contact-logo-bg {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .partner-logos {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .hero-section,
  .vision-section,
  .identity-timeline-section,
  .commercial-section,
  .contact-section {
    background-attachment: scroll;
  }
}
