/* ============================================
   PREMIUM HEADER
   Loaded after webflow.css and enhancements.css
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: 84px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15, 42, 32, 0.06);
  transition: min-height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

/* Gradient accent line along the bottom edge */
.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #6CA40C, #2d6a4f 50%, #6CA40C);
  opacity: 0.9;
  pointer-events: none;
}

/* Scrolled state, added by scripts/header.ts */
.navbar.sticky {
  min-height: 70px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px rgba(15, 42, 32, 0.08);
}

.navbar-logo {
  width: 190px;
  height: auto;
  transition: width 0.35s ease;
}

.navbar.sticky .navbar-logo {
  width: 158px;
}

/* Animated underline on top-level links */
.nav-dropdown-label,
.nav-contact-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}

.nav-dropdown-label::after,
.nav-contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: #6CA40C;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-dropdown-toggle:hover .nav-dropdown-label::after,
.nav-contact-link:hover::after {
  transform: scaleX(1);
}

.nav-dropdown-toggle:hover .nav-dropdown-label {
  color: #2d6a4f;
}

/* Floating dropdown card */
.nav-dropdown-menu {
  border: 1px solid rgba(15, 42, 32, 0.06);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 42, 32, 0.14);
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-dropdown-item {
  transition: padding-left 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-item:hover {
  padding-left: 22px;
  background: rgba(108, 164, 12, 0.08);
  color: #2d6a4f;
}

/* Book a Call: gradient pill with a lift on hover.
   Add !important to a property if Webflow overrides it. */
.nav-cta-btn {
  border-radius: 999px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #6CA40C 0%, #2d6a4f 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(108, 164, 12, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(108, 164, 12, 0.45);
}

/* Language switcher matches the glass style */
.lang-toggle {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 42, 32, 0.1);
  border-radius: 999px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lang-toggle:hover {
  border-color: #6CA40C;
  box-shadow: 0 0 0 4px rgba(108, 164, 12, 0.12);
}

/* Mobile: solid background so the menu stays readable */
@media (max-width: 991px) {
  .navbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
  }

  .navbar-logo,
  .navbar.sticky .navbar-logo {
    width: 150px;
  }
}
.nav-contact-link {
  margin-right: 35px;
}

/* ===== PREMIUM HEADER ACTIONS ===== */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Book a Call: gradient pill with a light sweep and an arrow */
.nav-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #7bb51a 0%, #5a8f08 55%, #2d6a4f 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 24px rgba(45, 106, 79, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

/* Light sweep across the button on hover */
.nav-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  z-index: -1;
}

/* Small arrow after the label */
.nav-cta-btn::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(45, 106, 79, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-cta-btn:hover::before {
  left: 130%;
}

.nav-cta-btn:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.nav-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Language switcher: frosted pill with a soft ring on hover */
.lang-toggle {
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(45, 106, 79, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f6faf1 100%);
  box-shadow: 0 4px 12px rgba(15, 42, 32, 0.06), inset 0 1px 0 #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: #6CA40C;
  box-shadow: 0 0 0 4px rgba(108, 164, 12, 0.15), 0 8px 18px rgba(15, 42, 32, 0.1);
}

.lang-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(181, 224, 90, 0.4);
}