/* =====================================================
   MAGIC SERVICES - style.css
   Brand System: Primary Blue #36377D | Dark Blue #1E2147
   Lime Green #B8DD43 | Light Gray #F7F8F2 | Text Gray #4A4A4A
   Fonts: Cairo (AR) | Montserrat + Exo 2 (EN)
===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #36377D;
  --primary-dark: #1E2147;
  --primary-light: #4A4CB0;
  --accent: #B8DD43;
  --accent-dark: #8aab00;
  --light-bg: #F7F8F2;
  --mid-bg: #EEEEF5;
  --text-dark: #1E2147;
  --text-body: #4A4A4A;
  --text-light: #7D8181;
  --white: #ffffff;
  --border: rgba(54,55,125,0.12);

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --font-display: 'Exo 2', sans-serif;

  --shadow-sm: 0 2px 12px rgba(54,55,125,0.08);
  --shadow-md: 0 6px 30px rgba(54,55,125,0.14);
  --shadow-lg: 0 16px 60px rgba(54,55,125,0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Desktop: topbar(34px) + main-nav(68px) = 102px */
  --navbar-h: 102px;
  --mobile-nav-h: 60px;
}

/* On mobile, topbar is hidden — only 60px main nav remains */
@media (max-width: 900px) {
  :root {
    --navbar-h: 60px;
    --mobile-nav-h: 60px;
  }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* moved from body — safer for fixed children */
}

body {
  font-family: var(--font-ar);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.75;
  /* DO NOT set overflow-x:hidden on body — breaks position:fixed on iOS Safari */
}

body.en-mode {
  font-family: var(--font-en);
  direction: ltr;
}

/* Scroll lock when mobile menu is open — applied to <html> not <body>
   to avoid breaking position:fixed on iOS Safari */
html.menu-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-ar);
  color: var(--text-dark);
  line-height: 1.35;
  font-weight: 800;
}

body.en-mode h1,
body.en-mode h2,
body.en-mode h3,
body.en-mode h4 {
  font-family: var(--font-display);
}

/* ===== COMMON SECTION PATTERNS ===== */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header.light .section-eyebrow,
.section-header.light .section-title,
.section-header.light .section-subtitle {
  color: var(--white);
}

.section-eyebrow {
  display: inline-block;
  background: rgba(184,221,67,0.18);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(184,221,67,0.4);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54,55,125,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary) !important;
  padding: 11px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(54, 55, 125, 0.08);
  box-shadow: 0 2px 24px rgba(54, 55, 125, 0.07);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  /* Never clip children — overflow visible is critical for fixed mobile menu */
  overflow: visible;
}

.navbar-wrapper.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 32px rgba(54, 55, 125, 0.13);
  border-bottom-color: rgba(54, 55, 125, 0.1);
}

/* ── Top utility bar ── */
.navbar-topbar {
  background: var(--primary-dark);
  padding: 7px 0;
  overflow: hidden; /* prevent text from causing horizontal scroll */
}

.navbar-topbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.topbar-info a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.75);
  font-size: 0.76rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.topbar-info a:hover { color: var(--accent); }
.topbar-info i { color: var(--accent); font-size: 0.78rem; flex-shrink: 0; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hide email link on narrow desktop to prevent topbar overflow */
@media (max-width: 1024px) {
  .topbar-info a:nth-child(2) { display: none; }
}

/* Hide location link too on even narrower desktop */
@media (max-width: 768px) {
  .topbar-info a:nth-child(3) { display: none; }
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: var(--transition);
  background: transparent;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn-lang:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.btn-lang i { font-size: 0.82rem; }

/* ── Main nav bar ── */
.navbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Main nav */
#main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li > .nav-link {
  display: block;
  padding: 8px 11px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-dark) !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-list > li > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  right: 10px;
  left: 10px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-list > li > .nav-link:hover,
.nav-list > li > .nav-link.active {
  color: var(--primary) !important;
  background: rgba(54, 55, 125, 0.06);
}

.nav-list > li > .nav-link.active::after,
.nav-list > li > .nav-link:hover::after {
  transform: scaleX(1);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-toggle .bi-chevron-down {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-dropdown:hover .dropdown-toggle .bi-chevron-down,
.nav-dropdown.open .dropdown-toggle .bi-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu-custom {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(30, 33, 71, 0.18), 0 2px 8px rgba(30,33,71,0.06);
  border: 1px solid rgba(54, 55, 125, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}

[dir="ltr"] .dropdown-menu-custom {
  right: auto;
  left: 0;
  transform-origin: top left;
}

.nav-dropdown:hover .dropdown-menu-custom,
.nav-dropdown.open .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Dropdown accent line at top */
.dropdown-menu-custom::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px 4px 0 0;
  margin: -8px -8px 8px;
}

.dropdown-menu-custom li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s, padding 0.18s;
}

.dropdown-menu-custom li a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.18s, background 0.18s;
}

.dropdown-menu-custom li a:hover {
  background: var(--primary);
  color: var(--white);
  padding-inline-start: 18px;
}

.dropdown-menu-custom li a:hover::before {
  background: var(--white);
  opacity: 1;
}

/* Navbar action buttons (right side) */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.83rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,221,67,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(54, 55, 125, 0.3);
}

.btn-primary-nav:hover::after { opacity: 1; }

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  touch-action: manipulation;    /* eliminates 300ms tap delay on mobile */
  -webkit-tap-highlight-color: transparent; /* removes grey flash on iOS tap */
  flex-shrink: 0;
}

.mobile-menu-btn:hover { background: rgba(54,55,125,0.06); border-color: var(--primary); }

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s;
}

.mobile-menu-btn.open { background: rgba(54,55,125,0.06); border-color: var(--primary); }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SECTION ===== */
.section-hero {
  padding: 0;
  padding-top: var(--navbar-h);
  min-height: 100vh;
  background: linear-gradient(135deg, #36377D 0%, #4A4CB0 60%, #B8DD43 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--white);
}

.shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 45%; opacity: 0.04; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 0 64px;
}

.hero-content { color: var(--white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,221,67,0.2);
  border: 1px solid rgba(184,221,67,0.5);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  animation: fadeInDown 0.7s ease;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.25;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title-sub {
  display: block;
  font-size: 0.6em;
  font-weight: 500;
  opacity: 0.85;
}

.hero-accent {
  display: block;
  color: var(--accent);
  font-size: 0.75em;
  font-weight: 700;
  margin-top: 6px;
}

.hero-desc {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons .btn-primary {
  background: var(--accent);
  color: var(--primary-dark) !important;
  border-color: var(--accent);
  font-size: 1rem;
  padding: 14px 36px;
}

.hero-buttons .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 8px 25px rgba(184,221,67,0.4);
}

.hero-buttons .btn-secondary {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.6);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.trust-avatars {
  display: flex;
  align-items: center;
}

.avatar-placeholder, .avatar-more {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-inline-start: -10px;
}

.avatar-placeholder:first-child { margin-inline-start: 0; }

.avatar-placeholder:nth-child(1) { background: #36377D; color: white; }
.avatar-placeholder:nth-child(2) { background: #B8DD43; color: #1E2147; }
.avatar-placeholder:nth-child(3) { background: #4A4CB0; color: white; }
.avatar-placeholder:nth-child(4) { background: #1E2147; color: white; }

.avatar-more {
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
}

.hero-trust p {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Hero Visual */
.hero-visual { animation: fadeInRight 0.9s ease 0.2s both; }

.hero-img-wrap {
  position: relative;
}

.hero-illustration {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px;
}

.hero-svg { width: 100%; height: auto; display: block; }

.hero-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  animation: float 3s ease-in-out infinite;
}

[dir="ltr"] .hero-badge-float { right: auto; left: -20px; }

.badge-float-inner { text-align: center; }

.badge-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1;
}

.badge-text {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero-badge-float-2 {
  position: absolute;
  top: 20px;
  left: -30px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(184,221,67,0.3);
  animation: float 3s ease-in-out 1.5s infinite;
}

[dir="ltr"] .hero-badge-float-2 { left: auto; right: -30px; }

.hero-badge-float-2 i { color: var(--accent); font-size: 1rem; }

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0 20px;
  animation: fadeInUp 0.9s ease 0.5s both;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i { font-size: 1.2rem; color: var(--primary-dark); }

.stat-info h4 {
  font-size: 1.4rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-info p { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

/* ===== ABOUT SECTION ===== */
.section-about {
  background: var(--light-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-eyebrow { /* already defined */ }

.about-text .section-eyebrow {
  background: rgba(54,55,125,0.1);
  color: var(--primary);
  border-color: rgba(54,55,125,0.2);
}

.about-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 12px 0 20px;
}

.about-desc {
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-item i { color: var(--accent-dark); font-size: 1.1rem; flex-shrink: 0; }

.about-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-phone {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-phone-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-phone-icon i { color: var(--white); font-size: 1.1rem; }

.cta-label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 2px; }

.cta-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* About Visual */
.about-img-stack { position: relative; }

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main svg { width: 100%; height: auto; display: block; }

.about-exp-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: float 3.5s ease-in-out infinite;
}

[dir="ltr"] .about-exp-badge { left: auto; right: -24px; }

.exp-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.exp-text {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 4px;
}

/* ===== SERVICES SECTION ===== */
.section-services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(54,55,125,0.2);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent);
}

.service-card:hover .service-icon i {
  color: var(--primary-dark);
}

.service-icon i { color: var(--white); font-size: 1.4rem; }

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 22px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.service-link:hover { color: var(--accent-dark); gap: 10px; }

[dir="ltr"] .service-link .bi-arrow-left::before { content: "\f135"; }

/* ===== PORTFOLIO SECTION ===== */
.section-portfolio {
  background: var(--light-bg);
}

.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  background: var(--white);
  border: 2px solid var(--border);
  transition: var(--transition);
  font-family: var(--font-ar);
}

body.en-mode .tab-btn { font-family: var(--font-en); }

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.portfolio-content { position: relative; }

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active { display: block; }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.portfolio-list ul {
  columns: 2;
  gap: 20px;
}

.portfolio-list li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 10px;
  line-height: 1.6;
  break-inside: avoid;
}

.portfolio-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

[dir="ltr"] .portfolio-list li::before { right: auto; left: 0; }
[dir="ltr"] .portfolio-list li { padding-inline-start: 20px; padding-left: 20px; }

.portfolio-img-wrap { position: relative; }

.portfolio-img-placeholder {
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.95rem;
  font-weight: 700;
}

.portfolio-img-placeholder i { font-size: 3.5rem; }

.portfolio-img-placeholder.medical { background: linear-gradient(135deg, #36377D, #4A4CB0); color: white; }
.portfolio-img-placeholder.industrial { background: linear-gradient(135deg, #1E2147, #36377D); color: white; }
.portfolio-img-placeholder.tourism { background: linear-gradient(135deg, #4A4CB0, #B8DD43); color: #1E2147; }
.portfolio-img-placeholder.restaurants { background: linear-gradient(135deg, #B8DD43, #8aab00); color: #1E2147; }
.portfolio-img-placeholder.financial { background: linear-gradient(135deg, #36377D, #1E2147); color: white; }
.portfolio-img-placeholder.beauty { background: linear-gradient(135deg, #B8DD43, #36377D); color: white; }
.portfolio-img-placeholder.companies { background: linear-gradient(135deg, #1E2147, #4A4CB0); color: white; }
.portfolio-img-placeholder.pharma { background: linear-gradient(135deg, #4A4CB0, #B8DD43); color: #1E2147; }

/* ===== WHY US SECTION ===== */
.section-why {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #4A4CB0 100%);
  position: relative;
  overflow: hidden;
}

.section-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-why .section-eyebrow {
  background: rgba(184,221,67,0.18);
  color: var(--accent);
  border-color: rgba(184,221,67,0.3);
}

.section-why .section-title { color: var(--white); }
.section-why .section-subtitle { color: rgba(255,255,255,0.7); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.why-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-6px);
  border-color: rgba(184,221,67,0.4);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  transition: var(--transition);
}

.why-card:hover .why-icon { background: var(--white); }
.why-card:hover .why-icon i { color: var(--primary); }

.why-icon i { font-size: 1.5rem; color: var(--primary-dark); }

.why-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 12px;
}

.why-card p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ===== PROCESS SECTION ===== */
.section-process {
  background: var(--white);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.process-step:hover .step-number {
  background: var(--accent);
  color: var(--primary-dark);
  transform: scale(1.1);
}

.step-content {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.process-step:hover .step-content {
  box-shadow: var(--shadow-md);
  border-color: rgba(54,55,125,0.2);
}

.step-icon {
  width: 50px;
  height: 50px;
  background: rgba(54,55,125,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-icon i { font-size: 1.3rem; color: var(--primary); }

.step-content h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.step-content p { font-size: 0.87rem; color: var(--text-light); line-height: 1.7; }

.process-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 44px;
  flex-shrink: 0;
  position: relative;
}

.process-connector::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

[dir="ltr"] .process-connector::after { right: auto; left: -4px; }

/* ===== TESTIMONIALS SECTION ===== */
.section-testimonials {
  background: var(--light-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-card:hover::before { transform: scaleX(1); }

.test-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.test-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.test-header h4 { font-size: 1rem; margin-bottom: 3px; }
.test-header span { font-size: 0.82rem; color: var(--text-light); }

.test-stars { color: #F5A623; font-size: 0.9rem; margin-bottom: 16px; }
.test-stars i + i { margin-inline-start: 2px; }

.testimonial-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
}

.test-quote {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.08;
  line-height: 1;
}

[dir="ltr"] .test-quote { left: auto; right: 24px; }

/* ===== FAQ SECTION ===== */
.section-faq {
  background: var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.faq-sidebar .section-eyebrow {
  background: rgba(54,55,125,0.1);
  color: var(--primary);
  border-color: rgba(54,55,125,0.2);
}

.faq-sidebar h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 12px 0 16px;
}

.faq-sidebar p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 32px; }

.faq-cta p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(54,55,125,0.3);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
}

.faq-question:hover { background: var(--light-bg); }

.faq-item.active .faq-question { background: var(--primary); }

.faq-question h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
  transition: var(--transition);
}

.faq-item.active .faq-question h3 { color: var(--white); }

.faq-question .bi-chevron-down {
  font-size: 0.9rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question .bi-chevron-down {
  color: var(--accent);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--light-bg);
}

.faq-item.active .faq-answer { max-height: 200px; }

.faq-answer p {
  padding: 20px 24px;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ===== BOOKING SECTION ===== */
.section-booking {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.section-booking::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Crect x='0' y='0' width='40' height='40'/%3E%3Crect x='40' y='40' width='40' height='40'/%3E%3C/g%3E%3C/svg%3E");
}

.section-booking .section-eyebrow {
  background: rgba(184,221,67,0.15);
  color: var(--accent);
  border-color: rgba(184,221,67,0.3);
}

.section-booking .section-title { color: var(--white); }
.section-booking .section-subtitle { color: rgba(255,255,255,0.7); }

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* Booking Info */
.booking-info h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.booking-info > p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.contact-items { margin-bottom: 32px; }

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(184,221,67,0.15);
  border: 1px solid rgba(184,221,67,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-icon i { color: var(--accent); font-size: 1rem; }

.contact-item h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 6px; }

.contact-item p,
.contact-item a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.6;
  display: block;
  transition: var(--transition);
}

.contact-item a:hover { color: var(--accent); }

.social-row {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Booking Form */
.booking-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.booking-form-wrap h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.booking-form-wrap > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.booking-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--light-bg);
  font-family: var(--font-ar);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

body.en-mode .form-group input,
body.en-mode .form-group select,
body.en-mode .form-group textarea {
  font-family: var(--font-en);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(54,55,125,0.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-status {
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(184,221,67,0.15);
  color: var(--accent-dark);
  border: 1px solid rgba(184,221,67,0.4);
}

.form-status.error {
  display: block;
  background: rgba(220,53,69,0.08);
  color: #dc3545;
  border: 1px solid rgba(220,53,69,0.2);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-ar);
  transition: var(--transition);
  width: 100%;
  cursor: pointer;
  border: none;
}

body.en-mode .btn-submit { font-family: var(--font-en); }

.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(54,55,125,0.3); }

.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== CONTACT QUICK ===== */
.section-contact-quick {
  background: var(--white);
  padding: 60px 0;
}

.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cq-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
}

.cq-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.cq-card > i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.cq-card h3 { font-size: 1.1rem; margin-bottom: 12px; }

.cq-link {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 6px;
  transition: var(--transition);
}

.cq-link:hover { color: var(--primary); }

.cq-card p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 16px; }

.cq-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.cq-card.featured > i { color: #25D366; }
.cq-card.featured h3 { color: var(--white); }
.cq-card.featured p { color: rgba(255,255,255,0.75); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  padding: 0;
}

.footer-top { padding: 80px 0 60px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(1.2);
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-info i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

.footer-contact-info a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-contact-info a:hover { color: var(--accent); }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

[dir="ltr"] .footer-col h4::after { right: auto; left: 0; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover { color: var(--accent); padding-inline-start: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

.footer-bottom strong { color: rgba(255,255,255,0.7); }
.footer-bottom a { color: var(--accent); transition: var(--transition); }
.footer-bottom a:hover { color: var(--accent-dark); }

/* ===== SCROLL TOP ===== */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(54,55,125,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s, box-shadow 0.2s;
  z-index: 900;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
}

[dir="ltr"] #scroll-top { right: 24px; left: auto; }

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#scroll-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(184,221,67,0.4);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 900;
}

[dir="ltr"] .whatsapp-float { left: auto; right: 24px; }

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1100px) {
  .hero-grid { gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 50px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .portfolio-list ul { columns: 1; }
}

@media (max-width: 900px) {
  /* ── General layout ── */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 40px; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }
  .booking-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-quick-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-steps { flex-direction: column; align-items: center; }
  .process-connector { width: 2px; height: 40px; margin: 0; }
  .process-connector::after { top: auto; bottom: -4px; right: -4px; left: auto; }
  [dir="ltr"] .process-connector::after { right: -4px; left: auto; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* ── Hide desktop topbar, shrink main nav ── */
  .navbar-topbar { display: none !important; }
  .navbar-inner {
    height: var(--mobile-nav-h);   /* 60px — matches :root mobile override */
    padding: 0 16px;
  }

  .brand-logo img { height: 40px; }

  /* ── Hide desktop nav links, show hamburger ── */
  #main-nav {
    display: none;
    /* intentionally no !important here — we use JS class toggle below */
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .btn-whatsapp { display: none; }
  .btn-primary-nav {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* ── Mobile slide-in menu panel ──
     Uses position:fixed relative to the VIEWPORT, not the header.
     top = --mobile-nav-h (60px) to sit flush under the header.
     z-index 1050 > header 1000.
     No overflow:hidden on any ancestor — safe for iOS Safari.
  ── */
  #main-nav.open {
    display: flex;
    position: fixed;
    top: var(--mobile-nav-h);      /* 60px */
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 40px rgba(30, 33, 71, 0.22);
    animation: mobileMenuIn 0.25s ease both;
  }

  #main-nav.open .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 12px 24px;
    gap: 2px;
    list-style: none;
    margin: 0;
  }

  #main-nav.open .nav-list > li {
    width: 100%;
    list-style: none;
  }

  #main-nav.open .nav-list > li > .nav-link {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark) !important;
    border-radius: 8px;
    background: transparent;
    text-align: right;
    white-space: normal;
  }

  [dir="ltr"] #main-nav.open .nav-list > li > .nav-link {
    text-align: left;
  }

  #main-nav.open .nav-list > li > .nav-link:hover,
  #main-nav.open .nav-list > li > .nav-link.active {
    background: rgba(54, 55, 125, 0.07);
    color: var(--primary) !important;
  }

  #main-nav.open .nav-list > li > .nav-link::after { display: none; }

  /* Dropdown sub-items: always visible inline on mobile */
  #main-nav.open .nav-dropdown .dropdown-menu-custom {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 20px;
    background: transparent;
    margin: 0;
    min-width: auto;
    width: 100%;
  }

  [dir="ltr"] #main-nav.open .nav-dropdown .dropdown-menu-custom {
    padding: 0 0 8px 20px;
  }

  #main-nav.open .dropdown-menu-custom::before { display: none; }

  #main-nav.open .dropdown-menu-custom li a {
    padding: 9px 14px;
    font-size: 0.88rem;
    color: var(--text-light);
    border-radius: 6px;
  }

  #main-nav.open .dropdown-menu-custom li a:hover,
  #main-nav.open .dropdown-menu-custom li a:active {
    background: rgba(54, 55, 125, 0.06);
    color: var(--primary);
  }

  /* Mobile lang row */
  .mobile-lang-row {
    display: flex !important;
    align-items: center;
    padding: 16px 16px 24px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
  }
}

/* Backdrop — outside the media query so it can be displayed on any viewport */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(30, 33, 71, 0.4);
  z-index: 1040;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.active {
  display: block;
  animation: backdropIn 0.22s ease both;
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .booking-form-wrap { padding: 28px 22px; }
  .portfolio-tabs { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 0.8rem; }
  .portfolio-grid { padding: 24px 20px; }
  .hero-buttons .btn-primary { padding: 13px 26px; }
}

/* ===== ENGLISH MODE ADJUSTMENTS ===== */
body.en-mode .service-link .bi-arrow-left::before { content: "\F135"; } /* arrow-right */

body.en-mode .portfolio-list li::before { right: auto; left: 0; }
body.en-mode .portfolio-list li { padding-left: 20px; padding-right: 0; }

body.en-mode .footer-col h4::after { right: auto; left: 0; }
body.en-mode .dropdown-menu-custom { right: auto; left: 0; transform-origin: top left; }
/* In LTR: scroll-top on right, whatsapp on left — same as RTL actually, both stay in their corners */
body.en-mode #scroll-top { right: 24px; left: auto; }
body.en-mode .whatsapp-float { left: 24px; right: auto; }
body.en-mode .about-exp-badge { left: auto; right: -24px; }
body.en-mode .hero-badge-float { right: auto; left: -20px; }
body.en-mode .hero-badge-float-2 { left: auto; right: -30px; }
body.en-mode .process-connector::after { right: -4px; left: auto; }