/* ================================
   BASE NAVBAR STYLING
================================ */
.custom-navbar {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 3rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 1055;
}

/* Scrolled state */
.custom-navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  padding: 0.6rem 3rem;
}

/* ================================
   BRAND
================================ */
.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0b4b3b;
}

.navbar-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #007b6e;
}

.brand-text {
  font-family: 'Poppins', sans-serif;
  color: #007b6e;
}

/* ================================
   DESKTOP NAV LINKS
================================ */
.nav-link {
  font-weight: 500;
  color: #333 !important;
  margin: 0 12px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #009f73 !important;
}

/* underline animation */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #00b288;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ================================
   HAMBURGER (MOBILE)
================================ */
.navbar-toggler {
  border: none;
  background: transparent;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler i {
  font-size: 1.5rem;
  color: #007b6e;
}

/* ================================
   OFFCANVAS (MOBILE MENU)
================================ */
.offcanvas {
  z-index: 1050;
}

/* Mobile-only offcanvas sizing */
@media (max-width: 991.98px) {
  .offcanvas {
    width: 80%;
    max-width: 320px;
  }

  .offcanvas-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .offcanvas-title {
    font-weight: 700;
    color: #007b6e;
  }

  .offcanvas-body {
    padding-top: 1.5rem;
  }

  .offcanvas .nav-link {
    padding: 12px 0;
    font-size: 1.1rem;
    color: #007b6e !important;
    text-align: left;
  }

  .offcanvas .nav-link:hover {
    color: #00b288 !important;
  }
}

/* ================================
   VISIBILITY CONTROL
================================ */

/* Hide desktop menu on mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }
}

/* Hide offcanvas on desktop */
@media (min-width: 992px) {
  .offcanvas {
    display: none !important;
  }
}

/* ================================
   BODY OFFSET (FIX OVERLAP)
================================ */
body {
  padding-top: 85px;
}

/* Adjust padding slightly on mobile */
@media (max-width: 576px) {
  body {
    padding-top: 75px;
  }
}
