/* ============================================================
   الخط (Thmanyah Sans) - ضع الملفات الأربعة في مجلد fonts
   ============================================================ */
@font-face {
  font-family: "HadirFont";
  src: url("../fonts/thmanyahsans-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "HadirFont";
  src: url("../fonts/thmanyahsans-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "HadirFont";
  src: url("../fonts/thmanyahsans-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "HadirFont";
  src: url("../fonts/thmanyahsans-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --font: "HadirFont", "Tahoma", "Segoe UI", sans-serif;

  --purple: #3d2766;
  --purple-deep: #261445;
  --orange: #e39b4f;
  --orange-dark: #c9822f;
  --cream: #fcfaf7;
  --ink: #5a5070;
  --line: #e8e0f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--purple);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 18px 32px;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(900px 700px at 85% -10%, rgba(95,72,155,.6), transparent 60%),
    linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%);
}

/* هلال خفيف من الشعار في الخلفية */
body::before {
  content: "";
  position: fixed;
  width: 120vmin;
  height: 120vmin;
  border-radius: 50%;
  border: 2px solid rgba(227,155,79,.2);
  inset-inline-start: -50vmin;
  bottom: -75vmin;
  pointer-events: none;
}

/* ---------- زر اللغة ---------- */
.lang {
  position: fixed;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 5;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.lang:hover { background: var(--orange); color: var(--purple-deep); border-color: var(--orange); }

/* ---------- البوكس ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: var(--cream);
  border-radius: 30px;
  padding: 44px 40px 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(10,4,24,.55);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 120px;
  height: 9px;
  background: var(--orange);
  border-end-start-radius: 9px;
}

.logo { display: block; width: 220px; max-width: 65%; height: auto; margin: 0 auto 26px; }

.eyebrow {
  font-size: clamp(32px, 8vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--orange);
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(22px, 5.6vw, 31px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--purple);
  text-wrap: balance;
  margin-bottom: 18px;
}

.rule { width: 56px; height: 4px; background: var(--orange); border-radius: 3px; margin: 0 auto 18px; }

.lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink);
  max-width: 440px;
  margin: 0 auto 28px;
}

/* ---------- الأزرار ---------- */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ico { width: 22px; height: 22px; display: block; }

/* زر واتساب: ماء بنفسجي يدخل عند مرور الفارة */
.wa {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--purple-deep);
  background: var(--orange);
  border-radius: 999px;
  padding: 14px 30px;
  box-shadow: 0 10px 24px rgba(227,155,79,.4);
  transition: color .4s ease .15s, box-shadow .6s ease;
}
.wa::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  width: 100%;
  height: 100%;
  top: calc(100% + 14px);
  background: var(--purple);
  transition: top .9s cubic-bezier(.45, .1, .3, 1);
}
.wa::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  width: 100%;
  height: 14px;
  top: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 14'%3E%3Cpath fill='%233d2766' d='M0 14V7Q10 0 20 7T40 7T60 7T80 7V14Z'/%3E%3C/svg%3E") repeat-x;
  background-size: 80px 14px;
  transition: top .9s cubic-bezier(.45, .1, .3, 1);
  animation: wave 1.1s linear infinite;
}
@keyframes wave { to { background-position-x: 80px; } }

.wa:hover,
.wa:focus-visible {
  color: var(--orange);
  box-shadow: 0 10px 24px rgba(61,39,102,.45);
}
.wa:hover::before, .wa:focus-visible::before { top: 0; }
.wa:hover::after,  .wa:focus-visible::after  { top: -14px; }

/* أيقونات التواصل */
.socials { display: flex; justify-content: center; gap: 10px; }
.socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: #fff;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--purple); color: #fff; }
.socials a[hidden] { display: none; }

/* ---------- الفوتر ---------- */
.foot {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--ink);
}
.foot a { color: inherit; text-decoration: none; direction: ltr; unicode-bidi: embed; }
.foot a:hover { color: var(--purple); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- الجوال ---------- */
@media (max-width: 520px) {
  body { padding: 72px 14px 24px; }
  .card { padding: 36px 22px 20px; border-radius: 26px; }
  .logo { width: 190px; margin-bottom: 22px; }
  .wa { width: 100%; }
  .foot { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .wa::before, .wa::after { transition: none; animation: none; }
}
