.site-brand-link {
  text-decoration: none;
}

.site-brand-link:focus-visible {
  outline: 2px solid #d81921;
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.site-header {
  --site-header-logo-height: 2.35rem;
  --site-header-logo-max-width: 4.75rem;
}

.site-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* الهيدر: شعار بارز — بدون نص بجانبه عند وجود صورة */
.site-logo-wrap--header {
  height: var(--site-header-logo-height);
  min-width: 0;
  max-width: var(--site-header-logo-max-width);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* على الجوال والشاشات الضيقة: إخفاء الشعار من الهيدر (يبقى في القائمة الجانبية) */
@media (max-width: 1279px) {
  .site-header {
    --site-header-logo-height: 0;
    --site-header-logo-max-width: 0;
  }

  .site-logo-wrap--header {
    display: none;
  }

  .site-header__brand .site-brand-link {
    display: none;
  }
}

.site-logo-wrap--mobile-toolbar {
  height: 2.35rem;
  min-width: 2.35rem;
  max-width: 3.25rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-logo-wrap--mobile-toolbar .site-logo-img {
  height: 2.35rem;
  width: auto;
  max-width: 3.25rem;
  max-height: 2.35rem;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12));
}

.site-header__mobile-logo {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

@media (max-width: 1279px) {
  .site-header__mobile-logo {
    display: inline-flex;
  }
}

@media (min-width: 1280px) {
  .site-header__mobile-logo {
    display: none !important;
  }
}

.site-logo-wrap--drawer {
  height: 3.5rem;
  min-width: 2.5rem;
  max-width: 14rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-logo-wrap--footer {
  height: 3.5rem;
  min-width: 2.5rem;
  max-width: 14rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-logo-wrap--hero {
  width: min(100%, 22rem);
  min-height: 7rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-logo-wrap--hero-dark,
.site-logo-wrap--hero-home {
  display: flex;
  width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.site-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.site-logo-wrap--header .site-logo-img {
  height: var(--site-header-logo-height);
  width: auto;
  max-width: var(--site-header-logo-max-width);
  max-height: var(--site-header-logo-height);
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.14));
}

.site-logo-wrap--header {
  min-width: 0;
}

@media (min-width: 480px) {
  .site-header {
    --site-header-logo-height: 2.75rem;
    --site-header-logo-max-width: 6.5rem;
  }
}

@media (min-width: 640px) {
  .site-header {
    --site-header-logo-height: 3.5rem;
    --site-header-logo-max-width: 9rem;
  }

  .site-logo-wrap--drawer {
    height: 4rem;
    max-width: 16rem;
  }

  .site-logo-wrap--drawer .site-logo-img {
    max-height: 4rem;
  }

  .site-logo-wrap--footer {
    height: 4rem;
    max-width: 15rem;
  }

  .site-logo-wrap--footer .site-logo-img {
    max-height: 4rem;
  }

  .site-logo-wrap--hero .site-logo-img {
    max-height: 9rem;
  }

  .site-logo-wrap--hero-dark .site-logo-img,
  .site-logo-wrap--hero-home .site-logo-img {
    max-height: 12rem;
  }
}

.site-logo-wrap--drawer .site-logo-img {
  max-height: 3.5rem;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.16));
}

.site-logo-wrap--footer .site-logo-img {
  max-height: 3.5rem;
  filter:
    drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

.site-logo-wrap--hero .site-logo-img {
  max-height: 8rem;
  margin-inline: auto;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.18));
}

.site-logo-wrap--hero-dark .site-logo-img,
.site-logo-wrap--hero-home .site-logo-img {
  width: auto;
  max-width: 100%;
  max-height: 10rem;
  margin-inline: auto;
  filter:
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 1px rgba(0, 0, 0, 0.55));
}

@media (min-width: 1280px) {
  .site-header {
    --site-header-logo-height: 3.75rem;
    --site-header-logo-max-width: 11rem;
  }

  .site-logo-wrap--footer {
    height: 4.25rem;
    max-width: 16rem;
  }

  .site-logo-wrap--footer .site-logo-img {
    max-height: 4.25rem;
  }
}

@media (min-width: 1440px) {
  .site-header {
    --site-header-logo-height: 5.25rem;
    --site-header-logo-max-width: 20rem;
  }
}

@media (min-width: 1280px) {
  .site-header {
    --site-header-logo-height: 6rem;
    --site-header-logo-max-width: 24rem;
  }
}
