/*==========================================================================
Luxe by Lotels — Navigation (sticky header + mobile off-canvas drawer)
Matches the Gardens by Lotels site layer. Replaces the theme's meanmenu
dependency, which was never shipped.
==========================================================================*/

/* Suppress the legacy theme meanmenu shell entirely */
.mean-bar, .mean-container, .meanmenu-reveal, a.meanmenu-reveal {
  display: none !important;
}

/* ---------- Header shell ---------- */
.header__area { padding: 0 clamp(15px, 3vw, 50px); }
.header__area-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.header__area-menubar-left { display: flex; align-items: center; }
.header__area-menubar-left-logo { display: flex; align-items: center; }

/* The Luxe mark is a JPEG on a white ground — frame it so it reads as a badge */
.header__area-menubar-left-logo a img {
  max-height: 46px;
  width: auto;
  background: #fff;
  padding: 5px 9px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

/* Active state on the desktop menu */
.header__area-menubar-right-menu ul li.active > a { color: var(--primary-color); }

/* ---------- Sticky header (applied by static/js/site-nav.js) ---------- */
.header__sticky.is-sticky .header__area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(14, 19, 23, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  animation: lt-header-in .45s ease-out;
}
.header__sticky.is-sticky .header__area-menubar-right-menu ul li a { padding-top: 28px; padding-bottom: 28px; }
@keyframes lt-header-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- Mobile controls (hamburger + compact Book) ---------- */
.lt-mobile-controls {
  display: none;
  align-items: center;
  gap: 12px;
}
.lt-mobile-book {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  transition: background .3s ease, transform .3s ease;
}
.lt-mobile-book:hover { background: #a37d38; color: #fff; transform: translateY(-1px); }

.lt-nav-toggle {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background .3s ease;
}
.lt-nav-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.lt-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
body.lt-drawer-open .lt-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.lt-drawer-open .lt-nav-toggle span:nth-child(2) { opacity: 0; }
body.lt-drawer-open .lt-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Luxe switches to the drawer a breakpoint later than Gardens: its logo badge
   is wider, so the desktop row would crowd between 1100px and 1199px. */
@media (max-width: 1199.98px) {
  .header__area-menubar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    min-height: 54px;
  }
  .header__area-menubar-left {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
  }
  .header__area-menubar-left-logo { width: auto; padding: 0; }
  .header__area-menubar-right,
  .header__area-menubar-right-box { display: none !important; }
  .responsive-menu.lt-mobile-controls {
    display: flex !important;
    position: static;
    width: auto;
    top: auto;
  }
  .header__area-menubar-left-logo a img { max-height: 44px; }
}
@media (min-width: 1200px) {
  .responsive-menu.lt-mobile-controls { display: none !important; }
  .header__area-menubar-right { display: block !important; }
}
@media (max-width: 400px) {
  .lt-mobile-book { display: none; }
  .header__area-menubar-left-logo a img { max-height: 38px; padding: 4px 7px; }
}

/* ---------- Off-canvas drawer ---------- */
.lt-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(8, 11, 14, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
}
.lt-drawer-backdrop:not([hidden]) { opacity: 1; }

.lt-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
  width: min(86vw, 380px);
  /* Deep garden-green charcoal with a warm gold bloom — not flat black */
  background:
    radial-gradient(520px 260px at 88% -8%, rgba(184, 145, 70, 0.26), transparent 62%),
    radial-gradient(420px 320px at 0% 100%, rgba(60, 110, 84, 0.18), transparent 68%),
    linear-gradient(165deg, #1A2620 0%, #121C18 42%, #0C1412 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 28px;
  transform: translateX(105%);
  transition: transform .38s cubic-bezier(.22, .8, .3, 1);
  overflow-y: auto;
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.45);
}
.lt-drawer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(184, 145, 70, .35) 45%, transparent 100%);
}
body.lt-drawer-open .lt-drawer { transform: translateX(0); }
body.lt-drawer-open { overflow: hidden; }

.lt-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lt-drawer-logo img {
  max-width: 130px;
  height: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}
.lt-drawer-close {
  /* flex-basis pins the circle: the theme's global button rules otherwise stretch it */
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.lt-drawer-close:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: rotate(90deg);
}

.lt-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 18px 0;
}
.lt-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 10px;
  color: #E7E8E9;
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .25s ease, color .25s ease, padding-left .25s ease;
}
.lt-drawer-nav a i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  font-size: 15px;
}
.lt-drawer-nav a:hover,
.lt-drawer-nav a.active {
  background: linear-gradient(90deg, rgba(184, 145, 70, 0.28) 0%, rgba(184, 145, 70, 0.06) 100%);
  box-shadow: inset 2px 0 0 var(--primary-color);
  color: #fff;
  padding-left: 16px;
}
.lt-drawer-nav a.active i { color: #D4B06A; }

.lt-drawer-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 16px;
  transition: background .3s ease;
}
.lt-drawer-cta:hover { background: #a37d38; color: #fff; }

.lt-drawer-contact {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lt-drawer-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #CCCCCC;
  font-size: 14px;
  transition: color .25s ease;
}
.lt-drawer-contact a i { color: var(--primary-color); width: 18px; text-align: center; }
.lt-drawer-contact a:hover { color: #fff; }

@media (min-width: 1200px) {
  .lt-drawer, .lt-drawer-backdrop { display: none !important; }
}

/* ---------- Themed scrollbars ---------- */
html { scrollbar-color: #B89146 #EDECE7; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #EDECE7; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #C9A05A, #B89146);
  border-radius: 8px;
  border: 2px solid #EDECE7;
}
::-webkit-scrollbar-thumb:hover { background: #A37D38; }
.lt-drawer { scrollbar-color: #B89146 rgba(255, 255, 255, 0.06); }
.lt-drawer::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
.lt-drawer::-webkit-scrollbar-thumb { border-color: transparent; }
