/*
 * هوية KONTAKTI | كونتاكتي: كحلي (Midnight Mirage) وأوف وايت، ولمسة ليمونية (First Colors of Spring).
 * التدرّج كحلي ← ليموني بالصفحة الرئيسية بس (hero والدعوة الأخيرة)، وباقي الموقع مسطّح وهادي.
 * نفس الألوان لبوستات إنستغرام: #001F3F · #DBE64C · #F6F7ED
 * الخطوط: Manrope للإنجليزي و IBM Plex Sans Arabic للعربي.
 */
:root {
  /* التطبيق المثبّت على الأيفون: الصفحة بتنقص عن الشاشة بقدّ --vv-short (vv-fix.js)، فالمنطقة الآمنة تحت أقل (أو صفر) */
  --vv-short: 0px;
  --sab-eff: max(0px, calc(env(safe-area-inset-bottom, 0px) - var(--vv-short, 0px)));
  --navy: #001f3f;
  --navy-2: #0a3356;
  --lime: #dbe64c;
  --lime-2: #c9d53a; /* hover */
  --slate: #8a98a8;
  --off-white: #f6f7ed;
  --off-white-2: #eef0e3; /* حقول، hover، شرائط */
  --off-white-3: #e4e8d8; /* خلفيات أغمق شوي، أرضيات ثانوية */
  --white: var(--off-white); /* ما في أبيض صافي بالنظام: كل شي أوف وايت */
  --black: #111111;

  --ink: var(--navy);
  --ink-2: #33475f;
  --muted: #5b6b7d;
  --bg: var(--off-white);
  --surface: var(--off-white);
  --line: rgba(138, 152, 168, 0.35);
  --brand: var(--navy);
  --brand-ink: var(--off-white);
  --brand-soft: var(--off-white-3);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 31, 63, 0.06), 0 8px 24px -16px rgba(0, 31, 63, 0.22);
  /* Manrope أولاً للحروف اللاتينية، والعربي بياخد IBM Plex Sans Arabic تلقائياً */
  --font: "Manrope", "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --display: "Manrope", "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

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

/* touch-action: manipulation بيشيل تأخير اللمس على الموبايل (الانتظار ليتأكد إنها مش ضغطة زوم) */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.8em 1.4em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy);
  color: #f6f7ed;
}

.btn-primary:hover {
  background: var(--navy-2);
}

.btn-brand {
  background: var(--brand);
  color: var(--brand-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--slate);
}

.btn-sm {
  padding: 0.5em 1em;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.95em 1.7em;
  font-size: 1.02rem;
}

.btn-white {
  background: #f6f7ed;
  color: var(--navy);
}

/* الزر الليموني: الدعوة الأساسية على الكحلي */
.btn-lime {
  background: var(--lime);
  color: var(--navy);
}

.btn-lime:hover {
  background: var(--lime-2);
}

.btn-white:hover {
  background: var(--off-white-2);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(246, 247, 237, 0.4);
  color: #f6f7ed;
}

.btn-outline-light:hover {
  border-color: #f6f7ed;
  background: rgba(246, 247, 237, 0.06);
}

/* واتساب بلونه الرسمي، لأنو الناس بتعرفه من لونه */
.btn-wa {
  background: #1fa855;
  color: #f6f7ed;
}

.btn-wa:hover {
  background: #168a45;
}

.btn-wa:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--navy-2);
  outline-offset: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- اللوغو: الرمز + KONTAKTI (+ كونتاكتي اختياري) ---------- */
.kt-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: var(--navy);
  text-decoration: none;
  direction: ltr;
}

.kt-logo .kt-mark {
  width: 1.9em;
  height: 1.9em;
  flex: none;
}

.kt-logo .kt-word {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1.05em;
  letter-spacing: 0.08em;
  line-height: 1;
}

.kt-logo > span:not(.kt-word) {
  display: grid;
}

.kt-logo .kt-word-ar {
  display: block;
  margin-top: 0.3em;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 500;
  font-size: 0.72em;
  letter-spacing: 0;
  opacity: 0.75;
  direction: rtl;
  text-align: left;
}

.kt-logo.is-white {
  color: #f6f7ed;
}

/* زر واتساب العائم: بكل الصفحات العامة */
.wa-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + var(--sab-eff, 0px) + var(--vv-gap, 0px));
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1fa855;
  color: #f6f7ed;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 6px 18px -6px rgba(0, 31, 63, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.wa-fab:hover {
  background: #168a45;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .wa-fab {
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + var(--sab-eff, 0px) + var(--vv-gap, 0px));
  }
}

/* مخفي عن العين، بس قارئ الشاشة بيقرأه. الجداول ما بتلتزم بـ width، فمنحطها جوّا div بهالكلاس */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* ============ اللغة: زر EN / ع، والصفحة مخفية لحظة لحد ما تخلص الترجمة ============ */
.kt-i18n-wait body {
  visibility: hidden;
}

.kt-lang {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.kt-lang:hover {
  opacity: 1;
}

.kt-lang:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* «ع» بالخط العربي */
.kt-lang:lang(ar) {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 0.95rem;
}

/* ============ الإنجليزي (LTR): أشياء لازم تنقلب ============ */
/* الأسهم بتأشّر لقدّام: بالعربي لليسار، بالإنجليزي لليمين */
[dir="ltr"] .fa-arrow-left,
[dir="ltr"] .fa-arrow-right,
[dir="ltr"] .fa-chevron-left,
[dir="ltr"] .fa-chevron-right,
[dir="ltr"] .fa-arrow-right-from-bracket {
  transform: scaleX(-1);
}

/* زر اللغة بالقائمة فوق الصفحة الرئيسية (على الكحلي) */
.is-home .nav:not(.is-light) .kt-lang {
  color: #f6f7ed;
}

/* الزخارف (الدواير) ما لازم تعمل سكرول عرضي، لا بالعربي ولا بالإنجليزي */
html,
body {
  overflow-x: clip;
}
