@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* ---------- Header base ---------- */

.lm-header {
  --lm-header-text: #202020;
  --lm-header-bg: #ffffff;
  --lm-header-border: #eeeeee;

  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--lm-header-bg);
  border-top: 1px solid #f2d9ca;
  color: var(--lm-header-text);
  font-family: "Poppins", Arial, sans-serif;
}
/* Sticky header */
.lm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Offset for the WordPress admin toolbar when logged in */
body.admin-bar .lm-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .lm-header {
    top: 46px;
  }
}

/* WordPress toolbar scrolls away on small screens */
@media (max-width: 600px) {
  body.admin-bar .lm-header {
    top: 0;
  }
}
.lm-header,
.lm-header *,
.lm-header *::before,
.lm-header *::after {
  box-sizing: border-box;
}

.lm-header .lm-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  min-height: 86px;
  /* max-width: 1450px; */
  margin-inline: auto;
  padding: 15px 26px;
}

.lm-header a {
  color: inherit;
  text-decoration: none;
}

.lm-header a:focus-visible,
.lm-header summary:focus-visible,
.lm-header button:focus-visible {
  outline: 2px solid #202020;
  outline-offset: 5px;
}

/* ---------- Logo ---------- */

.lm-header .lm-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: #151807;
  line-height: 1;
}

.lm-header__logo > span {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
}

.lm-header .lm-header__logo img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  /* max-height: 42px; */
  object-fit: contain;
}

/* ---------- Desktop navigation ---------- */

.lm-header__panel {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.lm-header__nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 40px);
  min-width: 0;
}

.lm-header__dropdown {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}

.lm-header .lm-header__dropdown > summary,
.lm-header .lm-header__link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 12px 0;
  color: var(--lm-header-text);
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.lm-header__dropdown > summary::-webkit-details-marker {
  display: none;
}

.lm-header__dropdown > summary::marker {
  content: "";
}

.lm-header__dropdown .bi-chevron-down {
  font-size: 11px;
  transition: transform 180ms ease;
}

.lm-header__dropdown .bi-stars {
  font-size: 14px;
}

.lm-header__dropdown[open] > summary .bi-chevron-down {
  transform: rotate(180deg);
}

.lm-header__dropdown > summary:hover,
.lm-header .lm-header__link:hover {
  color: #666666;
}

/* ---------- Dropdown panels ---------- */

.lm-header__submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: -18px;
  z-index: 10;
  min-width: 225px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--lm-header-border);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 8%);
}

.lm-header .lm-header__submenu a {
  display: block;
  padding: 11px 12px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
}

.lm-header .lm-header__submenu a:hover,
.lm-header .lm-header__submenu a:focus-visible {
  color: #111111;
  background: #f4f4f4;
}

/* ---------- Split CTA ---------- */

.lm-header .lm-header__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 3px;
  color: #ffffff;
  white-space: nowrap;
}

.lm-header__cta-text,
.lm-header__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  background: #202020;
  transition: background 180ms ease;
}

.lm-header__cta-text {
  padding: 0 30px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.lm-header__cta-icon {
  width: 50px;
  font-size: 17px;
}

.lm-header__cta:hover .lm-header__cta-text,
.lm-header__cta:hover .lm-header__cta-icon {
  background: #3d3d3d;
}

/* Hidden on desktop */
.lm-header .lm-header__toggle {
  display: none;
}

/* ---------- Tablet and mobile ---------- */

@media (max-width: 1199px) {
  .lm-header {
    border-top: 0;
  }

  .lm-header .lm-header__inner {
    justify-content: space-between;
    min-height: 65px;
    gap: 16px;
    padding: 9px 10px;
  }

  .lm-header .lm-header__logo img {
    width: 110px;
    max-height: 34px;
  }

  .lm-header__logo > span {
    font-size: 22px;
  }

  .lm-header .lm-header__toggle {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f3f3f3;
    color: #202020;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
  }

  .lm-header__toggle .bi-list {
    font-size: 30px;
    line-height: 1;
  }

  .lm-header__toggle .bi-x-lg {
    font-size: 22px;
    line-height: 1;
  }

  .lm-header .lm-header__toggle:hover {
    background: #e9e9e9;
    color: #202020;
  }

  .lm-header__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 20px 22px;
    background: #ffffff;
    border-top: 1px solid var(--lm-header-border);
    box-shadow: 0 16px 24px rgb(0 0 0 / 7%);
  }

  .lm-header--open .lm-header__panel {
    display: block;
  }

  .lm-header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .lm-header__dropdown {
    width: 100%;
    border-bottom: 1px solid var(--lm-header-border);
  }

  .lm-header .lm-header__dropdown > summary,
  .lm-header .lm-header__link {
    width: 100%;
    min-height: 52px;
    padding: 14px 0;
    font-size: 16px;
  }

  .lm-header__dropdown > summary .bi-chevron-down {
    margin-left: auto;
    margin-right: 2px;
  }

  .lm-header .lm-header__link {
    border-bottom: 1px solid var(--lm-header-border);
  }

  .lm-header__submenu {
    position: static;
    min-width: 0;
    margin: 0 0 12px;
    padding: 4px 8px;
    background: #f7f7f7;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .lm-header .lm-header__submenu a {
    padding: 12px;
  }

  .lm-header .lm-header__cta {
    display: flex;
    width: 100%;
    margin-top: 20px;
  }

  .lm-header__cta-text {
    flex: 1;
    padding: 0 16px;
  }

  .lm-header__cta-icon {
    flex: 0 0 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-header *,
  .lm-header *::before,
  .lm-header *::after {
    transition: none !important;
  }
}

/* CTA background slides in from left to right */
.lm-header .lm-header__cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 0;
  background: #202020;
}

.lm-header .lm-header__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #454545;
  transform: translateX(-100%);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lm-header .lm-header__cta:hover::before,
.lm-header .lm-header__cta:focus-visible::before {
  transform: translateX(0);
}

/* Override the previous background hover effect */
.lm-header .lm-header__cta .lm-header__cta-text,
.lm-header .lm-header__cta .lm-header__cta-icon {
  background: transparent;
  color: #ffffff;
  transition: none;
}

/* Keep the split-button divider */
.lm-header .lm-header__cta .lm-header__cta-icon {
  border-left: 3px solid #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .lm-header .lm-header__cta::before {
    transition: none;
  }
}