/* =========================================================
   كفايات روبوتكس — Footer
   Faithful rebuild of Figma node 2176:173 (Footer / Frame 1532)
   Light band. Everything scoped to .footer.
   Palette (from Figma):
     band background   #F7F7FB
     text (indigo)     #2E2560
     accent (lime)     #ACD91A  (== --accent)
   Font: Tajawal (700 columns / 400 legal)
   ========================================================= */

.footer {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #f7f7fb;
  color: #2e2560;
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
}

.footer * { box-sizing: border-box; }
.footer img { display: block; max-width: 100%; }
.footer a { text-decoration: none; color: inherit; }

/* ----- faint watermark (drone inside ball) ----- */
.footer__watermark {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 376px;
  height: 351px;
  opacity: 0.10;                 /* was overpowering the links — kept as a faint accent */
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  animation: footFloat 7s ease-in-out infinite;
}
@keyframes footFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__watermark { animation: none; }
}
.footer__watermark img {
  position: absolute;
  width: 170.07%;
  height: 182.26%;
  left: -34.69%;
  top: -9.23%;
  max-width: none;
}

/* ----- centred content column ----- */
.footer__inner {
  position: relative;
  z-index: 1;
  width: 1152px;
  max-width: calc(100% - 128px);
  margin: 0 auto;
  padding: 33px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ===== columns row ===== */
.footer__cols {
  display: flex;
  flex-direction: row;
  justify-content: flex-start; /* RTL: packs to the right, slack on the left */
  align-items: flex-start;
  gap: 238px;
  min-height: 211px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;     /* RTL cross-start = right edge */
  text-align: right;
}

.footer__col-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

/* contact + quick-links share the 14px stack rhythm */
.footer__contact,
.footer__links { gap: 14px; }

.footer__contact p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.footer__links a {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #2e2560;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer__links a:hover { color: #acd91a; }

/* ----- brand column ----- */
.footer__brand {
  width: 360px;
  flex-shrink: 0;
  gap: 18px;
}

.footer__logo {
  position: relative;
  width: 178px;
  height: 40px;
  overflow: hidden;
}
.footer__logo img {
  position: absolute;
  width: 100.09%;
  height: 315%;
  left: -0.04%;
  top: -107.5%;
  max-width: none;
}

.footer__tagline {
  margin: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #2e2560;
  text-align: right;
  word-break: break-word;
}

.footer__social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.footer__social-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(172, 217, 26, 0.1);
  border: 1px solid rgba(172, 217, 26, 0.16);
  transition: background 0.2s ease, transform 0.18s ease;
}
.footer__social-btn img { width: 18px; height: 18px; }
.footer__social-btn:hover {
  background: rgba(172, 217, 26, 0.22);
  transform: translateY(-1px);
}

/* ===== divider ===== */
.footer__divider {
  height: 1px;
  width: 100%;
  background: rgba(172, 217, 26, 0.12);
}

/* ===== bottom legal bar ===== */
.footer__bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between; /* copy=right, legal=left */
  gap: 20px;
  height: 17px;
  font-size: 14px;
  font-weight: 400;
  color: #2e2560;
  line-height: 1.2;
}
.footer__copy {
  margin: 0;
  white-space: nowrap;
  text-align: right;
}
.footer__legal {
  margin: 0;
  white-space: pre-wrap;
}
.footer__legal a {
  color: #2e2560;
  transition: color 0.2s ease;
}
.footer__legal a:hover { color: #acd91a; }

/* =========================================================
   Solid coloured footer (dark indigo) — no longer blends
   with the light sections above it.
   ========================================================= */
.footer {
  background: linear-gradient(180deg, #2a1e59 0%, #241b4f 100%);
  color: #d6d1ec;
}
.footer__col-title { color: #ffffff; }
.footer__links a { color: #d6d1ec; }
.footer__contact p { color: #d6d1ec; }
.footer__tagline { color: #c9c3e4; }
.footer__bottom,
.footer__copy { color: #a9a2cf; }
.footer__legal a { color: #c9c3e4; }
.footer__divider { background: rgba(255, 255, 255, 0.12); }
.footer__logo img { filter: brightness(0) invert(1); }         /* white wordmark on dark */
.footer__watermark { opacity: 0.06; }
.footer__watermark img { filter: brightness(0) invert(1); }
.footer__social-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.footer__social-btn img { filter: brightness(0) invert(1); }
.footer__social-btn:hover { background: var(--accent); border-color: var(--accent); }
.footer__social-btn:hover img { filter: none; }

/* =========================================================
   Responsive — columns stack below 760px
   ========================================================= */
@media (max-width: 1120px) {
  .footer__cols { gap: 96px; }
}

@media (max-width: 900px) {
  .footer__cols { gap: 56px; justify-content: space-between; }
}

@media (max-width: 760px) {
  .footer__inner {
    max-width: calc(100% - 48px);
    padding: 40px 0 28px;
    gap: 28px;
  }
  .footer__watermark { display: none; }

  .footer__cols {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    min-height: 0;
  }
  .footer__brand { width: 100%; max-width: 360px; }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 8px;
  }
}
