/* ==========================================================================
   شركة التوظيف الأمثل للاستقدام - أنماط التصميم (RTL Saudi Recruitment Agency)
   Color Theme: Blue, Modern (الأزرق العصري المعتمد)
   ========================================================================== */

:root {
  /* نظام الألوان الأزرق العصري المعتمد */
  --blue-900: #0B2545;       /* التذييل والأقسام الداكنة */
  --blue-700: #134074;       /* تراكب الهيرو، العناوين الرئيسية */
  --blue-600: #1D5FD1;       /* الأزرار الأساسية، الروابط */
  --blue-500: #3B82F6;       /* حالات التمرير واللمسات الجمالية */
  --blue-50: #EFF5FF;        /* خلفيات الأقسام المتناوبة */

  --ink: #0F1B2D;            /* لون نصوص المحتوى الأساسي */
  --ink-muted: #4B5E78;      /* لون النصوص الثانوية */
  --line: #D8E2F0;           /* خطوط الفصل والحدود */
  --line-subtle: #E8EEF7;    /* حدود خفيفة جداً */
  --white: #FFFFFF;
  --danger: #B3261E;

  /* المسافات والزوايا والظلال */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.06);
  --shadow-card: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-hover: 0 8px 24px rgba(29, 95, 209, 0.15);

  /* خطوط وتناسق النصوص */
  --font-main: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
}

/* إعادة الضبط الأساسية */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* التركيز الموجه لإمكانية الوصول (WCAG AA Focus Ring) */
:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
}

/* ==========================================================================
   الرأس وشريط الترويسة العلوي (Sticky Header)
   ========================================================================== */

.top-bar-notice {
  background-color: var(--blue-900);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  padding: 6px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-notice .tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-500);
  font-weight: 600;
}

.top-bar-notice .tag-badge svg {
  width: 14px;
  height: 14px;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.top-bar-contact a:hover {
  color: var(--white);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 5vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-700);
  line-height: 1.2;
}

.brand small {
  font-size: 0.82rem;
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline-start: auto;
  font-size: 0.95rem;
  font-weight: 600;
}

.top nav a {
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.top nav a:hover {
  color: var(--blue-600);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--blue-50);
  color: var(--blue-900);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  direction: ltr;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.phone:hover {
  background-color: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.phone svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   الأزرار المشتركة
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--blue-600);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--blue-600);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background-color: var(--blue-500);
  border-color: var(--blue-500);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  background-color: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.btn.primary:hover {
  background-color: var(--blue-500);
  border-color: var(--blue-500);
}

.btn.ghost {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn.ghost:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-1px);
}

.btn.full {
  width: 100%;
}

.btn.sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* ==========================================================================
   القسم الترحيبي (Hero Section) مع صورة الخلفية وتعتيم الأزرق الحديث
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4vw;
  align-items: center;
  padding: 80px 5vw;
  background-color: var(--blue-900);
  background-image: 
    linear-gradient(135deg, rgba(11, 37, 69, 0.94) 0%, rgba(19, 64, 116, 0.90) 100%),
    url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  min-height: 580px;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  color: #BAE6FD;
  border: 1px solid rgba(186, 230, 253, 0.4);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.35;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--white);
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 26px;
  color: #E2E8F0;
}

.hero-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: #F8FAFC;
}

.hero-features svg {
  width: 18px;
  height: 18px;
  color: var(--blue-500);
  flex-shrink: 0;
}

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

/* لوحة نموذج الطلب داخل الهيرو */
.panel {
  background: var(--white);
  color: var(--ink);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 36px rgba(11, 37, 69, 0.25);
  display: grid;
  gap: 16px;
}

.panel-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.panel h2 {
  font-size: 1.35rem;
  color: var(--blue-700);
  font-weight: 700;
}

.panel-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

input, select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--blue-50);
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--blue-600);
  background-color: var(--white);
}

input.bad, select.bad {
  border-color: var(--danger);
  background-color: #FDF2F2;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: center;
  justify-content: center;
  margin-top: -6px;
}

.form-privacy-note svg {
  width: 14px;
  height: 14px;
  color: var(--blue-600);
}

.msg {
  min-height: 1.5em;
  font-size: 0.9rem;
  color: var(--blue-700);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.msg.err {
  color: var(--danger);
  background-color: #FDF2F2;
}

/* ==========================================================================
   شريط الإحصائيات وعناصر الثقة (Stats Strip)
   ========================================================================== */

.stats-strip {
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 32px 5vw;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-inline-end: 1px solid var(--line);
}

.stat-item:last-child {
  border-inline-end: none;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.1;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 4px;
}

/* ==========================================================================
   الأقسام المشتركة والعناوين
   ========================================================================== */

.block {
  padding: 80px 5vw;
}

.tint {
  background-color: var(--blue-50);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head .subhead {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: var(--blue-700);
  line-height: 1.35;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================================================
   بطاقات الخدمات (Services Cards)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-600);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--blue-700);
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.92rem;
  padding-top: 14px;
  border-top: 1px solid var(--line-subtle);
}

.service-card .card-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.service-card:hover .card-action svg {
  transform: translateX(-4px);
}

/* ==========================================================================
   شبكة المهن (Professions Grid)
   ========================================================================== */

.professions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  list-style: none;
}

.profession-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.profession-card:hover {
  border-color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.profession-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--blue-50);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
}

.profession-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.profession-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.profession-card p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ==========================================================================
   دول الاستقدام مع صور الأعلام (Recruitment Countries)
   ========================================================================== */

.countries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
}

.country-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.country-card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.country-flag-box {
  width: 44px;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.15);
  flex-shrink: 0;
  background-color: var(--line-subtle);
  border: 1px solid rgba(11, 37, 69, 0.08);
}

.country-flag-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-info {
  display: flex;
  flex-direction: column;
}

.country-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.country-info span {
  font-size: 0.8rem;
  color: var(--blue-600);
  font-weight: 600;
}

/* ==========================================================================
   نماذج السير الذاتية (CV Cards Section)
   ========================================================================== */

.cv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}

.cv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue-600);
}

/* منطقة صورة السيرة الذاتية (4:5 Ratio) مع الصندوق النائب الاحترافي */
.cv-photo-box {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--blue-50);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.cv-placeholder-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(180deg, #EFF5FF 0%, #DCE9FC 100%);
  color: var(--ink-muted);
  z-index: 1;
}

.cv-placeholder-fallback svg {
  width: 42px;
  height: 42px;
  color: var(--blue-600);
  opacity: 0.7;
}

.cv-placeholder-fallback span {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  direction: ltr;
}

.cv-badge-country {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.cv-badge-country img {
  width: 18px;
  height: 13px;
  border-radius: 2px;
}

.cv-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.cv-code {
  font-size: 0.8rem;
  color: var(--blue-600);
  font-weight: 700;
  direction: ltr;
  text-align: right;
}

.cv-body h3 {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 700;
}

.cv-details {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
  padding: 10px 0;
}

.cv-details li {
  display: flex;
  justify-content: space-between;
}

.cv-details b {
  color: var(--ink);
}

.cv-status-active {
  color: var(--blue-600);
  font-weight: 700;
}

/* ==========================================================================
   خطوات الاستقدام (Steps Timeline)
   ========================================================================== */

.steps-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
  position: relative;
  counter-reset: s;
}

.step-card {
  counter-increment: s;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-600);
}

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--blue-700);
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid var(--blue-500);
}

.step-card h3 {
  font-size: 1.15rem;
  color: var(--blue-700);
  margin-bottom: 10px;
  font-weight: 700;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ==========================================================================
   لماذا نحن؟ (Why Choose Us - Split Layout)
   ========================================================================== */

.split-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5vw;
  align-items: center;
}

.why-features {
  list-style: none;
  display: grid;
  gap: 20px;
}

.why-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.why-feature-item:hover {
  border-color: var(--blue-600);
  transform: translateX(-4px);
}

.why-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature-icon svg {
  width: 22px;
  height: 22px;
}

.why-feature-text h3 {
  font-size: 1.15rem;
  color: var(--blue-700);
  margin-bottom: 6px;
  font-weight: 700;
}

.why-feature-text p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* صورة جانبية للمكتب مع بديل placeholder */
.office-image-box {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background-color: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.office-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.office-placeholder-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #EFF5FF 0%, #DCE9FC 100%);
  color: var(--ink-muted);
  z-index: 1;
}

.office-placeholder-fallback svg {
  width: 56px;
  height: 56px;
  color: var(--blue-600);
  opacity: 0.7;
}

.office-placeholder-fallback b {
  color: var(--blue-700);
  font-size: 1rem;
}

.office-placeholder-fallback span {
  font-size: 0.85rem;
  direction: ltr;
}

/* ==========================================================================
   شريط اتخاذ القرار (Full-width CTA Band)
   ========================================================================== */

.cta-band {
  background-color: var(--blue-900);
  color: var(--white);
  padding: 64px 5vw;
  text-align: center;
  position: relative;
  background-image: linear-gradient(180deg, var(--blue-700) 0%, var(--blue-900) 100%);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.cta-band p {
  font-size: 1.15rem;
  color: #E2E8F0;
  margin-bottom: 30px;
  line-height: 1.8;
}

.cta-band .actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   الأسئلة الشائعة (FAQ Accordion)
   ========================================================================== */

.faq-container {
  max-width: 860px;
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details:hover {
  border-color: var(--blue-600);
}

details[open] {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-sm);
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-700);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-inline-start: 12px;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
  color: var(--blue-700);
}

details p {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  border-top: 1px solid var(--line-subtle);
  padding-top: 14px;
}

/* ==========================================================================
   التذييل الغني (Rich Footer)
   ========================================================================== */

footer {
  background-color: var(--blue-900);
  color: #D8E2F0;
  padding: 70px 5vw 30px;
  border-top: 1px solid #193B66;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1fr;
  gap: 4vw;
  margin-bottom: 50px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.15rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 32px;
  height: 2px;
  background-color: var(--blue-500);
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #CAD5E2;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--blue-500);
}

.footer-contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
  font-size: 0.92rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-500);
  font-weight: 600;
  margin-top: 4px;
  text-decoration: underline;
}

.contact-map-link:hover {
  color: var(--white);
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.social-btn:hover {
  background-color: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

/* صندوق خريطة موقع المكتب */
.map-box {
  background-color: #0E2F56;
  border: 1px solid #1C4475;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-placeholder-view {
  aspect-ratio: 16 / 9;
  background: #081D38;
  border-radius: var(--radius-sm);
  border: 1px dashed #285794;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #B4CBEA;
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
}

.map-placeholder-view svg {
  width: 24px;
  height: 24px;
  color: var(--blue-500);
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #BAE6FD;
  background: rgba(29, 95, 209, 0.2);
  border: 1px solid var(--blue-600);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.map-btn:hover {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

/* شريط حقوق النشر */
.copy-strip {
  width: 100%;
  border-top: 1px solid #193B66;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #A6BFDC;
  flex-wrap: wrap;
  gap: 16px;
}

.copy-strip .musaned-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 99px;
  color: #E2E8F0;
  font-size: 0.82rem;
}

/* زر الواتساب العائم (الحفاظ على اللون الأخضر الأصلي للواتساب) */
.wa {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  background-color: #25D366;
  color: #07351B;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 99px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.wa svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   التجاوب مع الشاشات (Responsive Mobile-First Adjustments)
   ========================================================================== */

@media (max-width: 1100px) {
  .professions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .cv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .top-bar-notice {
    display: none;
  }
  .top nav {
    display: none;
  }
  .top .top-actions {
    margin-inline-start: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 50px 5vw;
    gap: 36px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-inline-end: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .split-block {
    grid-template-columns: 1fr;
  }
  .steps-container {
    grid-template-columns: 1fr;
  }
  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .professions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cv-grid {
    grid-template-columns: 1fr;
  }
  .countries-grid {
    grid-template-columns: 1fr;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
  .copy-strip {
    flex-direction: column;
    text-align: center;
  }
}

/* تقليل الحركة لمن يفضل ذلك */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
