/* ==================== Meta Footer (Appinventiv-style) ==================== */

.meta-footer {
  position: relative;
  overflow: hidden;
  background: #050505;
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -180px;
  transform: translateX(-50%);
  width: min(1200px, 140vw);
  height: 360px;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(194, 75, 218, 0.42) 0%,
    rgba(135, 27, 156, 0.22) 28%,
    rgba(194, 75, 218, 0.08) 52%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.meta-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(194, 75, 218, 0.15) 15%,
    rgba(194, 75, 218, 0.75) 50%,
    rgba(194, 75, 218, 0.15) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 40px rgba(194, 75, 218, 0.35),
    0 0 120px rgba(135, 27, 156, 0.25);
  pointer-events: none;
  z-index: 0;
}

.meta-footer .container {
  position: relative;
  z-index: 1;
}

.meta-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.meta-footer a:hover {
  color: #fff;
}

/* ---------- Contact column + social icons ---------- */
.meta-footer__col--contact .meta-footer__contact-list {
  margin-bottom: 16px;
}

.meta-footer__col--contact .meta-footer__contact-list li {
  margin-bottom: 8px;
}

.meta-footer__col--contact .footer-email,
.meta-footer__col--contact .footer-phone {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72) !important;
}

.meta-footer__col--contact .footer-email:hover,
.meta-footer__col--contact .footer-phone:hover {
  color: #fff !important;
}

.meta-footer__social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.meta-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 16px;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.meta-footer__social-icon:hover {
  background: rgba(194, 75, 218, 0.18);
  border-color: rgba(194, 75, 218, 0.45);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 75, 218, 0.25);
}

.meta-footer__social-icon i {
  line-height: 1;
}

/* Legacy top row (removed from markup) */
.meta-footer__top,
.meta-footer__quick,
.meta-footer__brand,
.meta-footer__tagline {
  display: none !important;
}

/* ---------- Branches ---------- */
.meta-footer__branches-wrap {
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-footer__branches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.meta-footer__branch {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  min-height: 240px;
  padding: 24px 22px;
  border-radius: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.meta-footer__branch-flag {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.meta-footer__branch h4 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.meta-footer__branch p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  flex: 1;
}

.meta-footer__branch-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.meta-footer__branch-contact a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.5;
}

.meta-footer__branch-contact a:hover {
  color: #c24bda !important;
}

.meta-footer__branch-empty {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

/* ---------- Link columns ---------- */
.meta-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 36px 0 28px;
}

.meta-footer__col h5 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.meta-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-footer__col li {
  margin-bottom: 10px;
}

.meta-footer__col li:last-child {
  margin-bottom: 0;
}

.meta-footer__col a,
.meta-footer__col p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.meta-footer__col a:hover {
  color: #c24bda;
}

/* ---------- Bottom ---------- */
.meta-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.meta-footer__bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

[dir="rtl"] .meta-footer__col,
[dir="rtl"] .meta-footer__branch {
  text-align: right;
}

[dir="ltr"] .meta-footer__col,
[dir="ltr"] .meta-footer__branch {
  text-align: left;
}

@media screen and (max-width: 991px) {
  .meta-footer {
    padding: 48px 0 28px;
  }

  .meta-footer__branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 575px) {
  .meta-footer__branches {
    grid-template-columns: 1fr;
  }

  .meta-footer__links {
    grid-template-columns: 1fr;
  }
}
