/* ============================================================
   NAVBAR-REVAMP.CSS
   Used on all revamped pages (NOT index.html).
   Class: .navbar-r
   ============================================================ */

.navbar-r {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(131,184,164,.12);
  box-shadow: 0 2px 20px rgba(44,57,55,.06);
  transition: box-shadow .3s, background .3s;
}
.navbar-r.scrolled {
  box-shadow: 0 4px 32px rgba(44,57,55,.13);
  background: rgba(255,255,255,.99);
}

/* ---- Container ---- */
.nav-r-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---- Logo ---- */
.nav-r-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-r-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #2c3937 0%, #3d524f 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #83b8a4;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(44,57,55,.2);
}
.nav-r-logo-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3937;
  line-height: 1.1;
}
.nav-r-logo-text span {
  color: #83b8a4;
}

/* ---- Nav Links ---- */
.nav-r-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-r-links a {
  display: inline-block;
  padding: 8px 14px;
  font-family: "Poppins", sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-r-links a:hover {
  color: #2c3937;
  background: rgba(131,184,164,.1);
}
.nav-r-links a.active {
  color: #2c3937;
  font-weight: 700;
}

/* Dropdown wrapper */
.nav-r-dropdown {
  position: relative;
}
.nav-r-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-r-dropdown > a svg.chevron {
  transition: transform .25s;
  flex-shrink: 0;
}
.nav-r-dropdown:hover > a svg.chevron {
  transform: rotate(180deg);
}
.nav-r-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(131,184,164,.2);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(44,57,55,.14);
  padding: 10px;
  min-width: 240px;
  z-index: 100;
}
/* Invisible bridge to prevent hover loss */
.nav-r-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-r-dropdown:hover .nav-r-dropdown-menu {
  display: block;
  animation: dropIn .2s ease;
}
@keyframes dropIn {
  from { opacity:0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}
.nav-r-dropdown-menu a {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: 8px;
  font-size: .87rem !important;
  color: #4a5568 !important;
  background: transparent !important;
}
.nav-r-dropdown-menu a:hover {
  background: rgba(131,184,164,.1) !important;
  color: #2c3937 !important;
}

/* ---- CTA Button ---- */
.nav-r-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00633d;
  color: #fff !important;
  font-family: "Poppins", sans-serif;
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: .03em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,99,61,.3);
}
.nav-r-cta:hover {
  background: #005232;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,99,61,.42);
}

/* ---- Hamburger ---- */
.nav-r-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-r-hamburger:hover { background: rgba(131,184,164,.1); }
.nav-r-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #2c3937;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-r-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-r-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-r-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Drawer ---- */
.nav-r-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid rgba(131,184,164,.15);
  padding: 20px 24px 28px;
  box-shadow: 0 8px 28px rgba(44,57,55,.12);
}
.nav-r-mobile.open { display: block; }
.nav-r-mobile a {
  display: block;
  padding: 12px 14px;
  font-family: "Poppins", sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: #2c3937;
  border-radius: 8px;
  transition: background .2s;
}
.nav-r-mobile a:hover { background: rgba(131,184,164,.1); }
.nav-r-mobile .nav-r-cta-mob {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  background: #00633d;
  color: #fff !important;
  font-weight: 700;
  border-radius: 100px;
  padding: 12px 0;
  box-shadow: 0 4px 14px rgba(0,99,61,.3);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-r-links { gap: 2px; }
  .nav-r-links a { padding: 8px 10px; font-size: .84rem; }
}
@media (max-width: 768px) {
  .nav-r-links,
  .nav-r-cta { display: none; }
  .nav-r-hamburger { display: flex; }
  .nav-r-container { padding: 0 20px; }
}
