/* =============================================
   KYIANAT LOGISTICS — Official Brand Color System
   Primary:    #7B2D7C  (Purple)
   Dark:       #6A256B  (Dark Purple)
   Accent:     #F36C21  (Orange)
   Background: #F1F1F1
   Cards:      #FFFFFF
   Text:       #1A1A1A / #6B6B6B
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ---- CSS Variables (Brand Palette) ---- */
:root {
  --primary:        #7B2D7C;
  --primary-dark:   #6A256B;
  --primary-light:  #9d4a9e;
  --primary-pale:   #f5edf5;
  --primary-soft:   #e8d0e8;

  --accent:         #F36C21;
  --accent-hover:   #d95c18;
  --accent-light:   #fde9d9;

  --bg:             #F1F1F1;
  --white:          #FFFFFF;
  --gray-50:        #f9f9f9;
  --gray-100:       #f1f1f1;
  --gray-200:       #e2e2e2;
  --gray-400:       #a0a0a0;
  --gray-600:       #6B6B6B;
  --gray-900:       #1A1A1A;

  --font-sans:   'Inter', Arial, Helvetica, sans-serif;
  --font-arabic: 'Tajawal', Arial, sans-serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

[dir="rtl"] { --font-sans: 'Tajawal', Arial, sans-serif; }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---- Typography ---- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.eyebrow-dark { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.15; }
.display-1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.02em; }
.display-2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.display-3 { font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -.01em; }
.title     { font-size: 22px; font-weight: 700; }
.subtitle  { font-size: 18px; color: var(--gray-600); line-height: 1.7; }

.text-white  { color: var(--white)    !important; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--gray-600); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* Primary — purple bg, white text → orange on hover */
.btn-lime,
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-lime:hover,
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

/* Secondary / Green — mapped to primary */
.btn-green {
  background: var(--primary);
  color: var(--white);
}
.btn-green:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Accent button */
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Outline white — for dark backgrounds */
.btn-outline-white {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--gray-200);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---- Badges / Tags ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.badge-green,
.badge-primary  { background: var(--primary-pale);  color: var(--primary); }
.badge-lime,
.badge-accent   { background: var(--accent-light);  color: var(--accent-hover); }
.badge-dark     { background: var(--primary-dark);  color: var(--white); }

/* =============================================
   HEADER — #7B2D7C background
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
  color: var(--white);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: all .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.lang-switcher a {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255,255,255,.7);
  transition: all .2s;
}
.lang-switcher a.active,
.lang-switcher a:hover {
  background: var(--accent);
  color: var(--white);
}

/* =============================================
   HERO — dark primary background
   ============================================= */
.hero {
  background: var(--primary);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(243,108,33,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(106,37,107,.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243,108,33,.18);
  border: 1px solid rgba(243,108,33,.35);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1         { color: var(--white); margin-bottom: 20px; }
.hero h1 span    { color: var(--accent); }
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  letter-spacing: -.02em;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.55); }

/* Hero Visual Cards */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hero-card-title { font-weight: 700; color: var(--white); font-size: 15px; }
.hero-card-sub   { font-size: 12px; color: rgba(255,255,255,.5); }
.hero-card-body  { font-size: 13px; color: rgba(255,255,255,.65); }
.hero-card-tags  {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.hero-card-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 100px;
  background: rgba(243,108,33,.18);
  color: var(--accent);
  font-weight: 600;
}

/* Route Bar */
.route-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.route-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.route-dot.active  { background: var(--accent); box-shadow: 0 0 0 4px rgba(243,108,33,.3); }
.route-dot.passive { background: rgba(255,255,255,.3); }
.route-line {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.3) 0, rgba(255,255,255,.3) 6px,
    transparent 6px, transparent 12px
  );
}
.route-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: var(--gray-600); font-weight: 500; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header          { margin-bottom: 56px; }
.section-header.center   { text-align: center; }
.section-header h2       { margin-bottom: 16px; }
.section-header p        { font-size: 18px; color: var(--gray-600); max-width: 560px; }
.section-header.center p { margin: 0 auto; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .25s ease;
}
.card:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: background .2s;
}
.card:hover .card-icon-wrap { background: var(--primary-soft); }

.card h3    { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.card p     { font-size: 14px; color: var(--gray-600); line-height: 1.7; }
.card-link  {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  margin-top: 20px;
  transition: gap .2s, color .2s;
}
.card:hover .card-link { gap: 10px; color: var(--accent); }

/* Dark card variant — used for highlights */
.card-dark {
  background: var(--primary);
  border-color: rgba(255,255,255,.06);
  color: var(--white);
}
.card-dark h3 { color: var(--white); }
.card-dark p  { color: rgba(255,255,255,.65); }
.card-dark .card-icon-wrap { background: rgba(255,255,255,.1); }
.card-dark:hover { border-color: var(--accent); }
.card-dark .card-link { color: var(--accent); }

/* Accent card variant */
.card-lime,
.card-accent {
  background: var(--accent-light);
  border-color: rgba(243,108,33,.2);
}
.card-lime h3,
.card-accent h3 { color: var(--gray-900); }
.card-lime p,
.card-accent p  { color: rgba(26,26,26,.7); }

/* Grid Layouts */
.grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* =============================================
   SERVICE FEATURE SECTIONS
   ============================================= */
.service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-feature:last-child { border-bottom: none; }
.service-feature.reverse { direction: rtl; }
.service-feature.reverse > * { direction: ltr; }
[dir="rtl"] .service-feature.reverse { direction: ltr; }
[dir="rtl"] .service-feature.reverse > * { direction: rtl; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.feature-tag {
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  background: var(--primary-pale);
  color: var(--primary);
  border: 1px solid var(--primary-soft);
}

.feature-visual {
  background: var(--primary-pale);
  border: 2px dashed var(--primary-soft);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  justify-content: center;
}
.feature-visual-icon  { font-size: 64px; text-align: center; }
.feature-visual-label { text-align: center; font-size: 18px; font-weight: 700; color: var(--primary); }
.feature-visual-sub   { text-align: center; font-size: 14px; color: var(--gray-600); }

/* =============================================
   INDUSTRY CARDS
   ============================================= */
.industry-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all .25s;
}
.industry-card:hover {
  background: var(--primary-pale);
  border-color: var(--primary-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.industry-card .icon { font-size: 36px; margin-bottom: 12px; }
.industry-card h3    { font-size: 15px; font-weight: 600; color: var(--gray-900); }

/* =============================================
   GLOBAL NETWORK SECTION — dark primary bg
   ============================================= */
.network-section {
  background: var(--primary-dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.network-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.network-map {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 48px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
.network-nodes { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.network-node {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.network-node-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.network-node-dot.origin { background: var(--accent); box-shadow: 0 0 0 3px rgba(243,108,33,.3); }
.network-node-dot.dest   { background: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.network-node-info   { flex: 1; }
.network-node-name   { font-size: 14px; font-weight: 700; color: var(--white); }
.network-node-role   { font-size: 12px; color: rgba(255,255,255,.5); }

/* =============================================
   FAQ / ACCORDION
   ============================================= */
.faq-section { background: var(--bg); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--primary-soft); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; cursor: pointer;
  font-weight: 600; font-size: 16px;
  color: var(--gray-900);
  user-select: none;
}
.faq-q:hover { color: var(--primary); }
.faq-q-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; flex-shrink: 0;
  transition: all .2s;
}
.faq-item.open .faq-q-icon {
  background: var(--accent);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-a-inner { padding: 0 28px 24px; font-size: 15px; color: var(--gray-600); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 300px; }

/* =============================================
   TESTIMONIALS — dark primary bg
   ============================================= */
.testimonials-section { background: var(--primary); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.testimonial-quote {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: var(--white);
}
.testimonial-name { font-weight: 700; color: var(--white); font-size: 14px; }
.testimonial-role { font-size: 12px; color: rgba(255,255,255,.45); }

/* =============================================
   CTA BANNER — accent orange background
   ============================================= */
.cta-section {
  background: var(--accent);
  padding: 96px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  {
  color: rgba(255,255,255,.85);
  font-size: 18px; margin-bottom: 36px;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.cta-section .btn-green,
.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
}
.cta-section .btn-green:hover,
.cta-section .btn-primary:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
}
.cta-section .btn-ghost {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.cta-section .btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: var(--white);
  position: sticky;
  top: 96px;
}
.contact-info-card h2 { color: var(--white); margin-bottom: 16px; }
.contact-info-card p  { color: rgba(255,255,255,.65); margin-bottom: 36px; }
.contact-detail {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-detail-label { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 2px; }
.contact-detail-value { font-size: 14px; color: var(--white); font-weight: 500; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 48px;
}
.form-grid-2      { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group       { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-900); margin-bottom: 8px;
}
.form-control {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 15px;
  color: var(--gray-900); background: var(--bg);
  transition: all .2s; outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(123,45,124,.12);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-submit { width: 100%; justify-content: center; }

#formResponse {
  margin-top: 16px; padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; display: none;
}
#formResponse.success { background: var(--primary-pale); color: var(--primary);  display: block; }
#formResponse.error   { background: #fef2f2;             color: #dc2626; display: block; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero { background: var(--primary); padding: 80px 0; }
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* PAGE HERO (inner pages) */
.page-hero { background: var(--primary); padding: 72px 0; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 18px; max-width: 560px; }

/* =============================================
   FOOTER — #6A256B background
   ============================================= */
.site-footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,.55);
  max-width: 280px; line-height: 1.7; margin-top: 16px;
}
.footer-col h4 {
  font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 20px;
}
.footer-col ul li          { margin-bottom: 12px; }
.footer-col ul li a        { font-size: 14px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col ul li a:hover  { color: var(--accent); }
.footer-col .contact-line  { font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.35);
}

/* =============================================
   RTL SUPPORT
   ============================================= */
[dir="rtl"] .hero-inner      { direction: rtl; }
[dir="rtl"] .header-inner    { flex-direction: row-reverse; }
[dir="rtl"] .btn-group       { flex-direction: row-reverse; }
[dir="rtl"] .hero-stats      { flex-direction: row-reverse; }
[dir="rtl"] .card-link       { flex-direction: row-reverse; }
[dir="rtl"] .network-inner   { flex-direction: row; }
[dir="rtl"] .contact-layout  { direction: rtl; }
[dir="rtl"] .about-story     { direction: rtl; }
[dir="rtl"] .footer-grid     { direction: rtl; }
[dir="rtl"] .form-grid-2     { direction: rtl; }
[dir="rtl"] .service-feature { direction: rtl; }
[dir="rtl"] .service-feature > * { direction: rtl; }
[dir="rtl"] .section-header p { text-align: right; }
[dir="rtl"] .section-header.center p { text-align: center; }

/* =============================================
   RESPONSIVE — 4-BREAKPOINT SYSTEM
   1200px | 1024px | 768px | 480px
   ============================================= */

/* --------------------------------------------------
   ≤ 1200px  –  Wide tablet / small desktop
   -------------------------------------------------- */
@media (max-width: 1200px) {
  .container { padding: 0 24px; }

  .hero-inner    { gap: 48px; }
  .network-inner { gap: 48px; }
  .about-story   { gap: 48px; }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
  }
  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .grid-4    { grid-template-columns: repeat(2, 1fr); }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .contact-layout { gap: 40px; }

  .service-feature { gap: 48px; }
}

/* --------------------------------------------------
   ≤ 1024px  –  Tablet landscape / small laptop
   -------------------------------------------------- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }

  /* Typography */
  .display-1 { font-size: clamp(36px, 5vw, 52px); }
  .display-2 { font-size: clamp(28px, 4vw, 40px); }
  .display-3 { font-size: clamp(22px, 3vw, 32px); }
  body       { font-size: 15px; }

  /* Sections */
  .section    { padding: 72px 0; }
  .section-sm { padding: 48px 0; }

  /* Hero */
  .hero       { padding: 80px 0 100px; }
  .hero-inner { gap: 36px; }
  .hero-sub   { font-size: 16px; }

  /* Grids */
  .grid-3        { grid-template-columns: repeat(2, 1fr); }
  .network-inner { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Cards */
  .card    { padding: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .footer-brand { grid-column: 1 / -1; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-info-card { padding: 36px; top: 88px; }
  .contact-form-card { padding: 36px; }

  /* About */
  .about-story { gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Service features */
  .service-feature { gap: 40px; padding: 48px 0; }
  .feature-visual  { padding: 36px; min-height: 240px; }

  /* Stats */
  .stat-num   { font-size: 40px; }
  .stats-grid { gap: 20px; }
}

/* --------------------------------------------------
   ≤ 768px  –  Tablet portrait / large phone
   -------------------------------------------------- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Typography */
  .display-1 { font-size: 36px; }
  .display-2 { font-size: 28px; }
  .display-3 { font-size: 22px; }
  .subtitle  { font-size: 16px; }
  body       { font-size: 15px; }

  /* Section spacing */
  .section    { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
  .section-header { margin-bottom: 36px; }

  /* ---- HEADER ---- */
  .site-header .container { padding: 0 16px; }
  .header-inner {
    display: grid;
    grid-template-areas:
      "logo right"
      "nav  nav";
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 14px 0;
    gap: 12px;
    align-items: center;
  }
  .logo           { grid-area: logo; }
  .header-right   { grid-area: right; }
  .main-nav {
    grid-area: nav;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 10px;
  }
  .main-nav a { padding: 8px 12px; font-size: 13px; }

  /* ---- HERO ---- */
  .hero       { padding: 56px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .hero h1    { font-size: 36px; }
  .hero-sub   { font-size: 15px; margin-bottom: 28px; }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px 32px;
    margin-top: 36px;
    padding-top: 28px;
  }
  .hero-stat-num { font-size: 26px; }

  /* ---- STATS STRIP ---- */
  .stats-strip  { padding: 36px 0; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-num     { font-size: 36px; }

  /* ---- ALL GRIDS → 1 column on 768px ---- */
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }

  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

  /* Cards */
  .card        { padding: 24px 20px; }
  .card:hover  { transform: none; }

  /* ---- SERVICES ---- */
  .service-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
    direction: ltr !important;
  }
  .service-feature.reverse { direction: ltr !important; }
  [dir="rtl"] .service-feature,
  [dir="rtl"] .service-feature.reverse { direction: rtl !important; }
  [dir="rtl"] .service-feature > *,
  [dir="rtl"] .service-feature.reverse > * { direction: rtl !important; }
  .feature-visual { min-height: 180px; padding: 28px; }

  /* ---- NETWORK SECTION ---- */
  .network-section { padding: 60px 0; }
  .network-inner   { grid-template-columns: 1fr; gap: 32px; }
  .network-map     { min-height: 240px; padding: 28px; }

  /* ---- TESTIMONIALS ---- */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }

  /* ---- FAQ ---- */
  .faq-q { padding: 18px 20px; font-size: 15px; }
  .faq-a-inner { padding: 0 20px 20px; }

  /* ---- CTA ---- */
  .cta-section        { padding: 60px 0; }
  .cta-section h2     { font-size: 28px; }
  .cta-section p      { font-size: 16px; }
  .btn-group          { justify-content: center; }

  /* ---- CONTACT ---- */
  .contact-layout     { grid-template-columns: 1fr; gap: 24px; }
  .contact-info-card  { position: static; padding: 28px; }
  .contact-form-card  { padding: 28px; }
  .form-grid-2        { grid-template-columns: 1fr; }
  .form-group         { margin-bottom: 16px; }
  .form-submit        { width: 100%; justify-content: center; }

  /* ---- ABOUT ---- */
  .page-hero   { padding: 52px 0; }
  .page-hero p { font-size: 15px; }
  .about-story { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ---- FOOTER ---- */
  .site-footer    { padding: 52px 0 24px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .footer-brand   { max-width: 100%; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }

  /* ---- Buttons ---- */
  .btn    { min-height: 44px; padding: 12px 22px; }
  .btn-lg { min-height: 50px; padding: 15px 28px; font-size: 16px; }
  .btn-sm { min-height: 40px; padding: 10px 18px; }

  /* Images */
  img { max-width: 100%; height: auto; }

  /* RTL adjustments at this breakpoint */
  [dir="rtl"] .main-nav { justify-content: flex-start; }
  [dir="rtl"] .footer-bottom { flex-direction: column; }
}

/* --------------------------------------------------
   ≤ 480px  –  Mobile phones
   -------------------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  /* Typography */
  .display-1 { font-size: 28px; letter-spacing: -.01em; }
  .display-2 { font-size: 24px; }
  .display-3 { font-size: 20px; }
  .subtitle  { font-size: 14px; }
  body       { font-size: 14px; }

  /* Section spacing */
  .section    { padding: 40px 0; }
  .section-sm { padding: 28px 0; }
  .section-header { margin-bottom: 28px; }

  /* ---- HEADER ---- */
  .header-inner { padding: 12px 0; gap: 8px; }
  .logo         { font-size: 17px; }
  .logo-icon    { width: 30px; height: 30px; font-size: 15px; }
  .main-nav a   { padding: 7px 10px; font-size: 12px; }
  .lang-switcher a { padding: 4px 8px; font-size: 11px; }
  .btn-sm       { padding: 8px 14px; font-size: 12px; }

  /* ---- HERO ---- */
  .hero     { padding: 40px 0; }
  .hero h1  { font-size: 28px; margin-bottom: 14px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; }
  .hero-tag { font-size: 12px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-stats {
    gap: 16px 24px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .hero-stat-num   { font-size: 22px; }
  .hero-stat-label { font-size: 12px; }

  /* ---- STATS STRIP ---- */
  .stats-strip { padding: 28px 0; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-num    { font-size: 30px; }
  .stat-label  { font-size: 12px; }

  /* Cards */
  .card             { padding: 20px 16px; border-radius: var(--radius); }
  .card-icon-wrap   { width: 48px; height: 48px; font-size: 22px; }
  .card h3          { font-size: 16px; }
  .card p           { font-size: 13px; }

  /* Industry grid: 2 columns on mobile */
  .grid-auto { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .industry-card { padding: 20px 12px; }
  .industry-card .icon { font-size: 28px; }
  .industry-card h3 { font-size: 13px; }

  /* ---- CTA ---- */
  .cta-section  { padding: 40px 0; }
  .cta-section h2 { font-size: 24px; }
  .cta-section p  { font-size: 14px; margin-bottom: 24px; }

  /* ---- BUTTONS ---- */
  .btn    { min-height: 44px; padding: 12px 20px; font-size: 14px; }
  .btn-lg { min-height: 48px; padding: 14px 24px; font-size: 15px; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { justify-content: center; text-align: center; }

  /* ---- CONTACT ---- */
  .contact-info-card  { padding: 24px 20px; border-radius: var(--radius-lg); }
  .contact-form-card  { padding: 24px 20px; border-radius: var(--radius-lg); }
  .contact-detail-icon { width: 38px; height: 38px; font-size: 16px; }
  .contact-detail-label { font-size: 11px; }
  .contact-detail-value { font-size: 13px; }
  .form-control   { padding: 12px 14px; font-size: 14px; }
  textarea.form-control { min-height: 120px; }

  /* ---- FAQ ---- */
  .faq-q       { padding: 16px; font-size: 14px; }
  .faq-a-inner { padding: 0 16px 16px; font-size: 13px; }
  .faq-q-icon  { width: 24px; height: 24px; font-size: 16px; }

  /* ---- TESTIMONIALS ---- */
  .testimonial-card  { padding: 24px 20px; }
  .testimonial-quote { font-size: 13px; }

  /* ---- NETWORK ---- */
  .network-map     { padding: 20px; min-height: 180px; }
  .network-node    { padding: 12px 14px; }
  .network-node-name { font-size: 13px; }
  .network-node-role { font-size: 11px; }

  /* ---- ABOUT / PAGE HERO ---- */
  .page-hero   { padding: 40px 0; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p  { font-size: 14px; }

  /* ---- SERVICE FEATURE ---- */
  .service-feature { padding: 32px 0; gap: 20px; }
  .feature-visual  { min-height: 140px; padding: 20px; }
  .feature-visual-icon  { font-size: 48px; }
  .feature-visual-label { font-size: 15px; }
  .feature-visual-sub   { font-size: 12px; }
  .feature-tag          { font-size: 12px; padding: 5px 10px; }

  /* ---- FOOTER ---- */
  .site-footer    { padding: 40px 0 20px; }
  .footer-grid    { gap: 24px; margin-bottom: 28px; }
  .footer-col h4  { margin-bottom: 14px; }
  .footer-col ul li a { font-size: 13px; }
  .footer-col .contact-line { font-size: 13px; }
  .footer-bottom  { padding-top: 20px; font-size: 12px; }

  /* Prevent horizontal overflow on very small screens */
  * { max-width: 100%; }
  pre, code { overflow-x: auto; white-space: pre-wrap; }

  /* RTL mobile overrides */
  [dir="rtl"] .btn-group { flex-direction: column; }
  [dir="rtl"] .hero-stats { flex-direction: row-reverse; flex-wrap: wrap; }
}

