/* ============================================================
   Shared site navigation styles (SMK Group)
   Used by the rentals pages via @include('partials.site-nav').
   The public landing page (index.blade.php) carries an identical
   copy of these rules inline; keep the two in sync when editing.
   Relies on each page's :root palette (--gold, --navy-deep, etc.).
   ============================================================ */

/* ----- Buttons (nav CTA / member area) ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 2px; font-size: .95rem; font-weight: 500;
  letter-spacing: .02em; cursor: pointer; border: 1px solid transparent;
  transition: all .45s var(--ease); font-family: inherit; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 14px 30px -14px rgba(201, 162, 75, .6); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(201, 162, 75, .75); }
.btn-ghost { background: transparent; color: var(--off); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn-sm { padding: 11px 22px; font-size: .85rem; }

/* ----- Header / logo ----- */
.brand-serif { font-family: var(--serif); letter-spacing: .04em; }
header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  background: rgba(14, 16, 18, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.nav { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .lw { font-family: var(--serif); font-size: 1.55rem; color: var(--gold); letter-spacing: .06em; font-weight: 600; }
.logo .ls { font-family: var(--sans); font-size: .58rem; letter-spacing: .42em; color: var(--off-dim); text-transform: uppercase; margin-top: 4px; }
html[lang="ar"] .logo .ls { letter-spacing: .2em; }

/* ----- Desktop links ----- */
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .95rem; color: var(--off-dim); transition: color .3s; }
html[lang="ar"] .nav-links a { font-size: 1rem; }
.nav-links a:hover { color: var(--off); }
.nav-links a.active { color: var(--gold); }

/* ----- Dropdown ----- */
.nav-links .dropdown { position: relative; display: inline-block; }
.nav-links .dropdown-menu {
  position: absolute; top: 100%; right: 0;
  background: var(--navy-card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); border-radius: 8px;
  min-width: 220px; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all .3s ease; z-index: 100; padding: 8px 0;
}
.nav-links .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .dropdown-menu a { display: block; padding: 10px 20px; color: var(--off); font-size: .9rem; transition: background .3s, color .3s; }
.nav-links .dropdown-menu a:hover { background: var(--navy-deep); color: var(--gold); }
[dir="ltr"] .nav-links .dropdown-menu { right: auto; left: 0; }

/* ----- Actions / language switch ----- */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 2px; padding: 3px; }
.lang-switch a {
  background: transparent; border: 0; color: var(--off-dim); cursor: pointer;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; font-weight: 500;
  padding: 5px 9px; border-radius: 1px; transition: all .3s; text-decoration: none; line-height: 1;
}
.lang-switch a:hover { color: var(--off); }
.lang-switch a.active { background: var(--gold); color: var(--navy-deep); }
.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 6px; color: var(--gold); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ----- Mobile menu ----- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(14, 16, 18, .96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s var(--ease), visibility .45s var(--ease); overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 24px 40px; max-width: 500px; margin: 0 auto; width: 100%; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.mobile-close { background: rgba(201, 162, 75, .12); border: 1px solid var(--line); color: var(--gold); width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .3s; }
.mobile-close svg { width: 22px; height: 22px; }
.mobile-close:active { transform: scale(.92); background: var(--gold); color: var(--navy-deep); }
.mobile-nav-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.mobile-main-link { font-family: var(--serif); font-size: 1.45rem; color: var(--off); font-weight: 500; display: flex; align-items: center; justify-content: space-between; padding: 6px 0; transition: color .3s; }
html[lang="ar"] .mobile-main-link { font-family: var(--ar); font-weight: 700; font-size: 1.35rem; }
.mobile-main-link:hover, .mobile-main-link:active { color: var(--gold); }
.mobile-sub-services { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; padding: 16px; background: var(--navy-card); border: 1px solid rgba(201, 162, 75, .18); border-radius: 8px; }
.mobile-sub-services a { font-size: 1rem; color: var(--off-dim); display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; transition: all .3s; }
.mobile-sub-services a span { color: var(--gold); font-size: .8rem; }
.mobile-sub-services a:hover, .mobile-sub-services a:active { background: rgba(201, 162, 75, .12); color: var(--off); }
.mobile-menu-footer { padding-top: 24px; border-top: 1px solid var(--line); }
.mobile-quick-contact { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; font-size: .9rem; color: var(--off-dim); font-family: var(--sans); }
.mobile-quick-contact a { display: flex; align-items: center; gap: 10px; }
.mobile-quick-contact svg { width: 18px; height: 18px; stroke: var(--gold); flex-shrink: 0; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-actions .desktop-only { display: none; }
}
@media (max-width: 640px) {
  .logo .lw { font-size: 1.35rem; }
  .logo .ls { font-size: .52rem; }
  .lang-switch a { padding: 4px 8px; font-size: .68rem; }
  .menu-toggle { background: rgba(201, 162, 75, .12); border: 1px solid rgba(201, 162, 75, .35); border-radius: 6px; padding: 8px; }
  .menu-toggle svg { width: 22px; height: 22px; }
}
