
:root {
  --bg: #f5f7fb;
  --bg-2: #eef4ff;
  --card: rgba(255,255,255,.88);
  --card-strong: #ffffff;
  --line: rgba(148,163,184,.22);
  --line-strong: rgba(148,163,184,.3);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #1d4ed8;
  --accent-2: #0f172a;
  --shadow: 0 18px 48px rgba(15,23,42,.10);
  --shadow-soft: 0 8px 20px rgba(15,23,42,.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
  font-family: Inter, "Noto Sans Arabic", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(960px 500px at 10% 0%, rgba(59,130,246,.10), rgba(59,130,246,0) 60%),
    radial-gradient(1000px 620px at 100% 0%, rgba(14,165,233,.08), rgba(14,165,233,0) 58%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
main { min-height: calc(100vh - 220px); }

/* RTL Support for Arabic */
body.rtl {
  direction: rtl;
  text-align: right;
}
body.rtl .nav-wrap {
  flex-direction: row-reverse;
}
body.rtl .nav-links {
  flex-direction: row-reverse;
}
body.rtl .hero-panel,
body.rtl .hero-copy {
  text-align: right;
}
body.rtl .grid-2,
body.rtl .grid-3,
body.rtl .grid-4,
body.rtl .grid-5 {
  direction: rtl;
}
body.rtl .spec-card,
body.rtl .info-card,
body.rtl .image-card {
  text-align: right;
}
body.rtl .compare-grid {
  direction: rtl;
}
body.rtl .footer-wrap {
  flex-direction: row-reverse;
}
body.rtl .footer-links {
  flex-direction: row-reverse;
}
body.rtl .lang-switch,
body.rtl .gallery-caption,
body.rtl .lightbox-actions {
  flex-direction: row-reverse;
}
body.rtl .gallery-toolbar,
body.rtl .lightbox-top,
body.rtl .lightbox-bottom {
  direction: rtl;
}
body.rtl input,
body.rtl textarea {
  direction: rtl;
  text-align: right;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(248,251,255,.78);
  border-bottom: 1px solid rgba(148,163,184,.18);
}
.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  box-shadow: var(--shadow-soft);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.site-nav {
  flex: 1;
  min-width: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.95);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
}
.nav-toggle-icon {
  display: inline-grid;
  gap: 4px;
}
.nav-toggle-icon i {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(15,23,42,.78);
  font-size: 14px;
  transition: all .2s ease;
}
.nav-link:hover { background: rgba(15,23,42,.05); color: var(--text); }
.nav-link.active {
  background: rgba(15,23,42,.08);
  color: var(--text);
  font-weight: 700;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lang-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.9);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.lang-btn.active {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  border-color: transparent;
}

.section,
.hero,
.page-hero,
.cta-band,
.gallery-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.hero,
.page-hero {
  padding: 34px 0 72px;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center;
}
.hero-home {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center;
}
.hero-copy,
.hero-panel,
.card,
.info-card,
.mini-card,
.image-card,
.feature-panel,
.contact-card,
.form-panel,
.gallery-panel,
.spec-card,
.note-card,
.success-panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}
.hero-copy,
.hero-panel,
.feature-panel,
.form-panel,
.gallery-panel,
.success-panel { padding: 28px; }
.card,
.info-card,
.mini-card,
.contact-card,
.spec-card,
.note-card { padding: 24px; }
.image-card-body { padding: 22px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1,
.page-hero h1,
.hero-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); }
.hero p,
.page-hero p,
.hero-copy p,
.section-head p,
.info-card p,
.mini-card p,
.image-card p,
.contact-card p,
.form-panel p,
.note-card p,
.spec-card p,
.footer-copy,
.feature-panel p { color: var(--muted); line-height: 1.78; }
.lead {
  max-width: 66ch;
  font-size: 17px;
}
.hero-actions,
.pill-row,
.chip-row,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions { margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.94);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(255,255,255,.92);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
}
.hero-visual-stack {
  display: grid;
  gap: 14px;
}
.hero-frame,
.media-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.hero-frame {
  aspect-ratio: 16 / 10;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-home .hero-frame:first-child img { aspect-ratio: 16 / 10; }
.hero-home .hero-grid-sm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hero-home .hero-grid-sm .hero-frame { aspect-ratio: 4 / 3; }
.hero-home .hero-grid-sm img { aspect-ratio: 4 / 3; }

.section {
  padding-bottom: 72px;
}
.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: -.03em;
}
.grid-2,
.grid-3,
.grid-4,
.grid-5 {
  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)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.info-card h3,
.mini-card h3,
.product-tile h3,
.image-card h3,
.spec-card h3,
.contact-card h3,
.form-panel h3,
.note-card h3,
.feature-panel h3,
.success-panel h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.2;
}
.info-card .icon-chip,
.note-card .icon-chip,
.spec-card .icon-chip {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(29,78,216,.10);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 16px;
}
.mini-card h3 { font-size: 18px; }
.product-tile,
.image-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}
.product-tile:hover { transform: translateY(-2px); }
.product-tile { transition: transform .2s ease, box-shadow .2s ease; }
.tile-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.image-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(255,255,255,.98);
  padding: 12px;
}
.tile-body { padding: 24px; }
.tile-body h3 { margin-top: 8px; }
.tile-body p { color: var(--muted); line-height: 1.72; }

.split-card {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  align-items: stretch;
}
.split-card .media-frame img { min-height: 100%; }

.compare-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
}
.compare-grid .card { height: 100%; }
.compare-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.82;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.95);
  border-radius: 18px;
  overflow: hidden;
}
.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
.spec-table th {
  width: 34%;
  color: var(--text);
  font-size: 14px;
}
.spec-table td {
  color: var(--muted);
  font-size: 14px;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.metric {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.metric strong {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}
.metric span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.cta-band {
  padding-bottom: 80px;
}
.cta-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(29,78,216,.96));
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-panel p { color: rgba(255,255,255,.82); max-width: 66ch; }
.cta-panel .pill { background: rgba(255,255,255,.10); color: #e2e8f0; border-color: rgba(255,255,255,.16); }

.form-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
}
.form-panel .helper {
  color: var(--muted);
  margin: -4px 0 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 700;
  font-size: 14px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.96);
  color: var(--text);
}
.field textarea {
  resize: vertical;
  min-height: 132px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.checkbox-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
}
.success-panel { display: none; text-align: center; }
.success-panel .icon-chip {
  margin: 0 auto 14px;
}
.note {
  font-size: 13px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}
.contact-item + .contact-item { margin-top: 16px; }
.contact-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.contact-value {
  font-size: 19px;
  font-weight: 700;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.qr-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.qr-card img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #fff;
}
.qr-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.gallery-panel {
  padding: 24px;
}
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-chip {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.94);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.filter-chip.active {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  border-color: transparent;
}
.gallery-masonry {
  column-count: 4;
  column-gap: 14px;
}
.gallery-item {
  width: 100%;
  display: block;
  margin-bottom: 14px;
  break-inside: avoid;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  padding: 0;
  appearance: none;
  text-align: initial;
}
.gallery-item img {
  width: 100%;
  display: block;
  height: auto;
}
.gallery-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.gallery-badge,
.gallery-index {
  border-radius: 999px;
  padding: 7px 10px;
  backdrop-filter: blur(10px);
  font-size: 12px;
  line-height: 1;
}
.gallery-badge {
  background: rgba(15,23,42,.72);
  color: #fff;
}
.gallery-index {
  background: rgba(255,255,255,.84);
  color: var(--text);
}
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2,6,23,.84);
  z-index: 1200;
}
.lightbox.open { display: flex; }
.lightbox-panel {
  width: min(1080px, 100%);
  max-height: 94vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}
.lightbox-top,
.lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  flex-wrap: wrap;
}
.lightbox-actions {
  display: flex;
  gap: 8px;
}
.lightbox-btn {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
}
.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 78vh;
}
.lightbox-media img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 22px;
  background: #fff;
}

.site-footer {
  border-top: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.55);
}
.footer-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 18px;
  align-items: start;
}
.footer-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
}
.footer-copy {
  margin: 10px 0 0;
  max-width: 56ch;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-link {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  font-weight: 700;
  color: rgba(15,23,42,.78);
}
.footer-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  justify-items: end;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-masonry { column-count: 3; }
}

@media (max-width: 960px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .lang-switch {
    justify-content: flex-end;
  }
  .site-nav {
    grid-column: 1 / -1;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-soft);
    justify-content: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero-home,
  .hero-split,
  .grid-3,
  .form-layout,
  .contact-grid,
  .compare-grid,
  .split-card,
  .footer-wrap {
    grid-template-columns: 1fr;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero,
  .page-hero,
  .section,
  .cta-band { padding-bottom: 56px; }
  .hero-copy,
  .hero-panel,
  .feature-panel,
  .form-panel,
  .gallery-panel,
  .success-panel,
  .card,
  .info-card,
  .mini-card,
  .contact-card,
  .spec-card,
  .note-card { padding: 22px; }
  .grid-4,
  .grid-5,
  .checkbox-grid,
  .qr-grid { grid-template-columns: 1fr; }
  .gallery-masonry { column-count: 2; }
  .footer-meta { justify-items: start; }
}

@media (max-width: 520px) {
  .nav-wrap,
  .section,
  .hero,
  .page-hero,
  .cta-band,
  .gallery-wrap,
  .footer-wrap { width: min(var(--max), calc(100% - 24px)); }
  .lang-switch {
    width: 100%;
    justify-content: flex-start;
  }
  .lang-btn {
    flex: 1 1 auto;
  }
  .hero h1,
  .page-hero h1,
  .hero-copy h1 { font-size: clamp(30px, 10vw, 42px); }
  .gallery-masonry { column-count: 1; }
}
