/* ═══════════════════════════════════════════
   B2B Engineering Works — Shared Stylesheet
   Bold Industrial Dark Theme
═══════════════════════════════════════════ */

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

:root {
  --orange: #E07218;
  --orange-dark: #B85A10;
  --orange-light: #F5901A;
  --orange-glow: rgba(224,114,24,0.15);
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #181818;
  --dark3: #202020;
  --gray: #888;
  --white: #ffffff;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

html[lang="ar"] body { font-family: var(--font-arabic); }

/* ─── PRECONNECT HINT (inline in HTML) ─── */

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%;
  height: var(--nav-h);
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s;
}
nav.scrolled { background: rgba(10,10,10,0.99); border-bottom-color: rgba(224,114,24,0.2); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-box {
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  line-height: 1;
}
.nav-logo-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
}
html[lang="ar"] .nav-logo-sub { letter-spacing: 0.02em; font-family: var(--font-arabic); }

.nav-links { display: flex; gap: 0.25rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  transition: color .2s;
  position: relative;
}
html[lang="ar"] .nav-links a { letter-spacing: 0; font-size: 0.85rem; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0.75rem; right: 0.75rem;
  height: 2px; background: var(--orange);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border: 2px solid var(--orange) !important;
  transition: all .2s !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; border-color: var(--orange-dark) !important; }
.nav-cta.active::after { display: none; }

.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 0.38rem 0.8rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all .2s;
  font-family: var(--font-body);
}
.lang-btn:hover { border-color: var(--orange); color: var(--orange); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; cursor: pointer; background: none; border: none; color: var(--white); font-size: 1.5rem; padding: 0.25rem; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,10,0.99);
  border-bottom: 1px solid rgba(224,114,24,0.2);
  z-index: 199;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 5%;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all .2s;
}
html[lang="ar"] .mobile-nav a { font-family: var(--font-arabic); letter-spacing: 0; }
.mobile-nav a:hover { color: var(--orange); padding-left: calc(5% + 6px); }
html[dir="rtl"] .mobile-nav a:hover { padding-left: 5%; padding-right: calc(5% + 6px); }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--orange); color: var(--white);
  padding: 0.85rem 2rem;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--orange); display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all .2s;
}
html[lang="ar"] .btn-primary { font-family: var(--font-arabic); letter-spacing: 0; }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--white);
  padding: 0.85rem 2rem;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 2px solid rgba(255,255,255,0.3); display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all .2s;
}
html[lang="ar"] .btn-ghost { font-family: var(--font-arabic); letter-spacing: 0; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ─── SECTION HELPERS ─── */
section { padding: 90px 5%; }

.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.75rem;
}
html[lang="ar"] .section-tag { letter-spacing: 0.05em; font-size: 0.78rem; }
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--orange); }
html[dir="rtl"] .section-tag::before { order: 1; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.01em;
}
html[lang="ar"] .section-title {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: 0; line-height: 1.1;
}
.section-title .accent { color: var(--orange); }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--dark2);
  border-top: 3px solid var(--orange);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--orange);
  transition: width .4s ease;
}
.stat-item:hover::before { width: 60%; }
.stat-icon {
  font-size: 1.6rem; margin-bottom: 0.5rem; display: block;
  filter: drop-shadow(0 0 8px rgba(224,114,24,0.4));
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900; color: var(--orange); line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45); margin-top: 0.3rem; display: block;
}
html[lang="ar"] .stat-label { letter-spacing: 0; font-size: 0.75rem; }

/* ─── FOOTER ─── */
.footer-stripe {
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0, var(--orange) 14px, #000 14px, #000 28px);
}

footer {
  background: var(--dark);
  padding: 3.5rem 5% 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-brand .footer-logo-box {
  background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem;
  padding: 5px 12px; display: inline-block; margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.82rem; color: rgba(255,255,255,0.38); line-height: 1.75; max-width: 280px;
}
.footer-socials { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.footer-social-btn {
  width: 36px; height: 36px;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); text-decoration: none; transition: all .2s;
}
.footer-social-btn:hover { background: rgba(224,114,24,0.15); border-color: rgba(224,114,24,0.4); color: var(--orange); }

.footer-col-title {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.22em; color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
html[lang="ar"] .footer-col-title { letter-spacing: 0.04em; font-family: var(--font-arabic); font-size: 0.75rem; }

.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.42);
  text-decoration: none; transition: color .2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.footer-links a::before { content: '›'; color: var(--orange); font-size: 1rem; line-height: 1; }
html[dir="rtl"] .footer-links a::before { content: '‹'; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.2rem 5%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.74rem; color: rgba(255,255,255,0.22); }
.footer-bottom a { color: var(--orange); text-decoration: none; }

/* ─── WHATSAPP BTN ─── */
.wa-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all .3s;
  animation: waPulse 2.5s infinite;
}
html[lang="ar"] .wa-btn { right: auto; left: 28px; }
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.wa-btn svg { width: 28px; height: 28px; fill: white; }
@keyframes waPulse {
  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), 0 0 0 10px rgba(37,211,102,0.08); }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media(max-width:980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  footer { grid-template-columns: 1fr 1fr; }
  footer .footer-brand { grid-column: 1 / -1; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media(max-width:600px) {
  section { padding: 70px 4%; }
  footer { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
}

/* ─── RTL FIXES ─── */
html[dir="rtl"] .footer-links a::before { order: 1; }
