/* ==========================================================================
   تمكين | Tamkeen Global — Stylesheet
   خط أساسي: IBM Plex Sans Arabic → Tajawal → Cairo → Arial
   اتجاه: RTL بالكامل
   ========================================================================== */

/* ---------- المتغيرات (Design Tokens) ---------- */
:root {
  --navy: #0B1220;
  --royal-blue: #1E3A8A;
  --emerald: #059669;
  --soft-emerald: #10B981;
  --gold: #F59E0B;
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #111827;
  --text-muted: #64748B;
  --border-color: #E2E8F0;

  --font-main: 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', Arial, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 10px 30px -8px rgba(11, 18, 32, 0.12);
  --shadow-card: 0 6px 20px -4px rgba(11, 18, 32, 0.08);
  --shadow-hover: 0 16px 40px -10px rgba(11, 18, 32, 0.18);

  --container-width: 1200px;
  --transition-base: all 0.3s ease;
}

/* ---------- إعادة تهيئة أساسية ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
  width: 100%;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
}

h1 { font-weight: 800; }

p { color: var(--text-muted); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

section { position: relative; }

.section-padding { padding: 88px 0; }

@media (max-width: 768px) {
  .section-padding { padding: 56px 0; }
}

/* ---------- عناوين الأقسام ---------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 150, 105, 0.08);
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.05rem;
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: var(--transition-base);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(90deg, var(--emerald), var(--soft-emerald));
  color: #fff;
  box-shadow: 0 8px 22px -6px rgba(5, 150, 105, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(5, 150, 105, 0.6);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-gold {
  background: linear-gradient(90deg, var(--gold), #fbbf24);
  color: var(--navy);
  box-shadow: 0 8px 22px -6px rgba(245, 158, 11, 0.5);
}
.btn-gold:hover { transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ==========================================================================
   الشعار (Logo)
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .logo-ar {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.logo-text .logo-en {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.logo--light .logo-text .logo-ar { color: #fff; }
.logo--light .logo-text .logo-en { color: rgba(255,255,255,0.65); }

/* ==========================================================================
   الهيدر
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
  transition: var(--transition-base);
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--emerald);
  transition: width 0.3s ease;
}

.main-nav a:hover { color: var(--emerald); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  justify-content: center;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 3px;
  transition: var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 78px;
  background: var(--card-bg);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
}

.mobile-nav.active { transform: translateX(0); }

.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }

.mobile-nav a {
  display: block;
  padding: 14px 10px;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--navy);
}

.mobile-nav .btn { margin-top: 20px; }

@media (max-width: 992px) {
  .main-nav { display: none; }
  .header-actions .btn-outline-cta { display: none; }
  .mobile-toggle { display: flex; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at 20% 20%, rgba(30, 58, 138, 0.55), transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(5, 150, 105, 0.35), transparent 45%),
              linear-gradient(135deg, var(--navy) 0%, var(--royal-blue) 65%, #142b63 100%);
  color: #fff;
  padding: 130px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--soft-emerald), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.trust-badge svg { width: 16px; height: 16px; color: var(--soft-emerald); flex-shrink: 0; }

.hero-compliance-note {
  display: flex;
  gap: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
}

.hero-compliance-note svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* بطاقة/Mockup في الهيرو */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
}

.hero-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
}

.hero-card-title span.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--soft-emerald);
  display: inline-block; margin-inline-start: 6px;
}

.hero-steps { display: flex; flex-direction: column; gap: 14px; }

.hero-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: #fff;
  transition: var(--transition-base);
}

.hero-step:hover {
  background: rgba(255,255,255,0.09);
  transform: translateX(-4px);
}

.hero-step .step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--soft-emerald));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}

.hero-step .step-text { font-size: 0.92rem; font-weight: 600; }
.hero-step .step-text small { display: block; color: rgba(255,255,255,0.6); font-weight: 400; font-size: 0.78rem; margin-top: 2px; }

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ==========================================================================
   بطاقات عامة
   ========================================================================== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

/* ---------- الخدمات ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  padding: 34px 28px;
  text-align: start;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30,58,138,0.1), rgba(5,150,105,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg { width: 28px; height: 28px; color: var(--royal-blue); }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; }

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- كيف نعمل (Steps) ---------- */
.steps-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  position: relative;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  position: relative;
}

.step-card .step-index {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--emerald));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.step-card p { font-size: 0.82rem; margin: 0; }

@media (max-width: 992px) { .steps-flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps-flow { grid-template-columns: 1fr; } }

/* ---------- الباقات ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.pricing-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--emerald);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 28px;
  background: linear-gradient(90deg, var(--gold), #fbbf24);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 100px;
}

.pricing-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pricing-card .pricing-sub { font-size: 0.88rem; margin-bottom: 20px; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.pricing-price .from { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.pricing-price .amount { font-size: 2.1rem; font-weight: 800; color: var(--navy); }
.pricing-price .currency { font-size: 0.95rem; color: var(--text-muted); font-weight: 700; }

.pricing-note-sm { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 22px; }

.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.pricing-features svg { width: 18px; height: 18px; color: var(--emerald); flex-shrink: 0; margin-top: 3px; }

.pricing-disclaimer {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  background: #FFF7ED;
  border: 1px solid #FDE7C7;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.87rem;
  color: #92400E;
}
.pricing-disclaimer svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }

@media (max-width: 992px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card.featured { transform: none; } }

/* ---------- الامتثال والثقة ---------- */
.compliance-section {
  background: var(--navy);
  color: #fff;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.compliance-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.compliance-item svg { width: 24px; height: 24px; color: var(--soft-emerald); flex-shrink: 0; margin-top: 2px; }
.compliance-item p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.92rem; font-weight: 600; }

.compliance-banner {
  margin-top: 34px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.compliance-banner svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.compliance-banner p { margin: 0; color: rgba(255,255,255,0.92); font-size: 0.92rem; line-height: 1.9; }

@media (max-width: 992px) { .compliance-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .compliance-grid { grid-template-columns: 1fr; } }

/* ---------- الأسئلة الشائعة ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-align: start;
}

.faq-question .icon-plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
  margin-inline-start: 14px;
}
.faq-question .icon-plus::before,
.faq-question .icon-plus::after {
  content: "";
  position: absolute;
  background: var(--emerald);
  border-radius: 2px;
  transition: var(--transition-base);
}
.faq-question .icon-plus::before { width: 100%; height: 3px; top: 50%; right: 0; transform: translateY(-50%); }
.faq-question .icon-plus::after { width: 3px; height: 100%; top: 0; right: 50%; transform: translateX(50%); }

.faq-item.active .icon-plus::after { transform: translateX(50%) scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner { padding: 0 24px 20px; font-size: 0.94rem; color: var(--text-muted); }

/* ---------- نموذج التواصل ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
  border-radius: var(--radius-lg);
  padding: 34px;
  color: #fff;
}
.contact-info-card h3 { color: #fff; margin-bottom: 12px; font-size: 1.25rem; }
.contact-info-card p { color: rgba(255,255,255,0.78); font-size: 0.93rem; margin-bottom: 26px; }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; }

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.contact-info-list svg { width: 20px; height: 20px; color: var(--soft-emerald); flex-shrink: 0; margin-top: 2px; }
.contact-info-list span small { display: block; color: rgba(255,255,255,0.55); font-size: 0.78rem; margin-bottom: 2px; }

.contact-form-card { padding: 34px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--navy); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-main);
  background: #fff;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.radio-group { display: flex; gap: 20px; align-items: center; padding-top: 6px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-main); }

.consent-group { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; margin-bottom: 22px; }
.consent-item { display: flex; align-items: flex-start; gap: 10px; }
.consent-item input[type="checkbox"] { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--emerald); flex-shrink: 0; }
.consent-item label { font-size: 0.87rem; color: var(--text-muted); }
.consent-item label a { color: var(--royal-blue); font-weight: 700; text-decoration: underline; }

/* حقل Honeypot مخفي تمامًا */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0; width: 0; overflow: hidden;
}

.form-success-msg {
  display: none;
  align-items: center;
  gap: 12px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 16px;
}
.form-success-msg.show { display: flex; }
.form-success-msg svg { width: 22px; height: 22px; flex-shrink: 0; }

.form-error-msg {
  display: none;
  align-items: center;
  gap: 12px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 16px;
}
.form-error-msg.show { display: flex; }
.form-error-msg svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (max-width: 992px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .radio-group { flex-wrap: wrap; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 16px 0 20px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-base);
}
.footer-social a:hover { background: var(--emerald); }
.footer-social svg { width: 17px; height: 17px; color: #fff; }

.footer-social-note { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 6px; }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: var(--transition-base); }
.footer-col a:hover { color: var(--soft-emerald); }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; margin-bottom: 14px; color: rgba(255,255,255,0.7); }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--soft-emerald); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 0;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--soft-emerald); }

.footer-disclaimer {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.9;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   عناصر عائمة (واتساب + رجوع للأعلى)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-base);
}

.whatsapp-float {
  background: #25D366;
}
.whatsapp-float svg { width: 26px; height: 26px; color: #fff; }
.whatsapp-float:hover { transform: scale(1.08); }

.back-to-top {
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 22px; height: 22px; color: #fff; }
.back-to-top:hover { background: var(--royal-blue); transform: translateY(-3px); }

/* ==========================================================================
   Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   صفحات قانونية (Legal Pages)
   ========================================================================== */
.legal-hero {
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
  color: #fff;
  padding: 70px 0 50px;
}
.legal-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.legal-hero p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

.legal-breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.legal-breadcrumb a { color: var(--soft-emerald); font-weight: 700; }

.legal-body {
  padding: 56px 0 80px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 30px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.legal-content p { margin-bottom: 14px; font-size: 0.96rem; color: var(--text-muted); }
.legal-content ul { margin: 0 0 14px; padding-inline-start: 22px; list-style: disc; }
.legal-content ul li { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-muted); }

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5,150,105,0.08);
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.legal-nav-links {
  max-width: 820px;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.legal-nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-base);
}
.legal-nav-links a:hover,
.legal-nav-links a.active {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}

@media (max-width: 640px) {
  .legal-content { padding: 28px 20px; }
}

.legal-back-home-wrap {
  max-width: 820px;
  margin: 30px auto 0;
  text-align: center;
}

.legal-content-note {
  display: flex;
  gap: 12px;
  background: #FFF7ED;
  border: 1px solid #FDE7C7;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 26px;
  font-size: 0.88rem;
  color: #92400E;
}
.legal-content-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.legal-content-note p { margin: 0; color: #92400E; font-size: 0.88rem; }

.legal-content .legal-contact-box {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 10px 0 20px;
}
.legal-content .legal-contact-box p { margin: 0 0 6px; font-size: 0.92rem; }
.legal-content .legal-contact-box p:last-child { margin-bottom: 0; }

/* ---------- قائمة نقاط مبسّطة (لمن هذه الخدمة / المتطلبات) ---------- */
.simple-check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}
.simple-check-list .check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.simple-check-list .check-item svg {
  width: 20px; height: 20px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}
.simple-check-list .check-item p { margin: 0; font-size: 0.95rem; color: var(--text-main); font-weight: 600; }
.simple-check-list .check-item.warn svg { color: var(--gold); }

.section-intro-text {
  max-width: 780px;
  margin: 0 auto 26px;
  text-align: center;
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 700;
}

.requirements-alert {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  background: #FFF7ED;
  border: 1px solid #FDE7C7;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: #92400E;
  max-width: 780px;
  margin-inline: auto;
}
.requirements-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.requirements-alert p { margin: 0; color: #92400E; }

/* ---------- CTA متكرر بعد الأقسام الرئيسية ---------- */
.repeated-cta {
  margin-top: 46px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
}
.repeated-cta p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

/* ---------- تحسينات إمكانية الوصول: التركيز عبر الكيبورد ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- روابط قانونية قرب نموذج التواصل ---------- */
.contact-legal-links {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.contact-legal-links p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.contact-legal-links .links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-legal-links .links-row a {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: var(--transition-base);
}
.contact-legal-links .links-row a:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

/* ==========================================================================
   ضمان عدم وجود تمرير أفقي
   ========================================================================== */
html, body { max-width: 100%; }
