/* ========== Azraq Software Solutions — shared styles ========== */
:root {
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --ink: #0f1e4d;
  --ink-2: #1a2b5f;
  --muted: #5b6783;
  --line: #e6ecf5;
  --line-2: #d7deec;

  /* brand palette pulled from the logo */
  --azraq-deep: #0b2461;
  --azraq-mid:  #2a5bd7;
  --azraq-blue: #1d4ed8;
  --azraq-bright: #3b82f6;
  --azraq-ice:  #7fd6ff;
  --grad-azraq: linear-gradient(135deg, #0b2461 0%, #1d4ed8 40%, #3b82f6 80%, #7fd6ff 100%);
  --grad-azraq-soft: linear-gradient(135deg, rgba(11,36,97,.08), rgba(59,130,246,.08));
  --grad-azraq-text: linear-gradient(135deg, #0b2461 0%, #1d4ed8 45%, #3b82f6 100%);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10,30,80,.05), 0 2px 8px rgba(10,30,80,.04);
  --shadow:    0 4px 16px rgba(10,30,80,.06), 0 24px 60px rgba(10,30,80,.08);
  --shadow-lg: 0 10px 30px rgba(10,30,80,.08), 0 40px 100px rgba(10,30,80,.12);
  --shadow-blue: 0 12px 40px rgba(21,84,200,.28);

  --container: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* —— typography —— */
h1,h2,h3,h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p  { margin: 0; color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.center { text-align: center; }

.text-grad {
  background: var(--grad-azraq-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* —— navigation —— */
.nav-wrap {
  position: sticky; top: 16px; z-index: 50;
  padding: 0 24px;
}
.nav {
  max-width: var(--container); margin: 0 auto;
  padding: 16px 22px 16px 28px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(11,36,97,.08), 0 1px 3px rgba(11,36,97,.05);
  border: 1px solid rgba(231,237,247,0.8);
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 12px; line-height: 1; text-decoration: none; padding: 4px 0; }
.brand .mark {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
}
.brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.brand .wm-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.brand .wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #0b2461 0%, #1d4ed8 60%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  position: relative;
}
.brand .tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--azraq-mid);
  text-transform: uppercase;
  margin-top: 5px;
  position: relative;
}
.brand .swoosh { position: absolute; bottom: -3px; left: 0; width: 100%; height: 8px; pointer-events:none; }

.nav-links { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  position: relative;
  padding: 8px 12px; border-radius: 999px;
  color: var(--azraq-mid); font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-links a:hover { background: rgba(29,78,216,.06); color: var(--azraq-deep); }
.nav-links a.active { color: var(--azraq-deep); background: rgba(29,78,216,.08); font-weight: 600; }
.nav-links .lang { font-size: 13.5px; color: var(--azraq-mid); display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.nav-links .lang:hover { background: rgba(29,78,216,.06); }
.nav-links .has-sub { position: relative; }
.nav-links .has-sub:hover .submenu { display: block; }
.submenu {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; padding-top: 14px; min-width: 220px;
  box-shadow: var(--shadow);
}
.submenu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.submenu a:hover { background: var(--bg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* —— buttons —— */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .arr { width: 16px; height: 16px; }

.btn-primary {
  background: var(--azraq-blue); color: #fff;
  box-shadow: 0 6px 18px rgba(29,78,216,.28);
}
.btn-primary:hover { background: var(--azraq-deep); box-shadow: 0 10px 28px rgba(29,78,216,.36); }

.btn-azraq {
  background: var(--azraq-blue); color: #fff;
  box-shadow: 0 6px 22px rgba(29,78,216,.32);
}
.btn-azraq:hover { background: var(--azraq-deep); box-shadow: 0 12px 32px rgba(29,78,216,.42); }

.btn-ghost {
  background: #fff; color: var(--azraq-blue);
  border-color: var(--azraq-blue);
}
.btn-ghost:hover { background: var(--azraq-blue); color: #fff; }

.btn-phone {
  background: var(--azraq-blue); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 13.5px;
  text-align: center; line-height: 1.15;
  box-shadow: 0 6px 18px rgba(29,78,216,.28);
  display: inline-flex; align-items: center; gap: 12px;
}
.btn-phone:hover { background: var(--azraq-deep); transform: translateY(-1px); }
.btn-phone .num { display: inline-block; white-space: nowrap; font-size: 13.5px; font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .01em; }

/* —— WhatsApp pill (sits next to phone button) — themed Azraq blue —— */
.btn-whatsapp {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--azraq-deep) 0%, var(--azraq-blue) 55%, var(--azraq-bright) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(29,78,216,.36), 0 0 0 1px rgba(127,214,255,.5) inset;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s;
  flex-shrink: 0;
  position: relative;
}
.btn-whatsapp::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--azraq-bright); opacity: 0; z-index: -1;
  animation: wa-ping 2.4s ease-out infinite;
}
@keyframes wa-ping {
  0%   { transform: scale(1);   opacity: .45; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1.5); opacity: 0;   }
}
.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(29,78,216,.52), 0 0 0 1px rgba(127,214,255,.7) inset;
  filter: brightness(1.08);
}
.btn-whatsapp svg { display: block; }
@media (max-width: 980px) {
  .btn-whatsapp { width: 40px; height: 40px; }
  .btn-whatsapp svg { width: 17px; height: 17px; }
}

.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* —— pill chip —— */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--azraq-bright); box-shadow: 0 0 12px var(--azraq-bright); }

/* —— hero —— */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 80px;
}
.hero .container { position: relative; z-index: 2; }
.hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(59,130,246,.10), transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(127,214,255,.10), transparent 60%);
}
.hero h1 { color: var(--azraq-deep); font-weight: 600; }
.hero p.lead { font-size: 17px; color: #4a5779; max-width: 720px; line-height: 1.6; }

/* —— section —— */
section { position: relative; }
.section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section-head p { font-size: 17px; }

/* —— cards / grids —— */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(21,84,200,.25); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(11,18,32,.18);
}
.card .icon svg { width: 22px; height: 22px; stroke: #fff; }
.card.azraq .icon { background: var(--grad-azraq); box-shadow: var(--shadow-blue); }

.grid { display: grid; gap: 20px; }
.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: 1180px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: 13.5px; }
  .nav-links .lang { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 1040px) {
  .nav-links .lang { display: none; }
}
@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; gap: 12px; padding: 12px 14px 12px 18px; }
  .btn-phone { justify-self: end; }
  .brand .mark { width: 38px; height: 38px; }
  .brand .wordmark { font-size: 24px; }
  .btn-phone { padding: 10px 14px; }
  .btn-phone .num { font-size: 11.5px; }
}

/* —— footer —— */
footer {
  background: #0a1024;
  color: #cfd6e6;
  padding: 80px 0 30px;
  margin-top: 60px;
  position: relative; overflow: hidden;
}
footer .grad-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-azraq);
}
footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
footer a { display: block; color: #9aa5bd; padding: 6px 0; font-size: 14px; }
footer a:hover { color: #fff; }
footer .brand .name { color: #fff; }
footer .brand .name span { color: #6c7793; }
footer .legal { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6c7793; }
@media (max-width: 980px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* —— page header (interior pages) —— */
.page-header {
  position: relative; overflow: hidden;
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 360px at 80% -20%, rgba(42,164,255,.14), transparent 60%),
    radial-gradient(600px 360px at 10% 110%, rgba(21,84,200,.12), transparent 60%),
    var(--bg);
}
.page-header .container { position: relative; z-index: 2; }
.page-header .breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.page-header .breadcrumb a:hover { color: var(--azraq-mid); }
.page-header h1 { font-size: clamp(40px, 5vw, 64px); }
.page-header p { font-size: 18px; max-width: 700px; margin-top: 18px; }

/* —— misc —— */
.kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; padding: 2px 7px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 6px; color: var(--ink-2);
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
}
.stat .n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 4vw, 56px); font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--grad-azraq-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .l { color: var(--muted); font-size: 13.5px; }

.divider { height: 1px; background: var(--line); margin: 0; }

/* shimmering blue underline accent */
.accent-bar { width: 56px; height: 4px; border-radius: 4px; background: var(--grad-azraq); }

/* faint code pattern */
.bg-dots {
  background-image: radial-gradient(rgba(10,42,107,.10) 1px, transparent 1.4px);
  background-size: 18px 18px;
}

/* —— mobile language toggle —— */
.btn-lang-mobile {
  display: none;
  align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 13px; font-weight: 500; color: var(--azraq-mid);
  cursor: pointer; white-space: nowrap;
}
.btn-lang-mobile:hover { background: rgba(29,78,216,.06); color: var(--azraq-deep); }
@media (max-width: 1040px) {
  .btn-lang-mobile { display: inline-flex; }
}

/* —— language dropdown menu —— */
.lang-wrap { position: relative; }
.lang-wrap .submenu.lang-menu { min-width: 180px; }
.lang-wrap .submenu.lang-menu a { font-family: 'Cairo','Inter',sans-serif; display: flex; align-items: center; justify-content: space-between; }
.lang-wrap .submenu.lang-menu a.active { background: rgba(29,78,216,.08); color: var(--azraq-deep); font-weight: 600; }
.lang-wrap .submenu.lang-menu a.active::after { content: '✓'; color: var(--azraq-blue); margin-inline-start: 10px; }

/* —— Arabic / RTL adjustments —— */
html[dir="rtl"] body, body.rtl {
  font-family: 'Cairo','Tajawal','Inter',sans-serif;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: 'Cairo','Tajawal','Space Grotesk',sans-serif;
  letter-spacing: 0; /* tight latin tracking looks bad on arabic */
}
html[dir="rtl"] .brand .wordmark,
html[dir="rtl"] .brand .tagline {
  font-family: 'Cairo','Space Grotesk',sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] .btn-phone { direction: ltr; }
html[dir="rtl"] .btn .arr,
html[dir="rtl"] .arrow-link svg,
html[dir="rtl"] .arr {
  transform: scaleX(-1);
}
html[dir="rtl"] .breadcrumb { direction: rtl; }
html[dir="rtl"] .nav-links a svg:last-child,
html[dir="rtl"] .lang svg:last-child { /* keep chevrons */
  transform: none;
}
html[dir="rtl"] .ti::before { left: auto; right: -29px; }
html[dir="rtl"] .timeline { padding-left: 0; padding-right: 36px; }
html[dir="rtl"] .timeline::before { left: auto; right: 14px; }
html[dir="rtl"] .ver-tabs { direction: rtl; }
html[dir="rtl"] .breadcrumb span { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .feature-row { direction: rtl; }
html[dir="rtl"] .submenu { right: 50%; left: auto; transform: translateX(50%); }
html[dir="rtl"] .compare-table th,
html[dir="rtl"] .compare-table td { text-align: right; }
html[dir="rtl"] .compare-table td.center,
html[dir="rtl"] .compare-table th.center { text-align: center; }
