:root {
  --primary: #0f4c81;
  --primary-dark: #0a3257;
  --accent: #f59e0b;
  --text: #1f2a37;
  --muted: #6b7280;
  --bg: #f7fbff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  direction: rtl;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5f0fb;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  position: relative;
}

.brand {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
}

nav a {
  margin-right: 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  color: white;
  font-size: 1.2rem;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.hero {
  padding: 70px 0 50px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
}

.hero-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(15, 76, 129, 0.12);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid #dce9f7;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-card {
  background: linear-gradient(145deg, #0f4c81, #123e66);
  border-radius: 32px;
  padding: 14px;
  min-height: 380px;
  box-shadow: 0 30px 70px rgba(15, 76, 129, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.hero-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.stats {
  padding: 24px 0 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stats-grid > div {
  background: var(--white);
  border: 1px solid #e6f0fa;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.06);
}

.stats strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
}

.section {
  padding: 70px 0;
}

.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(238,246,255,0.8));
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

.section-title h2 {
  margin: 4px 0 0;
  color: var(--primary-dark);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card, .step {
  background: var(--white);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(15, 76, 129, 0.08);
  border: 1px solid #e7f1fb;
}

.card h3, .step h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15, 76, 129, 0.12);
}

.step h3 {
  font-size: 1.15rem;
  margin: 0;
}

.step p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.7;
}

.step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 2px;
  font-size: 1rem;
}

.cta {
  padding: 0 0 70px;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 28px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 76, 129, 0.25);
}

.cta-box .btn-primary {
  background: white;
  color: var(--primary);
  margin-top: 8px;
}

.footer {
  background: linear-gradient(135deg, #071b2e 0%, #0d3656 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 36px 0 24px;
}

.footer-content {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.footer-coverage {
  max-width: 780px;
}

.footer-coverage h3 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-size: 1.4rem;
}

.footer-coverage p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.footer-badge {
  background: rgba(245, 158, 11, 0.16);
  color: #ffd27f;
}

.footer-map-card {
  width: min(100%, 560px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.footer-map-card svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.footer-copy {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .steps,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    left: 0;
    top: 16px;
  }

  nav {
    display: none;
    width: 100%;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 76, 129, 0.08);
  }

  nav.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    margin: 0;
  }

  .hero {
    padding-top: 40px;
  }
}
