/*
  فلسفة التصميم المعتمدة: Industrial Neo-Brutalism
  واجهة عربية RTL بطابع معدني قوي: كتل واضحة، تباين عالٍ، أزرق سماوي من الشعار، خطوط قياس صناعية، وبطاقات تشبه ألواح المعدات.
  سؤال المراجعة الدائم: هل يعزز هذا الاختيار فلسفة التصميم الصناعية أم يضعفها؟
*/
:root {
  --sky: #39bff2;
  --sky-strong: #079bd3;
  --steel: #111820;
  --steel-2: #1e2933;
  --graphite: #2f3a44;
  --metal: #d7dde3;
  --line: rgba(17, 24, 32, 0.12);
  --white: #ffffff;
  --soft: #f3f7fa;
  --text: #18212b;
  --muted: #5f6b77;
  --shadow: 0 22px 65px rgba(11, 20, 30, 0.14);
  --shadow-dark: 0 26px 80px rgba(0, 0, 0, 0.32);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "Tajawal", "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(7, 155, 211, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 24, 32, 0.035) 1px, transparent 1px),
    #ffffff;
  background-size: 42px 42px;
  line-height: 1.85;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--steel);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.top-bar {
  background: var(--steel);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar__inner,
.top-bar__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar__inner {
  padding: 10px 0;
}

.top-bar a {
  transition: color 0.25s ease;
}

.top-bar a:hover {
  color: var(--sky);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(8, 20, 32, 0.06);
}

.header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  padding: 8px 0;
}

.brand img {
  width: 260px;
  max-height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.primary-nav a {
  position: relative;
  color: var(--graphite);
  font-weight: 800;
  font-size: 0.94rem;
  padding: 10px 9px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 10px;
  left: 10px;
  bottom: 6px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--sky);
  transition: transform 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--steel);
  background: rgba(57, 191, 242, 0.08);
}

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

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.header-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--sky-strong));
  color: #041018;
  box-shadow: 0 14px 30px rgba(7, 155, 211, 0.28);
}

.header-cta {
  padding: 12px 18px;
  font-size: 0.94rem;
}

.btn {
  padding: 14px 24px;
  min-height: 52px;
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(7, 155, 211, 0.36);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--steel);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-soft {
  background: linear-gradient(180deg, #f7fafc, #edf4f8);
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sky);
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.section-kicker::before {
  content: "";
  width: 42px;
  height: 3px;
  background: currentColor;
  border-radius: 99px;
}

h1,
h2,
h3 {
  font-family: "Cairo", "Tajawal", sans-serif;
  line-height: 1.25;
  margin: 0;
  color: inherit;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 830px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 900;
}

p {
  margin: 0;
  color: var(--muted);
}

.section-dark p,
.hero p,
.cta p {
  color: rgba(255, 255, 255, 0.78);
}

.hero {
  position: relative;
  min-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__media img,
.cta__media,
.cta__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 9, 14, 0.42) 0%, rgba(3, 9, 14, 0.78) 46%, rgba(3, 9, 14, 0.96) 100%),
    radial-gradient(circle at 25% 30%, rgba(57, 191, 242, 0.28), transparent 34%);
}

.hero::after,
.why::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
  z-index: -1;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 46px;
  align-items: end;
  padding: 86px 0 76px;
}

.hero__lead {
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  font-weight: 800;
  margin-top: 18px;
  max-width: 770px;
}

.hero__text {
  font-size: 1.08rem;
  margin-top: 16px;
  max-width: 720px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

.hero__cards article {
  min-height: 136px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.hero__cards article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 68px;
  height: 4px;
  background: var(--sky);
}

.hero__cards strong {
  display: block;
  font-family: "Cairo", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.hero__cards span {
  color: rgba(255, 255, 255, 0.68);
}

.split-layout,
.data-layout,
.contact-layout,
.brands__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.about__text p + p {
  margin-top: 16px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.metric-strip div,
.data-cards div,
.product-card,
.why-card,
.brand-grid span,
.contact-form,
.direct-actions a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.metric-strip div {
  padding: 18px;
  border-radius: 18px;
}

.metric-strip strong {
  display: block;
  color: var(--steel);
  font-family: "Cairo", sans-serif;
  font-size: 1.25rem;
}

.metric-strip span {
  color: var(--muted);
  font-weight: 700;
}

.about__figure,
.data-image {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 24, 32, 0.08);
}

.about__figure::before,
.data-image::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(57, 191, 242, 0.35);
  border-radius: 22px;
  z-index: 1;
  pointer-events: none;
}

.about__figure img,
.data-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__figure figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 24, 32, 0.8);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.section-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 46px;
}

.section-heading.align-start {
  text-align: right;
  margin: 0;
}

.section-heading p {
  margin-top: 14px;
  font-size: 1.07rem;
}

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

.product-card {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 250px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -38px;
  inset-block-end: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 191, 242, 0.2), transparent 62%);
}

.product-card:hover,
.why-card:hover,
.brand-grid span:hover,
.direct-actions a:hover {
  transform: translateY(-6px);
  border-color: rgba(7, 155, 211, 0.4);
  box-shadow: 0 28px 76px rgba(7, 28, 45, 0.17);
}

.product-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #041018;
  background: linear-gradient(135deg, var(--sky), #a7e9ff);
  font-family: "Cairo", sans-serif;
  font-weight: 900;
  margin-bottom: 20px;
}

.product-card h3 {
  color: var(--steel);
  margin-bottom: 12px;
}

.brands {
  background: #fff;
}

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

.brand-grid span {
  min-height: 86px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: "Cairo", sans-serif;
  font-size: 1.34rem;
  font-weight: 900;
  color: var(--steel);
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.why {
  position: relative;
  overflow: hidden;
}

.why-grid {
  position: relative;
  z-index: 1;
}

.why-card {
  padding: 26px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-dark);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.why-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(57, 191, 242, 0.15);
  color: var(--sky);
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.94);
}

.cta {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 18, 0.5), rgba(5, 12, 18, 0.88) 56%, rgba(5, 12, 18, 0.98)),
    radial-gradient(circle at 72% 30%, rgba(57, 191, 242, 0.22), transparent 35%);
  z-index: -2;
}

.cta__content {
  max-width: 720px;
}

.cta h2 {
  margin-bottom: 18px;
}

.cta p {
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.data-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.data-panel {
  position: relative;
  z-index: 2;
}

.data-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.data-cards div {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
}

.data-cards span {
  display: block;
  color: var(--sky-strong);
  font-weight: 900;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.data-cards strong {
  display: block;
  color: var(--steel);
  font-family: "Cairo", sans-serif;
  overflow-wrap: anywhere;
}

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

.contact__info p {
  margin-top: 14px;
  font-size: 1.07rem;
}

.direct-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.direct-actions a {
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--steel);
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.address-line {
  display: inline-block;
  margin-top: 24px !important;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(57, 191, 242, 0.1);
  color: var(--steel);
  font-weight: 900;
}

.contact-form {
  padding: 30px;
  border-radius: 26px;
  background: #fff;
}

.contact-form label {
  display: block;
  color: var(--steel);
  font-weight: 900;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 32, 0.13);
  background: #f7fafc;
  color: var(--steel);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sky-strong);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(57, 191, 242, 0.16);
}

.contact-form .btn {
  width: 100%;
  color: #041018;
}

.site-footer {
  background: #070d13;
  color: #fff;
  padding-top: 64px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr;
  gap: 36px;
  padding-bottom: 46px;
}

.footer-brand img {
  width: 260px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.74);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--sky);
  transform: translateX(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
}

.floating-whatsapp {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #20c763;
  color: #041018;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(32, 199, 99, 0.32);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .header__inner {
    gap: 14px;
  }

  .brand img {
    width: 220px;
  }

  .primary-nav a {
    font-size: 0.88rem;
    padding-inline: 6px;
  }

  .header-cta {
    padding-inline: 14px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 78px;
  }

  .top-bar__inner {
    justify-content: center;
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: calc(var(--header-height) + 1px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  body.nav-open .primary-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero__content,
  .split-layout,
  .data-layout,
  .contact-layout,
  .brands__layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 78px 0 58px;
  }

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

  .section {
    padding: 74px 0;
  }

  .section-heading.align-start {
    text-align: center;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand img {
    width: 178px;
    max-height: 58px;
  }

  .top-bar__group {
    justify-content: center;
    gap: 10px 14px;
  }

  .hero__cards,
  .products-grid,
  .why-grid,
  .metric-strip,
  .data-cards,
  .direct-actions,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .product-card,
  .contact-form {
    padding: 22px;
  }

  .footer-brand img {
    width: 220px;
  }

  .floating-whatsapp {
    left: 12px;
    bottom: 12px;
    min-width: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
