*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #E6A800;
  --gold-dim:   #C8900A;
  --gold-glow:  rgba(230,168,0,0.18);
  --bg-deep:    #090909;
  --bg-dark:    #111111;
  --bg-card:    #181818;
  --bg-card-2:  #1f1f1f;
  --border:     rgba(230,168,0,0.15);
  --text-white: #ffffff;
  --text-light: #cccccc;
  --text-muted: #888888;
  --radius:     8px;
  --font-body:    'Open Sans', sans-serif;
  --font-heading: 'Raleway', sans-serif;
  --font-ui:      'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-white);
  overflow-x: hidden;
}

/* ─── TOP BAR ─── */
.top-bar {
  background: #060606;
  border-bottom: 1px solid rgba(230,168,0,0.08);
  padding: 8px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}
.top-bar a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.top-bar a:hover { color: var(--gold); }
.top-bar-left { display: flex; gap: 24px; align-items: center; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; gap: 10px; }
.top-bar-right a {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(230,168,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
  color: var(--text-muted);
  text-decoration: none;
}
.top-bar-right a:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* ─── NAV ─── */
nav {
  background: #111111;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-lang {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(230,168,0,0.4);
  padding: 7px 14px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-lang:hover { background: rgba(230,168,0,0.1); border-color: var(--gold); }
.btn-nav {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-nav:hover { background: var(--gold-dim); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(230,168,0,0.3); }

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 5%;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(230,168,0,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(230,168,0,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(230,168,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,168,0,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-inner { display: flex; align-items: center; gap: 80px; width: 100%; position: relative; z-index: 1; }
.hero-left { flex: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag::before, .hero-tag::after { content: ''; flex: 0 0 30px; height: 1px; background: var(--gold); opacity: 0.6; }
.hero-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 24px;
}
.hero-headline span { color: var(--gold); }
.hero-body { font-size: 17px; line-height: 1.75; color: var(--text-light); max-width: 480px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold); color: #000;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold-dim); box-shadow: 0 6px 28px rgba(230,168,0,0.35); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--gold);
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 2px solid rgba(230,168,0,0.45);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(230,168,0,0.08); }

/* Hero right — staggered service cards */
.hero-right { flex: 0 0 420px; display: flex; align-items: center; justify-content: center; }
.hero-cards-stack { position: relative; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.hcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hcard:hover { transform: translateX(6px); box-shadow: 0 8px 40px rgba(230,168,0,0.12); border-color: rgba(230,168,0,0.35); }
/* Use logical properties so these auto-flip in RTL */
.hcard-mid { margin-inline-start: 32px; border-inline-start: 3px solid var(--gold); }
.hcard-bot { margin-inline-start: 64px; }
.hcard-icon {
  font-size: 28px;
  width: 56px; height: 56px;
  background: rgba(230,168,0,0.08);
  border: 1px solid rgba(230,168,0,0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hcard-title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--text-white); margin-bottom: 5px; }
.hcard-sub { font-family: var(--font-ui); font-size: 12px; color: var(--text-muted); }
.hcard-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(230,168,0,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--bg-card);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border);
  padding: 40px 5%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-heading); font-weight: 900; font-size: 46px; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat-label { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 60px; background: var(--border); }

/* ─── SECTIONS ─── */
.section { padding: 100px 5%; }
.section-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  justify-content: center;
}
.section-tag::before, .section-tag::after { content: ''; flex: 0 0 40px; height: 1px; background: var(--gold); opacity: 0.5; }
.section-headline { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 4vw, 48px); text-align: center; margin-bottom: 16px; line-height: 1.2; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto 60px; line-height: 1.7; }

/* ─── ABOUT ─── */
.about-grid { display: flex; gap: 80px; align-items: center; }
.about-img {
  flex: 0 0 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.about-img-inner {
  width: 100%; height: 320px;
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-img-inner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(230,168,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,168,0,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.about-logo {
  width: 60%; max-width: 280px; height: auto;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 30px rgba(230,168,0,0.35));
}
.about-content { flex: 1; }
.about-content .section-tag { justify-content: flex-start; }
.about-content .section-tag::before { display: none; }
.about-headline { font-family: var(--font-heading); font-weight: 800; font-size: 36px; line-height: 1.25; margin-bottom: 20px; }
.about-body { color: var(--text-light); font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.about-checks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.check-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-light); }
.check-icon { width: 22px; height: 22px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-size: 12px; font-weight: 900; flex-shrink: 0; }

/* WHY US */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.25s;
}
.why-card:hover { background: var(--bg-card-2); box-shadow: 0 8px 40px rgba(230,168,0,0.12); transform: translateY(-4px); border-color: rgba(230,168,0,0.4); }
.why-icon { font-size: 36px; margin-bottom: 18px; display: block; color: var(--gold); }
.why-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.why-body { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ─── SERVICES ─── */
.services-bg { background: var(--bg-dark); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: inline-start;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { box-shadow: 0 12px 50px rgba(230,168,0,0.13); transform: translateY(-6px); border-color: rgba(230,168,0,0.3); }
.service-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(230,168,0,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
  border: 1px solid rgba(230,168,0,0.2);
  color: var(--gold);
}
.service-title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.service-body { font-size: 14px; color: var(--text-muted); line-height: 1.75; margin-bottom: 22px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  background: rgba(230,168,0,0.1);
  border: 1px solid rgba(230,168,0,0.2);
  padding: 4px 12px; border-radius: 20px;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(135deg, #1a1200 0%, #0d0d0d 40%, #120e00 100%);
  border-top: 1px solid rgba(230,168,0,0.2);
  border-bottom: 1px solid rgba(230,168,0,0.2);
  padding: 80px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-headline { font-family: var(--font-heading); font-weight: 900; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.2; margin-bottom: 12px; }
.cta-sub { color: var(--text-muted); font-size: 16px; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  transition: all 0.2s;
}
.contact-card:hover { border-color: rgba(230,168,0,0.4); background: var(--bg-card-2); }
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(230,168,0,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gold);
  flex-shrink: 0;
}
.contact-info-label { font-family: var(--font-ui); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-info-val { font-family: var(--font-ui); font-size: 14px; color: var(--text-light); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(230,168,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); }
.form-group input, .form-group textarea {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  text-align: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,168,0,0.08); }
.form-group textarea { min-height: 120px; }
.btn-submit {
  width: 100%; background: var(--gold); color: #000;
  border: none; padding: 15px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover { background: var(--gold-dim); box-shadow: 0 6px 24px rgba(230,168,0,0.3); }

/* ─── FOOTER ─── */
footer { background: #060606; border-top: 1px solid var(--border); padding: 70px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 50px; }
.footer-brand .logo { display: block; margin-bottom: 16px; }
.footer-brand .logo img { height: 36px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-heading { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--text-white); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold); }
.footer-links a::before { content: '›'; color: var(--gold); opacity: 0; transition: opacity 0.2s; }
.footer-links a:hover::before { opacity: 1; }
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 4px; }
.newsletter-form input {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
  font-family: var(--font-ui);
}
.footer-bottom a { color: var(--gold); text-decoration: none; }


/* ══════════════════════════════════════
   RTL — Arabic layout overrides
   ══════════════════════════════════════
   RULE: dir="rtl" on <html> already reverses all flex row containers
   and right-aligns block text. Only override things that need it:
   fonts, letter-spacing, physical transforms, and explicit arrows.
   Never add flex-direction: row-reverse — that double-reverses.
   ══════════════════════════════════════ */

/* 1. Font — swap every font role to Cairo in RTL mode */
[dir="rtl"] {
  --font-body:    'Cairo', sans-serif;
  --font-heading: 'Cairo', sans-serif;
  --font-ui:      'Cairo', sans-serif;
}

/* 2. Remove letter-spacing — looks broken with Arabic script */
[dir="rtl"] .hero-tag,
[dir="rtl"] .section-tag,
[dir="rtl"] .stat-label,
[dir="rtl"] .footer-heading,
[dir="rtl"] .nav-links a,
[dir="rtl"] .contact-info-label,
[dir="rtl"] .tag { letter-spacing: 0; text-transform: none; }

/* 3. Physical transform — must be manually flipped (not RTL-aware) */
[dir="rtl"] .hcard:hover { transform: translateX(-6px); }

/* 4. Service card bottom accent — sweep from right in RTL */
[dir="rtl"] .service-card::after { transform-origin: right; }

/* 5. Footer link arrow — point left in RTL */
[dir="rtl"] .footer-links a::before { content: '‹'; }

/* 6. About section tag — show line on the correct side */
[dir="rtl"] .about-content .section-tag::before { display: block; }
[dir="rtl"] .about-content .section-tag::after  { display: none; }
