/* =========================================
   Bikeshift Mega Nav
   Based on Osmo navigation pattern
   ========================================= */

[data-menu-wrap] {
  --nav-height: 4em;
}

.mega-nav {
  z-index: 100;
  position: fixed;
  top: 1.25em;
  left: 1.25em;
  right: 1.25em;
}

.mega-nav__bar {
  z-index: 3;
  background-color: #f7f7f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5em;
  width: 100%;
  max-width: 80em;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mega-nav__container {
  height: var(--nav-height);
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.5em;
  display: flex;
}

.mega-nav__bar-start {
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
}

.mega-nav__bar-logo {
  flex: none;
  width: auto;
  height: 36px;
  margin-right: 3em;
  display: flex;
  align-items: center;
}

.mega-nav__bar-logo img {
  height: 100%;
  width: auto;
}

.mega-nav__bar-list {
  grid-column-gap: 0.5em;
  grid-row-gap: 0.5em;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
}

.mega-nav__bar-list.is--actions {
  margin-left: auto;
  grid-column-gap: 0.75em;
}

.mega-nav__bar-link {
  color: var(--dark-green);
  background-color: transparent;
  border: none;
  border-radius: 0.25em;
  justify-content: flex-start;
  align-items: center;
  padding: 0.375em 0.625em;
  text-decoration: none;
  display: flex;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  transition: color 0.2s ease;
}

.mega-nav__bar-link:hover {
  color: var(--green);
}

.mega-nav__bar-link-label {
  font-size: 0.9375em;
  font-weight: 500;
  line-height: 1.2;
}

.mega-nav__bar-link-icon {
  width: 1.25em;
}

.mega-nav__bar-link-icon.is--dropdown {
  transition: transform 0.2s ease;
}

.mega-nav__bar-end {
  grid-column-gap: 0.75em;
  grid-row-gap: 0.75em;
  justify-content: flex-end;
  align-items: center;
  display: none;
}

/* CTA buttons */
.mega-nav__bar-cta,
.mega-nav__bar-cta:link,
.mega-nav__bar-cta:visited,
.mega-nav__bar-cta:hover,
.mega-nav__bar-cta:focus,
.mega-nav__bar-cta:active {
  color: #fff !important;
  background-color: var(--pink);
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  padding: 8px 15px 9px 15px;
  text-decoration: none;
  display: flex;
  font-family: "Poppins", sans-serif;
  transition: background-color 0.25s linear;
}

.mega-nav__bar-cta:hover,
.mega-nav__bar-cta:focus {
  background-color: var(--purple);
  color: #fff !important;
}

.mega-nav__bar-cta.is--secondary {
  color: var(--green);
  background-color: transparent;
  border: 1px solid var(--green);
}

.mega-nav__bar-cta.is--secondary:hover {
  color: #fff;
  background-color: var(--green);
}

.mega-nav__bar-inner {
  grid-column-gap: 0.5em;
  grid-row-gap: 0.5em;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
}

/* Phone icon in nav */
.mega-nav__phone,
.mega-nav__phone:link,
.mega-nav__phone:visited {
  color: var(--pink);
  font-size: 1rem;
  padding: 0.375em 0.5em;
  display: flex;
  align-items: center;
  transition: opacity 0.25s linear;
}

.mega-nav__phone:hover {
  opacity: 0.7;
  color: var(--pink);
}

/* Language switch in nav */
.mega-nav__lang {
  cursor: pointer;
  padding: 0.375em 0.5em;
  display: flex;
  align-items: center;
}

.mega-nav__lang .countryFlag {
  width: 20px;
  height: auto;
}

/* Burger button */
.mega-nav__burger {
  grid-column-gap: 0.2em;
  grid-row-gap: 0.2em;
  background-color: var(--pink);
  border: none;
  border-radius: 0.375em;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 2.5em;
  height: 2.5em;
  padding: 0;
  display: flex;
  cursor: pointer;
}

.mega-nav__burger-line {
  z-index: 1;
  background-color: #fff;
  border-radius: 0.125em;
  flex: none;
  width: 1.25em;
  height: 0.125em;
  padding: 0;
  display: block;
  position: relative;
}

/* Back button (mobile) */
.mega-nav__back {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: -0.625em;
}

.mega-nav__bar-link.is--back {
  border-bottom-style: none;
  font-size: 1em;
}

/* Backdrop */
.mega-nav__backdrop {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.25);
  position: fixed;
  inset: 0;
}

/* =========================================
   Dropdown panels
   ========================================= */

.mega-nav__dropdown-wrapper {
  z-index: 2;
  pointer-events: none;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  top: calc(100% - 0.25em);
  left: 0;
  right: 0;
}

.mega-nav__dropdown-container {
  position: relative;
  overflow: hidden;
}

.mega-nav__dropdown-bg {
  will-change: transform;
  background-color: #f7f7f7;
  border-bottom-right-radius: 0.5em;
  border-bottom-left-radius: 0.5em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: absolute;
  inset: 0;
}

.mega-nav__dropdown-panel {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
  inset: 0 0 auto;
  overflow: hidden;
}

.mega-nav__dropdown-inner {
  display: flex;
}

/* Panel columns */
.mega-nav__panel-col {
  grid-column-gap: 1.25em;
  grid-row-gap: 1.25em;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  flex-flow: column;
  flex: 1;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 2em 1.5em;
  display: flex;
}

.mega-nav__panel-col:last-of-type {
  border: none;
}

.mega-nav__panel-col.is--colored {
  background-color: rgba(45, 190, 108, 0.08);
}

.mega-nav__panel-label {
  text-transform: uppercase;
  padding-left: 0.75em;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.7em;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
  letter-spacing: 0.05em;
}

.mega-nav__panel-list {
  grid-column-gap: 0;
  grid-row-gap: 0;
  flex-flow: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.mega-nav__panel-link,
.mega-nav__panel-link:link,
.mega-nav__panel-link:visited {
  color: var(--dark-green);
  border-radius: 0.375em;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0.625em 0.75em;
  text-decoration: none;
  display: flex;
  transition: background-color 0.15s ease;
}

.mega-nav__panel-link:hover,
.mega-nav__panel-link:focus,
.mega-nav__panel-link:active {
  background-color: rgba(45, 190, 108, 0.08);
  color: var(--dark-green);
}

.mega-nav__panel-link-text {
  font-weight: 500;
  font-size: 0.9375em;
}

.mega-nav__panel-link-desc {
  opacity: 0.6;
  font-size: 0.8125em;
  font-weight: 400;
  margin-top: 0.125em;
}

/* =========================================
   Spacer: push content below fixed nav
   ========================================= */

.mega-nav-spacer {
  height: 100px;
  background: var(--dark-green);
}

/* =========================================
   Phone & lang: desktop styles
   ========================================= */

/* Hide "Bel direct" label on desktop, show only icon */
.mega-nav__phone-label {
  display: none;
}

.mega-nav__bar-item--phone,
.mega-nav__bar-item--lang {
  display: flex;
  align-items: center;
}

/* =========================================
   Mobile (max-width: 991px)
   ========================================= */

@media screen and (max-width: 991px) {
  .mega-nav {
    top: 0;
    left: 0;
    right: 0;
  }

  .mega-nav__bar {
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  .mega-nav__bar-start {
    justify-content: space-between;
    align-items: center;
  }

  .mega-nav__bar-list {
    grid-column-gap: 0;
    grid-row-gap: 0;
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
  }

  .mega-nav__bar-list.is--actions {
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    flex-flow: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .mega-nav__bar-link {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    width: 100%;
    padding: 0.75em 0;
    font-size: 1.125em;
  }

  .mega-nav__bar-link.is--dropdown {
    justify-content: space-between;
    align-items: center;
  }

  .mega-nav__bar-link-label {
    font-size: 1.125em;
  }

  .mega-nav__bar-link-icon {
    width: 1.5em;
  }

  .mega-nav__bar-link-icon.is--dropdown {
    transform: rotate(-90deg);
  }

  .mega-nav__bar-end {
    display: flex;
  }

  .mega-nav__bar-cta {
    padding: 1em 0.75em 1em 1em;
    flex: 1;
    justify-content: center;
  }

  .mega-nav__bar-inner {
    opacity: 0;
    bottom: 0;
    left: 0;
    right: 0;
    top: var(--nav-height);
    visibility: hidden;
    background-color: #f7f7f7;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    padding: 2em 1.5em;
    position: fixed;
    overflow: auto;
  }

  .mega-nav__backdrop {
    display: none;
  }

  .mega-nav__dropdown-wrapper {
    z-index: 4;
    bottom: 0;
    top: var(--nav-height);
    position: fixed;
  }

  .mega-nav__dropdown-container {
    height: 100%;
    overflow: auto;
  }

  .mega-nav__dropdown-bg {
    display: none;
  }

  .mega-nav__dropdown-panel {
    background-color: #fff;
    bottom: 0;
    overflow: auto;
  }

  .mega-nav__dropdown-inner {
    flex-flow: column;
  }

  .mega-nav__panel-col {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-right-style: none;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }

  .mega-nav__panel-label {
    width: 100%;
  }

  .mega-nav__bar-action {
    flex: 1;
  }

  /* Phone: show "Bel direct" label on mobile */
  .mega-nav__phone-label {
    display: inline;
  }

  .mega-nav__bar-item--phone .mega-nav__phone {
    gap: 0.5em;
    padding: 0.75em 0;
    font-size: 1.125em;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  /* Lang item on mobile */
  .mega-nav__bar-item--lang {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75em 0;
  }

  .mega-nav-spacer {
    height: 70px;
  }
}

@media screen and (max-width: 479px) {
  .mega-nav__bar-link-label {
    font-size: 1em;
  }

  .mega-nav__bar-link-icon {
    width: 1.375em;
  }

  .mega-nav__bar-logo {
    height: 36px;
    margin-right: 0;
  }
}

/* Language switch must appear above the mobile menu */
.langSwitch {
  z-index: 110;
}
