/* Cairo (Arabic font), self-hosted. SIL Open Font License, see fonts/Cairo-OFL.txt */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/assets/fonts/cairo-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/assets/fonts/cairo-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/assets/fonts/cairo-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* AOSCO Solutions - shared styles for English (LTR) and Arabic (RTL).
   Uses logical properties (margin-inline, padding-inline, inset-inline)
   so the same rules work in both directions. */

:root {
  --brand: #1144d5;
  --brand-dark: #0d36a8;
  --accent: #4d73fa;
  --navy: #212643;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html[lang="ar"] {
  --font: "Cairo", "Tahoma", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
}

.skip-link:focus {
  inset-inline-start: 16px;
  top: 16px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 34px;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
}

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 14px 20px;
  }

  .lang-switch {
    border: none;
    border-radius: 0;
  }
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

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

.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(77, 115, 250, 0.45), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--brand) 100%);
  color: #fff;
  padding: 110px 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin: 0 0 30px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

@media (max-width: 860px) {
  .hero {
    padding: 70px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }
}

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

section {
  padding: 90px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.07rem;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 14px 0 10px;
  font-size: 1.3rem;
}

.card p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.card ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--ink-soft);
}

.icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.icon svg {
  width: 26px;
  height: 26px;
}

.feature {
  text-align: center;
  padding: 26px 18px;
}

.feature .icon {
  margin: 0 auto;
}

.feature h3 {
  font-size: 1.1rem;
}

/* ---------- Process ---------- */

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 56px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  inset-inline-start: 30px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-grid h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 16px;
}

.about-grid p {
  color: var(--ink-soft);
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 20px;
}

.value strong {
  display: block;
  margin-bottom: 4px;
}

.value span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tech chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 14px;
}

.contact-info p {
  color: var(--ink-soft);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-list .icon {
  width: 42px;
  height: 42px;
  flex: none;
}

.contact-list .icon svg {
  width: 20px;
  height: 20px;
}

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .contact-grid,
  form .row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 16px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: transparent;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  inset-inline-start: -9999px;
}

.form-status {
  margin-top: 14px;
  font-weight: 600;
}

.form-status.ok {
  color: #047857;
}

.form-status.err {
  color: #b91c1c;
}

/* ---------- CTA band ---------- */

.cta {
  background: linear-gradient(135deg, var(--navy), var(--brand));
  color: #fff;
  text-align: center;
  padding: 70px 0;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.cta p {
  opacity: 0.9;
  margin: 0 0 26px;
}

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

.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 50px 0 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Company profile (printable) ---------- */

.profile {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.profile-cover {
  background: linear-gradient(135deg, var(--navy), var(--brand));
  color: #fff;
  border-radius: var(--radius);
  padding: 50px 40px;
  margin-bottom: 36px;
}

.profile-cover img {
  width: auto;
  height: 64px;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.profile-cover h1 {
  margin: 0 0 6px;
  font-size: 2.4rem;
}

.profile section {
  padding: 0;
}

.profile .profile-cover p {
  color: #fff;
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

.profile h2 {
  font-size: 1.45rem;
  border-bottom: 3px solid var(--brand);
  display: inline-block;
  padding-bottom: 4px;
  margin: 34px 0 14px;
}

.profile p,
.profile li {
  color: #334155;
}

.profile table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.profile th,
.profile td {
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.profile th {
  width: 32%;
  background: var(--bg-soft);
}

.print-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

@media print {
  .no-print,
  .site-header,
  .site-footer {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  .profile {
    margin: 0;
    max-width: none;
  }

  .profile-cover {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .profile h2 {
    break-after: avoid;
  }

  .profile section,
  .profile table {
    break-inside: avoid;
  }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.notfound h1 {
  font-size: 5rem;
  margin: 0;
  color: var(--brand);
}

@media (max-width: 420px) {
  html[lang="ar"] .brand {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .brand small {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }
}
