/* Loftstudia Header — frontend styles */
.lsh-header,
.lsh-header * {
  box-sizing: border-box;
}

.lsh-header {
  --lsh-text: #202522;
  --lsh-accent: #d99a35;
  --lsh-line: rgba(32, 37, 34, .13);
  --lsh-surface: #fff;
  --lsh-logo-transparent-width: 230px;
  --lsh-logo-transparent-height: 66px;
  --lsh-logo-white-width: 230px;
  --lsh-logo-white-height: 66px;
  --lsh-logo-width-current: var(--lsh-logo-white-width);
  --lsh-logo-height-current: var(--lsh-logo-white-height);
  --lsh-nav-font-family: inherit;
  --lsh-nav-font-size: 14px;
  --lsh-nav-font-weight: 500;
  --lsh-dropdown-font-family: inherit;
  --lsh-dropdown-font-size: 14px;
  --lsh-dropdown-font-weight: 400;
  --lsh-contact-font-family: inherit;
  --lsh-contact-font-size: 16px;
  --lsh-contact-font-weight: 700;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99990;
  width: 100%;
  color: var(--lsh-text);
  background: #fff;
  border-bottom: 1px solid var(--lsh-line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .055);
  transform: translateY(0);
  transition: transform .24s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  isolation: isolate;
  font-family: inherit;
}

.lsh-header.lsh-is-hidden {
  transform: translateY(calc(-100% - 8px));
  pointer-events: none;
}

.lsh-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  width: min(1600px, calc(100% - 72px));
  min-height: 104px;
  margin-inline: auto;
}

.lsh-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none !important;
  line-height: 0;
}

.lsh-logo__image-wrap {
  position: relative;
  display: block;
  width: var(--lsh-logo-width-current);
  height: var(--lsh-logo-height-current);
  max-width: 100%;
  flex: 0 1 auto;
}

.lsh-logo__image {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity .18s ease;
}

.lsh-logo__image--transparent {
  width: var(--lsh-logo-transparent-width);
  height: var(--lsh-logo-transparent-height);
  opacity: 0;
}

.lsh-logo__image--white {
  width: var(--lsh-logo-white-width);
  height: var(--lsh-logo-white-height);
  opacity: 1;
}

.lsh-header.lsh-is-home.lsh-is-at-top {
  --lsh-logo-width-current: var(--lsh-logo-transparent-width);
  --lsh-logo-height-current: var(--lsh-logo-transparent-height);
}

.lsh-header.lsh-is-home.lsh-is-at-top .lsh-logo__image--transparent { opacity: 1; }
.lsh-header.lsh-is-home.lsh-is-at-top .lsh-logo__image--white { opacity: 0; }

.lsh-logo__fallback {
  display: inline-block;
  color: currentColor;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.15;
}

.lsh-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.65vw, 30px);
  min-width: 0;
}

.lsh-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.lsh-nav-link,
.lsh-nav-trigger,
.lsh-nav-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  background: transparent;
  color: var(--lsh-text);
  font-family: var(--lsh-nav-font-family, inherit);
  font-size: var(--lsh-nav-font-size, 14px);
  font-weight: var(--lsh-nav-font-weight, 500);
  line-height: 1.35;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease;
}

.lsh-nav-link::after,
.lsh-nav-trigger::after {
  position: absolute;
  right: 100%;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--lsh-accent);
  content: "";
  transition: right .2s ease;
}

.lsh-nav-link:hover,
.lsh-nav-trigger:hover,
.lsh-nav-link:focus-visible,
.lsh-nav-trigger:focus-visible {
  color: #98651e;
  outline-offset: 3px;
}

.lsh-nav-link:hover::after,
.lsh-nav-trigger:hover::after,
.lsh-nav-item.lsh-is-open .lsh-nav-trigger::after {
  right: 0;
}

.lsh-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease, margin .18s ease;
}

.lsh-nav-item.lsh-is-open .lsh-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.lsh-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 260px;
  max-width: min(390px, 88vw);
  padding: 7px 0;
  overflow: hidden;
  border: 1px solid rgba(32, 37, 34, .09);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.lsh-nav-item.lsh-is-open > .lsh-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.lsh-dropdown-link {
  display: block;
  padding: 12px 20px;
  color: #202522 !important;
  background: #fff;
  font-family: var(--lsh-dropdown-font-family, inherit);
  font-size: var(--lsh-dropdown-font-size, 14px);
  font-weight: var(--lsh-dropdown-font-weight, 400);
  line-height: 1.4;
  text-decoration: none !important;
  white-space: normal;
  transition: background-color .15s ease, color .15s ease;
}

.lsh-dropdown-link:hover,
.lsh-dropdown-link:focus-visible {
  color: #98651e !important;
  background: #f7f5ef;
  outline-offset: -2px;
}

.lsh-contact {
  justify-self: end;
  min-width: 0;
  text-align: right;
}

.lsh-contact__content {
  font-family: var(--lsh-contact-font-family, inherit);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}

.lsh-contact__title {
  color: #656b67;
  font-family: var(--lsh-contact-font-family, inherit);
  font-size: calc(var(--lsh-contact-font-size, 16px) * .75);
  font-weight: 500;
  line-height: 1.25;
}

.lsh-contact__phone {
  color: var(--lsh-text) !important;
  font-family: var(--lsh-contact-font-family, inherit);
  font-size: var(--lsh-contact-font-size, 16px);
  font-weight: var(--lsh-contact-font-weight, 700);
  line-height: 1.25;
  text-decoration: none !important;
  white-space: nowrap;
}

.lsh-contact__phone:hover {
  color: #98651e !important;
}

.lsh-contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 3px;
  padding: 0 16px;
  border: 1px solid #202522;
  border-radius: 100px;
  background: #202522;
  color: #fff !important;
  font-family: var(--lsh-contact-font-family, inherit);
  font-size: calc(var(--lsh-contact-font-size, 16px) * .82);
  font-weight: var(--lsh-contact-font-weight, 700);
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.lsh-contact__cta:hover {
  border-color: #98651e;
  background: #98651e;
  color: #fff !important;
}

.lsh-menu-toggle,
.lsh-mobile-contact {
  display: none;
}

.lsh-header-spacer {
  display: block;
  width: 100%;
  height: 104px;
  pointer-events: none;
}

.lsh-header-spacer--home {
  display: none;
}

/* Transparent header overlay at the very top of the homepage. */
.lsh-header.lsh-is-home.lsh-is-at-top {
  color: #fff;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.lsh-header.lsh-is-home.lsh-is-at-top .lsh-nav-link,
.lsh-header.lsh-is-home.lsh-is-at-top .lsh-nav-trigger,
.lsh-header.lsh-is-home.lsh-is-at-top .lsh-nav-label,
.lsh-header.lsh-is-home.lsh-is-at-top .lsh-contact__phone {
  color: #fff !important;
}

.lsh-header.lsh-is-home.lsh-is-at-top .lsh-contact__title {
  color: rgba(255, 255, 255, .8);
}

.lsh-header.lsh-is-home.lsh-is-at-top .lsh-contact__cta {
  border-color: rgba(255, 255, 255, .82);
  background: transparent;
  color: #fff !important;
}

.lsh-header.lsh-is-home.lsh-is-at-top .lsh-dropdown,
.lsh-header.lsh-is-home.lsh-is-at-top .lsh-dropdown-link {
  color: #202522 !important;
}

.lsh-header.lsh-is-home.lsh-is-at-top .lsh-chevron {
  border-color: currentColor;
}

/* Tablet/mobile navigation. */
@media (max-width: 1100px) {
  .lsh-header__inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 14px;
    width: calc(100% - 40px);
    min-height: 84px;
  }

  .lsh-logo__image-wrap {
    width: min(var(--lsh-logo-width-current), 68vw);
    height: min(var(--lsh-logo-height-current), 60px);
  }

  .lsh-logo__image {
    max-width: 68vw;
    max-height: 60px;
  }

  .lsh-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: end;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--lsh-line);
    border-radius: 50%;
    background: transparent;
    color: var(--lsh-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .lsh-menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform .18s ease;
  }

  .lsh-header.lsh-mobile-open .lsh-menu-toggle span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .lsh-header.lsh-mobile-open .lsh-menu-toggle span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .lsh-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -20px;
    left: -20px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: calc(100vh - 90px);
    padding: 10px 24px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    border-bottom: 1px solid var(--lsh-line);
    background: #fff;
    box-shadow: 0 18px 28px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .lsh-header.lsh-mobile-open .lsh-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .lsh-nav-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--lsh-line);
  }

  .lsh-nav-link,
  .lsh-nav-trigger,
  .lsh-nav-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 13px 0;
    color: #202522 !important;
    font-family: var(--lsh-nav-font-family, inherit);
    font-size: var(--lsh-nav-font-size, 14px);
    font-weight: var(--lsh-nav-font-weight, 500);
    line-height: 1.4;
    text-align: left;
    white-space: normal;
  }

  .lsh-nav-link::after,
  .lsh-nav-trigger::after {
    display: none;
  }

  .lsh-nav-trigger {
    cursor: pointer;
  }

  .lsh-dropdown {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 0 10px 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .lsh-nav-item.lsh-is-open > .lsh-dropdown {
    display: flex;
    transform: none;
  }

  .lsh-dropdown-link {
    padding: 11px 8px;
    font-family: var(--lsh-dropdown-font-family, inherit);
    font-size: var(--lsh-dropdown-font-size, 14px);
    font-weight: var(--lsh-dropdown-font-weight, 400);
  }

  .lsh-contact {
    display: none;
  }

  .lsh-mobile-contact {
    display: block;
    padding-top: 20px;
  }

  .lsh-mobile-contact .lsh-contact__content {
    align-items: stretch;
    text-align: left;
  }

  .lsh-mobile-contact .lsh-contact__title {
    color: #656b67 !important;
  }

  .lsh-mobile-contact .lsh-contact__phone {
    color: #202522 !important;
    font-family: var(--lsh-contact-font-family, inherit);
    font-size: var(--lsh-contact-font-size, 16px);
    font-weight: var(--lsh-contact-font-weight, 700);
  }

  .lsh-mobile-contact .lsh-contact__cta {
    align-self: flex-start;
    min-height: 46px;
    margin-top: 9px;
    padding: 0 19px;
    border: 1px solid #202522;
    border-radius: 100px;
    background: #202522;
    color: #fff !important;
    font-family: var(--lsh-contact-font-family, inherit);
    font-size: calc(var(--lsh-contact-font-size, 16px) * .82);
    font-weight: var(--lsh-contact-font-weight, 700);
  }

  .lsh-header-spacer {
    height: 84px;
  }

  .lsh-header-spacer--home {
    display: none;
  }

  .lsh-header.lsh-is-home.lsh-is-at-top .lsh-menu-toggle {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
  }

  .lsh-header.lsh-mobile-open,
  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open {
    color: #202522;
    background: #fff;
    border-bottom-color: var(--lsh-line);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  }

  .lsh-header.lsh-mobile-open .lsh-menu-toggle,
  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-menu-toggle {
    color: #202522;
    border-color: var(--lsh-line);
  }

  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-logo__fallback {
    color: #202522;
  }

  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open {
    --lsh-logo-width-current: var(--lsh-logo-white-width);
    --lsh-logo-height-current: var(--lsh-logo-white-height);
  }

  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-logo__image--transparent { opacity: 0; }
  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-logo__image--white { opacity: 1; }

  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-nav-link,
  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-nav-trigger,
  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-nav-label,
  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-mobile-contact .lsh-contact__phone {
    color: #202522 !important;
  }

  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-mobile-contact .lsh-contact__title {
    color: #656b67 !important;
  }

  .lsh-header.lsh-is-home.lsh-is-at-top.lsh-mobile-open .lsh-mobile-contact .lsh-contact__cta {
    border-color: #202522;
    background: #202522;
    color: #fff !important;
  }
}

@media (max-width: 480px) {
  .lsh-header__inner {
    width: calc(100% - 32px);
    min-height: 76px;
  }

  .lsh-nav {
    right: -16px;
    left: -16px;
    padding-inline: 20px;
  }

  .lsh-header-spacer {
    height: 76px;
  }

  .lsh-logo__fallback {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lsh-header,
  .lsh-header *,
  .lsh-header *::before,
  .lsh-header *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body.admin-bar .lsh-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .lsh-header {
    top: 46px;
  }
}

.lsh-logo-preview-wrap img[hidden],
.lsh-logo-preview-wrap span[hidden] {
  display: none !important;
}

body.admin-bar .lsh-header-spacer {
  height: 136px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .lsh-header-spacer {
    height: 130px;
  }
}
