/* Harry's Custom Header 2.0 */
#hhc-custom-header,
#hhc-custom-header *,
#hhc-custom-header *::before,
#hhc-custom-header *::after {
  box-sizing: border-box;
}

html.hhc-no-adminbar {
  margin-top: 0 !important;
}

body.hhc-header-active {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#hhc-custom-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999999;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: inherit;
  transform: translate3d(0, 0, 0);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1), box-shadow .2s ease;
  will-change: transform;
}

#hhc-custom-header.hhc-header-hidden {
  transform: translate3d(0, calc(-100% - 4px), 0);
}

#hhc-custom-header.hhc-header-visible {
  transform: translate3d(0, 0, 0);
}

body.admin-bar #hhc-custom-header {
  top: 32px;
}

#hhc-header-spacer {
  display: block;
  width: 100%;
  height: calc(var(--hhc-top-desktop) + var(--hhc-main-desktop));
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.hhc-shell {
  width: min(calc(100% - 56px), 1980px);
  margin-inline: auto;
}

.hhc-topbar {
  height: var(--hhc-top-desktop);
  background: var(--hhc-primary);
  color: #fff;
}

.hhc-topbar-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(300px, 2fr) minmax(230px, 1fr);
  align-items: center;
  gap: 24px;
  font-size: 15px;
  line-height: 1;
}

.hhc-location,
.hhc-top-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  text-decoration: none;
}

.hhc-location svg,
.hhc-top-phone svg,
.hhc-mobile-call svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.hhc-top-phone:hover {
  color: var(--hhc-accent);
}


.hhc-top-phone {
  justify-self: end;
}

.hhc-announcements {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 760px;
  height: 100%;
  overflow: hidden;
}

.hhc-announcement {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
  pointer-events: none;
}

.hhc-announcement.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

a.hhc-announcement:hover,
a.hhc-announcement:focus-visible {
  color: var(--hhc-accent);
}

.hhc-announcement-icon {
  flex: 0 0 auto;
  font-size: 17px;
}

.hhc-announcement-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hhc-announcement-arrow {
  flex: 0 0 auto;
  font-size: 18px;
  transition: transform .18s ease;
}

a.hhc-announcement:hover .hhc-announcement-arrow {
  transform: translateX(4px);
}

.hhc-mainbar {
  height: var(--hhc-main-desktop);
  background: #fff;
  box-shadow: 0 8px 28px rgba(1, 44, 90, .11);
}

.hhc-mainbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 2.4vw, 55px);
}

.hhc-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  line-height: 0;
}

.hhc-logo img {
  display: block;
  width: var(--hhc-logo-desktop);
  max-width: 100%;
  height: auto;
}

.hhc-nav {
  min-width: 0;
}

.hhc-menu,
.hhc-menu .sub-menu {
  list-style: none;
}

.hhc-menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 1.8vw, 38px);
  height: var(--hhc-main-desktop);
  margin: 0;
  padding: 0;
}

.hhc-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

.hhc-menu > li {
  display: flex;
  align-items: stretch;
}

.hhc-menu a {
  text-decoration: none;
}

.hhc-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 3px 0 0;
  border-bottom: 3px solid transparent;
  color: var(--hhc-primary);
  font-size: var(--hhc-menu-size);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}

.hhc-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.hhc-menu > li:hover > a,
.hhc-menu > li:focus-within > a,
.hhc-menu > li.current-menu-item > a,
.hhc-menu > li.current-menu-ancestor > a {
  color: var(--hhc-accent);
  border-bottom-color: var(--hhc-accent);
}

.hhc-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 30;
  min-width: 235px;
  margin: 0;
  padding: 9px;
  background: #fff;
  border-top: 3px solid var(--hhc-accent);
  box-shadow: 0 18px 42px rgba(1, 44, 90, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(9px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.hhc-menu li:hover > .sub-menu,
.hhc-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hhc-menu .sub-menu a {
  display: block;
  padding: 12px 13px;
  border-radius: 5px;
  color: var(--hhc-primary);
  font-size: 14px;
  font-weight: 650;
}

.hhc-menu .sub-menu a:hover {
  background: rgba(139, 211, 70, .14);
}

.hhc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 1.7vw, 32px);
}

.hhc-rebates {
  color: var(--hhc-accent);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.hhc-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 10px;
  background: var(--hhc-primary);
  box-shadow: 0 9px 21px rgba(1, 44, 90, .17);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.hhc-contact:hover {
  background: var(--hhc-accent);
  color: var(--hhc-primary);
}

.hhc-mobile-call,
.hhc-menu-toggle,
.hhc-submenu-toggle {
  display: none;
}

@media (max-width: 1280px) {
  .hhc-mainbar-inner {
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 20px;
  }

  .hhc-menu {
    gap: 18px;
  }

  .hhc-menu > li > a {
    font-size: 14px;
  }

  .hhc-rebates {
    display: none;
  }

  .hhc-contact {
    min-height: 50px;
    padding-inline: 22px;
  }
}

@media (max-width: 1024px) {
  body.admin-bar #hhc-custom-header {
    top: 32px;
  }

  #hhc-header-spacer {
    height: calc(var(--hhc-top-mobile) + var(--hhc-main-mobile));
  }

  .hhc-shell {
    width: min(calc(100% - 38px), 1980px);
  }

  .hhc-topbar {
    height: var(--hhc-top-mobile);
  }

  .hhc-topbar-inner {
    display: block;
    font-size: 15px;
  }

  .hhc-announcements {
    max-width: 100%;
  }

  .hhc-announcement {
    padding-inline: 4px;
    font-size: 14px;
  }

  .hhc-announcement-icon {
    font-size: 16px;
  }

  .hhc-location,
  .hhc-top-phone {
    display: none;
  }

  .hhc-location.hhc-show-mobile-location {
    display: none;
  }

  .hhc-mainbar {
    height: var(--hhc-main-mobile);
  }

  .hhc-mainbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .hhc-logo img {
    width: var(--hhc-logo-mobile);
    max-width: 62vw;
  }

  .hhc-actions {
    gap: 13px;
  }

  .hhc-rebates,
  .hhc-contact {
    display: none;
  }

  .hhc-mobile-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--hhc-accent);
    color: var(--hhc-primary);
    text-decoration: none;
  }

  .hhc-mobile-call svg {
    width: 22px;
    height: 22px;
  }

  .hhc-menu-toggle {
    display: inline-flex;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
  }

  .hhc-menu-toggle span {
    display: block;
    width: 36px;
    height: 3px;
    border-radius: 99px;
    background: var(--hhc-primary);
    transition: transform .2s ease, opacity .2s ease;
  }

  .hhc-header.hhc-menu-open .hhc-menu-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .hhc-header.hhc-menu-open .hhc-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .hhc-header.hhc-menu-open .hhc-menu-toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .hhc-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(86vw, 390px);
    height: calc(100vh - var(--hhc-top-mobile) - var(--hhc-main-mobile));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: -14px 20px 40px rgba(1, 44, 90, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(105%);
    transition: transform .25s ease, opacity .2s ease, visibility .2s ease;
  }

  .hhc-header.hhc-menu-open .hhc-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .hhc-menu {
    display: block;
    height: auto;
    margin: 0;
    padding: 16px 24px 30px;
  }

  .hhc-menu > li {
    display: block;
    position: relative;
    border-bottom: 1px solid rgba(1, 44, 90, .12);
  }

  .hhc-menu > li > a {
    display: flex;
    min-height: 58px;
    height: auto;
    padding: 17px 42px 17px 0;
    border: 0;
    color: var(--hhc-primary);
    font-size: 17px;
    font-weight: 750;
    white-space: normal;
  }

  .hhc-menu > li.menu-item-has-children > a::after {
    display: none;
  }

  /* Clean mobile submenu control: plain chevron, no ugly box/button styling. */
  .hhc-submenu-toggle {
    display: inline-flex;
    position: absolute;
    top: 8px;
    right: -8px;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--hhc-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .hhc-submenu-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
  }

  .hhc-menu li.hhc-submenu-open > .hhc-submenu-toggle svg {
    transform: rotate(180deg);
  }

  .hhc-menu .sub-menu {
    display: none;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 13px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hhc-menu li.hhc-submenu-open > .sub-menu {
    display: block;
  }

  .hhc-menu .sub-menu li {
    border: 0;
  }

  .hhc-menu .sub-menu a {
    padding: 10px 12px;
    border-left: 2px solid var(--hhc-accent);
    border-radius: 0;
    font-size: 15px;
  }

  body.hhc-mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 782px) {
  body.admin-bar #hhc-custom-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar #hhc-custom-header {
    top: 0;
  }

  .hhc-shell {
    width: calc(100% - 30px);
  }

  .hhc-topbar-inner {
    font-size: 14px;
  }

  .hhc-announcement {
    gap: 6px;
    font-size: 13px;
  }

  .hhc-announcement-arrow {
    display: none;
  }

  .hhc-logo img {
    max-width: 58vw;
  }

  .hhc-mobile-call {
    width: 54px;
    height: 54px;
  }

  .hhc-menu-toggle {
    width: 48px;
    height: 48px;
  }

  .hhc-menu-toggle span {
    width: 35px;
  }

  .hhc-nav {
    width: min(92vw, 390px);
  }
}

@media (max-width: 370px) {
  .hhc-topbar-inner {
    font-size: 14px;
  }

  .hhc-logo img {
    width: 175px;
  }

  .hhc-actions {
    gap: 7px;
  }

  .hhc-mobile-call {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hhc-announcement {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hhc-custom-header {
    transition: none;
  }
}
