/* ===== RESET WordPress interference ===== */
.floating-navbar,
.floating-navbar * {
  box-sizing: border-box;
}

/* ===== Replace the floating-navbar styles ===== */
.floating-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;        /* ✅ Remove the translateX(-50%) */
  width: 100% !important;            /* ✅ Full screen width */
  max-width: 100% !important;
  background-color: #ffffff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999 !important;
  padding: 14px 40px !important;     /* horizontal padding for breathing room */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border-radius: 0 !important;       /* ✅ No rounded corners */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

/* ===== Admin bar offset ===== */
body.admin-bar .floating-navbar {
  top: 32px !important;
}
body.admin-bar {
    padding-top: 65px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .floating-navbar {
    top: 46px !important;
  }
}

/* ===== Body padding to prevent content hiding under navbar ===== */
body {
  padding-top: 80px !important;
  margin-top: 0 !important;
}


/* ===== Logo ===== */
.nav-left a img {
  max-height: 40px;
  width: auto;
  display: block;
}

/* ===== Desktop Nav ===== */
.custom-desktop-nav {
  display: flex !important;
  align-items: center;
  gap: 0;
}

.nav-dropdown-parent {
  position: relative;
  display: inline-block;
}

/* ===== Nav Links ===== */
.nav-link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none !important;
  color: #171717 !important;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #171717;
  transition: width 0.3s ease-out;
}

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

.nav-link-underline.active {
  font-weight: 600;
}

/* ===== Dropdown ===== */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 9999;
  min-width: 180px;
  padding: 8px 0;
}

.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  color: #171717 !important;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 14px;
}

.nav-dropdown a:hover {
  background-color: #f0f0f0;
}

.nav-dropdown-parent:hover .nav-dropdown {
  display: block;
}

/* ===== Get in Touch Button ===== */
.nav-cta-btn {
    background-color: #171717 !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: background 0.3s;
    white-space: nowrap;
    margin-left: 32px;
}

.nav-cta-btn:hover {
  background-color: #2e7d32 !important;
  color: #fff !important;
}

/* ===== Mobile Hamburger ===== */
.nav-hamburger {
  cursor: pointer;
  display: none;
}

/* ===== Mobile Sidebar ===== */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  display: none;
}

.mobile-sidebar-overlay.show {
  display: block;
}

.mobile-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100%;
  background: #fff;
  z-index: 9999;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-sidebar.show {
  transform: translateX(0);
}

.mobile-sidebar-header {
  border-bottom: 1px solid #ddd;
}

/* ===== Responsive ===== */
@media (min-width: 1121px) {
  .custom-desktop-nav { display: flex !important; }
  .nav-hamburger      { display: none !important; }
}

@media (max-width: 1120px) {
  .custom-desktop-nav { display: none !important; }
  .nav-hamburger      { display: flex !important; }
  
}
@media (max-width: 1170px) {

  .mobile-sidebar-overlay {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
  }

  .mobile-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

}
@media (max-width: 1170px) {

  .nav-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .nav-hamburger img {
    height: 22px;
  }

}

@media (max-width: 1170px) {

  .mobile-sidebar-body a {
    color: #171717 !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 12px 0;
  }

  .mobile-sidebar-body a:hover {
    color: #2e7d32 !important;
  }

}