/* ==========================================================
   ebmnt1 — topbar + sticky header (mobile first)
   ========================================================== */

/* ---------- topbar (hidden on mobile) ---------- */

.ebmnt1-topbar {
  display: none;
  width: 100%;
  background-color: var(--ebmnt1-topbar-background-color);
  color: var(--ebmnt1-topbar-text-color);
}

.ebmnt1-topbar__inner {
  width: calc(100% - 2em);
  max-width: var(--ebmnt1-container-max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  min-height: 2.8rem;
  font-size: var(--ebmnt1-fs-xs);
}

.ebmnt1-topbar__list {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.ebmnt1-topbar__item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ebmnt1-topbar__item-icon {
  color: var(--ebmnt1-topbar-icon-color);
}

.ebmnt1-topbar__social {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ebmnt1-topbar__social-link {
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ebmnt1-topbar-social-background-color);
  color: var(--ebmnt1-topbar-social-icon-color);
  font-size: 0.8rem;
  transition: background-color 0.4s ease-in-out;
}

.ebmnt1-topbar__social-link:hover {
  background-color: var(--ebmnt1-topbar-social-hover-background-color);
}

/* ---------- header (sticky, stand-alone) ---------- */

.ebmnt1-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--ebmnt1-header-background-color);
  border-bottom: 1px solid var(--ebmnt1-header-border-color);
  transition: box-shadow 0.4s ease-in-out;
}

.ebmnt1-header.ebmnt1-is-stuck {
  box-shadow: 0 0.6em 1.6em var(--ebmnt1-header-stuck-shadow-color);
  animation: ebmnt1-header-slide 0.5s ease both;
}

@keyframes ebmnt1-header-slide {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: none;
  }
}

.ebmnt1-header__inner {
  width: calc(100% - 2em);
  max-width: var(--ebmnt1-container-max-width);
  margin-inline: auto;
  min-height: var(--ebmnt1-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.ebmnt1-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ebmnt1-font-heading);
  font-weight: 900;
  font-size: var(--ebmnt1-fs-xl);
  color: var(--ebmnt1-header-logo-text-color);
}

.ebmnt1-header__logo-mark {
  color: var(--ebmnt1-header-logo-mark-color);
  font-size: 1.6em;
  transform: scaleX(-1);
}

.ebmnt1-header__logo-accent {
  color: var(--ebmnt1-header-logo-accent-color);
}

.ebmnt1-header__logo-tagline {
  display: block;
  font-size: var(--ebmnt1-fs-xs);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ebmnt1-header-logo-tagline-color);
}

.ebmnt1-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.ebmnt1-header__tool {
  width: 2.6rem;
  height: 2.6rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ebmnt1-header-tool-background-color);
  color: var(--ebmnt1-header-tool-icon-color);
  transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}

.ebmnt1-header__tool:hover {
  background-color: var(--ebmnt1-header-tool-hover-background-color);
  color: var(--ebmnt1-header-tool-hover-icon-color);
}

.ebmnt1-header__quote {
  display: none;
}

/* burger -> X */

.ebmnt1-header__burger {
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ebmnt1-header-burger-background-color);
  color: var(--ebmnt1-header-burger-icon-color);
  font-size: 1.1rem;
}

.ebmnt1-header__burger .ebmnt1-header__burger-close {
  display: none;
}

.ebmnt1-header__burger[aria-expanded="true"] .ebmnt1-header__burger-open {
  display: none;
}

.ebmnt1-header__burger[aria-expanded="true"] .ebmnt1-header__burger-close {
  display: inline;
}

/* ---------- nav: parent (overlay on mobile) + inner (aside panel) ---------- */

.ebmnt1-nav {
  position: fixed;
  inset: var(--ebmnt1-header-height) 0 0 0;
  z-index: 999;
  display: flex;
  background-color: var(--ebmnt1-nav-overlay-background-color);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ebmnt1-nav.ebmnt1-is-open {
  visibility: visible;
  opacity: 1;
}

.ebmnt1-nav__panel {
  width: min(80%, 20rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2em;
  padding: 2em 1.5em;
  overflow-y: auto;
  background-color: var(--ebmnt1-nav-panel-background-color);
  border-inline-end: 1px solid var(--ebmnt1-nav-panel-border-color);
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.ebmnt1-nav.ebmnt1-is-open .ebmnt1-nav__panel {
  transform: none;
}

.ebmnt1-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.ebmnt1-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7em 0.2em;
  border-bottom: 1px solid var(--ebmnt1-nav-link-divider-color);
  font-family: var(--ebmnt1-font-heading);
  font-size: var(--ebmnt1-fs-md);
  font-weight: 600;
  color: var(--ebmnt1-nav-link-color);
  transition: color 0.4s ease-in-out;
}

.ebmnt1-nav__link:hover,
.ebmnt1-nav__link.ebmnt1-is-active {
  color: var(--ebmnt1-nav-link-hover-color);
}

/* ---------- services dropdown (mobile: inside the aside) ---------- */

.ebmnt1-nav__item--dropdown {
  position: relative;
}

.ebmnt1-nav__toggle {
  width: 100%;
  text-align: start;
}

.ebmnt1-nav__chevron {
  font-size: 0.75em;
  transition: transform 0.3s ease;
}

.ebmnt1-nav__item--dropdown.ebmnt1-is-open > .ebmnt1-nav__toggle {
  color: var(--ebmnt1-nav-link-hover-color);
}

.ebmnt1-nav__item--dropdown.ebmnt1-is-open .ebmnt1-nav__chevron {
  transform: rotate(180deg);
}

.ebmnt1-nav__dropdown {
  display: none;
  flex-direction: column;
  gap: 0.2em;
  margin-block-start: 0.6em;
  padding: 0.8em 1.2em;
  border-radius: 0.8em;
  background-color: var(--ebmnt1-nav-dropdown-background-color);
  box-shadow: 0 0.8em 2em var(--ebmnt1-nav-dropdown-shadow-color);
}

.ebmnt1-nav__item--dropdown.ebmnt1-is-open > .ebmnt1-nav__dropdown {
  display: flex;
}

.ebmnt1-nav__dropdown-link {
  display: block;
  padding: 0.55em 0;
  font-family: var(--ebmnt1-font-heading);
  font-size: var(--ebmnt1-fs-sm);
  font-weight: 600;
  color: var(--ebmnt1-nav-dropdown-link-color);
  transition: color 0.3s ease, padding 0.3s ease;
}

.ebmnt1-nav__dropdown-link:hover {
  color: var(--ebmnt1-nav-dropdown-link-hover-color);
  padding-inline-start: 0.4em;
}

.ebmnt1-nav__panel-cta {
  display: flex;
}

.ebmnt1-nav__panel-cta .ebmnt1-btn {
  width: 100%;
}

/* ---------- >= 768 : tools appear ---------- */

@media (min-width: 768px) {
  .ebmnt1-header__tool {
    display: flex;
  }

  .ebmnt1-header__quote {
    display: inline-flex;
  }

  .ebmnt1-nav__panel-cta {
    display: none;
  }
}

/* ---------- >= 1024 : desktop nav, no burger ---------- */

@media (min-width: 1024px) {
  .ebmnt1-topbar {
    display: block;
  }

  .ebmnt1-header__burger {
    display: none;
  }

  .ebmnt1-nav {
    position: static;
    inset: auto;
    visibility: visible;
    opacity: 1;
    background-color: transparent;
    transition: none;
  }

  .ebmnt1-nav__panel {
    width: auto;
    height: auto;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    background-color: transparent;
    border: 0;
    transform: none;
    transition: none;
  }

  .ebmnt1-nav__list {
    flex-direction: row;
    gap: 1.8em;
  }

  .ebmnt1-nav__link {
    padding: 0.4em 0;
    border-bottom: 0;
    font-size: var(--ebmnt1-fs-sm);
  }

  .ebmnt1-nav__toggle {
    width: auto;
    gap: 0.5em;
  }

  /* floating white panel under the link */

  .ebmnt1-nav__dropdown {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline-start: -1.2em;
    min-width: 16rem;
    margin-block-start: 1.6rem;
    padding: 0.8em 1.4em;
    border-radius: 0.7em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.8em);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  /* invisible bridge so the panel stays open while the pointer travels */

  .ebmnt1-nav__dropdown::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 100%;
    height: 1.6rem;
  }

  .ebmnt1-nav__item--dropdown:hover > .ebmnt1-nav__dropdown,
  .ebmnt1-nav__item--dropdown.ebmnt1-is-open > .ebmnt1-nav__dropdown,
  .ebmnt1-nav__item--dropdown:focus-within > .ebmnt1-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .ebmnt1-nav__item--dropdown:hover > .ebmnt1-nav__toggle {
    color: var(--ebmnt1-nav-link-hover-color);
  }

  .ebmnt1-nav__item--dropdown:hover .ebmnt1-nav__chevron {
    transform: rotate(180deg);
  }
}
