/* الألوان والخط محصوران داخل الهيدر والقائمة. */
#oth-header,
#oth-menu {
  --oth-ink: #17191c;
  --oth-gold: #94703e;
  --oth-line: #e6e1d9;
  --oth-paper: #faf8f4;

  font-family: "Cairo", Tahoma, Arial, sans-serif;
  color: var(--oth-ink);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

:is(#oth-header, #oth-menu) *,
:is(#oth-header, #oth-menu) *::before,
:is(#oth-header, #oth-menu) *::after {
  box-sizing: border-box;
}

:is(#oth-header, #oth-menu) a {
  color: inherit;
  text-decoration: none;
}

:is(#oth-header, #oth-menu) button {
  font: inherit;
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  background-image: none;
}

:is(#oth-header, #oth-menu) a:focus-visible,
:is(#oth-header, #oth-menu) button:focus-visible {
  outline: 3px solid var(--oth-gold);
  outline-offset: 5px;
}

:is(#oth-header, #oth-menu) .oth-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#oth-header .oth-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#oth-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--oth-line);
}

#oth-header .oth-wrap {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: 28px;
}

/* الشريط العلوي */
#oth-header .oth-topbar {
  background: var(--oth-ink);
  color: #f3efe8;
}

#oth-header .oth-top-inner,
#oth-header .oth-contacts,
:is(#oth-header, #oth-menu) .oth-social {
  display: flex;
  align-items: center;
}

#oth-header .oth-top-inner {
  min-height: 44px;
  justify-content: space-between;
  gap: 20px;
}

#oth-header .oth-contacts {
  gap: 24px;
  flex-wrap: wrap;
}

#oth-header .oth-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

#oth-header .oth-contact .oth-icon {
  width: 15px;
  height: 15px;
  color: #cfb17f;
}

#oth-header .oth-contact:hover {
  color: #e1c594;
}

:is(#oth-header, #oth-menu) .oth-social {
  gap: 8px;
  flex-shrink: 0;
}

:is(#oth-header, #oth-menu) .oth-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background .2s, color .2s;
}

#oth-header .oth-social a:hover {
  background: #ffffff14;
  color: #e1c594;
}

:is(#oth-header, #oth-menu) .oth-social .oth-icon {
  width: 17px;
  height: 17px;
}

/* الهيدر الرئيسي */
#oth-header .oth-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding-block: 12px;
  min-height: 104px;
}

:is(#oth-header, #oth-menu) .oth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

:is(#oth-header, #oth-menu) .oth-logo {
  display: block;
  width: 58px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
}

:is(#oth-header, #oth-menu) .oth-brand-text {
  display: flex;
  flex-direction: column;
}

:is(#oth-header, #oth-menu) .oth-brand-name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
}

:is(#oth-header, #oth-menu) .oth-brand-caption {
  color: #65615b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* روابط الكمبيوتر */
#oth-header .oth-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

#oth-header .oth-desktop a {
  position: relative;
  padding-block: 17px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  #oth-header .oth-desktop a {
    font-size: 20px;
  }
}

#oth-header .oth-desktop a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  inset-inline: 0;
  height: 2px;
  background: var(--oth-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s;
}

#oth-header .oth-desktop a:hover,
#oth-header .oth-desktop a.oth-active {
  color: var(--oth-gold);
}

#oth-header .oth-desktop a:hover::after,
#oth-header .oth-desktop a.oth-active::after {
  transform: scaleX(1);
}

/* أزرار الاتصال والقائمة */
#oth-header .oth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

#oth-header .oth-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 9px 19px;
  border: 1px solid var(--oth-ink);
  background: var(--oth-ink);
  color: #fff;
  border-radius: 6px;
  transition: background .2s, border-color .2s;
}

#oth-header .oth-call:hover {
  background: #35302a;
  border-color: #35302a;
}

#oth-header .oth-call > .oth-icon {
  color: #dfc599;
}

#oth-header .oth-call span {
  display: flex;
  flex-direction: column;
}

#oth-header .oth-call small {
  font-size: 10px;
  line-height: 1.6;
  color: #e4ddd3;
}

#oth-header .oth-call bdi {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 800;
  letter-spacing: .5px;
}

#oth-header .oth-toggle,
#oth-menu .oth-close {
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #d7d0c6;
  color: var(--oth-ink);
  background: transparent;
}

#oth-header .oth-toggle {
  display: none;
}

#oth-menu .oth-close {
  display: inline-flex;
}

#oth-header .oth-toggle:hover,
#oth-menu .oth-close:hover {
  background: #ece6dd;
}

/* قائمة الموبايل بملء الشاشة */
#oth-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--oth-paper);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#oth-menu:not([open]) {
  display: none;
}

#oth-menu::backdrop {
  background: #17191c;
}

#oth-menu .oth-menu-shell {
  width: min(760px, 100%);
  min-height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  padding:
    0
    max(24px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

#oth-menu .oth-menu-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--oth-paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: max(12px, env(safe-area-inset-top)) 12px;
  border-bottom: 1px solid var(--oth-line);
}

#oth-menu .oth-logo {
  width: 43px;
  height: 58px;
}

#oth-menu .oth-brand-name {
  font-size: 24px;
}

#oth-menu .oth-brand-caption {
  font-size: 10px;
}

#oth-menu .oth-menu-label {
  margin: 24px 0 8px;
  color: #76664e;
  font-size: 11px;
  font-weight: 700;
}

#oth-menu .oth-mobile-nav {
  margin-bottom: 24px;
}

#oth-menu .oth-mobile-nav a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding-block: 9px;
  border-bottom: 1px solid var(--oth-line);
  font-size: clamp(26px, 6.8vw, 38px);
  font-weight: 700;
  transition: color .2s;
}

#oth-menu .oth-mobile-nav .oth-icon {
  width: 22px;
  height: 22px;
  color: #8b8275;
  transition: transform .2s;
}

#oth-menu .oth-mobile-nav a:hover,
#oth-menu .oth-mobile-nav a.oth-active {
  color: var(--oth-gold);
}

#oth-menu .oth-mobile-nav a:hover .oth-icon {
  transform: translateX(-4px);
}

/* بيانات التواصل داخل القائمة */
#oth-menu .oth-menu-footer {
  margin-top: auto;
}

#oth-menu .oth-mobile-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 6px;
  background: var(--oth-ink);
  color: #fff;
}

#oth-menu .oth-mobile-call > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
}

#oth-menu .oth-mobile-call .oth-icon {
  color: #dfc599;
}

#oth-menu .oth-mobile-call bdi {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .4px;
}

#oth-menu .oth-menu-info {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

#oth-menu .oth-menu-info a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  width: fit-content;
}

#oth-menu .oth-menu-info .oth-icon {
  width: 17px;
  height: 17px;
  color: var(--oth-gold);
}

#oth-menu .oth-menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--oth-line);
}

#oth-menu .oth-menu-bottom > span {
  color: #69635b;
  font-size: 12px;
}

#oth-menu .oth-social a {
  width: 44px;
  height: 44px;
  border: 1px solid #d7d0c6;
}

#oth-menu .oth-social a:hover {
  background: var(--oth-ink);
  color: #fff;
}

#oth-menu[open] .oth-mobile-nav {
  animation: oth-enter .25s ease-out both;
}

@keyframes oth-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* التابلت والشاشات المتوسطة */
@media (max-width: 1100px) {
  #oth-header .oth-main {
    gap: 18px;
  }

  #oth-header .oth-desktop {
    gap: 20px;
  }

  #oth-header .oth-contacts {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  #oth-header .oth-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #oth-header .oth-desktop {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
  }

  #oth-header.oth-ready .oth-desktop {
    display: none;
  }

  #oth-header.oth-ready .oth-toggle {
    display: inline-flex;
  }
}

/* الموبايل */
@media (max-width: 767px) {
  #oth-header .oth-wrap {
    padding-inline: 18px;
  }

  #oth-header .oth-top-inner {
    min-height: 36px;
  }

  #oth-header .oth-contacts {
    width: 100%;
    justify-content: space-between;
    gap: 6px 12px;
    padding-block: 7px;
  }

  #oth-header .oth-contact {
    font-size: 10.5px;
    gap: 5px;
  }

  #oth-header .oth-contact .oth-icon {
    width: 13px;
    height: 13px;
  }

  #oth-header.oth-ready .oth-topbar .oth-address,
  #oth-header.oth-ready .oth-topbar .oth-social {
    display: none;
  }

  #oth-header:not(.oth-ready) .oth-top-inner {
    flex-wrap: wrap;
    gap: 6px;
    padding-block: 5px;
  }

  #oth-header .oth-main {
    min-height: 84px;
    padding-block: 10px;
    gap: 10px;
  }

  #oth-header .oth-logo {
    width: 43px;
    height: 58px;
  }

  #oth-header .oth-brand {
    gap: 9px;
  }

  #oth-header .oth-brand-name {
    font-size: 24px;
  }

  #oth-header .oth-brand-caption {
    font-size: 10px;
  }

  #oth-header .oth-call {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  #oth-header .oth-call span {
    display: none;
  }

  #oth-header .oth-actions {
    gap: 8px;
  }

  #oth-header .oth-toggle {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 374px) {
  #oth-header .oth-wrap {
    padding-inline: 14px;
  }

  :is(#oth-header, #oth-menu) .oth-brand-caption {
    display: none;
  }

  #oth-menu .oth-menu-shell {
    padding-inline:
      max(18px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-left));
  }

  #oth-menu .oth-mobile-call {
    padding-inline: 12px;
    gap: 8px;
  }

  #oth-menu .oth-mobile-call bdi {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#oth-header, #oth-menu) *,
  :is(#oth-header, #oth-menu) *::after {
    animation: none !important;
    transition: none !important;
  }
}
