/*
  ألوان من الأدمن (:root في base.html)
  يُحمّل بعد style.css و theme-yellow.css
*/
body {
  background-color: var(--surface-color);
}

/* Cairo as the site font (Arabic + English) */
html, body {
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
p, a, button, input, textarea, select, label, li, span, small, strong, em {
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
}

/* Home hero video caption (bottom-right, no background) */
.hero-video-caption{
  position: absolute;
  right: 5%;
  bottom: 10%;
  z-index: 5;
  max-width: min(520px, 40vw);
  padding: 0;
  color: var(--primary-color, #cc9955);
  background: transparent;
  border: none;
  border-radius: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  font-size: clamp(20px, 2.50vw, 50px);
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.page-wrapper {
  background-color: transparent;
}

.dark-bg {
  background-color: var(--dark-color) !important;
}

#header-wrap.fixed-header {
  background-color: var(--dark-color) !important;
}

/* ========== Site header: responsive logo, dark nav on hero, hamburger, fixed bar contrast ========== */
#site-header .navbar-brand.logo {
  line-height: 1;
}

#site-header .site-header-logo-img {
  --site-header-logo-scale: 3.1;
  display: block;
  height: auto;
  width: auto;
  max-height: 46px;
  max-width: 150px;
  object-fit: contain;
  transform: scale(var(--site-header-logo-scale));
  transform-origin: right center;
  margin-left: clamp(2rem, 11vw, 6.5rem);
}

@media (min-width: 992px) {
  #site-header .site-header-logo-img {
    --site-header-logo-scale: 3.65;
    max-height: 52px;
    max-width: 170px;
    margin-left: clamp(2.75rem, 13vw, 8rem);
  }
}

@media (max-width: 991.98px) {
  #site-header .site-header-logo-img {
    --site-header-logo-scale: 3.85;
    max-height: 42px;
    max-width: 130px;
    margin-left: 0.5rem;
  }
}

#site-header .site-header-toggler {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}
#site-header .site-header-toggler:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.14);
}
#site-header .site-header-toggler-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 16px;
}
#site-header .site-header-toggler-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1a1a1a;
  border-radius: 2px;
}

#site-header #header-wrap.fixed-header .site-header-toggler {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
#site-header #header-wrap.fixed-header .site-header-toggler-bars span {
  background: #ffffff;
}

@media (max-width: 991.98px) {
  #site-header .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.35rem 0 0.85rem;
    border-radius: 12px;
  }
}

@media (min-width: 992px) {
  #site-header #header-wrap:not(.fixed-header) .navbar-nav .nav-link {
    /* Intentionally keep theme default; avoid empty ruleset warning */
    color: inherit;
  }
  #site-header #header-wrap:not(.fixed-header) .navbar-nav .nav-link:hover,
  #site-header #header-wrap:not(.fixed-header) .navbar-nav .nav-link:focus,
  #site-header #header-wrap:not(.fixed-header) .navbar-nav .nav-item .nav-link.active {
    color: var(--primary-color) !important;
  }

  #site-header #header-wrap.fixed-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
  }
  #site-header #header-wrap.fixed-header .navbar-nav .nav-link:hover,
  #site-header #header-wrap.fixed-header .navbar-nav .nav-link:focus,
  #site-header #header-wrap.fixed-header .navbar-nav .nav-item .nav-link.active {
    color: #ffffff !important;
  }
}

@media (max-width: 991.98px) {
  #site-header .navbar-nav .nav-link {
    color: #1a1a1a !important;
  }
  #site-header .navbar-nav .nav-link:hover,
  #site-header .navbar-nav .nav-link.active {
    color: #ffffff !important;
  }
}

#site-header #header-wrap:not(.fixed-header) .sleek-lang-switch {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
}
#site-header #header-wrap:not(.fixed-header) .sleek-lang-switch__btn {
  color: rgba(26, 26, 26, 0.75);
}
#site-header #header-wrap:not(.fixed-header) .sleek-lang-switch__btn.is-active {
  color: #ffffff;
}

@media (min-width: 992px) {
  #site-header #header-wrap.fixed-header .sleek-lang-switch {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
  }
  #site-header #header-wrap.fixed-header .sleek-lang-switch__btn {
    color: rgba(255, 255, 255, 0.72);
  }
  #site-header #header-wrap.fixed-header .sleek-lang-switch__btn.is-active {
    color: #ffffff;
  }
}

footer.footer .secondary-footer {
  background-color: var(--dark-color) !important;
}

.footer-media i {
  background-color: var(--dark-color) !important;
}

.footer-list li a::before {
  background-color: var(--primary-color) !important;
}

.footer-2 .media-icon.style-2 li.white-bg span,
footer .widget .recent-post-desc span {
  color: var(--primary-color) !important;
}

.theme-bg .video-btn .btn-play,
.dark-bg .video-btn .btn-play {
  color: var(--primary-color) !important;
}

/* زر العودة لأعلى — لون التمييز من الأدمن */
.scroll-top a,
.scroll-top a:visited {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18) !important;
}
.scroll-top a:hover,
.scroll-top a:focus {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}

/* مبدّل اللغة المنزلق في الشريط */
.sleek-lang-switch {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sleek-lang-switch__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 4.5px);
  border-radius: 999px;
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.sleek-lang-switch--en .sleek-lang-switch__thumb {
  transform: translateX(calc(100% + 3px));
}

.sleek-lang-switch__btn {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  margin: 0;
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.sleek-lang-switch__btn.is-active {
  color: #ffffff;
}

.sleek-lang-switch__btn:hover,
.sleek-lang-switch__btn:focus-visible {
  color: #ffffff;
  outline: none;
}

/* Social Icons Sidebar Animation (CodePen-like)
   نفس المتغيرات كـ LTR — الشريط direction: ltr حتى في صفحات عربية. */
.social {
  --social-sidebar-pill-width: 300px;
  --social-sidebar-pull: 270px;
  --social-sidebar-hover-shift: 110px;
  position: fixed;
  top: 30%;
  left: 11px;
  right: auto;
  z-index: 1400; /* فوق الهيدر وزر الرجوع لأعلى */
  direction: ltr; /* لا نعكسه في صفحات RTL */
  unicode-bidi: isolate;
}

.social ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  transform: translatex(calc(-1 * var(--social-sidebar-pull)));
}

.social ul.social-main li.social-contact-item--after-social {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}



.social ul li a .social-x-icon {
  text-align: center;
  margin-left: 14px;
  color: #111;
  background-color: #fff;
  padding: 8px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  box-sizing: border-box;
  transform: rotate(0deg);
  fill: #111;
}

.social ul li:hover a .social-x-icon {
  transform: rotate(360deg);
  transition: all 1s;
}

.social ul li {
  display: block;
  margin: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  width: var(--social-sidebar-pill-width);
  text-align: right;
  padding: 10px;
  border-radius: 0 30px 30px 0;
  transition: all 1s;
  font-size: 18px;
  font-weight: bold;
}

.social ul li:hover {
  transform: translatex(var(--social-sidebar-hover-shift));
}

.social ul li.twitter:hover {
  background-color: #55acee;
}

.social ul li.facebook:hover {
  background-color: #3b5999;
}

.social ul li.linkedin:hover {
  background-color: #0a66c2;
}

.social ul li.instagram:hover {
  background-color: #e4405f;
}

.social ul li.youtube:hover {
  background-color: #ff0000;
}

.social ul li a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: end;
}

.social ul li i {
  text-align: center;
  margin-left: 14px;
  color: black;
  background-color: white;
  padding: 8px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 20px;
  transform: rotate(0deg);
}
.social ul li a .fa-whatsapp{
  color: #25D366;
  background-color: white;
  font-weight: bold;
}
.social ul li.whatsapp:hover {
  background-color: var(--primary-color);
}
.social ul li a .fa-phone {
  color: #ffffff;
  background-color: var(--primary-color);
  transform: scaleX(-1);
  display: inline-block;
}

.social ul li.phone:hover,
.social ul li.phone:hover  a{
  background-color: var(--surface-color);
  color: #000 !important;
}



.social ul li:hover i {
  transform: rotate(360deg);
  transition: all 1s;
}

/* Responsive: اخفاء على الشاشات الصغيرة وأجهزة التاتش */
@media (max-width: 991.98px) {
  .social {
    display: none;
  }
}
@media (hover: none), (pointer: coarse) {
  .social {
    display: none;
  }
}

/* Project detail: fixed social strip stays behind main column + sidebar (tabs, map, etc.) */
body.page-project-detail .social {
  z-index: 50;
}
body.page-project-detail .project-detail-main {
  position: relative;
  z-index: 100;
}

/* Full-page preloader — يغلب أبيض base.css إن لزم */
#ht-preloader.ht-preloader-screen {
  z-index: 2147483000;
  background-color: var(--dark-color, #1d3338) !important;
  align-items: center;
  justify-content: center;
}

/* Full-page preloader: company logo (replaces generic spinner gif) */
#ht-preloader .ht-preloader-logo {
  display: block;
  max-width: min(440px, 85vw);
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  animation: ht-preloader-logo-pulse 1.15s ease-in-out infinite;
}
@keyframes ht-preloader-logo-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}
