/* ==========================================================================
   Arzical Custom Footer
   Prefix: .arz-ftr — isolated from Jannah/Elementor.
   Inherits CSS variables from arz-header.css.
   ========================================================================== */

.arz-ftr,
.arz-ftr *,
.arz-ftr *::before,
.arz-ftr *::after {
  box-sizing: border-box;
}

.arz-ftr {
  background: #F5F7FC;
  color: var(--arz-text);
  font-family: inherit;
  direction: rtl;
  border-top: 1px solid var(--arz-border);
  /* No top margin so the footer sits flush against the previous section (no gap above footer). */
  margin-top: 0;

  /* Break out of Elementor Kit body padding to span full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}

/* Neutralize Elementor widget wrappers around the footer widget */
.elementor-widget-arz-footer,
.elementor-widget-arz-footer > .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}
.elementor-widget-arz-footer .elementor-widget-container {
  width: 100%;
}

/* Kill vertical space around the footer widget caused by Elementor section/column wrappers.
   Mirrors the equivalent rules in arz-header.css so the footer sits flush against the
   previous section regardless of how the widget is placed in the Elementor template. */
.elementor-section:has(.elementor-widget-arz-footer),
.elementor-section:has(.elementor-widget-arz-footer) > .elementor-container,
.elementor-column:has(.elementor-widget-arz-footer),
.elementor-column:has(.elementor-widget-arz-footer) > .elementor-widget-wrap,
.elementor-widget-wrap:has(> .elementor-widget-arz-footer) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Elementor v3+ flex containers (.e-con / .e-flex / .e-con-full / .e-parent / .e-child).
   These replace the legacy .elementor-section/.elementor-column and have their own
   CSS variables plus a default 10px padding. Neutralize every ancestor container
   that wraps our footer widget so it sits flush against the previous section. */
.e-con:has(.elementor-widget-arz-footer),
.e-con:has(.elementor-widget-arz-footer) > .e-con-inner,
.e-parent:has(.elementor-widget-arz-footer),
.e-child:has(.elementor-widget-arz-footer) {
  --padding-block-start: 0 !important;
  --padding-block-end: 0 !important;
  --padding-top: 0 !important;
  --padding-bottom: 0 !important;
  --margin-block-start: 0 !important;
  --margin-block-end: 0 !important;
  --margin-top: 0 !important;
  --margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  row-gap: 0 !important;
}

/* HFE (Header Footer Elementor) wrapper — if present */
.hfe-footer,
.hfe-site-footer,
.elementor-location-footer {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.arz-ftr__container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 36px 28px 18px;
}

/* ==========================================================================
   TOP: Logo + About
   ========================================================================== */
.arz-ftr__top {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 20px;
}
.arz-ftr__logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.arz-ftr__logo img {
  height: 44px;
  width: auto;
  display: block;
}
.arz-ftr__about {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: var(--arz-text);
  text-align: justify;
  font-weight: 500;
}

/* ==========================================================================
   SEPARATORS
   ========================================================================== */
.arz-ftr__sep {
  border: 0;
  border-top: 1px solid var(--arz-border);
  margin: 0;
  height: 0;
}

/* ==========================================================================
   COLUMNS
   ========================================================================== */
.arz-ftr__cols {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.85fr 0.85fr;
  gap: 32px;
  padding: 32px 0 24px;
}

.arz-ftr__col {
  min-width: 0;
}

.arz-ftr__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--arz-text);
  margin: 0 0 18px;
  letter-spacing: 0;
}
.arz-ftr__title--email {
  margin-top: 26px;
}

.arz-ftr__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.arz-ftr__menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.arz-ftr__menu a {
  display: inline-block;
  padding: 7px 0;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  transition: color .15s ease;
  line-height: 1.85;
  font-weight: 500;
}
.arz-ftr__menu a:hover,
.arz-ftr__menu a:focus {
  color: var(--arz-primary);
}

.arz-ftr__empty {
  font-size: 12px;
  color: var(--arz-text-muted);
  margin: 0;
}

/* ==========================================================================
   SOCIAL
   ========================================================================== */
.arz-ftr__socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.arz-ftr__socials li { list-style: none; margin: 0; }
.arz-ftr__soc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  color: var(--arz-text);
  text-decoration: none;
  transition: color .15s ease, transform .12s ease, background .15s ease;
}
.arz-ftr__soc-link:hover {
  color: var(--arz-primary);
  background: var(--arz-bg-soft);
  transform: translateY(-1px);
}
.arz-ftr__soc-link svg {
  display: block;
}

/* ==========================================================================
   EMAIL
   ========================================================================== */
.arz-ftr__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--arz-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  direction: ltr;
}
.arz-ftr__email-icon {
  color: var(--arz-text-muted);
  display: inline-flex;
}
.arz-ftr__email:hover {
  color: var(--arz-primary);
}
.arz-ftr__email:hover .arz-ftr__email-icon {
  color: var(--arz-primary);
}

/* ==========================================================================
   COPYRIGHT
   ========================================================================== */
.arz-ftr__copy {
  text-align: left; /* RTL doc: pushes copyright to the LEFT side per Figma */
  font-size: 12px;
  color: #94a3b8;
  padding: 16px 0 0;
  font-weight: 500;
  direction: rtl;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .arz-ftr__cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
  }
}

@media (max-width: 700px) {
  .arz-ftr__container {
    padding: 26px 18px 14px;
  }

  .arz-ftr__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
  }
  .arz-ftr__logo img {
    height: 40px;
  }
  .arz-ftr__about {
    font-size: 13px;
    line-height: 2;
    text-align: justify;
  }

  .arz-ftr__cols {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 0 14px;
  }

  .arz-ftr__col {
    padding: 14px 0;
    border-bottom: 0;
  }
  .arz-ftr__col + .arz-ftr__col {
    border-top: 0;
  }
  .arz-ftr__title {
    margin: 0 0 10px;
    font-size: 14px;
  }
  .arz-ftr__title--email {
    margin-top: 20px;
  }
  .arz-ftr__menu a {
    font-size: 13px;
    padding: 5px 0;
  }

  .arz-ftr__socials {
    gap: 6px;
  }
  .arz-ftr__soc-link {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Suppress Jannah's default footer if it still renders inside wrapper
   ========================================================================== */
#tie-wrapper > #footer,
#tie-wrapper > .footer-widgets-wrap,
#tie-wrapper > .copyright-area {
  display: none !important;
}
