/* Base */
.hm-nav.hm-nav--classic {
  /* Site-level tuning variables */
  --hm-font-family: "Karla";
  --hm-font-size: 0.875rem;
  --hm-font-weight: 600;
  --hm-submenu-font-weight: 400;
  --hm-menu-color: #272425;
  --hm-panel-background: #272425;
  --hm-button-background: #000000;
  --hm-button-color: #ffffff;
  --hm-touch-target: 44px;
  --hm-space-2xs: .25rem;
  --hm-space-xs: .5rem;
  --hm-space-sm: 1rem;
  --hm-panel-min-width: 16rem;
  --hm-panel-width: 400px;
  --hm-panel-max-width: var(--hm-panel-width);
  --hm-panel-viewport-gutter: var(--hm-space-sm);
  --hm-panel-header-height: 95px;
  --hm-panel-header-gap: var(--hm-space-xs);
  --hm-dropdown-width: 1240px;
  --hm-dropdown-height: 200px;
  --hm-dropdown-viewport-gutter: 2rem;
  --hm-submenu-max-width: 24rem;
  --hm-dropdown-top: 0px;
  position: relative;
  font-family: var(--hm-font-family);
  font-size: var(--hm-font-size);
  font-weight: var(--hm-font-weight);
  color: var(--hm-menu-color);
  padding-right: var(--hm-space-sm);
}

/* Dropdown top offset - aligns with header height */
@media (min-width: 769px) {
  .hm-nav.hm-nav--classic {
    --hm-dropdown-top: 77px;
  }
}

/* Panel visible by default on desktop */
.hm-nav.hm-nav--classic .hm-nav__panel {
  display: block;
}

/* Panel header - hidden on desktop, shown on mobile */
.hm-nav.hm-nav--classic .hm-nav__panel-header {
  display: none;
  align-items: center;
  min-height: auto;
  margin-bottom: 0;
  padding: 0rem 0rem 1rem 0rem;
}

/* Panel logo */
.hm-nav.hm-nav--classic .hm-nav__panel-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
}

/* Hide toggle and button by default - shown via media queries */
.hm-nav.hm-nav--classic .hm-nav__toggle,
.hm-nav.hm-nav--classic .hm-nav__button {
  display: none;
}

/* Reset toggle button styles */
.hm-nav.hm-nav--classic .hm-nav__toggle {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1;
  margin: 0;
  padding: 0;
  text-align: inherit;
  text-transform: none;
}

/* Toggle icon - SVG swap handled by menu.js */
.hm-nav.hm-nav--classic .hm-nav__toggle-icon {
  display: block;
  width: 36px;
  height: 28px;
}

/* Main menu - horizontal flex on desktop */
.hm-nav.hm-nav--classic .hm-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hm-nav.hm-nav--classic li {
  position: relative;
}

/* Nav Links - Uppercase Spaced */
.hm-nav.hm-nav--classic li > a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hm-touch-target);
  padding: var(--hm-space-2xs) 1.5rem;
  color: var(--hm-menu-color);
  font-family: "Karla", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-decoration: none;
}

/* Global link hover - white */
a:hover {
  color: #ffffff !important;
}

/* Active nav link - current page and parent of current page */
.hm-nav.hm-nav--classic .hm-menu > li.current-menu-item > a,
.hm-nav.hm-nav--classic .hm-menu > li.current-menu-ancestor > a,
.hm-nav.hm-nav--classic .hm-menu > li.current-menu-parent > a {
  color: #155BB5;
}

/* Submenu Links - base */
.hm-nav.hm-nav--classic .sub-menu > li > a {
  font-family: "Karla", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #272425;
}

/* Submenu toggle button - chevron */
.hm-nav.hm-nav--classic li > .submenu-toggle-inline {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--hm-touch-target);
  min-height: var(--hm-touch-target);
  line-height: 1;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: var(--hm-space-2xs);
  padding: 0;
  cursor: pointer;
  text-transform: none;
}

.hm-nav.hm-nav--classic li.menu-item-has-children > .sub-menu {
  flex-basis: 100%;
}

.hm-nav.hm-nav--classic li > .submenu-toggle-inline:disabled {
  cursor: default;
  opacity: 1;
}

/* Chevron rotation animation */
.hm-nav.hm-nav--classic li > .submenu-toggle-inline svg {
  transition: transform .2s ease;
}

/* Submenu - hidden by default, positioned below parent */
.hm-nav.hm-nav--classic .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  margin: 0;
  padding: var(--hm-space-xs) 0;
  list-style: none;
  background: transparent;
}

/* Contact Button - base styles shared across breakpoints */
.hm-nav.hm-nav--classic .hm-nav__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hm-touch-target);
  padding: 0 2rem;
  background: var(--hm-button-background);
  color: var(--hm-button-color);
  font-family: "Karla", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-decoration: none;
}

/* Contact button - hover */
.hm-nav.hm-nav--classic .hm-menu .nav-contact > a:hover {
  background: transparent;
  color: #272425 !important;
  border: 1px solid #272425;
}

/* Panel-only mode (all widths) */
.hm-nav.hm-nav--classic.hm-nav--mode-panel .hm-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--hm-touch-target);
  min-height: var(--hm-touch-target);
  position: relative;
  z-index: 40;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel .hm-nav__panel[hidden] {
  display: none;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel .hm-nav__panel-header {
  display: flex;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel .hm-nav__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  box-sizing: border-box;
  width: fit-content;
  min-width: min(100vw, var(--hm-panel-min-width));
  max-width: min(calc(100vw - var(--hm-panel-viewport-gutter)), var(--hm-panel-max-width));
  height: 100vh;
  padding: var(--hm-space-sm);
  margin: 0;
  overflow: auto;
  background: var(--hm-panel-background);
  transform: translateX(100%);
  transition: transform .2s ease;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel.is-open .hm-nav__panel {
  transform: translateX(0);
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel.is-closing .hm-nav__panel {
  transform: translateX(100%);
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel .hm-nav__panel.no-transition {
  transition: none !important;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel .hm-menu {
  display: block;
  margin: 0;
  padding: 0;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel li {
  position: static;
  margin: 0 0 var(--hm-space-2xs);
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel .sub-menu {
  position: static;
  margin: var(--hm-space-2xs) 0 0;
  padding: 0 0 0 var(--hm-space-xs);
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel li.open > .sub-menu {
  display: block !important;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel li.menu-item-has-children:hover > .sub-menu,
.hm-nav.hm-nav--classic.hm-nav--mode-panel li.menu-item-has-children:focus-within > .sub-menu {
  display: none;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel .hm-nav__button {
  width: 100%;
  margin-top: var(--hm-space-xs);
  padding: 0;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel li > a,
.hm-nav.hm-nav--classic.hm-nav--mode-panel .sub-menu > li > a {
  min-height: var(--hm-touch-target);
  padding: 0;
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel .sub-menu > li > a {
  font-weight: var(--hm-submenu-font-weight);
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel li > .submenu-toggle-inline {
  min-width: var(--hm-touch-target);
  min-height: var(--hm-touch-target);
  margin-left: var(--hm-space-xs);
}

.hm-nav.hm-nav--classic.hm-nav--mode-panel li.open > .submenu-toggle-inline svg {
  transform: rotate(180deg);
}

/* Desktop responsive classic mode */
@media (min-width: 1025px) {

  /* Hide plugin button on desktop - menu item used instead */
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .hm-nav__button {
    display: none;
  }

  /* Full width background panel via pseudo-element */
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive::before {
    content: "";
    position: fixed;
    left: 50%;
    top: var(--hm-dropdown-top, 0px);
    width: 100%;
    max-width: 100%;
    height: var(--hm-dropdown-height);
    transform: translateX(-50%);
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
	 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  clip-path: inset(0 -12px -12px -12px);
  }

  /* Show background panel when submenu is open */
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive:has(.hm-menu > li:hover > .sub-menu)::before {
    opacity: 1;
  }

  .hm-nav.hm-nav--classic.hm-nav--mode-responsive:has(.hm-menu > li.hm-desktop-open > .sub-menu)::before {
    opacity: 1;
  }

  /* Desktop submenu positioning */
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .hm-menu > li > .sub-menu {
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 100%;
    max-width: var(--hm-submenu-max-width);
    z-index: 20;
    background: transparent;
    padding: 1rem 0;
  }

  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .hm-menu > li.hm-submenu-align-right > .sub-menu {
    left: auto;
    right: 0;
  }

  /* Show submenu on hover and keyboard open */
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .hm-menu > li:hover > .sub-menu {
    display: block;
  }

  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .hm-menu > li.hm-desktop-open > .sub-menu {
    display: block;
  }

  /* Chevron size on desktop - pointer events disabled */
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive li > .submenu-toggle-inline {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    min-height: 1rem;
    margin-left: 0;
    pointer-events: none;
  }

  /* Rotate chevron when submenu is open */
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .hm-menu > li:hover > .submenu-toggle-inline svg,
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .hm-menu > li.hm-desktop-open > .submenu-toggle-inline svg {
    transform: rotate(180deg);
  }

  /* Submenu link spacing - desktop */
  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .sub-menu > li > a {
    display: flex;
    align-items: center;
    min-height: unset;
    font-weight: var(--hm-submenu-font-weight);
    padding: 0.5rem 1.5rem;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #272425;
  }

  .hm-nav.hm-nav--classic.hm-nav--mode-responsive .sub-menu .sub-menu {
    position: static;
    display: block;
    margin-top: var(--hm-space-2xs);
    padding-left: var(--hm-space-xs);
  }

  /* Contact - desktop button style */
  .hm-nav.hm-nav--classic .hm-menu .nav-contact > a {
    background: #272425;
    color: #ffffff !important;
    padding: 0.5rem 5rem;
    margin: auto;
	border: 1px solid #272425;
  }
}

/* Mobile responsive mode */
@media (max-width: 1024px) {

  /* Hide regular Contact on mobile - plugin button used instead */
  .hm-menu .nav-contact {
    display: none;
  }

  /* Show hamburger toggle on mobile */
  .hm-nav.hm-nav--classic .hm-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--hm-touch-target);
    min-height: var(--hm-touch-target);
    position: relative;
    z-index: 1001;
  }

  .hm-nav.hm-nav--classic .hm-nav__panel[hidden] {
    display: none;
  }

  /* Show panel header with logo on mobile */
  .hm-nav.hm-nav--classic .hm-nav__panel-header {
    display: flex;
  }

  /* Mobile panel - full screen white overlay */
  .hm-nav.hm-nav--classic .hm-nav__panel {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: 100vh;
    padding: var(--hm-space-sm);
    margin: 0;
    overflow: auto;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform .2s ease;
  }

  /* Slide in when open */
  .hm-nav.hm-nav--classic.is-open .hm-nav__panel {
    transform: translateX(0);
  }

  /* Slide out when closing */
  .hm-nav.hm-nav--classic.is-closing .hm-nav__panel {
    transform: translateX(100%);
  }

  .hm-nav.hm-nav--classic .hm-nav__panel.no-transition {
    transition: none !important;
  }

  /* Stack menu items vertically on mobile */
  .hm-nav.hm-nav--classic .hm-menu {
    display: block;
    margin: 0;
    padding: 0;
  }

  .hm-nav.hm-nav--classic li {
    position: static;
    margin: 0 0 var(--hm-space-2xs);
  }

  .hm-nav.hm-nav--classic .sub-menu {
    position: static;
    margin: var(--hm-space-2xs) 0 0;
    padding: 0 0 0 var(--hm-space-xs);
  }

  .hm-nav.hm-nav--classic li.open > .sub-menu {
    display: block !important;
  }

  .hm-nav.hm-nav--classic li.menu-item-has-children:hover > .sub-menu,
  .hm-nav.hm-nav--classic li.menu-item-has-children:focus-within > .sub-menu {
    display: none;
  }

  /* Mobile Contact button - full width */
  .hm-nav.hm-nav--classic .hm-nav__button {
    width: 100%;
    margin-top: var(--hm-space-xs);
    padding: 0;
    background: var(--hm-button-background);
    color: var(--hm-button-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--hm-touch-target);
    font-family: "Karla", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    text-decoration: none;
  }

  .hm-nav.hm-nav--classic li > a,
  .hm-nav.hm-nav--classic .sub-menu > li > a {
    min-height: var(--hm-touch-target);
    padding: 0;
  }

  /* Mobile panel - dark link colors */
  .hm-nav.hm-nav--classic .hm-menu > li > a,
  .hm-nav.hm-nav--classic .sub-menu > li > a {
    color: #272425;
  }

  .hm-nav.hm-nav--classic .sub-menu > li > a {
    font-weight: var(--hm-submenu-font-weight);
  }

  .hm-nav.hm-nav--classic li > .submenu-toggle-inline {
    min-width: var(--hm-touch-target);
    min-height: var(--hm-touch-target);
    margin-left: var(--hm-space-xs);
  }

  /* Rotate chevron when submenu is open on mobile */
  .hm-nav.hm-nav--classic li.open > .submenu-toggle-inline svg {
    transform: rotate(180deg);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hm-nav.hm-nav--classic .hm-nav__panel {
    transition: none !important;
  }
}