/* =====================================================================
   Corporate Footer — Professional redesign
   Scoped to avoid conflicts with legacy footer classes.
   ===================================================================== */

.em-footer {
  --em-footer-bg: #F4F5FA;
  --em-footer-card: #ffffff;
  --em-footer-text: #1a2332;
  --em-footer-muted: #526669;
  --em-footer-accent: #f7ab24;
  --em-footer-accent-rgb: 247, 171, 36;
  --em-footer-border: rgba(15, 23, 42, 0.08);
  --em-footer-radius: 24px;
  --em-footer-shadow: 0 20px 60px -20px rgba(15, 23, 42, 0.12);

  background: var(--em-footer-bg);
  padding: 80px 0 0;
  font-family: 'Mazaj', 'IBM Plex Sans Arabic', 'Tajawal', 'Cairo', sans-serif;
  color: var(--em-footer-text);
  direction: rtl;
}

.em-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.em-footer__card {
  background: var(--em-footer-card);
  border: 1px solid var(--em-footer-border);
  border-radius: var(--em-footer-radius);
  box-shadow: var(--em-footer-shadow);
  overflow: hidden;
}

.em-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 28px;
}

@media (min-width: 768px) {
  .em-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 56px 44px;
  }
}

@media (min-width: 1024px) {
  .em-footer__grid {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 48px;
  }
}

/* Brand column */
.em-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.em-footer__desc {
  color: var(--em-footer-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  font-weight: 500;
}

.em-footer__brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  width: fit-content;
  padding: 14px;
  margin: -14px;
  border-radius: 16px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.em-footer__brand-link:hover {
  background: rgba(var(--em-footer-accent-rgb), 0.08);
  box-shadow: 0 12px 28px -12px rgba(var(--em-footer-accent-rgb), 0.25);
  transform: translateY(-2px);
}

.em-footer__brand-link .em-footer__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.em-footer__cr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(var(--em-footer-accent-rgb), 0.12);
  border: 1px solid rgba(var(--em-footer-accent-rgb), 0.25);
  border-radius: 12px;
  color: #a07212;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.em-footer__brand-link:hover .em-footer__cr {
  background: rgba(var(--em-footer-accent-rgb), 0.18);
  box-shadow: 0 8px 20px -10px rgba(var(--em-footer-accent-rgb), 0.45);
}

.em-footer__cr svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* Section titles */
.em-footer__title {
  font-size: 18px;
  font-weight: 900;
  color: var(--em-footer-text);
  margin: 0 0 22px;
  position: relative;
  padding-bottom: 12px;
}

.em-footer__title::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: var(--em-footer-accent);
}

/* Quick links */
.em-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.em-footer__links a {
  color: var(--em-footer-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.em-footer__links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--em-footer-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.em-footer__links a:hover {
  color: var(--em-footer-text);
  transform: translateX(-4px);
}

.em-footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Contact list */
.em-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.em-footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--em-footer-muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

.em-footer__contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--em-footer-accent);
  margin-top: 2px;
}

.em-footer__contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.em-footer__contact a:hover {
  color: var(--em-footer-text);
}

/* Map */
.em-footer__map {
  width: 100%;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--em-footer-border);
  position: relative;
}

.em-footer__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.em-footer__map-caption {
  text-align: center;
  color: var(--em-footer-muted);
  font-size: 12px;
  margin-top: 10px;
  font-weight: 600;
}

/* Bottom bar */
.em-footer__bottom {
  border-top: 1px solid var(--em-footer-border);
  background: rgba(255, 255, 255, 0.6);
  padding: 24px 28px;
}

.em-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

@media (min-width: 768px) {
  .em-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.em-footer__copyright {
  color: var(--em-footer-muted);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.em-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.em-footer__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--em-footer-border);
  color: var(--em-footer-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.em-footer__social a:hover {
  color: var(--em-footer-text);
  border-color: var(--em-footer-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.15);
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .em-footer {
    padding-top: 56px;
  }

  .em-footer__grid {
    gap: 32px;
    padding: 32px 20px;
  }

  .em-footer__title {
    margin-bottom: 18px;
  }

  .em-footer__map {
    height: 170px;
  }
}
