/* ================================================================
   Soft Consulting AE — main.css
   RTL Arabic Theme | Navy Blue + Gold | Cairo Font
   ================================================================ */

:root {
  /* Customizer'dan override edilir */
  --sc-primary:   #1e3a6e;
  --sc-secondary: #c9a227;
  --sc-accent:    #e67e22;
  --sc-dark:      #060e1d;
  /* Sabit değerler */
  --sc-darker:    #030910;
  --sc-surface:   #0d1a2e;
  --sc-surface2:  #162035;
  --sc-border:    rgba(201, 162, 39, 0.15);
  --sc-border2:   rgba(201, 162, 39, 0.07);
  --sc-text:      #f0f4ff;
  --sc-muted:     #7a94bb;
  --font-display: 'Cairo Play', 'Cairo', sans-serif;
  --font-body:    'Cairo', sans-serif;
  --max-w:        1200px;
  --nav-h:        72px;
  --r:            14px;
  --r-sm:         8px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET + RTL ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* RTL النص ← هذا يعمل مع language_attributes() في HTML */
}

body {
  font-family: var(--font-body);
  background: var(--sc-dark);
  color: var(--sc-text);
  overflow-x: hidden;
  line-height: 1.8;
  /* RTL يُطبَّق من WordPress عبر lang="ar" dir="rtl" على <html> */
}

img    { max-width: 100%; display: block; }
a      { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; }
input, select, textarea { font-family: inherit; }

/* WordPress RTL class helper */
.rtl, [dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* ── Utilities ──────────────────────────────────────────── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section     { padding: 96px 0; }
.section--darker { background: var(--sc-darker); }
.text-center { text-align: center; }

.gradient-text {
  background: linear-gradient(120deg, var(--sc-secondary), var(--sc-accent), #f5c842);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--sc-secondary);
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--sc-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 56px;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sc-secondary), var(--sc-accent));
  color: #060e1d;
  font-weight: 800;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--sc-text);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover {
  border-color: var(--sc-secondary);
  background: rgba(201, 162, 39, 0.06);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--sc-secondary);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: 100px;
  transition: all .2s;
}
.btn-outline:hover {
  border-color: var(--sc-secondary);
  background: rgba(201, 162, 39, 0.08);
}

/* ── Navbar ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(6, 14, 29, 0.93);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--sc-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  /* RTL: الشعار على اليمين تلقائياً */
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-logo-mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sc-primary), #2a5298);
  border: 1px solid rgba(201, 162, 39, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: .8rem;
  color: var(--sc-secondary);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-main { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.nav-logo-sub  { font-size: .68rem; color: var(--sc-muted); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--sc-muted); transition: color .2s; }
.nav-links a:hover { color: var(--sc-secondary); }

.btn-nav {
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: var(--sc-secondary);
  font-weight: 700; font-size: .82rem;
  padding: 9px 20px; border-radius: 100px;
  transition: background .2s, box-shadow .2s;
}
.btn-nav:hover {
  background: rgba(201, 162, 39, 0.2);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-burger span {
  display: block; height: 2px;
  background: var(--sc-text);
  border-radius: 2px;
  transition: all .3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(6, 14, 29, .97);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--sc-border);
  z-index: 999;
  text-align: right;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  color: var(--sc-muted);
  font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-mobile a:hover { background: var(--sc-surface); color: var(--sc-text); }
.nav-mob-cta { color: var(--sc-secondary) !important; font-weight: 700 !important; }

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 58, 110, .35), transparent 70%);
  top: -100px; right: -100px;
  animation: glow-move 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .1), transparent 70%);
  bottom: -50px; left: -100px;
  animation: glow-move 8s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes glow-move {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, 20px); }
}
.hero-grid {
  position: absolute; inset: 0;
  opacity: .025;
  background-image:
    linear-gradient(rgba(201, 162, 39, .6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, .6) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--sc-secondary);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sc-secondary);
  animation: pulse-gold 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-gold {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201, 162, 39, .4); }
  50% { opacity: .8; box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--sc-muted);
  line-height: 1.9;
  margin-bottom: 20px;
  max-width: 520px;
}

.hero-trust {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  margin-bottom: 28px;
  font-size: .78rem;
}
.hero-trust > span { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.hero-trust strong { display: block; color: var(--sc-secondary); font-size: .72rem; margin-bottom: 2px; direction: ltr; }
.hero-trust span:last-child { font-size: .68rem; color: var(--sc-muted); direction: ltr; }

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

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--sc-border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sc-secondary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(201, 162, 39, .3);
}
.stat-lbl { font-size: .75rem; color: var(--sc-muted); margin-top: 4px; }

/* Code Card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.code-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
  width: 340px;
  position: relative;
}
.code-card-head {
  display: flex; align-items: center; gap: 6px;
  background: var(--sc-surface2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--sc-border);
  direction: ltr;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.code-file { margin-right: auto; font-size: .75rem; color: var(--sc-muted); font-family: 'Courier New', monospace; }
.code-body { padding: 20px; direction: ltr; font-family: 'Courier New', monospace; font-size: .82rem; display: flex; flex-direction: column; gap: 8px; }
.code-line { display: flex; gap: 8px; }
.ck { color: #7c9cbf; }
.cv { color: #c6a227; }
.cg { color: #28c840; font-weight: 700; }
.cc { color: var(--sc-muted); font-style: italic; }

.float-badge {
  position: absolute;
  background: rgba(13, 26, 46, .96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-up 4s ease-in-out infinite;
  white-space: nowrap;
}
.fb-top    { top: -8%; right: -8%; animation-delay: .5s; }
.fb-bottom { bottom: -6%; left: -8%; animation-delay: 1.2s; }
@keyframes float-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-badge > span  { font-size: 1.4rem; }
.float-badge strong  { display: block; font-size: .82rem; font-weight: 700; }
.float-badge small   { font-size: .7rem; color: var(--sc-muted); }

/* ── Tech Strip ─────────────────────────────────────────── */
.tech-strip { padding: 20px 0; border-top: 1px solid var(--sc-border); border-bottom: 1px solid var(--sc-border); overflow: hidden; background: var(--sc-surface); }
/* RTL marquee يتحرك في الاتجاه المعاكس لـ LTR */
.tech-strip-track { display: flex; gap: 40px; animation: marquee-ar 30s linear infinite; width: max-content; }
@keyframes marquee-ar { from { transform: translateX(0); } to { transform: translateX(50%); } }
.strip-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--sc-muted); font-size: .85rem; font-weight: 600; }
.strip-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--sc-secondary); flex-shrink: 0; }

/* ── Services ───────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border2);
  border-top: 4px solid var(--card-color, var(--sc-secondary));
  border-radius: var(--r);
  padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.5); }
.service-icon { font-size: 1.8rem; margin-bottom: 16px; display: block; }
.service-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-card p  { color: var(--sc-muted); font-size: .88rem; line-height: 1.8; margin-bottom: 14px; }
.service-list { display: flex; flex-direction: column; gap: 6px; padding-right: 16px; }
.service-list li { color: var(--sc-muted); font-size: .82rem; list-style: disc; }

/* ── Why Us ─────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.why-left p { color: var(--sc-muted); font-size: .95rem; line-height: 1.9; margin-bottom: 16px; }

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.stat-box {
  background: var(--sc-surface2);
  border: 1px solid var(--sc-border);
  border-radius: var(--r-sm);
  padding: 20px;
  text-align: center;
}
.stat-box--wide { grid-column: span 2; text-align: center; margin-top: 14px; }
.sb-num     { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--sc-secondary); }
.sb-lbl     { font-size: .78rem; color: var(--sc-muted); margin-top: 6px; }
.sb-company { font-size: .72rem; font-weight: 700; color: var(--sc-secondary); margin-bottom: 4px; direction: ltr; }
.sb-vergi   { font-size: .68rem; color: var(--sc-muted); direction: ltr; }

.why-features { display: flex; flex-direction: column; gap: 14px; }
.why-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border2);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: border-color .2s;
}
.why-item:hover { border-color: rgba(201, 162, 39, .2); }
.why-icon { font-size: 1.4rem; flex-shrink: 0; }
.why-item h4 { font-weight: 700; margin-bottom: 4px; font-size: .9rem; }
.why-item p  { color: var(--sc-muted); font-size: .82rem; line-height: 1.7; }

/* ── Process ────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  list-style: none;
  margin-top: 48px;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  /* RTL: الخط يبدأ من اليمين */
  right: 10%; left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sc-secondary), transparent);
}
.process-step { text-align: center; padding: 0 14px; }
.process-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sc-primary), #2a5298);
  border: 2px solid rgba(201, 162, 39, .4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  margin: 0 auto 18px;
  position: relative; z-index: 1;
  color: var(--sc-secondary);
  box-shadow: 0 0 20px rgba(201, 162, 39, .15);
}
.process-step h4 { font-family: var(--font-display); font-size: .88rem; font-weight: 700; margin-bottom: 6px; }
.process-step p  { color: var(--sc-muted); font-size: .78rem; line-height: 1.6; }

/* ── Tech Categories ────────────────────────────────────── */
.tech-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 48px; }
.tech-cat-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border2);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color .2s;
}
.tech-cat-card:hover { border-color: rgba(201, 162, 39, .2); }
.tc-icon { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.tech-cat-card h4 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.tc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-pill {
  background: rgba(201, 162, 39, .08);
  border: 1px solid rgba(201, 162, 39, .15);
  color: var(--sc-muted);
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  direction: ltr; /* التقنيات دائماً LTR */
}

/* ── Testimonials ───────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testi-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border2);
  border-radius: var(--r);
  padding: 28px;
}
.testi-quote { font-size: 4rem; color: rgba(201, 162, 39, .15); line-height: 1; margin-bottom: -20px; font-family: Georgia, serif; }
.testi-text  { color: var(--sc-muted); font-size: .92rem; line-height: 1.9; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sc-primary), #2a5298);
  border: 2px solid rgba(201, 162, 39, .3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  color: var(--sc-secondary); font-size: 1.1rem; flex-shrink: 0;
}
.testi-name    { font-weight: 700; font-size: .9rem; }
.testi-company { color: var(--sc-secondary); font-size: .78rem; font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faq-item {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border2);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: rgba(201, 162, 39, .3); }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  color: var(--sc-text);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  text-align: right; /* RTL */
  cursor: pointer;
  transition: background .2s;
}
.faq-btn:hover { background: rgba(201, 162, 39, .04); }

/* أيقونة + على اليسار في RTL */
.faq-icon {
  order: -1; /* يظهر على اليسار في RTL flex */
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .1);
  border: 1px solid rgba(201, 162, 39, .25);
  display: flex; align-items: center; justify-content: center;
  color: var(--sc-secondary);
  font-size: .9rem; font-weight: 900;
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.open .faq-body { max-height: 300px; }
.faq-body-inner { padding: 0 20px 16px; color: var(--sc-muted); font-size: .85rem; line-height: 1.8; }

/* ── Contact ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-left h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.contact-left > p { color: var(--sc-muted); font-size: .95rem; line-height: 1.9; }

.contact-info { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.ci-row  { display: flex; align-items: flex-start; gap: 12px; }
.ci-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.ci-label { font-size: .72rem; color: var(--sc-muted); text-transform: uppercase; }
.ci-val   { font-weight: 700; font-size: .95rem; }
.ci-addr  { font-size: .8rem; line-height: 1.6; direction: ltr; text-align: left; }

.contact-form-wrap {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: var(--r);
  overflow: hidden;
}
.cf-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  background: var(--sc-surface2);
  border-bottom: 1px solid var(--sc-border);
  font-size: .82rem; color: var(--sc-muted);
}
.cf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #25d366;
  animation: pulse-gold 2s infinite;
}

.contact-form { padding: 28px; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: .78rem; font-weight: 700; color: var(--sc-muted); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--sc-border);
  border-radius: var(--r-sm);
  color: var(--sc-text);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 11px 14px;
  transition: border-color .2s, background .2s;
  outline: none;
  /* RTL حقول النموذج */
  text-align: right;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sc-secondary);
  background: rgba(201, 162, 39, .04);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(122, 148, 187, .5); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: var(--sc-dark); }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--sc-secondary), var(--sc-accent));
  color: #060e1d;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  padding: 15px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(201, 162, 39, .3);
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.form-note { text-align: center; font-size: .72rem; color: var(--sc-muted); margin-top: 12px; }

/* ── Blog ───────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.blog-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border2);
  border-radius: var(--r-sm);
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, transform .2s;
}
.blog-card:hover { border-color: rgba(201, 162, 39, .25); transform: translateY(-2px); }
.blog-card a { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.blog-num  { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: rgba(201, 162, 39, .15); line-height: 1; }
.blog-cat  { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--sc-secondary); }
.blog-card h4 { font-size: .82rem; font-weight: 700; line-height: 1.5; color: var(--sc-text); }
.blog-card a:hover h4 { color: var(--sc-secondary); }
.blog-views { font-size: .7rem; color: var(--sc-muted); margin-top: auto; }
.blog-arrow { font-size: .75rem; font-weight: 700; color: var(--sc-secondary); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--sc-darker);
  border-top: 1px solid var(--sc-border);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer-brand > p { color: var(--sc-muted); font-size: .85rem; line-height: 1.9; margin: 16px 0 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sc-primary), #2a5298);
  border: 1px solid rgba(201, 162, 39, .3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: .8rem;
  color: var(--sc-secondary);
}
.footer-logo-name { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.footer-logo-sub  { font-size: .7rem; color: var(--sc-muted); }

.footer-tax {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(201, 162, 39, .06);
  border: 1px solid rgba(201, 162, 39, .15);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-top: 16px;
}
.footer-tax > span { font-size: 1.2rem; flex-shrink: 0; }
.footer-tax-title  { font-size: .75rem; font-weight: 700; color: var(--sc-secondary); margin-bottom: 2px; }
.footer-tax-num    { font-size: .7rem; color: var(--sc-muted); direction: ltr; }

.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: var(--sc-muted);
  transition: border-color .2s, background .2s, color .2s;
}
.social-btn:hover { border-color: var(--sc-secondary); background: rgba(201, 162, 39, .08); color: var(--sc-secondary); }

.footer-col h5 { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-muted); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--sc-muted); font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--sc-secondary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--sc-border);
  font-size: .8rem; color: var(--sc-muted);
  flex-wrap: wrap; gap: 12px;
}
.footer-powered   { font-size: .78rem; color: var(--sc-muted); }
.powered-link     { color: var(--sc-secondary); font-weight: 700; transition: opacity .2s; }
.powered-link:hover { opacity: .8; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--sc-muted); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--sc-secondary); }

/* ── Floating Buttons ───────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;    /* RTL: اليسار */
  right: auto;
  z-index: 998;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(37, 211, 102, .3);
  animation: ring 2.5s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.back-top {
  position: fixed;
  bottom: 96px;
  left: 28px;    /* RTL: اليسار */
  right: auto;
  z-index: 997;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--sc-text);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .2s;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover   { transform: translateY(-2px); }

/* ── Single Post ────────────────────────────────────────── */
.single-wrap    { padding: 80px 0 64px; }
.breadcrumb     { font-size: .8rem; color: var(--sc-muted); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding-top: var(--nav-h); }
.breadcrumb a   { color: var(--sc-secondary); }
.single-cat-badge { display: inline-block; background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.25); color: var(--sc-secondary); font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }
.single-title   { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.single-meta    { display: flex; flex-wrap: wrap; gap: 16px; color: var(--sc-muted); font-size: .85rem; margin-bottom: 28px; }
.single-thumb   { border-radius: var(--r); overflow: hidden; margin-bottom: 32px; }
.single-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.single-content { max-width: 780px; }
.single-content h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 32px 0 12px; }
.single-content h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin: 26px 0 10px; }
.single-content p  { margin-bottom: 18px; line-height: 1.9; color: var(--sc-muted); }
.single-content p:first-child { font-size: 1.05rem; color: var(--sc-text); }
.single-content ul { padding-right: 20px; margin-bottom: 18px; }
.single-content ol { padding-right: 20px; margin-bottom: 18px; }
.single-content li { color: var(--sc-muted); line-height: 1.8; }
.single-content ul li { list-style: disc; }
.single-content ol li { list-style: decimal; }
.single-content a  { color: var(--sc-secondary); text-decoration: underline; }
/* الاقتباس — الشريط على اليمين */
.single-content blockquote { border-right: 4px solid var(--sc-secondary); border-left: none; padding: 14px 20px; margin: 28px 0; background: rgba(201,162,39,.05); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.single-content blockquote p { color: var(--sc-text); font-style: italic; margin: 0; }
.single-content pre  { background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: var(--r-sm); padding: 20px; overflow-x: auto; margin-bottom: 20px; direction: ltr; text-align: left; }
.single-content code { font-family: 'Courier New', monospace; font-size: .85rem; }
.single-content img  { border-radius: var(--r-sm); margin: 20px 0; }

.single-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--sc-border); font-size: .85rem; color: var(--sc-muted); }
.tag-pill { background: var(--sc-surface); border: 1px solid var(--sc-border); color: var(--sc-muted); font-size: .78rem; padding: 4px 12px; border-radius: 100px; transition: color .2s, border-color .2s; }
.tag-pill:hover { color: var(--sc-secondary); border-color: rgba(201,162,39,.3); }

.single-share { margin-top: 28px; padding: 20px; background: var(--sc-surface); border-radius: var(--r-sm); border: 1px solid var(--sc-border); }
.single-share p { font-weight: 700; margin-bottom: 10px; font-size: .88rem; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 16px; border-radius: 100px; font-size: .78rem; font-weight: 700; }
.share-wa  { background: rgba(37,211,102,.15); color: #25d366; border: 1px solid rgba(37,211,102,.3); }
.share-li  { background: rgba(0,119,181,.15); color: #0077b5; border: 1px solid rgba(0,119,181,.3); }
.share-tw  { background: rgba(29,161,242,.15); color: #1da1f2; border: 1px solid rgba(29,161,242,.3); }

.single-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.snav-item  { background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: var(--r-sm); padding: 18px; transition: border-color .2s; }
.snav-item:hover { border-color: rgba(201,162,39,.25); }
.snav-dir   { display: block; font-size: .72rem; color: var(--sc-muted); text-transform: uppercase; margin-bottom: 4px; }
.snav-title { display: block; font-weight: 700; font-size: .85rem; line-height: 1.4; }

.related-posts { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--sc-border); }
.related-title  { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.related-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card   { background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: var(--r-sm); overflow: hidden; transition: border-color .2s, transform .2s; }
.related-card:hover { border-color: rgba(201,162,39,.2); transform: translateY(-2px); }
.rel-thumb img  { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.rel-info       { padding: 14px; }
.rel-cat        { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--sc-secondary); }
.rel-info h4    { font-size: .85rem; font-weight: 700; margin: 5px 0 6px; line-height: 1.4; }
.rel-info h4 a:hover { color: var(--sc-secondary); }
.rel-info time  { font-size: .75rem; color: var(--sc-muted); }

.single-cta {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(30,58,110,.2), rgba(201,162,39,.1));
  border: 1px solid rgba(201,162,39,.2);
  border-radius: var(--r);
  padding: 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.single-cta h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.single-cta p  { color: var(--sc-muted); font-size: .88rem; }

.single-comments { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--sc-border); }
.single-comments .comments-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.comment-form input,
.comment-form textarea { background: rgba(255,255,255,.04) !important; border: 1px solid var(--sc-border) !important; border-radius: var(--r-sm) !important; color: var(--sc-text) !important; font-family: var(--font-body) !important; padding: 10px 14px !important; width: 100% !important; }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--sc-secondary) !important; outline: none !important; }
.comment-form .submit { background: linear-gradient(135deg, var(--sc-secondary), var(--sc-accent)) !important; color: #060e1d !important; font-weight: 800 !important; padding: 11px 26px !important; border-radius: 100px !important; cursor: pointer !important; }

/* ── Archive ────────────────────────────────────────────── */
.archive-wrap   { padding: 80px 0 64px; }
.archive-header { padding-top: var(--nav-h); margin-bottom: 40px; }
.archive-title  { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.archive-desc   { color: var(--sc-muted); margin-top: 10px; max-width: 640px; }
.archive-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.archive-card   { background: var(--sc-surface); border: 1px solid var(--sc-border); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.archive-card:hover { border-color: rgba(201,162,39,.2); transform: translateY(-3px); }
.archive-card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.archive-card-thumb--placeholder { aspect-ratio: 16/9; background: var(--sc-darker); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.archive-card-body  { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.archive-card-cat   { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--sc-secondary); margin-bottom: 8px; }
.archive-card-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.archive-card-title a:hover { color: var(--sc-secondary); }
.archive-card-excerpt { color: var(--sc-muted); font-size: .85rem; line-height: 1.8; margin-bottom: 16px; flex: 1; }
.archive-card-meta  { display: flex; gap: 14px; font-size: .75rem; color: var(--sc-muted); margin-bottom: 14px; flex-wrap: wrap; }
.archive-card-link  { color: var(--sc-secondary); font-size: .82rem; font-weight: 700; margin-top: auto; }

.archive-pagination { margin-top: 40px; }
.archive-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.archive-pagination .page-numbers { width: 42px; height: 42px; border-radius: 10px; background: var(--sc-surface); border: 1px solid var(--sc-border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: var(--sc-muted); transition: all .2s; }
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current { border-color: var(--sc-secondary); background: rgba(201,162,39,.1); color: var(--sc-secondary); }
.archive-pagination .prev,
.archive-pagination .next { width: auto; padding: 0 16px; }

/* ── WordPress Core ─────────────────────────────────────── */
/* RTL: alignments مقلوبة */
.alignright  { float: right; margin: 0 0 14px 20px; }
.alignleft   { float: left;  margin: 0 20px 14px 0; }
.aligncenter { display: block; margin: 0 auto 20px; }
.wp-caption-text { font-size: .82rem; color: var(--sc-muted); text-align: center; margin-top: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner   { grid-template-columns: 1fr; text-align: center; }
  .hero-desc    { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-visual  { display: none; }
  .why-grid     { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-steps::before { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .tech-cats    { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-burger  { display: flex; }
  .section     { padding: 60px 0; }
  .faq-grid    { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .single-nav  { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .single-cta  { flex-direction: column; text-align: center; }
  .stats-row   { grid-template-columns: 1fr 1fr; }
  .testi-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .blog-grid   { grid-template-columns: 1fr 1fr; }
  .share-btns  { flex-direction: column; }
  .hero-trust  { flex-direction: column; text-align: center; }
}
