/**
 * @file
 * Visual styles for menu.
 */

ul.menu {
  margin-left: 0;
  padding: 0;
  list-style: none outside;
  text-align: left;
  display: flex;
  gap: 0.5rem;
  align-items: center;

  @media (max-width: 1350px) {
    gap: 0;
    flex-direction: column;
    align-items: stretch;
  }

  @media (min-width: 1600px) {
    gap: 1rem;
  }
}

.menu-item--expanded {
  list-style-type: circle;
  list-style-image: url(../../images/icons/menu-expanded.png);
}
.menu-item--collapsed {
  list-style-type: disc;
  list-style-image: url(../../images/icons/menu-collapsed.png);
}
.menu-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;

  @media (max-width: 1350px) {
    justify-content: space-between;
  }
}
/* main menu */
.menu--main {
  @media (max-width: 1350px) {
    border-top: 1px solid #515861;
    padding-block-end: 16px;
  }

  .menu-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block: 16px;

    @media (max-width: 1350px) {
      justify-content: space-between;
    }
  }

  .menu-item--active-trail {
    position: relative;
  }
  .menu-item--active-trail::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: -16px;
    bottom: 0;
    width: 8px;
    background-color: #f16b50;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    @media (min-width: 1350px) {
      height: 8px;
      width: 100%;
      top: auto;
      left: 0;
      border-top-left-radius: 50px;
      border-top-right-radius: 50px;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  }
}
header .menu-item a {
  display: flex;
  color: var(--color-steel, #515861);
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  font-size: 16px;
  line-height: 18px;

  @media (min-width: 1600px) {
    font-size: 20px;
    line-height: 22px;
  }
}

ul.menu a.is-active {
  /* color: #000; */
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 60px;
  /* flex-grow: 1; */

  @media (min-width: 1600px) {
    justify-content: unset;
  }
}

@media (max-width: 1350px) {
  .header-nav {
    display: none;
    width: 100%;
  }
  .header-nav.is-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0px 8px 9px 0px #0000003d;
    padding: 1rem;
    z-index: 100;
  }
}

.site-header__inner {
  background: #fff;
  padding-bottom: 8px;
  @media (min-width: 1350px) {
    box-shadow: 0px 8px 24px -4px #0000003d;
  }
}

.site-header__inner__container {
  display: grid;
  grid-template-columns: 1fr 4fr;
  grid-template-rows: auto auto;
  grid-template-areas: "message message" "logo menu";
  row-gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  /* justify-content: space-between; */
  max-width: 1660px;
  /* padding-block: 0.5rem; */
  position: relative;
  background-color: #fff;
  z-index: 20;
  /* padding: 0px; */
  justify-content: center;
  /* max */


  @media (min-width: 1350px) {
    grid-template-columns: 1fr 4fr;
    /* justify-content: space-between; */
    column-gap: 50px;
  }

  @media (min-width: 1600px) {
    display: flex;
    padding: 0px;
  }
}
.site-logo {
  grid-area: logo;
  min-width: 150px;

  @media (min-width: 1350px) {
    padding-block: 1rem;
    padding: 20px;
  }
}
.site-logo a {
  display: block;
}
.site-header__message {
  grid-area: message;
  background-color: #eeeeee;
  text-align: center;
  font-size: 16px;
  margin: -0.5rem calc(var(--container-padding) * -1) 0;
  padding: 0.5rem 1rem;
  line-height: 20px;
  margin-top: 0px;

  @media (min-width: 1600px) {
    background-color: transparent;
    margin: 0;
    padding: 0px;
    margin: 0px;
  }
}

.header-updates {
  background: linear-gradient(95deg, #b82026 0%, #520e11 100%);
  display: inline-flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;

  @media (min-width: 1350px) {
    order: 1;
  }

  @media (max-width: 1350px) {
    margin-left: auto;
  }
}

.mobile-buttons {
  justify-self: flex-end;
  @media (min-width: 1350px) {
    display: none;
  }
}

.menu-divider hr {
  border-style: solid;
  @media (min-width: 1350px) {
    height: 1rem;
  }
  @media (max-width: 1350px) {
    margin: 0;
    display: none;
  }
}

.mobile-nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 0;
  background: none;
}
.mobile-nav-button__label {
  font-size: 14px;
}

.mobile-nav-button__icon {
  background-image: url("data:image/svg+xml;utf8,<svg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'><line y1='1' x2='18' y2='1' stroke='black' stroke-width='2'/><line y1='17' x2='18' y2='17' stroke='black' stroke-width='2'/><line y1='9' x2='18' y2='9' stroke='black' stroke-width='2'/></svg>");
  width: 18px;
  height: 18px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
}

.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon {
  background-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><line y1='-1' x2='24.7349' y2='-1' transform='matrix(0.687221 0.726448 -0.694517 0.719476 1 2)' stroke='black' stroke-width='2'/><line y1='-1' x2='24.7349' y2='-1' transform='matrix(0.687221 -0.726448 0.694517 0.719476 2.00165 20)' stroke='black' stroke-width='2'/></svg>");
}

.mobile-menu-item-toggle-jump-links {
  border: 0;
  background: none;
  display: flex;
  @media (min-width: 1350px) {
    display: none;
  }
}

.desktop-menu-item-icon {
  flex-shrink: 0;
  @media (max-width: 1350px) {
    display: none;
  }
}
.header-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.is-overlay-active .header-nav-overlay {
  display: block;
}

body.is-overlay-active {
  /* CSS to prevent page scrolling when overlay is active */
  overflow: hidden;
  position: fixed;
  width: 100vw;
  height: 100vh;
}

footer .menu {
  justify-content: center;
  gap: 24px;
  text-align: center;
  @media (min-width: 1270px) {
    flex-direction: row; /* override column from above */
    gap: 60px;
  }
}

footer .menu-item {
  padding: 0;
  margin: 0;
  align-self: center;

  a {
    color: #f16b50 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
  }
}
footer .menu-divider {
  display: none;
}
footer .menu-divider hr {
  background: white;
  height: 100%;
  width: 1px;
  border: none;
}

.menu-divider {
  width: 1px;

  hr {
    height: 0.7rem;
  }
}

@media (max-width: 768px) {
  #header {
    width: 100vw;
    position: sticky;
    top: 0;
    z-index: 999;
  }
}

@media (min-width: 769px) {
  #header {
    width: 100vw;
    position: static;
  }
}
