@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Open+Sans:wght@400;600&family=Heebo:wght@400;600;700&display=swap');

:root {
  --primary: #2B6CB0;
  --primary-dark: #1A365D;
  --accent: #38A169;
  --muted: #718096;
  --ink: #1A202C;
  --line: #E2E8F0;
  --bg: #F7FAFC;
  --bg-soft: #EBF8FF;
  --white: #FFFFFF;
  --shadow-soft: 0 10px 30px rgba(26, 54, 93, 0.12);
  --font-en: 'IBM Plex Sans', 'Open Sans', sans-serif;
  --font-he: 'Heebo', 'Assistant', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  direction: rtl;
  font-family: var(--font-he);
}

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

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  z-index: 10000;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(26, 32, 44, 0.06);
}

.topbar {
  background: var(--primary-dark);
  color: #E2E8F0;
  font-size: 14px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar .contact-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions a {
  color: #E2E8F0;
  font-weight: 600;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary-dark);
}

.brand img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  background: var(--bg-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.cta-link {
  color: var(--primary);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(43, 108, 176, 0.2);
}

.btn-primary:hover {
  background: #255a96;
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-soft);
}

.btn-ghost {
  background: #E8EDF6;
  color: var(--primary-dark);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section {
  padding: 90px 0;
}

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

.section.soft {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 32px;
  margin: 10px 0;
  color: var(--primary-dark);
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 54, 93, 0.85) 0%, rgba(43, 108, 176, 0.65) 45%, rgba(26, 54, 93, 0.85) 100%);
}

.hero img,
.hero .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 44px;
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}

.hero .hero-desc {
  font-size: 18px;
  color: #E2E8F0;
  margin-bottom: 28px;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0 12px;
}

.stat-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 26px;
}

.stat-card span {
  color: #E2E8F0;
  font-weight: 600;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 28px;
}

.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  border: 1px solid #EDF2F7;
  height: 100%;
}

.card h3 {
  margin: 10px 0;
  color: var(--primary-dark);
}

.card p {
  color: var(--muted);
  margin: 0;
}

.muted {
  color: var(--muted);
}

.highlight {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-inline li {
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  color: var(--primary-dark);
  font-weight: 600;
}

/* Equipment cards */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.equipment-marquee {
  overflow: hidden;
  position: relative;
  padding: 6px 0;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.equipment-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: equipment-marquee 38s linear infinite;
}

.equipment-track:hover {
  animation-play-state: paused;
}

.equipment-marquee .equipment-card {
  flex: 0 0 320px;
}

@keyframes equipment-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.equipment-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
}

.equipment-thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.equipment-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.equipment-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
}

.equipment-title {
  font-size: 20px;
  margin: 4px 0;
  color: var(--primary-dark);
}

.equipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.pill-success {
  background: #DEF7EC;
  color: #03543F;
}

/* Service process */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.step {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(26, 32, 44, 0.05);
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.home-projects-grid {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  flex-wrap: nowrap;
}

.home-projects-grid .project-card {
  flex: 1 0 320px;
  scroll-snap-align: start;
}

.home-projects-grid::-webkit-scrollbar {
  height: 10px;
}

.home-projects-grid::-webkit-scrollbar-track {
  background: #E2E8F0;
  border-radius: 999px;
}

.home-projects-grid::-webkit-scrollbar-thumb {
  background: #A0AEC0;
  border-radius: 999px;
}

.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-country {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.project-content {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.project-type {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.project-highlights li::before {
  content: '•';
  color: var(--primary);
  margin-right: 8px;
}

.link-arrow {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow::after {
  content: '→';
}

/* Partners */
.partners-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 22px;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.partner {
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.spec-table th {
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
}

.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.spec-table tr:nth-child(even) {
  background: #F7FAFC;
}

.spec-table tr:hover {
  background: #EDF2F7;
}

/* Forms */
.form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.form label {
  font-weight: 600;
  color: var(--primary-dark);
  display: block;
  margin-bottom: 8px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CBD5E0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}

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

.form .help {
  color: var(--muted);
  font-size: 13px;
}

.contact-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-soft);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.timeline-item {
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  box-shadow: 0 10px 24px rgba(26, 32, 44, 0.06);
}

.timeline-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
}

/* CTA section */
.cta {
  background: linear-gradient(120deg, #1A365D, #2B6CB0);
  color: var(--white);
  border-radius: 18px;
  padding: 34px;
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(26, 54, 93, 0.3);
}

.cta .cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #0B1625;
  color: #E2E8F0;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 32px;
}

.footer h4 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer p,
.footer li,
.footer a {
  color: #CBD5E1;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  text-align: center;
  color: #A0AEC0;
  font-size: 14px;
}

/* RTL */
[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links a {
  text-align: right;
}

[dir="rtl"] .hero {
  text-align: right;
}

[dir="rtl"] .link-arrow::after {
  content: '←';
}

[dir="rtl"] .project-country {
  left: auto;
  right: 16px;
}

[dir="rtl"] .spec-table th,
[dir="rtl"] .spec-table td {
  text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
  .navbar {
    flex-wrap: wrap;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .nav-actions {
    margin-left: auto;
  }
  .hero {
    min-height: 60vh;
  }
  .hero h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .topbar .container,
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero {
    min-height: 55vh;
  }
  .hero h1 {
    font-size: 30px;
  }
  .section {
    padding: 70px 0;
  }
}
