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

:root {
  --navy: #2B4C7E;
  --navy-dark: #1E3A5F;
  --navy-light: #3A6298;
  --orange: #E8833A;
  --orange-hover: #D4712E;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-600: #475569;
  --gray-800: #1E293B;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.header__logo img {
  height: 90px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__links {
  display: flex;
  gap: 28px;
}

.header__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.header__links a:hover {
  color: var(--navy);
}

.lang-toggle {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: var(--navy-dark);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 100px 0 90px;
  text-align: center;
}

.hero__tagline {
  display: inline-block;
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.9;
  line-height: 1.7;
}

.hero__cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.hero__cta:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

/* ===== Stats Strip ===== */
.stats-strip {
  background: var(--navy-dark);
  padding: 40px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.stat {
  text-align: center;
  color: var(--white);
}

.stat__number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.9rem;
  opacity: 0.75;
  letter-spacing: 0.5px;
}

/* ===== Section Common ===== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--gray-50);
}

.section__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow 0.3s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(43,76,126,0.12);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.service-card--ai {
  border-color: var(--orange);
  position: relative;
  grid-column: span 2;
  background: linear-gradient(135deg, #fff8f4 0%, var(--white) 100%);
}

.service-card--ai .service-card__icon {
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
}

.service-card__ai-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  text-align: center;
  padding: 36px 24px;
}

.why-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.why-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card__desc {
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Customers ===== */
.customers-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  align-items: center;
}

.customer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.customer-logo:hover {
  box-shadow: 0 6px 20px rgba(43,76,126,0.12);
  transform: translateY(-3px);
}

.customer-logo img {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}

.customer-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.customers-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
}

.tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.tag:hover {
  background: var(--navy-light);
  transform: scale(1.05);
}

/* ===== Contact ===== */
.contact-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--navy);
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--orange);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 28px 0;
  font-size: 0.9rem;
}

.footer img {
  height: 30px;
  margin-bottom: 8px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .header__nav.open {
    transform: translateY(0);
  }

  .header__links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card--ai {
    grid-column: span 1;
  }

  .customers-logos {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-items {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* ===== RTL ===== */
[dir="rtl"] body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

[dir="rtl"] .header__links {
  direction: rtl;
}

[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}
