/* ========================================
   CUSTOM NAVIGATION STYLES
   Copy your navigation styles here from faq.html
======================================== */
/* Custom navigation styling for FAQ page */
.navbar {
  position: relative !important;
  top: 0;
  background: var(--cream-50) !important;
  background: linear-gradient(150deg, white, var(--sage-200)) !important;
  /* create radial gradient below */
  background: radial-gradient(
    circle at center,
    white,
    var(--cream-100)
  ) !important;
  margin: 25px 0;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(15, 47, 18, 0.06);
  width: 100%;
  padding: 30px 20px;
  z-index: 1000;
}
/* make the .navbar top 0px and top left and top right border width 0px on smaller screens */
@media (max-width: 991.98px) {
  .navbar {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}
.nav-container {
  max-width: 1240px;
  padding: 0 24px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.navbar-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--green-900) !important;
  letter-spacing: -0.01em;
  order: 2;
}

.navbar-brand-mobile {
  display: none;
}

.navbar-brand sup {
  font-size: 14px;
  top: -0.8em;
}

.navbar-toggler {
  order: 3;
  border-color: rgba(15, 47, 18, 0.2);
  color: var(--green-900);
}

.navbar-collapse {
  order: 4;
  width: 100%;
}

.navbar-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

/* First 3 items on left */
.navbar-nav li:nth-child(1),
.navbar-nav li:nth-child(2),
.navbar-nav li:nth-child(3) {
  margin-right: 0;
}

/* Brand item in center */
.navbar-nav li:nth-child(4) {
  flex: 0 0 auto;
}

.navbar-nav li:nth-child(4) .navbar-brand {
  display: block;
}

/* Last 3 items on right */
.navbar-nav li:nth-child(5),
.navbar-nav li:nth-child(6),
.navbar-nav li:nth-child(7) {
  margin-left: 0;
  /*margin-left: auto;*/
}

.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--green-900) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 26px !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Soft underline reveal */
.nav-link::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  transform: scaleX(0);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--green-900),
    transparent
  );
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gentle background glow */
.nav-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(194, 207, 188, 0.12) 0%,
    transparent 70%
  );
  border-radius: 12px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-link:hover {
  color: var(--green-900) !important;
}

.nav-link:hover::before {
  transform: scaleX(1);
  opacity: 0.7;
}

.nav-link:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Active state for current page */
.nav-link.active,
.nav-link[aria-current="page"] {
  font-weight: 700;
}

.nav-link.active::before,
.nav-link[aria-current="page"]::before {
  transform: scaleX(1);
  opacity: 1;
  background: var(--green-900);
}

/* Mobile tap states */
@media (hover: none) and (pointer: coarse) {
  .nav-link:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .nav-link::before,
  .nav-link::after {
    transition: none;
  }

  .nav-link:hover::before {
    opacity: 1;
  }
}

.nav-link.nav-cta {
  background: var(--green-900);
  color: var(--cream-50) !important;
  border-radius: 12px;
  padding: 10px 20px !important;
}

.nav-link.nav-cta::before,
.nav-link.nav-cta::after {
  display: none;
}

.nav-link.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(15, 47, 18, 0.2);
  color: var(--cream-50) !important;
}

@media (max-width: 1199px) {
  .navbar-brand {
    display: none;
  }

  .navbar-brand-mobile {
    display: block;
    position: static;
    transform: none;
    order: 1;
    padding: 8px 0;
  }

  .navbar-toggler {
    order: 2;
  }

  .navbar-collapse {
    order: 3;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0;
    gap: 4px;
  }

  .navbar-nav li {
    margin: 0 !important;
    width: 100%;
  }

  .navbar-nav li:nth-child(4) {
    display: none;
  }

  .nav-link {
    padding: 12px 16px !important;
    width: 100%;
    text-align: left;
  }

  .nav-link::before {
    left: 16px;
    right: auto;
    width: 40px;
  }

  .nav-link.nav-cta {
    margin-top: 8px;
    text-align: center;
    display: block;
  }
}
