/* ==========================================================================
   BRIGHTWAY INTERIOR — WARM MINIMALIST LUXURY HEADER & NAVIGATION
   Pure English for Default Site | Pure Arabic (RTL) for /ar/ Site
   ========================================================================== */

:root {
  /* Warm Obsidian Charcoal & Satin Champagne Gold */
  --lux-bg: #121316;
  --lux-bg-elevated: #1a1c22;
  --lux-gold: #c5a880;
  --lux-gold-hover: #d8be99;
  --lux-gold-dim: rgba(197, 168, 128, 0.12);
  --lux-text: #f5f4f0;
  --lux-text-muted: #9da0a8;
  --lux-border: rgba(197, 168, 128, 0.18);
  --lux-border-active: rgba(197, 168, 128, 0.5);

  /* Glassmorphism Tokens */
  --lux-glass: rgba(18, 19, 22, 0.82);
  --lux-glass-scrolled: rgba(13, 14, 17, 0.95);
  --lux-blur: blur(20px);
  --lux-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);

  /* Typography */
  --font-en-main: 'Montserrat', sans-serif;
  --font-ar-main: 'Tajawal', 'Cairo', sans-serif;
  --font-display-main: 'Cinzel', serif;
}

/* ==========================================================================
   ARABIC MODE (RTL) STYLES (ACTIVE ON /ar/)
   ========================================================================== */

html[dir="rtl"] body {
  font-family: var(--font-ar-main) !important;
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .logo-fallback-text,
html[dir="rtl"] .brand-logo {
  direction: ltr !important; /* Keep Latin brand wordmark order */
}

html[dir="rtl"] .nav-link {
  font-size: 0.94rem !important;
  letter-spacing: 0 !important;
}

html[dir="rtl"] .dropdown-title {
  font-size: 0.95rem !important;
}

html[dir="rtl"] .dropdown-desc {
  font-size: 0.78rem !important;
}

html[dir="rtl"] .header-contact-btn {
  font-family: var(--font-ar-main) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}

html[dir="rtl"] .cta-arrow {
  transform: rotate(180deg) !important;
}

html[dir="rtl"] .lang-toggle-btn {
  font-family: var(--font-en-main) !important;
  letter-spacing: 0.06em !important;
}

/* ==========================================================================
   STICKY GLASSMORPHIC HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: var(--lux-glass) !important;
  backdrop-filter: var(--lux-blur) !important;
  -webkit-backdrop-filter: var(--lux-blur) !important;
  border-bottom: 1px solid var(--lux-border) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-sticky,
.site-header.scrolled {
  padding: 12px 0;
  background: var(--lux-glass-scrolled) !important;
  box-shadow: var(--lux-shadow);
  border-bottom-color: rgba(197, 168, 128, 0.3) !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo styling */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-fallback-text {
  font-family: var(--font-display-main);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #ffffff;
}

.logo-ksa-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(197, 168, 128, 0.15);
  border: 1px solid var(--lux-border);
  color: var(--lux-gold);
  margin-inline-start: 6px;
  display: inline-block;
}

/* ==========================================================================
   DESKTOP NAVIGATION
   ========================================================================== */

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--lux-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  transition: color 0.22s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background-color: var(--lux-gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--lux-text) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-caret {
  font-size: 0.65rem;
  color: var(--lux-gold);
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-caret {
  transform: rotate(180deg);
}

/* ==========================================================================
   LUXURY DROPDOWN MENU
   ========================================================================== */

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  min-width: 320px;
  background: rgba(20, 22, 27, 0.98);
  backdrop-filter: var(--lux-blur);
  -webkit-backdrop-filter: var(--lux-blur);
  border: 1px solid var(--lux-border);
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.75);
  list-style: none;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1001;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  margin-bottom: 4px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.dropdown-link:hover {
  background: rgba(197, 168, 128, 0.1);
}

.dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid var(--lux-border);
  color: var(--lux-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dropdown-content {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lux-text);
  margin-bottom: 2px;
}

.dropdown-desc {
  font-size: 0.7rem;
  color: var(--lux-text-muted);
}

/* ==========================================================================
   HEADER ACTIONS & LANGUAGE LINK
   ========================================================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Direct Language Link Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--lux-gold) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  background: rgba(197, 168, 128, 0.1) !important;
  border: 1px solid var(--lux-border) !important;
  border-radius: 30px;
  transition: all 0.22s ease;
  cursor: pointer;
  user-select: none;
}

.lang-toggle-btn:hover {
  background: rgba(197, 168, 128, 0.22) !important;
  border-color: var(--lux-gold) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.lang-globe-icon {
  font-size: 0.85rem;
}

/* Call to Action Button */
.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--lux-gold) !important;
  color: #0c0e12 !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
  border: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.header-contact-btn:hover {
  background: var(--lux-gold-hover) !important;
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35);
  transform: translateY(-1px);
}

.cta-arrow {
  font-size: 0.85rem;
  transition: transform 0.22s ease;
}

@media (max-width: 1080px) {
  .main-navigation {
    display: none;
  }
  .header-contact-btn {
    display: none;
  }
}

/* RTL Service Card Alignment & Punctuation Support */
html[dir="rtl"] .services-grid {
  direction: rtl !important;
}

html[dir="rtl"] .service-card {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] .service-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

html[dir="rtl"] .service-num {
  font-family: var(--font-en-main) !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

html[dir="rtl"] .service-title {
  text-align: right !important;
  font-family: var(--font-ar-main) !important;
  font-size: 1.15rem !important;
  line-height: 1.5 !important;
}

html[dir="rtl"] .service-excerpt {
  text-align: right !important;
  direction: rtl !important;
  unicode-bidi: isolate !important;
  font-family: var(--font-ar-main) !important;
  line-height: 1.8 !important;
  font-size: 0.88rem !important;
}

html[dir="rtl"] .service-details-drawer {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] .service-details-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

html[dir="rtl"] .service-point-item {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] .point-text-wrap {
  direction: rtl !important;
  text-align: right !important;
}

/* RTL Contact Form & Footer Alignment */
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .contact-form input::placeholder,
html[dir="rtl"] .contact-form textarea::placeholder {
  text-align: right !important;
  direction: rtl !important;
}

html[dir="rtl"] .contact-detail-item {
  text-align: right !important;
}

html[dir="rtl"] .contact-detail-value {
  text-align: right !important;
}

html[dir="rtl"] .footer-brand p,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .footer-links li {
  text-align: right !important;
}

html[dir="rtl"] .footer-social-icons {
  justify-content: flex-start !important;
}
