/* ==========================================================================
   Mobile navigation
   - Turns the existing Bootstrap header (.header-container / .navbar-container)
     into a clean black mobile bar with a visible hamburger toggle that opens
     the offcanvas menu.
   - Theme: black + champagne gold (#c9a485) to match the LP flow.
   Loaded after style-consolidate.css.
   ========================================================================== */

:root {
  --nav-accent: #c9a485;       /* champagne gold — matches the LP flow */
  --nav-accent-dark: #b48c68;  /* darker gold for hover states */
}

/* --------------------------------------------------------------------------
   MOBILE (<= 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {

  /* Stop horizontal page overflow from pushing the toggle off-screen. */
  html,
  body {
    overflow-x: hidden;
  }

  /* Remove the legacy mmenu header/menu so there is a single mobile bar.
     (Only the visible legacy bits — leave the .mmenu-page wrapper alone so it
     doesn't take the offcanvas down with it.) */
  .mobile-header,
  nav#menu {
    display: none !important;
  }

  /* The existing header becomes a solid black mobile bar.
     Use the #header id so it beats `header.sticky { background:#fff!important }`
     which the site's JS adds on scroll/load. */
  #header.header-container,
  #header.header-container.sticky,
  #header.header-container.sticky-new,
  #header.header-container.scrolled {
    background: #000 !important;
    background-color: #000 !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .navbar-container {
    padding: 10px 16px !important;
    max-width: 100%;
  }

  /* Hide desktop links; the offcanvas holds them on mobile */
  .navbar-container .navLinks {
    display: none !important;
  }

  /* Logo: shrink from the 244px desktop size and invert (art is dark) */
  .navbar-container .logo-img-2,
  .navbar-container .logo img {
    width: 150px !important;
    max-width: 45vw !important;
  }

  .navbar-container .logo img {
    filter: brightness(0) invert(1);
  }

  /* Hamburger toggle — always visible, pinned to the right */
  .navbar-container .menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    cursor: pointer;
  }

  .navbar-container .menu img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Hide the header Inquire button on mobile (available inside the menu) */
  .navbar-container .primary-button.custom-visible {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Offcanvas toggle nav panel (the menu itself)
   -------------------------------------------------------------------------- */
.offcanvas.offcanvas-end {
  width: min(86vw, 400px);
  /* Solid dark panel so the light links are always readable. */
  background: linear-gradient(160deg, #1a1a1a 0%, #000 100%);
  border-left: 3px solid var(--nav-accent);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
}

.offcanvas.offcanvas-end .offcanvas-header {
  background-color: transparent;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.offcanvas-logo .logo-img {
  width: 160px;
}

.offcanvas-logo .logo-img img {
  filter: brightness(0) invert(1);
}

/* Close button — compact, circular, gold on hover */
.offcanvas-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  transform: none;
  filter: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.offcanvas-close:hover {
  background: var(--nav-accent);
  border-color: var(--nav-accent);
  transform: rotate(90deg);
}

.offcanvas-close i {
  font-size: 1.4rem;
  color: #fff;
}

/* Links */
.offcanvas-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.offcanvas-links {
  gap: 0;
  margin: 0.5rem 0;
}

.offcanvas-links .line {
  display: none;
}

.offcanvas-link {
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  padding: 1rem 0;
  width: 100%;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.offcanvas-link:hover,
.offcanvas-link:focus {
  color: var(--nav-accent);
  padding-left: 0.75rem;
}

/* Inquire button inside the menu */
.offcanvas-cta {
  margin-top: auto;
  padding-top: 2rem;
}

.offcanvas-cta .btnPrimaryMobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: var(--nav-accent);
  color: #111;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.offcanvas-cta .btnPrimaryMobile:hover {
  background: var(--nav-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 164, 133, 0.4);
}
