/* ============================================================
   CORELINK LOGISTICS - Main Stylesheet
   Brand Colors: #F36F21 (Orange) | #1E3A8A (Blue)
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* ── Official Corelink Brand Palette ─── */
  --orange:       #fb7428;   /* Safety Orange  — CTAs, accents, icons  */
  --orange-dark:  #e05e10;   /* Darker orange  — hover states          */
  --orange-light: #fff1e8;   /* Tint           — icon backgrounds      */
  --blue:         #10359f;   /* Deep Cobalt    — headers, trust elements*/
  --blue-dark:    #0b2578;   /* Darker cobalt  — hover states          */
  --blue-mid:     #1846c0;   /* Mid cobalt     — gradients             */
  --blue-light:   #e8edfb;   /* Tint           — backgrounds           */
  --soft-gray:    #EFEFEF;   /* Soft Gray      — section backgrounds   */
  --white:        #FFFFFF;   /* Pure White     — main bg, reversed text*/
  --grey-50:      #F9F9F9;
  --grey-100:     #F4F4F4;
  --grey-200:     #E4E4E4;
  --grey-300:     #D0D0D0;
  --grey-500:     #A8A8A8;
  --grey-600:     #6E6E6E;
  --grey-700:     #484848;
  --grey-900:     #1A1A1A;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.11);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.15);
  --shadow-card:  0 2px 16px rgba(17,56,154,0.10);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --transition:   0.3s ease;
  --font:         'Poppins', sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 90px 0; }
.section-padding-sm { padding: 60px 0; }

.text-orange  { color: var(--orange); }
.text-blue    { color: var(--blue); }
.text-white   { color: var(--white); }
.text-center  { text-align: center; }
.text-muted   { color: var(--grey-600); }

.bg-blue      { background-color: var(--blue); }
.bg-orange    { background-color: var(--orange); }
.bg-light     { background-color: var(--soft-gray); }
.bg-white     { background-color: var(--white); }

/* ---------- Typography ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title span { color: var(--orange); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(243,111,33,0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(243,111,33,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30,58,138,0.3);
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30,58,138,0.4);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

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

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* =====================================================
   LANGUAGE TOGGLE BUTTON
===================================================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.30);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  flex-shrink: 0;
}

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

.lang-sep {
  opacity: 0.4;
  font-size: 0.75rem;
}

/* Active language label highlight */
.lang-toggle .lang-label-en  { opacity: 1;   font-weight: 700; }
.lang-toggle .lang-label-ar  { opacity: 0.55; }

html[lang="ar"] .lang-toggle .lang-label-en { opacity: 0.55; }
html[lang="ar"] .lang-toggle .lang-label-ar { opacity: 1; font-weight: 700; }

#header.scrolled .lang-toggle {
  background: rgba(16, 53, 159, 0.08);
  border-color: rgba(16, 53, 159, 0.25);
  color: var(--blue);
}

#header.scrolled .lang-toggle:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* =====================================================
   RTL / ARABIC LAYOUT OVERRIDES
   Applied when <html lang="ar" dir="rtl">
===================================================== */
html[dir="rtl"] {
  font-family: 'Noto Kufi Arabic', 'Poppins', sans-serif;
}

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

/* Nav mirror */
html[dir="rtl"] .nav-inner     { flex-direction: row-reverse; }
html[dir="rtl"] .nav-menu      { flex-direction: row-reverse; }
html[dir="rtl"] .nav-logo      { flex-direction: row-reverse; }
html[dir="rtl"] .nav-logo-text { text-align: right; }

/* Hero grid mirror */
html[dir="rtl"] .hero-inner-grid {
  direction: rtl;
}

html[dir="rtl"] .hero-content  { text-align: right; }
html[dir="rtl"] .hero-stats    { justify-content: flex-end; }
html[dir="rtl"] .hero-stat     {
  padding-right: 0;
  margin-right: 0;
  padding-left: 28px;
  margin-left: 28px;
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.15);
}
html[dir="rtl"] .hero-stat:last-child {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

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

/* Slider arrows mirror */
html[dir="rtl"] .slider-arrow.prev { left: auto; right: 28px; }
html[dir="rtl"] .slider-arrow.next { right: auto; left: 28px; }
html[dir="rtl"] .slider-arrow.prev svg { transform: scaleX(-1); }
html[dir="rtl"] .slider-arrow.next svg { transform: scaleX(-1); }

/* Service cards */
html[dir="rtl"] .service-card   { text-align: right; }
html[dir="rtl"] .floating-card  {
  border-left: none;
  border-right: 4px solid var(--orange);
  flex-direction: row-reverse;
}
html[dir="rtl"] .floating-card:nth-child(2) { border-right-color: var(--blue); }

/* Why Us */
html[dir="rtl"] .why-us-grid    { direction: rtl; }
html[dir="rtl"] .feature-item   { flex-direction: row-reverse; text-align: right; }

/* Section labels */
html[dir="rtl"] .section-label  { flex-direction: row-reverse; }
html[dir="rtl"] .section-label::before { margin-right: 0; margin-left: 0; }

/* Service link arrow */
html[dir="rtl"] .service-link   { flex-direction: row-reverse; }
html[dir="rtl"] .service-link svg { transform: scaleX(-1); }
html[dir="rtl"] .service-link:hover svg { transform: scaleX(-1) translateX(3px); }

/* Footer */
html[dir="rtl"] .footer-top     { direction: rtl; }
html[dir="rtl"] .footer-brand   { text-align: right; }

/* ---------- HEADER / NAVIGATION ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition);
  background: transparent;
  padding: 20px 0;
}

#header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

#header.scrolled .nav-link { color: var(--grey-700); }
#header.scrolled .nav-link:hover { color: var(--orange); }
#header.scrolled .nav-logo-text .company { color: var(--blue); }
#header.scrolled .nav-logo-text .tagline { color: var(--grey-600); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-icon { transform: rotate(-10deg) scale(1.05); }

.nav-logo-icon svg { width: 26px; height: 26px; fill: white; }

.nav-logo-text .company {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.5px;
}

.nav-logo-text .tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-link:hover { color: var(--orange); }
.nav-link.active { color: var(--orange); font-weight: 600; }

.nav-cta { margin-left: 12px; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

#header.scrolled .nav-toggle span { background: var(--blue); }

/* When menu is OPEN: always show white X regardless of scroll state */
.nav-toggle.open span { background: white !important; }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Dedicated mobile menu close button ── */
.nav-menu-close {
  display: none; /* shown only on mobile via media query */
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.nav-menu-close:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

/* =====================================================
   HERO SLIDER — Full-Screen Image Carousel
===================================================== */

/* Wrapper */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--blue-dark);
}

/* Slide track — all slides stacked */
.slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Individual slide */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Slide overlay — light enough to see the image clearly */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 30, 80, 0.72) 0%,      /* deep blue — left where text sits */
    rgba(17, 56, 154, 0.52) 50%,    /* mid cobalt */
    rgba(17, 56, 154, 0.20) 100%    /* nearly transparent — right shows photo */
  );
}

/* Content layer sits above all slides */
.slider-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
}

/* Two-column layout inside slider */
.hero-inner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* ── Hero Text ── */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease both;
  box-shadow: 0 4px 16px rgba(247,127,45,0.4);
}

.hero-badge svg { width: 14px; height: 14px; fill: white; }

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.hero-title span { color: var(--orange); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
  margin-bottom: 52px;
}

/* Stats divider row */
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px;
}

.hero-stat {
  text-align: left;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(247,127,45,0.3);
}

.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── Right info cards ── */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.hero-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Clean solid white info cards */
.floating-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.20);
  animation: float 4s ease-in-out infinite;
  border-left: 4px solid var(--blue);
}

.floating-card:nth-child(1) { animation-delay: 0s;    border-left-color: var(--orange); }
.floating-card:nth-child(2) { animation-delay: 1.4s;  border-left-color: var(--blue); }
.floating-card:nth-child(3) { animation-delay: 2.8s;  border-left-color: var(--orange); }

.floating-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-card:nth-child(1) .card-icon,
.floating-card:nth-child(3) .card-icon { background: var(--orange-light); }

.floating-card .card-icon svg { width: 22px; height: 22px; fill: var(--blue); }
.floating-card:nth-child(1) .card-icon svg,
.floating-card:nth-child(3) .card-icon svg { fill: var(--orange); }

.floating-card .card-label {
  font-size: 0.7rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
  font-weight: 600;
}

.floating-card .card-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
}

.floating-card .card-sub {
  font-size: 0.7rem;
  color: var(--grey-600);
  margin-top: 2px;
}

.card-text { display: flex; flex-direction: column; }

/* ── Slider Controls ── */
.slider-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 0 36px;
}

/* Arrow buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  opacity: 0.85;
}

.slider-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow svg { width: 24px; height: 24px; fill: white; }
.slider-arrow.prev { left: 28px; }
.slider-arrow.next { right: 28px; }

/* Dot indicators */
.slider-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active,
.dot:hover {
  background: var(--orange);
  width: 28px;
  border-radius: 5px;
}

/* Progress bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
}

.slider-progress-bar {
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 5s linear;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  z-index: 20;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 13px;
  margin: 0 auto 6px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: float 1.5s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}


/* ---------- SERVICES SECTION ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0 0 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-200);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Service card photo thumbnail at top */
.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: transform 0.5s ease;
}

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

.service-card-body {
  padding: 24px 28px 0;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-card .service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--orange);
  transform: scale(1.05);
}

.service-card .service-icon svg { width: 32px; height: 32px; fill: var(--orange); transition: fill var(--transition); }
.service-card:hover .service-icon svg { fill: white; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.service-link svg { width: 16px; height: 16px; fill: var(--orange); transition: transform var(--transition); }
.service-link:hover { gap: 10px; }
.service-link:hover svg { transform: translateX(3px); }

/* ---------- WHY CHOOSE US ---------- */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-us-features {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.feature-item:hover .feature-icon-wrap {
  background: var(--orange);
}

.feature-icon-wrap svg { width: 24px; height: 24px; fill: var(--orange); transition: fill var(--transition); }
.feature-item:hover .feature-icon-wrap svg { fill: white; }

.feature-text h4 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.feature-text p { font-size: 0.88rem; color: var(--grey-600); line-height: 1.65; }

/* Why Us Visual Column */
.why-visual {
  position: relative;
}

.why-visual-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--blue-dark);
}

/* Real photo background for why-us */
.why-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.why-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(11, 30, 80, 0.95) 0%,      /* solid blue at bottom for metrics */
    rgba(17, 56, 154, 0.60) 50%,
    rgba(17, 56, 154, 0.20) 100%    /* nearly transparent at top to show photo */
  );
}

.why-metrics {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.metric-box .metric-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.metric-box .metric-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.3;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-200);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

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

.testimonial-card .quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 4rem;
  line-height: 1;
  color: var(--orange-light);
  font-family: Georgia, serif;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg { width: 18px; height: 18px; fill: #fbbf24; }

.testimonial-text {
  font-size: 0.95rem;
  color: var(--grey-700);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-info .name { font-size: 0.95rem; font-weight: 700; color: var(--blue); }
.author-info .role { font-size: 0.8rem; color: var(--grey-600); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-mid) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(243,111,33,0.15) 0%, transparent 70%);
}

.cta-banner-inner { position: relative; z-index: 1; }

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner h2 span { color: var(--orange); }

.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--grey-900);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: 70px 0 50px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg { width: 24px; height: 24px; fill: white; }

.footer-brand .brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.footer-brand .brand-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.6);
}

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

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.75); }
.social-btn:hover svg { fill: white; }

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact-info { display: flex; flex-direction: column; gap: 14px; }

.footer-contact-row {
  display: flex;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.footer-contact-row svg {
  width: 16px;
  height: 16px;
  fill: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--orange); }

/* ---------- PAGE HERO (Inner Pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(243,111,33,0.1) 0%, transparent 70%);
}

.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 20px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}

.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ---------- ABOUT PAGE ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

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

.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: white;
  text-align: center;
  box-shadow: 0 8px 25px rgba(243,111,33,0.4);
}

.about-image-badge .badge-num { font-size: 2rem; font-weight: 800; line-height: 1; }
.about-image-badge .badge-text { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

.about-content .section-label { margin-bottom: 8px; }

.about-content p {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
}

.value-item svg { width: 20px; height: 20px; fill: var(--orange); flex-shrink: 0; }

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 18px;
  border: 4px solid var(--orange-light);
  transition: border-color var(--transition);
}

.team-card:hover .team-avatar { border-color: var(--orange); }

.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.team-card .role { font-size: 0.82rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- SERVICE DETAIL PAGE ---------- */
.service-detail-grid {
  display: grid;
  gap: 60px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-200);
}

.service-detail-card.reverse { direction: rtl; }
.service-detail-card.reverse > * { direction: ltr; }

.service-detail-visual {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-detail-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

/* About page image */
.about-photo {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
}

.service-detail-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 80% 30%, rgba(243,111,33,0.2) 0%, transparent 60%);
}

.service-detail-icon {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-icon svg { width: 56px; height: 56px; fill: white; }

.service-detail-content { padding: 40px; }
.service-detail-content .section-label { margin-bottom: 8px; }
.service-detail-content h2 { font-size: 1.8rem; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.service-detail-content p { font-size: 0.93rem; color: var(--grey-600); line-height: 1.75; margin-bottom: 24px; }

.benefits-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.benefit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--grey-700);
}

.benefit-row svg { width: 18px; height: 18px; fill: var(--orange); flex-shrink: 0; }

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.contact-info-box {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  color: white;
  position: sticky;
  top: 100px;
}

.contact-info-box h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; }
.contact-info-box p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 36px; }

.contact-info-items { display: flex; flex-direction: column; gap: 22px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
}

.contact-item-icon svg { width: 20px; height: 20px; fill: var(--orange); }

.contact-item-text .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.contact-item-text .value { font-size: 0.9rem; color: white; line-height: 1.5; font-weight: 500; }

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--grey-200);
}

.contact-form-card h2 { font-size: 1.6rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.contact-form-card > p { font-size: 0.9rem; color: var(--grey-600); margin-bottom: 32px; }

/* ---------- FORMS ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 8px;
}

.form-group label span { color: var(--orange); }

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
}

.form-control.error { border-color: #e53e3e; }

.form-control::placeholder { color: var(--grey-500); }

select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }

textarea.form-control { resize: vertical; min-height: 130px; }

.form-error { font-size: 0.8rem; color: #e53e3e; margin-top: 4px; display: none; }
.form-group.has-error .form-error { display: block; }

.form-success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #22543d;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.form-success svg { width: 20px; height: 20px; fill: #22543d; }
.form-success.show { display: flex; }

/* Map placeholder */
.map-placeholder {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--grey-100) 100%);
  border-radius: var(--radius-md);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--grey-200);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,58,138,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,138,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-placeholder svg { width: 48px; height: 48px; fill: var(--blue); opacity: 0.4; position: relative; }
.map-placeholder p { font-size: 0.9rem; color: var(--grey-600); position: relative; font-weight: 500; }

/* ---------- QUOTE PAGE ---------- */
.quote-form-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.quote-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}

.quote-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--grey-200);
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grey-200);
  color: var(--grey-600);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--grey-200);
  transition: all var(--transition);
}

.step-item.active .step-num {
  background: var(--orange);
  color: white;
  box-shadow: 0 0 0 2px var(--orange);
}

.step-item.done .step-num { background: var(--blue); color: white; box-shadow: 0 0 0 2px var(--blue); }

.step-label { font-size: 0.78rem; font-weight: 600; color: var(--grey-500); text-align: center; }
.step-item.active .step-label { color: var(--orange); }
.step-item.done .step-label { color: var(--blue); }

.quote-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}

.quote-form-section { display: none; }
.quote-form-section.active { display: block; }

.quote-form-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--grey-100);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-100);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- KEYFRAME ANIMATIONS ---------- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- LOADER ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden { opacity: 0; visibility: hidden; }

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

.loader-logo {
  width: 60px;
  height: 60px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: pulse-ring 1s ease infinite;
}

.loader-logo svg { width: 36px; height: 36px; fill: white; }

.loader-bar-wrap {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  animation: loadBar 1.2s ease forwards;
}

@keyframes loadBar {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ---------- BACK TO TOP ---------- */
#back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(243,111,33,0.4);
  z-index: 500;
  border: none;
}

#back-top.visible { opacity: 1; visibility: visible; }
#back-top:hover { background: var(--orange-dark); transform: translateY(-3px); }
#back-top svg { width: 22px; height: 22px; fill: white; }

/* ---------- DIVIDER ---------- */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  border-radius: 4px;
  margin: 0 auto 32px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .why-us-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .hero-card-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-box { position: relative; top: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .service-detail-card { grid-template-columns: 1fr; }
  .service-detail-card.reverse { direction: ltr; }
  .service-detail-visual { min-height: 200px; }
}

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

  /* NAV */
  /* Note: NO backdrop-filter on #header on mobile — it creates a stacking context
     that traps position:fixed children (the mobile menu overlay) */
  #header { padding: 12px 0; background: rgba(0,0,0,0.50); z-index: 100000; }
  #header.scrolled { background: var(--white); padding: 10px 0; }
  /* When menu is open: always keep header dark so white X is visible */
  #header.menu-open,
  #header.scrolled.menu-open { background: var(--blue) !important; }
  .nav-inner { gap: 10px; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: var(--blue);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 99999;
  }
  .nav-menu.open { display: flex; }
  .nav-menu-close { display: flex; }
  .nav-link { font-size: 1.25rem; color: white !important; padding: 14px 28px; }
  .nav-link::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; z-index: auto; position: relative; }
  .lang-toggle { padding: 5px 10px; font-size: 0.72rem; gap: 4px; }
  .lang-toggle svg { width: 13px; height: 13px; }
  .lang-sep { display: none; }

  /* HERO */
  .hero-slider { height: 100dvh; min-height: 600px; }
  .hero-inner-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .hero-badge { font-size: 0.68rem; padding: 6px 12px; margin-bottom: 14px; }
  .hero-title { font-size: clamp(1.6rem, 6.5vw, 2.4rem); margin-bottom: 14px; line-height: 1.2; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 22px; max-width: 100%; }
  .hero-cta { flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 20px; font-size: 0.95rem; }
  .hero-stats { flex-wrap: wrap; gap: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); }
  .hero-stat { flex: 1 1 33%; border-right: none !important; border-left: none !important; padding: 0 0 10px; margin: 0; text-align: center; }
  .hero-stat .number { font-size: 1.6rem; }
  .hero-stat .label { font-size: 0.65rem; }
  .slider-content { align-items: flex-end; padding-bottom: 70px; }
  .scroll-indicator { display: none; }
  .slider-arrow { width: 36px; height: 36px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .slider-arrow svg { width: 18px; height: 18px; }

  /* GENERAL */
  .section-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .hero-stats { gap: 0; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .quote-form-card { padding: 28px 20px; }
  .contact-form-card { padding: 28px 20px; }
  .cta-banner { padding: 60px 0; }
  .cta-banner-inner { text-align: center; }
  .cta-banner-btns { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-banner-btns .btn { width: 100%; justify-content: center; }
  .quote-steps::before { display: none; }
  .step-label { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.55rem; line-height: 1.22; }
  .hero-stat { flex: 1 1 33%; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lang-toggle .lang-label-ar { display: none; }
}

/* Logo Image Styling & Switching */
.nav-logo .logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.footer-logo .logo-img { height: 50px; width: auto; object-fit: contain; }
.loader-logo .logo-img { height: 56px; width: auto; object-fit: contain; max-width: 200px; }

/* Hide colored logo by default on transparent header */
.nav-logo .logo-color { display: none !important; }
.nav-logo .logo-white { display: block !important; }

/* Swap on scroll */
#header.scrolled .nav-logo .logo-white { display: none !important; }
#header.scrolled .nav-logo .logo-color { display: block !important; }

@media (max-width: 768px) {
  .nav-logo .logo-img { height: 34px; max-width: 150px; }
  .footer-logo .logo-img { height: 42px; }
  .loader-logo .logo-img { height: 48px; }
}

/* =====================================================
   PARTNERS SECTION
===================================================== */
.partners-section {
  padding: 80px 0;
  overflow: hidden;
  background: #fff;
}

.partners-slider-wrap {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Creating the horizontal track */
.partners-track {
  display: flex;
  width: max-content;
  animation: scrollLogo 40s linear infinite;
  will-change: transform;
}

.partner-logo {
  flex: 0 0 250px; /* Force items to be 250px wide and not shrink */
  width: 250px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}

.partner-logo img {
  max-width: 180px; /* Limit logo width */
  max-height: 70px; /* Limit logo height */
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scrollLogo {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 6)); } /* Move by half the track (6 logos) */
}

/* Pause animation on hover */
.partners-slider-wrap:hover .partners-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .partner-logo {
    flex: 0 0 180px;
    width: 180px;
    padding: 0 15px;
  }
  @keyframes scrollLogo {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 6)); }
  }
}

/* =====================================================
   GENERAL MANAGER SECTION
===================================================== */
.gm-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.gm-profile {
  text-align: center;
}

.gm-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.gm-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
  pointer-events: none;
}

.gm-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.gm-details .gm-role {
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.gm-details .gm-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 16px;
}

.gm-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.gm-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grey-100);
  color: var(--blue-dark);
  transition: all var(--transition);
}

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

.gm-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gm-message-wrap {
  position: relative;
}

.gm-message-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 24px;
}

.gm-quote {
  position: relative;
  padding: 0 40px;
}

.quote-mark {
  color: #cce0ff;
  position: absolute;
}

.quote-mark.open {
  top: -10px;
  left: 0;
}

.quote-mark.close {
  bottom: -20px;
  right: 0;
}

.gm-message-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--grey-600);
  font-style: italic;
  position: relative;
  z-index: 2;
}

html[dir="rtl"] .gm-grid {
  direction: rtl;
}

html[dir="rtl"] .gm-message-wrap .section-label {
  text-align: right !important;
}

@media (max-width: 992px) {
  .gm-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .gm-profile {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .gm-message-wrap {
    text-align: center;
  }
  
  .gm-message-wrap .section-label {
    text-align: center !important;
    justify-content: center;
  }
  
  .gm-quote {
    padding: 0 20px;
  }
}
