.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.site-footer {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  margin: 0;
  padding: 70px 0 24px;
  overflow: visible;
  background: #15181d;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

.footer-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 70px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  min-width: 0;
  align-self: start;
}

.footer-logo {
  margin: 0 0 16px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.footer-brand p {
  max-width: 430px;
  margin: 0 0 32px;
  color: #b4b9c0;
  font-size: 16px;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-badge {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ff7823;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 300ms ease, background-color 300ms ease;
}

.footer-badge:hover {
  border-color: #ff7823;
  background: rgba(255, 120, 35, 0.06);
}

.footer-title {
  position: relative;
  margin: 0 0 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.footer-title::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 24px;
  height: 2px;
  background: #ff7823;
  content: "";
}

.footer-quick-links,
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-quick-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.footer-quick-links li {
  min-height: 34px;
  display: flex;
  align-items: center;
  margin: 0;
}

.footer-contact {
  display: grid;
  gap: 17px;
}

.footer-quick-links a,
.footer-contact a,
.footer-contact li > span:not(.footer-contact-icon) {
  color: #b4b9c0;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 300ms ease;
}

.footer-quick-links a {
  overflow-wrap: normal;
  word-break: normal;
}

.footer-contact a,
.footer-contact li > span:not(.footer-contact-icon) {
  overflow-wrap: anywhere;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.footer-contact-detail,
.footer-address-text {
  display: grid;
  gap: 4px;
}

.footer-contact-label,
.footer-address-label {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.footer-address-text span {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.45;
}

.footer-map-link {
  width: fit-content;
  margin-inline-start: -31px;
  margin-top: 2px;
  color: #ff7823;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-contact .footer-map-link {
  color: #ff7823;
}

.footer-contact-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  color: #ff7823;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #b4b9c0;
  text-decoration: none;
  transition: border-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.footer-social-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.footer-social-icon .brand-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.footer-social-icon .brand-icon-facebook {
  width: 17px;
  height: 17px;
}

.footer-social-icon .brand-icon-youtube {
  width: 20px;
  height: 20px;
}

a.footer-social-icon:hover {
  border-color: #ff7823;
  color: #ff7823;
  transform: translateY(-2px);
}

.footer-social-icon.is-disabled {
  opacity: 0.55;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 34px;
}

.footer-bottom p {
  margin: 0;
  color: #7d8590;
  font-size: 15px;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-footer .language-switcher {
  position: relative;
  direction: ltr;
  font-family: Arial, sans-serif;
}

.site-footer .language-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7d8590;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: color 300ms ease;
}

.site-footer .language-toggle svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.55;
}

.site-footer .language-toggle:hover,
.site-footer .language-toggle:focus-visible,
.site-footer .language-switcher.open .language-toggle {
  color: #ff7823;
}

.site-footer .language-menu {
  position: absolute;
  z-index: 30;
  top: auto;
  right: 0;
  bottom: calc(100% + 12px);
  min-width: 176px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  background: rgba(20, 24, 29, 0.97);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

body:not(.admin-body) .site-footer {
  overflow: visible !important;
}

body:not(.admin-body) .site-footer .language-menu {
  top: auto !important;
  right: 0 !important;
  bottom: calc(100% + 12px) !important;
  z-index: 30;
  transform: translateY(6px);
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(20, 24, 29, 0.97) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32) !important;
}

.site-footer .language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

body:not(.admin-body) .site-footer .language-switcher.open .language-menu {
  transform: translateY(0) !important;
}

body:not(.admin-body) .site-footer .language-option {
  color: #eef2f6 !important;
}

body:not(.admin-body) .site-footer .language-option:hover,
body:not(.admin-body) .site-footer .language-option:focus-visible,
body:not(.admin-body) .site-footer .language-option.active {
  color: #ff7823 !important;
  background: rgba(255, 120, 35, 0.14) !important;
}

body:not(.admin-body) .site-footer .language-name {
  color: #9aa3ad !important;
}

body:not(.admin-body) .site-footer .language-option:hover .language-name,
body:not(.admin-body) .site-footer .language-option:focus-visible .language-name,
body:not(.admin-body) .site-footer .language-option.active .language-name {
  color: #ffd2bb !important;
}

.site-footer .language-option {
  min-height: 38px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #eef2f6;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-footer .language-option:hover,
.site-footer .language-option:focus-visible,
.site-footer .language-option.active {
  color: #ff7823;
  background: rgba(255, 120, 35, 0.14);
}

.site-footer .language-code {
  color: inherit;
  font-weight: 800;
}

.site-footer .language-name {
  color: #9aa3ad;
  font-weight: 600;
  text-align: left;
}

.site-footer .language-option:hover .language-name,
.site-footer .language-option:focus-visible .language-name,
.site-footer .language-option.active .language-name {
  color: #ffd2bb;
}

.footer-bottom-links a,
.footer-bottom-links span {
  color: #7d8590;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  word-spacing: normal;
  white-space: nowrap;
  text-decoration: none;
  transition: color 300ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ff7823;
}

html[lang="ar"] .site-footer,
html[data-language="ar"] .site-footer {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .footer-title::after,
html[data-language="ar"] .footer-title::after {
  right: 0;
  left: auto;
}

html[lang="ar"] .footer-brand p,
html[data-language="ar"] .footer-brand p {
  margin-right: 0;
  margin-left: auto;
}

html[lang="ar"] .footer-badges,
html[data-language="ar"] .footer-badges,
html[lang="ar"] .footer-social-icons,
html[data-language="ar"] .footer-social-icons,
html[lang="ar"] .footer-bottom,
html[data-language="ar"] .footer-bottom,
html[lang="ar"] .footer-bottom-actions,
html[data-language="ar"] .footer-bottom-actions {
  direction: rtl;
}

@media (max-width: 1024px) {
  .footer-container {
    padding: 0 40px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 56px;
  }

  .footer-container {
    padding: 0 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-quick-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-social-icon,
  .footer-badge,
  .footer-quick-links a,
  .footer-contact a,
  .footer-bottom-links a,
  .site-footer .language-toggle,
  .site-footer .language-menu,
  .site-footer .language-option {
    transition: none;
  }

  a.footer-social-icon:hover {
    transform: none;
  }
}
