/* ═══════════════════════════════════════════════════════════════
   ألتون تور فلاي — تنسيق الهيدر الموحّد
   atf-nav.css

   كل شيء مقيّد بـ #atf-nav و .atf-* كي لا يصطدم بتنسيقات
   الصفحات القائمة. يستعمل نفس متغيرات اللون الموجودة أصلاً.
   ═══════════════════════════════════════════════════════════════ */

#atf-nav, #atf-drawer, #atf-backdrop { box-sizing: border-box; }
#atf-nav *, #atf-drawer * { box-sizing: border-box; }

/* ── الشريط ── */
#atf-nav{
  position: fixed; top: 0; right: 0; left: 0; z-index: 900;
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(14px, 3vw, 40px); height: 68px;
  background: rgba(5, 13, 26, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 168, 76, .10);
  transition: background .3s, box-shadow .3s, height .3s;
  font-family: inherit;
}
#atf-nav.scrolled{
  height: 60px;
  background: rgba(5, 13, 26, .96);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .38);
}

/* ── الشعار ── */
#atf-nav .atf-logo{
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: #fff; font-weight: 800;
  font-size: 1.06rem; white-space: nowrap; flex-shrink: 0;
}
#atf-nav .atf-logo em{ color: var(--gold, #C9A84C); font-style: normal; }
#atf-nav .atf-logo-box{
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold, #C9A84C), var(--gold-l, #E8CC7A));
  display: flex; align-items: center; justify-content: center;
  color: #050D1A; font-size: 17px;
}

/* ── الروابط ── */
/* ⚠️ إصلاح التوزيع:
   كانت margin-inline-start:auto تدفع الروابط لأقصى الجهة المقابلة
   للشعار، فيظهر فراغ واسع بينهما وتلتصق الروابط بالزر.
   الآن: الروابط بجوار الشعار مباشرة، والفراغ يفصل الزر عنها. */
#atf-nav .atf-links{
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
  margin-inline-start: 26px;
}
/* الفراغ المرن هنا — يدفع الزر وحده إلى الطرف الآخر */
#atf-nav .atf-spacer{ flex: 1 1 auto; }
#atf-nav .atf-links > li{ position: relative; }
#atf-nav .atf-links a,
#atf-nav .atf-links button{
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--mid, #D0DCE8); text-decoration: none;
  font-size: .93rem; font-weight: 500; font-family: inherit;
  padding: 9px 14px; border-radius: 9px; border: 0;
  background: transparent; cursor: pointer;
  transition: color .22s, background .22s; white-space: nowrap;
}
#atf-nav .atf-links a:hover,
#atf-nav .atf-links button:hover{
  color: var(--gold, #C9A84C); background: rgba(201, 168, 76, .09);
}
#atf-nav .atf-links a.current{
  color: var(--gold, #C9A84C); background: rgba(201, 168, 76, .13);
}

/* ── قائمة الخدمات المنسدلة ── */
#atf-nav .atf-caret{ font-size: .62rem; opacity: .75; transition: transform .22s; }
#atf-nav .atf-has-sub.open .atf-caret{ transform: rotate(180deg); }
#atf-nav .atf-sub{
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 250px; padding: 8px;
  background: #0A1628; border: 1px solid rgba(201, 168, 76, .18);
  border-radius: 13px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
#atf-nav .atf-has-sub.open .atf-sub{ opacity: 1; visibility: visible; transform: translateY(0); }
#atf-nav .atf-sub a{
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 11px 13px; border-radius: 9px; font-size: .92rem;
}
#atf-nav .atf-sub a span:first-child{ font-size: 1.05rem; width: 24px; text-align: center; }
#atf-nav .atf-sub a small{
  display: block; color: var(--muted, #A8B8CC); font-size: .74rem;
  font-weight: 400; margin-top: 2px;
}
#atf-nav .atf-sub a:hover small{ color: rgba(201, 168, 76, .8); }

/* ── الزر الرئيسي ── */
#atf-nav .atf-cta{
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold, #C9A84C), var(--gold-l, #E8CC7A));
  color: #050D1A !important; font-weight: 700 !important;
  padding: 10px 20px !important; border-radius: 10px;
  text-decoration: none; font-size: .92rem; white-space: nowrap;
  transition: transform .2s, box-shadow .2s; font-family: inherit;
}
#atf-nav .atf-cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(201, 168, 76, .34);
  background: linear-gradient(135deg, var(--gold, #C9A84C), var(--gold-l, #E8CC7A)) !important;
  color: #050D1A !important;
}

/* ── زر القائمة (جوال) ── */
#atf-burger{
  display: none; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, .22);
  background: rgba(201, 168, 76, .08); color: var(--gold, #C9A84C);
  font-size: 20px; cursor: pointer; align-items: center; justify-content: center;
  /* لا حاجة لـ margin auto — .atf-spacer يدفع الزر إلى الطرف */
}

/* ── اللوحة الجانبية ── */
#atf-backdrop{
  position: fixed; inset: 0; z-index: 940;
  background: rgba(0, 0, 0, .62);
  opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
}
#atf-backdrop.open{ opacity: 1; visibility: visible; }

#atf-drawer{
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 950;
  width: min(86vw, 330px); background: #0A1628;
  border-inline-start: 1px solid rgba(201, 168, 76, .16);
  transform: translateX(-100%);            /* RTL: يدخل من اليمين */
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto; padding: 18px 16px 32px;
  font-family: inherit;
}
[dir="rtl"] #atf-drawer{ transform: translateX(100%); }
#atf-drawer.open, [dir="rtl"] #atf-drawer.open{ transform: translateX(0); }

#atf-drawer .atf-d-top{
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 15px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
#atf-drawer .atf-d-close{
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .12); background: transparent;
  color: var(--mid, #D0DCE8); font-size: 17px; cursor: pointer;
}
#atf-drawer .atf-d-group{ margin-top: 14px; }
#atf-drawer .atf-d-head{
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 12px; border: 0; background: transparent;
  color: var(--muted, #A8B8CC); font-size: .74rem; font-weight: 700;
  letter-spacing: .5px; cursor: pointer; font-family: inherit;
}
#atf-drawer .atf-d-head::after{ content: '⌃'; transform: rotate(180deg); transition: transform .22s; }
#atf-drawer .atf-d-group.collapsed .atf-d-head::after{ transform: rotate(0deg); }
#atf-drawer .atf-d-group.collapsed .atf-d-body{ display: none; }
#atf-drawer .atf-d-body{ display: flex; flex-direction: column; gap: 2px; }
#atf-drawer a{
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px; border-radius: 10px;
  color: var(--mid, #D0DCE8); text-decoration: none;
  font-size: .95rem; font-weight: 500;
}
#atf-drawer a:hover, #atf-drawer a.current{
  background: rgba(201, 168, 76, .12); color: var(--gold, #C9A84C);
}
#atf-drawer a span:first-child{ font-size: 1.08rem; width: 24px; text-align: center; }
#atf-drawer .atf-d-cta{
  display: block; text-align: center; margin-top: 20px;
  background: linear-gradient(135deg, var(--gold, #C9A84C), var(--gold-l, #E8CC7A));
  color: #050D1A !important; font-weight: 700; padding: 14px !important;
  border-radius: 11px; justify-content: center;
}
#atf-drawer .atf-d-contact{
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
#atf-drawer .atf-d-contact a{ font-size: .88rem; padding: 9px 13px; }

/* ── نقاط التحوّل ── */
@media (max-width: 1100px){
  #atf-nav .atf-links{ display: none; }
  #atf-burger{ display: flex; }
  #atf-nav .atf-cta{ display: none; }
}
@media (min-width: 1101px){
  #atf-backdrop, #atf-drawer{ display: none; }
}
@media (max-width: 420px){
  #atf-nav{ height: 60px; }
  #atf-nav .atf-logo{ font-size: .98rem; }
}

/* إزاحة المحتوى بمقدار ارتفاع الشريط الثابت */
body.atf-has-nav{ padding-top: 68px; }
@media (max-width: 420px){ body.atf-has-nav{ padding-top: 60px; } }
