:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #151821;
  --muted: #5b6472;
  --line: #e3e7ee;
  --brand: #bf0d16;
  --brand-dark: #8d0a12;
  --brand-soft: rgba(191,13,22,.08);
  --navy: #101725;
  --navy-2: #1a2233;
  --shadow: 0 20px 45px rgba(12, 18, 28, 0.08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
}
.lang-ar { font-family: Cairo, Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.page-shell { padding: 54px 0 82px; }
.stack-lg { display: grid; gap: 22px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.eyebrow-light {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.eyebrow-light::before { background: #fff; }

.h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}
.h2-sm { font-size: clamp(24px, 3vw, 34px); }

.topbar {
  background: #111723;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}
.topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-info {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}
.topbar-login { color: #fff; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.header-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.brand-image img {
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
}
.site-nav { justify-self: center; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  color: #243143;
}
.site-nav > ul > li:hover > a,
.site-nav > ul > li.is-active > a {
  background: #f2f5f9;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 280px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .22s ease;
}
.mega-menu.single-col { grid-template-columns: 1fr; }
.mega-menu.mega-wide {
  width: min(920px, 92vw);
  grid-template-columns: repeat(4, 1fr);
}
.mega-menu h4 {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.mega-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #344255;
}
.mega-menu a:hover { background: #f7f9fc; }
.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  transition: .2s ease;
}
.btn:hover,
.header-cta:hover { transform: translateY(-1px); }
.header-cta,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 28px rgba(191,13,22,.2);
}
.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(10,15,23,.9), rgba(20,28,43,.86)),
    url('../img/3s-hero.jpg') center/cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(191,13,22,.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255,255,255,.06), transparent 30%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 94px 0 104px;
}
.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(48px, 7vw, 90px);
  line-height: .9;
  letter-spacing: -.03em;
}
.hero-copy p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-aside,
.hero-mini-grid { display: grid; gap: 18px; }
.hero-mini-grid { grid-template-columns: repeat(2, 1fr); }
.hero-panel,
.card,
.story,
.team-card,
.job-card,
.logo-card,
.detail-card,
.info-card,
.form-card,
.framed-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  padding: 26px;
  backdrop-filter: blur(10px);
}
.hero-brand-image {
  width: min(100%, 520px);
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
}
.hero-brand-copy,
.hero-panel li { color: rgba(255,255,255,.82); }
.hero-panel ul { margin: 14px 0 0; padding-left: 18px; line-height: 1.8; }
.stat-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.09);
}
.stat-card strong {
  display: block;
  font-size: 28px;
}
.stat-card span {
  color: rgba(255,255,255,.74);
  font-size: 14px;
}

.home-strip {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metric {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.metric strong { display: block; font-size: 32px; color: var(--navy); }
.metric span { color: var(--muted); font-weight: 500; }

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}
.section-head.narrow { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head.compact { margin-bottom: 22px; }

.card-grid,
.story-grid,
.team-grid,
.jobs-grid,
.logo-grid,
.info-grid,
.three-col,
.two-col,
.grouped-panels,
.contact-grid {
  display: grid;
  gap: 22px;
}
.card-grid,
.story-grid,
.team-grid,
.jobs-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.logo-grid { grid-template-columns: repeat(4, 1fr); }
.logo-grid-large { grid-template-columns: repeat(4, 1fr); }
.info-grid { grid-template-columns: repeat(2, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }
.two-col { grid-template-columns: 1.1fr .9fr; }
.two-col-wide { grid-template-columns: 1.2fr .8fr; }
.grouped-panels { grid-template-columns: repeat(2, 1fr); }
.contact-grid { grid-template-columns: 1.05fr .95fr; }

.card,
.story,
.team-card,
.job-card,
.detail-card,
.info-card,
.form-card,
.framed-box {
  padding: 28px;
}
.card h3,
.story h3,
.team-card h3,
.job-card h3,
.detail-card h3,
.info-card h3,
.form-card h3,
.framed-box h3 {
  margin: 14px 0 12px;
  font-size: 24px;
  line-height: 1.25;
}
.card p,
.story p,
.team-card p,
.job-card p,
.detail-card p,
.info-card p,
.framed-box p,
.card li,
.detail-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.card .meta,
.story .meta,
.job-meta {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.inline-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
  color: var(--brand-dark);
}
.card-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(191,13,22,.08), rgba(16,23,37,.08));
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 800;
}
.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(191,13,22,.1), rgba(255,255,255,.2));
  border: 1px solid rgba(191,13,22,.18);
}

.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111723 0%, #212c3f 100%);
  color: #fff;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(191,13,22,.18), transparent 34%);
}
.band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
}
.band h2 { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 42px); }
.band p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.85; }
.band small { display: inline-block; margin-top: 14px; color: rgba(255,255,255,.64); }
.quote-band-inner { grid-template-columns: 1fr; }
.alt-surface { background: var(--surface-2); }
.who-section { background: linear-gradient(180deg, transparent 0, transparent 32%, rgba(16,23,37,.02) 100%); }
.detail-card-dark {
  background: linear-gradient(135deg, #111723, #1e2738);
  color: #fff;
  border-color: rgba(255,255,255,.08);
}
.detail-card-dark p,
.detail-card-dark li { color: rgba(255,255,255,.78); }

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #121824 0%, #1c2536 55%, #10151f 100%);
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(191,13,22,.18), transparent 28%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 72px 0 80px;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1;
}
.page-hero p {
  margin: 0;
  max-width: 72ch;
  color: rgba(255,255,255,.82);
  line-height: 1.85;
}
.breadcrumbs { color: rgba(255,255,255,.64); font-weight: 600; }
.breadcrumbs span { color: #fff; }

.bullets,
.list-check {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.list-check-light li { color: rgba(255,255,255,.82); }
.mini-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.mini-links a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  font-weight: 600;
}

.logo-card {
  min-height: 110px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  font-weight: 800;
  color: #334155;
}
.team-card { text-align: center; }
.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(191,13,22,.14), rgba(16,23,37,.08));
  color: var(--brand-dark);
  font-size: 26px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--text);
}
textarea.input {
  min-height: 140px;
  resize: vertical;
}
.full { grid-column: 1 / -1; }

.site-footer {
  background: #10151f;
  color: rgba(255,255,255,.86);
}
.footer-cta-wrap {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 42px 0;
}
.footer-cta h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0;
}
.footer-brand img {
  width: min(100%, 360px);
}
.footer-copy {
  color: rgba(255,255,255,.62);
  line-height: 1.8;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.footer-list li,
.footer-list a {
  color: rgba(255,255,255,.74);
}
.footer-bottom {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-red-bar { height: 14px; background: var(--brand); }

@media (max-width: 1160px) {
  .header-inner { grid-template-columns: auto auto; }
  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
  }
  .site-nav.is-open { display: block; padding-bottom: 18px; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav > ul > li > a { width: 100%; }
  .mega-menu,
  .mega-menu.mega-wide {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 10px;
  }
  .has-mega:hover .mega-menu { display: grid; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .header-cta { display: none; }
  .hero-grid,
  .two-col,
  .two-col-wide,
  .contact-grid,
  .footer-cta,
  .footer-grid,
  .grouped-panels { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .metrics-bar,
  .card-grid,
  .card-grid-4,
  .story-grid,
  .team-grid,
  .jobs-grid,
  .logo-grid,
  .logo-grid-large,
  .three-col,
  .info-grid,
  .form-grid,
  .mini-links { grid-template-columns: 1fr; }
  .topbar-inner,
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-image img { width: min(100%, 320px); }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 68px); }
  .section,
  .page-shell { padding: 56px 0; }
}
