/* ===== HEADER V2 — MA-ZAL ===== */

.mz101-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(46, 29, 14, 0.92);
  border-bottom: 1px solid rgba(191, 123, 42, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, padding .25s ease;
}

.mz101-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  transition: padding .25s ease;
}

/* ── Scrolled state ── */
.mz101-header.mz101-scrolled {
  background: rgba(33, 18, 7, 0.96);
  border-color: rgba(191, 123, 42, 0.28);
  box-shadow: 0 4px 32px rgba(46, 29, 14, 0.38);
}

.mz101-header.mz101-scrolled .mz101-header-inner {
  padding: 10px 0;
}

.mz101-header.mz101-scrolled .mz101-brand-logo {
  height: 32px;
}

/* ── Brand ── */
.mz101Brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.mz101Brand a {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mz101-brand-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: height .25s ease, filter .25s ease;
  filter: drop-shadow(0 0 14px rgba(191, 123, 42, 0.16));
}

.mz101-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 5px;
  border-left: 1px solid rgba(191, 123, 42, 0.30);
  padding-left: 11px;
}

.mz101-brand-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f0d09a;
}

.mz101-brand-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(240, 208, 154, 0.72);
}

/* ── Nav ── */
.mz101-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.mz101-nav-link {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: rgba(240, 208, 154, 0.88);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: .18s ease;
  text-decoration: none;
}

.mz101-nav-link:hover {
  color: #f0d09a;
  background: rgba(191, 123, 42, 0.07);
  border-color: rgba(191, 123, 42, 0.22);
}

.mz101-nav-link.mz101-active {
  color: #f0d09a;
  background: rgba(191, 123, 42, 0.10);
  border-color: rgba(191, 123, 42, 0.28);
}

/* ── Header Actions ── */
.mz101-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* ── Language Switch — Desktop ── */
.mz101-lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid rgba(191, 123, 42, 0.20);
  background: rgba(191, 123, 42, 0.04);
}

.mz101-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(217, 150, 74, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: .18s ease;
  font-family: var(--font-body);
}

.mz101-lang-btn:hover {
  color: #f0d09a;
  background: rgba(191, 123, 42, 0.08);
}

.mz101-lang-btn.mz101Active {
  color: #f0d09a;
  background: rgba(191, 123, 42, 0.14);
  border-color: rgba(191, 123, 42, 0.35);
}

.mz101-lang-flag {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}

/* ── Language Dropdown ── */
.mz101-header .mz101-lang-mobile {
  display: none;
  position: relative;
}

.mz101-header .mz101-lang-mobile.mz101-lang-auto {
  display: none; /* يُخفى في الديسكتوب دائماً */
}

.mz101-header .mz101-lang-switch.mz101-lang-auto-hidden {
  display: none;
}

.mz101-lang-mobile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid rgba(191, 123, 42, 0.24);
  background: rgba(191, 123, 42, 0.06);
  color: rgba(246, 237, 224, 0.85);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  transition: .18s ease;
}

.mz101-lang-mobile-toggle:hover {
  border-color: rgba(191, 123, 42, 0.45);
  color: #f0d09a;
}

.mz101-lang-mobile-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mz101-lang-chevron {
  color: rgba(217, 150, 74, 0.55);
  transition: transform .2s ease;
}

.mz101-lang-mobile.mz101Open .mz101-lang-chevron {
  transform: rotate(180deg);
}

.mz101-lang-mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 130px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(191, 123, 42, 0.28);
  background: rgba(33, 18, 7, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(46, 29, 14, 0.45);
  z-index: 60;
}

[dir="rtl"] .mz101-lang-mobile-menu {
  right: auto;
  left: 0;
}

.mz101-lang-mobile.mz101Open .mz101-lang-mobile-menu {
  display: block;
  animation: dropDown .18s ease forwards;
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mz101-lang-mobile-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(246, 237, 224, 0.80);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: .15s ease;
}

[dir="rtl"] .mz101-lang-mobile-option { text-align: right; }

.mz101-lang-mobile-option:hover {
  background: rgba(191, 123, 42, 0.10);
  color: #f0d09a;
}

/* ── Sign In Button ── */
.mz101-btn-signin {
  padding: 9px 18px;
  border-radius: 11px;
  border: 1px solid rgba(191, 123, 42, 0.42);
  background: rgba(154, 94, 24, 0.18);
  color: #f6ede0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: .2s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}

.mz101-btn-signin:hover {
  background: rgba(154, 94, 24, 0.30);
  border-color: rgba(191, 123, 42, 0.65);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(154, 94, 24, 0.20);
}

/* ── Hamburger ── */
.mz101Hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(191, 123, 42, 0.25);
  background: rgba(191, 123, 42, 0.06);
  cursor: pointer;
  padding: 0;
  transition: .18s ease;
}

.mz101Hamburger:hover {
  border-color: rgba(191, 123, 42, 0.48);
  background: rgba(191, 123, 42, 0.10);
}

.mz101Hamburger[aria-expanded="true"] .mz101-ham-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mz101Hamburger[aria-expanded="true"] .mz101-ham-bar:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.mz101Hamburger[aria-expanded="true"] .mz101-ham-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mz101-ham-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(191, 123, 42, 0.80);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}

/* ── Scroll progress bar ── */
.mz101-scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, rgba(191, 123, 42, 0.4), #bf7b2a, rgba(191, 123, 42, 0.4));
  transition: width .1s linear;
}

/* Hide the parent/default WP theme header inside demo preview */
.site-header,
.site-branding,
.main-navigation,
.site-topbar,
.header-search,
.site-header-wrap,
#masthead {
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .mz101-nav { gap: 0; }
  .mz101-nav-link { padding: 8px 10px; font-size: 12px; }
  .mz101-brand-name { display: none; }
}

@media (max-width: 860px) {
  .mz101-header-inner {
    gap: 10px;
    padding: 12px 0;
  }

  .mz101-header.mz101-scrolled .mz101-header-inner {
    padding: 9px 0;
  }

  .mz101-nav {
    display: none;
  }

  .mz101-lang-switch,
  .mz101-lang-switch.mz101-lang-auto {
    display: none;
  }

  .mz101-header .mz101-lang-mobile,
  .mz101-header .mz101-lang-mobile.mz101-lang-auto {
    display: inline-block;
  }

  .mz101Hamburger {
    display: flex;
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .mz101-brand-logo {
    height: 44px;
  }

  .mz101-header.mz101-scrolled .mz101-brand-logo {
    height: 40px;
  }

  .mz101-brand-name {
    display: flex;
  }

  .mz101-brand-main {
    font-size: 15px;
    letter-spacing: 0.10em;
  }

  .mz101-brand-sub {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .mz101-lang-mobile-toggle {
    min-height: 46px;
    padding: 9px 13px;
    border-radius: 14px;
  }

  .mz101-btn-signin {
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .mz101-header-inner {
    gap: 8px;
  }

  .mz101-brand-logo {
    height: 42px;
  }

  .mz101-header.mz101-scrolled .mz101-brand-logo {
    height: 38px;
  }

  .mz101-brand-name {
    display: none;
  }

  .mz101-btn-signin {
    display: inline-flex;
    min-height: 44px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .mz101Hamburger {
    width: 44px;
    height: 44px;
  }

  .mz101-lang-mobile-toggle {
    min-height: 44px;
    padding: 8px 12px;
  }
}

/* Fixed direction: brand + actions + language switch */
.mz101-header,
.mz101Brand,
.mz101-header-actions,
.mz101-lang-switch,
.mz101-lang-mobile {
	direction: ltr !important;
	text-align: left;
}

/* Only navigation follows language direction */
.mz101-nav {
	direction: ltr;
}

.mz101-nav[dir="rtl"] {
    flex-direction: row-reverse;
}

/* Desktop default */
.mz101-header .mz101-lang-switch {
  display: inline-flex;
}

.mz101-header .mz101-lang-mobile {
  display: none;
}

/* More than 4 languages: show dropdown on desktop */
.mz101-header .mz101-lang-mobile.mz101-force-dropdown {
  display: inline-block;
}

/* Mobile: always hide normal buttons and show dropdown */
@media (max-width: 860px) {
  .mz101-header .mz101-lang-switch {
    display: none;
  }

  .mz101-header .mz101-lang-mobile {
    display: inline-block;
  }
}
/* FARAFINA palette only — layout restored from original fixed header/footer styles. */
