/* ============================================
   AL GHAZALA KEY — BRAND DESIGN SYSTEM
   Fonts: Noto Sans Arabic + Bebas Neue + Barlow Condensed
   Colors: #ECD636 (gold) / #000 / #fff
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+Arabic:wght@300;400;500;600;700;900&family=Barlow+Condensed:wght@400;600;700;900&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --gold: #ECD636;
  --gold-dark: #c9b820;
  --gold-glow: rgba(236, 214, 54, 0.35);
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --white: #ffffff;
  --gray-soft: #f5f5f0;
  --gray-text: #888;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 30px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 40px rgba(236,214,54,0.25);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Noto Sans Arabic', 'Barlow Condensed', system-ui, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 400;
}

/* Arabic pages - الأولوية الأعلى */
html[lang="ar"] body,
body[dir="rtl"] {
  font-family: 'Noto Sans Arabic', system-ui, sans-serif;
}

/* English pages */
html[lang="en"] body {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: var(--gold); color: var(--black); }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── TYPOGRAPHY ── */
body {
  font-family: 'Tajawal', 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
}

/* Arabic pages */
html[lang="ar"] body,
body[dir="rtl"] {
  font-family: 'Tajawal', system-ui, sans-serif;
}

/* English pages */
html[lang="en"] body {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
}

/* كل العناوين العربية (الأهم) */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .hero__title,
html[lang="ar"] .section-title,
html[lang="ar"] .page-hero__title,
html[lang="ar"] .service-detail__title,
html[lang="ar"] .service-card__title,
html[lang="ar"] .why__tagline {
  font-family: 'Tajawal', system-ui, sans-serif;
  font-weight: 900;           /* Black - أقوى وزن */
  letter-spacing: 0;
}

/* Hero Title */
.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

html[lang="ar"] .hero__title {
  font-weight: 900;
}

/* Page Hero Title (صفحة الخدمات) */
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

html[lang="ar"] .page-hero__title {
  font-weight: 900;
}

/* Service Detail Title */
.service-detail__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

html[lang="ar"] .service-detail__title {
  font-weight: 900;
}

/* English headings */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(236,214,54,0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo img {
  height: 48px;
  width: auto;
}

.navbar__logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  line-height: 1;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ccc;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar__link:hover, .navbar__link.active {
  color: var(--gold);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: var(--transition);
}

.navbar__link:hover::after, .navbar__link.active::after {
  left: 16px; right: 16px;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Unified button styles for navbar actions */
.lang-toggle,
.navbar__cta {
  padding: 8px 20px;  /* ← نفس الحجم */
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  min-width: 80px;     /* ← عرض موحد */
  text-align: center;
}

/* Language toggle - outlined style */
.lang-toggle {
  border: 1.5px solid rgba(236,214,54,0.6);
  color: var(--gold);
  background: transparent;
}

.lang-toggle:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* Call Us button - filled style */
.navbar__cta {
  background: var(--gold);
  color: var(--black);
  border: 1.5px solid var(--gold);
}

.navbar__cta:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-1px);
}
.navbar__cta:hover {
  background: var(--white);
  transform: translateY(-1px);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 40px 32px;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .navbar__link {
  font-size: 1.4rem;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 0;
}
.mobile-menu .navbar__link::after { display: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(236,214,54,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(236,214,54,0.05) 0%, transparent 50%),
    var(--black);
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236,214,54,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,214,54,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236,214,54,0.1);
  border: 1px solid rgba(236,214,54,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  width: fit-content;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.0;
  margin-bottom: 20px;
}

.hero__title .accent { color: var(--gold); display: block; }

.hero__desc {
  font-size: 1.1rem;
  color: #aaa;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero__stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero__img-border {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), transparent 50%, var(--gold-dark));
  z-index: 0;
}

.hero__img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black-3);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* placeholder / image wrapper */
.hero__img-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero__img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero__img-placeholder svg { opacity: 0.5; }
.hero__img-placeholder p { font-size: 0.9rem; color: #555; }

.hero__floating-card {
  position: absolute;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(236,214,54,0.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}

.hero__floating-card--1 { bottom: -20px; left: -20px; animation-delay: 0s; }
.hero__floating-card--2 { top: -20px; right: -20px; animation-delay: 1.5s; }

.fc-icon {
  width: 40px; height: 40px;
  background: rgba(236,214,54,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.fc-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
}
.fc-text span {
  font-size: 0.75rem;
  color: #888;
}

/* ── SERVICES SECTION ── */
.services { background: var(--black-2); }

.services__header { text-align: center; margin-bottom: 60px; }

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

.service-card {
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: rgba(236,214,54,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--shadow-gold);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: rgba(236,214,54,0.08);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}

.service-card__icon {
  width: 56px; height: 56px;
  background: rgba(236,214,54,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--gold);
  color: var(--black);
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.service-card__desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.service-card__link:hover { gap: 10px; }

/* ── WHY US ── */
.why { background: var(--black); }

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why__features { display: flex; flex-direction: column; gap: 24px; }

.why__feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--black-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.why__feature:hover {
  border-color: rgba(236,214,54,0.2);
}

.why__feature-icon {
  width: 48px; height: 48px;
  background: rgba(236,214,54,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.why__feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why__feature-text {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.6;
}

.why__visual {
  position: relative;
}

.why__big-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 1;
  color: var(--gold);
  display: block;
}

.why__tagline {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-top: -12px;
  margin-bottom: 32px;
  line-height: 1.2;
}

/* ── CONTACT SECTION ── */
.contact { background: var(--black-2); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--black-3);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.contact__item:hover { border-color: rgba(236,214,54,0.2); }

.contact__item-icon {
  width: 48px; height: 48px;
  background: rgba(236,214,54,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact__item-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact__item-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.contact__item-value a { color: var(--white); transition: var(--transition); }
.contact__item-value a:hover { color: var(--gold); }

/* Map container */
.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(236,214,54,0.15);
  position: sticky;
  top: 90px;
}

.contact__map iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: none;
  filter: grayscale(20%) contrast(1.05);
}

/* ── FOOTER ── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 24px 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
}

.footer__brand img { height: 64px; margin-bottom: 16px; }

.footer__brand-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 24px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px; height: 40px;
  background: var(--black-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  transition: var(--transition);
}
.footer__social-link:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__links a {
  font-size: 0.9rem;
  color: #888;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer__links a:hover { color: var(--white); padding-left: 4px; }
body[dir="rtl"] .footer__links a:hover { padding-left: 0; padding-right: 4px; }

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.8rem;
  color: #555;
}

.footer__copy span { color: var(--gold); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 100px 24px 24px;
  background: var(--black);
}

.breadcrumb__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb__list {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb__list a { color: var(--gold); }
.breadcrumb__list span { color: #444; }

/* ── PAGE HERO ── */
.page-hero {
  padding: 60px 24px 80px;
  background: var(--black-2);
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 16px;
}

.page-hero__desc {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
}

/* ── ANIMATIONS ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── RTL ADJUSTMENTS ── */
body[dir="rtl"] .hero__inner { direction: rtl; }
body[dir="rtl"] .service-card__num { left: 20px; right: auto; }
body[dir="rtl"] .why__inner { direction: rtl; }
body[dir="rtl"] .contact__inner { direction: rtl; }
body[dir="rtl"] .footer__inner { direction: rtl; }
body[dir="rtl"] .footer__brand-desc { margin-right: 0; }
body[dir="rtl"] .hero__badge { margin-right: 0; }
body[dir="rtl"] .navbar__inner { flex-direction: row-reverse; }


/* ── RTL IMPROVEMENTS ── */
body[dir="rtl"] .navbar__inner {
  flex-direction: row-reverse;
}

body[dir="rtl"] .hero__inner {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] .hero__actions {
  justify-content: flex-start;
}

body[dir="rtl"] .service-card__num {
  left: 20px;
  right: auto;
}

body[dir="rtl"] .section-label {
  letter-spacing: 0.1em;
}

body[dir="rtl"] .hero__floating-card--1 {
  left: auto;
  right: -20px;
}

body[dir="rtl"] .hero__floating-card--2 {
  right: auto;
  left: -20px;
}

/* تصحيح اتجاه الأرقام والأيقونات */
body[dir="rtl"] .hero__stat-num,
body[dir="rtl"] .why__big-number {
  direction: ltr;
  display: inline-block;
}



/* ── GO TO TOP BUTTON ── */
#go-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#go-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#go-to-top:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(236,214,54,0.4);
}

/* RTL support - للصفحات العربية */
body[dir="rtl"] #go-to-top {
  right: auto;
  left: 24px;
}

/* Mobile */
@media (max-width: 768px) {
  #go-to-top {
    width: 44px;
    height: 44px;
    bottom: 16px;
  }
  body[dir="rtl"] #go-to-top {
    left: 16px;
  }
}


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__inner { grid-template-columns: 1fr; gap: 48px; }
  .why__visual { order: -1; text-align: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .navbar__nav, .navbar__actions .navbar__cta { display: none; }
  .menu-toggle { display: flex; }
  .navbar__actions { gap: 8px; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__desc, .section-desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__badge { margin-left: auto; margin-right: auto; }
  body[dir="rtl"] .hero__badge { margin-left: auto; margin-right: auto; }

  .hero__floating-card--1 { bottom: -10px; left: 10px; }
  .hero__floating-card--2 { top: -10px; right: 10px; }

  .services__grid { grid-template-columns: 1fr; }

  .contact__inner { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { padding: 90px 16px 48px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .hero__stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
}


/* ── FOOTER DEVELOPED BY ── */
.footer__developed {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
  text-align: center;
}

.footer__developed a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer__developed a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* RTL support */
body[dir="rtl"] .footer__bottom {
  flex-direction: column;
  gap: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}


/* ── WHATSAPP FLOAT BUTTON ── */
.whatsapp-float {
  position: fixed;
  bottom: 90px; /* فوق زر العودة للأعلى */
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366; /* لون واتساب الرسمي */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Pulse animation لاجتذاب الانتباه بلطف */
@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
}

/* RTL support - للصفحات العربية */
body[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 80px;
  }
  body[dir="rtl"] .whatsapp-float {
    left: 16px;
  }
}

/* Hide on very small screens if needed */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 70px;
  }
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}