/* ===== Footer ===== */
/* ===== Fix Home Footer Look ===== */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

.home-footer {
  background: #eef7fb;
  color: #0b2239;
  direction: rtl;
  overflow: hidden;
}

/* شريط تحذير لو موجود */
.home-footer .footer-warning {
  background: linear-gradient(135deg, #071a2f, #0d2b4e);
  color: #ffffff;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  padding: 28px 0;
}

/* الجزء الرئيسي من الفوتر */
.home-footer .footer-main {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 138, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #f7fcff 0%, #eaf6fb 100%);
  padding: 58px 0;
}

.home-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.2fr;
  gap: 45px;
  align-items: flex-start;
}

.footer-about {
  text-align: right;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #071a2f;
  text-decoration: none;
  margin-bottom: 18px;
}

.footer-logo img {
  width: 150px;
  max-height: 80px;
  object-fit: contain;
}

.footer-logo span {
  font-size: 24px;
  font-weight: 900;
  color: #071a2f;
}

.footer-about p {
  line-height: 2;
  font-size: 17px;
  color: #163755;
  margin: 0;
}

.footer-links h4,
.footer-contact h4 {
  color: #071a2f;
  font-size: 23px;
  font-weight: 900;
  margin-bottom: 18px;
  position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  background: #ff8a00;
  border-radius: 999px;
  margin-top: 8px;
}

.footer-links a,
.footer-contact a,
.footer-contact p,
.footer-service-toggle,
.footer-service-main {
  color: #163755 !important;
  font-size: 17px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  margin-bottom: 13px;
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-contact a {
  display: block;
  margin-bottom: 12px;
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-service-toggle:hover,
.footer-service-main:hover {
  color: #ff8a00 !important;
  transform: translateX(-4px);
}

.footer-contact p {
  line-height: 1.9;
}

.footer-map iframe {
  width: 100%;
  height: 230px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(7, 26, 47, 0.14);
}

/* ===== Footer Legal Note ===== */

.home-footer .footer-legal {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 138, 0, 0.12), transparent 32%),
    linear-gradient(135deg, #071a2f 0%, #0d2b4e 100%);
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer .footer-legal-box {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  padding: 24px 30px;
  text-align: center;
  line-height: 2;
  font-size: 15.5px;
  font-weight: 500;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.home-footer .footer-legal-box strong {
  color: #ffffff;
  font-weight: 900;
}

.home-footer .footer-legal-box strong:last-child {
  color: #ffb357;
}

/* حقوق الملكية */
.home-footer .footer-copy {
  background: #061425;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 700;
}

/* ===== Footer Services Dropdown ===== */

.footer-service-dropdown {
  position: relative;
  margin-bottom: 10px;
}

.footer-service-toggle,
.footer-service-main {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 0;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.25s ease;
}

.footer-service-menu {
  display: none;
  background: #ffffff;
  border: 1px solid #dcecf4;
  border-radius: 16px;
  padding: 10px;
  margin: 8px 0 12px;
  box-shadow: 0 16px 35px rgba(7, 26, 47, 0.12);
}

.footer-service-dropdown.active .footer-service-menu {
  display: block;
}

.footer-service-group {
  margin-bottom: 5px;
}

.footer-service-main {
  background: #f5fbff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

.footer-service-main:hover,
.footer-service-group.active .footer-service-main {
  background: rgba(255, 138, 0, 0.10);
}

.footer-service-submenu {
  display: none;
  padding: 8px 15px;
  border-right: 3px solid #ff8a00;
  margin: 8px 10px;
}

.footer-service-group.active .footer-service-submenu {
  display: block;
}

.footer-service-submenu a {
  font-size: 15px;
  margin-bottom: 8px;
}

/* Floating buttons */
.floating-actions {
  position: fixed;
  z-index: 300;
  bottom: 20px;
  right: 20px;
  left: 20px;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  animation: pulse 1.8s infinite;
  text-decoration: none;
}

.float-btn img {
  width: 36px;
  height: 36px;
}

.call-float {
  left: 25px;
  background: #ff8a00;
}

.whatsapp-float {
  right: 25px;
  background: #25d366;
}

/* Mobile */
@media (max-width: 900px) {
  .home-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .home-footer .footer-warning {
    font-size: 21px;
    padding: 22px 12px;
  }

  .home-footer .footer-main {
    padding: 40px 0;
  }

  .home-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-logo img {
    width: 120px;
  }

  .footer-logo span {
    font-size: 21px;
  }

  .footer-about p,
  .footer-links a,
  .footer-contact a,
  .footer-contact p,
  .footer-service-toggle,
  .footer-service-main {
    font-size: 16px;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 21px;
  }

  .home-footer .footer-legal {
    padding: 24px 0;
  }

  .home-footer .footer-legal-box {
    padding: 18px 14px;
    font-size: 13.5px;
    line-height: 1.9;
    border-radius: 14px;
  }

  .home-footer .footer-copy {
    font-size: 14px;
    padding: 20px 0;
  }

  .float-btn {
    width: 58px;
    height: 58px;
  }

  .float-btn img {
    width: 28px;
    height: 28px;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.07);
  }
}