:root {
  --ink: #101418;
  --muted: #5f6b76;
  --line: #dce3e8;
  --surface: #ffffff;
  --soft: #f4f7f8;
  --deep: #07120f;
  --deep-2: #0f1c19;
  --accent: #19a86b;
  --accent-2: #f2b84b;
  --danger: #cf3f3f;
  --shadow: 0 18px 40px rgba(8, 18, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body[data-lang="ar"] {
  font-family: "Cairo", Tahoma, sans-serif;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(16, 20, 24, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--deep);
  border: 3px solid var(--accent);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #26313a;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--deep);
  background: rgba(25, 168, 107, 0.1);
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e9eef0;
  border-radius: 8px;
}

.lang-btn {
  min-width: 48px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: #3d4851;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  background: var(--deep);
}

.hero-section {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 4200ms ease;
}

.hero-media img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 13, 10, 0.9), rgba(5, 13, 10, 0.66) 52%, rgba(5, 13, 10, 0.2)),
    linear-gradient(0deg, rgba(5, 13, 10, 0.74), rgba(5, 13, 10, 0.08) 45%, rgba(5, 13, 10, 0.45));
}

html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(5, 13, 10, 0.9), rgba(5, 13, 10, 0.66) 52%, rgba(5, 13, 10, 0.2)),
    linear-gradient(0deg, rgba(5, 13, 10, 0.74), rgba(5, 13, 10, 0.08) 45%, rgba(5, 13, 10, 0.45));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 48px;
  padding: 76px 0 60px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

body[data-lang="ar"] .eyebrow {
  text-transform: none;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 70px;
  line-height: 0.98;
  max-width: 850px;
}

h2 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.08;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #118858;
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
  display: grid;
  gap: 10px;
}

.metric {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 24px;
  line-height: 1;
}

.metric span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.intro-section {
  background: #fff;
}

.intro-grid,
.split-grid,
.contact-grid,
.product-strip-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.intro-grid p,
.split-grid p,
.product-strip p {
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(13, 27, 23, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.solution-card[data-service] {
  cursor: pointer;
}

.solution-card:hover,
.solution-card:focus {
  border-color: rgba(25, 168, 107, 0.45);
  box-shadow: 0 16px 34px rgba(13, 27, 23, 0.13);
  transform: translateY(-2px);
  outline: none;
}

.solution-card h3,
.solution-card p,
.solution-card .tags {
  margin-left: 20px;
  margin-right: 20px;
}

.solution-card h3 {
  margin-top: 20px;
}

.solution-card p {
  color: var(--muted);
  min-height: 78px;
}

.card-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  aspect-ratio: 16 / 5;
  overflow: hidden;
}

.card-images.single-image {
  grid-template-columns: 1fr;
  aspect-ratio: 16 / 7;
}

.card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  transition: transform 220ms ease, filter 220ms ease;
}

.card-images.zoomable {
  cursor: zoom-in;
}

.card-images.zoomable:hover img {
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.04);
}

.image-zoom-btn {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(7, 18, 15, 0.76);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
}

.magnifier-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-radius: 999px;
}

.magnifier-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  right: -8px;
  bottom: -5px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: center;
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 0 20px 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.card-link:hover,
.card-link:focus {
  color: #118858;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(3, 8, 7, 0.88);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.image-lightbox p {
  max-width: min(900px, 86vw);
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  font-size: 14px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  inset-inline-end: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.lightbox-close span,
.lightbox-close span::after {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(45deg);
}

.lightbox-close span::after {
  content: "";
  transform: rotate(90deg);
}

.lightbox-open {
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 20px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #234235;
  background: #e6f5ee;
  font-size: 12px;
  font-weight: 800;
}

.split-section {
  color: #fff;
  background: var(--deep);
}

.split-section .eyebrow,
.contact-section .eyebrow {
  color: var(--accent-2);
}

.split-section p {
  color: rgba(255, 255, 255, 0.74);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.feature-list strong {
  color: #fff;
}

.feature-list span {
  color: rgba(255, 255, 255, 0.72);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sectors-grid div {
  padding: 18px;
  min-height: 78px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.product-strip {
  color: #fff;
  background: var(--deep-2);
}

.product-strip-inner {
  grid-template-columns: 1fr 320px;
}

.product-strip h2 {
  margin-bottom: 12px;
}

.product-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-2);
  font-weight: 800;
}

.contact-section {
  color: #fff;
  background: #11211c;
}

.contact-grid {
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-details a,
.contact-details span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(4, 10, 8, 0.64);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-2);
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

html[dir="rtl"] .floating-actions {
  right: auto;
  left: 18px;
}

.floating-actions a {
  min-width: 106px;
  padding: 11px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--deep);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.floating-actions a:last-child {
  background: var(--accent);
}

.site-footer {
  background: #07120f;
  color: rgba(255, 255, 255, 0.72);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #fff;
  font-weight: 800;
}

.product-hero {
  color: #fff;
  background: var(--deep);
  padding: 82px 0;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 54px;
}

.product-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.spec-table th,
.spec-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: inherit;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: var(--ink);
  background: #eef3f1;
}

.spec-table td {
  color: var(--muted);
}

.message-box {
  max-width: 720px;
  margin: 28px auto;
  padding: 16px;
  border-radius: 8px;
  font-weight: 800;
}

.message-box.success {
  color: #155d3f;
  background: #dff4e9;
}

.message-box.error {
  color: #7d2424;
  background: #fde3e3;
}

.service-detail-hero {
  color: #fff;
  background: var(--deep);
  padding: 82px 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: center;
}

.service-detail-media {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.service-feature-list {
  display: grid;
  gap: 12px;
}

.service-feature-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-feature-list strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  border-radius: 8px;
  background: var(--accent);
}

.service-feature-list span {
  color: var(--muted);
  font-weight: 700;
}

.service-gallery-section {
  background: #fff;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  html[dir="rtl"] .nav-links {
    justify-content: flex-start;
  }

  .hero-content,
  .intro-grid,
  .split-grid,
  .contact-grid,
  .product-strip-inner,
  .product-hero-grid,
  .service-detail-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 30px;
    padding: 56px 0 44px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 36px;
  }

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

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

  .product-strip img,
  .product-hero img {
    max-width: 420px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    min-width: auto;
  }

  .brand strong {
    font-size: 14px;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .language-switch {
    margin-inline-start: auto;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding: 54px 0 38px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-panel,
  .solutions-grid,
  .sectors-grid,
  .service-gallery {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .feature-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .floating-actions {
    position: static;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    background: #07120f;
  }

  .floating-actions a {
    box-shadow: none;
  }
}
