@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #07164a;
  --blue: #0b2d89;
  --cta: #126bff;
  --soft: #f5f7fb;
  --text: #172033;
  --muted: #687386;
  --line: #e3e8f1;
  --border: #e3e8f1;
  --white: #fff;
  --whatsapp: #25d366;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(7, 22, 74, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

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

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

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

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

.topbar {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}

.topbar .container,
.header .container,
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar .container {
  min-height: 44px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header .container {
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(7, 22, 74, 0.16);
  flex: 0 0 auto;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: -5px;
}

.nav a {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.nav a:hover {
  color: var(--cta);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--cta);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(18, 107, 255, 0.22);
}

.btn.secondary {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.whatsapp {
  background: var(--whatsapp);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.22);
}

.quick-contact {
  padding: 18px 0;
  background: var(--navy);
  color: var(--white);
}

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

.quick-contact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.quick-contact a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.quick-contact strong {
  color: var(--white);
  font-size: 16px;
}

.quick-contact span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(18, 107, 255, 0.16), transparent 38%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  padding: 56px 0;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(18, 107, 255, 0.1);
  color: var(--blue);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

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

h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.15;
  margin: 18px 0;
  color: var(--navy);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 14px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 670px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-card {
  position: relative;
  padding: 18px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-card img {
  border-radius: 24px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 18px;
  max-width: 250px;
  box-shadow: 0 16px 40px rgba(7, 22, 74, 0.22);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.trust-item,
.card,
.product-card,
.info-box,
.step,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(7, 22, 74, 0.06);
}

.trust-item {
  padding: 16px;
  font-weight: 800;
  color: var(--navy);
}

section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

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

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

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

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  cursor: zoom-in;
}

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

.zoomable-image {
  cursor: zoom-in;
}

.showroom-gallery {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 16px;
}

.showroom-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(7, 22, 74, 0.08);
  cursor: zoom-in;
}

.showroom-gallery img:first-child {
  height: 576px;
  grid-row: span 2;
}

.section-note {
  margin-top: 18px;
  color: var(--muted);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  background: rgba(3, 8, 25, 0.86);
  padding: 18px;
}

.image-lightbox.open {
  display: grid;
}

.image-lightbox__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  width: min(1100px, 96vw);
  height: min(820px, 92vh);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.image-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.image-lightbox__title {
  color: var(--navy);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox__actions {
  display: flex;
  gap: 8px;
}

.image-lightbox button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.image-lightbox__viewport {
  display: grid;
  place-items: center;
  overflow: auto;
  background:
    linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-color: #fff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.image-lightbox__image {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.18s ease;
}

.image-lightbox__hint {
  padding: 10px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.product-card .body,
.card .body {
  padding: 20px;
}

.product-card h3,
.card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  line-height: 1.35;
}

.product-code {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(18, 107, 255, 0.18);
  border-radius: 999px;
  background: rgba(18, 107, 255, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--blue);
  color: var(--white);
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

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

.usage-card {
  overflow: hidden;
}

.usage-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  padding: 22px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--cta);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.media-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: 34px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.media-panel h2 {
  color: var(--white);
}

.media-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.offer-box {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.contact-card {
  padding: 24px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 14px;
  background: var(--soft);
  border-radius: 18px;
}

.map-frame {
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
  aspect-ratio: 16 / 10;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-coordinates {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.footer-brand,
.footer-brand-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-brand img,
.footer-brand-inline img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
}

.footer a,
.footer p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 8px;
}

.footer h3 {
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.4;
}

.footer-brand h3,
.footer-brand-inline h3,
.footer-brand-inline p {
  margin: 0;
}

.mobile-cta {
  position: fixed;
  right: 12px;
  left: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-hero {
  background: var(--soft);
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.table th,
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.table th {
  color: var(--navy);
  background: var(--soft);
}

.notice {
  padding: 16px;
  border-radius: 20px;
  background: #fff8e5;
  color: #5a4200;
  border: 1px solid #f3d987;
}

.product-meta {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.product-meta li::before {
  content: "•";
  color: var(--cta);
  font-weight: 800;
  margin-left: 6px;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .media-panel,
  .footer-grid,
  .quick-contact-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .grid.cols-4,
  .steps,
  .showroom-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid.product-grid {
    grid-template-columns: 1fr;
  }

  .quick-contact a {
    min-height: auto;
  }

  .showroom-gallery img:first-child {
    height: 280px;
    grid-row: auto;
  }

  .nav {
    position: fixed;
    top: 85px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.75;
  }

  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
  }

  .header .container {
    min-height: 72px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .nav {
    top: 73px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .quick-contact {
    padding: 12px 0;
  }

  .quick-contact-grid {
    gap: 8px;
  }

  .quick-contact a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .quick-contact span {
    text-align: right;
  }

  .trust-strip,
  .grid.cols-4,
  .grid.cols-3,
  .steps,
  .showroom-gallery {
    grid-template-columns: 1fr;
  }

  section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .lead {
    font-size: 17px;
  }

  .hero {
    padding: 38px 0;
  }

  .hero-actions,
  .section-actions,
  .logistics-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 50px;
  }

  .floating-card {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .mobile-cta {
    display: grid;
  }

  .product-card img {
    height: min(390px, 78vw);
    padding: 4px;
  }

  .product-card .body,
  .card .body,
  .contact-card {
    padding: 16px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .filter-chip {
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .showroom-gallery img,
  .showroom-gallery img:first-child {
    height: 260px;
  }

  .image-lightbox {
    padding: 8px;
  }

  .image-lightbox__panel {
    width: 100%;
    height: 92vh;
    border-radius: 18px;
  }

  .image-lightbox__toolbar {
    gap: 6px;
    padding: 8px;
  }

  .image-lightbox button {
    width: 38px;
    height: 38px;
  }

  .footer {
    padding-bottom: 112px;
  }
}
