/* ============================================================
   AELAANY — FOOTER CSS
   4-column layout, social icons, bottom bar
   ============================================================ */

.aelaany-footer {
  background: #0F1E4A;
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
  position: relative;
}

.aelaany-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
}

/* ── Footer Grid ─────────────────────────────────────────── */
.aelaany-footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 40px;
}

/* ── Column 1: Brand ─────────────────────────────────────── */
.footer-col--brand .footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

/* Social Icons */
.aelaany-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aelaany-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-btn);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.aelaany-social a:hover {
  background: var(--gradient-main);
  color: var(--clr-white);
  border-color: transparent;
  transform: translateY(-3px);
}

/* ── Column Headings ─────────────────────────────────────── */
.footer-col__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

body.lang-ar .footer-col__title::after {
  left: auto;
  right: 0;
}

/* ── Footer Nav Links ────────────────────────────────────── */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a::before {
  content: '›';
  color: var(--clr-primary-light);
  font-size: 1rem;
  line-height: 1;
}

body.lang-ar .footer-links li a::before {
  content: '‹';
}

.footer-links li a:hover {
  color: var(--clr-white);
  padding-left: 4px;
}

body.lang-ar .footer-links li a:hover {
  padding-left: 0;
  padding-right: 4px;
}

/* ── Contact Info ────────────────────────────────────────── */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact__icon {
  width: 36px;
  height: 36px;
  background: rgba(27, 79, 216, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-light);
  flex-shrink: 0;
  font-size: 15px;
}

.footer-contact__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.footer-contact__text a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact__text a:hover {
  color: var(--clr-primary-light);
}

/* WhatsApp CTA in footer */
.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 18px;
  background: #25D366;
  color: var(--clr-white);
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
}

.footer-whatsapp-btn:hover {
  background: #1ebe59;
  color: var(--clr-white);
  transform: translateY(-2px);
}

/* ── Footer Bottom Bar ───────────────────────────────────── */
.aelaany-footer__bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--clr-primary-light);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .aelaany-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .aelaany-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .aelaany-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
