@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* RTL: Arabic layout, language switcher & Arabic typography */

/* Arabic typography: use Tajawal across all Arabic UI */
/* Optional: لاستخدام 29LT Bukra بدل أميري، أضف ملفات الخط في /fonts/ وفعّل قواعد @font-face أدناه */

/*
@font-face {
  font-family: '29LT Bukra';
  src: url('../fonts/29LTBukra-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '29LT Bukra';
  src: url('../fonts/29LTBukra-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: '29LT Bukra';
  src: url('../fonts/29LTBukra-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

/* Language switcher - always visible (Tailwind may not include z-[70], right-4, etc.) */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.lang-toggle-text {
  display: inline-block;
}
.lang-toggle-text-en,
.lang-toggle-text-ar {
  text-transform: uppercase;
}
[dir="ltr"] .lang-toggle-text-ar {
  display: none;
}
[dir="rtl"] .lang-toggle-text-en {
  display: none;
}
.lang-switcher .lang-btn,
.lang-switcher button {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.lang-switcher .lang-btn:hover,
.lang-switcher button:hover {
  background: rgba(255, 255, 255, 0.2);
}
@media (min-width: 640px) {
  .lang-switcher {
    top: 1.5rem;
    right: 1.5rem;
  }
}

[dir="rtl"] body {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
}
[dir="rtl"] .font-serif,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .hero-headline,
[dir="rtl"] .workshop-card-title,
[dir="rtl"] .hero-name,
[dir="rtl"] .page-footer-name {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
}
[dir="rtl"] .workshop-card-title {
  font-weight: 600;
}

[dir="rtl"] .page-loader__tagline {
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
}

[dir="rtl"] .lang-switcher {
  right: auto;
  left: 1rem;
}
@media (min-width: 640px) {
  [dir="rtl"] .lang-switcher {
    left: 1.5rem;
  }
}

[dir="rtl"] .lang-switcher-nawal {
  right: auto !important;
  left: 1rem !important;
}

/* RTL position for new menu launcher */
[dir="rtl"] .menu-launcher {
  right: auto;
  left: 1rem;
}
@media (min-width: 640px) {
  [dir="rtl"] .menu-launcher {
    left: 1.5rem;
  }
}

[dir="rtl"] .ml-2 {
  margin-left: 0;
  margin-right: 0.5rem;
}

/* Language switcher inside site header / mobile sheet (not fixed corner) */
.site-header .lang-switcher--bar,
.site-menu-sheet .lang-switcher--bar {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.2rem 0;
}

.site-header .lang-switcher--bar .lang-btn,
.site-menu-sheet .lang-switcher--bar .lang-btn {
  color: rgba(90, 70, 50, 0.58);
  font-weight: 500;
}

.site-header .lang-switcher--bar .lang-btn:hover,
.site-menu-sheet .lang-switcher--bar .lang-btn:hover {
  background: transparent;
  color: var(--color-accent, #a67c52);
}
