﻿/* ============================================================
   TRON SOLUTIONS — Professional Corporate-Industrial Theme
   Version: 3.0
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand colours */
  --primary:       #1B4FD8;
  --primary-dark:  #1340B0;
  --primary-light: #EEF3FF;
  --accent:        #F97316;
  --accent-dark:   #EA6B0A;
  --accent-light:  #FFF3E8;

  /* Neutrals */
  --dark:          #0F172A;
  --dark-mid:      #1E293B;
  --body-bg:       #F8FAFC;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5F9;
  --border:        #E2E8F0;
  --border-light:  #F0F4F8;
  --text:          #334155;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --white:         #FFFFFF;

  /* Status */
  --success:       #10B981;
  --success-light: #ECFDF5;
  --warning:       #F59E0B;
  --warning-light: #FFFBEB;
  --danger:        #EF4444;
  --danger-light:  #FEF2F2;
  --info:          #3B82F6;
  --info-light:    #EFF6FF;

  /* Typography */
  --font-main:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic:   'Noto Sans Arabic', sans-serif;

  /* Spacing */
  --section-py:    96px;
  --section-py-sm: 64px;
  --section-py-xs: 48px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 24px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 48px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.10), 0 12px 32px rgba(0,0,0,0.08);

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transition */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;

  /* Primary RGB (for rgba() computed colours) */
  --primary-rgb: 27, 79, 216;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body.rtl,
[dir="rtl"] {
  font-family: var(--font-arabic), var(--font-main);
  direction: rtl;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { color: var(--text); line-height: 1.7; }

.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-dark     { color: var(--dark) !important; }
.text-white    { color: var(--white) !important; }
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}
.section-sm { padding: var(--section-py-sm) 0; }
.section-xs { padding: var(--section-py-xs) 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header .section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Grid helpers */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-main);
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: 0.875rem; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(27,79,216,0.35);
}

.btn-secondary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-secondary:hover {
  background: var(--dark-mid);
  border-color: var(--dark-mid);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--dark);
  border-color: var(--border);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,216,0.12);
}
.form-control::placeholder { color: var(--text-light); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

.form-hint {
  margin-top: 5px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.invalid-feedback {
  display: block;
  margin-top: 5px;
  font-size: 0.8125rem;
  color: var(--danger);
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.card-body { padding: 28px; }
.card-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.card-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ── Badges / Tags ───────────────────────────────────────────── */
.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}
.badge-primary, .tag-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent,  .tag-accent  { background: var(--accent-light);  color: var(--accent-dark); }
.badge-success               { background: var(--success-light); color: var(--success); }
.badge-warning               { background: var(--warning-light); color: var(--warning); }
.badge-danger                { background: var(--danger-light);  color: var(--danger); }
.badge-neutral               { background: var(--surface-2);     color: var(--text-muted); }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-light); color: #065F46; border-color: #A7F3D0; }
.alert-error   { background: var(--danger-light);  color: #991B1B; border-color: #FECACA; }
.alert-warning { background: var(--warning-light); color: #92400E; border-color: #FDE68A; }
.alert-info    { background: var(--info-light);    color: #1E40AF; border-color: #BFDBFE; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo img {
  height: 54px;
  width: auto;
  transition: opacity .2s;
}
.logo:hover img { opacity: .85; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--primary); }

.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-link i { font-size: 0.75em; opacity: 0.7; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.header-cta { white-space: nowrap; }

/* Mega-menu / Dropdown */
.has-dropdown { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 16px;
  min-width: 680px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(6px);
}
.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mega-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.mega-col-header i { color: var(--accent); }
.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.mega-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.mega-link i { width: 16px; text-align: center; color: var(--text-light); }
.mega-link:hover i { color: var(--primary); }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-toggle:hover { background: var(--surface-2); }
.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 90vw);
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  transition: right var(--transition-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { right: 0; }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}
.mobile-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: none; border-radius: var(--radius-sm);
  color: var(--text); cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.mobile-close:hover { background: var(--danger-light); color: var(--danger); }
.mobile-menu-body { padding: 16px 24px; flex: 1; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-list li a {
  display: block;
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
}
.mobile-nav-list li a:hover { background: var(--primary-light); color: var(--primary); }
.mobile-services-list { padding-left: 12px; }
.mobile-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  padding: 10px 14px 4px;
}
.mobile-cta {
  margin: 16px 0;
  width: 100%;
  justify-content: center;
}
.mobile-lang {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* RTL mobile menu */
[dir="rtl"] .mobile-menu { right: auto; left: -100%; }
[dir="rtl"] .mobile-menu.open { left: 0; }

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--body-bg);
}
/* CSS grid pattern background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,79,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,79,216,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27,79,216,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.hero-badge .badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(2.125rem, 5vw, 3.375rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-title .highlight { color: var(--primary); }
.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero visual (right column) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.hero-robot-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(27,79,216,0.15));
  animation: robotFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* Hero background layer elements */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 40%, rgba(27,79,216,.07), transparent 44%);
  z-index: 1;
  pointer-events: none;
}
.hero-visual-glow {
  position: absolute;
  bottom: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(27,79,216,.12), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Floating stat cards */
.hero-float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  animation: float-card 4s ease-in-out infinite;
}
.hero-float-card:nth-child(2) { animation-delay: 1.5s; }
.hero-float-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.hero-float-card-icon.accent { background: var(--accent-light); color: var(--accent); }
.hero-float-card strong { display: block; font-size: 1rem; font-weight: 700; color: var(--dark); }
.hero-float-card span   { font-size: 0.8rem; color: var(--text-muted); }
.hero-float-1 { top: 5%;  left: -10%; }
.hero-float-2 { bottom: 8%; right: -8%; }

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

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

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1);   opacity: .45; }
  50%       { transform: translateY(-26px) scale(1.5); opacity: .85; }
}

/* All hero content visible immediately (no JS needed) */
.hero .animate-up,
.hero-section .animate-up {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── Stats Strip ──────────────────────────────────────────────── */
.stats-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stats-strip-item {
  padding: 8px 24px;
  border-right: 1px solid var(--border);
}
.stats-strip-item:last-child { border-right: none; }
.stats-strip-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stats-strip-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Service Cards ────────────────────────────────────────────── */
.services-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.service-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.service-tab:hover { border-color: var(--primary); color: var(--primary); }
.service-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.service-panel { display: none; }
.service-panel.active { display: block; }
.service-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--primary);
}
.service-card-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.service-card:hover .service-card-icon {
  background: var(--primary-light);
  color: var(--primary);
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin: 0;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}
.service-card:hover .service-card-link { gap: 10px; }

/* ── Trust/Features Section ──────────────────────────────────── */
.trust-section { background: var(--primary-light); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27,79,216,0.1);
}
.trust-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.trust-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.trust-card p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── Process Section ─────────────────────────────────────────── */
.process-section { background: var(--surface-2); }
.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-rail::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.process-step { text-align: center; position: relative; }
.process-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--primary-light);
}
.process-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ── Projects Grid ───────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface-2);
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-image img { transform: scale(1.05); }
.project-content { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.project-industry {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.project-content h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.project-content p  { font-size: 0.875rem; color: var(--text-muted); flex: 1; }
.project-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
  margin-top: 8px;
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial-author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.author-company { font-size: 0.8125rem; color: var(--text-muted); }

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-section { background: var(--dark); }
.cta-inner {
  text-align: center;
  padding: 80px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 { color: var(--white); margin-bottom: 16px; }
.cta-inner p  { color: rgba(255,255,255,0.72); margin-bottom: 36px; }
.cta-actions { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   FOOTER — Pro Grade v2.0
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #0B1628;
  color: rgba(255,255,255,.62);
  position: relative;
}

/* ── CTA strip ──────────────────────────────────────────────── */
.footer-cta-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #1340B0 0%, #1b4fd8 55%, #1e40af 100%);
}
.footer-cta-strip-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.07) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(0,0,0,.12) 0%, transparent 40%);
  pointer-events: none;
}
.footer-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 0;
  position: relative;
  z-index: 1;
}
.footer-cta-text { flex: 1; min-width: 200px; }
.footer-cta-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
.footer-cta-text h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 5px;
  line-height: 1.3;
}
.footer-cta-text p {
  color: rgba(255,255,255,.7);
  margin: 0;
  font-size: .875rem;
}
.footer-cta-btn { flex-shrink: 0; }

/* ── Accent bar ─────────────────────────────────────────────── */
.footer-accent-bar {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--primary) 25%,
    #60a5fa 50%,
    var(--primary) 75%,
    transparent 100%);
}

/* ── Main body ──────────────────────────────────────────────── */
.footer-body { padding: 64px 0 52px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr 1.35fr 1.5fr;
  gap: 48px;
}

/* Brand column */
.footer-brand {}

/* ── Logo block ─────────────────────────────────────────────── */
.footer-logo-block {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}

.footer-logo img {
  height: 72px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(27,79,216,.5));
  transition: filter .3s, transform .3s;
}
.footer-logo-block:hover img {
  filter: drop-shadow(0 4px 24px rgba(27,79,216,.7));
  transform: translateY(-1px);
}

/* Text fallback when image fails */
.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.footer-logo-wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  font-family: var(--font-heading);
}
.footer-logo-wordmark span { color: var(--primary); }
.footer-logo-sub {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-top: 3px;
}

/* Separator line below logo */
.footer-logo-sep {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
  margin: 18px 0 20px;
}

.footer-tagline {
  font-size: .875rem;
  line-height: 1.72;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  max-width: 290px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}
.fbadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(27,79,216,.15);
  border: 1px solid rgba(27,79,216,.3);
  color: #93c5fd;
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .03em;
}
.fbadge i { font-size: .6rem; color: #60a5fa; }

.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.fsocial {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  text-decoration: none;
  transition: background .22s, color .22s, border-color .22s, transform .22s;
}
.fsocial:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.fsocial-wa:hover { background: #25D366; border-color: #25D366; }

/* Column generic */
.footer-col {}

.footer-col-title {
  font-size: .7125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 26px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Nav links */
.footer-nav {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s, gap .2s, padding-left .2s;
}
.footer-nav a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width .2s;
  margin-right: 0;
  flex-shrink: 0;
}
.footer-nav a:hover {
  color: #fff;
  gap: 8px;
}
.footer-nav a:hover::before { width: 12px; margin-right: 0; }

/* Contact list */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.footer-contact-link { transition: color .2s; }
.footer-contact-link:hover { color: #fff; }
.footer-contact-link:hover .fci-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.fci-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(27,79,216,.15);
  border: 1px solid rgba(27,79,216,.25);
  display: flex; align-items: center; justify-content: center;
  color: #93c5fd;
  font-size: .8rem;
  flex-shrink: 0;
  transition: background .22s, border-color .22s, color .22s;
}
.fci-text {
  display: flex;
  flex-direction: column;
  padding-top: 1px;
}
.fci-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.32);
  margin-bottom: 2px;
}
.fci-value {
  font-size: .875rem;
  color: rgba(255,255,255,.68);
  line-height: 1.45;
}

/* ── Bottom bar ─────────────────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  background: rgba(0,0,0,.2);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.32);
  margin: 0;
}
.footer-bottom-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  letter-spacing: .04em;
}
.footer-tech-badge i { color: rgba(255,255,255,.25); font-size: .65rem; }
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a {
  font-size: .8rem;
  color: rgba(255,255,255,.32);
  text-decoration: none;
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.75); }

/* Floating contact */
.floating-contact {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}
.floating-contact-link {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}
.floating-contact-link:hover { transform: scale(1.1); color: var(--white); }
.float-quote { background: var(--primary); }
.float-whatsapp { background: #25D366; }

.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

[dir="rtl"] .floating-contact { right: auto; left: 24px; }
[dir="rtl"] .back-to-top  { left: auto; right: 24px; }

/* ── Page Hero (inner pages) ──────────────────────────────────── */
.page-hero {
  background: var(--primary-light);
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(27,79,216,0.1);
  margin-top: var(--header-height);
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 10px; }
.page-hero p   { color: var(--text-muted); }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 12px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb-sep { color: var(--text-light); }

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

/* ── Preloader ───────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.12em;
}

/* ── Animate on scroll ───────────────────────────────────────── */
.animate-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero and above-fold: always visible */
.hero .animate-up,
.hero-section .animate-up,
.site-header .animate-up {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
/* Stagger */
.animate-up:nth-child(2) { transition-delay: 0.08s; }
.animate-up:nth-child(3) { transition-delay: 0.16s; }
.animate-up:nth-child(4) { transition-delay: 0.24s; }
.animate-up:nth-child(5) { transition-delay: 0.32s; }

/* Fallback: show when JS disabled */
noscript .animate-up { opacity: 1 !important; transform: none !important; }

/* ── Misc Utilities ──────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }
.rounded { border-radius: var(--radius-lg); }
.overflow-hidden { overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── RTL Adjustments ─────────────────────────────────────────── */
[dir="rtl"] .mega-menu { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .mega-menu:hover { transform: translateX(50%) translateY(0); }
[dir="rtl"] .process-rail::before { left: auto; right: calc(12.5% + 28px); }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-col-title::after { left: auto; right: 0; }
[dir="rtl"] .footer-nav a::before { margin-right: 0; margin-left: 0; }
[dir="rtl"] .footer-cta-inner { flex-direction: row-reverse; }

/* ── Responsive ──────────────────────────────────────────────── */

/* 1200px — large tablet */
@media (max-width: 1200px) {
  .service-panel-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-tagline { max-width: 100%; }
}

/* 1024px — tablet landscape */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-cta { display: none; }
  .lang-switcher { display: none; }

  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .mega-menu { display: none; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .process-rail { grid-template-columns: repeat(2, 1fr); }
  .process-rail::before { display: none; }
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stats-strip-item:nth-child(2) { border-right: none; }
  .stats-strip-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stats-strip-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768px — tablet portrait */
@media (max-width: 768px) {
  :root { --section-py: 56px; --section-py-sm: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-panel-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; display: block; }
  .footer-tagline { max-width: 100%; }
  .services-tabs { gap: 6px; }
  .service-tab span { display: none; }
}

/* 640px — large phone */
@media (max-width: 640px) {
  :root { --section-py: 48px; --section-py-sm: 32px; }
  .service-panel-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .process-rail { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; display: block; }
  .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom-badges { display: none; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-cta-btn { align-self: stretch; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
}

/* 480px — small phone */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .service-tab { padding: 8px 14px; font-size: 0.8125rem; }
  .lang-switcher { display: flex; }
}

/* ── Responsive extras (contact, quote, service-detail inline grids) ─── */

/* Contact page 2-col → 1-col on tablet */
@media (max-width: 900px) {
  /* contact 2-col */
  .contact-2col { grid-template-columns: 1fr !important; }
  /* service detail sidebar */
  .svc-detail-grid { grid-template-columns: 1fr !important; }
  aside .card { position: static !important; }
}

/* Quote form grid → 1-col on small screens */
@media (max-width: 600px) {
  .form-2col { grid-template-columns: 1fr !important; }
  .service-tab span { display: inline !important; font-size: 0.8rem; }
  .hero-float-1, .hero-float-2 { display: none; }
}

/* RTL adjustments */
[dir="rtl"] .breadcrumb-sep i.fa-chevron-right { transform: scaleX(-1); }
[dir="rtl"] .service-card-link i,
[dir="rtl"] .project-link i { transform: scaleX(-1); }
[dir="rtl"] .btn i.fa-arrow-right { transform: scaleX(-1); }
[dir="rtl"] .hero-float-1 { left: auto; right: -10%; }
[dir="rtl"] .hero-float-2 { right: auto; left: -8%; }
[dir="rtl"] .process-rail::before { left: auto; right: calc(12.5% + 28px); }
/* Tab panel fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive: collapse 2-col inner-page layouts */
@media (max-width: 900px) {
  .inner-2col       { grid-template-columns: 1fr !important; }
  .inner-2col aside { position: static !important; }
  .contact-info-col { order: -1; }
}
@media (max-width: 640px) {
  .form-row-2col    { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PRO-GRADE ADDITIONS v1.0  (appended — do not remove)
   All variables from theme.css v3.2
   ═══════════════════════════════════════════════════════════════ */

/* ── Project art fallback (no image uploaded) ─────────────────── */
.project-art {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 55%, var(--primary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.project-art::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.project-art::after {
  content: '';
  position: absolute; bottom: -60px; left: -30px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.project-art-grid, .project-art-line { display: none; }
.project-art > i {
  font-size: 2.25rem;
  color: rgba(255,255,255,0.75);
  position: relative; z-index: 1;
}
.project-art > span {
  font-size: 0.8125rem; font-weight: 600;
  color: rgba(255,255,255,0.6);
  position: relative; z-index: 1;
  max-width: 180px; line-height: 1.4;
}
.project-art-fallback { width: 100%; height: 100%; }

/* ── Testimonial art fallback (no client photo) ───────────────── */
.testimonial-art {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-art-ring { display: none; }

/* ── Enhanced project card hover (projects.php) ───────────────── */
.project-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.11), 0 2px 8px rgba(0,0,0,.05) !important;
  transform: translateY(-5px) !important;
  border-color: var(--primary-light) !important;
}
.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%);
  display: flex; align-items: center; justify-content: center;
}
.project-image > div {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%) !important;
  color: rgba(255,255,255,.6) !important;
}

/* trust-card hover is defined in home.php inline <style> — no override here */

/* ── CTA banner — rounded card (about/contact) ────────────────── */
.cta-section {
  background: var(--body-bg) !important;
  padding: 64px 0;
}
.cta-section .cta-inner {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a8a 100%) !important;
  border-radius: var(--radius-xl) !important;
  padding: 64px 40px !important;
  max-width: 100% !important;
  position: relative;
  overflow: hidden;
}
.cta-section .cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 50%, rgba(27,79,216,.3) 0%, transparent 55%);
  pointer-events: none;
}
.cta-section .cta-inner h2,
.cta-section .cta-inner h2 * { color: #fff !important; }
.cta-section .cta-inner p  { color: rgba(255,255,255,.72) !important; }
.cta-section .cta-actions  { position: relative; z-index: 1; }

/* ── Stats strip — more prominent ────────────────────────────── */
.stats-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-strip-number {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-strip-label { font-weight: 600 !important; }

/* ── Page hero — slightly richer ─────────────────────────────── */
.page-hero {
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--border-light);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
  color: var(--dark);
}

/* ── Card — uniform light-theme appearance ────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* ── Section header — consistent across all pages ─────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-header .section-tag { display: inline-block; margin-bottom: 12px; }
.section-header h2 { color: var(--dark); margin-bottom: 12px; }
.section-header p  { color: var(--text-muted); font-size: .9375rem; line-height: 1.7; }

/* ── Form elements — pro styling ─────────────────────────────── */
.form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(27,79,216,.12) !important;
  outline: none;
}
.form-label { font-size: .875rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; display: block; }

/* ── About page — story/method visual ────────────────────────── */
.about-step {
  display: flex; gap: 18px; padding: 18px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: box-shadow .2s, transform .2s;
}
.about-step:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transform: translateX(4px);
}
.about-step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(27,79,216,.3);
}

/* ── Contact info cards ───────────────────────────────────────── */
.contact-info-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
}
.contact-info-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  transform: translateX(4px);
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 3px; }
.contact-info-value { font-size: .9375rem; font-weight: 600; color: var(--dark); }

/* ── Pro tilt — full hover transform ─────────────────────────── */
.pro-tilt {
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.pointer-active .pro-tilt:hover {
  transform: perspective(900px)
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg))
    translateY(-4px);
}

/* ── RTL: trust section tinted panel flips to left ───────────── */
[dir="rtl"] .trust-section::after {
  right: auto;
  left: 0;
}
[dir="rtl"] .trust-copy { padding-right: 0; padding-left: 8px; }
[dir="rtl"] .trust-cta-link:hover i { transform: translateX(-3px); }

/* ── Grid-2 ───────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}
@media(max-width:680px){ .grid-2 { grid-template-columns: 1fr; } }