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

:root {
  --primary: #005a8c;
  --primary-dark: #003d5e;
  --primary-light: #0077b3;
  --accent: #0095d9;
  --accent-light: #e8f4fd;
  --text-dark: #1a1a2e;
  --text-mid: #555;
  --text-light: #888;
  --bg-light: #f8fafc;
  --bg-white: #fff;
  --border: #e5e9f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

html { font-size: 62.5%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem;
  gap: 1rem;
}

.header-inner > .nav {
  flex: 1;
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 5rem;
  object-fit: contain;
}

.logo span {
  color: var(--text-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;
  padding: 1rem 1.6rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav > li > a:hover,
.nav > li > a.current {
  color: var(--primary);
  background: var(--accent-light);
}

.nav > li.has-sub > a::after {
  content: '\25BE';
  margin-left: 0.4rem;
  font-size: 1.2rem;
  color: var(--text-light);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 22rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.nav > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 1rem 1.6rem;
  font-size: 1.4rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.sub-menu li:last-child a {
  border-bottom: none;
}

.sub-menu li a:hover {
  background: var(--accent-light);
  color: var(--primary);
  padding-left: 2rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  flex-shrink: 0;
  z-index: 300;
  position: relative;
}

.hamburger span {
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 14rem 0 8rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 80rem;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.hero-content h1 span {
  color: #64d8ff;
}

.hero-content p {
  font-size: 2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.hero-btns {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,149,217,0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 8rem 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.section-title h2 span {
  color: var(--primary);
}

.section-title p {
  font-size: 1.7rem;
  color: var(--text-mid);
  max-width: 65rem;
  margin: 0 auto;
}

.section-divider {
  width: 6rem;
  height: 3px;
  background: var(--accent);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ===== FEATURES / CARDS GRID ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  transition: var(--transition);
}

.card-bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  border: none;
  overflow: hidden;
}

.card-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 1;
}

.card-bg-image > * {
  position: relative;
  z-index: 2;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 2.8rem;
  color: var(--primary);
}

.card-icon-img {
  width: 100%;
  height: 15rem;
  object-fit: contain;
  border-radius: var(--radius);
  background: transparent;
  margin-bottom: 2rem;
}

.card h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-mid);
  font-size: 1.5rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--primary);
}

/* ===== HORIZONTAL CARD (image left, text right) ===== */
.card-horizontal {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  height: 28rem;
}

.card-horizontal:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-horizontal-image {
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--primary);
  overflow: hidden;
  height: 100%;
}

.card-horizontal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-horizontal-body {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-horizontal-body h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card-horizontal-body p {
  color: var(--text-mid);
  font-size: 1.5rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .card-horizontal {
    grid-template-columns: 1fr;
  }
  .card-horizontal-image {
    min-height: 16rem;
  }
}

/* ===== CONTENT IMAGE+TEXT ===== */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-height: 28rem;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-text h3 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.content-text h3 span {
  color: var(--primary);
}

.content-text p {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.content-text ul {
  margin: 1.5rem 0;
}

.content-text ul li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-mid);
}

.content-text ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== STATS ===== */
.stats {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 4.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item h3::after {
  content: '+';
}

.stat-item p {
  font-size: 1.6rem;
  opacity: 0.85;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 6rem;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.timeline-content h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.timeline-content p {
  color: var(--text-mid);
  font-size: 1.5rem;
}

/* ===== PARTNER LOGOS ===== */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.logo-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
  min-width: 16rem;
  text-align: center;
}

.logo-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

.logo-item-img {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16rem;
  height: 7rem;
}

.logo-item-img:hover {
  border-color: transparent;
  box-shadow: none;
}

.logo-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== CASE CARDS ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.case-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.case-img {
  height: 22rem;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  overflow: hidden;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-img.contain img {
  object-fit: cover;
}

.case-body {
  padding: 2rem;
}

.case-body h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.case-body p {
  color: var(--text-mid);
  font-size: 1.4rem;
  line-height: 1.6;
}

.case-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 3rem;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: var(--border);
}

.process-step:last-child::after {
  display: none;
}

.step-num {
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.process-step:hover .step-num {
  background: var(--primary);
  color: #fff;
}

.process-step h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.process-step p {
  font-size: 1.3rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ===== VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.value-card {
  text-align: center;
  padding: 3rem 2rem;
}

.value-card .card-icon {
  margin: 0 auto 2rem;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
}

.contact-form label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.5rem;
  font-family: inherit;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,149,217,0.1);
}

.contact-form textarea {
  min-height: 14rem;
  resize: vertical;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 4.8rem;
  height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-info-item p {
  color: var(--text-mid);
  font-size: 1.4rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 12rem 0 5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.1;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: 4rem;
  font-weight: 700;
}

.page-header p {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  opacity: 0.85;
  margin-top: 1rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
}

.breadcrumb span {
  color: rgba(255,255,255,0.6);
}

.breadcrumb .current {
  color: #64d8ff;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  text-align: center;
  padding: 6rem 0;
}

.cta-section h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.8rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.cta-section .btn {
  font-size: 1.8rem;
  padding: 1.4rem 4rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 6rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-brand .logo span {
  color: rgba(255,255,255,0.9);
}

.footer-brand p {
  font-size: 1.4rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.footer h4 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2rem;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
}

.footer ul li a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  font-size: 1.4rem;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 2rem 0;
  text-align: center;
  font-size: 1.3rem;
  opacity: 0.6;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  position: relative;
  margin-left: auto;
  margin-right: 1rem;
  flex-shrink: 0;
}

.lang-current-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.lang-current-btn::before {
  content: '\1F310';
  font-size: 1.5rem;
  line-height: 1;
}

.lang-current-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.lang-current-btn::after {
  content: '\25BE';
  font-size: 1rem;
  margin-left: 0.2rem;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 18rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 32rem;
  overflow-y: auto;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown li a {
  display: block;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.lang-dropdown li:last-child a {
  border-bottom: none;
}

.lang-dropdown li a:hover {
  background: var(--accent-light);
  color: var(--primary);
}

.lang-dropdown li.active a {
  color: var(--primary);
  font-weight: 600;
  background: var(--accent-light);
}

/* ===== RTL SUPPORT ===== */
html.rtl .lang-dropdown {
  right: auto;
  left: 0;
}

html.rtl .content-text ul li {
  padding-left: 0;
  padding-right: 2.4rem;
}

html.rtl .content-text ul li::before {
  left: auto;
  right: 0;
}

html.rtl .timeline-item {
  padding-left: 0;
  padding-right: 6rem;
}

html.rtl .timeline::before {
  left: auto;
  right: 2rem;
}

html.rtl .timeline-year {
  left: auto;
  right: 0;
}

html.rtl .sub-menu {
  left: auto;
  right: 0;
}

html.rtl .sub-menu li a:hover {
  padding-left: 1.6rem;
  padding-right: 2rem;
}

html.rtl .process-step::after {
  right: auto;
  left: -1rem;
}

html.rtl .content-block.reverse {
  direction: ltr;
}

html.rtl .contact-info-item {
  flex-direction: row-reverse;
}

html.rtl .breadcrumb {
  flex-direction: row-reverse;
}

html.rtl .hero-btns {
  flex-direction: row-reverse;
}

html.rtl .card-link {
  flex-direction: row-reverse;
}

html.rtl .btn {
  flex-direction: row-reverse;
}

html.rtl .footer-social {
  justify-content: flex-end;
}

html body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html.rtl body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3)::after,
  .process-step:nth-child(4)::after { display: none; }
  .process-step:nth-child(5)::after { display: block; }
}

@media (max-width: 768px) {
  html { font-size: 56%; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.open { display: flex; z-index: 250; }

  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    display: none;
    padding-left: 2rem;
  }

  .nav > li:hover .sub-menu {
    display: block;
  }

  .hero-content h1 { font-size: 3.2rem; }
  .hero-content p { font-size: 1.6rem; }

  .grid-3, .grid-2, .content-block { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .card-bg-image {
    min-height: 18rem;
  }

  .content-block.reverse {
    direction: ltr;
  }

  .section { padding: 5rem 0; }

  .hero { padding: 10rem 0 5rem; }
  .page-header { padding: 10rem 0 3rem; }

  .section-title h2 { font-size: 2.8rem; }

  .lang-switcher {
    margin-right: 0.5rem;
  }
  .lang-current-btn {
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }
  .lang-dropdown {
    min-width: 14rem;
    right: 0;
    left: auto;
  }
}

@media (max-width: 480px) {
  html { font-size: 50%; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.8rem; }
  .card-horizontal { grid-template-columns: 1fr; }
  .card-horizontal-image { height: 16rem; }
  .card-horizontal-body { padding: 2rem; }
  .footer-grid { gap: 2rem; }
}
