/* ============================================================
   بيت الخبرة — منصة أريد العلمية
   CSS Stylesheet — RTL Arabic Design
   ============================================================ */

:root {
  --primary: #1a6b8a;
  --primary-dark: #0d4f6b;
  --primary-light: #e8f4f8;
  --gold: #d4a017;
  --gold-light: #fdf3dc;
  --dark: #0f1f2d;
  --dark-2: #1c2e3e;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #e2e8f0;
  --light-bg: #f7fafc;
  --white: #ffffff;
  --success: #2e7d32;
  --danger: #c62828;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 20px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
  --font: 'Cairo', 'Tajawal', sans-serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  direction: rtl;
  line-height: 1.7;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding { padding: 80px 0; }
.bg-light { background: var(--light-bg); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26,107,138,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(26,107,138,.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── Section Header ─── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: .75rem;
  letter-spacing: .5px;
}
.section-label.light {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.section-title.light { color: var(--white); }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  padding: .4rem 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-inner span { display: flex; align-items: center; gap: .4rem; }
.top-bar-brand { margin-right: auto; font-size: .85rem; }
.top-bar i { color: var(--gold); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.logo-sub { font-size: .7rem; color: var(--primary); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  padding: .5rem .85rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: .5rem 1.2rem !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(26,107,138,.4); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  background: linear-gradient(145deg, var(--dark) 0%, var(--dark-2) 40%, #0a3550 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -150px;
  animation: floatShape 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--gold);
  bottom: -100px; left: -100px;
  animation: floatShape 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--primary-light);
  top: 30%; left: 20%;
  animation: floatShape 6s ease-in-out infinite;
}
.shape-4 {
  width: 150px; height: 150px;
  background: var(--gold);
  top: 20%; right: 25%;
  animation: floatShape 7s ease-in-out infinite reverse;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.3);
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInDown .8s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  animation: fadeInUp .8s ease .2s both;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold), #f0c040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp .8s ease .4s both;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp .8s ease .5s both;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.7); font-weight: 500; }
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp .8s ease .6s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 420px;
}
.about-card-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 10%;
  left: 5%;
  width: 75%;
  z-index: 2;
}
.about-icon-wrap {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.about-card-main h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.about-card-main p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }

.about-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 50px;
}

.about-floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  z-index: 3;
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}
.about-floating-card i { color: var(--primary); font-size: 1rem; }
.fc1 { bottom: 20%; right: 0; animation-delay: 0s; }
.fc2 { top: 5%; right: 0; animation-delay: .5s; }
.fc3 { bottom: 5%; left: 0; animation-delay: 1s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about-text .section-label { margin-bottom: .75rem; }
.about-text .section-title { text-align: right; margin-bottom: 1rem; }
.about-text .section-desc { text-align: right; max-width: 100%; margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1rem; }

.about-features { display: flex; flex-direction: column; gap: 1rem; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--light-bg);
  transition: var(--transition);
}
.feature-item:hover { background: var(--primary-light); transform: translateX(-4px); }
.feature-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}
.feature-item h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.feature-item p { font-size: .85rem; color: var(--text-muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: right;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.featured-service {
  background: linear-gradient(145deg, var(--dark), var(--dark-2));
  color: var(--white);
  border-color: rgba(212,160,23,.3);
}
.featured-service::before { background: linear-gradient(90deg, var(--gold), #f0c040); }
.featured-service h3 { color: var(--white); }
.featured-service p { color: rgba(255,255,255,.75); }

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(212,160,23,.15);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 50px;
  border: 1px solid rgba(212,160,23,.3);
  margin-bottom: 1rem;
}

.service-icon-wrap {
  width: 56px; height: 56px;
  background: color-mix(in srgb, var(--icon-color) 15%, transparent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.featured-service .service-icon-wrap {
  background: rgba(212,160,23,.15);
  color: var(--gold);
}

.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: .6rem; }
.service-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
.featured-service p { color: rgba(255,255,255,.7); }

.service-list { margin-bottom: 1.25rem; }
.service-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  padding: .25rem 0;
}
.service-list li i { color: var(--primary); font-size: .7rem; }
.featured-service .service-list li { color: rgba(255,255,255,.65); }
.featured-service .service-list li i { color: var(--gold); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}
.service-link:hover { gap: .75rem; }
.featured-service .service-link { color: var(--gold); }

/* ============================================================
   EXPERTS
   ============================================================ */
.expert-filters {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  background: var(--white);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.expert-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.expert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}
.expert-card.hidden { display: none; }

.featured-expert {
  border-color: var(--gold);
  background: linear-gradient(to bottom, #fffdf5, var(--white));
}
.featured-expert::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #f0c040);
}

.expert-badge-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.expert-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.online-dot {
  position: absolute;
  bottom: 2px; left: 2px;
  width: 12px; height: 12px;
  background: #4caf50;
  border-radius: 50%;
  border: 2px solid var(--white);
}
.expert-crown {
  color: #b0b0b0;
  font-size: 1.1rem;
}
.expert-crown.gold { color: var(--gold); }

.expert-ribbon {
  position: absolute;
  top: 18px;
  left: -8px;
  background: linear-gradient(135deg, var(--gold), #c8930e);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem 1rem .3rem 1.5rem;
  border-radius: 0 4px 4px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
}

.expert-info { flex: 1; }
.expert-info h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: .2rem; }
.expert-title { display: block; font-size: .82rem; color: var(--primary); font-weight: 600; margin-bottom: .3rem; }
.expert-org {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.expert-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .75rem; }
.expert-tags span {
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 50px;
}

.expert-rating { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.stars { display: flex; gap: 2px; }
.stars i { color: var(--gold); font-size: .78rem; }
.rating-num { font-size: .88rem; font-weight: 800; color: var(--dark); }
.review-count { font-size: .78rem; color: var(--text-muted); }

.expert-meta {
  display: flex;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.expert-meta span { display: flex; align-items: center; gap: .3rem; }
.expert-meta i { color: var(--primary); }

.expert-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  padding: .6rem;
  background: var(--light-bg);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.price-label { font-size: .75rem; color: var(--text-muted); }
.price-val { font-size: .95rem; font-weight: 800; color: var(--primary); }

/* ── Arid Profile Link ── */
.arid-profile-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(26,107,138,.2);
  border-radius: 6px;
  padding: .28rem .65rem;
  margin-bottom: .6rem;
  transition: var(--transition);
  width: fit-content;
  text-decoration: none;
}
.arid-profile-link:hover {
  background: var(--primary);
  color: var(--white);
}
.featured-expert .arid-profile-link {
  background: rgba(212,160,23,.12);
  color: var(--gold);
  border-color: rgba(212,160,23,.3);
}
.featured-expert .arid-profile-link:hover {
  background: var(--gold);
  color: var(--white);
}

.expert-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: .65rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: auto;
}
.expert-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), #083a52);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26,107,138,.4);
}
.featured-expert .expert-cta {
  background: linear-gradient(135deg, var(--gold), #c8930e);
}

.experts-cta-wrap { text-align: center; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calculator-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.calc-policy-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
}
.policy-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.policy-header i { color: var(--primary); font-size: 1.2rem; }
.policy-header h4 { font-size: .95rem; font-weight: 700; color: var(--dark); }

.policy-list { margin-bottom: 1.5rem; }
.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .82rem;
  color: var(--text-muted);
  padding: .4rem 0;
  border-bottom: 1px dashed var(--border);
}
.policy-list li:last-child { border: none; }
.policy-list li i { color: var(--success); font-size: .75rem; margin-top: .2rem; flex-shrink: 0; }

.policy-chart { margin-top: 1rem; }
.pie-wrap { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.pie-chart { width: 100px; height: 100px; transform: rotate(-90deg); }
.pie-legend { display: flex; flex-direction: column; gap: .35rem; width: 100%; }
.pie-legend span {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.pie-legend em {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Calculator Main */
.calc-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.calc-steps {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}
.calc-step {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.calc-step.active { color: var(--primary); }
.calc-step.done { color: var(--success); }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
  transition: var(--transition);
}
.calc-step.active .step-num { background: var(--primary); color: var(--white); }
.calc-step.done .step-num { background: var(--success); color: var(--white); }
.calc-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .5rem; }

.calc-panel { display: none; }
.calc-panel.active { display: block; animation: fadeIn .4s ease; }

.calc-panel h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }

.service-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stype-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.stype-card i {
  font-size: 1.75rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.stype-card span { font-size: .82rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.stype-card:hover, .stype-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.stype-card:hover i, .stype-card.selected i { color: var(--primary); }
.stype-card:hover span, .stype-card.selected span { color: var(--primary); }

/* Calc Form */
.calc-form { margin-bottom: 1.5rem; }
.calc-form .form-group { margin-bottom: 1rem; }
.calc-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; }
.calc-form input,
.calc-form select,
.calc-form textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text);
  background: var(--light-bg);
  transition: var(--transition);
  direction: rtl;
}
.calc-form input:focus,
.calc-form select:focus,
.calc-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,107,138,.1);
}

.calc-nav { display: flex; justify-content: space-between; }

/* Result */
.result-box { animation: fadeIn .5s ease; }
.result-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.result-header i { color: var(--primary); font-size: 1.5rem; }
.result-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); }

.result-breakdown {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .9rem;
}
.result-row:last-child { border: none; }
.result-row .label { color: var(--text-muted); }
.result-row .val { font-weight: 700; color: var(--dark); }

.result-total {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.result-total .total-label { font-size: 1rem; font-weight: 600; }
.result-total .total-val { font-size: 1.5rem; font-weight: 900; }

.result-distribution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dist-card {
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.dist-card.expert { background: rgba(26,107,138,.1); }
.dist-card.platform { background: rgba(212,160,23,.1); }
.dist-card .dist-pct { font-size: 1.5rem; font-weight: 900; }
.dist-card.expert .dist-pct { color: var(--primary); }
.dist-card.platform .dist-pct { color: var(--gold); }
.dist-card .dist-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.dist-card .dist-amount { font-size: .95rem; font-weight: 700; color: var(--dark); margin-top: .25rem; }

.result-note {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: rgba(212,160,23,.08);
  border: 1px solid rgba(212,160,23,.25);
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #7a5c00;
  margin-bottom: 1.25rem;
}
.result-note i { color: var(--gold); flex-shrink: 0; margin-top: .15rem; }

.result-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   VALUE
   ============================================================ */
.value {
  background: linear-gradient(145deg, var(--dark), var(--dark-2));
}
.value .section-header .section-title { color: var(--white); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.value-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-4px);
  border-color: rgba(26,107,138,.5);
}
.value-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: .5rem;
}
.value-icon { font-size: 1.5rem; color: var(--primary-light); margin-bottom: .75rem; }
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.value-card p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.client-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.client-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.client-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.client-item h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.client-item p { font-size: .85rem; color: var(--text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(145deg, var(--dark), var(--dark-2));
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .section-label { margin-bottom: .75rem; }
.contact-info .section-title { text-align: right; color: var(--white); font-size: 1.75rem; }
.contact-info .section-desc { text-align: right; max-width: 100%; color: rgba(255,255,255,.7); margin-bottom: 2rem; }

.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ci-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item span { display: block; font-size: .78rem; color: rgba(255,255,255,.5); margin-bottom: .1rem; }
.contact-item strong { color: var(--white); font-size: .95rem; }

.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}
.social-links a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.contact-form-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.8); margin-bottom: .4rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 8px;
  color: var(--white);
  font-size: .9rem;
  transition: var(--transition);
  direction: rtl;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,.1);
}
.contact-form select option { background: var(--dark); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060f18;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.footer-brand .logo-main { color: var(--white); font-size: .95rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,.4); font-size: .7rem; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.35); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.4); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* ============================================================
   BACK TO TOP & TOAST
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 46px; height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--success);
  color: var(--white);
  padding: .85rem 1.5rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 2.5rem; }
  .calculator-wrap { grid-template-columns: 260px 1fr; }
}

@media (max-width: 768px) {
  .section-padding { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }

  .navbar-inner { padding: .25rem 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border); z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.5rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 280px; display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .calculator-wrap { grid-template-columns: 1fr; }
  .service-type-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .top-bar-inner { flex-wrap: wrap; gap: .5rem; font-size: .76rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .value-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .service-type-grid { grid-template-columns: repeat(2, 1fr); }
  .result-distribution { grid-template-columns: 1fr; }
}
