/* Wafa Enterprises — site footer (overrides BeTheme defaults) */

#Footer.wafa-footer,
.wafa-footer {
  background: linear-gradient(180deg, #0a1240 0%, #03084c 100%) !important;
  color: #bfc1d2;
}

.wafa-footer .widgets_wrapper {
  background: transparent !important;
}

.wafa-footer .widgets_wrapper.wafa-footer__main {
  padding: 64px 0 56px !important;
  border-top: 4px solid #ff5a00;
}

.wafa-footer .container {
  box-sizing: border-box;
}

.wafa-footer__main .container {
  padding-top: 8px;
  padding-bottom: 8px;
}

.wafa-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: 40px;
  row-gap: 32px;
  align-items: start;
}

/* Link columns share the same top alignment */
.wafa-footer__col,
.wafa-footer__brand {
  min-width: 0;
}

.wafa-footer__brand {
  padding-top: 2px;
}

.wafa-footer__logo {
  display: block;
  margin: 0 0 14px;
  line-height: 0;
}

.wafa-footer__logo img {
  max-width: 188px;
  width: 100%;
  height: auto;
  display: block;
}

.wafa-footer__tagline {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #9aa3c7 !important;
  max-width: 300px;
}

.wafa-footer__cta {
  display: inline-block;
  padding: 10px 20px;
  background: #ff5a00 !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  border-radius: 4px;
  line-height: 1.2;
  transition: background 0.2s, transform 0.2s;
}

.wafa-footer__cta:hover {
  background: #e65100 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Section headings — full-width underline, aligned across columns */
.wafa-footer__col h4,
.wafa-footer .widget h4,
#Footer.wafa-footer h4 {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 16px !important;
  padding: 0 0 10px !important;
  border-bottom: 2px solid rgba(255, 90, 0, 0.5);
  display: block !important;
  width: 100%;
  line-height: 1.3 !important;
  box-sizing: border-box;
}

.wafa-footer__links,
.wafa-footer .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wafa-footer__links li,
.wafa-footer .menu li {
  margin: 0 0 7px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1.35 !important;
  min-height: 0 !important;
}

.wafa-footer__links li:last-child,
.wafa-footer .menu li:last-child {
  margin-bottom: 0 !important;
}

.wafa-footer__links li:before,
.wafa-footer .menu li:before,
.wafa-footer__links li:after,
.wafa-footer .menu li:after {
  display: none !important;
  content: none !important;
}

.wafa-footer__links a,
.wafa-footer .menu a,
#Footer.wafa-footer .wafa-footer__links a {
  color: #bfc1d2 !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.35 !important;
  padding: 0 !important;
  transition: color 0.2s;
  display: inline-block;
}

.wafa-footer__links a:hover,
.wafa-footer .menu a:hover {
  color: #ff5a00 !important;
  padding-left: 0 !important;
}

.wafa-footer__contact {
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.wafa-footer__address {
  margin: 0 0 14px !important;
  color: #bfc1d2 !important;
  line-height: 1.55;
}

.wafa-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px !important;
  line-height: 1.35 !important;
}

.wafa-footer__contact-row:last-of-type {
  margin-bottom: 0 !important;
}

.wafa-footer__contact-row a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.wafa-footer__contact-row a:hover {
  color: #ff5a00 !important;
}

.wafa-footer__contact-icon {
  flex-shrink: 0;
  width: 16px;
  font-size: 14px;
  line-height: 1;
  color: #ff5a00;
  text-align: center;
}

.wafa-footer__branches {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #9aa3c7 !important;
}

.wafa-footer__branches strong {
  color: #fff !important;
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wafa-footer__bottom,
.wafa-footer .footer_copy,
#Footer.wafa-footer .footer_copy {
  background: rgba(0, 0, 0, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 !important;
}

.wafa-footer__bottom .container {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.wafa-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-right: 56px;
  min-height: 24px;
  box-sizing: border-box;
}

.footer-copy-center #Footer.wafa-footer .footer_copy .copyright {
  float: none !important;
  margin: 0 !important;
}

.wafa-footer__bottom-inner .copyright,
.wafa-footer__bottom-inner span {
  color: #8284a6 !important;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.wafa-footer__bottom-inner .copyright a {
  color: #8284a6 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wafa-footer__bottom-inner .copyright a:hover {
  color: #ff5a00 !important;
}

.wafa-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wafa-footer__bottom-links li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

.wafa-footer__bottom-links a {
  color: #8284a6 !important;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none !important;
  white-space: nowrap;
}

.wafa-footer__bottom-links a:hover {
  color: #ff5a00 !important;
}

/* Keep scroll-to-top clear of bottom bar links */
#back_to_top.sticky {
  right: 20px !important;
  bottom: 18px !important;
  z-index: 9001;
}

@media (max-width: 959px) {
  .wafa-footer__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 28px;
  }

  .wafa-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .wafa-footer .widgets_wrapper.wafa-footer__main {
    padding: 40px 0 36px !important;
  }

  .wafa-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wafa-footer__tagline {
    max-width: none;
  }

  .wafa-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .wafa-footer__bottom-links {
    justify-content: center;
  }
}
