:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --primary: #6b8afd; /* light pastel blue */
  --primary-600: #5a7cf6;
  --primary-700: #4a6ae6;
  --ring: #dbeafe;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  --radius: 16px;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Dubai",
    Arial, sans-serif;
  line-height: 1.8;
}

/* Loading screen styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg); /* Site background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Hide loading screen when JS adds class */
.loaded .loading-screen,
.loader-hidden {
  display: none;
}

/* Three dots jumping */
.dots-loader {
  display: flex;
  gap: 12px; /* space between dots */
}

.dots-loader span {
  width: 16px;
  height: 16px;
  background-color: var(--primary); /* main color */
  border-radius: 50%;
  display: inline-block;
  animation: jump 0.6s infinite;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* subtle shadow */
}

.dots-loader span:nth-child(1) {
  animation-delay: 0s;
}
.dots-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes jump {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-14px); /* height of the jump */
  }
}
@media (max-width: 768px) {
  .dots-loader {
    gap: 8px; /* reduce spacing between dots */
  }

  .dots-loader span {
    width: 12px; /* smaller dots */
    height: 12px;
    animation: jump-small 0.6s infinite; /* use a smaller jump animation */
  }

  @keyframes jump-small {
    0%,
    80%,
    100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px); /* smaller jump for smaller screens */
    }
  }
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero .lead {
  font-size: 1.05rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.trust-bar {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-media .hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--primary-600);
}
.btn-outline {
  background: #fff;
  border-color: #e5e7eb;
  color: #111827;
}
.btn-outline:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}
.btn-ghost {
  background: transparent;
  border-color: #e5e7eb;
  color: #111827;
}
.btn-ghost:hover {
  background: #f9fafb;
}

/* Image / Icon placeholders */
.img-ph {
  background: #e5e7eb;
  border: 1px dashed #d1d5db;
  box-shadow: var(--shadow);
}
.icon-ph {
  width: 44px;
  height: 44px;
  background: #e5e7eb;
  border-radius: 12px;
  border: 1px dashed #d1d5db;
}
@media (max-width: 768px) {
  /* Hero grid: stack columns vertically */
  .hero-grid {
    grid-template-columns: 1fr; /* single column */
    gap: 24px; /* smaller gap */
  }

  /* Hero lead text: slightly smaller */
  .hero .lead {
    font-size: 0.95rem;
  }

  /* CTA buttons: wrap nicely and smaller padding */
  .cta-row {
    flex-direction: column; /* stack vertically */
    gap: 10px;
    margin-top: 12px;
  }

  /* Trust bar: smaller font, tighter gap */
  .trust-bar {
    font-size: 0.85rem;
    gap: 12px;
    margin-top: 12px;
  }

  /* Hero images: responsive width and border-radius remains */
  .hero-media .hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .btn {
    display: block; /* full width on mobile */
    width: 100%;
    padding: 14px 0; /* taller for easier touch */
    text-align: center; /* center text */
    font-size: 1rem; /* slightly bigger for readability */
  }

  /* Optional: maintain different button types with full width */
  .btn-primary,
  .btn-outline,
  .btn-ghost {
    width: 100%; /* ensure all buttons expand */
  }

  .btn + .btn {
    margin-top: 10px; /* spacing between stacked buttons */
  }

  /* Icon placeholders: scale down */
  .icon-ph {
    width: 36px;
    height: 36px;
  }
}

/* Section Head */
.section-head {
  margin-bottom: 24px;
  text-align: center;
}
.section-head h2 {
  margin: 0 0 8px 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.95rem;
}
.big {
  font-size: 1.2rem;
}
.center {
  text-align: center;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-media {
  height: 150px;
  margin-bottom: 12px;
  overflow: hidden; /* makes image corners follow the radius */
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #f9fafb; fallback background */
}
.card-media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain; /* keeps image proportions */
  display: block;
}
.card h3 {
  margin: 0.25rem 0 0.25rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  padding: 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.feature i {
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}
.timeline-item {
  position: relative;
}
.timeline-card {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 16px;
}
/* Horizontal on large screens */
@media (min-width: 900px) {
  .timeline {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: stretch;
  }
  .timeline-item::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline: -23px auto;
    width: 23px;
    height: 2px;
    background: #b2b4b8;
    transform: translateY(-50%);
  }
  .timeline-item:first-child::before {
    display: none;
  }
}
@media (max-width: 768px) {
  /* Section head: smaller margin if needed */
  .section-head {
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 1.5rem; /* slightly smaller on mobile */
  }

  /* Cards grid: 1-2 columns instead of 4 */
  .cards-grid {
    grid-template-columns: repeat(1, 1fr); /* single column */
    gap: 16px;
  }

  .card {
    padding: 12px; /* smaller padding */
  }

  .card-media {
    height: 120px; /* smaller card image height */
  }

  /* Features: 1 column (or 2 if you prefer) */
  .features {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }

  .feature {
    padding: 10px;
    gap: 8px;
  }

  .feature i {
    font-size: 20px; /* slightly smaller icons */
  }

  /* Timeline: keep vertical stacking on small screens */
  .timeline {
    gap: 18px;
  }

  /* Hide horizontal connector lines on mobile */
  .timeline-item::before {
    display: none;
  }
}
@media (max-width: 768px) {
  .accordion {
    gap: 10px; /* slightly smaller gap */
  }

  .acc-item {
    border-radius: 10px; /* slightly smaller radius */
  }

  .acc-trigger {
    padding: 12px; /* reduce padding for mobile */
    font-size: 0.95rem; /* slightly smaller text */
  }

  .acc-panel {
    padding: 0 12px 12px 12px; /* reduce inner padding */
  }
}

/* Accordion */
.accordion {
  display: grid;
  gap: 12px;
}
.acc-item {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  text-align: inherit;
  background: #fff;
  border: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
}
.acc-panel {
  padding: 0 16px 16px 16px;
}
@media (max-width: 768px) {
  .accordion {
    gap: 10px; /* slightly smaller gap */
  }

  .acc-item {
    border-radius: 10px; /* slightly smaller radius */
  }

  .acc-trigger {
    padding: 12px; /* reduce padding for mobile */
    font-size: 0.95rem; /* slightly smaller text */
  }

  .acc-panel {
    padding: 0 12px 12px 12px; /* reduce inner padding */
  }
}
