/* Navbar Styles - Exact Replica from staticsite/styles/navbar.css */

.navbar {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: none;
}
.navbar-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem clamp(1rem, 2.4vw, 3rem);
  border-bottom: 1px solid #eee;
  background: #FFFFFF;
}
.navbar-row-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 3rem;
  background: #FFFFFF;
}
.navbar .logo {
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1rem, 0.7vw + 0.75rem, 1.18rem);
  white-space: nowrap;
  margin-right: clamp(0.75rem, 1.2vw, 2rem);
}
.navbar-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.34rem;
  width: 2.9rem;
  height: 2.9rem;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
}
.navbar-menu-toggle span {
  display: block;
  width: 1.8rem;
  height: 0.2rem;
  border-radius: 999px;
  background: var(--primary);
}
.nav-links {
  display: flex;
  gap: clamp(0.6rem, 0.95vw, 1.5rem);
  font-size: clamp(0.85rem, 0.35vw + 0.7rem, 1rem);
  flex: 1;
  justify-content: flex-start;
}
.nav-links li {
  list-style: none;
  position: relative;
}
.nav-links li a {
  transition: color 0.3s;
  white-space: nowrap;
  color: #555555;
  text-decoration: none;
  border: none;
}
.nav-links > li > a:hover {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 4px;
}
.nav-links li a.active {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 4px;
}
.nav-links .has-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 0.35rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}
.dropdown-menu li {
  width: 100%;
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  color: #3d3d3d;
  border: none;
}
.dropdown-menu li a:hover {
  color: var(--primary);
  border-bottom: none;
}
.dropdown-menu .has-submenu {
  position: relative;
}
.dropdown-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  min-width: 210px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 0.35rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 130;
}
.has-submenu:hover > .dropdown-submenu,
.has-submenu:focus-within > .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links > li:nth-last-child(-n+3).has-dropdown > .dropdown-menu {
  left: auto;
  right: 0;
}
.submenu-indicator .sub-arrow {
  font-size: 0.7rem;
  margin-left: 0.5rem;
}
.nav-arrow {
  font-size: 0.7rem;
  margin-left: 3px;
}
.nav-links-secondary {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
}
.nav-links-secondary li {
  list-style: none;
}
.nav-links-secondary li a {
  transition: color 0.3s;
  color: #555555;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.nav-links-secondary li a:hover {
  color: var(--primary);
}
.mobile-nav-panel {
  display: none;
}
.mobile-nav-list,
.mobile-submenu {
  list-style: none;
}
.mobile-nav-item {
  border-top: 1px solid #ece7e7;
}
.mobile-nav-link-single,
.mobile-nav-item-row {
  min-height: 3.5rem;
}
.mobile-nav-link-single,
.mobile-nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  color: #20304a;
  font-size: 1rem;
}
.mobile-nav-parent {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.mobile-nav-link-single {
  padding: 0.9rem 1.25rem;
}
.mobile-nav-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #ffffff;
}
.mobile-nav-link {
  min-height: 3.5rem;
}
.mobile-nav-link-single.active,
.mobile-nav-item-row.active {
  background: var(--primary);
}
.mobile-nav-link-single.active,
.mobile-nav-item-row.active .mobile-nav-link,
.mobile-nav-item-row.active .mobile-nav-toggle {
  color: #ffffff;
}
.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3rem;
  align-self: stretch;
  background: transparent;
  border: none;
  color: #20304a;
  cursor: pointer;
}
.mobile-nav-chevron {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}
.mobile-nav-item.is-open > .mobile-nav-item-row .mobile-nav-chevron {
  transform: rotate(180deg);
}
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  background: #fcfbff;
  transition: max-height 0.28s ease;
}
.mobile-submenu.is-open {
  max-height: 32rem;
}
.mobile-submenu .mobile-nav-item {
  border-top: 1px solid #f0ebeb;
}
@media (max-width: 1320px) {
  .navbar {
    position: sticky;
    top: 0;
  }
  .navbar-row-1 {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: none;
  }
  .navbar .logo {
    margin-right: 0;
    font-size: 1.15rem;
  }
  .navbar-menu-toggle {
    display: inline-flex;
  }
  .nav-links,
  .navbar-row-2 {
    display: none;
  }
  .mobile-nav-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    border-top: 1px solid #ece7e7;
    transition: max-height 0.32s ease;
  }
  .mobile-nav-panel.is-open {
    max-height: calc(100vh - 4.75rem);
    overflow-y: auto;
  }
}
