/* ============================================================
   Ahmed Samir Law Firm - Main Stylesheet
   Black & Gold Premium Theme | RTL/LTR Support
   ============================================================ */

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-rich: #c59b27;
  --gold-dark: #916c16;
  --gold-glow: rgba(212, 175, 55, 0.22);
  --gold-glow-soft: rgba(212, 175, 55, 0.10);
  --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #916c16 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #f3e5ab 40%, #d4af37 100%);
  
  --black: #070707;
  --black-2: #0e0e0e;
  --black-3: #141414;
  --black-4: #1c1c1c;
  --black-5: #252525;
  --card-bg: rgba(18, 18, 18, 0.75);
  
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.92);
  --white-70: rgba(255,255,255,0.72);
  --white-50: rgba(255,255,255,0.50);
  --white-30: rgba(255,255,255,0.30);
  --white-20: rgba(255,255,255,0.18);
  --white-10: rgba(255,255,255,0.08);
  --white-05: rgba(255,255,255,0.04);
  
  --border: rgba(212, 175, 55, 0.18);
  --border-hover: rgba(212, 175, 55, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --shadow-gold: 0 10px 35px rgba(212, 175, 55, 0.15);
  --shadow-gold-lg: 0 18px 50px rgba(212, 175, 55, 0.22);
  --shadow-deep: 0 24px 70px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.45);
  
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  --header-height: 84px;
  --header-height-scrolled: 72px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--black);
  color: var(--white);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body[lang="ar"] { font-family: var(--font-ar); }
body[lang="en"] { font-family: var(--font-en); }

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

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
body[lang="ar"] h1, body[lang="ar"] h2, body[lang="ar"] h3 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}
body[lang="en"] h1, body[lang="en"] h2, body[lang="en"] h3 {
  font-family: var(--font-display);
}
.text-gold { color: var(--gold); }
.text-muted { color: var(--white-50); }
.text-center { text-align: center; }

/* ─── Layout & Spacing ──────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: 110px 0;
  position: relative;
}
.section-sm { padding: 70px 0; position: relative; }
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
  position: relative;
}
.section-header p {
  color: var(--white-70);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}
.gold-line {
  width: 70px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 18px auto 20px;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ─── Header & Navigation (Ultra-Luxury Redesign) ───────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(7, 7, 7, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(212, 175, 55, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Logo Presentation */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #070707;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
  transition: var(--transition);
}
.logo:hover .logo-icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.2px;
}
.logo-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.9;
}

/* Nav Menu Items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 8px;
  border-radius: var(--radius-full);
}
.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--white-70);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav-link span { position: relative; z-index: 1; }
.nav-link:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}
.nav-link.active {
  color: #070707;
  background: var(--gold-gradient);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Header Quick CTA Button */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #070707;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.header-cta-btn:hover {
  transform: translateY(-2px);
  background: var(--gold-gradient-hover);
  color: #070707;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}
.header-cta-btn i { font-size: 0.9rem; }

/* Language Switch Button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--white-90);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.5px;
}
.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-glow);
  transform: translateY(-1px);
}
.lang-btn .flag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-toggle:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
}
.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); background: var(--gold); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); background: var(--gold); }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--white-50);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.8;
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--white-50);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--white-50);
  font-size: 0.88rem;
}
.footer-contact-item i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--white-50);
  font-size: 0.82rem;
}

/* ─── Buttons (Ultra-Luxury Gold & Black) ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  font-size: 0.96rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: 0.6s ease;
}
.btn:hover::before {
  left: 100%;
}
.btn-gold {
  background: var(--gold-gradient);
  color: #070707;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}
.btn-gold:hover {
  background: var(--gold-gradient-hover);
  color: #070707;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.45);
}
.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.04);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-outline:hover {
  background: var(--gold-gradient);
  color: #070707;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}
.btn-ghost {
  color: var(--white-90);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  border-color: var(--border);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 0.86rem; }
.btn-lg { padding: 16px 42px; font-size: 1.05rem; }

/* ─── Cards Base ─────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold-lg);
}
.card-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--gold);
  margin-bottom: 22px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.12);
  transition: var(--transition);
}
.card:hover .card-icon {
  transform: scale(1.08) rotate(2deg);
  border-color: var(--gold);
  background: var(--gold-gradient);
  color: #070707;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 700;
}
.card p {
  color: var(--white-70);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ─── Grid Layouts ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* ─── Hero Section (Sophisticated Executive Feel) ────────────── */
.hero {
  min-height: calc(100vh - 20px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 70px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 40% 35%, rgba(212,175,55,0.08) 0%, transparent 55%),
              radial-gradient(circle at 75% 65%, rgba(212,175,55,0.05) 0%, transparent 50%),
              radial-gradient(circle at 50% 90%, rgba(20,20,20,0.8) 0%, transparent 60%);
  animation: heroGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  margin-bottom: 26px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.hero-badge::before { content: '⚖️'; }
.hero-name {
  font-size: clamp(2.6rem, 5.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero-name span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}
.hero-title {
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.8px;
}
.hero-tagline {
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  color: var(--white-70);
  line-height: 1.85;
  margin-bottom: 38px;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: start; }
[dir="rtl"] .stat-item { text-align: start; }
[dir="ltr"] .stat-item { text-align: start; }
.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--white-50);
  display: block;
  margin-top: 6px;
  font-weight: 500;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-image-frame {
  position: relative;
  width: 390px;
  height: 490px;
  max-width: 100%;
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: conic-gradient(from 0deg, var(--gold), #7a5818, var(--gold-light), #2a2010, var(--gold));
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: 0;
  animation: rotateGlow 8s linear infinite;
  filter: blur(1px);
}
.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  z-index: -1;
}
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.hero-image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--black-2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.hero-image-frame .image-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--black-3), var(--black-4));
  border-radius: var(--radius-lg);
  border: 4px solid var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
  font-size: 0.9rem;
}
.hero-image-frame .image-placeholder i { font-size: 3rem; color: var(--gold); margin-bottom: 12px; }

/* ─── Floating Cards (Hero) ─────────────────────────────────── */
.float-card {
  position: absolute;
  background: rgba(17,17,17,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(10px);
  animation: float 3s ease-in-out infinite;
}
.float-card:nth-child(2) { animation-delay: -1s; }
.float-card-1 { bottom: 60px; left: -40px; }
.float-card-2 { top: 40px; right: -40px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-card-icon {
  width: 38px;
  height: 38px;
  background: var(--gold-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.float-card-text { font-size: 0.8rem; }
.float-card-text strong { display: block; color: var(--white); margin-bottom: 2px; }
.float-card-text span { color: var(--white-50); font-size: 0.72rem; }

/* ─── Services Grid (Practice Areas) ────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-gold-lg);
  background: rgba(22, 22, 22, 0.88);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card .card-icon {
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 700;
}
.service-card p {
  color: var(--white-70);
  font-size: 0.94rem;
  line-height: 1.8;
  flex: 1;
}

/* ─── About Section ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img,
.about-image-wrap .img-placeholder {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}
.about-image-wrap .img-placeholder {
  background: linear-gradient(135deg, var(--black-3), var(--black-5));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
}
.about-badge-box {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: rgba(14, 14, 14, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  text-align: center;
  box-shadow: var(--shadow-gold-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[dir="ltr"] .about-badge-box { right: auto; left: -24px; }
.about-badge-box .num {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.1;
}
.about-badge-box .lbl {
  font-size: 0.8rem;
  color: var(--white-70);
  font-weight: 600;
  margin-top: 4px;
}
.about-content .badge-ar { margin-bottom: 24px; }
.about-content h2 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  margin-bottom: 22px;
  line-height: 1.25;
}
.about-content p {
  color: var(--white-70);
  line-height: 1.95;
  margin-bottom: 24px;
  font-size: 1.02rem;
}
.credentials-list {
  margin: 30px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 8px 24px;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--white-05);
}
.credential-item:last-child { border-bottom: none; }
.credential-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.credential-text strong { display: block; font-size: 0.95rem; color: var(--white); margin-top: 2px; }
.credential-text span { font-size: 0.82rem; color: var(--gold); font-weight: 500; }

/* ─── Achievements ───────────────────────────────────────────── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 26px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.achievement-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-6px);
  background: rgba(22, 22, 22, 0.9);
}
.achievement-card .ach-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 10px rgba(212, 175, 55, 0.25));
}
.achievement-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 700;
}
.achievement-card p {
  font-size: 0.88rem;
  color: var(--white-70);
  line-height: 1.7;
}

/* ─── Testimonials ───────────────────────────────────────────── */
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}
.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.15;
  font-family: var(--font-display);
  position: absolute;
  top: 10px;
  right: 24px;
  line-height: 1;
}
[dir="ltr"] .testimonial-card::before { right: auto; left: 24px; }
.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 16px; }
.testimonial-card p { color: var(--white-70); line-height: 1.8; margin-bottom: 20px; font-size: 0.92rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-glow);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold); font-weight: 700; flex-shrink: 0;
}
.author-info strong { display: block; font-size: 0.9rem; }
.author-info span { font-size: 0.78rem; color: var(--gold); }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.faq-question .faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 0.75rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold-glow); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--white-70);
  font-size: 0.9rem;
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ─── Articles ───────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}
.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--black-5);
}
.article-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--black-4), var(--black-5));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2.5rem;
}
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gold-glow);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.article-body h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 10px; }
.article-body p { color: var(--white-50); font-size: 0.85rem; line-height: 1.7; flex: 1; }
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--white-05);
}
.article-date { font-size: 0.78rem; color: var(--white-50); }
.article-read { font-size: 0.82rem; color: var(--gold); font-weight: 600; }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}
.contact-form-wrap h2 { font-size: 2rem; margin-bottom: 8px; }
.contact-form-wrap > p { color: var(--white-50); margin-bottom: 30px; }
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 8px;
}
.form-group label span { color: var(--gold); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--black-4);
}
.form-control::placeholder { color: var(--white-30, rgba(255,255,255,0.3)); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control option { background: var(--black-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.form-msg.success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #34d399; display: block; }
.form-msg.error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #f87171; display: block; }

.contact-info { }
.contact-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.contact-card h3 { font-size: 1rem; color: var(--gold); margin-bottom: 16px; }
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-detail-item:last-child { margin-bottom: 0; }
.contact-detail-item .ci-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gold-glow);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-detail-item .ci-text strong { display: block; font-size: 0.82rem; color: var(--white-50); margin-bottom: 3px; }
.contact-detail-item .ci-text a, .contact-detail-item .ci-text span { font-size: 0.92rem; color: var(--white); }
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}
.btn-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  color: white;
}
.btn-call {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}
.btn-call:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  color: white;
}

/* ─── Article Single ─────────────────────────────────────────── */
.article-single { max-width: 820px; margin: 0 auto; }
.article-single-header { margin-bottom: 40px; }
.article-single-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; color: var(--white-50); font-size: 0.85rem; }
.article-meta .meta-item { display: flex; align-items: center; gap: 6px; }
.article-content {
  color: var(--white-70);
  line-height: 1.95;
  font-size: 1rem;
}
.article-content h1, .article-content h2, .article-content h3 {
  color: var(--white);
  margin: 30px 0 14px;
}
.article-content h2 { font-size: 1.4rem; color: var(--gold); }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-right: 24px; margin-bottom: 18px; }
[dir="ltr"] .article-content ul, [dir="ltr"] .article-content ol { padding-right: 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-right: 3px solid var(--gold);
  padding: 14px 20px;
  background: var(--black-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--white-70);
}
[dir="ltr"] .article-content blockquote { border-right: none; border-left: 3px solid var(--gold); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

/* ─── Page Hero (Inner Pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--black-2) 0%, var(--black-3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; position: relative; }
.page-hero p { color: var(--white-70); max-width: 550px; margin: 0 auto; position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--white-50);
}
.breadcrumb a { color: var(--gold); }

/* ─── Fixed Action Buttons ───────────────────────────────────── */
.fixed-cta {
  position: fixed;
  bottom: 30px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[dir="rtl"] .fixed-cta { left: 24px; }
[dir="ltr"] .fixed-cta { right: 24px; }
.fixed-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: relative;
}
.fixed-btn:hover { transform: scale(1.1); }
.fixed-btn-wa { background: #25d366; color: white; }
.fixed-btn-call { background: var(--gold); color: var(--black); }
.fixed-btn-scroll {
  background: var(--black-3);
  border: 1px solid var(--border);
  color: var(--gold);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.fixed-btn-scroll.visible { opacity: 1; pointer-events: auto; }
.fixed-btn .tooltip {
  position: absolute;
  white-space: nowrap;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
[dir="rtl"] .fixed-btn .tooltip { right: calc(100% + 10px); }
[dir="ltr"] .fixed-btn .tooltip { left: calc(100% + 10px); }
.fixed-btn:hover .tooltip { opacity: 1; }

/* ─── Divider ────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── Section BG Variations ──────────────────────────────────── */
.bg-dark-2 { background: var(--black-2); }
.bg-dark-3 { background: var(--black-3); }

/* ─── Alert / Notice ─────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--white-50);
}
.empty-state i { font-size: 3rem; color: var(--gold); opacity: 0.4; margin-bottom: 16px; }
.empty-state p { font-size: 1rem; }

/* ─── Loading ────────────────────────────────────────────────── */
.loading-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--white-20);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive (State-of-the-art Mobile & Tablet Experience) ─ */
@media (max-width: 1140px) {
  .nav-menu { gap: 2px; padding: 4px 6px; }
  .nav-link { padding: 7px 12px; font-size: 0.86rem; }
  .header-cta-btn { padding: 8px 16px; font-size: 0.82rem; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-image-wrap { max-width: 520px; margin: 0 auto; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: flex; order: -1; margin-bottom: 24px; }
  .hero-image-frame { width: 320px; height: 410px; }
  .float-card-1 { left: -15px; bottom: 30px; }
  .float-card-2 { right: -15px; top: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  
  /* Switch to mobile hamburger nav below 1024px to prevent link crowding */
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 24px 20px 30px;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    gap: 8px;
    z-index: 999;
  }
  .nav-menu.open { display: flex; animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-menu .nav-link {
    width: 100%;
    padding: 13px 20px;
    font-size: 1.02rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
  }
  .nav-menu .nav-link.active {
    background: var(--gold-gradient);
    color: #070707;
  }
  .mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-sm { padding: 50px 0; }
  .section-header { margin-bottom: 48px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .stat-item { min-width: 120px; text-align: center; }
  .stat-number { font-size: 1.9rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .header-cta-btn { display: none; } /* Hide small header button on mobile since hero has it */
  .header-actions { gap: 8px; }
  .lang-btn .lang-text { display: none; } /* Show only flag badge on mobile */
  .lang-btn { padding: 6px 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-image-frame { width: 280px; height: 360px; }
  .float-card { display: none; } /* Keep photo clear on very small screens */
  .services-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .logo-text span { display: none; }
  .about-badge-box { padding: 14px 18px; bottom: -15px; right: -10px; }
  [dir="ltr"] .about-badge-box { left: -10px; right: auto; }
  .about-badge-box .num { font-size: 1.8rem; }
}

/* ─── Print ──────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .fixed-cta { display: none; }
  body { background: white; color: black; }
}
