/* ═══════════════════════════════════════
   DETAILX Engineering — Global Styles
   ═══════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --color-bg-primary: #0D0D0D;
  --color-bg-secondary: #141414;
  --color-bg-card: #1A1A1A;
  --color-gold-primary: #C9A84C;
  --color-gold-light: #E8C97A;
  --color-gold-dark: #8B6914;
  --color-white: #FFFFFF;
  --color-text-primary: #F0EDE8;
  --color-text-muted: #8A8A8A;
  --color-border: rgba(201, 168, 76, 0.2);
  --color-overlay: rgba(13, 13, 13, 0.55);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', sans-serif;
  --font-arabic-display: 'IBM Plex Sans Arabic', sans-serif;
  --font-display: 'Inter', sans-serif;
  --font-numbers: 'Inter', sans-serif;
  --font-heading-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-body-ar: 'Tajawal', sans-serif;
  --font-hook: 'Space Grotesk', sans-serif;
  --font-shantell: 'Space Grotesk', sans-serif;
  --nav-height: 72px;
  --section-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  --transition: 0.3s ease;
  --grid-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='0.5' opacity='0.15'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Cpath d='M0 0 L60 0 M0 30 L60 30 M0 60 L60 60 M0 0 L0 60 M30 0 L30 60 M60 0 L60 60'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  font-size: 14.25px;
}

body {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── English typography ── */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] h4, html[lang="en"] h5, html[lang="en"] h6,
html[lang="en"] .section-title, html[lang="en"] .nav-links a,
html[lang="en"] button, html[lang="en"] .btn,
html[lang="en"] .brand-name-block, html[lang="en"] .process-step h4,
html[lang="en"] .bim-card h4, html[lang="en"] .deliver-text,
html[lang="en"] .service-card h3, html[lang="en"] .project-title,
html[lang="en"] .modal-details h2,
html[lang="en"] .sample-label span {
  font-family: var(--font-heading);
  font-weight: 700;
}
html[lang="en"] p, html[lang="en"] li,
html[lang="en"] input, html[lang="en"] textarea,
html[lang="en"] .section-subtitle, html[lang="en"] .text-muted,
html[lang="en"] .modal-details p, html[lang="en"] .process-step p,
html[lang="en"] .bim-card p {
  font-family: var(--font-body);
  font-weight: 400;
}
html[lang="en"] .hook-text {
  font-family: var(--font-hook);
  font-weight: 700;
}
html[lang="en"] .lod-badge, html[lang="en"] .process-step-num,
html[lang="en"] .deliver-row .deliver-text, html[lang="en"] .service-num-badge {
  font-family: var(--font-numbers);
}

/* ── Arabic typography ── */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .section-title, html[lang="ar"] .nav-links a,
html[lang="ar"] button, html[lang="ar"] .btn,
html[lang="ar"] .brand-name-block, html[lang="ar"] .process-step h4,
html[lang="ar"] .bim-card h4,
html[lang="ar"] .modal-details h2,
html[lang="ar"] .sample-label span {
  font-family: var(--font-heading-ar);
  font-weight: 700;
  line-height: 1.5;
}
html[lang="ar"] p, html[lang="ar"] li,
html[lang="ar"] input, html[lang="ar"] textarea,
html[lang="ar"] .section-subtitle, html[lang="ar"] .text-muted,
html[lang="ar"] .modal-details p, html[lang="ar"] .process-step p,
html[lang="ar"] .bim-card p {
  font-family: var(--font-body-ar);
  font-weight: 400;
  line-height: 1.8;
}
html[lang="ar"] .hook-text {
  font-family: var(--font-hook);
  font-weight: 700;
}
html[lang="ar"] .nav-links a, html[lang="ar"] .mobile-menu a {
  font-size: 16px;
  font-weight: 600;
}

/* Preserve Font Awesome icons in Arabic/RTL */
html body .fa-solid, html body .fa-regular, html body .fa-brands,
html body i[class*="fa-"] {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

html body .fa-brands, html body i.fa-brands {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

.fa-solid, i.fa-solid {
  font-weight: 900;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 100px 0;
  box-shadow: var(--section-shadow);
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grid-pattern);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.section > .container,
.section > .section-inner,
.section-glow-bg > .container { position: relative; z-index: 1; }

/* Mouse-reactive ambient glow for flat dark sections */
.section-glow-bg {
  position: relative;
  overflow: hidden;
}
.section-glow-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grid-pattern);
  opacity: 0.9;
}
@keyframes moveGridPattern {
  from { background-position: 0 0; }
  to { background-position: 60px 60px; }
}
.services.section-glow-bg::before,
.projects.section-glow-bg::before,
.how-we-work.section-glow-bg::before {
  animation: moveGridPattern 8s linear infinite;
  opacity: 0.85; /* Brightened the grid lines so they are clearly visible */
  filter: brightness(1.3); /* Extra pop for the golden lines */
}
.section-glow-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(550px circle at var(--mx, 50%) var(--my, 50%), rgba(201,168,76,0.10), transparent 70%);
  transition: background 0.15s ease-out;
}
.section-glow-bg > .container,
.section-glow-bg > * {
  position: relative;
  z-index: 1;
}

.section-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1;
}

.text-gold { color: var(--color-gold-primary); }
.text-muted { color: var(--color-text-muted); }
.text-italic { font-style: normal; }

.gold-line {
  width: 80px;
  height: 2px;
  background: var(--color-gold-primary);
  margin: 16px 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  margin-top: 12px;
  max-width: 640px;
}

body .section-eyebrow {
  display: block;
  color: var(--color-gold-primary);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

.tech-term {
  color: var(--color-gold-primary);
  font-weight: 700;
}

.standards-badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.standards-badge span {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--color-gold-primary);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.btn:hover::after { transform: scaleX(1); }
.btn:hover { color: var(--color-bg-primary); }

.btn-primary {
  background: var(--color-gold-primary);
  color: var(--color-bg-primary);
}

.btn-primary::after { background: var(--color-gold-light); }
.btn-primary:hover { color: var(--color-bg-primary); }

.btn-outline {
  background: transparent;
  color: var(--color-gold-primary);
}

.btn-outline:hover { color: var(--color-bg-primary); }

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.92);
  transition: border-bottom var(--transition);
}

.navbar.scrolled { border-bottom: 1px solid var(--color-gold-primary); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img,
.nav-logo-img {
  max-height: 45px;
  width: auto;
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; direction: ltr; }
.nav-brand-line1 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.nav-brand-line2 {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--color-gold-primary);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold-primary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.lang-toggle:hover {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.98);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid var(--color-gold-primary);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.btn:hover::after { transform: scaleX(1); }
.btn:hover { color: var(--color-bg-primary); }

.btn-primary {
  background: var(--color-gold-primary);
  color: var(--color-bg-primary);
}

.btn-primary::after { background: var(--color-gold-light); }
.btn-primary:hover { color: var(--color-bg-primary); }

.btn-outline {
  background: transparent;
  color: var(--color-gold-primary);
}

.btn-outline:hover { color: var(--color-bg-primary); }

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.92);
  transition: border-bottom var(--transition);
}

.navbar.scrolled { border-bottom: 1px solid var(--color-gold-primary); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img,
.nav-logo-img {
  max-height: 45px;
  width: auto;
}

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; direction: ltr; }
.nav-brand-line1 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.nav-brand-line2 {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--color-gold-primary);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold-primary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

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

.lang-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.98);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,7,0.3) 0%, rgba(7,7,7,0.7) 50%, rgba(7,7,7,0.95) 100%);
  z-index: 1;
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: var(--grid-pattern);
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  
  /* Smoother soft background with a hint of gold */
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.7) 0%, rgba(201, 168, 76, 0.12) 50%, transparent 100%);
}

section.hero .hero-subheadline {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,1);
  max-width: 820px;
  line-height: 1.75;
  margin-top: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glassmorphism Toast */
.glass-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 10000;
  background: rgba(13, 13, 13, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  padding: 24px 32px;
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.25);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 20px;
}
.glass-toast.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.glass-toast-inner {
  font-family: var(--font-body);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.5;
}
.toast-thanks {
  display: block;
  font-family: 'Space Grotesk', var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold-primary);
  margin-top: 8px;
}
.toast-close {
  background: none;
  border: none;
  color: var(--color-gold-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.deliver-text { font-weight: 600;
  font-size: 1.15rem;
}

html[lang="en"] body.lang-en section.why .why-closing {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-top: 64px;
}

html[lang="en"] body.lang-en section.projects .section-subtitle {
  font-family: var(--font-body);
  white-space: nowrap;
}

html[lang="en"] .why-content {
  text-align: center;
  display: block;
}

html[lang="en"] .why-benefits-list {
  text-align: left;
  margin: 0 auto 32px auto;
  width: 100%;
  max-width: 650px;
}

html[lang="en"] .why-headline {
  text-align: center;
}

html[lang="en"] body.lang-en section.why .why-standards-line,
html[lang="en"] body.lang-en section.contact .contact-info-item span,
html[lang="en"] body.lang-en section.contact .contact-info-item a {
  font-family: var(--font-body);
}

.bim-card h4 {
  display: inline-block;
  position: relative;
}
.bim-card h4::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gold-primary);
  margin-top: 6px;
  box-shadow: 0 2px 5px rgba(201, 168, 76, 0.6);
}

.why-highlight {
  position: relative;
  display: inline-block;
}
.why-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold-primary);
  box-shadow: 0 4px 8px rgba(201, 168, 76, 0.6);
}

.hero-logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 4px;
}

.hero-brand-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.hero-logo-img {
  width: 86px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.28));
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.05;
  direction: ltr;
}
html[dir="rtl"] .hero-brand-text { text-align: right; align-items: flex-end; }

.hero-brand-line1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.hero-brand-line2 {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--color-gold-primary);
  text-transform: uppercase;
  line-height: 0.95;
  padding-left: 0.06em;
}

.hero-brand-letter {
  display: inline-block;
  transform: translateY(0.02em);
}

.hero-brand-first {
  margin-right: 0.08em;
  padding-left: 0.04em;
}

.hero-brand-mid {
  letter-spacing: 0.16em;
}

.hero-brand-last {
  margin-left: 0.08em;
  padding-right: 0.04em;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 4px;
}
section.hero .hero-h-white {
  font-family: var(--font-body);
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.08;
  white-space: nowrap;
}
@media (max-width: 768px) {
  section.hero .hero-h-white {
    white-space: normal;
  }
}
  letter-spacing: -0.01em;
}
html[lang="ar"] body.lang-ar section.hero .hero-h-white {
  font-family: var(--font-arabic);
  font-weight: 700;
  line-height: 1.7;
  padding-bottom: 8px;
  display: inline-block;
}
html[lang="ar"] body.lang-ar section.hero .hero-headline {
  gap: 20px;
}
.hero-h-gold {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--color-gold-primary);
  line-height: 1.2;
}



html[lang="en"] body.lang-en .shantell-text,
html[lang="en"] body.lang-en section.hero .hero-subheadline,
html[lang="en"] body.lang-en section.services .service-outcome,
html[lang="en"] body.lang-en section.services .services-footer-text {
  font-family: var(--font-display);
}

html[lang="en"] body.lang-en section.collaboration .collab-intro {
  font-family: var(--font-body);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.hero-ctas .btn {
  padding: 15px 30px;
  font-size: 0.98rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.hero-ctas .btn-outline {
  background: rgba(15, 15, 15, 0.75);
}

/* Removed .hero-supporting and .hero-capabilities */

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-gold-primary);
  font-size: 1.6rem;
  opacity: 0;
  animation: pulse 2.2s ease-in-out 1s infinite, fadeIn 0.5s ease 1s forwards;
}

/* Gold text on image-backed sections */
.why p:not(.text-gold):not(.why-closing),
.ai-section .bim-subtitle {
  color: var(--color-gold-light);
}

section.why .why-benefits-list li span {
  color: var(--color-white);
}
section.why .why-benefits-list li i {
  color: var(--color-gold-primary);
}

section.about .about-led-by {
  color: var(--color-gold-primary);
  font-size: 1.2rem;
}

section.collaboration .collab-intro {
  color: var(--color-gold-primary);
}

/* ── About ── */
.about { background: var(--color-bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 48px;
  align-items: center;
}

.about-text p { margin-bottom: 16px; text-align: justify; word-spacing: 0.05em; }

.about-bim-statement {
  font-size: 1rem;
  color: var(--color-text-primary);
  line-height: 1.85;
  margin: 18px 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-gold-primary);
}

.lang-ar .about-bim-statement {
  padding-left: 0;
  padding-right: 16px;
  border-left: none;
  border-right: 3px solid var(--color-gold-primary);
}

.about-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-image img { width: 100%; height: 400px; object-fit: cover; }

.about-brand-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(13,13,13,0.78);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  z-index: 2;
}
html[dir="rtl"] .about-brand-badge { right: auto; left: 16px; }
.about-badge-logo { width: 32px; height: auto; }
.about-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.about-badge-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}
.about-badge-eng {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

/* ── Services ── */
.services { background: var(--color-bg-primary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-num-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: var(--color-gold-primary);
  color: var(--color-bg-primary);
  font-family: var(--font-numbers);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 4px;
}
[dir="rtl"] .service-num-badge {
  left: auto;
  right: 16px;
}

.service-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold-primary);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.15);
}

.service-card-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
}

.service-card-body { 
  padding: 24px; 
  text-align: center; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}
.service-card h3::after {
  content: '';
  display: block;
  width: 180px;
  height: 2px;
  background: var(--color-gold-primary);
  margin: 10px auto 0;
}

.lod-badge {
  display: block;
  width: fit-content;
  margin: 6px auto 14px;
  padding: 4px 14px;
  border: 1px solid var(--color-gold-primary);
  border-radius: 20px;
  color: var(--color-gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lod-badge-secondary {
  border-color: rgba(201,168,76,0.3);
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 500;
}

section.services .service-list-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  text-align: left;
}
html[dir="rtl"] .service-list-label { text-align: right; }

.service-card ul { text-align: left; margin-bottom: 14px; }
html[dir="rtl"] .service-card ul { text-align: right; }

section.services .service-outcome {
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-gold-primary);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding-top: 12px;
  margin-top: 4px;
  text-align: center;
}

.service-card-body ul {
  list-style: none;
  color: #ffffff;
  margin-bottom: auto;
}

.services-footer-text {
  text-align: left;
  margin-top: 40px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  max-width: 100%;
  border-left: 3px solid var(--color-gold-primary);
  padding-left: 16px;
  line-height: 1.6;
}
html[dir="rtl"] .services-footer-text {
  text-align: right;
  border-left: none;
  border-right: 3px solid var(--color-gold-primary);
  padding-left: 0;
  padding-right: 16px;
}

.service-card ul li {
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 4px 0;
}

.service-card-body li::before {
  content: '·';
  color: var(--color-gold-primary);
  margin-right: 8px;
}

/* ── Why DetailX ── */
.why {
  position: relative;
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.why-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,7,0.3) 0%, rgba(7,7,7,0.7) 50%, rgba(7,7,7,0.95) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

section.why .hook-text {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.why-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 24px;
}

section.why .why-eyebrow {
  display: inline-block;
  color: var(--color-gold-primary);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.why-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 32px;
  max-width: 100%;
}

.why-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 760px;
  margin: 28px auto 24px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}
html[dir="rtl"] .why-benefits-list { text-align: right; }
.why-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  padding: 2px 0;
}
.why-benefits-list li i { color: var(--color-gold-primary); margin-top: 4px; }
html[dir="rtl"] .why-benefits-list li i { margin-top: 2px; }

section.why .why-closing {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--color-gold-primary);
  margin-bottom: 24px;
}

.why-standards-line {
  padding-top: 16px;
  border-top: 1px solid rgba(201,168,76,0.2);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ── Projects / Swiper ── */
.projects { background: var(--color-bg-primary); overflow: hidden; }

.projects-swiper {
  margin-top: 48px;
  padding: 40px 0 60px;
  overflow: hidden;
  position: relative;
}

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

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

.projects-swiper .swiper-button-prev,
.projects-swiper .swiper-button-next {
  color: var(--color-gold-primary);
}

section.projects .projects-swiper .project-slide {
  width: auto;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.projects-swiper .drawing-sample-slide {
  width: auto !important;
  max-width: 100%;
  flex-shrink: 0;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.project-img-wrapper {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

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

.project-card, .sample-card {
  position: relative;
  background: #111111;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.sample-img-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  max-height: 520px;
}

.sample-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.project-card-body {
  padding: 24px 26px;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.98), rgba(13, 13, 13, 0.7));
  text-align: center;
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-type {
  font-size: 0.95rem;
  color: var(--color-gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card:hover,
.sample-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 96px rgba(201, 168, 76, 0.25);
}

.project-card:hover .project-card-img,
.sample-card:hover .sample-img {
  transform: scale(1.02);
}


.projects-experience-tag {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-gold-primary);
  margin-top: 10px;
}

.projects-experience-bottom {
  text-align: center;
  margin-top: 32px;
}

.projects .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Project Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  max-width: 1500px;
  width: 100%;
  max-height: 92vh;
  background: var(--color-bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  transform: scale(0.92);
  transition: transform 0.28s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-overlay.closing .modal-content {
  transform: scale(0.92);
  transition-duration: 0.2s;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9001;
  background: rgba(13,13,13,0.9);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--color-gold-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(201,168,76,0.15); }

.modal-render {
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
}

#modalRenderImg {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.modal-details {
  padding: 32px 28px;
  overflow-y: auto;
  background: var(--color-bg-secondary);
  border-left: 1px solid rgba(201,168,76,0.1);
}

.lang-ar .modal-details {
  border-left: none;
  border-right: 1px solid rgba(201,168,76,0.1);
}

.modal-project-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.modal-details h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.modal-type {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal-section-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-primary);
  margin: 20px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.modal-copy {
  white-space: pre-line;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
}

.modal-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.modal-partner-logos img {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.85);
  transition: filter 0.2s;
}

.modal-partner-logos img:hover { filter: brightness(1); }

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.modal-thumbs img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0.7;
}

.modal-thumbs img:hover { opacity: 1; transform: scale(1.05); }

.modal-thumbs img.active {
  border-color: var(--color-gold-primary);
  opacity: 1;
}

/* ── Drawing Samples ── */
.drawing-samples { background: var(--color-bg-secondary); overflow: hidden; }

section.drawing-samples .section-subtitle {
  color: var(--color-gold-primary);
  font-size: 1.3rem;
}

.drawing-samples-swiper {
  margin-top: 48px;
  padding: 40px 60px 60px;
  overflow: visible;
  position: relative;
}

.drawing-samples-swiper .swiper-pagination-bullet {
  background: var(--color-gold-primary);
  opacity: 0.4;
}

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

.drawing-samples-swiper .swiper-button-prev,
.drawing-samples-swiper .swiper-button-next {
  color: var(--color-gold-primary);
}

.drawing-sample-slide {
  width: auto;
  max-width: 858px;
  min-width: 300px;
}

/* ── Project Cards: uniform fixed size inside the projects swiper ── */
.projects-swiper .drawing-sample-slide {
  width: auto !important;
  max-width: 100%;
  flex-shrink: 0;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.projects-swiper .sample-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  transform-origin: center center;
}

.projects-swiper .sample-card .sample-img-wrapper,
.projects-swiper .sample-card .sample-label {
  overflow: hidden;
}

.projects-swiper .sample-card .sample-img-wrapper {
  border-radius: 12px 12px 0 0;
}

.projects-swiper .sample-card .sample-label {
  border-radius: 0 0 12px 12px;
}

.projects-swiper .sample-img-wrapper {
  height: 648px !important;
  max-height: none !important;
  flex-shrink: 0;
}

.projects-swiper .sample-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.sample-card {
  position: relative;
  background: #111111;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(201, 168, 76, 0.12);
}

.sample-img-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.sample-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.sample-card:hover .sample-img { transform: scale(1.02); }

.sample-label {
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.98), rgba(13, 13, 13, 0.7));
  text-align: center;
}

.sample-label span {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-gold-primary);
  text-transform: uppercase;
}

.sample-label .project-type-text {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.drawing-samples-swiper .swiper-slide-active .sample-card {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 168, 76, 0.25);
}

.drawing-samples-swiper .swiper-slide:not(.swiper-slide-active) .sample-card {
  filter: brightness(0.75);
}

.drawing-samples-swiper .sample-img-wrapper {
  height: 540px !important;
  min-height: 540px !important;
  padding: 6px 0;
  box-sizing: border-box;
}

.drawing-samples-swiper .sample-img {
  height: 100% !important;
  width: auto !important;
  max-height: 100% !important;
  object-fit: contain;
}

.drawing-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}

.drawing-lightbox-overlay.active { opacity: 1; }

.drawing-lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-full-img {
  max-width: 95vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--color-gold-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(201, 168, 76, 0.15); }

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-primary);
  opacity: 0.8;
}

/* ── Collaboration ── */
.collaboration { background: var(--color-bg-secondary); }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 48px;
}

section.collaboration .collab-intro {
  font-family: var(--font-body);
  color: var(--color-gold-primary);
  font-style: normal;
}

section.collaboration .collab-consultant-hook {
  font-family: var(--font-heading);
  font-style: normal;
  color: var(--color-gold-primary);
  font-size: 1.25rem;
  text-align: center;
  max-width: 800px;
  margin: 32px auto 0;
  display: block;
}
html[lang="ar"] body.lang-ar section.collaboration .collab-consultant-hook {
  font-family: var(--font-heading-ar);
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px; /* More padding makes normal logos appear smaller/controlled */
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  height: 130px; /* Standardize the box height */
  transition: border-color var(--transition);
}
.partner-logo.logo-lg {
  padding: 8px; /* Less padding gives priority logos more room to expand */
}

.partner-logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: all var(--transition);
}
.partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

.partner-logo:hover { border-color: var(--color-gold-primary); }

/* ── DetailX AI ── */
.ai-section {
  position: relative;
  overflow: hidden;
}

.ai-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.ai-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,7,0.3) 0%, rgba(7,7,7,0.7) 50%, rgba(7,7,7,0.95) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

/* Black-box wrapper for DETAILX BIM — same treatment as .why-content */
.ai-section .section-inner {
  position: relative;
  z-index: 2;
  max-width: 1150px;
  margin: 0 auto;
  padding: 56px 40px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 24px;
}

.bim-header { text-align: center; max-width: 1150px; margin: 0 auto 48px; }

.bim-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 16px 0;
}
.text-white-strong { color: #fff; font-weight: 700; }

section.ai-section .bim-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

section.ai-section .ai-corner-badge {
  display: inline-block;
  color: #fff;
  font-style: normal;
  border-bottom: 3px solid var(--color-gold-primary);
  padding-bottom: 6px;
  font-size: 1rem;
  margin-bottom: 18px;
}

.bim-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto 56px;
}
section.ai-section .bim-card {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 16px;
  box-shadow: none;
  padding: 2rem 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.bim-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.5);
}
.bim-card-num {
  font-family: var(--font-numbers);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold-primary);
  display: block;
  margin-bottom: 10px;
}
section.ai-section .bim-card h4 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #fff;
  margin-bottom: 8px;
}
section.ai-section .bim-card p { font-size: 1.05rem; color: var(--color-text-muted); line-height: 1.7; }

.deliver-section { max-width: 1000px; margin: 0 auto; text-align: center; }
section.ai-section .deliver-title {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--color-gold-primary);
  margin-bottom: 36px;
}
.deliver-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px 16px;
  position: relative;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 168, 76, 0.45);
}
.deliver-item {
  flex: 1 1 150px;
  text-align: center;
  position: relative;
}
.deliver-item::before {
  content: '';
  position: absolute;
  top: -33px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold-primary);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.22), 0 0 12px rgba(201, 168, 76, 0.35);
}
section.ai-section .deliver-text {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  line-height: 1.5;
}

/* ── How We Work / Process ── */
section.ai-section .hook-text {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.how-we-work { background: var(--color-bg-primary); }

.process-timeline {
  position: relative;
  max-width: 880px;
  margin: 64px auto 0;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.35) 8%, rgba(201,168,76,0.35) 92%, transparent);
  transform: translateX(-50%);
}
.process-step {
  position: relative;
  width: 50%;
  padding: 28px 56px;
}
.process-step--left { margin-left: 0; text-align: right; }
.process-step--right { margin-left: 50%; text-align: left; }

.process-step-content { display: inline-block; max-width: 360px; }

.process-step-num {
  position: absolute;
  top: 28px;
  width: 46px;
  height: 46px;
  background: var(--color-gold-primary);
  color: var(--color-bg-primary);
  font-family: var(--font-numbers);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--color-bg-primary);
}
.process-step--left .process-step-num { right: -23px; left: auto; }
.process-step--right .process-step-num { left: -23px; right: auto; }

section.how-we-work .process-step h4 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #fff;
  margin-bottom: 8px;
}
section.how-we-work .process-step p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

html[dir="rtl"] .process-step--left { text-align: left; }
html[dir="rtl"] .process-step--right { text-align: right; }
html[dir="rtl"] .process-step--left .process-step-num { left: -23px; right: auto; }
html[dir="rtl"] .process-step--right .process-step-num { right: -23px; left: auto; }

/* ── Contact ── */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-secondary);
}
.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.65);
}
.contact .container {
  position: relative;
  z-index: 1;
}
section.contact .section-subtitle {
  color: var(--color-gold-primary);
  font-size: 1.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 1.15rem;
  line-height: 1.6;
}

.contact-info-item i {
  color: var(--color-gold-primary);
  margin-top: 3px;
  width: 26px;
  font-size: 1.35rem;
  flex-shrink: 0;
  text-align: center;
}

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

.whatsapp-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.schedule-meeting-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--color-gold-primary);
}
section.contact .schedule-meeting-hint span { font-size: 0.95rem; }
.schedule-arrow {
  font-size: 1rem;
  animation: bounce-down 1.6s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

.social-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-row a {
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: border-color var(--transition), color var(--transition);
}

.social-row a:hover {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold-primary);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-success-premium {
  position: relative;
  text-align: center;
  padding: 56px 32px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(13, 13, 13, 0.98));
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-success-premium.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.form-success-premium .success-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: successGlow 3s ease-in-out infinite;
}

.success-check-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--color-gold-primary);
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: successPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.success-check-ring i {
  font-size: 1.6rem;
  color: var(--color-gold-primary);
}

section.contact .success-thanks {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  animation: successFadeUp 0.6s ease 0.3s both;
}
html[lang="ar"] body.lang-ar section.contact .success-thanks {
  font-family: var(--font-heading-ar);
}

.success-hook {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
  animation: successFadeUp 0.6s ease 0.45s both;
}

.contact-form-wrap.form-submitted .contact-form {
  display: none;
}

.lang-ar .success-thanks {
  font-weight: 700;
}

.form-error-global {
  color: #e57373;
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-align: center;
}

.field-error {
  color: #e57373;
  font-size: 0.78rem;
  display: block;
  margin-top: 4px;
  padding-left: 4px;
}

form.contact-form input[aria-invalid="true"],
form.contact-form textarea[aria-invalid="true"] {
  border-color: #e57373;
}

button[data-fs-submit-btn]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit { width: 100%; justify-content: center; }

.lang-en .ar-text { display: none; }
.lang-ar .btn-submit { direction: rtl; }
.lang-ar .field-error { padding-left: 0; padding-right: 4px; }

/* ── Footer ── */
.footer {
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-gold-primary);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.footer-logo img { max-height: 50px; margin-bottom: 12px; }

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-primary);
  opacity: 0.85;
  margin-top: 8px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav a:hover { color: var(--color-gold-primary); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── RTL Support ── */
[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
[dir="rtl"] .btn::after { transform-origin: right; }
[dir="rtl"] .about-grid { direction: rtl; }
[dir="rtl"] .contact-grid { direction: rtl; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-right { align-items: flex-start; }
[dir="rtl"] .service-card-body li::before { margin-right: 0; margin-left: 8px; }

[dir="rtl"] .swiper-button-next { left: 10px; right: auto; }
[dir="rtl"] .swiper-button-prev { right: 10px; left: auto; }

html[dir="rtl"] body i.fa-chevron-down,
html[dir="rtl"] body i.fa-xmark,
html[dir="rtl"] body i.fa-check,
html[dir="rtl"] body i.fa-whatsapp,
html[dir="rtl"] body i.fa-linkedin-in,
html[dir="rtl"] body i.fa-instagram,
html[dir="rtl"] body i.fa-facebook-f,
html[dir="rtl"] body i.fa-globe,
html[dir="rtl"] body i.fa-envelope,
html[dir="rtl"] body i.fa-location-dot {
  transform: none;
}

[dir="rtl"] .btn[data-ar]::after { content: none; }

[dir="rtl"] .modal-close {
  right: auto;
  left: 20px;
}

[dir="rtl"] .lightbox-close {
  right: auto;
  left: 0;
}

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

@keyframes successPop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes successGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid,
  .modal-content { grid-template-columns: 1fr; }

  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .drawing-sample-slide { max-width: 660px; }
  .sample-img { max-height: 440px; }
  .projects-swiper .sample-img-wrapper { height: 518px; }
  .bim-cards-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-right { align-items: center; }
}

@media (min-width: 1024px) {
  .drawing-sample-slide { max-width: 858px; }
  .sample-img { max-height: 572px; }
  .projects-swiper .sample-img-wrapper { height: 648px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }

  .ai-bg,
  .hero-bg,
  .why-bg,
  .contact-bg { background-attachment: scroll; }

  .projects-swiper { padding: 40px 8px 60px; }
  section.projects .projects-swiper .project-slide { width: auto; }
  .project-img-wrapper { height: 320px; }
  .service-card-img { height: 240px; }

  .modal-content { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-render { min-height: 220px; max-height: 45vw; }
  .modal-details { padding: 20px 16px; }

  .drawing-samples-swiper { padding: 40px 16px 60px; }
  .drawing-sample-slide { max-width: 90vw; }
  .sample-img { max-height: 308px; }
  .projects-swiper .sample-img-wrapper { height: 432px; }
  .lightbox-full-img { max-width: 100vw; max-height: 80vh; }

  .hero-capabilities { flex-direction: column; gap: 10px; border-top: none; padding-top: 0; }
  section.hero .hero-capabilities span { border-right: none; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 8px 0; width: 100%; }
  .hero-capabilities span:last-child { border-bottom: none; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  .about-brand-badge { padding: 8px 12px; }
  .about-badge-logo { width: 26px; }

  .process-timeline::before { left: 24px; }
  .process-step, .process-step--left, .process-step--right {
    width: 100%;
    margin-left: 0;
    text-align: left;
    padding: 24px 0 24px 64px;
  }
  .process-step--left .process-step-num,
  .process-step--right .process-step-num {
    left: 0; right: auto; top: 20px;
  }
  .process-step-content { max-width: 100%; }

  html[dir="rtl"] .process-timeline::before { left: auto; right: 24px; }
  html[dir="rtl"] .process-step, html[dir="rtl"] .process-step--left, html[dir="rtl"] .process-step--right {
    text-align: right; padding: 24px 64px 24px 0;
  }
  html[dir="rtl"] .process-step--left .process-step-num,
  html[dir="rtl"] .process-step--right .process-step-num {
    right: 0; left: auto;
  }

  .deliver-row { flex-direction: column; gap: 28px; border-top: none; border-left: 1px solid rgba(201,168,76,0.25); padding-top: 0; padding-left: 28px; }
  .deliver-item::before { left: -20px; top: 50%; transform: translateY(-50%); }
  html[dir="rtl"] .deliver-row { border-left: none; border-right: 1px solid rgba(201,168,76,0.25); padding-left: 0; padding-right: 28px; }
  html[dir="rtl"] .deliver-item::before { left: auto; right: -20px; }
}

@media (max-width: 480px) {
  .nav-brand-text { display: none; }
  .whatsapp-btns { flex-direction: column; }
}


/* ── Typography overrides (high specificity) ── */
html[lang="en"] body.lang-en section.why .why-eyebrow,
html[lang="en"] body.lang-en section.ai-section .ai-corner-badge,
html[lang="en"] body.lang-en section.hero .hero-h-gold,
html[lang="en"] body.lang-en section.ai-section .bim-card h4,
html[lang="en"] body.lang-en section.collaboration .collab-consultant-hook,
html[lang="en"] body.lang-en section.ai-section .deliver-text {
  font-family: var(--font-body);
  font-weight: 600;
}

html[lang="en"] body.lang-en section.why .why-closing {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-top: 120px;
}

html[lang="ar"] body.lang-ar section.why .why-closing {
  font-family: var(--font-arabic-display);
  margin-top: 120px;
}

html[lang="en"] body.lang-en .hook-text,
html[lang="en"] body.lang-en section.collaboration .collab-consultant-hook,
html[lang="en"] body.lang-en section.ai-section .bim-subtitle span,
html[lang="en"] body.lang-en section.contact .section-subtitle,
html[lang="en"] body.lang-en section.projects .section-subtitle,
html[lang="en"] body.lang-en section.collaboration .collab-intro {
  font-family: var(--font-display);
}

html[lang="ar"] body.lang-ar section.services .service-outcome,
html[lang="ar"] body.lang-ar section.collaboration .collab-intro,
html[lang="ar"] body.lang-ar section.ai-section .deliver-text {
  font-family: var(--font-arabic-display);
}

html[lang="ar"] body.lang-ar section.why .why-standards-line {
  font-size: 1.8rem;
  font-family: var(--font-arabic-display);
}

html[lang="ar"] body.lang-ar section.projects .section-subtitle {
  text-align: right;
  font-family: var(--font-arabic-display);
}

html[lang="ar"] body.lang-ar section.contact .contact-info-item span,
html[lang="ar"] body.lang-ar section.contact .contact-info-item a,
html[lang="ar"] body.lang-ar section.contact .contact-info-item div,
html[lang="ar"] body.lang-ar footer.footer .footer-nav a {
  font-family: var(--font-arabic-display);
}

html[lang="ar"] body.lang-ar section.ai-section .bim-subtitle span {
  font-family: var(--font-arabic-display);
}

html[dir="rtl"] .process-step--left {
  left: auto; right: 0; text-align: left;
}
html[dir="rtl"] .process-step--right {
  left: auto; right: 50%; text-align: right;
}
html[dir="rtl"] .process-step--left .process-step-num {
  right: auto; left: -24px;
}
html[dir="rtl"] .process-step--right .process-step-num {
  left: auto; right: -24px;
}

/* ── Inline style classes ── */
.brand-line2-flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
section.hero .hero-headline {
  margin-top: 10px;
  margin-bottom: 0;
}
.hero-h-gold-sub {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
section.hero .hero-ctas {
  margin-top: 18px;
}
.subtitle-services {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 8px;
  color: #fff;
  text-transform: uppercase;
}
section.projects .subtitle-project {
  font-family: var(--font-body);
  text-align: left;
  margin-left: 0;
  max-width: 680px;
  line-height: 1.8;
}

html[lang="ar"] body.lang-ar section.projects .subtitle-project {
  text-align: right;
  font-family: var(--font-arabic-display);
  max-width: 700px;
  margin-right: 0;
}
section.projects .projects-experience-bottom {
  text-align: center;
  margin-top: 32px;
  font-size: 1.3rem;
  color: var(--color-gold-primary);
}
.btn-portfolio-dl {
  margin-top: 16px;
}
section.ai-section .ai-corner-badge em {
  color: #fff;
}

/* ── Floating WhatsApp ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }

@media (max-width: 390px) {
  .btn, .btn-primary, .btn-outline, .btn-sm { min-height: 44px; min-width: 44px; }
  .nav-links a, .mobile-menu a { min-height: 44px; display: flex; align-items: center; }
  .lang-toggle, .hamburger { min-width: 44px; min-height: 44px; }
}
@media (max-width: 360px) {
  section.hero .hero-headline { font-size: clamp(1.5rem, 7vw, 2.5rem); }
  .section-title { font-size: clamp(1.3rem, 6vw, 2rem); }
  .container { padding-inline: 16px; }
}

/* ── Arabic font size fixes ── */
html[lang="ar"] .why-eyebrow { font-size: 1.4rem; }
html[lang="ar"] .bim-subtitle { font-size: 1.05rem; line-height: 1.8; }
html[lang="ar"] .deliver-text { font-size: 1.1rem; }
html[lang="ar"] .contact-info-item span,
html[lang="ar"] .contact-info-item a { font-size: 1.15rem; }
html[lang="ar"] .process-step-content h4 { font-size: 1.1rem; }
html[lang="ar"] .process-step-content p { font-size: 0.95rem; line-height: 1.9; }

/* ══════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   ══════════════════════════════════════════ */




/* Prevent layout shift for partner logos */
.partner-logo img {
  aspect-ratio: auto;
  min-height: 40px;
}


/* Print: hide decorative elements */
@media print {
  .navbar, .mobile-menu, .whatsapp-float,
  .hero-bg, .why-bg, .ai-bg, .contact-bg,
  .hero-overlay, .why-overlay, .ai-overlay, .contact-overlay {
    display: none !important;
  }
}

/* Enhanced Text Visibility over Backgrounds (Replaces Glassmorphism) */
.hero-content h1, .hero-content h2, .hero-content p, .hero-content span {
  text-shadow: 0 4px 16px rgba(0,0,0,0.85), 0 2px 4px rgba(0,0,0,0.5);
}

.why-content h2, .why-content p, .why-content span, .why-content li {
  text-shadow: none;
}
