/* Scoped header widget styles. Elementor's style controls override these defaults per instance. */
.qing-header-widget,
.qing-header-widget * {
  box-sizing: border-box;
}

.qing-header-widget {
  position: relative;
  z-index: 50;
  width: 100%;
  background: rgba(250, 245, 238, .96);
  border-bottom: 1px solid #eadcc6;
  color: #2a2018;
  font-family: 'Manrope', system-ui, sans-serif;
}

.qing-header-widget .qing-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1160px;
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 22px;
}

.qing-header-widget .qing-header__logo {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 30%;
  color: #5a1f2e;
  font: 700 19px/1.2 'Unbounded', 'Manrope', sans-serif;
  text-decoration: none;
}

.qing-header-widget .qing-header__logo-image {
  display: block;
  width: auto;
  max-width: min(160px, 100%);
  max-height: 48px;
  height: auto;
  object-fit: contain;
}

.qing-header-widget .qing-header__logo-dot {
  position: relative;
  display: inline-block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 2.5px solid #b98a4e;
  border-radius: 50%;
}

.qing-header-widget .qing-header__logo-dot::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 9px;
  background: #b98a4e;
  content: '';
  transform: translateX(-50%);
}

.qing-header-widget .qing-header__logo-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qing-header-widget .qing-header__nav {
  min-width: 0;
  margin: 0 auto;
}

.qing-header-widget .qing-header__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qing-header-widget .qing-header__menu li {
  margin: 0;
  padding: 0;
}

.qing-header-widget .qing-header__menu a {
  display: block;
  color: #2a2018;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.qing-header-widget .qing-header__menu a:hover,
.qing-header-widget .qing-header__menu a:focus-visible {
  color: #b98a4e;
}

.qing-header-widget .qing-header__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: #5a1f2e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}

.qing-header-widget .qing-header__cta:hover,
.qing-header-widget .qing-header__cta:focus-visible {
  background: #43161f;
  color: #fff;
}

.qing-header-widget .qing-header__toggle {
  display: none;
  flex: 0 0 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2a2018;
  cursor: pointer;
}

.qing-header-widget .qing-header__toggle:hover,
.qing-header-widget .qing-header__toggle:focus-visible {
  background: #f0e3c8;
}

.qing-header-widget .qing-header__toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  flex: 0 0 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.qing-header-widget.is-open .qing-header__toggle-line:first-child {
  transform: translateY(7px) rotate(45deg);
}

.qing-header-widget.is-open .qing-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.qing-header-widget.is-open .qing-header__toggle-line:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.qing-header-widget a:focus-visible,
.qing-header-widget button:focus-visible {
  outline: 2px solid #b98a4e;
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .qing-header-widget .qing-header__inner {
    gap: 10px;
  }

  .qing-header-widget .qing-header__logo {
    max-width: none;
    margin-right: auto;
  }

  .qing-header-widget .qing-header__nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 72px);
    margin: 0;
    overflow-y: auto;
    border-bottom: 1px solid #eadcc6;
    background: var(--qing-mobile-menu-bg, #fffdf9);
    box-shadow: 0 15px 25px rgba(42, 32, 24, .1);
  }

  .qing-header-widget.is-open .qing-header__nav {
    display: block;
  }

  .qing-header-widget .qing-header__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 1160px;
    margin: 0 auto;
    padding: 10px 22px 16px;
  }

  .qing-header-widget .qing-header__menu a {
    padding: 11px 2px;
    white-space: normal;
  }

  .qing-header-widget .qing-header__toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .qing-header-widget .qing-header__inner {
    gap: 7px;
    min-height: 64px;
    padding: 8px 16px;
  }

  .qing-header-widget .qing-header__logo {
    gap: 7px;
    font-size: 14px;
  }

  .qing-header-widget .qing-header__logo-image {
    max-width: min(125px, 100%);
    max-height: 42px;
  }

  .qing-header-widget .qing-header__logo-dot {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    border-width: 2px;
  }

  .qing-header-widget .qing-header__cta {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .qing-header-widget .qing-header__toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    padding: 6px;
  }

  .qing-header-widget .qing-header__menu {
    padding-inline: 16px;
  }
}
