@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #071421;
  --navy-2: #0d2236;
  --navy-3: #102b44;
  --yellow: #f5b21a;
  --yellow-2: #ffd15c;
  --steel: #6d7b88;
  --steel-2: #d7dde3;
  --white: #ffffff;
  --soft: #f3f6f8;
  --soft-2: #e9eef2;
  --ink: #152230;
  --muted: #627080;
  --line: rgba(13, 34, 54, 0.14);
  --shadow: 0 18px 45px rgba(7, 20, 33, 0.16);
  --heavy-shadow: 0 28px 70px rgba(7, 20, 33, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  background: var(--white);
  text-rendering: optimizeLegibility;
}

body.is-ar {
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--yellow);
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--white);
  background: rgba(7, 20, 33, 0.96);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
}

.brand-logo {
  display: block;
  width: 300px;
  height: auto;
  max-height: 64px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.footer-logo {
  width: 300px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--yellow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.lang-toggle {
  min-width: 46px;
  padding: 0 12px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
}

.menu-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--white);
}

.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--white);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.hero {
  position: relative;
  min-height: 735px;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(7, 20, 33, 0.98) 0%, rgba(7, 20, 33, 0.86) 42%, rgba(7, 20, 33, 0.3) 76%),
    url("../images/hero_crane.png");
  background-position: center;
  background-size: cover;
  animation: bgPan 40s infinite alternate ease-in-out;
}

@keyframes bgPan {
  0% { background-position: 0% 50%; background-size: 100%; }
  100% { background-position: 100% 50%; background-size: 110%; }
}

.hero-inner {
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 735px;
  margin: 0 auto;
  padding: 92px 0 58px;
}

.hero-content {
  max-width: 770px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--yellow-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.is-ar .eyebrow {
  letter-spacing: 0;
}

.eyebrow::before {
  width: 38px;
  height: 3px;
  content: "";
  background: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(38px, 5.3vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
}

body.is-ar h1 {
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.22;
  font-weight: 800;
}

.ar-headline {
  display: block;
  margin-top: 14px;
  color: var(--yellow-2);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
}

.hero p {
  max-width: 700px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid transparent;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--navy);
  background: var(--yellow);
}

.btn-primary:hover {
  background: var(--yellow-2);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  color: var(--white);
  background: var(--navy);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(900px, 100%);
  margin-top: 58px;
  background: rgba(255, 255, 255, 0.14);
}

.proof-item {
  min-height: 104px;
  padding: 18px;
  background: rgba(7, 20, 33, 0.82);
}

.proof-item strong {
  display: block;
  color: var(--yellow);
  font-size: 24px;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.intro-panel {
  position: relative;
  margin-top: -56px;
  padding: 28px;
  border-top: 5px solid var(--yellow);
  background: var(--white);
  box-shadow: var(--heavy-shadow);
}

.intro-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--soft);
}

.section.dark {
  color: var(--white);
  background: var(--navy);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-header h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
}

body.is-ar .section-header h2 {
  line-height: 1.28;
}

.section-header p {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
}

.dark .section-header p {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 32px rgba(7, 20, 33, 0.07);
}

.service-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  overflow: hidden;
}

.service-card:hover {
  border-color: rgba(245, 178, 26, 0.62);
  box-shadow: 0 18px 48px rgba(7, 20, 33, 0.12);
}

.service-card::before {
  display: block;
  width: 44px;
  height: 6px;
  margin-bottom: 22px;
  content: "";
  background: var(--yellow);
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

.service-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body.is-ar .service-kicker {
  text-transform: none;
  display: none;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  display: inline-block;
  margin-top: 8px;
  color: var(--navy);
  font-weight: 800;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 16px 16px 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.problem-list li {
  border-color: rgba(7, 20, 33, 0.18);
  background: var(--navy);
  color: var(--white);
}

body.is-ar .check-list li {
  padding: 16px 46px 16px 16px;
}

.check-list li::before {
  position: absolute;
  left: 16px;
  top: 19px;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--yellow);
  clip-path: polygon(14% 47%, 0 61%, 39% 100%, 100% 17%, 84% 5%, 36% 69%);
}

body.is-ar .check-list li::before {
  left: auto;
  right: 16px;
}

.process {
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 24px;
  border-top: 4px solid var(--yellow);
}

.process-step::before {
  display: block;
  counter-increment: step;
  content: "0" counter(step);
  color: var(--yellow);
  font-size: 26px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.image-panel {
  min-height: 460px;
  border-radius: 8px;
  background-image:
    linear-gradient(180deg, rgba(7, 20, 33, 0.1), rgba(7, 20, 33, 0.28)),
    url("../images/hoist_maintenance.png");
  background-position: center center;
  background-size: cover;
  box-shadow: var(--heavy-shadow);
  transition: transform 0.8s ease;
}

.image-panel:hover {
  transform: scale(1.03);
}

.sector-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}

.sector-strip span {
  min-height: 82px;
  padding: 16px;
  color: var(--navy);
  font-weight: 800;
  background: var(--white);
}

.scope-card {
  padding: 22px;
  border-left: 4px solid var(--yellow);
  background: var(--soft);
}

body.is-ar .scope-card {
  border-right: 4px solid var(--yellow);
  border-left: 0;
}

.case-band {
  border-left: 6px solid var(--yellow);
  padding: 38px;
  background: rgba(255, 255, 255, 0.08);
}

body.is-ar .case-band {
  border-right: 6px solid var(--yellow);
  border-left: 0;
}

.case-band p {
  color: rgba(255, 255, 255, 0.75);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metric {
  min-height: 132px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  color: var(--yellow);
  font-size: 24px;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form.card {
  box-shadow: var(--heavy-shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow);
  outline: 3px solid rgba(245, 178, 26, 0.18);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.page-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 20, 33, 0.94), rgba(7, 20, 33, 0.62)),
    url("../images/inverter_panel.png");
  background-position: center;
  background-size: cover;
}

.page-hero .wrap {
  padding: 98px 0 72px;
}

.page-hero h1 {
  max-width: 900px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--yellow-2);
  font-size: 14px;
  font-weight: 800;
}

.content-block {
  max-width: 820px;
}

.feature-table {
  display: grid;
  border: 1px solid var(--line);
  background: var(--white);
}

.feature-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row strong,
.feature-row span {
  padding: 16px;
}

.feature-row strong {
  color: var(--navy);
  background: var(--soft);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #050d15;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.footer-main h2,
.footer-main h3 {
  color: var(--white);
}

.footer-main ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: #25d366;
  box-shadow: 0 18px 42px rgba(7, 20, 33, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.whatsapp-float::before {
  display: inline-block;
  width: 26px;
  height: 26px;
  content: "";
  background: currentColor;
  clip-path: path("M13 0C5.84 0 0 5.47 0 12.18c0 2.31.7 4.56 2.03 6.5L.7 25.3l6.95-1.82A13.55 13.55 0 0 0 13 24.36c7.16 0 13-5.47 13-12.18S20.16 0 13 0Zm0 22.3c-1.72 0-3.4-.43-4.9-1.25l-.35-.2-4.12 1.08.78-3.89-.23-.34a9.6 9.6 0 0 1-1.6-5.52C2.58 6.6 7.25 2.06 13 2.06s10.42 4.54 10.42 10.12S18.75 22.3 13 22.3Zm5.72-7.55c-.31-.15-1.84-.86-2.12-.96-.29-.1-.5-.15-.7.15-.2.3-.8.96-.98 1.16-.18.2-.36.22-.67.07-.31-.15-1.31-.46-2.5-1.46-.92-.78-1.54-1.75-1.72-2.04-.18-.3-.02-.46.14-.61.14-.14.31-.36.47-.54.16-.18.2-.3.31-.5.1-.2.05-.38-.03-.53-.08-.15-.7-1.62-.96-2.22-.25-.58-.5-.5-.7-.51h-.6c-.2 0-.53.07-.8.36-.28.3-1.05 1-1.05 2.44s1.08 2.84 1.23 3.04c.15.2 2.12 3.13 5.14 4.39.72.3 1.28.48 1.72.61.72.22 1.38.19 1.9.11.58-.08 1.84-.72 2.1-1.42.26-.7.26-1.3.18-1.42-.08-.13-.28-.2-.6-.35Z");
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #1fbd5a;
  box-shadow: 0 22px 52px rgba(7, 20, 33, 0.34);
}

body.is-ar .whatsapp-float {
  right: auto;
  left: 18px;
  padding: 0 14px 0 18px;
}

[data-lang="ar"] {
  display: none !important;
}

body.is-ar [data-lang="en"] {
  display: none !important;
}

body.is-ar [data-lang="ar"] {
  display: inline !important;
}

body.is-ar p[data-lang="ar"],
body.is-ar div[data-lang="ar"],
body.is-ar section[data-lang="ar"],
body.is-ar span[data-lang="ar"],
body.is-ar li[data-lang="ar"],
body.is-ar h1[data-lang="ar"],
body.is-ar h2[data-lang="ar"],
body.is-ar h3[data-lang="ar"] {
  display: block !important;
}

/* Scroll Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.5, 0, 0, 1), transform 0.6s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 92px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: var(--navy);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .grid-3,
  .grid-4,
  .footer-main,
  .sector-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .section-header {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: grid;
  }
}

@media (max-width: 720px) {
  .hero,
  .hero-inner {
    min-height: 690px;
  }

  .hero {
    background-image:
      linear-gradient(180deg, rgba(7, 20, 33, 0.95) 0%, rgba(7, 20, 33, 0.78) 58%, rgba(7, 20, 33, 0.5) 100%),
      url("../images/hero_crane.png");
    background-position: center center;
  }

  .hero-proof,
  .grid-2,
  .grid-3,
  .grid-4,
  .check-list,
  .metric-row,
  .form,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    margin-top: 34px;
  }

  .whatsapp-float {
    width: 58px;
    min-height: 58px;
    padding: 0;
    border-radius: 50%;
  }

  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .intro-panel {
    margin-top: 0;
  }

  .section {
    padding: 58px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 248px;
    max-height: 68px;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}
