* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  height: 100vh;
}

body {
  font-family: 'Heebo', sans-serif;
}

.main-nav {
  transform: translate3d(0px, 0rem, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transform-style: preserve-3d;
  height: auto;
  z-index: 1000;
  background: white;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 2rem;
  display: flex;
  position: fixed;
  top: 0;
}

.logo-wrap {
  z-index: 999;
  justify-content: space-between;
  align-self: stretch;
  align-items: center;
  display: flex;
  position: relative;
}

.logo-anchor {
  font-size: 1em;
  line-height: 1.5;
}

.main-logo {
  height: 28px;
}

.main-nav_main-dropdown {
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
}

.main-nav_buttons-wrap {
  z-index: 1001;
  grid-column-gap: 1rem;
  justify-content: flex-end;
  align-items: center;
  display: flex;
  position: absolute;
  right: 2rem;
}

a.contact-button {
  padding: 1rem 2.5rem 1rem 2.5rem;
  font-size: 16px;
  font-weight: 600;
}

.contact-button:hover {
  background: #d65a38;
}

/* Hamburger menu styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1005;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #2c8658;
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 4px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

@media (min-width: 992px) {
  html {
    font-size: calc(8.23px + 7.77 * ((100vw - 992px) / 928));
  }
}

@media (max-width: 940px) {
  html {
    font-size: calc(12.27px + 3.73 * ((100vw - 768px) / 223));
  }

  .main-nav {
    justify-content: space-between;
    padding: 1.5rem;
  }

  .logo-wrap {
    justify-content: flex-start;
  }

  .hamburger-menu {
    display: flex;
  }

  /* Hide the main dropdown by default on mobile */
  .main-nav_main-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: flex-end;
    align-items: flex-start;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1003;
  }

  /* Show dropdown when active */
  .main-nav_main-dropdown.active {
    visibility: visible;
    opacity: 1;
  }

  .main-nav_buttons-wrap {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 6rem 0 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    gap: 0;
    z-index: 1004;
  }

  .main-nav_buttons-wrap.active {
    right: 0;
  }

  .main-nav_buttons-wrap .button {
    width: 100%;
    text-align: center;
    margin: 0;
    background: white;
    border: none;
    border-bottom: 1px solid #7f775b;
    border-radius: 0;
    color: black;
    padding: 24px 12px;
    font-weight: 500;
  }

  .main-nav_buttons-wrap .button:nth-child(1) {
    border-top: 1px solid #7f775b;
  }
}

@media (max-width: 240px) {
  html {
    font-size: calc(7.89px + 8.11 * ((100vw - 240px) / 239));
  }
}

/*
 * headerAccountButtons: false: the logo and the contact link only, side by
 * side at every width, with no phone menu to open.
 */
.main-nav--no-menu {
  align-items: center;
}

.main-nav--no-menu .main-nav_main-dropdown,
.main-nav--no-menu .main-nav_buttons-wrap {
  position: static;
  visibility: visible;
  opacity: 1;
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  flex-direction: row;
}

.main-nav--no-menu .main-nav_main-dropdown {
  justify-content: flex-end;
}

.contact-label-short {
  display: none;
}

@media (width < 860px) {
  .contact-label-long {
    display: none;
  }

  .contact-label-short {
    display: inline;
  }
}

/* headerTheme: 'forest': Forest green with a white logo and a white text link. */
.main-nav--forest {
  height: 64px;
  padding: 0 max(24px, (100% - 1120px) / 2);
  background: #1a5035;
}

.main-nav--forest .main-logo {
  height: 26px;
  filter: brightness(0) invert(1);
}

.main-nav--forest .main-nav_buttons-wrap .contact-button {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav--forest .main-nav_buttons-wrap .contact-button:hover {
  background: none;
  text-decoration: underline;
}

.main-nav--forest .main-nav_buttons-wrap .contact-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (width < 860px) {
  .main-nav--forest {
    padding: 0 16px;
  }

  .main-nav--forest .main-logo {
    height: 22px;
  }
}
