/* ============================================================
   navbar.css — Mobile dropdown (replaces side panel)
   ============================================================ */

/* ── TOPBAR ── */
.topbar {
  background: var(--brand);
  padding: 7px 2rem;
  margin-top: 80px;
}
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a {
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 1.5rem; align-items: center; }

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  background-image: var(--texture);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 4px 20px rgba(160,0,93,0.1);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}

/* ── LOGO ── */
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: none !important;
}
.logo img:hover {
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.logo-fallback {
  display: none;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
}
.logo-fallback span { color: var(--text); font-weight: 400; }

/* ── DESKTOP NAV LINKS ── */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--brand);
  background: var(--brand-light);
}
.nav-links > li > a .chevron {
  width: 12px; height: 12px;
  transition: transform 0.2s;
  opacity: 0.6;
}
.nav-links > li:hover > a .chevron { transform: rotate(180deg); }

/* ── DESKTOP DROPDOWN ── */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s;
  z-index: 200;
}
.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.dropdown a:hover {
  color: var(--brand);
  background: var(--brand-light);
}

/* ── NAV ACTIONS ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── ENQUIRE CTA ── */
.nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--body);
}
.nav-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(160,0,93,0.3);
}

/* ── HAMBURGER — hidden on desktop ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════
   MOBILE DROPDOWN PANEL
   ══════════════════════════════════════ */

/* Overlay — dims page behind open dropdown */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 70px;                        /* starts below navbar */
  background: rgba(15,10,13,0.45);
  backdrop-filter: blur(3px);
  z-index: 890;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Panel — drops down from navbar */
.mobile-panel {
  position: fixed;
  top: 70px;                        /* sits right below fixed nav */
  left: 0;
  right: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  background-image: var(--texture);
  z-index: 900;
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 8px 30px rgba(160,0,93,0.15);
  /* animate open/close */
  transition: max-height 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.3s ease;
  opacity: 0;
}
.mobile-panel.open {
  max-height: 80vh;
  opacity: 1;
  overflow-y: auto;
}

/* Hide the old logo/close header inside panel — not needed for dropdown */
.mobile-header { display: none !important; }

/* ── MOBILE NAV LIST ── */
.mobile-nav {
  padding: 0.4rem 1.2rem 0.2rem;
  list-style: none;
  margin: 0;
}
.mobile-nav > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s;
  min-height: 48px;
  text-decoration: none;
}
.mobile-nav > li > a:hover { color: var(--brand); }
.mobile-nav > li:last-child > a { border-bottom: none; }

/* Parent row with arrow */
.mob-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.mob-arrow {
  font-size: 20px;
  color: var(--text-3);
  transition: transform 0.25s;
  line-height: 1;
  padding: 4px 8px;
}
.mob-parent.open .mob-arrow { transform: rotate(45deg); }

/* Sub-menus */
.mob-sub {
  display: none;
  list-style: none;
  padding: 4px 0 6px 0.8rem;
  background: var(--brand-light);
  border-radius: 8px;
  margin: 4px 0 8px;
}
.mob-sub.open { display: block; }
.mob-sub li a {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  font-size: 13.5px;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(160,0,93,0.08);
  min-height: 44px;
  text-decoration: none;
}
.mob-sub li:last-child a { border-bottom: none; }
.mob-sub li a:hover { color: var(--brand); }

/* CTA at bottom of dropdown */
.mobile-cta-wrap {
  padding: 1rem 1.2rem 1.4rem;
  border-top: 1px solid var(--border);
}
.mobile-cta-wrap .btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
}

/* ── FLOATING BUTTONS ── */
.float-wrap {
  position: fixed;
  bottom: 24px; right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
}
.float-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-dark);
  transition: transform 0.2s;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.12); }
.float-wa   { background: #25d366; }
.float-call { background: var(--brand); }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 24px; left: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.scroll-top:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.scroll-top.visible { display: flex; }

/* ══════════════════════════════════════
   MOBILE BREAKPOINT ≤ 768px
   ══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Hide desktop nav links */
  .nav-links { display: none !important; }

  /* Hide desktop Enquire Now — shown in dropdown instead */
  .nav-cta { display: none !important; }

  /* Show hamburger */
  .hamburger { display: flex !important; }

  /* Tighter nav height on mobile */
  nav {
    height: 70px;
    padding: 0 1rem;
  }
  .nav-inner {
    height: 70px;
  }
  .logo img { height: 50px; }

  /* Topbar sits below the 70px nav */
  .topbar {
    height: 40px;
    padding: 0 10px;
    margin-top: 70px;
  }
  .topbar-inner a,
  .topbar-inner span {
    font-size: 13px;
    line-height: 1;
    margin-top: 18px;
    margin-left: 10px;
  }

  /* Show dark toggle on mobile */
  .dark-toggle-wrap {
    display: flex !important;
    align-items: center;
    gap: 5px;
  }
  .dark-toggle {
    width: 38px;
    height: 22px;
  }
  .dark-toggle-thumb {
    width: 16px;
    height: 16px;
  }
  html.dark .dark-toggle-thumb {
    transform: translateX(16px);
  }
  .t-sun, .t-moon { font-size: 13px; }

  /* Show overlay when menu open */
  .mobile-overlay { display: block; }

  /* Panel drops below 70px navbar on mobile */
  .mobile-panel { top: 70px; }
}