/* ==========================================
   Header
   ========================================== */
.cm-header {
  background: #ffffff;
  border-bottom: none;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.cm-header__inner {
  height: 90px;
  display: flex;
  width: 100%;
  max-width: 1200px;
  align-items: center;
  justify-content: space-between;
}

.cm-header__logo {
  display: inline-flex;
  padding-right: 11px;
  align-items: center;
  gap: 14px;
}

.cm-header__logo-icon {
  width: 44px;
  height: 36px;
  flex-shrink: 0;
}

.cm-header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.21;
  transition: opacity 1.5s ease;
}

.cm-header__logo-text.is-fading {
  opacity: 0;
}

.cm-header__logo-line1,
.cm-header__logo-line2 {
  font-family: Pretendard, -apple-system, sans-serif;
  font-weight: 200;
  font-size: 14px;
  color: var(--cm-black);
  white-space: nowrap;
  letter-spacing: 0.28px;
}

.cm-header__logo-text.is-ko .cm-header__logo-line1 {
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 22px;
  line-height: 24px;
  letter-spacing: 0;
  vertical-align: middle;
}

.cm-header__nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

.cm-header__nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  font-family: var(--cm-font-helvetica);
  font-weight: 400;
  font-size: 17px;
  color: var(--cm-black);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.cm-header__nav-link:hover {
  color: var(--cm-gray-700);
}

.cm-header__nav-link--active {
  font-weight: 700;
}

.cm-header__nav-link--instagram {
  gap: 8px;
}

.cm-header__instagram-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cm-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 10px 24px;
  background: #222222;
  color: var(--cm-white);
  font-family: Pretendard;
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: -0.25px;
  transition: all 0.2s ease;
}

.cm-header__btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.cm-header__utils {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cm-header__lang {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  cursor: pointer;
}

.cm-header__lang-text {
  font-family: var(--cm-font-helvetica);
  font-weight: 400;
  font-size: 14px;
  color: var(--cm-gray-700);
}

.cm-header__lang-arrow {
  width: 6px;
  height: 3px;
  flex-shrink: 0;
}

.cm-header__theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--cm-font-pretendard);
  font-weight: 400;
  font-size: 15px;
  color: var(--cm-gray-700);
  letter-spacing: -0.45px;
  transition: color 0.2s ease;
}

.cm-header__theme-toggle:hover {
  color: var(--cm-black);
}

.cm-header__theme-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cm-header__theme-text {
  white-space: nowrap;
}

/* Hamburger: hidden on desktop */
.cm-header__burger {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cm-black);
  transition: color 0.2s ease;
}

.cm-header__burger:hover {
  color: var(--cm-gray-700);
}

.cm-header__burger-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cm-header__logo-mobile-text {
  display: none;
}

/* Drawer: hidden by default */
/* Full-screen modal menu */
.cm-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  background: #ffffff;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.cm-header__drawer.is-open {
  visibility: visible;
  opacity: 1;
}

.cm-header__drawer-panel {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
}

.cm-header__drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 16px 20px;
  min-height: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cm-header__drawer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cm-black);
}

.cm-header__drawer-logo-icon {
  width: 32px;
  height: 26px;
  flex-shrink: 0;
}

.cm-header__drawer-logo-text {
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.cm-header__drawer-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 -8px 0 0;
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--cm-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.cm-header__drawer-close:hover {
  color: var(--cm-gray-700);
}

.cm-header__drawer-close svg {
  width: 24px;
  height: 24px;
}

.cm-header__drawer-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cm-header__drawer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  font-family: var(--cm-font-helvetica);
  font-weight: 400;
  font-size: 17px;
  color: var(--cm-black);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  @media (max-width: 768px) {
    height: 62px;
    padding: 20px 24px;
    font-size: 16px;
    letter-spacing: -0.32px;
  }
}

.cm-header__drawer-link:hover {
  background: #f5f5f5;
  color: var(--cm-gray-700);
}

.cm-header__drawer-link.cm-header__drawer-link--active {
  font-weight: 700;
}

.cm-header__drawer-link--instagram {
  gap: 8px;
}

.cm-header__drawer-instagram {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cm-header__drawer-footer {
  display: flex;
  padding: 50px 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  align-self: stretch;
}

.cm-header__drawer-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-header__drawer-footer-link-separator {
  color: #b7b7b7;
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 24.31px; /* 187% */
  letter-spacing: -0.26px;
}

.cm-header__drawer-footer-link {
  font-family: "Pretendard", sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #b7b7b7;
  line-height: 24.31px; /* 187% */
  letter-spacing: -0.26px;
}

.cm-header__drawer-footer-link:hover {
  color: var(--cm-black);
}

.cm-header__drawer-footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 7.5px;
}

.cm-header__drawer-footer-brand-text-title {
  color: #c9c9c9;
  font-family: Pretendard;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 12px; /* 80% */
}

.cm-header__drawer-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  @media (max-width: 768px) {
    flex-direction: column;
    align-items: center;
  }
}

.cm-header__drawer-footer-logo {
  width: 32px;
  height: 35px;
  flex-shrink: 0;
}

.cm-header__drawer-footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cm-header__drawer-footer-tagline {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #888888;
  line-height: 1.3;
}

.cm-header__drawer-footer-slogan {
  margin: 0;
  font-family: "Nanum Myeongjo", serif;
  font-weight: 400;
  font-size: 12px;
  color: #aaaaaa;
  line-height: 1.3;
}

.sc-header-instagram svg,
.sc-header-instagram .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sc-header-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cm-header__nav {
  gap: 20px;
}

.cm-header__nav-link {
  padding: 12px;
  font-size: 15px;
}

.cm-header__btn {
  height: 40px;
  padding: 8px 20px;
  font-size: 14px;
}

.cm-header__inner {
  @media (max-width: 768px) {
    padding: 12px 16px;
    width: 100%;
    height: auto;
    min-height: 56px;
    gap: 0;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    justify-items: center;
  }
}

.cm-header__burger {
  @media (max-width: 768px) {
    display: flex;
    justify-self: start;
  }
}

.cm-header__logo {
  @media (max-width: 768px) {
    flex: none;
    min-width: 0;
    justify-content: center;
    gap: 10px;
    grid-column: 2;
    justify-self: center;
  }
}

.cm-header__logo-icon {
  @media (max-width: 768px) {
    width: 32px;
    height: 26px;
    flex-shrink: 0;
  }
}

.cm-header__logo-text {
  @media (max-width: 768px) {
    display: none;
  }
}

.cm-header__logo-mobile-text {
  @media (max-width: 768px) {
    display: block;
    font-family: "Pretendard", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--cm-black);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.cm-header__nav {
  @media (max-width: 768px) {
    display: none;
  }
}

.cm-header__btn {
  @media (max-width: 768px) {
    display: none;
  }
}
