/* ==========================================================================
   Trust Fabrication — Premium Corporate Website
   Brand Colors extracted from company logo
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --primary: #A49D29;
  --primary-dark: #8A8422;
  --primary-light: #B5A96E;
  --primary-rgb: 164, 157, 41;
  --secondary: #2A2A22;
  --secondary-dark: #1A1A15;
  --accent: #C4B85A;
  --gold: #D4C878;
  --text: #2C2C28;
  --text-muted: #6B6B63;
  --light: #F4F5F2;
  --white: #FFFFFF;
  --surface: #FAFAF8;
  --border: rgba(42, 42, 34, 0.1);
  --dark-overlay: rgba(26, 26, 21, 0.92);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --site-header-height: 175px;
  --section-gap: 120px;

  /* Bootstrap theme overrides */
  --bs-primary: #A49D29;
  --bs-primary-rgb: 164, 157, 41;
  --bs-link-color: #8A8422;
  --bs-link-hover-color: #A49D29;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--secondary);
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.section-padding { padding: var(--section-gap) 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-left: 0;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--primary);
  position: static;
  transform: none;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.about-section-title .about-title-line2 {
  display: block;
  margin-top: 0.15em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.05rem;
  text-align: justify;
  text-wrap: pretty;
}

.text-accent { color: var(--primary); }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary { position: relative; z-index: 1; }

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35);
}

/* Glass Card */
.glass-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner { text-align: center; }

.preloader-logo {
  width: 120px;
  margin-bottom: 24px;
  animation: float 2s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  animation: loadBar 1.5s ease forwards;
}

.preloader-text {
  color: var(--primary-light);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

@keyframes loadBar { to { width: 100%; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* Header Stack */
.header-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Top Bar */
.topbar {
  background: linear-gradient(90deg, var(--secondary-dark), var(--secondary));
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.3);
  font-size: 0.78rem;
}

.topbar a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--primary-light); }

.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.topbar-social a i {
  color: inherit;
  font-size: 0.9rem;
}

.topbar-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.lang-switcher {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lang-btn.lang-ar {
  font-family: 'Cairo', sans-serif;
}

/* Brand Bar */
.brand-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: padding 0.35s ease, box-shadow 0.35s ease;
}

#brandBar .brand-bar-inner.container,
#brandBar .container.brand-bar-inner {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: clamp(16px, 4vw, 12vw) !important;
  padding-right: clamp(16px, 3vw, 10vw) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(12px, 2vw, 28px) !important;
  flex-wrap: nowrap !important;
}

#brandBar .brand-block {
  display: flex !important;
  align-items: center !important;
  gap: clamp(12px, 1.5vw, 22px) !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(58%, 820px) !important;
  margin: 0 !important;
  text-decoration: none;
}

#brandBar .brand-logo {
  height: clamp(96px, 12vw, 165px) !important;
  width: auto !important;
  flex-shrink: 0 !important;
  transition: height 0.35s ease;
}

#brandBar .brand-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  line-height: 1.2;
  gap: 2px;
  min-width: 0 !important;
  max-width: 100% !important;
}

#brandBar .brand-name-main {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 2.65rem) !important;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.3px;
  line-height: 1.1;
  display: block !important;
  width: 100%;
  text-transform: none;
}

#brandBar .brand-name-sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.35vw, 1.35rem) !important;
  font-weight: 500;
  color: var(--text-muted);
  display: block !important;
  width: 100%;
  max-width: 100%;
  line-height: 1.3;
  white-space: normal;
}

#brandBar .brand-name-ar {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(0.78rem, 0.95vw, 1.05rem) !important;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 2px;
  display: block !important;
  width: max-content;
  align-self: flex-start;
  writing-mode: horizontal-tb;
  direction: rtl;
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}

/* Nav inside brand bar — always pinned to the end, never overlaps brand */
#brandBar .brand-nav {
  flex: 0 0 auto !important;
  min-width: 0;
  max-width: none;
  padding: 0 !important;
  margin: 0 !important;
  margin-inline-start: auto !important;
  justify-content: flex-end !important;
}

#brandBar .brand-nav .navbar-nav {
  gap: 0;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#brandBar .brand-nav .nav-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: clamp(0.92rem, 0.95vw, 1.2rem) !important;
  padding: 8px clamp(6px, 0.55vw, 14px) !important;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: none;
  position: relative;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
  transform-origin: center bottom;
}

.brand-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
  box-shadow: 0 1px 4px rgba(var(--primary-rgb), 0.45);
}

.brand-nav .nav-link:hover,
.brand-nav .nav-link.active {
  color: var(--primary-dark);
  transform: scale(1.08);
}

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

.brand-nav .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
  margin-left: auto;
}

.brand-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 44, 36, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-stack.is-compact .topbar {
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  border: none;
}

.header-stack.is-compact .brand-bar {
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-stack.is-compact #brandBar .brand-logo {
  height: 110px !important;
}

.header-stack.is-compact #brandBar .brand-name-main {
  font-size: 1.6rem !important;
}

.header-stack.is-compact #brandBar .brand-name-sub {
  font-size: 1rem !important;
}

.header-stack.is-compact #brandBar .brand-name-ar {
  font-size: 0.92rem !important;
}

/* Navbar */
.navbar {
  padding: 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-logo { height: 88px; width: auto; transition: var(--transition); }
.navbar.scrolled .nav-logo { height: 76px; }

@media (max-width: 1199px) {
  #brandBar .brand-logo { height: 110px !important; }
  #brandBar .brand-bar-inner {
    padding-left: 4vw !important;
    padding-right: 4vw !important;
  }
  .topbar-left a:nth-child(3) { display: none; }
}

@media (max-width: 991px) {
  #brandBar .brand-text { display: none; }
  #brandBar .brand-block { max-width: calc(100% - 56px) !important; }
  #brandBar .brand-logo { height: 100px !important; }
  .header-stack.is-compact #brandBar .brand-logo { height: 80px !important; }
  #brandBar .brand-bar-inner {
    padding-left: 4vw !important;
    padding-right: 4vw !important;
  }
}

@media (max-width: 575px) {
  .topbar-left a:nth-child(2) { display: none; }
  .lang-btn { padding: 5px 10px; font-size: 0.7rem; }
}

/*
  Mid / laptop / zoomed windows: hamburger menu so brand name
  and Home never overlap. Full horizontal nav only on wide desktops.
*/
@media (max-width: 1679.98px) {
  .brand-bar {
    position: relative;
  }

  #brandBar .brand-bar-inner {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px !important;
  }

  #brandBar .brand-block {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 56px) !important;
  }

  #brandBar .brand-text {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #brandBar .brand-name-main {
    font-size: clamp(1.25rem, 2.6vw, 2rem) !important;
  }

  #brandBar .brand-name-sub {
    white-space: normal !important;
    max-width: 100% !important;
    font-size: clamp(0.82rem, 1.5vw, 1.1rem) !important;
  }

  #brandBar .brand-name-ar {
    white-space: nowrap !important;
    width: max-content !important;
    max-width: none !important;
    font-size: clamp(0.72rem, 1.15vw, 0.95rem) !important;
  }

  #brandBar .brand-nav {
    width: auto !important;
    flex: 0 0 auto !important;
    margin-inline-start: auto !important;
    position: static;
  }

  #brandBar .brand-nav .navbar-toggler {
    display: block !important;
    margin-left: 0;
  }

  #brandBar .brand-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 4vw;
    right: 4vw;
    z-index: 1050;
    background: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  #brandBar .brand-nav .navbar-collapse:not(.show) {
    display: none !important;
  }

  #brandBar .brand-nav .navbar-collapse.show {
    display: block !important;
  }

  #brandBar .brand-nav .navbar-nav {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0;
  }

  #brandBar .brand-nav .nav-link {
    font-size: 1rem !important;
    padding: 10px 12px !important;
    transform: none !important;
  }

  .hero-company-name .hero-name-line,
  .hero-company-ar {
    white-space: normal;
  }

  .hero-company-ar {
    width: 100%;
    max-width: 100%;
  }

  .hero-content .container {
    max-width: 100%;
  }
}

/* Wide desktop: brand left, full menu pinned right, no overlap */
@media (min-width: 1680px) {
  #brandBar .brand-block {
    max-width: min(55%, 820px) !important;
  }

  #brandBar .brand-nav {
    flex: 0 0 auto !important;
    margin-inline-start: auto !important;
  }

  #brandBar .brand-nav .navbar-toggler {
    display: none !important;
  }

  #brandBar .brand-nav .navbar-collapse {
    display: flex !important;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
  }

  #brandBar .brand-nav .navbar-nav {
    flex-direction: row !important;
    align-items: center !important;
  }

  #brandBar .brand-name-sub {
    white-space: normal;
  }

  #brandBar .brand-name-ar {
    white-space: nowrap !important;
    width: max-content !important;
  }
}

@media (min-width: 1680px) and (max-width: 1919.98px) {
  #brandBar .brand-bar-inner {
    padding-left: 2vw !important;
    padding-right: 2vw !important;
    gap: 12px !important;
  }

  #brandBar .brand-nav .nav-link {
    font-size: 0.95rem !important;
    padding: 6px 7px !important;
  }

  #brandBar .brand-block {
    max-width: min(52%, 760px) !important;
  }

  #brandBar .brand-name-ar {
    font-size: 0.88rem !important;
  }
}

.navbar:not(.brand-nav) .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px !important;
  position: relative;
}

.navbar:not(.brand-nav) .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar:not(.brand-nav) .nav-link:hover::after,
.navbar:not(.brand-nav) .nav-link.active::after { width: 60%; }

.navbar:not(.brand-nav) .nav-link:hover,
.navbar:not(.brand-nav) .nav-link.active { color: var(--white); }

.btn-nav {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  background: transparent;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(44, 44, 36, 0.98);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
  }
}

/* Hero Section — Engineering Split Layout */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--site-header-height));
  max-height: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--secondary-dark);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--site-header-height) + 40px) 0 60px;
  background: var(--secondary-dark);
  border-right: 1px solid rgba(var(--primary-rgb), 0.2);
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content .container {
  position: relative;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-visual {
  position: relative;
  min-height: 400px;
  background: var(--secondary-dark);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slider-track.no-transition {
  transition: none !important;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide img,
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transform: none;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 21, 0.08) 0%, rgba(26, 26, 21, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-metrics-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(var(--primary-rgb), 0.3);
  z-index: 2;
}

.hero-metric {
  background: rgba(26, 26, 21, 0.88);
  backdrop-filter: blur(12px);
  padding: 24px 20px 24px 28px;
  text-align: left;
}

.hero-metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-metric span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-brand {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
}

.hero-company-name {
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  width: 100%;
}

.hero-company-name .hero-name-line {
  display: block;
  white-space: nowrap;
}

.hero-company-ar {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--primary-light);
  margin: 0 0 12px;
  font-weight: 600;
  display: block;
  width: max-content;
  max-width: 100%;
  writing-mode: horizontal-tb;
  direction: rtl;
  text-align: right;
  line-height: 1.5;
  white-space: nowrap;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-style: normal;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-bottom: 32px;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.75;
  text-align: left;
}

.hero-subtitle-block {
  max-width: 640px;
  margin-bottom: 28px;
  text-align: justify;
}

.hero-content .hero-subtitle-block p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
}

.hero-subtitle-block p:last-child {
  margin-bottom: 0;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.hero-cta .btn-lg {
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.hero-stats { display: none; }

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 48px;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.4);
  z-index: 3;
  animation: none;
}

@media (max-width: 991px) {
  .hero-section {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    min-height: 280px;
    max-height: 320px;
  }

  .hero-content {
    padding: 40px 0 50px;
    border-right: none;
    border-top: 3px solid var(--primary);
  }

  .hero-content .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-company-name .hero-name-line,
  .hero-company-ar {
    white-space: normal;
  }

  .hero-metrics-panel {
    position: relative;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-metric strong { font-size: 1.35rem; }
  .hero-metric { padding: 16px 12px; }
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.scroll-arrow { font-size: 1.2rem; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Engineering Layout System */
.sec-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
}

.sec-head__num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(var(--primary-rgb), 0.35);
  flex-shrink: 0;
  padding-top: 6px;
}

.sec-head--light .sec-head__num { color: rgba(var(--primary-rgb), 0.5); }

.sec-head--light .section-label { color: var(--accent); }

.sec-head--light .section-label::before { background: var(--accent); }

.sec-head--split {
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.sec-head--split .sec-head__text { max-width: 640px; }

.sec-head--split .section-desc { margin-bottom: 0; }

.eng-section { position: relative; }

.eng-section--dark {
  background: var(--secondary-dark);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(var(--primary-rgb), 0.2);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

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

@media (max-width: 1199px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .sec-head { gap: 16px; margin-bottom: 32px; }
  .sec-head__num { font-size: 1.75rem; }
  .bento-grid,
  .services-grid { grid-template-columns: 1fr; }
}

.about-section { background: var(--surface); }

.about-section .sec-head {
  margin-bottom: 40px;
}

.about-layout {
  align-items: flex-start !important;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-content p {
  margin-bottom: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: justify;
  text-wrap: pretty;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1.15rem;
}

.philosophy-tagline {
  color: #1a1a1a;
  font-weight: 700;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before,
.about-image-wrap::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary);
  z-index: 2;
  pointer-events: none;
}

.about-image-wrap::before {
  top: -12px;
  left: -12px;
  border-right: none;
  border-bottom: none;
}

.about-image-wrap::after {
  bottom: -12px;
  right: -12px;
  border-left: none;
  border-top: none;
}

.about-image {
  box-shadow: var(--shadow-md);
  object-fit: cover;
  height: 480px;
  width: 100%;
  border-radius: var(--radius);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  text-align: center;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  animation: none;
}

.badge-year {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.badge-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.about-highlight {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.about-highlight h4 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.about-highlight p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
}

.about-feature i { color: var(--primary); }

/* About CTA row — Read Full / Download / View Online */
.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
  justify-content: center;
}

.about-cta-row--start {
  justify-content: flex-start;
  margin-top: 28px;
}

.about-cta-row .btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .about-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .about-cta-row .btn-outline-primary {
    width: 100%;
  }
}

/* Highlights Section */
.highlights-section {
  background: var(--secondary-dark);
  position: relative;
}

.highlights-section::before { display: none; }

.highlight-card {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: 0;
  padding: 36px 28px;
  text-align: left;
  transition: var(--transition);
  height: 100%;
}

.highlight-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  color: var(--accent);
}

.highlight-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.highlight-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin: 0;
  text-align: left;
  text-wrap: pretty;
  max-width: 28ch;
}

/* Light sections (e.g. Careers benefits) — readable dark text */
.bg-light-section .highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.bg-light-section .highlight-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bg-light-section .highlight-card h4 {
  color: var(--secondary);
}

.bg-light-section .highlight-card p {
  color: var(--text-muted);
}

.bg-light-section .highlight-icon {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.25);
  color: var(--primary-dark);
}

/* Services Section */
.services-section { background: var(--white); }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 24px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--primary);
  transition: var(--transition);
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.25);
  background: var(--white);
}

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

.service-card-media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--secondary-dark);
  flex-shrink: 0;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.05);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin: 20px 24px 16px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.service-card h4 {
  font-size: 1.15rem;
  margin: 0 24px 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 24px;
  flex-grow: 1;
  text-align: left;
  text-wrap: pretty;
}

.service-card .service-link {
  margin: 16px 24px 0;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover { color: var(--primary-dark); gap: 10px; }

/* Industries Section */
.industries-section { background: var(--surface); }

.industry-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.industry-img {
  display: none !important;
}

.industry-content {
  padding: 32px 28px;
  position: relative;
}

.industry-content i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.industry-content h4 { font-size: 1.15rem; margin-bottom: 8px; }
.industry-content p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* Why Section */
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  transition: var(--transition);
  border-top: 2px solid transparent;
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-top-color: var(--primary);
  background: var(--white);
}

.why-number {
  display: none !important;
}

.why-card h5 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  text-align: left;
  text-wrap: pretty;
}

/* Stats Section */
.stats-section {
  padding: 72px 0;
  background: var(--secondary-dark);
  position: relative;
  border-top: 1px solid rgba(var(--primary-rgb), 0.3);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.3);
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 600;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.stat-item { position: relative; z-index: 1; }

/* Projects Section */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card--image .project-info {
  display: none !important;
}

.project-card--image .project-image {
  aspect-ratio: 4 / 3;
}

.project-card--image .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.project-image {
  display: block;
  position: relative;
  overflow: hidden;
  height: 260px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img { transform: scale(1.08); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 36, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-overlay i {
  font-size: 2rem;
  color: var(--white);
  transform: scale(0.5);
  transition: var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-overlay i { transform: scale(1); }

.project-info { padding: 24px; }

.project-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
}

.project-info h5 { font-size: 1.1rem; margin: 8px 0 4px; }
.project-info p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.portfolio-item { transition: var(--transition); }
.portfolio-item.hidden { display: none; }

/* Process Section */
.process-section {
  background: var(--secondary-dark);
  position: relative;
}

.process-step {
  text-align: left;
  position: relative;
  z-index: 1;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.process-icon {
  width: 56px;
  height: 56px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  color: var(--accent);
  box-shadow: none;
  transition: var(--transition);
}

.process-step:hover .process-icon {
  background: var(--primary);
  color: var(--white);
}

.process-step h5 {
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.process-step p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.6;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(var(--primary-rgb), 0.35);
}

@media (max-width: 991px) {
  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-timeline::before { display: none; }
}

@media (max-width: 575px) {
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
}

/* Quality Section */
.quality-image { box-shadow: var(--shadow-lg); }

.quality-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.quality-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
  border-radius: 12px;
  color: var(--primary);
  font-size: 1.2rem;
}

.quality-item h5 { font-size: 1rem; margin-bottom: 4px; }
.quality-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; text-align: justify; text-wrap: pretty; }

.quality-section > .container > .row > .col-lg-6 > p {
  text-align: justify;
  text-wrap: pretty;
}

.quality-bullet-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.quality-bullet-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: justify;
  text-wrap: pretty;
}

.quality-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.quality-invite {
  color: var(--secondary);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 0;
  text-align: justify;
  text-wrap: pretty;
}

/* Certifications */
.cert-section { background: var(--light); }

.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.cert-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--white);
}

.cert-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-align: center;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.cert-card .detail-list {
  text-align: center;
  padding-left: 0;
  list-style-position: inside;
}

/* Testimonials */
.testimonials-section {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--primary-light);
  font-size: 0.85rem;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.testimonial-swiper .swiper-pagination-bullet {
  background: var(--primary);
  opacity: 0.4;
}

.testimonial-swiper .swiper-pagination-bullet-active { opacity: 1; }

/* Clients */
.clients-section { background: var(--white); }

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 16px 24px;
  background: var(--light);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.client-logo:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

/* FAQ */
.faq-accordion .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
  background: var(--white);
  padding: 20px 24px;
  box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary-dark);
}

.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A49D29'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-accordion .accordion-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 24px 20px;
  text-align: justify;
  text-wrap: pretty;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), 0.1), transparent 50%);
}

.contact-info { position: relative; z-index: 1; }

.contact-item {
  display: block;
  margin-bottom: 28px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  color: var(--white);
  font-size: 1.1rem;
}

.contact-row h5,
.contact-item h5 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.contact-text {
  padding-left: 64px;
}

.contact-item p,
.contact-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.contact-item a:hover { color: var(--accent); }

.contact-form {
  padding: 36px;
}

.contact-form .form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--secondary);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.newsletter-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50px 0 0 50px;
  padding: 12px 20px;
}

.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 12px 20px;
}

.map-wrap iframe { filter: grayscale(30%); transition: var(--transition); }
.map-wrap:hover iframe { filter: grayscale(0%); }

/* Footer */
.site-footer {
  background: var(--secondary-dark);
  padding: 72px 0 0;
  color: rgba(255, 255, 255, 0.65);
  border-top: 3px solid var(--primary);
}

.site-footer h5 {
  color: var(--white);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-social a {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.7);
}

.footer-ar {
  color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.65);
}

.footer-logo { height: 72px; width: auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  align-items: start;
}

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

.footer-ar {
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

@media (max-width: 991px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.site-footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact i { color: var(--primary); margin-top: 4px; }

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 48px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 32px;
  font-size: 0.85rem;
}

.footer-cert {
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-cert i { color: var(--primary); }

/* Back to Top — sits above Ask Us chatbot */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 22px rgba(var(--primary-rgb), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.5);
  color: var(--white);
}

/* Responsive */
@media (max-width: 991px) {
  .section-padding { padding: 70px 0; }
  .hero-stats { gap: 24px; }
  .about-badge { right: 10px; bottom: 10px; }
  .about-image { height: 350px; }
}

@media (max-width: 767px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .hero-stat { display: flex; align-items: baseline; gap: 12px; }
  .hero-stat strong { font-size: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 575px) {
  .section-padding { padding: 50px 0; }
  .contact-form { padding: 24px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(var(--primary-rgb), 0.3);
  color: var(--secondary-dark);
}

/* ==========================================================================
   Inner Pages
   ========================================================================== */

.page-hero {
  position: relative;
  padding: calc(var(--site-header-height) + 48px) 0 100px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero-sm { padding: calc(var(--site-header-height) + 32px) 0 80px; }

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 21, 0.94), rgba(42, 42, 34, 0.88));
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  text-align: justify;
  text-wrap: pretty;
}

.page-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
}

.page-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.page-breadcrumb .breadcrumb-item a:hover { color: var(--accent); }

.page-breadcrumb .breadcrumb-item.active { color: var(--accent); }

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

.bg-light-section { background: var(--light); }

.detail-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.detail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.detail-card p {
  text-align: justify;
  text-wrap: pretty;
}

.detail-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.detail-card h3, .detail-card h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-list li:last-child { border-bottom: none; }

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.capacity-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.capacity-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
}

.capacity-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-dept {
  margin-bottom: 20px;
}

.team-dept h5 {
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-dept h5 i { color: var(--primary); }

.team-dept ul {
  margin: 0;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.machinery-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  border-top: 3px solid var(--primary);
}

.machinery-card h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
}

.machinery-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.machinery-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.machinery-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.industry-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.industry-detail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.industry-detail-card .industry-img { height: 220px; }

.industry-detail-body {
  padding: 28px;
}

.industry-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.industry-detail-head i {
  font-size: 1.35rem;
  color: var(--primary);
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  margin: 0;
}

.industry-detail-head h3 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.3;
}

.industry-detail-body > p {
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: justify;
  text-wrap: pretty;
}

.industry-key-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 8px;
  text-align: left;
}

.industries-intro {
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
  text-wrap: pretty;
  max-width: 540px;
}

.industries-main-image {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.industries-section .quality-list .quality-item p {
  text-align: justify;
  text-wrap: pretty;
}

.industries-section > .container > .row > .col-lg-6 > p {
  text-align: justify;
  text-wrap: pretty;
}

.project-table {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.project-table thead th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px;
  border: none;
  text-align: center;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  --bs-table-color-state: #fff;
}

.project-table tbody td {
  padding: 14px 16px;
  font-size: 0.9rem;
  vertical-align: middle;
  text-align: center;
  background: var(--white);
}

.project-table tbody tr:hover { background: rgba(var(--primary-rgb), 0.04); }

.scope-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.scope-item i { color: var(--primary); font-size: 1.1rem; margin-top: 2px; }

.client-list-item {
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.client-list-item:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  color: var(--primary-dark);
  padding-left: 24px;
}

.client-categories {
  align-items: stretch;
  justify-content: center;
}

.client-category {
  height: 100%;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.client-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.client-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-category-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  line-height: 1.45;
}

.client-category-list li:last-child {
  border-bottom: none;
}

.client-category-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
}

.clients-note {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

.cta-section {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
}

.contact-info-dark .contact-item {
  display: block;
  margin-bottom: 28px;
}

.contact-info-dark .contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.contact-info-dark .contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  color: var(--white);
}

.contact-info-dark .contact-row h5,
.contact-info-dark h5 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  color: var(--secondary);
}

.contact-info-dark .contact-text {
  padding-left: 64px;
}

.contact-info-dark p,
.contact-info-dark .contact-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.contact-info-dark a { color: var(--primary-dark); }
.contact-info-dark a:hover { color: var(--primary); }

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 600;
}

.newsletter-form-dark .form-control {
  border-radius: 50px 0 0 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
}

.newsletter-form-dark .btn { border-radius: 0 50px 50px 0; }

.section-preview-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.section-preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.section-preview-card p {
  color: var(--text-muted);
  flex-grow: 1;
}

.btn-view-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 16px;
}

.btn-view-page:hover { gap: 12px; color: var(--primary-dark); }

/* Careers Section */
.careers-section .about-feature {
  color: var(--text);
}

.career-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.career-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.career-card-compact {
  padding: 24px;
}

.career-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.career-card-header h4 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--secondary);
}

.career-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  white-space: nowrap;
}

.career-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.career-meta i {
  color: var(--primary);
}

.career-card p:last-of-type {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.career-card-compact p {
  margin-bottom: 0;
}

.careers-jobs-section .career-card .btn {
  margin-top: auto;
}

/* ===== Full-site Google Translate + RTL ===== */
.google-translate-host,
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-gadget,
.skiptranslate iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
}

body {
  top: 0 !important;
}

font font {
  background: none !important;
  box-shadow: none !important;
}

html[dir="rtl"] body,
body.lang-ar,
body.gtranslate-rtl {
  font-family: 'Cairo', var(--font-body), sans-serif;
}

html[dir="rtl"] .brand-bar-inner,
html[dir="rtl"] .topbar-inner,
html[dir="rtl"] .footer-top,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .sec-head,
html[dir="rtl"] .about-features,
html[dir="rtl"] .hero-cta,
html[dir="rtl"] .contact-item,
html[dir="rtl"] .quality-item,
html[dir="rtl"] .page-hero-content {
  direction: rtl;
}

html[dir="rtl"] .contact-text {
  padding-left: 0;
  padding-right: 64px;
}

html[dir="rtl"] .navbar-nav.ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .section-label {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-company-name,
html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-tagline,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .page-hero-title,
html[dir="rtl"] .brand-name-main,
html[dir="rtl"] .brand-name-sub {
  text-align: right;
}

html[dir="rtl"] .page-hero-desc,
html[dir="rtl"] .hero-subtitle-block p,
html[dir="rtl"] .about-content p,
html[dir="rtl"] .section-desc {
  text-align: justify;
}

/* Arabic only: flip hero columns (images left, text right). English layout stays unchanged. */
html[dir="rtl"] .hero-section,
body.lang-ar .hero-section,
body.gtranslate-rtl .hero-section {
  direction: ltr;
}

html[dir="rtl"] .hero-content,
body.lang-ar .hero-content,
body.gtranslate-rtl .hero-content {
  order: 2;
  border-right: none;
  border-left: 1px solid rgba(var(--primary-rgb), 0.2);
}

html[dir="rtl"] .hero-visual,
body.lang-ar .hero-visual,
body.gtranslate-rtl .hero-visual {
  order: 1;
}

html[dir="rtl"] .hero-slider,
html[dir="rtl"] .hero-slider-track,
body.lang-ar .hero-slider,
body.lang-ar .hero-slider-track,
body.gtranslate-rtl .hero-slider,
body.gtranslate-rtl .hero-slider-track {
  direction: ltr;
}

html[dir="rtl"] .hero-content .hero-company-name,
html[dir="rtl"] .hero-content .hero-tagline,
html[dir="rtl"] .hero-content .hero-subtitle {
  text-align: right;
}

html[dir="rtl"] .hero-content .hero-subtitle-block,
html[dir="rtl"] .hero-content .hero-subtitle-block p,
body.lang-ar .hero-content .hero-subtitle-block p,
body.gtranslate-rtl .hero-content .hero-subtitle-block p {
  text-align: justify;
}

html[dir="rtl"] .hero-content .container,
body.lang-ar .hero-content .container,
body.gtranslate-rtl .hero-content .container {
  direction: rtl;
  text-align: right;
  align-items: flex-end;
}

html[dir="rtl"] .hero-company-ar {
  text-align: right;
}

html[dir="rtl"] .hero-content .hero-cta,
body.lang-ar .hero-content .hero-cta,
body.gtranslate-rtl .hero-content .hero-cta {
  justify-content: flex-end;
}

@media (max-width: 991px) {
  html[dir="rtl"] .hero-visual,
  body.lang-ar .hero-visual,
  body.gtranslate-rtl .hero-visual {
    order: -1;
  }

  html[dir="rtl"] .hero-content,
  body.lang-ar .hero-content,
  body.gtranslate-rtl .hero-content {
    order: 0;
    border-left: none;
    border-top: 3px solid var(--primary);
  }
}

html[dir="rtl"] .service-card::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .bi-arrow-right::before {
  content: "\f12f";
}

/* Do not translate protected brand Arabic / logos */
.notranslate {
  /* Google Translate skip */
}

/* Trust Factory enquiry chatbot — brand olive styling */
.tf-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: var(--font-body);
}

.tf-chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tf-chat-launcher i {
  font-size: 1.25rem;
  line-height: 1;
}

.tf-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(var(--primary-rgb), 0.45);
}

.tf-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: #c45c26;
  border: 2px solid #fff;
  border-radius: 50%;
}

.tf-chat-panel {
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  display: flex;
  flex-direction: column;
  max-height: min(560px, calc(100vh - 120px));
  animation: tfChatIn 0.28s ease;
}

.tf-chat-panel[hidden] {
  display: none !important;
}

@keyframes tfChatIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tf-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  flex-shrink: 0;
}

.tf-chat-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tf-chat-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tf-chat-avatar img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.tf-chat-online {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 11px;
  height: 11px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
}

.tf-chat-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.tf-chat-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.9;
}

.tf-chat-close:hover {
  opacity: 1;
}

.tf-chat-messages {
  padding: 16px;
  background: #f7f6f0;
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tf-chat-bubble {
  max-width: 88%;
  padding: 11px 13px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tf-chat-bubble--bot {
  align-self: flex-start;
  background: #fff;
  color: var(--secondary);
  border-radius: 4px 14px 14px 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.tf-chat-bubble--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 14px 4px 14px 14px;
}

.tf-chat-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 14px 16px;
}

.tf-chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.55;
  animation: tfTyping 1s infinite ease-in-out;
}

.tf-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.tf-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes tfTyping {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.tf-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
  background: #f7f6f0;
  flex-shrink: 0;
}

.tf-chat-suggestions button {
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tf-chat-suggestions button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tf-chat-composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.tf-chat-composer input {
  flex: 1;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.tf-chat-composer input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.tf-chat-send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.tf-chat-send:hover {
  transform: translateY(-1px);
}

.tf-chat-footer {
  padding: 0 14px 14px;
  background: #fff;
  flex-shrink: 0;
}

.tf-chat-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--primary-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-chat-wa:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}

.tf-chat-wa i {
  font-size: 1.2rem;
}

html[dir="rtl"] .tf-chat {
  right: auto;
  left: 24px;
  align-items: flex-start;
}

html[dir="rtl"] .back-to-top {
  right: auto;
  left: 28px;
}

html[dir="rtl"] .tf-chat-bubble--bot {
  border-radius: 14px 4px 14px 14px;
  text-align: right;
}

html[dir="rtl"] .tf-chat-bubble--user {
  border-radius: 4px 14px 14px 14px;
  text-align: right;
}

@media (max-width: 575px) {
  .tf-chat {
    right: 16px;
    bottom: 16px;
  }

  .tf-chat-launcher span:not(.tf-chat-badge) {
    display: none;
  }

  .tf-chat-launcher {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
  }

  .back-to-top {
    bottom: 88px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
}

/* ===== Hero branding: one language at a time (load last) ===== */
body.lang-en .hero-company-ar,
html[lang="en"] .hero-company-ar {
  display: none !important;
}

body.lang-ar .hero-brand .hero-company-name,
body.lang-ar .hero-brand .hero-company-name .hero-name-line,
body.gtranslate-rtl .hero-brand .hero-company-name,
body.gtranslate-rtl .hero-brand .hero-company-name .hero-name-line,
html[lang="ar"] .hero-brand .hero-company-name,
html[lang="ar"] .hero-brand .hero-company-name .hero-name-line {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
}

body.lang-ar .hero-company-ar,
body.gtranslate-rtl .hero-company-ar,
html[lang="ar"] .hero-company-ar {
  display: block !important;
  visibility: visible !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem) !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  margin-bottom: 10px !important;
  line-height: 1.22 !important;
  letter-spacing: -0.02em;
  white-space: normal !important;
  opacity: 1 !important;
  clip: auto !important;
  height: auto !important;
  max-height: none !important;
}

body.lang-ar .hero-company-ar .hero-name-line,
body.gtranslate-rtl .hero-company-ar .hero-name-line,
html[lang="ar"] .hero-company-ar .hero-name-line {
  display: block !important;
  visibility: visible !important;
  position: static !important;
  width: 100% !important;
  color: var(--white) !important;
  white-space: nowrap;
}

body.lang-ar .hero-company-ar .hero-name-line.text-accent,
body.gtranslate-rtl .hero-company-ar .hero-name-line.text-accent,
html[lang="ar"] .hero-company-ar .hero-name-line.text-accent {
  color: var(--primary) !important;
}

