/* EJAD Solutions — site styles. Brand: near-black, warm grey text, amber accent. */

@font-face { font-family: "Hero New"; src: url("/media/et-fonts/Hero-New-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Hero New"; src: url("/media/et-fonts/Hero-New-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hero New"; src: url("/media/et-fonts/Hero-New-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #080501;
  --ink-2: #110c06;
  --panel: #18120b;
  --line: rgba(221, 220, 221, 0.12);
  --line-strong: rgba(221, 220, 221, 0.22);
  --text: #dddcdd;
  --muted: #a39d94;
  --amber: #d48b00;
  --amber-hi: #f0a51c;
  --paper: #f3f0ea;

  --font-head: "Hero New", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-head: 800;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --radius-lg: 16px;
  --space-section: clamp(64px, 9vw, 120px);
}
:lang(ar) {
  --font-head: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --w-head: 700;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body, body.lang-ar { font-weight: 400; line-height: 1.85; font-size: 1.075rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--w-head); color: #fff; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.35; }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.4em; border-radius: 999px;
  font: 500 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--amber); color: #120b00; }
.btn-primary:hover { background: var(--amber-hi); }
.btn-ghost { border-color: var(--line-strong); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-hi); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 5, 1, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: auto; height: 40px; }
.main-nav { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { padding: 10px 8px; font-size: .9rem; white-space: nowrap; font-weight: 400; text-decoration: none; color: var(--text); border-radius: 6px; }
.nav-item > a:hover, .nav-item.is-active > a { color: #fff; }
.nav-item.is-active > a { box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.sub-toggle { background: none; border: 0; color: var(--muted); padding: 4px; margin-inline-start: -6px; cursor: pointer; display: inline-flex; }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .15s; }
.sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0;
  min-width: 260px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sub a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: .9rem; color: var(--text); }
.sub a:hover, .sub a[aria-current] { background: rgba(212, 139, 0, .12); color: #fff; }
.nav-item:hover > .sub, .nav-item:focus-within > .sub, .nav-item.open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav-item.open .sub-toggle .icon { transform: rotate(180deg); }
.nav-actions { display: flex; gap: 8px; }
.nav-actions .btn { min-height: 40px; padding: .45em 1.1em; font-size: .875rem; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; text-decoration: none; font-size: .875rem; color: var(--text); border-radius: 6px; }
.lang-switch:hover { color: var(--amber-hi); }
.lang-switch .icon { width: 18px; height: 18px; }
:lang(en) .lang-switch span { font-family: "IBM Plex Sans Arabic", sans-serif; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: #fff; border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .i-close { display: none; }

@media (max-width: 1320px) {
  .menu-toggle { display: inline-flex; }
  .header-bar { min-height: 68px; }
  .logo img { height: 34px; }
  .main-nav {
    position: fixed; inset: 68px 0 0 0; z-index: 40; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    overflow-y: auto; display: none; margin: 0;
  }
  .nav-open .main-nav { display: flex; }
  .nav-open .menu-toggle .i-open { display: none; }
  .nav-open .menu-toggle .i-close { display: block; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; }
  .nav-item.is-active > a { box-shadow: none; color: var(--amber-hi); }
  .sub-toggle { width: 44px; height: 44px; justify-content: center; margin: 0; }
  .sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; width: 100%; padding: 0 0 10px; }
  .nav-item:hover > .sub, .nav-item:focus-within > .sub { display: none; }
  .nav-item.open > .sub { display: block; }
  .sub a { padding: 10px 14px; }
  .nav-actions { margin-top: 24px; flex-direction: column; }
  .nav-actions .btn { min-height: 48px; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--space-section); }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-hero {
  padding-block: clamp(72px, 11vw, 150px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(212, 139, 0, .16), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
[dir="rtl"] .section-hero { background: radial-gradient(60% 80% at 0% 0%, rgba(212, 139, 0, .16), transparent 60%), var(--ink); }
.section-logos { padding-block: 48px; background: var(--ink-2); border-block: 1px solid var(--line); }

.eyebrow { color: var(--amber-hi); font-weight: 500; font-size: .95rem; margin-bottom: .9em; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; line-height: 1.04; margin-bottom: .35em; }
:lang(ar) .hero-title { line-height: 1.25; max-width: 20ch; }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); max-width: 26ch; }
.subtitle { font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.45rem); color: #fff; font-weight: 500; max-width: 40ch; }
.prose { max-width: 68ch; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.intro-hero .prose { font-size: 1.15rem; color: #e8e6e3; }
.body-h { font-size: 1.15rem; margin-top: 1.4em; }

.intro { margin-bottom: 48px; }
.intro:last-child { margin-bottom: 0; }
.intro-narrow .intro-text { max-width: 760px; }
.intro-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.intro-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.intro-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .intro-split { grid-template-columns: 1fr; } }

.stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 28px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--font-head); font-size: 2.6rem; font-weight: var(--w-head); color: var(--amber-hi); line-height: 1; }
.stats dt { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cards + .cards { margin-top: 20px; }
.cards + .intro, .logos + .intro, .form-wrap + .intro { margin-top: clamp(48px, 6vw, 80px); }
.intro + .cards { margin-top: 0; }
.cols-1 { --cols: 1; }
.cols-2 { --cols: 2; }
.cols-3 { --cols: 3; }
.cols-4 { --cols: 4; }
.cols-5 { --cols: 5; }
@media (max-width: 1100px) { .cols-5, .cols-4 { --cols: 3; } }
@media (max-width: 900px) { .cols-3, .cols-4, .cols-5 { --cols: 2; } }
@media (max-width: 620px) { .cards { --cols: 1 !important; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
}
.card-title { font-size: 1.2rem; margin-bottom: .55em; }
.card-sub { color: var(--muted); margin-top: -.3em; }
.card-body { color: var(--text); font-size: .98rem; }
.card-body p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  color: var(--amber-hi); background: rgba(212, 139, 0, .1); border: 1px solid rgba(212, 139, 0, .35);
}
.card-icon .icon { width: 24px; height: 24px; }
.card.has-media { padding-top: 0; overflow: hidden; }
.card-img { width: calc(100% + 52px); max-width: none; margin: 0 -26px 22px; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--paper); }
.card-link {
  margin-top: auto; padding-top: 18px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amber-hi); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-link .link-arrow { width: 18px; height: 18px; }
.card-stat .stat-value { font-family: var(--font-head); font-size: 3.4rem; font-weight: var(--w-head); color: var(--amber-hi); line-height: 1; margin-bottom: 10px; }
.card-stat .stat-value span { font-size: .6em; margin-inline-start: 2px; }

/* steps: a real sequence, so numbered */
.steps { counter-reset: step; }
.steps .card { padding-top: 64px; border-color: transparent; background: transparent; border-top: 1px solid var(--line-strong); border-radius: 0; padding-inline: 0; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 18px; inset-inline-start: 0;
  font-family: var(--font-head); font-weight: var(--w-head); font-size: 1rem;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); background: var(--amber);
}

.checks { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .li-icon { color: var(--amber-hi); width: 18px; height: 18px; margin-top: .3em; }
.prose .checks { margin-bottom: 1em; }

/* ---------- logos ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logos li { background: var(--paper); border-radius: var(--radius); display: grid; place-items: center; padding: 18px 22px; min-height: 84px; }
.logos img { max-height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
.intro + .logos { margin-top: 0; }

/* ---------- cta ---------- */
.section-cta { padding-block: clamp(56px, 7vw, 96px); }
.cta {
  border: 1px solid rgba(212, 139, 0, .45); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(135deg, rgba(212, 139, 0, .14), rgba(212, 139, 0, 0) 55%), var(--panel);
}
.cta .section-title { max-width: 22ch; }

/* ---------- forms ---------- */
.form-wrap { max-width: 820px; }
.form { display: grid; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: .92rem; color: #fff; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font-body); color: #fff;
  background: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212, 139, 0, .25); }
.form .btn { justify-self: start; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 18px; }
.notice p { margin: 0; }
.notice-ok { background: rgba(80, 170, 100, .12); border: 1px solid rgba(80, 170, 100, .45); }
.notice-ok .icon { color: #6fcf86; }
.notice-err { background: rgba(220, 80, 60, .12); border: 1px solid rgba(220, 80, 60, .5); }
.notice-err .icon { color: #ef7a64; }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; min-height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 28px; background: var(--ink); font-size: .95rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; flex-wrap: wrap; }
.footer-heading { font-family: var(--font-head); font-weight: var(--w-head); color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 26ch; margin: 0; line-height: 1.25; }
.footer-top img { height: 40px; width: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about { color: var(--muted); max-width: 42ch; }
.footer-title { font-size: 1rem; margin-bottom: 14px; }
.footer-links, .contact-list, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .contact-list a { text-decoration: none; color: var(--text); }
.footer-links a:hover, .contact-list a:hover { color: var(--amber-hi); }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--amber-hi); margin-top: .25em; width: 18px; height: 18px; }
.social { display: flex; gap: 14px; margin-top: 16px; }
.copyright { margin: 48px 0 0; color: var(--muted); font-size: .85rem; }

.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #06290f; box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.wa-float .icon { width: 26px; height: 26px; }

[dir="rtl"] .card-link .link-arrow { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.header-tools { margin-inline-start: auto; }
.main-nav + .header-tools { margin-inline-start: 0; }
@media (max-width: 1320px) { .main-nav + .header-tools { margin-inline-start: auto; } }
.checks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; max-width: 980px; font-size: 1.05rem; }
.checks-grid li { padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .checks-grid { grid-template-columns: 1fr; } }
