/* SOAR — الموقع الرسمي
   Dark ground, one warm accent, Arabic-first. No build step: plain CSS. */

:root {
  color-scheme: dark;

  --night: #16181a;
  --surface: #1e2225;
  --surface-2: #24282b;
  --white: #ffffff;
  --muted: #9aa0a6;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #e8671c;

  --wrap: min(100% - 48px, 1180px);
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: fixed; top: -100px; inset-inline-start: 18px; z-index: 100;
  background: var(--white); color: var(--night); padding: 12px 18px;
}
.skip:focus { top: 18px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  background: rgba(22, 24, 26, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background-color 300ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { height: 76px; display: flex; align-items: center; gap: 24px; }

.brand-mark { height: 30px; width: auto; color: var(--white); display: block; }

.nav { display: flex; align-items: center; gap: 34px; margin-inline-start: auto; font-size: 0.9375rem; }
.nav a { color: var(--muted); transition: color 200ms ease; }
.nav a:hover { color: var(--white); }

.menu-btn {
  display: none; margin-inline-start: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--white);
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform 220ms ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Closed by default and absent entirely above the breakpoint. A bare
   `display: flex` here would beat the browser's own [hidden] rule. */
.mobile-nav {
  display: none; flex-direction: column;
  padding: 8px 24px 22px;
  border-top: 1px solid var(--line);
}
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Type ---------- */

h1, h2, h3 { font-weight: 500; line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.1875rem; font-weight: 500; }

.eyebrow {
  font-size: 0.8125rem; font-weight: 500; color: var(--accent);
  margin: 0 0 14px;
}
.lead { font-size: clamp(1rem, 1.5vw, 1.1875rem); color: var(--muted); max-width: 62ch; margin: 0; }
.note { font-size: 0.8125rem; color: var(--muted); margin-top: 26px; }
.note code { background: var(--surface-2); padding: 2px 6px; border-radius: 3px; font-size: 0.8125rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 2rem; border-radius: 3px;
  font-family: var(--font); font-size: 0.9375rem; font-weight: 500;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #f5751f; }
.btn-ghost { border: 1px solid var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(9rem, 20vh, 12rem) clamp(5rem, 10vh, 7rem);
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(232, 103, 28, 0.13) 0%, rgba(232, 103, 28, 0) 62%),
    var(--night);
}
.hero-inner { display: grid; gap: 26px; justify-items: start; }

.pill {
  margin: 0; padding: 7px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.875rem; color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Stats ---------- */

.stats { padding-block: clamp(3rem, 7vh, 4.5rem); border-block: 1px solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat { text-align: center; }
.stat .num,
.stat .plus {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 500; color: var(--white);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat .plus { color: var(--accent); }
.stat p { margin: 8px 0 0; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 11vh, 7.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: 14px; }

.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.sector { background: var(--night); padding: 34px 30px 38px; }
.section-alt .sector { background: var(--surface); }
.sector-num { display: block; font-size: 0.8125rem; color: var(--accent); margin-bottom: 20px; }
.sector h3 { margin-bottom: 10px; }
.sector p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 48px; margin-top: 52px; }
.service { border-top: 1px solid var(--line); padding-top: 22px; }
.service h3 { margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

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

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 48px 0 0; }
.contact dt { font-size: 0.8125rem; color: var(--muted); margin-bottom: 8px; }
.contact dd { margin: 0; font-size: 1.0625rem; }
.contact dd a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color 200ms ease; }
.contact dd a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-mark { height: 34px; }
.footer-inner p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- WhatsApp ---------- */

.whatsapp {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform 200ms ease;
}
.whatsapp:hover { transform: translateY(-2px); }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .sectors { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; gap: 26px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  :root { --wrap: calc(100% - 36px); }
  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .header-inner { height: 66px; }
  .hero { padding-block: 7.5rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp, .btn, .nav a { transition: none; }
}
