:root {
  /* Brand palette — مستوحى من طيف للمحامين */
  --brand-900: #0A0F4D;
  --brand-800: #0F1A8C;
  --brand-700: #1928D6;
  --brand-600: #2A3DFF;
  --brand-500: #4A5BFF;
  --brand-400: #7A87FF;
  --brand-300: #A6AEFF;
  --brand-200: #CBD0FF;
  --brand-100: #E6E9FF;

  /* Aliases عشان أحافظ على نفس أسماء المتغيرات في HTML */
  --gold: var(--brand-600);
  --gold-dark: var(--brand-700);
  --gold-light: var(--brand-400);
  --black: #0A0F4D;
  --charcoal: var(--brand-800);
  --cream: #ffffff;
  --warm-gray: #F5F7FF;
  --text-muted: #5A6075;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background: var(--cream);
  color: var(--brand-900);
  font-feature-settings: "kern", "liga", "calt";
}

.font-display {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Brand accent line */
.gold-line {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  margin: 0 12px;
  vertical-align: middle;
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--brand-700);
}

.gold-divider::before,
.gold-divider::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
}

/* Hero — gradient أزرق ملكي مع توهج */
.hero-pattern {
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(122, 135, 255, 0.55), transparent 60%),
    radial-gradient(800px 400px at 15% 80%, rgba(74, 91, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #0F1A8C 0%, #1928D6 55%, #2A3DFF 100%);
}

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

/* Buttons */
.btn-gold {
  background: white;
  color: var(--brand-700);
  padding: 16px 36px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 60px -10px rgba(42, 61, 255, 0.45);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px -10px rgba(42, 61, 255, 0.65);
  background: var(--brand-100);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 15px 36px;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: white;
  color: var(--brand-700);
  border-color: white;
}

/* Service cards */
.service-card {
  background: white;
  border: 1px solid var(--brand-100);
  padding: 40px 32px;
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--brand-600), var(--brand-400));
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px -20px rgba(42, 61, 255, 0.25);
  border-color: var(--brand-300);
}

.service-card:hover::before {
  height: 100%;
}

.service-number {
  font-family: 'Tajawal', sans-serif;
  font-size: 56px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  font-weight: 900;
  opacity: 0.6;
}

/* Stats counter */
.stat-number {
  font-family: 'Tajawal', sans-serif;
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, white, var(--brand-200));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Testimonial */
.testimonial-card {
  background: white;
  padding: 48px 40px;
  border-radius: 12px;
  position: relative;
  border-top: 3px solid var(--brand-600);
  box-shadow: 0 4px 20px rgba(15, 26, 140, 0.04);
}

.quote-mark {
  position: absolute;
  top: -20px;
  right: 32px;
  font-size: 96px;
  color: var(--brand-500);
  font-family: 'Tajawal', sans-serif;
  line-height: 1;
  font-weight: 900;
  opacity: 0.6;
}

/* Navbar */
.navbar-scrolled {
  background: rgba(15, 26, 140, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Underline animation for nav links */
.nav-link {
  position: relative;
  padding: 8px 0;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: white;
}

/* Section heading */
.section-heading {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--brand-900);
}

.section-eyebrow {
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 50;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7); }
}

/* Process step */
.process-step {
  position: relative;
  padding-right: 60px;
}

.process-step::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Tajawal', sans-serif;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(42, 61, 255, 0.35);
}

/* Subtle shine animation on hover */
@keyframes shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shine-text {
  background: linear-gradient(90deg, white 0%, var(--brand-200) 50%, white 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.75);
}

.footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease;
  display: block;
  padding: 6px 0;
}

.footer a:hover {
  color: white;
}
