/* ============================================================
   unithaus 공통 크롬 — 상단 메뉴 / 상담 신청 CTA / 하단 빠른 문의
   unithaus.co.kr assets/site.css 의 헤더·모바일내비·플로팅 CTA 규칙을
   유닛메이커로 옮긴 사본이다. 본사 사이트와 형태가 어긋나면 이 파일을
   본사 site.css 기준으로 다시 맞춘다 (기하: 1440 + 좌우 40, 헤더 70px).
   ============================================================ */
.site-chrome {
  --uh-black: #111111;
  --uh-gray-600: #555555;
  --uh-gray-400: #9a9a9a;
  --uh-gray-200: #e5e5e5;
  --uh-gray-100: #f2f2f2;
  --uh-accent: #f2b33d;
  --uh-accent-light: #f8d477;
  --uh-header-h: 70px;
}

/* ---------- Header ---------- */
.uh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--uh-header-h);
  background: #fff;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--uh-gray-200);
}

.uh-header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.uh-logo { flex: none; line-height: 0; }
.uh-logo img { height: 24px; width: auto; max-width: none; flex: none; }

.uh-gnb {
  display: flex;
  gap: 34px;
  margin-left: 50px;
}
.uh-gnb > .uh-nav-item { position: relative; }
.uh-gnb a.uh-nav-link {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  color: var(--uh-black);
  transition: opacity 0.2s;
  display: inline-block;
  padding: 22px 0;
}
.uh-gnb a.uh-nav-link:hover { opacity: 0.55; }

/* 드롭다운: 대주제 아래로 떨어지는 세로 서브메뉴.
   data-dd(대주제)를 라벨로 얹고, 항목은 들여쓰기·색·크기로 종속을 표시한다. */
.uh-dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 176px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  padding: 12px 16px 14px;
  display: none;
  flex-direction: column;
  gap: 0;
  white-space: nowrap;
}
.uh-nav-item:hover .uh-dropdown,
.uh-nav-item:focus-within .uh-dropdown { display: flex; }
.uh-dropdown::before {
  content: attr(data-dd);
  display: block;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--uh-gray-200);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--uh-gray-400);
}
.uh-dropdown a {
  position: relative;
  padding: 8px 0 8px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--uh-gray-600);
  transition: color 0.15s;
}
.uh-dropdown a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: var(--uh-gray-200);
  transition: background 0.15s;
}
.uh-dropdown a:hover { opacity: 1; color: var(--uh-black); }
.uh-dropdown a:hover::before { background: var(--uh-accent); }

.uh-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.uh-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex: none;
}
.uh-btn-pill:hover { opacity: 0.85; }
.uh-btn-maker { background: var(--uh-accent-light); color: var(--uh-black); }
.uh-btn-consult { background: var(--uh-black); color: #fff; }
.uh-badge-min {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 700;
}

.uh-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--uh-gray-600);
  white-space: nowrap;
  flex: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.uh-lang svg { width: 18px; height: 18px; }
.uh-lang .uh-lang-opt { color: var(--uh-gray-400); }
.uh-lang .uh-lang-opt.is-active { color: var(--uh-black); }
.uh-lang .uh-lang-sep { color: var(--uh-gray-200); font-weight: 400; }

.uh-menu-toggle {
  display: none;
  font-size: 26px;
  line-height: 1;
  flex: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--uh-black);
}
.uh-menu-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Mobile nav ---------- */
.uh-mobile-nav {
  position: fixed;
  top: var(--uh-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: #fff;
  border-top: 1px solid var(--uh-gray-200);
  display: none;
  flex-direction: column;
  padding: 18px 24px 28px;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.uh-mobile-nav.is-open { display: flex; }
/* 대주제 — 크고 진하게, 구분선으로 묶음 경계를 만든다 */
.uh-mobile-nav > a {
  padding: 14px 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.uh-mobile-nav > a + a { border-top: 1px solid var(--uh-gray-200); }
.uh-mobile-nav .uh-mobile-sub + a { border-top: 1px solid var(--uh-gray-200); }
/* 서브 메뉴 — 들여쓰기 + 작고 흐리게, 대주제에 종속됨을 형태로 보인다 */
.uh-mobile-nav .uh-mobile-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 12px;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--uh-gray-200);
}
.uh-mobile-nav .uh-mobile-sub a {
  padding: 7px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--uh-gray-600);
}
.uh-mobile-nav .uh-mobile-sub a:active { color: var(--uh-black); }
/* 하단 액션 — 메뉴 항목이 아니라 CTA이므로 분리해 강조 */
.uh-mobile-nav .uh-mobile-foot {
  position: sticky;
  bottom: 0;
  margin-top: 14px;
  padding: 16px 0 4px;
  background: #fff;
  border-top: 2px solid var(--uh-black);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uh-mobile-nav .uh-mobile-foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 800;
}
.uh-mobile-nav .uh-mobile-foot a:first-child {
  background: var(--uh-accent-light);
  color: var(--uh-black);
}
.uh-mobile-nav .uh-mobile-foot a:last-child {
  background: var(--uh-black);
  color: #fff;
}
@media (min-width: 1300px) {
  .uh-mobile-nav { display: none !important; }
}

/* ---------- 하단 빠른 문의 (우하단 플로팅) ---------- */
.uh-float-cta {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: inherit;
}
.uh-float-cta .uh-fc-main {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--uh-accent, #f2b33d);
  color: #111;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(242, 179, 61, 0.5);
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}
.uh-float-cta .uh-fc-main:hover { transform: translateY(-2px); }
.uh-float-cta .uh-fc-menu { display: none; flex-direction: column; gap: 8px; }
.uh-float-cta.is-open .uh-fc-menu { display: flex; }
.uh-float-cta .uh-fc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  text-decoration: none;
}
.uh-float-cta .uh-fc-item:hover { background: #000; }
/* 하단 고정 바(구성기 견적 바)와 겹치지 않게 위로 올린다 */
body.has-bottom-bar .uh-float-cta { bottom: calc(var(--bar-h, 76px) + 16px); }
/* 모바일 드로어·모달이 열려 있으면 그 CTA와 겹치므로 숨긴다 */
body.menu-open .uh-float-cta,
body.lineup-open .uh-float-cta { display: none; }
@media (max-width: 640px) {
  .uh-float-cta { right: 14px; bottom: 16px; }
  .uh-float-cta .uh-fc-main { width: 54px; height: 54px; font-size: 12px; }
  body.has-bottom-bar .uh-float-cta { bottom: calc(var(--bar-h, 76px) + 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .uh-float-cta .uh-fc-main { transition: none; }
  .uh-float-cta .uh-fc-main:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1299px) {
  .uh-gnb { display: none; }
  .uh-menu-toggle { display: block; margin-left: auto; }
  .uh-header-right { margin-left: 0; }
  .uh-header-inner { padding: 0 20px; justify-content: space-between; gap: 12px; }
}
@media (max-width: 640px) {
  .uh-header-inner { gap: 10px; padding: 0 16px; }
  .uh-logo img { height: 20px; }
  /* CTA pill 은 폭을 양보하고, 언어 토글·메뉴 버튼은 고정 크기로 남긴다 —
     라벨이 길어져도 화면 밖으로 밀리지 않게. */
  .uh-header-right { gap: 6px; min-width: 0; flex: 0 1 auto; }
  .uh-header-right .uh-btn-pill {
    min-width: 0;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
  }
  .uh-header-right .uh-badge-min { display: none; }
  .uh-lang, .uh-menu-toggle { flex: 0 0 auto; }
  .uh-lang { font-size: 13px; gap: 4px; }
  .uh-lang svg { width: 16px; height: 16px; }
  .uh-menu-toggle { font-size: 24px; }
}
