/* ===== NAVBAR BASE ===== */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  padding: 14px 0;
  transition: all 0.4s ease;
  /* background: transparent; */
  background: #ffffff;
}

.home-header.scrolled {
  background: #ffffff;
  padding: 9px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-logo img {
  height: 55px;
  width: 100px;
}

/* ===== DESKTOP NAV LINKS ===== */
.home-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-nav-links li a {
  text-decoration: none;
  /* color: #ffffff; */
  color: #5e9800;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* when navbar scrolled — switch link color to green */
.home-header.scrolled .home-nav-links li a {
  color: #5e9800;
}

.home-nav-links li a:hover {
  opacity: 0.8;
}
.home-nav-links li a:focus,
.home-nav-links li a:active {
  outline: none;
  background: none !important;
}

.home-nav-links li {
  background: transparent !important;
}

/* ===== DESKTOP DROPDOWN ===== */
.home-dropdown {
  position: relative;
  padding: 15px 0;
}

.home-dropdown > a {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s;
}

.home-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.home-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 240px;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
  border-top: 3px solid #7cbf10;
}

.home-dropdown:hover .home-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.home-dropdown-menu li a {
  color: #5e9800 !important;
  padding: 10px 20px !important;
  display: block;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition:
    background 0.2s,
    padding-left 0.2s;
}

.home-dropdown-menu li a:hover {
  background: #f4fae8 !important;
  padding-left: 26px !important;
  color: #3a7000 !important;
}
/* ===== NAV LINK HOVER EFFECT ===== */
.home-nav-links li a {
  position: relative;
  transition: all 0.35s ease;
}

/* animated underline */
.home-nav-links li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #7cbf10;
  transition: all 0.35s ease;
  transform: translateX(-50%);
}

/* hover animation */
.home-nav-links li a:hover {
  color: #3a7000;
  transform: translateY(-2px);
}

/* show underline */
.home-nav-links li a:hover::after {
  width: 70%;
}

/* ===== DESKTOP BOOK BUTTON ===== */
/* transparent state (on hero/top) */
.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;

  color: #5e9800;
  border: 2px solid #5e9800;
}

.book-btn:hover {
  background: #5e9800;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* scrolled state */
.home-header.scrolled .book-btn {
  background: #5e9800;
  color: #ffffff;
  border-color: #5e9800;
}

.home-header.scrolled .book-btn:hover {
  background: #3a7000;
  border-color: #3a7000;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(58, 112, 0, 0.28);
}

/* ===== MOBILE HAMBURGER ===== */
.mobile-menu-icon {
  display: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s;
}

.home-header.scrolled .mobile-menu-icon {
  color: #5e9800;
}

.mobile-only {
  display: none;
}

/* ===== OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2999;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s;
}

.nav-overlay.active {
  display: block;
}

/* =====================================================
   MOBILE SIDEBAR
   ===================================================== */
@media (max-width: 992px) {
  .nav-cta {
    display: none;
  }
  .mobile-menu-icon {
    display: block;
  }
  .mobile-only {
    display: block;
  }

  /* ── Panel ── */
  .home-nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    border-left: 3px solid #7cbf10;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    list-style: none;
    box-shadow: -6px 0 36px rgba(0, 0, 0, 0.16);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    display: flex;
  }

  .home-nav-links.active {
    right: 0;
  }

  /* ── Sidebar header ── */
  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background: linear-gradient(135deg, #2e7d32 0%, #7cbf10 100%); */
    padding: 22px 20px;
    flex-shrink: 0;
  }

  .sidebar-brand {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 0.3px;
  }

  .close-menu {
    /* color: ; */
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: transform 0.25s;
  }

  /* .close-menu:hover { transform: rotate(90deg); } */

  /* ── List items ── */
  .home-nav-links li {
    background: transparent !important;
    border-bottom: 1px solid #eef4e8;
  }

  .home-nav-links li:last-child {
    border-bottom: none;
  }

  /* ── Links ── */
  .home-nav-links li a {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #5e9800 !important;
    padding: 14px 20px !important;
    width: 100%;
    display: flex;
    align-items: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition:
      background 0.2s,
      padding-left 0.2s,
      color 0.2s;
    text-shadow: none !important;
  }

  .home-nav-links li a:hover {
    background: #f4fae8 !important;
    padding-left: 26px !important;
    color: #3a7000 !important;
    opacity: 1;
  }

  .home-nav-links li a:focus,
  .home-nav-links li a:active {
    outline: none;
    background: none !important;
  }

  /* ── Services dropdown trigger ── */
  .home-dropdown {
    position: relative;
    width: 100%;
    padding: 0;
  }

  .home-dropdown > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    padding: 14px 20px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    gap: 0 !important;
  }

  /* hide inline chevron, use pseudo instead */
  .home-dropdown > a .dropdown-arrow {
    display: none;
  }

  .home-dropdown > a::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #7cbf10;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .home-dropdown.active > a::after {
    transform: rotate(180deg);
  }

  /* ── Sub-menu ── */
  .home-dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    background: #f8fdf0;
    border-radius: 0;
    /* border-left: 3px solid #a8d84a; */
    border-top: none;
    box-shadow:
      inset 0 3px 10px rgba(94, 152, 0, 0.07),
      0 4px 14px rgba(94, 152, 0, 0.09);
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    padding: 4px 0;
    list-style: none;
  }

  .home-dropdown.active .home-dropdown-menu {
    display: block;
  }

  .home-dropdown-menu li {
    border-bottom: 1px solid #eef4e0;
  }

  .home-dropdown-menu li:last-child {
    border-bottom: none;
  }

  .home-dropdown-menu li a {
    font-size: 13.5px !important;
    color: #5e9800 !important;
    padding: 11px 20px 11px 32px !important;
    font-weight: 500 !important;
  }

  .home-dropdown-menu li a::before {
    content: "–";
    margin-right: 8px;
    color: #7cbf10;
    font-weight: 700;
  }

  .home-dropdown-menu li a:hover {
    background: #edf7d6 !important;
    padding-left: 38px !important;
    color: #3a7000 !important;
  }

  /* ── Mobile Book Appointment ── */
  .mobile-book-wrap {
    border-bottom: none !important;
    padding: 16px 18px 22px;
  }

  .home-nav-links li a.mobile-book-btn,
  .home-nav-links li a.mobile-book-btn:link,
  .home-nav-links li a.mobile-book-btn:visited {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #3a7000, #7cbf10) !important;
    color: #ffffff !important;
    font-family: "Sora", sans-serif;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-align: center;
    border: none !important;
    box-shadow: 0 6px 22px rgba(94, 152, 0, 0.32) !important;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease !important;
    text-shadow: none !important;
  }

  .home-nav-links li a.mobile-book-btn:hover {
    transform: translateY(-3px) !important;
    background: linear-gradient(135deg, #2e5f00, #5ea500) !important;
    box-shadow: 0 10px 28px rgba(94, 152, 0, 0.42) !important;
    color: #ffffff !important;
    padding-left: 20px !important;
  }
}

/* parent */
.has-submenu {
  position: relative;
}

/* RIGHT SIDE PANEL */
.submenu-panel {
  position: absolute;
  top: 0;
  left: 100%;
  width: 260px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-top: 3px solid #7ec013;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
}

/* SHOW PANEL ON HOVER */
.has-submenu:hover .submenu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* LINKS */
.submenu-panel a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #5e9800;
  text-decoration: none;
  transition: 0.2s;
}

/* BULLET STYLE */
.submenu-panel a::before {
  content: "▪";
  margin-right: 8px;
  color: #7cbf10;
}

/* HOVER */
.submenu-panel a:hover {
  background: #f4fae8;
  padding-left: 26px;
  color: #3a7000;
}

.home-dropdown-menu {
  width: 260px;
}