:root {
  --navy: #0b1d36;
  --navy-2: #122744;
  --blue: #1d4ed8;
  --line: #e6ebf2;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #5b6b80;
  --header: 72px;
  --max: 1120px;
  --radius: 8px;
  --font: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.section[id] { scroll-margin-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 10px; font-weight: 700; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: var(--navy);
  border-bottom: 1px solid #163052;
}
.header-inner {
  height: var(--header);
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand, .brand-lockup { display: block; text-decoration: none; }
.brand-lockup { height: 42px; width: auto; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 6px 8px; background: #fff; }

.nav-panel { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; gap: 18px; }
.nav-list a {
  color: #d5e0ee;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-list a.is-active, .nav-list a:hover { color: #fff; }

.lang-switch { display: flex; gap: 4px; border: 1px solid #2a4568; border-radius: 6px; padding: 3px; }
.lang-switch a {
  color: #b8c7d9;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
}
.lang-switch a.is-active { background: #1d4ed8; color: #fff; }

.btn-erp, .btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-erp, .btn-primary { background: var(--blue); color: #fff; }
.btn-primary.invert { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #3d5a7a; }

.hero, .page-hero, .cta-band {
  background: var(--navy);
  color: #fff;
}
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero { padding: 48px 0 40px; }
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
}
.hero-grid-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-layout, .split, .contact-grid, .cta-inner, .footer-grid, .leap-grid, .product-grid, .bento, .values, .page-hero-layout, .service-block, .team-layout, .team-cards, .contact-people { display: grid; gap: 28px; }
.hero-layout { grid-template-columns: 1.2fr 0.8fr; align-items: center; position: relative; z-index: 1; }
.page-hero-layout { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.page-hero-layout.page-hero-text { grid-template-columns: 1fr; }
.page-hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid #1e3a5f; }
.page-hero-art img { width: 100%; height: 220px; object-fit: cover; }
.hero-kicker, .section-kicker, .pill {
  display: inline-block;
  color: #8eb4e8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.hero-title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); max-width: 18ch; }
.page-hero .hero-title, .page-hero .hero-lead { max-width: 40ch; }
.hero-lead, .section-lead { color: #c5d2e3; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.stat { padding-top: 10px; border-top: 1px solid #2a4568; }
.stat-value { font-size: 1.5rem; }
.stat-label, .muted { color: #8ea0b5; margin: 0; font-size: 0.88rem; }

.hero-panel, .product-card, .bento-card, .location-card, .quote-card, .contact-form, .media-card, .leap-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.hero-panel { background: var(--navy-2); border-color: #1e3a5f; color: #fff; overflow: hidden; }
.hero-panel p, .spotlight-lead { color: #b7c6d8; }
.panel-link { color: #93c5fd; font-weight: 600; text-decoration: none; }
.card-visual {
  margin: -22px -22px 16px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16 / 9;
}
.card-visual.compact { aspect-ratio: 16 / 8; margin-bottom: 14px; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .card-visual { aspect-ratio: 16 / 7; max-height: 132px; }
.service-visual img { width: 100%; height: 240px; object-fit: cover; display: block; }
.icon-visual { width: 56px; height: 56px; border-radius: 6px; }

.section { padding: 72px 0; }
.section-muted { background: var(--bg); }
.section-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.section-lead { color: var(--muted); margin-bottom: 28px; }
.cta-band .section-lead, .cta-band p { color: #c5d2e3; }

.product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { display: grid; gap: 8px; overflow: hidden; }
.product-card h3 { font-size: 1.05rem; }
.product-card p { margin: 0; color: var(--muted); }
.product-card a { color: var(--blue); font-weight: 600; text-decoration: none; margin-top: 6px; }
.product-card .pill { color: var(--blue); }

.leap-grid { grid-template-columns: 1fr 1fr; }
.leap-num { font-size: 2rem; color: var(--blue); margin: 0 0 6px; }
.leap-card { overflow: hidden; }
.leap-card.accent { background: var(--navy); color: #fff; border-color: var(--navy); }
.leap-card.accent p { color: #c5d2e3; }
.leap-card.accent .card-visual { background: #071422; }

.split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.split-copy p { color: var(--muted); }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.media-card {
  min-height: 180px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.media-card img { width: 100%; height: 140px; object-fit: cover; }
.media-card-label {
  padding: 12px 14px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
}
.media-card.alt { background: var(--blue); }
.media-card.alt .media-card-label { background: var(--blue); }
.media-card span { color: #93c5fd; font-weight: 700; }
.media-card.alt span { color: #dbeafe; }

.location-card { margin-bottom: 12px; overflow: hidden; }
.location-card h2 { margin: 4px 0 8px; font-size: 1.15rem; }
.location-card p { margin: 0; color: var(--muted); }
.location-card .pill { color: var(--blue); }
.location-card a { display: inline-block; font-weight: 600; margin-top: 8px; }
.quote-card { background: var(--navy); color: #fff; border: 0; overflow: hidden; }
.quote-card p { font-size: 1.25rem; }
.quote-card footer { display: grid; margin-top: 16px; color: #93c5fd; }
.quote-card .card-visual { background: #071422; }

.bento, .values { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.bento-card p { color: var(--muted); }
.bento-card .section-kicker { color: var(--blue); }
.purpose { grid-column: 1 / -1; }

.timeline, .steps, .check-list { list-style: none; padding: 0; }
.timeline-item, .steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.timeline-item span { color: var(--blue); font-weight: 700; }
.check-list li { padding: 7px 0 7px 22px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--blue);
}
.product-for { font-weight: 600; color: var(--blue); }
.service-block { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.service-block.reverse { grid-template-columns: 1.1fr 0.9fr; }
.service-block.reverse .service-visual { order: 2; }
.service-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
  min-height: 220px;
}
.cta-band .service-visual { border-color: #1e3a5f; }
.service-block .btn-primary { margin-top: 16px; width: fit-content; }
.cta-inner { grid-template-columns: 1fr auto; align-items: center; padding: 56px 0; }
.contact-grid { grid-template-columns: 0.9fr 1.1fr; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 6px; margin: 12px 0; font-size: 0.88rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  min-height: 42px;
  border: 1px solid #d5deea;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
}
.form-status { margin: 8px 0 0; font-weight: 600; }
.form-status.success { color: #047857; }
.form-status.error { color: #b91c1c; }
.contact-meta { display: grid; gap: 8px; margin-top: 16px; }
.contact-meta a { font-weight: 600; }
.contact-person { margin: 0; font-weight: 700; color: var(--text); }
.contact-people { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.contact-people .location-card { margin-bottom: 0; }
.contact-people .contact-person { color: var(--text); }
.contact-people a { display: block; font-weight: 600; margin-top: 6px; }

.team-layout { grid-template-columns: 1fr; align-items: stretch; }
.team-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
.team-photo-wrap { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.team-photo { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; align-content: start; gap: 6px; }
.team-avatar {
  width: 56px;
  height: 56px;
  margin: 0 0 8px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
}
.team-card p { margin: 0; color: var(--muted); }
.team-card .pill { color: var(--blue); }
.team-card .team-edu { font-weight: 600; color: var(--navy); }

.footer { background: #071422; color: #d5e0ee; padding-top: 48px; }
.footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr; padding-bottom: 32px; }
.footer-col, .footer-brand { display: grid; gap: 8px; align-content: start; }
.footer a { text-decoration: none; color: #d5e0ee; }
.footer h3 { margin: 0 0 4px; font-size: 0.9rem; color: #fff; }
.footer-bottom { border-top: 1px solid #163052; padding: 14px 0 20px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

html[dir="rtl"] .check-list li { padding: 7px 22px 7px 0; }
html[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Inter", sans-serif; }

@media (max-width: 960px) {
  .hero-layout, .split, .product-grid, .bento, .values, .location-grid, .contact-grid, .footer-grid, .cta-inner, .leap-grid, .page-hero-layout, .service-block, .service-block.reverse, .team-layout, .team-cards, .contact-people { grid-template-columns: 1fr; }
  .service-block.reverse .service-visual { order: 0; }
  .hero-title, .page-hero .hero-title { max-width: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-panel {
    display: none;
    position: absolute;
    inset-inline: 12px;
    top: var(--header);
    background: var(--navy);
    border: 1px solid #2a4568;
    border-radius: 8px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-panel.open { display: flex; }
  .nav-list { flex-direction: column; gap: 12px; }
  .hero-stats, .form-row, .split-media { grid-template-columns: 1fr; }
}
:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
